/* Optimizo · Analítica (V03). Solo estilos propios de esta sección; los colores salen de tokens.css. */
#an-datos { display: grid; gap: 20px; }
.an-kpis { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.an-fila { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.an-sim { display: inline-flex; align-items: center; gap: 10px; font-size: var(--opt-text-sm); font-weight: 500; color: var(--opt-text); cursor: pointer; }
.an-zonas { list-style: none; padding: 0; display: grid; gap: 4px; }
.an-zona { display: grid; grid-template-columns: minmax(120px, 1.2fr) minmax(60px, 2fr) 44px; gap: 12px; align-items: center; padding: 8px 6px; border-radius: var(--opt-radius-control); color: inherit; }
.an-zona:hover { background: var(--opt-surface-raised); }
.an-zona-n { display: grid; gap: 2px; min-width: 0; }
.an-zona-n b { font-weight: 600; color: var(--opt-heading); font-size: var(--opt-text-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-zona-n small { font-size: var(--opt-text-xs); color: var(--opt-text-secondary); }
.an-zona .riel { background: var(--opt-surface-inset); border-radius: 4px; height: 20px; overflow: hidden; }
.an-zona .riel i { display: block; height: 100%; border-radius: 4px; background: var(--opt-accent); }
.an-zona > b { text-align: right; color: var(--opt-heading); }
.an-tabla th.num, .an-tabla td.num { text-align: right; }
.an-tabla td small, .an-tabla th small { display: block; font-weight: 400; font-size: 11.5px; color: var(--opt-text-secondary); }
.an-tabla td { font-size: var(--opt-text-sm); }
.an-a { color: var(--opt-accent-text); font-weight: 600; }
.an-a:hover { text-decoration: underline; text-underline-offset: 3px; }
.an-h3 { margin: 18px 0 8px; }
.an-nota { display: flex; gap: 6px; align-items: flex-start; margin-top: 12px; font-size: var(--opt-text-xs); color: var(--opt-text-secondary); }
.an-nota .ic { margin-top: 2px; flex: none; }
.an-imp-fecha { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 14px 0 10px; font-size: var(--opt-text-sm); }
.an-motivos { margin: 0 0 10px 18px; font-size: var(--opt-text-sm); color: var(--opt-warning); }
.an-imp-t th[scope=row] { background: none; color: var(--opt-text); font-weight: 500; }
.an-dif { margin-top: 10px; font-weight: 600; color: var(--opt-heading); }
.an-acc-sel { max-width: 460px; }
.an-acc-sel select { min-width: 0; max-width: 400px; text-overflow: ellipsis; }
.an-metodo:focus { outline: none; }
.an-metodo:focus-visible { outline: 2px solid var(--opt-focus); outline-offset: 2px; }
.an-metodo .card-head h2 .ic { color: var(--opt-accent-text); }
.an-defs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px 28px; }
.an-defs dt { font-weight: 600; color: var(--opt-heading); font-size: var(--opt-text-sm); }
.an-defs dd { margin: 3px 0 0; font-size: var(--opt-text-xs); color: var(--opt-text-secondary); line-height: 1.5; }
.an-excluye { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: var(--opt-radius-control); background: var(--opt-info-soft); font-size: var(--opt-text-sm); color: var(--opt-text); }
.an-excluye .ic { margin-top: 3px; flex: none; color: var(--opt-info); }
.an-metodo h3 { margin-top: 16px; }
.an-notas { margin: 6px 0 0 18px; font-size: var(--opt-text-sm); color: var(--opt-text-secondary); display: grid; gap: 4px; }
@media (max-width: 1399px) { .an-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1099px) { .an-fila { grid-template-columns: minmax(0, 1fr); } }
.an-sim small { font-size: var(--opt-text-xs); font-weight: 400; color: var(--opt-text-secondary); }
