/* layout.css — rediseño 2026-09-20 (se carga DESPUÉS de styles.css y manda sobre él):
   menú lateral, una barra de controles ordenada por hoja, menos texto, y celular. */

/* ── Layout: menú lateral fijo + contenido ── */
#app:not([hidden]) { display: grid; grid-template-columns: 216px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--card); border-right: 1px solid var(--line); overflow-y: auto; z-index: 40; }
.sidebar .brand-row { padding: 16px 16px 12px; gap: 10px; font-size: 15px; }
.sidebar .brand-row > div { display: flex; flex-direction: column; line-height: 1.15; }
.sidebar .brand-row .muted { font-size: 9.5px; }
.sidebar .logo { width: 34px; height: 34px; border-radius: 0; }
.sidebar .tabs { flex-direction: column; flex-wrap: nowrap; gap: 0; flex: 1; overflow: visible; }
.sidebar .tabs .grupo { align-self: stretch; margin: 16px 16px 4px; font-size: 9.5px; }
.sidebar .tab { text-align: left; padding: 8px 16px; border: 0; border-left: 3px solid transparent; font-family: var(--sans); font-size: 13.5px; letter-spacing: 0; text-transform: none; color: #3D4C51; white-space: nowrap; }
.sidebar .tab:hover { background: var(--soft); color: var(--ink); }
.sidebar .tab.active { border-left-color: var(--ink); background: var(--soft); color: var(--ink); font-weight: 700; }
.side-pie { border-top: 1px solid var(--line); padding: 6px 0 10px; }
.side-pie .user-row { padding: 6px 16px 0; justify-content: space-between; font-size: 12px; }
#btn-ayuda { width: 100%; font-size: 12.5px; color: var(--muted); }
#btn-ayuda.on { color: var(--ink); font-weight: 700; }
.contenido { min-width: 0; }
.topbar-movil, .nav-inferior, .velo { display: none; }
.global-bar { top: 0; padding: 8px 24px; }
.vista { padding: 22px 24px 64px; max-width: 1560px; margin: 0; }

/* ── Menos texto: quedan los títulos. "ⓘ Explicaciones" (menú) las vuelve a mostrar. ──
   Lo que es DATO y no explicación lleva la clase .dato y no se esconde. */
body:not(.ver-ayuda) .vista-head > .muted.small, body:not(.ver-ayuda) .vista-head > .sobre,
body:not(.ver-ayuda) .dash-head > p, body:not(.ver-ayuda) .dash-head > .sobre,
body:not(.ver-ayuda) .vista p.muted.small:not(.dato), body:not(.ver-ayuda) .vista .tabla-wrap + .muted.small:not(.dato),
body:not(.ver-ayuda) .vista table + .muted.small,
body:not(.ver-ayuda) #g-nota { display: none; }
/* El rótulo junto al título de una sección (.sec-h > .rotulo) ya NO se esconde (2026-11-04): casi siempre es la leyenda
   del gráfico ("┄ promedio 12M", "% mensual · ┄ objetivo") o un conteo, es decir, dato. */
.vista-head, .dash-head { border-bottom: 0; padding-bottom: 0; margin-bottom: 12px; }
.vista h1, .dash-head h1 { font-size: 24px; margin: 0 0 4px; line-height: 1.15; }
.estado-linea { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .02em; }

/* ── Controles: una sola barra por hoja, grupos con rótulo, todo a la misma altura ── */
.filtros, .togs, .togs:first-of-type { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 0; padding: 9px 12px; background: var(--card); border: 1px solid var(--line); }
.filtros + .filtros, .togs + .togs, .filtros + .togs, .togs + .filtros { border-top: 0; }
.filtros, .togs { margin-bottom: 14px; }
.filtros:has(+ .filtros), .togs:has(+ .togs) { margin-bottom: 0; }
.vista-head + .filtros, .dash-head .togs:first-of-type { margin-top: 10px; }
.ctl { display: inline-flex; align-items: center; gap: 0; }
.ctl > .ctl-l { margin-right: 7px; }
.ctl > .ctl-l, .filtros label, .togs label { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.filtros label.check, .togs label.check { font-size: 11px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.segmento button, .tog, .filtros select, .filtros input, .togs input[type=date], .filtros .btn-sec { height: 30px; padding-top: 0; padding-bottom: 0; line-height: 28px; box-sizing: border-box; }
.filtros input[type=checkbox], .togs input[type=checkbox] { height: auto; }
.ctl .tog + .tog { margin-left: -1px; }
.togs .sep { display: none; }
.metricas { margin: 0 0 16px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); }

/* ── Celular y tablet angosta ── */
@media (max-width: 900px) {
    #app:not([hidden]) { display: block; padding-bottom: 58px; }
    .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 264px; transform: translateX(-100%); transition: transform .18s ease; box-shadow: 0 0 40px rgba(0, 0, 0, .25); }
    body.menu-abierto .sidebar { transform: none; }
    body.menu-abierto .velo { display: block; position: fixed; inset: 0; background: rgba(15, 22, 24, .45); z-index: 35; }
    .sidebar .tab { padding: 12px 18px; font-size: 15px; }
    .topbar-movil { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 12px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 21; }
    .topbar-movil b { flex: 1; font-size: 15px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .topbar-movil button { border: 0; background: none; font-size: 22px; line-height: 1; padding: 6px 8px; cursor: pointer; color: var(--ink); }
    .topbar-movil .logo { width: 26px; height: 26px; }
    .nav-inferior { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; background: var(--card); border-top: 1px solid var(--line); z-index: 30; padding-bottom: env(safe-area-inset-bottom); }
    .nav-inferior button { border: 0; border-top: 2px solid transparent; background: none; padding: 7px 2px 8px; font-family: var(--sans); font-size: 10.5px; letter-spacing: 0; text-transform: none; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 1px; cursor: pointer; }
    .nav-inferior button i { font-style: normal; font-size: 18px; line-height: 1; }
    .nav-inferior .tab.active { color: var(--ink); border-top-color: var(--ink); border-bottom-color: transparent; font-weight: 700; }
    /* Barras de controles: una fila que se desliza con el dedo, no un muro de botones. */
    .global-bar { position: static; padding: 7px 12px; gap: 6px 12px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .global-bar::-webkit-scrollbar, .filtros::-webkit-scrollbar, .togs::-webkit-scrollbar { display: none; }
    .global-bar label, .global-bar .g-der, .filtros > *, .togs > * { flex: 0 0 auto; }
    .global-bar .g-der { margin-left: 0; }
    .filtros, .togs, .togs:first-of-type { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -12px; margin-right: -12px; border-left: 0; border-right: 0; }
    .filtros input[type=search] { min-width: 160px; width: auto; }
    .segmento button, .tog, .filtros select, .filtros input, .filtros .btn-sec { height: 36px; line-height: 34px; font-size: 12px; }
    .vista { padding: 14px 12px 40px; }
    .vista-head h1, .dash-head h1 { display: none; }   /* el título ya va en la barra de arriba */
    .vista-head, .dash-head { margin-bottom: 8px; }
    .vista h2 { font-size: 15px; margin-top: 20px; }
    .inicio-kpis, .semaforo, .hoy, .alertas, .kpis, .dos-col, .dos-col.par, .tres-col, .bridge-lineas, .veredictos { grid-template-columns: 1fr !important; }
    .ikpi .n { font-size: 28px; }
    .metricas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .metrica { border-left: 0 !important; padding-left: 0 !important; }
    .tabla-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-height: 70vh; }
    .tabla { font-size: 12px; }
    .tabla td, .tabla th { padding-left: 7px; padding-right: 7px; white-space: nowrap; }
    .tabla td:first-child, .tabla th:first-child { position: sticky; left: 0; background: var(--card); z-index: 1; }
    /* VALLE-62: la esquina (encabezado de la columna fija) va sobre los demás encabezados al deslizar, con su fondo de encabezado. */
    .tabla thead th:first-child { z-index: 3; background: #F8FAFC; }
    .alerta .acciones button { padding: 7px 10px; }
    .card.pad { padding: 12px; }
    .panel { width: 100vw; }
    .sug-acc .btn, .sug-acc .btn-sec { flex: 1 1 100%; }
}
@media print { .sidebar, .nav-inferior, .topbar-movil, .global-bar { display: none !important; } #app:not([hidden]) { display: block; } }

/* ── Bandeja de órdenes de compra (Notas de venta → Órdenes de compra) ── */
.oc-drop { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border: 1.5px dashed var(--line); }
.oc-drop.sobre { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--card)); }
.oc-drop label.btn { cursor: pointer; }
.oc-tabla tr.oc-det > td { background: var(--soft); padding: 10px 12px; text-align: left; white-space: normal; }
/* El detalle no ensancha la tabla: width 0 + min-width 100 % lo deja fuera del ancho intrínseco de la celda. */
.oc-det-in { width: 0; min-width: 100%; }
.oc-det-in .card { box-shadow: none; }
.oc-tabla td { white-space: normal; }
.oc-tabla td.mono, .oc-tabla .nowrap, .oc-tabla .badge, .oc-det-in .btn-sec { white-space: nowrap; }
.oc-tabla td.izq:nth-last-child(5) { min-width: 180px; }
.oc-det-in ul li { margin: 2px 0; }
@media (max-width: 900px) {
    /* En el celular la tabla se desliza; el detalle queda fijo al ancho de la pantalla. */
    .oc-det-in { position: sticky; left: 0; width: calc(100vw - 56px); min-width: 0; }
    .oc-det-in .dos-col { grid-template-columns: 1fr; }
}

/* ── Objetivos = metas del mes (2026-10-08) ── */
.aviso-metas { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; padding: 10px 14px; border-radius: var(--radio, 12px);
    background: color-mix(in srgb, var(--warn) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--card)); color: var(--ink); }
.aviso-metas .am-t { flex: 1; min-width: 200px; font-weight: 600; }
.aviso-metas svg { color: var(--warn); }
.ob-mes { padding: 0 8px; text-transform: capitalize; }
.ob-fijar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.ob-total { border-top: 4px solid var(--ink); margin-top: 12px; }
.ob-total h2 { font-size: 22px; }
.ob-total-k { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 10px 0 8px; }
.ob-k { border-left: 3px solid var(--line); padding-left: 12px; }
.ob-k.k-venta { border-left-color: var(--c-venta); } .ob-k.k-ton { border-left-color: var(--c-ton); } .ob-k.k-precio { border-left-color: var(--c-precio); }
.ob-n { font-size: 34px; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; margin: 2px 0 6px; font-variant-numeric: tabular-nums; }
.ob-n2 { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ob-chips { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.ob-chips .kpi-chip { font-size: 11px; }
.ob-avance { display: flex; align-items: center; gap: 10px; margin: 8px 0 4px; flex-wrap: wrap; }
.ob-barra { flex: 0 0 180px; height: 8px; border-radius: 4px; background: var(--soft); border: 1px solid var(--line); overflow: hidden; }
.ob-barra i { display: block; height: 100%; background: var(--brand); }
.ob-areas { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
.ob-area { border-left: 4px solid var(--area); }
.ob-campos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
.ob-campo .rotulo { display: block; margin-bottom: 4px; }
.ob-input { width: 100%; max-width: 180px; font-size: 20px; font-weight: 700; padding: 4px 8px; height: 38px; font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.ob-resumen { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; margin-bottom: 10px; }
.ob-r.falta .ob-n2 { color: var(--warn); } .ob-r.sobra .ob-n2 { color: var(--pos); }
.ob-tabla tr.total td { border-top: 2px solid var(--line); font-weight: 600; }
.ob-tabla input.fijo { border-color: var(--brand); }
@media (max-width: 900px) {
    .ob-total-k, .ob-campos { grid-template-columns: 1fr; }
    .ob-n { font-size: 28px; }
}

/* ── Inicio · Venta diaria (2026-10-08) ── */
.diaria { margin-top: 12px; }
.diaria-k { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 8px 0; }
.diaria .dk { border-left: 3px solid var(--line); padding-left: 12px; }
.diaria .dk.k-venta { border-left-color: var(--c-venta); }
.diaria .dk.dk-alerta { border-left-color: var(--warn); }
.diaria .dk-n { font-size: 26px; font-weight: 700; line-height: 1.15; margin: 2px 0 4px; font-variant-numeric: tabular-nums; }
.diaria .dk-n small { font-size: 13px; font-weight: 500; color: var(--muted); }
.diaria .dk-s { font-size: 12px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.diaria .dk-s .dk-linea { flex-basis: 100%; }
.diaria-l { font-weight: 600; font-size: 13px; margin: 2px 0 6px; }
.diaria-l.pos { color: var(--pos); } .diaria-l.warn { color: var(--warn); } .diaria-l.neg { color: var(--neg); }
.diaria-ley { gap: 14px; margin-top: 2px; } .diaria-ley .ley-obj { color: var(--ink); font-weight: 600; } .diaria-ley .ley-nec { color: var(--neg); }
@media (max-width: 900px) { .diaria-k { grid-template-columns: 1fr; } }

/* Asistente (Claude), vistas/asistente.js — dos columnas: chat | por confirmar · registrado · conversaciones.
   Una sola escala: texto 14 px (Archivo), secundario 12,5 px, rótulos mono 10,5 px en mayúscula. */
.as-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.as-chat { display: flex; flex-direction: column; height: calc(100vh - 150px); min-height: 460px; padding: 0; overflow: hidden; }
.as-chat-h { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); min-height: 48px; }
.as-titulo { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-rot { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.as-sec { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.as-mini { height: 28px; padding: 0 10px; font-size: 12.5px; }
.as-hilo { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 1.5; }
.as-msg { max-width: 80%; padding: 10px 14px; border-radius: 14px; overflow-wrap: anywhere; }
.as-msg p { margin: 0 0 8px; } .as-msg p:last-child { margin-bottom: 0; }
.as-msg ul, .as-msg ol { margin: 0 0 8px; padding-left: 20px; } .as-msg li { margin: 2px 0; }
.as-msg code { font-family: var(--mono); font-size: 12.5px; }
.as-msg.yo { align-self: flex-end; background: var(--brand, var(--info)); color: #fff; border-bottom-right-radius: 4px; }
.as-msg.el { align-self: flex-start; background: var(--soft); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.as-piensa { color: var(--muted); } .as-piensa ul { margin: 6px 0 0; font-size: 12.5px; }
.as-punto { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--brand, var(--info)); animation: as-lat 1s infinite alternate; }
@keyframes as-lat { from { opacity: .25; } to { opacity: 1; } }
.as-tabla { overflow-x: auto; margin: 4px 0 8px; }
.as-tabla table { border-collapse: collapse; font-size: 13px; min-width: 50%; }
.as-tabla th { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; text-align: left; padding: 4px 12px 6px 0; border-bottom: 1px solid var(--line); }
.as-tabla td { padding: 5px 12px 5px 0; border-bottom: 1px solid var(--line); }
.as-tabla td.n, .as-tabla th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.as-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-size: 12.5px; cursor: pointer; }
.as-chip .ico { width: 15px; height: 15px; color: var(--muted); } .as-chip:hover { border-color: var(--brand, var(--info)); }
.as-est { color: var(--muted); } .as-est.warn { color: var(--warn); font-weight: 600; } .as-est.pos { color: var(--pos); font-weight: 600; }
.as-inicio { display: flex; flex-direction: column; gap: 8px; align-items: stretch; max-width: 560px; }
.as-sug { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.as-sug:hover { border-color: var(--brand, var(--info)); }
.as-form { display: flex; gap: 10px; align-items: flex-end; padding: 12px 16px; border-top: 1px solid var(--line); }
.as-form textarea { flex: 1; resize: none; min-height: 46px; max-height: 160px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; font-size: 14px; line-height: 1.4; }
.as-form .btn { height: 46px; padding: 0 18px; }
.as-panel { display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 150px); overflow-y: auto; }
.as-bloque { background: var(--card); border: 1px solid var(--line); border-radius: var(--radio, 12px); box-shadow: var(--sombra, none); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.as-bloque-h { display: flex; align-items: center; gap: 8px; } .as-bloque-h .as-mini { margin-left: auto; }
.as-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--warn); color: #fff; font-size: 11.5px; font-weight: 700; display: inline-grid; place-items: center; }
.as-vacio-p { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.as-prop { border: 1px solid var(--line); border-left: 3px solid var(--warn); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; transition: box-shadow .3s; }
.as-prop.marca { box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 35%, transparent); }
.as-prop-cab { display: flex; align-items: center; gap: 6px; } .as-prop-cab .ico { width: 15px; height: 15px; color: var(--muted); } .as-prop-cab .as-sec { margin-left: auto; font-size: 11.5px; }
.as-prop-t { font-size: 14px; font-weight: 600; line-height: 1.35; }
.as-prop-l { color: var(--ink); line-height: 1.4; }
.as-avisos { margin: 2px 0 0; padding-left: 16px; color: var(--warn); font-size: 12.5px; line-height: 1.4; }
.as-prop-b { display: flex; gap: 8px; margin-top: 6px; } .as-prop-b .btn, .as-prop-b .btn-sec { height: 30px; padding: 0 14px; font-size: 12.5px; }
.as-lista { display: flex; flex-direction: column; }
.as-reg, .as-conv { display: flex; align-items: flex-start; gap: 8px; width: 100%; padding: 8px 6px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; border-radius: 0; }
.as-lista > :first-child { border-top: 0; }
.as-reg .ico { width: 16px; height: 16px; color: var(--pos); flex: none; margin-top: 2px; }
.as-reg span, .as-conv { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.as-reg b, .as-conv b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-reg small, .as-conv small { font-size: 12px; color: var(--muted); }
.as-reg:hover, .as-conv:hover { background: var(--soft); } .as-conv.on b { color: var(--brand-ink, var(--info)); }
.asis-uso { color: var(--muted); font-size: 12.5px; }
@media (max-width: 1100px) { .as-grid { grid-template-columns: minmax(0, 1fr) 300px; } }
@media (max-width: 900px) {
    .as-grid { grid-template-columns: 1fr; }
    .as-chat { height: calc(100vh - 230px); min-height: 420px; }
    /* En el celular el panel se deshace: lo pendiente va ARRIBA del chat (si hay), lo demás debajo. */
    .as-panel { display: contents; }
    .as-chat { order: 1; } .as-bloque { order: 2; } .as-pend.tiene { order: 0; } .as-pend:not(.tiene) { display: none; }
    .as-msg { max-width: 92%; }
}

/* Notas de venta › Resumen (VALLE-52): barras por estado y leyenda de los gráficos apilados */
.nv-barras { display: grid; gap: 10px; }
.nv-barra { display: grid; grid-template-columns: 112px 1fr auto; gap: 2px 10px; align-items: center; }
.nv-barra .muted.mini { grid-column: 2 / 4; }
.nv-b-pista { display: block; height: 10px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.nv-b-pista i { display: block; height: 100%; border-radius: 999px; }
.nv-b-val { font-variant-numeric: tabular-nums; min-width: 64px; text-align: right; }
.ley-k { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
/* Composición del embudo por área y cobertura de la meta (VALLE-55) */
.nv-comp { display: grid; gap: 10px; margin: 10px 0 14px; }
#nv-comp, #nv-cob { min-width: 0; }
.nv-comp-fila { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; align-items: center; }
.nv-comp-l { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
.nv-comp-l b { color: var(--ink); font-size: 14px; font-variant-numeric: tabular-nums; }
.nv-comp-barra { display: flex; height: 26px; border-radius: 6px; overflow: hidden; background: var(--soft); gap: 2px; }
.nv-comp-barra i { display: flex; align-items: center; justify-content: center; min-width: 2px; font-style: normal; font-size: 11px; font-weight: 600; color: #fff; text-shadow: 0 0 2px rgba(0,0,0,.45); }
.nv-cob-pista { position: relative; display: flex; height: 14px; border-radius: 4px; background: var(--soft); }
.nv-cob-pista i { display: block; height: 100%; }
.nv-cob-pista i:first-child { border-radius: 4px 0 0 4px; }
.nv-cob-meta { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--neg); border-radius: 1px; }
.ley-k.nv-cob-meta-k { width: 2px; background: var(--neg); }
.nv-barra.nv-cob { grid-template-columns: 112px minmax(0, 1fr) auto; }
.nv-cob .muted.mini { min-width: 0; overflow-wrap: anywhere; }
.nv-cob-total { border-top: 1px solid var(--line); padding-top: 8px; }
@media (max-width: 900px) { .nv-barra { grid-template-columns: 96px 1fr auto; } .nv-comp-fila { grid-template-columns: 84px minmax(0, 1fr); } .nv-barra.nv-cob { grid-template-columns: 96px minmax(0, 1fr) auto; } }

/* Inicio › Pedidos del mes por área (VALLE-56): dona chica + leyenda con % + tres lecturas */
.in-emb { margin-top: 12px; }
.in-emb-cuerpo { display: grid; grid-template-columns: 170px minmax(0, 1fr) minmax(0, 1.35fr); gap: 14px 28px; align-items: center; margin-top: 8px; }
.in-emb-graf { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.in-emb-graf .segmento button { padding: 3px 10px; font-size: 12px; }
.graf-dona { position: relative; width: 150px; height: 150px; }
.in-emb-ley { display: grid; gap: 9px; }
.in-emb-fila { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto 64px; gap: 8px; align-items: center; font-size: 13px; }
.in-emb-fila b { font-size: 16px; font-variant-numeric: tabular-nums; }
.in-emb-fila .muted { font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.in-emb-lect { display: grid; gap: 8px; }
.in-emb-lect p { margin: 0; font-size: 13px; line-height: 1.45; border-left: 3px solid var(--line); padding-left: 12px; }
@media (max-width: 900px) { .in-emb-cuerpo { grid-template-columns: 1fr; } .in-emb-ley { max-width: 420px; width: 100%; justify-self: center; } }

/* Metas › Seguimiento (VALLE-64): compañía, áreas, clientes y productos contra la meta, con las semanas del mes. */
.ms-estado { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .02em; margin: 4px 0 12px; }
.ms-tabla th.ms-s, .ms-tabla td.ms-s { min-width: 72px; font-size: 11.5px; white-space: nowrap; }
.ms-tabla th.ms-s .mini { font-weight: 400; text-transform: none; letter-spacing: 0; }
.ms-tabla td.ms-s .mini { display: block; font-size: 10.5px; }
.ms-tabla td.ms-s.ms-act { background: var(--soft); }
.ms-tabla td.ms-fut { color: var(--muted); font-size: 10.5px; }
.ms-tabla tr.ms-critico td.izq > b, .ms-tabla tr.ms-critico td.izq a b { color: var(--neg); }
.ms-tabla tr.total td { border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); font-weight: 600; }
.ms-tabla .punto { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.ms-tabla .acciones-com { flex-wrap: nowrap; justify-content: flex-end; }
.ms-chips { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 11px; margin-top: 2px; font-weight: 400; }
.ob-n2.pos { color: var(--pos); } .ob-n2.neg { color: var(--neg); }
