/* Estilos propios de reportes.php (antes en un <style> inline de la página).
   Los componentes compartidos viven en assets/css/componentes.css. */

/* Estilos de impresión para reportes profesionales */
@media print {
    /* OCULTAR COMPLETAMENTE TODO LO QUE NO ES CONTENIDO */
    .sidebar,
    aside,
    nav,
    .tabs-nav,
    .pill-tabs,
    .tabs-container,
    .filters-wrapper,
    .content-header,
    .export-dropdown,
    .export-menu,
    #btn-filtrar,
    #btn-export,
    .filter-actions,
    .filter-group,
    .main-header,
    header.content-header,
    [class*="sidebar"],
    [class*="nav-"],
    .user-info,
    .logo-container,
    button:not(.print-keep) {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
    }

    /* Resetear layout completamente */
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        background: white !important;
    }
    .app-container {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        grid-template-columns: 1fr !important;
    }
    .main-content {
        margin: 0 !important;
        margin-left: 0 !important;
        padding: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: auto !important;
    }
    .content-wrapper {
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Encabezado profesional del reporte */
    .print-header {
        display: block !important;
        visibility: visible !important;
        position: relative !important;
        left: 0 !important;
        text-align: center;
        padding: 30px 20px;
        border-bottom: 4px solid #1e40af;
        margin-bottom: 30px;
        background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    }
    .print-header img {
        max-height: 70px;
        margin-bottom: 15px;
    }
    .print-header h1 {
        font-size: 28px;
        color: #1e293b;
        margin: 0 0 8px 0;
        font-weight: 700;
    }
    .print-header .subtitle {
        font-size: 16px;
        color: #475569;
        font-weight: 500;
    }
    .print-header .report-date {
        font-size: 12px;
        color: #64748b;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #cbd5e1;
    }

    /* Pie de página profesional */
    .print-footer {
        display: block !important;
        visibility: visible !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        text-align: center;
        font-size: 9px;
        color: #64748b;
        padding: 12px 20px;
        border-top: 2px solid #e2e8f0;
        background: #f8fafc;
    }
    .print-footer p { margin: 2px 0; }

    /* Solo mostrar dashboard activo */
    [id^="dashboard"] { display: none !important; }
    [id^="dashboard"].print-active {
        display: block !important;
        visibility: visible !important;
        position: relative !important;
        left: 0 !important;
    }

    /* Gráficos bien formateados */
    .chart-container {
        break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: 25px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding: 20px;
        background: white;
    }
    .chart-container h4 {
        margin: 0 0 15px 0;
        color: #1e293b;
        font-size: 14px;
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 10px;
    }
    .charts-grid {
        display: block !important;
    }
    .charts-grid .chart-container {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 25px;
    }

    /* Tablas profesionales */
    .data-table {
        font-size: 10px;
        width: 100%;
        border-collapse: collapse;
        margin: 10px 0;
    }
    .data-table th {
        background: #1e40af !important;
        color: white !important;
        padding: 10px 8px;
        text-align: left;
        font-weight: 600;
    }
    .data-table td {
        border: 1px solid #e2e8f0;
        padding: 8px;
    }
    .data-table tr:nth-child(even) td {
        background: #f8fafc;
    }

    /* Stats cards para impresión */
    .stats-grid, .stats-grid-5 {
        display: flex !important;
        flex-wrap: wrap;
        gap: 15px;
        margin-bottom: 25px;
    }
    .stat-card {
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding: 15px;
        flex: 1;
        min-width: 120px;
        background: #f8fafc;
    }
    .stat-icon { display: none !important; }
    .stat-content .value {
        font-size: 24px;
        font-weight: 700;
        color: #1e293b;
    }
    .stat-content .title {
        font-size: 11px;
        color: #64748b;
        margin-top: 4px;
    }

    /* Settings cards */
    .settings-card {
        break-inside: avoid;
        page-break-inside: avoid;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        margin-bottom: 20px;
        padding: 15px;
        background: white;
    }

    /* Proveedor detalle */
    .proveedor-detalle-bar {
        border: 2px solid #1e40af !important;
        border-radius: 8px;
        padding: 20px !important;
        margin-bottom: 25px;
        background: #f8fafc !important;
    }

    /* Colores para impresión */
    .green { color: #16a34a !important; -webkit-print-color-adjust: exact; }
    .orange { color: #d97706 !important; -webkit-print-color-adjust: exact; }
    .red { color: #dc2626 !important; -webkit-print-color-adjust: exact; }
    .blue { color: #2563eb !important; -webkit-print-color-adjust: exact; }

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

    /* Márgenes de página */
    @page {
        margin: 1.5cm;
        size: A4;
    }
    @page :first {
        margin-top: 0.5cm;
    }
}

/* Ocultar elementos de impresión en pantalla */
.print-header, .print-footer { display: none; }

/* Multi-select dropdown con checkboxes */
.multi-select-dropdown { position: relative; width: 320px; }
.multi-select-trigger { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; border: 1px solid var(--border-color); border-radius: 6px; background: white; cursor: pointer; min-height: 36px; gap: 6px; }
.multi-select-trigger:hover { border-color: var(--primary); }
.multi-select-trigger.active { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1); }
.multi-select-chips { display: flex; flex-wrap: wrap; gap: 3px; flex: 1; min-width: 0; }
/* Un nombre largo se corta con puntos suspensivos dentro del selector: no invade los campos vecinos ni ensancha la página */
.multi-select-chip { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; background: #eff6ff; color: var(--primary); border-radius: 10px; font-size: 11px; font-weight: 500; white-space: nowrap; max-width: 100%; min-width: 0; }
.multi-select-chip-nombre { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.multi-select-chip .remove-chip { cursor: pointer; font-size: 12px; line-height: 1; opacity: 0.7; flex-shrink: 0; }
.multi-select-vacio { margin: 0; padding: 12px; font-size: 12.5px; color: var(--text-light); text-align: center; }
.multi-select-chip .remove-chip:hover { opacity: 1; }
.multi-select-placeholder { color: #94a3b8; font-size: 13px; }
.multi-select-arrow { color: #64748b; font-size: 18px; transition: transform 0.2s; flex-shrink: 0; }
.multi-select-trigger.active .multi-select-arrow { transform: rotate(180deg); }
.multi-select-menu { position: absolute; top: calc(100% + 4px); left: 0; width: 320px; background: white; border: 1px solid var(--border-color); border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,0.15); z-index: 1000; display: none; max-height: 260px; overflow-y: auto; overflow-x: hidden; }
.multi-select-menu.visible { display: block; }
.multi-select-search { padding: 6px; border-bottom: 1px solid #e5e7eb; }
.multi-select-search input { width: 100%; padding: 6px 10px; border: 1px solid #e5e7eb; border-radius: 4px; font-size: 12px; box-sizing: border-box; }
.multi-select-search input:focus { outline: none; border-color: var(--primary); }
#proveedoresCheckboxList { display: block !important; width: 100% !important; }
#proveedoresCheckboxList .multi-select-option { display: flex !important; flex-direction: row !important; align-items: center !important; gap: 10px !important; padding: 8px 12px !important; cursor: pointer; transition: background 0.15s; width: 100% !important; box-sizing: border-box !important; }
.multi-select-option:hover { background: #f8fafc; }
.multi-select-option.selected { background: #eff6ff; }
#proveedoresCheckboxList .multi-select-option input[type="checkbox"] { order: 1 !important; width: 16px !important; height: 16px !important; min-width: 16px !important; accent-color: var(--primary); cursor: pointer; margin: 0 !important; flex-shrink: 0 !important; }
#proveedoresCheckboxList .multi-select-option label { order: 2 !important; cursor: pointer; font-size: 13px; color: var(--text-dark); margin: 0 !important; padding: 0 !important; text-align: left !important; }
.multi-select-count { font-size: 10px; color: #64748b; padding: 4px 10px; border-top: 1px solid #e5e7eb; background: #f8fafc; }

/* ===================== Reportes en pantalla (rep-*) ===================== */
/* Mismo lenguaje que los informes imprimibles: indicadores con contexto, hallazgos, barras y mapa de calor */
.rep { --rep-alto: #16a34a; --rep-medio: #d97706; --rep-bajo: #dc2626; --rep-na: #94a3b8; --rep-pista: #eef2f7; }
.rep-cab { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 14px; }
.rep-cab h1 { margin: 0; font-size: 24px; font-weight: 700; color: var(--text-dark); }
.rep-cab p { margin: 4px 0 0; color: var(--text-light); font-size: 14px; }
.rep-pestanas { margin-bottom: 12px; }
.rep-pestanas .tab-button { display: inline-flex; align-items: center; gap: 6px; }
.rep-pestanas .tab-button .material-icons { font-size: 18px; }
.rep-filtros { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 18px; }
.rep-filtros-grupo { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.rep-filtros .filter-group { display: flex; flex-direction: column; gap: 4px; }
.rep-filtros .filter-group label { font-size: 12px; font-weight: 600; color: var(--text-light); }
.rep-acciones { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.rep-acciones .btn { display: inline-flex; align-items: center; gap: 6px; }
.rep-acciones .btn .material-icons { font-size: 18px; }

.rep-panel { animation: rep-aparecer .2s ease; }
@keyframes rep-aparecer { from { opacity: .4; } to { opacity: 1; } }

.rep-periodo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 14px; margin-bottom: 14px; background: var(--white); border: 1px solid var(--border-color); border-radius: var(--radius-md); font-size: 13px; color: var(--text-light); }
.rep-periodo .material-icons { font-size: 18px; color: var(--primary); }
.rep-periodo strong { color: var(--text-dark); }
.rep-periodo span { margin-left: auto; font-size: 12px; color: var(--text-muted); }

/* Indicadores */
.rep-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.rep-kpis-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rep-kpi { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--white); border: 1px solid var(--border-color); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); min-width: 0; }
.rep-kpi-titulo { font-size: 12.5px; font-weight: 600; color: var(--text-light); }
.rep-kpi-valor { font-size: 28px; font-weight: 700; line-height: 1.1; color: var(--text-dark); font-variant-numeric: tabular-nums; }
.rep-kpi-valor small { font-size: 15px; font-weight: 600; color: var(--text-muted); }
/* solo se pinta la cifra que pide atención */
.rep-kpi-valor.bajo { color: #b91c1c; }
.rep-kpi-contexto { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; }

/* Grillas y tarjetas */
.rep-grilla-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.rep-grilla-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.rep-tarjeta { background: var(--white); border: 1px solid var(--border-color); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 16px 18px; min-width: 0; }
.rep-panel > .rep-tarjeta { margin-bottom: 16px; }
.rep-tarjeta-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.rep-tarjeta-cab h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--text-dark); }
.rep-nota { font-size: 12px; color: var(--text-muted); }
p.rep-nota { margin: 6px 0; font-size: 13px; }

/* Hallazgos */
.rep-hallazgos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rep-hallazgos li { position: relative; padding: 8px 12px 8px 30px; border-radius: var(--radius-md); background: #f1f5f9; font-size: 13.5px; line-height: 1.45; color: var(--text-dark); }
.rep-hallazgos li::before { content: ''; position: absolute; left: 12px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
/* el nivel lo marca el punto; el fondo es el mismo para todos */
.rep-hallazgos li.alto::before { background: var(--rep-alto); }
.rep-hallazgos li.medio::before { background: var(--rep-medio); }
.rep-hallazgos li.bajo::before { background: var(--rep-bajo); }

/* Tablas */
.rep-tabla-scroll { overflow-x: auto; }
.rep-tabla { width: 100%; border-collapse: collapse; font-size: 13px; }
.rep-tabla th { text-align: left; font-size: 12px; font-weight: 700; color: var(--text-light); padding: 6px 8px; border-bottom: 1px solid var(--border-color); white-space: nowrap; }
.rep-tabla td { padding: 8px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; color: var(--text-dark); }
.rep-tabla tr:last-child td { border-bottom: 0; }
.rep-tabla .fuerte { font-weight: 600; }
.rep-tabla .sub { display: block; font-size: 11.5px; font-weight: 400; color: var(--text-muted); }
.rep-tabla .num, .rep-tabla th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rep-tabla .centro, .rep-tabla th.centro { text-align: center; }
.rep-tabla .rank { width: 28px; font-weight: 700; color: var(--text-muted); }
.rep-tabla-compacta td { padding: 6px 8px; }
.rep-celda-barra { width: 42%; min-width: 140px; }
.rep-vencida { color: var(--rep-bajo); font-weight: 600; }

/* Barras */
.rep-barra { display: flex; align-items: center; gap: 8px; }
.rep-barra-pista { flex: 1; height: 8px; background: var(--rep-pista); border-radius: 999px; overflow: hidden; }
.rep-barra-pista span { display: block; height: 100%; border-radius: 999px; background: var(--primary); transition: width .4s ease; }
.rep-barra-pista span.alto { background: var(--rep-alto); }
.rep-barra-pista span.medio { background: #f59e0b; }
.rep-barra-pista span.bajo { background: var(--rep-bajo); }
.rep-barra b { min-width: 38px; text-align: right; font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--text-dark); }

/* Chips de nivel, criticidad y conteos */
.rep-nivel { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: #f1f5f9; color: var(--text-light); white-space: nowrap; }
.rep-nivel.alto { background: #dcfce7; color: #166534; }
.rep-nivel.medio { background: #fef3c7; color: #92400e; }
.rep-nivel.bajo { background: #fee2e2; color: #991b1b; }
.rep-nivel.na { background: #f1f5f9; color: #64748b; }
.rep-criticidad { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: #f1f5f9; color: #475569; white-space: nowrap; }
.rep-criticidad.critico { background: #fee2e2; color: #991b1b; }
.rep-criticidad.alto { background: #ffedd5; color: #9a3412; }
.rep-criticidad.medio { background: #fef3c7; color: #92400e; }
.rep-criticidad.bajo { background: #dcfce7; color: #166534; }
.rep-cuenta { display: inline-block; min-width: 26px; padding: 1px 7px; border-radius: 6px; text-align: center; font-weight: 700; background: #f1f5f9; color: var(--text-muted); }
.rep-cuenta.bajo { background: #fee2e2; color: #991b1b; }
.rep-cuenta.medio { background: #fef3c7; color: #92400e; }

/* Barra apilada de respuestas */
.rep-apilada { display: flex; height: 22px; border-radius: 6px; overflow: hidden; background: var(--rep-pista); gap: 2px; }
.rep-apilada span { display: block; }
.rep-apilada .alto, .rep-apilada-leyenda i.alto { background: var(--rep-alto); }
.rep-apilada .medio, .rep-apilada-leyenda i.medio { background: #f59e0b; }
.rep-apilada .bajo, .rep-apilada-leyenda i.bajo { background: var(--rep-bajo); }
.rep-apilada .na, .rep-apilada-leyenda i.na { background: #cbd5e1; }
.rep-apilada-leyenda { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 13px; color: var(--text-light); }
.rep-apilada-leyenda span { display: inline-flex; align-items: center; gap: 6px; }
.rep-apilada-leyenda i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.rep-apilada-leyenda b { color: var(--text-dark); }

/* Cabecera del proveedor: clara, como el resto de las tarjetas (sin franja oscura ni degradé) */
.rep-proveedor { padding: 16px 18px; margin-bottom: 14px; background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-lg); color: var(--text-dark); }
.rep-proveedor h2 { margin: 0 0 8px; font-size: 20px; font-weight: 700; color: var(--text-dark); }
.rep-proveedor-datos { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--text-light); align-items: center; }
.rep-proveedor-datos a { color: var(--primary); }

/* Respuestas por dominio */
.rep-dominio { border: 1px solid var(--border-color); border-radius: var(--radius-md); margin-bottom: 8px; overflow: hidden; }
.rep-dominio summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; font-weight: 600; font-size: 13.5px; background: var(--bg-light); list-style: none; }
.rep-dominio summary::-webkit-details-marker { display: none; }
.rep-dominio summary::before { content: 'chevron_right'; font-family: 'Material Icons'; display: inline-block; font-size: 18px; color: var(--text-muted); transition: transform .15s; margin-right: -4px; }
.rep-dominio[open] summary::before { transform: rotate(90deg); }
.rep-dominio summary span:first-of-type { flex: 1; }
.rep-dominio .rep-tabla { margin: 4px 0; }
.rep-dominio .rep-tabla td { padding-left: 14px; padding-right: 14px; }

/* Mapa de calor del comparativo */
.rep-calor { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: 13px; }
.rep-calor th { font-size: 11.5px; font-weight: 700; color: var(--text-light); padding: 6px; text-align: center; vertical-align: bottom; min-width: 80px; }
.rep-calor th.dominio, .rep-calor td.dominio { text-align: left; min-width: 180px; }
.rep-calor td { text-align: center; padding: 8px 6px; border-radius: 6px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rep-calor td.dominio { font-weight: 600; color: var(--text-dark); }
/* display y padding: la clase global .vacio (estado vacío, componentes.css) convertía la celda en un bloque flex y descuadraba la tabla */
.rep-calor td.vacio { display: table-cell; padding: 8px 6px; background: #f8fafc; color: var(--text-muted); font-weight: 400; }
.rep-calor td.prom { background: #eff6ff; color: #1e3a8a; }
/* Comparativo por tema: debajo del proveedor, la evaluación usada; debajo del puntaje, cuántas preguntas lo forman */
.rep-calor .sub { display: block; font-size: 11px; font-weight: 400; margin-top: 2px; }
.rep-calor th .sub { color: var(--text-muted); }
.rep-calor td .sub { color: inherit; opacity: .85; }
.rep-leyenda { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12px; color: var(--text-light); }
.rep-leyenda span { display: inline-flex; align-items: center; gap: 5px; }
.rep-leyenda i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* Gráficos */
.rep-grafico { position: relative; height: 240px; }

/* Estados vacíos y de carga */
.rep-vacio { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 48px 24px; background: var(--white); border: 1px dashed #cbd5e1; border-radius: var(--radius-lg); color: var(--text-light); font-size: 14px; }
.rep-vacio > .material-icons { font-size: 40px; color: #93c5fd; }
.rep-vacio strong { font-size: 17px; color: var(--text-dark); }
.rep-vacio > span { max-width: 560px; line-height: 1.5; }
.rep-atajos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; }
.rep-atajos > span { width: 100%; color: var(--text-muted); font-size: 12px; }
.rep-atajo { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--border-color); border-radius: 999px; background: var(--white); font-size: 13px; color: var(--text-dark); cursor: pointer; transition: var(--transition); }
.rep-atajo:hover { border-color: var(--primary); background: #eff6ff; }
.rep-atajo b.alto { color: var(--rep-alto); } .rep-atajo b.medio { color: var(--rep-medio); } .rep-atajo b.bajo { color: var(--rep-bajo); }
.rep-pasos { display: inline-flex; flex-direction: column; gap: 8px; text-align: left; margin: 10px 0 0; padding: 0; list-style: none; counter-reset: paso; }
.rep-pasos li { counter-increment: paso; display: flex; align-items: center; gap: 10px; }
.rep-pasos li::before { content: counter(paso); display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #eff6ff; color: var(--primary); font-weight: 700; font-size: 12px; flex-shrink: 0; }
.rep-pasos li.hecho { color: var(--text-muted); text-decoration: line-through; }
.rep-pasos li.hecho::before { content: '✓'; background: #dcfce7; color: var(--rep-alto); }
.rep-cargando { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 60px; color: var(--text-muted); font-size: 14px; }
.rep-cargando span { width: 18px; height: 18px; border: 2px solid #dbeafe; border-top-color: var(--primary); border-radius: 50%; animation: rep-girar .7s linear infinite; }
@keyframes rep-girar { to { transform: rotate(360deg); } }

@media (max-width: 1200px) {
    .rep-kpis, .rep-kpis-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rep-grilla-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
    .rep-grilla-2 { grid-template-columns: minmax(0, 1fr); }
    .rep-acciones { margin-left: 0; }
    .multi-select-dropdown, .multi-select-menu { width: 100%; }
}
.rep-grilla-3 .rep-tarjeta-cab { flex-direction: column; gap: 2px; }
.rep-atajo, .rep-dominio summary { font-family: inherit; }
/* Listas largas (evaluaciones y tareas del proveedor): alto acotado con encabezado fijo */
.rep-listas .rep-tabla-scroll { max-height: 440px; overflow-y: auto; }
.rep-listas .rep-tabla thead th { position: sticky; top: 0; background: var(--white); z-index: 1; }
.rep-listas .rep-celda-barra { min-width: 110px; width: 30%; }
.rep-calor { table-layout: fixed; } .rep-calor th.dominio { width: 220px; } .rep-calor th:last-child { width: 90px; }
