/* ============================================================================
   Leads — estilos propios. La base (tokens, shell B, botones, tarjetas, tablas,
   avisos, modales) es ciso-ui.css de guia-estilos, sin tocar. Aquí van las
   piezas del diseño de Leads que no están en el sistema común.
   Sin style="" en las vistas (CSP sin 'unsafe-inline'): los anchos y alturas
   dinámicos viajan en data-w / data-h / data-l / data-top / data-b y los
   aplica public/js/app.js.
   Regla 1 del estándar: ningún color de marca fuera de :root (ciso-ui.css).
   ========================================================================== */

body { margin: 0; background: var(--cream); }
.cv a { color: var(--navy); text-decoration: none; }
.cv a:hover { color: var(--gold); }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 2000; background: var(--gold); color: var(--gold-on); padding: 8px 14px; border-radius: var(--r); font-weight: 700; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ── Utilidades ─────────────────────────────────────────────────────────── */
.grow { flex: 1; min-width: 0; }
.min0 { min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.page > .stack { gap: 18px; }
.t11 { font-size: 11px; } .t12 { font-size: 12px; } .t13 { font-size: 13px; }
.sub { color: var(--sub); }
.fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; }
.c-navy { color: var(--navy); } .c-err { color: var(--err); } .c-ok { color: var(--ok); }
.fuerte-navy { font-weight: 700; color: var(--navy); }
.ta-r { text-align: right; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-155 { line-height: 1.55; }
.self-start { align-self: flex-start; }
.ml-auto { margin-left: auto; }
.mt-2 { margin-top: 2px; } .mt-3 { margin-top: 3px; } .mt-4 { margin-top: 4px; } .mt-6 { margin-top: 6px; }
.mt-10 { margin-top: 10px; } .mt-14 { margin-top: 14px; }
.mb-0 { margin-bottom: 0; } .mb-6 { margin-bottom: 6px; } .mb-8 { margin-bottom: 8px; } .mb-10 { margin-bottom: 10px; }
.mb-12 { margin-bottom: 12px; } .mb-14 { margin-bottom: 14px; } .mb-16 { margin-bottom: 16px; }
.w-110 { width: 110px !important; } .w-140 { width: 140px !important; }
.lbl-navy { color: var(--navy); }
.err-trace { overflow-x: auto; text-align: left; font-size: 12px; margin-top: 16px; }
.mob-only { display: none; }

/* ── Shell: extras del diseño ───────────────────────────────────────────── */
.shell-op .sb-demo { margin: 0 6px; padding: 7px 10px; border: 1px dashed color-mix(in srgb, var(--navy-on) 25%, transparent); border-radius: var(--r); font-size: 11px; line-height: 1.4; color: color-mix(in srgb, var(--navy-on) 65%, transparent); }
.shell-op .sb-demo strong { color: var(--gold-light); }
.shell-op .sb-pill-wrap { padding: 0 6px; }
.shell-op .sb-pill-wrap .user-pill { cursor: default; white-space: normal; text-align: left; }
.shell-op .sb-mob-note { font-size: 11px; color: color-mix(in srgb, var(--navy-on) 45%, transparent); padding: 14px 12px; line-height: 1.5; }
.sidebar-backdrop { position: fixed; inset: 0; background: rgba(25, 47, 80, .5); z-index: 55; }
.app-badge-sm { font-size: 11px; padding: 4px 8px; }
.topbar-title { font-weight: 700; font-size: 15px; flex: 1; }
.topbar-rol { font-size: 11px; color: var(--gold-light); font-weight: 700; }

/* ── Login / 2FA ────────────────────────────────────────────────────────── */
.l-help { font-size: 12px; color: var(--sub); text-align: center; margin-top: 18px; line-height: 1.5; }
.l-help-top { margin: 0 0 16px; text-align: left; }
.l-foot { text-align: center; margin-top: 18px; }
.qr-box { display: grid; place-items: center; min-height: 180px; margin-bottom: 12px; }
.qr-box img, .qr-box canvas { width: 180px; height: 180px; }
.qr-secret { text-align: center; margin-bottom: 18px; display: flex; flex-direction: column; gap: 4px; }
.qr-secret code { font-size: 13px; color: var(--navy); word-break: break-all; }

/* ── Grillas de página ──────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 14px; align-items: start; }
.grid-2-460 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.kpi-foot-flat { border-top: 0; padding-top: 0; margin-top: 6px; }
.card-more { padding: 10px 18px; }
.card-760 { max-width: 760px; }
.empty-lg { padding: 56px 20px; }
.empty-sm { padding: 22px 18px; }
.pill-xs { font-size: 11px; padding: 2px 9px; }
.pill-sm { font-size: 11px; padding: 4px 11px; }
.sel-btn-xs { padding: 5px 10px; font-size: 11px; text-decoration: none; }
a.sel-btn { color: var(--sub); }
a.sel-btn.active { color: var(--sel-ink, #fff); }
.btn-lg { padding: 14px; font-size: 14px; }
.btn-icon { padding: 4px 8px; }
.fl-input-sm { width: auto; padding: 6px 10px; font-size: 12px; background-color: var(--white); }
.fl-textarea-sm { min-height: 64px; }
.chk-lg { accent-color: var(--navy); width: 16px; height: 16px; cursor: pointer; }
.row-off td { opacity: .55; }
.row-link { cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }

/* Filtros */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filter-bar .fl-select { background-color: var(--white); }
.search-box { position: relative; flex: 1 1 240px; max-width: 340px; }
.search-ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--sub); font-size: 14px; display: flex; }
.search-box .fl-input { padding: 7px 12px 7px 34px; font-size: 13px; background-color: var(--white); }
.range-form { display: flex; gap: 6px; align-items: center; }

