/* =====================================================
   S2 ERP PRO v1.0
   CSS PRINCIPAL
   S2 Energia Solar
===================================================== */


/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =====================================================
   CONFIGURAÇÕES GERAIS
===================================================== */

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f0f4f8;
    color: #2c3e50;
    min-height: 100vh;
}


/* =====================================================
   SISTEMA
===================================================== */

#app {
    min-height: 100vh;
}


/* =====================================================
   CABEÇALHO
===================================================== */

.top-header {
    height: 70px;

    background: #0d2847;
    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 30px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}


/* =====================================================
   LOGO / NOME
===================================================== */

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}


.logo-area h1 {
    font-size: 24px;
    font-weight: 700;
}


.logo-area span {
    font-size: 13px;
    color: #dbe5ef;
}


/* =====================================================
   USUÁRIO
===================================================== */

.user-area {
    display: flex;
    align-items: center;
    gap: 20px;
}


.user-area span {
    font-size: 14px;
}


#logout {
    border: none;

    background: #f97316;
    color: #ffffff;

    padding: 9px 18px;

    border-radius: 6px;

    cursor: pointer;

    font-weight: 600;
}


#logout:hover {
    background: #ea580c;
}


/* =====================================================
   LAYOUT
===================================================== */

.layout {
    display: flex;
    min-height: calc(100vh - 70px);
}


/* =====================================================
   MENU LATERAL
===================================================== */

.sidebar {
    width: 240px;

    background: #081a30;

    padding: 25px 15px;
}


.sidebar nav ul {
    list-style: none;
}


.sidebar nav ul li {
    margin-bottom: 8px;
}


.sidebar nav ul li a {
    display: block;

    text-decoration: none;

    color: #ffffff;

    padding: 13px 15px;

    border-radius: 7px;

    font-size: 15px;

    transition: all 0.2s ease;
}


.sidebar nav ul li a:hover {
    background: #0d2847;
}


.sidebar nav ul li a.active {
    background: #f97316;
}


/* =====================================================
   CONTEÚDO PRINCIPAL
===================================================== */

#content {
    flex: 1;

    padding: 30px;

    background: #f0f4f8;
}


#content h2 {
    color: #0d2847;

    margin-bottom: 10px;

    font-size: 28px;
}


#content p {
    color: #607080;

    font-size: 16px;
}


/* =====================================================
   RESPONSIVIDADE
===================================================== */

@media (max-width: 768px) {

    .sidebar {
        width: 200px;
    }

    .top-header {
        padding: 0 15px;
    }

    .logo-area span {
        display: none;
    }

    #content {
        padding: 20px;
    }

}


@media (max-width: 600px) {

    .sidebar {
        width: 70px;
        padding: 20px 8px;
    }

    .sidebar nav ul li a {
        font-size: 0;
        text-align: center;
    }

    .sidebar nav ul li a:first-letter {
        font-size: 20px;
    }

    .logo-area h1 {
        font-size: 18px;
    }

}


/* =====================================================
   DASHBOARD
===================================================== */

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.dashboard-header h2 {
    margin-bottom: 5px;
}

.dashboard-header p {
    margin: 0;
}

.dashboard-date {
    background: #ffffff;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #dce4ec;
}


/* =====================================================
   CARDS
===================================================== */

.dashboard-cards {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;

    margin-bottom: 25px;
}


.dashboard-card {
    background: #ffffff;

    border-radius: 10px;

    padding: 22px;

    display: flex;

    align-items: center;

    gap: 18px;

    border: 1px solid #e1e8ef;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.05);
}


.card-icon {
    width: 52px;

    height: 52px;

    border-radius: 10px;

    background: #f97316;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 24px;
}


.card-info {
    display: flex;

    flex-direction: column;

    gap: 3px;
}


.card-info span {
    color: #607080;

    font-size: 13px;
}


.card-info strong {
    color: #0d2847;

    font-size: 23px;
}


.card-info small {
    color: #8996a3;

    font-size: 11px;
}


/* =====================================================
   GRID DO DASHBOARD
===================================================== */

.dashboard-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;

    margin-bottom: 20px;
}


