/* Hub e telas de relatórios */

.nexum-relatorios-hub {
    margin-top: 0.25rem;
}

.nexum-relatorio-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.25rem 1.35rem;
    border-radius: 0.75rem;
    border: 1px solid var(--kaju-border, #e2e6ef);
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    box-shadow: 0 1px 3px rgba(23, 29, 47, 0.06);
    position: relative;
    overflow: hidden;
}

.nexum-relatorio-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 0.75rem 0 0 0.75rem;
}

.nexum-relatorio-card:hover {
    border-color: #c8d0e4;
    box-shadow: 0 6px 20px rgba(23, 29, 47, 0.08);
    transform: translateY(-2px);
    color: inherit;
}

.nexum-relatorio-card--os::before { background: var(--kaju-orange, #e85d04); }
.nexum-relatorio-card--receitas::before { background: #059669; }
.nexum-relatorio-card--despesas::before { background: #dc2626; }
.nexum-relatorio-card--boletos::before { background: #2563eb; }

.nexum-relatorio-card__icone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    margin-bottom: 0.85rem;
}

.nexum-relatorio-card--os .nexum-relatorio-card__icone {
    background: rgba(232, 93, 4, 0.12);
    color: var(--kaju-orange, #e85d04);
}

.nexum-relatorio-card--receitas .nexum-relatorio-card__icone {
    background: rgba(5, 150, 105, 0.12);
    color: #059669;
}

.nexum-relatorio-card--despesas .nexum-relatorio-card__icone {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.nexum-relatorio-card--boletos .nexum-relatorio-card__icone {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.nexum-relatorio-card__icone svg {
    width: 1.35rem;
    height: 1.35rem;
}

.nexum-relatorio-card__titulo {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--kaju-text-strong, #171d2f);
    margin-bottom: 0.35rem;
}

.nexum-relatorio-card__desc {
    font-size: 0.82rem;
    color: var(--kaju-text-muted, #636e8b);
    line-height: 1.45;
    flex: 1;
    margin-bottom: 1rem;
}

.nexum-relatorio-card__cta {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--kaju-section, #383a4a);
}

.nexum-relatorio-card:hover .nexum-relatorio-card__cta {
    color: var(--kaju-orange, #e85d04);
}

/* Filtros */

.nexum-relatorio-filtros {
    border-radius: 0.75rem;
    overflow: hidden;
}

.nexum-relatorio-filtros__head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--kaju-border, #e2e6ef);
}

.nexum-relatorio-filtros__head-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background: #f2f4fa;
    color: var(--kaju-section, #383a4a);
}

.nexum-relatorio-filtros__head-icon svg {
    width: 1.15rem;
    height: 1.15rem;
}

.nexum-relatorio-filtros__head h6 {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
}

.nexum-relatorio-filtros__acoes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--kaju-border, #e2e6ef);
}

.nexum-relatorio-vazio {
    border-radius: 0.75rem;
    border: 1px dashed #c8d0e4;
    background: #fafbfd;
}

.nexum-relatorio-vazio__icone {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    color: #9aa5bd;
}

/* Resultado */

.nexum-relatorio-resultado {
    border-radius: 0.75rem;
    overflow: hidden;
}

.nexum-relatorio-resultado__cabecalho {
    text-align: center;
    padding: 1.35rem 1.5rem 1rem;
    background: linear-gradient(180deg, #f8f9fc 0%, #fff 100%);
    border-bottom: 1px solid var(--kaju-border, #e2e6ef);
}

.nexum-relatorio-resultado__cabecalho h5 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--kaju-text-strong, #171d2f);
}

.nexum-relatorio-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #f8f9fc;
    border-bottom: 1px solid var(--kaju-border, #e2e6ef);
}

.nexum-relatorio-kpi {
    background: #fff;
    border: 1px solid var(--kaju-border, #e2e6ef);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

.nexum-relatorio-kpi__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--kaju-text-muted, #636e8b);
}

.nexum-relatorio-kpi__valor {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--kaju-text-strong, #171d2f);
    margin-top: 0.15rem;
}

.nexum-relatorio-kpi--destaque .nexum-relatorio-kpi__valor {
    color: var(--kaju-orange, #e85d04);
}

.nexum-relatorio-kpi--sucesso .nexum-relatorio-kpi__valor {
    color: #059669;
}

.nexum-relatorio-resultado .table tbody tr.nexum-relatorio-linha--oculta {
    display: none;
}

@media print {
    .nexum-sidebar,
    .nexum-topbar,
    .nexum-subnav,
    .nexum-page-header,
    .nexum-relatorio-filtros,
    .nexum-relatorio-vazio,
    .nexum-empresa-ativa-bar {
        display: none !important;
    }

    .nexum-relatorio-resultado {
        box-shadow: none !important;
        border: none !important;
    }

    .nexum-relatorio-resultado__cabecalho {
        background: #fff !important;
    }

    .nexum-relatorio-kpis {
        background: #fff !important;
    }

    .nexum-relatorio-resultado .table tbody tr.nexum-relatorio-linha--oculta {
        display: table-row !important;
    }

    .nexum-relatorio-resultado .card-body .border-top {
        display: none !important;
    }
}