/* Pestañas */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--gray); overflow-x: auto; }
.tab { border-bottom: 2px solid transparent; margin-bottom: -2px; padding: 10px 14px; font-size: 12px; font-weight: 700; color: var(--sub) !important; white-space: nowrap; }
.tab.active { border-bottom-color: var(--gold); color: var(--navy) !important; }

/* Series de gráficos (paleta categórica, estándar §gráficos) */
.c1 { background: var(--c1); } .c2 { background: var(--c2); } .c3 { background: var(--c3); }
.c4 { background: var(--c4); } .c5 { background: var(--c5); } .c6 { background: var(--c6); } .c-otros { background: var(--c-otros); }
.legend { display: flex; flex-wrap: wrap; gap: 12px 16px; font-size: 11px; color: var(--sub); align-items: center; }
.legend span { display: flex; align-items: center; gap: 5px; }
.sw { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.sw-line { width: 16px; height: 0; border-top: 2.5px solid var(--navy); display: inline-block; }
.sw-over { background: var(--err-soft); border: 1px solid var(--err); }

/* ── Inicio ─────────────────────────────────────────────────────────────── */
.ag-head { display: flex; align-items: center; justify-content: space-between; padding: 9px 18px; background: var(--cream); border-bottom: 1px solid var(--gray); }
.ag-head.tone-err .lbl, .ag-head.tone-err .ag-count { color: var(--err); }
.ag-head.tone-navy .lbl, .ag-head.tone-navy .ag-count { color: var(--navy); }
.ag-count { font-size: 11px; font-weight: 700; color: var(--sub); }
.ag-item { display: flex; gap: 12px; align-items: flex-start; padding: 11px 18px; border-bottom: 1px solid var(--gray); }
.ag-check { width: 16px; height: 16px; margin-top: 2px; border: 1.5px solid var(--gray-2); border-radius: 3px; background: var(--white); cursor: pointer; padding: 0; flex: none; }
.ag-check:hover { border-color: var(--navy); background: var(--navy-soft); }
.ag-ic { color: var(--navy-light); font-size: 15px; display: flex; margin-top: 1px; }
.ag-t { font-size: 13px; font-weight: 600; color: var(--text); }
.ag-sub { font-size: 12px; color: var(--sub); margin-top: 2px; }
.mini-wl { display: flex; flex-direction: column; gap: 12px; }
.mini-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 46px; gap: 10px; align-items: center; }
.mini-m { font-size: 12px; font-weight: 700; color: var(--navy); text-transform: capitalize; }
.mini-bar { position: relative; height: 12px; background: var(--cream-2); border-radius: 3px; display: flex; }
.mini-bar .seg:first-child { border-radius: 3px 0 0 3px; }
.mini-bar .seg-end { border-radius: 0 3px 3px 0; }
.mini-cap { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--navy); }
.mini-pct { font-size: 12px; font-weight: 700; text-align: right; color: var(--navy); }
.mini-pct.is-over { color: var(--err); }
.flag-row { display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 15px; border-bottom: 1px solid var(--gray); border-left: 3px solid transparent; }
.flag-err { border-left-color: var(--err); }
.flag-warn { border-left-color: var(--warn); }