/* =====================================================
   PAINÉIS
===================================================== */

.dashboard-panel {
    background: #ffffff;

    border: 1px solid #e1e8ef;

    border-radius: 10px;

    padding: 22px;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.04);
}


.panel-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 20px;
}


.panel-header h3 {
    color: #0d2847;

    font-size: 17px;

    margin-bottom: 5px;
}


.panel-header span {
    color: #8996a3;

    font-size: 12px;
}


.panel-button {
    border: none;

    background: #0d2847;

    color: #ffffff;

    padding: 8px 12px;

    border-radius: 6px;

    cursor: pointer;

    font-size: 12px;
}


.panel-button:hover {
    background: #f97316;
}


/* =====================================================
   ESTADO VAZIO
===================================================== */

.empty-state {
    min-height: 160px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;
}


.empty-icon {
    font-size: 32px;

    margin-bottom: 10px;
}


.empty-state strong {
    color: #34495e;

    font-size: 14px;
}


.empty-state p {
    color: #8996a3;

    font-size: 12px;

    margin-top: 6px;
}


/* =====================================================
   ATIVIDADES
===================================================== */

.activities-panel {
    margin-bottom: 20px;
}


/* =====================================================
   AÇÕES RÁPIDAS
===================================================== */

.quick-actions {
    margin-top: 10px;
}


.quick-actions h3 {
    color: #0d2847;

    margin-bottom: 15px;
}


.quick-actions-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 15px;
}


.quick-action {
    background: #ffffff;

    border: 1px solid #dfe7ee;

    border-radius: 8px;

    padding: 18px;

    color: #0d2847;

    font-weight: 600;

    cursor: pointer;

    transition: 0.2s;
}


.quick-action span {
    display: block;

    font-size: 24px;

    margin-bottom: 8px;
}


.quick-action:hover {
    border-color: #f97316;

    transform: translateY(-2px);

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08);
}


/* =====================================================
   RESPONSIVIDADE DO DASHBOARD
===================================================== */

@media (max-width: 1100px) {

    .dashboard-cards {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .quick-actions-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 800px) {

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .dashboard-header {
        flex-direction: column;

        align-items: flex-start;

        gap: 15px;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

}
/* =====================================================
   S2 ERP PRO
   AGENDA - VISUAL
===================================================== */

.agenda-page {
    width: 100%;
    padding: 25px;
    box-sizing: border-box;
}


/* =====================================================
   CABEÇALHO
===================================================== */

.agenda-header {
    display: flex;
    align-items: center;
    gap: 20px;

    background: #0d2847;
    border-radius: 16px;

    padding: 18px 24px;
    margin-bottom: 22px;

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12);
}

.agenda-header-logo img {
    width: 100px;
    max-height: 65px;
    object-fit: contain;
}

.agenda-header-info {
    flex: 1;
}

.agenda-header-info h1 {
    margin: 0;
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
}

.agenda-header-info p {
    margin: 5px 0 0;
    color: #dbe7f2;
    font-size: 15px;
}


/* =====================================================
   CARD PRINCIPAL
===================================================== */

.agenda-card {
    background: #ffffff;
    border-radius: 16px;

    padding: 28px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);

    border: 1px solid #e4e9ee;
}


/* =====================================================
   TÍTULO
===================================================== */

.agenda-card-title {
    border-bottom: 2px solid #f0f4f8;
    padding-bottom: 18px;
    margin-bottom: 25px;
}

.agenda-card-title h2 {
    margin: 0;
    color: #0d2847;
    font-size: 23px;
}

.agenda-card-title p {
    margin: 6px 0 0;
    color: #667788;
}


/* =====================================================
   SEÇÕES
===================================================== */

.agenda-section {
    margin-bottom: 28px;
}

.agenda-section-title {
    font-size: 17px;
    font-weight: 700;

    color: #0d2847;

    padding-bottom: 10px;
    margin-bottom: 16px;

    border-bottom: 1px solid #e7edf2;
}


/* =====================================================
   GRID
===================================================== */

.agenda-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.agenda-field-full {
    grid-column: 1 / -1;
}


/* =====================================================
   CAMPOS
===================================================== */

