/* Dashboard reportes — contenedor 70% centrado */
.dash-page-reportes {
    width: 100%;
    margin: 0;
    padding: 1rem 0 2.5rem;
    box-sizing: border-box;
}

.dash-page-shell {
    width: 70%;
    max-width: 1280px;
    min-width: 0;
    margin: 0 auto;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

.dash-page-pad {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Dashboard minimalista (otras vistas que usen dash-min) */
.dash-min {
    max-width: 720px;
    padding: 1.25rem 1rem 2.5rem;
    margin: 0 auto;
}

.dash-min-wide {
    max-width: none;
    width: 100%;
    box-sizing: border-box;
    padding: 1rem 1.25rem 2.5rem;
}

.dash-min .container,
body .dash-min {
    font-size: 0.95rem;
}

.dash-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.dash-top h1 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
}

.dash-top p {
    margin: 0.2rem 0 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.dash-nav {
    display: flex;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.dash-nav a {
    color: #6b7280;
    text-decoration: none;
}

.dash-nav a:hover {
    color: #1d4ed8;
}

.dash-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding: 0.65rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.dash-bar input,
.dash-bar select {
    flex: 1;
    min-width: 100px;
    padding: 0.5rem 0.65rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font: inherit;
    font-size: 0.9rem;
}

.dash-btn {
    padding: 0.5rem 1rem;
    background: #1d4ed8;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}

.dash-kpi {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.dash-cortes-panel {
    padding: 1.15rem clamp(0.85rem, 2vw, 1.35rem) 1rem;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border-bottom: 2px solid #cbd5e1;
}

.dash-cortes-panel-title {
    margin: 0 0 1rem;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #0f172a;
    text-align: center;
}

.dash-cortes-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.dash-corte-kpi-card {
    text-align: center;
    padding: 1rem 0.75rem 0.9rem;
    border-radius: 12px;
    border: 2px solid transparent;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    min-width: 0;
}

.dash-corte-kpi-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
    margin-bottom: 0.35rem;
}

.dash-corte-kpi-num {
    display: block;
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.05;
    color: #0f172a;
}

.dash-corte-kpi-num small {
    font-size: 0.45em;
    font-weight: 700;
    color: #64748b;
}

.dash-corte-kpi-sub {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
    color: #64748b;
}

.dash-corte-kpi-blue {
    background: #eff6ff;
    border-color: #93c5fd;
}

.dash-corte-kpi-blue .dash-corte-kpi-num {
    color: #1d4ed8;
}

.dash-corte-kpi-amber {
    background: #fffbeb;
    border-color: #fcd34d;
}

.dash-corte-kpi-amber .dash-corte-kpi-num {
    color: #b45309;
}

.dash-corte-kpi-green {
    background: #f0fdf4;
    border-color: #86efac;
}

.dash-corte-kpi-green .dash-corte-kpi-num {
    color: #15803d;
}

.dash-corte-kpi-purple {
    background: #faf5ff;
    border-color: #d8b4fe;
}

.dash-corte-kpi-purple .dash-corte-kpi-num {
    color: #7c3aed;
}

.dash-cortes-dia-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.6rem;
    margin-bottom: 0.85rem;
}

.dash-corte-dia-card {
    text-align: center;
    padding: 0.85rem 0.5rem;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    background: #fff;
    min-width: 0;
}

.dash-corte-dia-card.is-done {
    border-color: #86efac;
    background: #f0fdf4;
}

.dash-corte-dia-card.is-pending {
    border-color: #fcd34d;
    background: #fffbeb;
}

.dash-corte-dia-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    margin-bottom: 0.35rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: #e2e8f0;
    color: #334155;
}

.dash-corte-dia-card.is-done .dash-corte-dia-badge {
    background: #22c55e;
    color: #fff;
}

.dash-corte-dia-card.is-pending .dash-corte-dia-badge {
    background: #f59e0b;
    color: #fff;
}

.dash-corte-dia-estado {
    display: block;
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.2rem;
}

.dash-corte-dia-det {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
}

.dash-corte-dia-hora {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.65rem;
    color: #64748b;
    line-height: 1.3;
}

.dash-prov-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem 0.65rem;
    padding-top: 0.85rem;
    border-top: 1px dashed #e2e8f0;
    font-size: 0.82rem;
}

.dash-prov-links-note {
    color: #64748b;
    font-size: 0.78rem;
}

.dash-prov-links-label {
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

.dash-prov-links a {
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-weight: 600;
    text-decoration: none;
}

.dash-prov-links a:hover,
.dash-prov-links a.is-active {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #1d4ed8;
}

.dash-corte-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    white-space: nowrap;
}

.dash-corte-chip.done {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

.dash-corte-chip.pending {
    background: #fef3c7;
    border-color: #fcd34d;
    color: #92400e;
}

.dash-corte-chip em {
    font-style: normal;
    font-size: 0.65rem;
    font-weight: 600;
    opacity: 0.85;
}

.dash-kpi-item {
    text-decoration: none;
    text-align: center;
    padding: 0.85rem 0.5rem;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: border-color 0.15s;
}

.dash-kpi-item.is-active {
    border-color: currentColor;
}

.dash-kpi-num {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
}

.dash-kpi-txt {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 0.15rem;
    opacity: 0.9;
}

.dash-kpi-red {
    background: #fef2f2;
    color: #b91c1c;
}

.dash-kpi-amber {
    background: #fffbeb;
    color: #b45309;
}

.dash-kpi-green {
    background: #ecfdf5;
    color: #047857;
}

.dash-block {
    margin-bottom: 1.75rem;
}

.dash-block-title {
    margin: 0 0 0.65rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #374151;
}

.dash-title-red { color: #b91c1c; }
.dash-title-amber { color: #b45309; }

.dash-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.dash-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.dash-list-item:last-child {
    border-bottom: none;
}

.dash-list-main {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.dash-list-main strong {
    font-size: 0.95rem;
}

.dash-list-main span {
    font-size: 0.82rem;
    color: #6b7280;
}

.dash-tel {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1d4ed8;
    text-decoration: none;
    white-space: nowrap;
}

.dash-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1d4ed8;
    text-decoration: none;
}

.dash-grid {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.dash-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.85rem 1rem;
}

.dash-card-sin_reporte {
    border-left: 3px solid #fca5a5;
}

.dash-card-incompleto {
    border-left: 3px solid #fcd34d;
}

.dash-card-completo {
    border-left: 3px solid #6ee7b7;
}

.dash-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.dash-card-head h3 {
    margin: 0;
    font-size: 1rem;
}

.dash-card-head p {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    color: #6b7280;
}

.dash-pill {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    white-space: nowrap;
}

.dash-pill-red { background: #fee2e2; color: #991b1b; }
.dash-pill-amber { background: #fef3c7; color: #92400e; }
.dash-pill-green { background: #d1fae5; color: #065f46; }

.dash-cortes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.dash-corte {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.45rem;
    border-radius: 6px;
    background: #f3f4f6;
    color: #9ca3af;
}

.dash-corte.done {
    background: #d1fae5;
    color: #047857;
}

.dash-corte.pending {
    background: #f3f4f6;
    color: #9ca3af;
}

.dash-more {
    margin-top: 0.65rem;
    font-size: 0.85rem;
}

.dash-more summary {
    cursor: pointer;
    color: #1d4ed8;
    font-weight: 600;
    list-style: none;
}

.dash-more summary::-webkit-details-marker {
    display: none;
}

.dash-detail-list {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
}

.dash-detail-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid #f9fafb;
    font-size: 0.85rem;
}

.dash-detail-corte {
    font-weight: 700;
    width: 2rem;
}

.dash-detail-list a {
    margin-left: auto;
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 600;
}

.dash-muni-label {
    margin: 0.65rem 0 0.35rem;
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 600;
}

.dash-muni-tags {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.dash-muni-tags li {
    font-size: 0.75rem;
    background: #f3f4f6;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: #4b5563;
}

.dash-muted {
    color: #9ca3af;
    font-size: 0.85rem;
    margin: 0.35rem 0 0;
}

.dash-empty {
    color: #6b7280;
    font-size: 0.9rem;
}

.dash-foot {
    text-align: center;
    font-size: 0.85rem;
    color: #9ca3af;
    margin-top: 1.5rem;
}

.dash-foot a {
    color: #6b7280;
}

.dash-rep-exec-board {
    width: 100%;
    max-width: 100%;
    margin: 0 0 1.5rem;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

.dash-rep-exec-board .evt-exec-kpis {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
    border-bottom: 2px solid #94a3b8;
}

.dash-rep-exec-board .evt-exec-kpi {
    min-width: 0;
    padding: 0.75rem 0.35rem;
    overflow: hidden;
}

.dash-rep-exec-board .evt-exec-cuadro-prov,
.dash-rep-exec-board .evt-exec-semaforo,
.dash-rep-exec-board .dash-rep-exec-resumen,
.dash-rep-exec-board .dash-cortes-panel {
    padding-left: clamp(0.75rem, 2vw, 1.25rem);
    padding-right: clamp(0.75rem, 2vw, 1.25rem);
}

.dash-rep-exec-board .evt-exec-header h1 {
    font-size: clamp(1rem, 2vw, 1.45rem);
}

.dash-rep-exec-board .evt-exec-kpi strong {
    font-size: clamp(1.2rem, 2vw, 1.65rem);
    word-break: break-word;
}

.dash-rep-exec-board .evt-exec-kpi small {
    font-size: clamp(0.58rem, 0.85vw, 0.65rem);
}

.dash-rep-exec-board .evt-exec-mid {
    grid-template-columns: minmax(260px, 28%) 1fr;
}

.dash-rep-exec-board .evt-exec-table {
    font-size: 0.82rem;
}

.dash-rep-exec-board .evt-exec-table caption {
    font-size: 0.75rem;
}

.dash-rep-exec-board .evt-exec-table-prov tbody {
    max-height: 320px;
}

.dash-rep-exec-resumen {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.dash-rep-exec-resumen p {
    margin: 0;
    font-size: clamp(0.88rem, 1.1vw, 1rem);
    line-height: 1.6;
    color: #334155;
    max-width: none;
}

.dash-rep-cuadro-scroll {
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.dash-rep-cuadro-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    font-size: clamp(0.82rem, 1vw, 0.95rem);
}

.dash-rep-cuadro-table thead th:nth-child(1) {
    width: 14%;
}

.dash-rep-cuadro-table thead th:nth-child(2) {
    width: 36%;
}

.dash-rep-cuadro-table thead th:nth-child(3) {
    width: 50%;
}

.dash-rep-cuadro-table .evt-cuadro-prov-nombre {
    width: auto;
    min-width: 0;
    font-size: clamp(0.95rem, 1.3vw, 1.25rem);
    vertical-align: top;
}

.dash-rep-muni-nombre {
    font-weight: 500;
    color: #334155;
    vertical-align: middle;
    word-break: break-word;
}

.dash-rep-muni-estado {
    vertical-align: middle;
    white-space: nowrap;
}

.dash-rep-cuadro-count {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
}

.dash-rep-cuadro-pct {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
}

.dash-rep-mun-con-dato {
    font-weight: 700;
    color: #0f172a;
}

.dash-rep-mun-sin-dato {
    color: #94a3b8;
}

.dash-rep-transp {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    vertical-align: middle;
}

.dash-rep-transp-ok {
    background: #dcfce7;
    color: #166534;
}

.dash-rep-transp-no {
    background: #fee2e2;
    color: #991b1b;
}

.dash-rep-fuente {
    display: inline-block;
    margin-left: 0.25rem;
    padding: 0.08rem 0.35rem;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    background: #e0e7ff;
    color: #3730a3;
    vertical-align: middle;
}

.dash-rep-exec-board .dash-afluencia-pill {
    font-size: 0.8rem;
    padding: 0.2rem 0.55rem;
}

@media (min-width: 1400px) {
    .dash-min-wide {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .dash-rep-exec-board .evt-exec-cuadro-prov {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .dash-wide-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 0.75rem;
    }
}

@media (max-width: 1100px) {
    .dash-page-shell {
        width: 88%;
    }

    .dash-cortes-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dash-cortes-dia-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dash-rep-exec-board .evt-exec-kpis {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .dash-rep-exec-board .evt-exec-kpi {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
}

@media (max-width: 900px) {
    .dash-page-shell {
        width: 94%;
    }

    .dash-cortes-dia-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dash-rep-exec-board .evt-exec-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dash-rep-exec-board .evt-exec-mid {
        grid-template-columns: 1fr;
    }

    .dash-rep-cuadro-table {
        table-layout: auto;
        min-width: 520px;
    }

    .dash-rep-muni-estado {
        white-space: normal;
    }
}

.dash-afluencia-sub {
    margin: -0.35rem 0 0.5rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.dash-afluencia-ayuda {
    margin: 0 0 1rem;
    padding: 0.75rem 0.9rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #374151;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.dash-afluencia-panel-hint {
    margin: -0.35rem 0 0.65rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.dash-afluencia-kpi {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.dash-afluencia-item {
    border-radius: 10px;
    padding: 0.75rem 0.85rem;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.dash-afluencia-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
    color: #6b7280;
}

.dash-afluencia-num-big {
    display: block;
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.1;
    color: #111827;
}

.dash-afluencia-num-sub {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #6b7280;
}

.dash-afluencia-pct-line {
    display: block;
    margin-top: 0.35rem;
    padding-top: 0.35rem;
    border-top: 1px dashed #e5e7eb;
    font-size: 0.88rem;
    font-weight: 700;
    color: #1d4ed8;
}

.dash-afluencia-alta .dash-afluencia-pct-line { color: #15803d; }
.dash-afluencia-media .dash-afluencia-pct-line { color: #b45309; }
.dash-afluencia-baja .dash-afluencia-pct-line { color: #b91c1c; }
.dash-afluencia-total .dash-afluencia-pct-line { color: #1d4ed8; }

.dash-afluencia-pct-cell {
    font-weight: 700;
    color: #1d4ed8;
    white-space: nowrap;
}

.dash-territorial {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: 1rem 1.1rem;
}

.dash-territorial-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.dash-territorial-card {
    padding: 0.85rem 0.95rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.dash-territorial-card h3 {
    margin: 0 0 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.dash-territorial-highlight {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
}

.dash-territorial-stats {
    margin: 0.35rem 0 0;
    font-size: 0.84rem;
    line-height: 1.45;
    color: #475569;
}

.dash-territorial-afluencia { border-color: #bbf7d0; }
.dash-territorial-transporte { border-color: #fde68a; }
.dash-territorial-cobertura { border-color: #bfdbfe; }

.dash-territorial-texto {
    display: grid;
    gap: 0.65rem;
}

.dash-territorial-texto p {
    margin: 0;
    padding: 0.8rem 0.95rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #334155;
    background: #fff;
    border-left: 4px solid #3b82f6;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.dash-territorial-texto p + p {
    border-left-color: #f59e0b;
}

.dash-afluencia-bar-wrap {
    margin-bottom: 1.15rem;
}

.dash-afluencia-textos {
    margin-bottom: 1.15rem;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.dash-afluencia-textos h3 {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    color: #111827;
}

.dash-afluencia-texto-general {
    margin: 0 0 1rem;
    padding: 0.75rem 0.9rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #1e3a8a;
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    border-radius: 0 8px 8px 0;
}

.dash-afluencia-textos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
}

.dash-afluencia-texto-card {
    padding: 0.85rem 0.95rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.dash-afluencia-texto-card header {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-bottom: 0.5rem;
}

.dash-afluencia-texto-card header strong {
    font-size: 0.82rem;
    color: #0f172a;
    line-height: 1.35;
}

.dash-afluencia-texto-card header span {
    font-size: 0.75rem;
    color: #64748b;
}

.dash-afluencia-texto-card p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #334155;
}

.dash-afluencia-bar {
    display: flex;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: #f3f4f6;
    margin-bottom: 0.5rem;
}

.dash-afluencia-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    font-size: 0.85rem;
    color: #4b5563;
}

.dash-afluencia-legend strong {
    color: #111827;
}

.dash-afluencia-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    margin-right: 0.35rem;
    vertical-align: middle;
}

.dash-afluencia-alta { border-color: #bbf7d0; background: #f0fdf4; }
.dash-afluencia-media { border-color: #fde68a; background: #fffbeb; }
.dash-afluencia-baja { border-color: #fecaca; background: #fef2f2; }
.dash-afluencia-total { border-color: #bfdbfe; background: #eff6ff; }

.dash-afluencia-seg {
    display: block;
    min-width: 2px;
    height: 100%;
}

.dash-afluencia-seg-alta { background: #22c55e; }
.dash-afluencia-seg-media { background: #f59e0b; }
.dash-afluencia-seg-baja { background: #ef4444; }

.dash-afluencia-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.dash-afluencia-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    min-width: 0;
    overflow: hidden;
}

.dash-afluencia-panel h3 {
    margin: 0 0 0.65rem;
    font-size: 0.92rem;
    color: #374151;
}

.dash-afluencia-panel h4 {
    margin: 0 0 0.65rem;
    font-size: 0.88rem;
    color: #374151;
}

.dash-corte-block {
    margin-bottom: 1.25rem;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.dash-corte-block-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #f3f4f6;
}

.dash-corte-block-head h3 {
    margin: 0.15rem 0 0.2rem;
    font-size: 1rem;
    color: #111827;
}

.dash-corte-block-head p {
    margin: 0;
    font-size: 0.82rem;
    color: #6b7280;
}

.dash-corte-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #1d4ed8;
    background: #eff6ff;
    border-radius: 999px;
}

.dash-corte-empty {
    margin: 0;
}

.dash-corte-narrativa {
    margin: 0 0 1rem;
    padding: 0.75rem 0.9rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #334155;
    background: #f8fafc;
    border-left: 3px solid #94a3b8;
    border-radius: 0 8px 8px 0;
}

.dash-afluencia-kpi-corte {
    margin-bottom: 0.85rem;
}

.dash-afluencia-kpi-corte .dash-afluencia-num-big {
    font-size: 1.45rem;
}

.dash-afluencia-grid-corte {
    margin-bottom: 0.85rem;
}

.dash-afluencia-panel-inline {
    margin-top: 0.85rem;
    background: #f9fafb;
    border: 1px dashed #e5e7eb;
}

.dash-afluencia-table-prov-list td:last-child {
    text-align: center;
}

.dash-corte-dia-final {
    margin-top: 1.5rem;
    padding: 1.15rem 1.2rem;
    background: linear-gradient(180deg, #eff6ff 0%, #fff 100%);
    border: 2px solid #bfdbfe;
    border-radius: 12px;
}

.dash-corte-dia-head {
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #dbeafe;
}

.dash-corte-dia-head h3 {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
    color: #1e3a8a;
}

.dash-corte-dia-head p {
    margin: 0;
    font-size: 0.85rem;
    color: #3b82f6;
}

.dash-afluencia-panel-wide {
    grid-column: 1 / -1;
}

.dash-afluencia-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.25rem;
    padding: 0 0.25rem;
}

.dash-afluencia-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.dash-afluencia-table-compact th:not(:first-child),
.dash-afluencia-table-compact td:not(:first-child) {
    text-align: center;
}

.dash-afluencia-metric {
    white-space: nowrap;
    vertical-align: middle;
}

.dash-afluencia-metric-n {
    display: block;
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1.25;
    color: #111827;
}

.dash-afluencia-metric-p {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.25;
    color: #1d4ed8;
}

.dash-afluencia-total {
    text-align: center;
    vertical-align: middle;
}

.dash-afluencia-table th,
.dash-afluencia-table td {
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid #f3f4f6;
    text-align: left;
}

.dash-afluencia-table th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
}

.dash-afluencia-table-prov td:not(:first-child) {
    text-align: center;
}

.dash-afluencia-pill {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
}

.dash-afluencia-pill-alta { background: #dcfce7; color: #166534; }
.dash-afluencia-pill-media { background: #fef3c7; color: #92400e; }
.dash-afluencia-pill-baja { background: #fee2e2; color: #991b1b; }

@media (max-width: 900px) {
    .dash-afluencia-kpi,
    .dash-afluencia-kpi-corte {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .dash-page-shell {
        width: 100%;
        padding: 0 0.65rem;
    }

    .dash-cortes-kpi-grid {
        grid-template-columns: 1fr;
    }

    .dash-cortes-dia-grid {
        grid-template-columns: 1fr;
    }

    .dash-rep-exec-board .evt-exec-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dash-afluencia-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .dash-kpi {
        grid-template-columns: 1fr;
    }

    .dash-territorial-cards {
        grid-template-columns: 1fr;
    }

    .dash-afluencia-kpi {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dash-list-item {
        flex-direction: column;
        align-items: flex-start;
    }
}