/* ── Pipeline ───────────────────────────────────────────────────────────── */
.th-sort { color: inherit !important; display: inline-flex; align-items: center; gap: 4px; }
.next-err { color: var(--err); font-weight: 700; }
.next-today { color: var(--navy); font-weight: 700; }
.next-none { color: var(--sub); }
.idle-stale { color: var(--warn); font-weight: 700; }
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: 252px; gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.kb-col { background: var(--cream-2); border-radius: var(--r-card); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 460px; outline: none; }
.kb-col.is-over, .kb-zone.is-over { outline: 2px dashed var(--gold); outline-offset: -2px; }
.kb-head { padding: 2px 4px 9px; border-bottom: 2px solid var(--gray-2); }
.kb-title { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.kb-count { font-size: 11px; font-weight: 700; color: var(--sub); background: var(--white); border-radius: 10px; padding: 1px 8px; }
.kb-sums { display: flex; justify-content: space-between; gap: 6px; font-size: 11px; color: var(--sub); margin-top: 6px; }
.kb-sums strong { color: var(--text); }
.kb-empty { border: 1.5px dashed var(--gray-2); border-radius: var(--r); padding: 18px 10px; text-align: center; font-size: 11px; color: var(--sub); }
.kb-card { background: var(--white); border-radius: var(--r); box-shadow: var(--shadow-card); padding: 11px 12px 10px; border-left: 3px solid transparent; display: flex; flex-direction: column; gap: 7px; color: var(--text) !important; transition: box-shadow .2s; }
.kb-card:hover { box-shadow: 0 4px 16px rgba(25, 47, 80, .16); }
.kb-card[draggable="true"] { cursor: grab; }
.kb-card.is-dragging { opacity: .45; }
.kb-card.stripe-err { border-left-color: var(--err); }
.kb-card.stripe-warn { border-left-color: var(--warn); }
.kb-card-t { font-size: 13px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.kb-money { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.kb-uf { font-size: 14px; font-weight: 700; }
.kb-foot { display: flex; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px solid var(--gray); }
.kb-next { display: flex; align-items: center; gap: 5px; font-size: 11px; flex: 1; min-width: 0; }
.kb-avatar { width: 24px; height: 24px; border-radius: 7px; background: var(--navy-mid); color: var(--white); font-size: 10px; font-weight: 700; display: grid; place-items: center; flex: none; }
.kb-zones { display: flex; flex-direction: column; gap: 8px; }
.kb-zones-title { padding: 4px 4px 2px; }
.kb-zone { border: 1.5px dashed var(--gray-2); background: var(--white); border-radius: var(--r-card); padding: 14px 12px; display: flex; align-items: center; gap: 10px; min-height: 72px; }
.kb-zone.is-over { background: var(--gold-soft); border-color: var(--gold); }
.kb-zone-ic { font-size: 18px; display: flex; }
.tone-ok { color: var(--ok); } .tone-err { color: var(--err); } .tone-sub { color: var(--sub); }
.kb-hint { font-size: 11px; color: var(--sub); padding: 2px 4px; line-height: 1.5; }

/* ── Ficha del lead ─────────────────────────────────────────────────────── */
.lead-head { flex-wrap: wrap; align-items: flex-start; }
.lead-head-main { min-width: 0; flex: 1 1 320px; }
.lead-title { font-size: 21px; line-height: 1.25; }
.lead-sub { font-size: 13px; margin-top: 4px; }
.link-gold { color: var(--gold-light) !important; font-weight: 600; }
.tag-on-navy { background: var(--navy-mid); color: var(--white); }
.lead-head-side { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.prob { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.prob-value { font-size: 30px; }
.lead-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.steps-body { padding: 18px 14px 16px; }
.steps { display: flex; align-items: flex-start; overflow-x: auto; list-style: none; margin: 0; padding: 0; }
.step { flex: 1 1 0; min-width: 96px; position: relative; }
.step form { margin: 0; }
.step-btn { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 5px; background: none; border: 0; padding: 0; font-family: inherit; cursor: default; position: relative; }
button.step-btn { cursor: pointer; }
.step:not(:last-child)::after { content: ''; position: absolute; top: 13px; left: 50%; width: 100%; height: 2px; background: var(--gray-2); }
.step-done:not(:last-child)::after { background: var(--navy); }
.step-dot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; background: var(--white); border: 2px solid var(--gray-2); color: var(--sub); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.step-done .step-dot { background: var(--navy); border-color: var(--navy); color: var(--white); }
.step-cur .step-dot { background: var(--gold); border-color: var(--gold); color: var(--white); }
button.step-btn:hover .step-dot { border-color: var(--gold); }
.step-name { font-size: 11px; font-weight: 500; color: var(--sub); text-align: center; line-height: 1.3; padding: 0 4px; }
.step-done .step-name { color: var(--text); }
.step-cur .step-name { color: var(--navy); font-weight: 700; }
.step-p { font-size: 10px; color: var(--sub); }
.lead-cols { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.lead-side { flex: 1 1 260px; max-width: 320px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.lead-main { flex: 3 1 420px; min-width: 0; }
.data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.data-v { font-size: 13px; font-weight: 600; color: var(--text); margin-top: 2px; }
.kv-row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--gray); font-size: 13px; }
.kv-total { font-weight: 700; color: var(--navy); border-bottom: 0; }
.composer-wrap { padding: 16px 18px; border-bottom: 1px solid var(--gray); background: var(--field-bg); }
.composer fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.composer .sel-btn { cursor: pointer; }
.composer .sel-btn:has(input:checked) { border-color: var(--navy); background: var(--navy); color: #fff; }
.composer .sel-btn:focus-within { outline: 2px solid var(--gold); outline-offset: 1px; }
.composer-text { min-height: 70px; background-color: var(--white); }
.composer-lbl { margin: 12px 0 6px; }
.composer-next { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.composer-date { flex: 0 0 150px; padding: 7px 10px; font-size: 13px; background-color: var(--white); }
.composer-nt { flex: 1 1 200px; width: auto; padding: 7px 10px; font-size: 13px; background-color: var(--white); }
.composer-next .btn { padding: 8px 14px; }
.timeline { list-style: none; margin: 0; padding: 4px 18px 16px; }
.tl-item { display: flex; gap: 12px; padding-top: 12px; }
.tl-rail { display: flex; flex-direction: column; align-items: center; flex: none; }
.tl-dot { width: 30px; height: 30px; border-radius: 50%; background: var(--navy-soft); color: var(--navy); display: grid; place-items: center; font-size: 14px; }
.tl-stage .tl-dot { background: var(--cream-2); color: var(--sub); }
.tl-line { flex: 1; width: 2px; background: var(--gray); margin-top: 4px; min-height: 10px; }
.tl-body { flex: 1; min-width: 0; padding-bottom: 6px; }
.tl-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tl-t { font-size: 13px; font-weight: 700; color: var(--navy); }
.tl-stage .tl-t { font-weight: 600; color: var(--sub); }
.tl-text { font-size: 13px; color: var(--text); margin-top: 6px; line-height: 1.55; text-wrap: pretty; }
.contact-card { display: flex; flex-direction: column; gap: 8px; }
.contact-name { font-size: 14px; font-weight: 700; color: var(--navy); }
.contact-line { display: flex; align-items: center; gap: 8px; font-size: 13px; overflow-wrap: anywhere; }
.link-ic { display: flex; align-items: center; gap: 4px; }
.prop-row { display: flex; gap: 10px; align-items: flex-start; padding: 11px 18px; border-bottom: 1px solid var(--gray); color: var(--text) !important; }
.prop-row:hover { background: var(--cream); }
.prop-ic { font-size: 16px; color: var(--navy-light); display: flex; margin-top: 1px; }
.cdh-code { font-size: 13px; font-weight: 700; color: var(--navy); margin: 2px 0 10px; }

/* Modales del lead */
.modal-section { margin: 6px 0 10px; padding-top: 14px; border-top: 1px solid var(--gray); }
.nl-search { position: relative; }
.nl-results { position: absolute; left: 0; right: 0; top: 100%; margin-top: -10px; background: var(--white); border: 1px solid var(--gray); border-radius: var(--r); box-shadow: var(--shadow-card); z-index: 5; overflow: hidden; }
.nl-result { display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 10px 13px; border: 0; border-bottom: 1px solid var(--gray); background: var(--white); text-align: left; cursor: pointer; font-family: inherit; font-size: 13px; color: var(--text); }
.nl-result:hover, .nl-result:focus { background: var(--cream); outline: none; }
.nl-result-create { color: var(--navy); font-weight: 700; justify-content: flex-start; align-items: center; gap: 8px; border-bottom: 0; }
.nl-picked { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--gray); border-radius: var(--r); margin-bottom: 12px; }
.nl-picked-ic { font-size: 18px; color: var(--navy-light); display: flex; }
.nl-newco { border: 1.5px dashed var(--gray-2); border-radius: var(--r); padding: 16px 16px 0; margin-bottom: 16px; background: var(--field-bg); }
.nl-newco-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.chk-row { display: flex; gap: 16px; flex-wrap: wrap; padding-top: 4px; }
.nl-next { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 0 16px; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.svc-item { display: flex; align-items: center; gap: 8px; padding: 4px 10px; border: 1.5px solid var(--gray); border-radius: var(--r); background: var(--white); }
.svc-item.is-on { border-color: var(--navy); background: var(--navy-soft); }
.svc-h { width: 64px !important; padding: 5px 8px !important; font-size: 13px !important; text-align: right; }
.reason-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border: 0; margin: 0; padding: 0; }
.reason-btn { justify-content: flex-start; }
.reason-btn:has(input:checked) { border-color: var(--navy); background: var(--navy); color: #fff; }
.reason-btn:focus-within { outline: 2px solid var(--gold); outline-offset: 1px; }

/* ── Carga proyectada ───────────────────────────────────────────────────── */
.legend-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 16px; }
.chart { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 8px; }
.chart-y, .chart-plot { position: relative; height: 300px; }
.chart-tick { position: absolute; right: 0; transform: translateY(-50%); font-size: 10px; color: var(--sub); }
.chart-grid { position: absolute; left: 0; right: 0; border-top: 1px solid var(--gray); }
.chart-cols { position: absolute; inset: 0; display: flex; }
.chart-col { flex: 1; position: relative; display: flex; justify-content: center; }
.chart-col.is-over { background: var(--err-soft); }
.chart-over { position: absolute; left: 0; right: 0; text-align: center; font-size: 10px; font-weight: 700; color: var(--err); padding-bottom: 4px; }
.chart-stack { width: 56%; max-width: 44px; height: 100%; display: flex; flex-direction: column-reverse; }
.chart-stack > div { flex: none; }
.seg-top { border-radius: 3px 3px 0 0; }
.chart-cap { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.chart-cap polyline { fill: none; stroke: var(--navy); stroke-width: 2.5; }
.chart-x { display: flex; padding-top: 8px; border-top: 2px solid var(--gray); }
.chart-x > div { flex: 1; text-align: center; }
.chart-m { font-size: 12px; font-weight: 700; color: var(--navy); text-transform: capitalize; }
.chart-m.is-over { color: var(--err); }
.chart-yr { font-size: 10px; color: var(--sub); min-height: 15px; }
.col-occ { width: 200px; }
.cap-first { text-transform: capitalize; }
.occ { display: flex; align-items: center; gap: 10px; }
.occ-pct { font-size: 12px; font-weight: 700; min-width: 40px; text-align: right; }

/* ── Empresas ───────────────────────────────────────────────────────────── */
.co-head { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.co-head-main { flex: 1 1 320px; }
.co-title { font-size: 21px; font-weight: 800; color: var(--navy); line-height: 1.25; }
.co-stats { display: flex; gap: 28px; }
.co-stat { font-size: 24px; font-weight: 800; color: var(--navy); }
.co-cols { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.co-main { flex: 2 1 520px; }
.co-side { flex: 1 1 260px; max-width: 340px; }
.link-form { display: flex; gap: 8px; margin-top: 12px; }
.link-form .fl-input { padding: 6px 10px; font-size: 13px; }

/* ── Reportes ───────────────────────────────────────────────────────────── */
.funnel { display: flex; flex-direction: column; gap: 7px; }
.funnel-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 44px; gap: 10px; align-items: center; }
.funnel-track { display: flex; justify-content: center; }
.funnel-bar { min-width: 28px; height: 22px; background: var(--c5); border-radius: 3px; color: var(--white); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.funnel-foot { font-size: 11px; color: var(--sub); margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--gray); line-height: 1.5; }
.mchart { position: relative; height: 200px; display: flex; align-items: flex-end; border-bottom: 2px solid var(--gray); margin-top: 16px; }
.mchart-max { position: absolute; left: 0; right: 0; top: 0; border-top: 1px dashed var(--gray); }
.mchart-lbl { position: absolute; left: 0; top: -16px; font-size: 10px; color: var(--sub); }
.mchart-col { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.mchart-col > div { width: 30%; border-radius: 2px 2px 0 0; }
.mchart-x { display: flex; padding-top: 6px; }
.mchart-x span { flex: 1; text-align: center; font-size: 11px; color: var(--sub); text-transform: capitalize; }
.hbars { display: flex; flex-direction: column; gap: 9px; }
.hbar-row { display: grid; gap: 10px; align-items: center; }
.hbar-120 { grid-template-columns: 120px minmax(0, 1fr) 28px; }
.hbar-170 { grid-template-columns: 170px minmax(0, 1fr) 40px; }
.hbar-track { height: 12px; background: var(--cream-2); border-radius: 3px; }
.hbar-track > div { height: 100%; border-radius: 3px; }
.hbar-thin { height: 8px; }
.col-38 { width: 38%; }
.stage-times { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 9px 32px; }

/* ── Administración ─────────────────────────────────────────────────────── */
.num-input { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.num-input .fl-input { width: 64px; padding: 5px 8px; font-size: 13px; text-align: right; }
.inline-add { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px 18px; border-top: 1px solid var(--gray); background: var(--field-bg); }
.inline-add .fl-input { width: auto; flex: 1 1 200px; padding: 7px 10px; font-size: 13px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 20px; margin-bottom: 18px; }

/* ── Hoja móvil (la activan los estilos de movil.css) ───────────────────── */
.mob-sheet { position: fixed; inset: 0; z-index: 600; background: var(--cream); display: flex; flex-direction: column; }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--navy); color: var(--white); }
.sheet-close { background: none; border: 0; color: var(--white); font-size: 21px; display: grid; place-items: center; width: 44px; height: 44px; margin: -8px; cursor: pointer; }
.sheet-title { font-size: 15px; font-weight: 700; }
.sheet-sub { font-size: 12px; color: var(--gold-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-body { flex: 1; overflow-y: auto; padding: 18px 16px 0; }
.sheet-foot { position: sticky; bottom: 0; margin: 18px -16px 0; padding: 12px 16px; background: var(--white); border-top: 1px solid var(--gray); }
.type-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.qd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.sel-btn-tall { min-height: 52px; justify-content: center; flex-direction: column; gap: 2px; font-size: 12px; }
.qd-sub { font-size: 10px; font-weight: 500; opacity: .8; }
.composer-mob .composer-text { min-height: 140px; font-size: 15px; }
.composer-mob .composer-date, .composer-mob .composer-nt { flex: 1 1 100%; min-height: 48px; font-size: 15px; }

@media print {
    .shell-op .sidebar, .topbar-mobile, .page-top-acts, .filter-bar, .composer-wrap, .mob-bar, .toasts { display: none !important; }
    .shell-op .app-main { margin-left: 0 !important; }
    body, .cv { background: #fff; }
}