.agenda-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.agenda-field label {
    font-size: 14px;
    font-weight: 700;

    color: #2c3e50;
}

.agenda-field input,
.agenda-field select,
.agenda-field textarea {

    width: 100%;

    box-sizing: border-box;

    border: 1px solid #cfd8e1;

    border-radius: 9px;

    background: #f9fbfd;

    color: #263746;

    font-size: 16px;

    padding: 13px 14px;

    min-height: 48px;

    outline: none;

    transition: all 0.2s ease;
}

.agenda-field textarea {
    resize: vertical;
    min-height: 120px;
}

.agenda-field input:focus,
.agenda-field select:focus,
.agenda-field textarea:focus {

    border-color: #f97316;

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(249, 115, 22, 0.12);
}


/* =====================================================
   BOTÕES
===================================================== */

.agenda-actions {

    display: flex;

    justify-content: flex-end;

    gap: 14px;

    padding-top: 22px;

    border-top: 1px solid #e7edf2;
}

.agenda-btn {

    border: none;

    border-radius: 9px;

    padding: 13px 22px;

    min-height: 48px;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;

    transition: all 0.2s ease;
}

.agenda-btn-voltar {
    background: #ffffff;
    color: #0d2847;
}

.agenda-btn-voltar:hover {
    background: #f97316;
    color: #ffffff;
}

.agenda-btn-cancelar {
    background: #eef2f5;
    color: #475569;
}

.agenda-btn-cancelar:hover {
    background: #dce3e9;
}

.agenda-btn-salvar {
    background: #f97316;
    color: #ffffff;

    padding-left: 28px;
    padding-right: 28px;

    box-shadow:
        0 4px 10px rgba(249, 115, 22, 0.25);
}

.agenda-btn-salvar:hover {
    background: #e8640c;

    transform: translateY(-1px);

    box-shadow:
        0 6px 14px rgba(249, 115, 22, 0.30);
}


/* =====================================================
   RESPONSIVO
===================================================== */

@media (max-width: 800px) {

    .agenda-page {
        padding: 15px;
    }

    .agenda-header {
        flex-wrap: wrap;
    }

    .agenda-grid {
        grid-template-columns: 1fr;
    }

    .agenda-field-full {
        grid-column: auto;
    }

    .agenda-actions {
        flex-direction: column;
    }

    .agenda-actions .agenda-btn {
        width: 100%;
    }

}
/* =====================================================
   AGENDA - TELA PRINCIPAL
===================================================== */

.agenda-resumo {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;

    margin-bottom: 22px;
}


.agenda-resumo-card {

    background: #ffffff;

    border: 1px solid #e4e9ee;

    border-radius: 14px;

    padding: 20px;

    display: flex;

    align-items: center;

    gap: 15px;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.06);
}


.agenda-resumo-icone {

    width: 48px;
    height: 48px;

    border-radius: 12px;

    background: #f0f4f8;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 23px;
}


.agenda-resumo-card span {

    display: block;

    font-size: 13px;

    color: #718096;

    margin-bottom: 4px;
}


.agenda-resumo-card strong {

    display: block;

    font-size: 25px;

    color: #0d2847;
}


.agenda-vazio {

    text-align: center;

    padding: 55px 20px;
}


.agenda-vazio-icone {

    width: 75px;
    height: 75px;

    margin: 0 auto 18px;

    border-radius: 50%;

    background: #f0f4f8;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 34px;
}


.agenda-vazio h3 {

    margin: 0;

    color: #0d2847;

    font-size: 20px;
}


.agenda-vazio p {

    color: #718096;

    margin: 8px 0 22px;

    font-size: 15px;
}


@media (max-width: 900px) {

    .agenda-resumo {

        grid-template-columns:
            repeat(2, 1fr);

    }

}


