.dashboard-gerencial {
    --dash-ink: #172033;
    --dash-muted: #64748b;
    --dash-border: #ded9d2;
    --dash-primary: #452b90;
    color: var(--dash-ink);
    padding: 1rem 0 2rem;
}

.dashboard-gerencial .dashboard-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dashboard-gerencial .dashboard-heading h2 {
    margin: .15rem 0;
    color: #172033;
    font-size: 1.75rem;
    font-weight: 700;
}

.dashboard-gerencial .dashboard-heading p,
.dashboard-gerencial .dashboard-card header span,
.dashboard-gerencial .dashboard-period span {
    color: var(--dash-muted);
}

.dashboard-gerencial .dashboard-heading p {
    margin-bottom: 0;
}

.dashboard-gerencial .dashboard-eyebrow {
    color: var(--dash-primary);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.dashboard-gerencial .dashboard-filter-note {
    border: 0;
    border-left: 4px solid #0dcaf0;
}

.dashboard-gerencial .dashboard-loading {
    min-height: 16rem;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: .8rem;
}

.dashboard-gerencial .dashboard-period {
    margin: .35rem 0 1rem;
    color: #334155;
    font-size: .88rem;
}

.dashboard-gerencial .dashboard-kpi-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dashboard-gerencial .dashboard-kpi-grid-primary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-gerencial .dashboard-kpi-grid-secondary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-gerencial .dashboard-kpi {
    min-width: 0;
    min-height: 116px;
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--dash-border);
    border-radius: 12px;
    box-shadow: 0 5px 16px rgba(15, 23, 42, .06);
}

.dashboard-gerencial .dashboard-kpi-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #f0ecfb;
    color: var(--dash-primary);
    font-size: 1.15rem;
}

.dashboard-gerencial .dashboard-kpi-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.dashboard-gerencial .dashboard-kpi-content > span {
    color: var(--dash-muted);
    font-size: .78rem;
}

.dashboard-gerencial .dashboard-kpi-content strong {
    overflow: hidden;
    color: #172033;
    text-overflow: ellipsis;
    font-size: 1.25rem;
    white-space: nowrap;
}

.dashboard-gerencial .dashboard-kpi-content small {
    font-size: .72rem;
}

.dashboard-gerencial .dashboard-kpi-content small.up {
    color: #15803d;
}

.dashboard-gerencial .dashboard-kpi-content small.down {
    color: #b91c1c;
}

.dashboard-gerencial .dashboard-kpi-content small.neutral {
    color: var(--dash-muted);
}

.dashboard-gerencial .dashboard-kpi-success {
    border-top: 3px solid #198754;
}

.dashboard-gerencial .dashboard-kpi-primary {
    border-top: 3px solid #0d6efd;
}

.dashboard-gerencial .dashboard-kpi-warning {
    border-top: 3px solid #f0ad4e;
}

.dashboard-gerencial .dashboard-kpi-purple {
    border-top: 3px solid #7c3aed;
}

.dashboard-gerencial .dashboard-kpi-small {
    min-height: 92px;
    padding: .8rem;
}

.dashboard-gerencial .dashboard-kpi-small .dashboard-kpi-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    font-size: .95rem;
}

.dashboard-gerencial .dashboard-kpi-small .dashboard-kpi-content strong {
    font-size: 1.02rem;
}

.dashboard-gerencial .dashboard-graphs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.dashboard-gerencial .dashboard-card {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--dash-border);
    border-radius: 12px;
    box-shadow: 0 5px 16px rgba(15, 23, 42, .06);
    padding: 1rem;
}

.dashboard-gerencial .dashboard-card header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    min-height: 46px;
    margin-bottom: .5rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid #eeeae5;
}

.dashboard-gerencial .dashboard-card header h3 {
    color: #172033;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 .15rem;
}

.dashboard-gerencial .dashboard-card header span {
    font-size: .76rem;
}

.dashboard-gerencial .dashboard-empty {
    min-height: 17rem;
    display: grid;
    place-items: center;
    color: var(--dash-muted);
}

.dashboard-gerencial .dashboard-chart-area {
    position: relative;
    width: 100%;
    height: 300px;
}

.dashboard-gerencial .dashboard-chart-area-tall {
    height: 360px;
}

.dashboard-gerencial .dashboard-chart-area-dense {
    height: 420px;
}

.dashboard-gerencial .dashboard-chart-area-heatmap {
    height: 310px;
}

.dashboard-gerencial .dashboard-composition-with-summary {
    display: grid;
    grid-template-columns: minmax(180px, .8fr) minmax(300px, 1.2fr);
    gap: 1rem;
    align-items: center;
}

.dashboard-gerencial .dashboard-chart-area-composition {
    height: 260px;
}

.dashboard-gerencial .dashboard-composition-summary {
    max-height: 280px;
    overflow: auto;
    border: 1px solid #eeeae5;
    border-radius: 8px;
}

.dashboard-gerencial .dashboard-composition-summary table {
    width: 100%;
    border-collapse: collapse;
    font-size: .72rem;
}

.dashboard-gerencial .dashboard-composition-summary th,
.dashboard-gerencial .dashboard-composition-summary td {
    padding: .48rem .55rem;
    border-bottom: 1px solid #eeeae5;
    white-space: nowrap;
}

.dashboard-gerencial .dashboard-composition-summary th {
    position: sticky;
    top: 0;
    z-index: 1;
    color: #475569;
    background: #f8fafc;
    font-weight: 700;
}

.dashboard-gerencial .dashboard-composition-summary tbody tr:hover {
    background: #f8fafc;
}

.dashboard-gerencial .dashboard-composition-summary tfoot {
    color: #172033;
    background: #f8fafc;
    font-weight: 700;
}

.dashboard-gerencial .dashboard-composition-summary .dashboard-number {
    text-align: right;
}

.dashboard-gerencial .dashboard-chart-html-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1rem;
    margin-top: .75rem;
    color: var(--dash-muted);
    font-size: .72rem;
}

.dashboard-gerencial .dashboard-chart-html-legend span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.dashboard-gerencial .dashboard-chart-html-legend i {
    width: .65rem;
    height: .65rem;
    flex: 0 0 .65rem;
    border-radius: 50%;
}

.dashboard-gerencial .dashboard-chart-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: .35rem;
    margin-bottom: .35rem;
}

@media (max-width: 1199px) {
    .dashboard-gerencial .dashboard-kpi-grid-primary,
    .dashboard-gerencial .dashboard-kpi-grid-secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-gerencial .dashboard-composition-with-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .dashboard-gerencial .dashboard-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-gerencial .dashboard-kpi-grid-primary,
    .dashboard-gerencial .dashboard-kpi-grid-secondary,
    .dashboard-gerencial .dashboard-graphs {
        grid-template-columns: 1fr;
    }

    .dashboard-gerencial .dashboard-chart-area {
        height: 280px;
    }

    .dashboard-gerencial .dashboard-chart-area-dense {
        height: 360px;
    }
}