@media (max-width: 550px) {

    .agenda-resumo {

        grid-template-columns: 1fr;

    }

}
.agenda-lista {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
/* ============================================
   IMPRESSÃO DO RELATÓRIO FINANCEIRO
   ============================================ */

/* ============================================
   RELATÓRIO FINANCEIRO - IMPRESSÃO PROFISSIONAL
   ============================================ */

@media print {

    /* --------------------------------------------
       CONFIGURAÇÃO DA PÁGINA
       -------------------------------------------- */

    @page {
        size: A4;
        margin: 15mm;
    }


    body {
        background: white !important;
        margin: 0 !important;
        padding: 0 !important;
        font-family: Arial, Helvetica, sans-serif !important;
        color: #1f2937 !important;
    }


    /* --------------------------------------------
       ESCONDER ELEMENTOS DA INTERFACE
       -------------------------------------------- */

    body * {
        visibility: hidden;
    }


    #content,
    #content * {
        visibility: visible;
    }


    #content {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        background: white !important;
    }


    /* Botões */

    #content button {
        display: none !important;
    }


    /* Filtros */

    #content div:has(#filtroFinanceiroDataInicial) {
        display: none !important;
    }


    /* Paginação */

    #paginacaoFinanceiroControles {
        display: none !important;
    }


    /* --------------------------------------------
       CABEÇALHO
       -------------------------------------------- */

    #content .dashboard-header {
        display: block !important;
        margin: 0 0 22px 0 !important;
        padding: 0 0 14px 0 !important;
        border-bottom: 2px solid #0d2847 !important;
    }


    #content .dashboard-header h2 {
        margin: 0 !important;
        font-size: 24px !important;
        font-weight: 700 !important;
        color: #0d2847 !important;
    }


    #content .dashboard-header p {
        margin: 5px 0 0 0 !important;
        font-size: 12px !important;
        color: #6b7280 !important;
    }


    /* --------------------------------------------
       CARDS DE RESUMO
       -------------------------------------------- */

    #content .dashboard-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
        margin: 0 0 22px 0 !important;
    }


    #content .dashboard-grid .dashboard-panel {
        padding: 14px 16px !important;
        margin: 0 !important;
        border: 1px solid #d9dee5 !important;
        border-radius: 6px !important;
        box-shadow: none !important;
        background: #f8fafc !important;
    }


    #content .dashboard-grid .dashboard-panel strong {
        filter: none !important;
        font-size: 18px !important;
        color: #0d2847 !important;
    }


    /* --------------------------------------------
       PAINEL DOS LANÇAMENTOS
       -------------------------------------------- */

    #content .dashboard-panel {
        box-shadow: none !important;
    }


    #content #relatorioListaLancamentos {
        border: 1px solid #d9dee5 !important;
        border-radius: 6px !important;
        padding: 0 !important;
        overflow: visible !important;
        background: white !important;
    }


    /* --------------------------------------------
       TABELA
       -------------------------------------------- */

    #content table {
        width: 100% !important;
        border-collapse: collapse !important;
        font-size: 11px !important;
        table-layout: auto !important;
    }


    #content table thead tr {
        background: #0d2847 !important;
        color: white !important;
    }


    #content table th {
        padding: 9px 7px !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        text-align: left !important;
        border: none !important;
        color: white !important;
    }


    #content table td {
        padding: 8px 7px !important;
        font-size: 10.5px !important;
        color: #374151 !important;
        border-bottom: 1px solid #e5e7eb !important;
        vertical-align: middle !important;
    }


    #content table tbody tr:nth-child(even) {
        background: #f8fafc !important;
    }


    /* --------------------------------------------
       VALORES
       -------------------------------------------- */

    #content table td:nth-child(6),
    #content table td:nth-child(7) {
        font-weight: 600 !important;
        white-space: nowrap !important;
    }


    /* --------------------------------------------
       STATUS
       -------------------------------------------- */

    #content table td span {
        padding: 3px 7px !important;
        font-size: 9px !important;
        border-radius: 12px !important;
        white-space: nowrap !important;
    }


    /* --------------------------------------------
       REMOVER COLUNA AÇÕES
       -------------------------------------------- */

    #content table th:last-child,
    #content table td:last-child {
        display: none !important;
    }


    /* --------------------------------------------
       REMOVER ROLAGEM
       -------------------------------------------- */

    #content > div,
    #content #relatorioListaLancamentos > div {
        overflow: visible !important;
    }


    /* --------------------------------------------
       IMPRESSÃO LIMPA
       -------------------------------------------- */

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

}