/* Smart-EPM — estilos (estándar de pantalla Smart-InFast) */
:root {
  --navy: #16396b; --navy2: #10284e; --brand-gold: #f5b44c;
  --gold: #f5b44c; --hl2: #7cc8ff;
  --bg: #f3f5f9; --card: #ffffff; --tx: #1d2433; --tx2: #5b6578; --bd: #dde3ec; --bd2: #eef1f6;
  --ok: #1f9d55; --warn: #d98a00; --bad: #d64545; --info: #2b6cb0;
  --cap: #fff6d6; --gris: #eef1f5; --nar: #ffe7cc; --ver: #e7f6ec; --mor: #efe6fb;
  --sh: 0 1px 2px rgba(16,40,78,.06), 0 4px 14px rgba(16,40,78,.06);
  --r: 10px;
  font-family: Calibri, Carlito, "Segoe UI", system-ui, sans-serif;
}
[data-theme="oscuro"] {
  --bg: #0d1626; --card: #15213a; --tx: #e6ebf5; --tx2: #9aa7bf; --bd: #26365a; --bd2: #1c2a47;
  --cap: #3a3418; --gris: #1e2b45; --nar: #42301a; --ver: #173527; --mor: #2c2346;
}
@media (prefers-color-scheme: dark) {
  [data-theme="auto"] {
    --bg: #0d1626; --card: #15213a; --tx: #e6ebf5; --tx2: #9aa7bf; --bd: #26365a; --bd2: #1c2a47;
    --cap: #3a3418; --gris: #1e2b45; --nar: #42301a; --ver: #173527; --mor: #2c2346;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--tx); font-size: 15px; }
a { color: var(--info); }
button, input, select, textarea { font: inherit; color: inherit; }
.cargando { padding: 40px; text-align: center; color: var(--tx2); }

/* Pantalla de entrada: igual a Smart-Quote, Smart-Process y Smart-Pay (estándar Smart-InFast) */
body.ent-body, .ent-body{display:block;place-items:initial;padding:0;margin:0;background:#EEF2F7;color:#1B2433;font-family:Calibri,'Carlito','Segoe UI',Arial,sans-serif}
.ent-main{min-height:100vh;display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:center;padding:24px 16px;box-sizing:border-box}
.ent-card{width:100%;max-width:420px;display:flex;flex-direction:column;gap:16px;background:#fff;border-radius:12px;box-shadow:0 1px 3px rgba(20,33,61,.14);padding:20px;border-top:5px solid #f5b44c;box-sizing:border-box}
.ent-marca{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
.ent-marca img{width:84px;height:84px;object-fit:contain}
.ent-nombre{margin:2px 0 0;font-size:24px;font-weight:700;color:#16396b;letter-spacing:-.01em}
.ent-nombre b{color:#f5b44c;font-weight:700}
.ent-kicker{font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#4F6F9A}
.ent-form{display:flex;flex-direction:column;gap:12px}
.ent-lbl{font-size:13px;font-weight:700;color:#3C4C66;letter-spacing:.03em;text-transform:uppercase;display:block;margin-bottom:6px}
.ent-in{width:100%;box-sizing:border-box;font:inherit;font-size:15.5px;color:#1B2433;background:#fff;border:1px solid #B9C6D8;border-radius:8px;padding:10px 12px;min-height:44px;text-transform:none;letter-spacing:0}
.ent-in:focus{outline:2px solid #f5b44c;outline-offset:1px;border-color:#16396b}
.ent-btn{font:inherit;font-size:15.5px;font-weight:700;min-height:44px;padding:0 16px;border-radius:8px;cursor:pointer;border:1px solid #16396b;background:#16396b;color:#fff;width:100%}
.ent-btn:hover{background:#10284e}
.ent-help{font-size:14.5px;color:#4A5A72;line-height:1.5;margin:0;text-align:center}
.ent-msg{padding:10px 12px;border-radius:8px;font-size:14.5px;font-weight:700}
.ent-err{background:#FDECEA;color:#8A1C12}
.ent-firma{display:flex;align-items:center;justify-content:center;gap:10px;padding:18px 16px 28px;font-size:13px;font-weight:700;color:#4A5A72;letter-spacing:.04em;text-transform:uppercase}
.ent-firma img{height:72px;width:auto}

.ent-link{color:#16396b;font-weight:700;text-decoration:none}.ent-link:hover{text-decoration:underline}
.ent-ok{background:#E7F6EC;color:#18603A}

/* ---------- Marca ---------- */
.marca { display: flex; align-items: center; gap: 10px; }
.marca img { width: 38px; height: 38px; object-fit: contain; background: #fff; border-radius: 50%; padding: 2px; }
.marca .nom { font-size: 1.25rem; font-weight: 700; color: #fff; letter-spacing: .2px; }
.marca .nom span { color: var(--brand-gold); }

/* ---------- Estructura ---------- */
.shell { display: flex; min-height: 100vh; }
.lateral { width: 250px; flex: 0 0 250px; background: var(--navy2); color: #dbe4f3; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow: hidden; }
.lateral .marca { padding: 16px 16px 6px; }
.lateral .emp { padding: 0 16px 12px; font-size: .8rem; color: #9fb2d3; border-bottom: 1px solid rgba(255,255,255,.08); }
.menu { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 8px 6px 16px 8px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.28) transparent; }
.menu::-webkit-scrollbar { width: 8px; }
.menu::-webkit-scrollbar-track { background: transparent; }
.menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,.22); border-radius: 8px; }
.menu::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.38); }
.lateral .marca, .lateral .emp, .lateral .pie { flex: 0 0 auto; }
.lateral .pie .con { display: flex; align-items: center; gap: 6px; color: #dbe4f3; margin-top: 2px; }
.lateral .pie .punto { width: 9px; height: 9px; border-radius: 50%; background: #3ecf6e; box-shadow: 0 0 0 2px rgba(62,207,110,.25); }
.lateral .pie a { text-decoration: underline !important; text-underline-offset: 3px; }
.lateral .pie .ver { margin-top: 8px; font-size: .72rem; color: #8ea3c6; }
.menu a.op, .menu summary { display: flex; align-items: center; gap: 10px; color: #dbe4f3; text-decoration: none; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: .9rem; }
.menu a.op svg, .menu summary svg { width: 18px; height: 18px; opacity: .85; flex: 0 0 auto; }
.menu a.op:hover, .menu summary:hover { background: rgba(255,255,255,.06); }
.menu a.op:hover svg { opacity: 1; }
.menu details { margin: 4px 0; }
.menu summary { list-style: none; font-size: .8rem; text-transform: uppercase; letter-spacing: .6px; font-weight: 700; color: #b8c7e2; background: rgba(255,255,255,.035); border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary .flecha { margin-left: auto; transition: transform .15s; width: 14px; height: 14px; }
.menu details[open] summary .flecha { transform: rotate(90deg); }
.menu details.activo summary { background: rgba(255,255,255,.09); color: #fff; }
.menu details a.op { padding-left: 22px; font-size: .9rem; }
.menu details a.op svg { width: 16px; height: 16px; }
.menu a.op.sel { background: rgba(255,255,255,.1); box-shadow: inset 3px 0 0 var(--hl2), 0 1px 4px rgba(0,0,0,.2); color: #fff; }
.menu a.op.sel svg { color: var(--hl2); opacity: 1; }
.lateral .pie { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.08); font-size: .82rem; }
.lateral .pie .u { color: #fff; font-weight: 600; }
.lateral .pie .r { color: #9fb2d3; }
.lateral .pie a { color: #c9d6ee; margin-right: 12px; cursor: pointer; text-decoration: none; }
.lateral .pie a:hover { color: #fff; }

.principal { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.barra-lic { background: #fff4dd; color: #7a4a00; padding: 8px 20px; font-size: .9rem; }
.contenido { padding: 22px 26px 60px; max-width: 1500px; width: 100%; }
.titulo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.titulo h1 { font-size: 1.45rem; margin: 0; color: var(--navy); }
[data-theme="oscuro"] .titulo h1 { color: #fff; }
@media (prefers-color-scheme: dark) { [data-theme="auto"] .titulo h1 { color: #fff; } }
.titulo .sub { color: var(--tx2); font-size: .9rem; width: 100%; margin-top: -6px; }
.titulo .acciones { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Componentes ---------- */
.card { background: var(--card); border: 1px solid var(--bd); border-radius: var(--r); box-shadow: var(--sh); padding: 16px 18px; margin-bottom: 16px; }
.card h2 { font-size: 1.05rem; margin: 0 0 12px; color: var(--navy); }
[data-theme="oscuro"] .card h2 { color: #cfe0ff; }
@media (prefers-color-scheme: dark) { [data-theme="auto"] .card h2 { color: #cfe0ff; } }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.kpi { background: var(--card); border: 1px solid var(--bd); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--sh); }
.kpi .k { font-size: .8rem; color: var(--tx2); text-transform: uppercase; letter-spacing: .4px; }
.kpi .v { font-size: 1.6rem; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .d { font-size: .82rem; color: var(--tx2); }

.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--bd); background: var(--card); padding: 7px 13px; border-radius: 8px; cursor: pointer; font-size: .9rem; white-space: nowrap; }
.btn:hover { border-color: var(--navy); }
.btn svg { width: 16px; height: 16px; }
.btn.pri { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.pri:hover { background: var(--navy2); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.mal { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.chico { padding: 4px 9px; font-size: .82rem; }
.btn.link { border: 0; background: none; color: var(--info); padding: 2px 4px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input:not([type]), select, textarea {
  border: 1px solid var(--bd); background: var(--card); border-radius: 7px; padding: 7px 9px; min-width: 0;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--hl2); outline-offset: -1px; border-color: transparent; }
textarea { width: 100%; min-height: 70px; resize: vertical; }
.filtros { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 14px; }
.filtros label { display: flex; flex-direction: column; font-size: .78rem; color: var(--tx2); gap: 3px; }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 14px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; color: var(--tx2); }
.form label.full { grid-column: 1 / -1; }
.form label input, .form label select, .form label textarea { color: var(--tx); font-size: .95rem; }
.form .cap input, .form .cap select, .form .cap textarea, input.cap, select.cap { background: var(--cap); }
.check { flex-direction: row !important; align-items: center; gap: 8px !important; }
.ayuda { font-size: .82rem; color: var(--tx2); }
.nota { background: var(--bd2); border-radius: 8px; padding: 10px 12px; font-size: .88rem; color: var(--tx2); margin-bottom: 12px; }
.nota.aviso { background: #fff4dd; color: #7a4a00; }
.nota.error { background: #fde8e8; color: #8a1c1c; white-space: pre-line; }
.nota.bien { background: #e7f6ec; color: #18603a; }
[data-theme="oscuro"] .nota.aviso { background: #3d2f12; color: #ffd48a; }
[data-theme="oscuro"] .nota.error { background: #3d1717; color: #ffb4b4; }
[data-theme="oscuro"] .nota.bien { background: #133222; color: #9de0b8; }

/* ---------- Tablas ---------- */
.tabla-env { overflow: auto; border: 1px solid var(--bd); border-radius: var(--r); background: var(--card); max-height: 72vh; }
table.t { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .87rem; }
table.t th { position: sticky; top: 0; z-index: 2; background: var(--navy); color: #fff; font-weight: 600; text-align: left; padding: 8px 9px; white-space: nowrap; font-size: .8rem; }
table.t td { padding: 6px 9px; border-bottom: 1px solid var(--bd2); vertical-align: top; }
table.t tr:hover td { background: rgba(124,200,255,.07); }
table.t td.n, table.t th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.t td.c, table.t th.c { text-align: center; }
table.t tr.grupo td { font-weight: 600; cursor: pointer; }
table.t tr.total td { background: var(--bd2); font-weight: 700; border-top: 2px solid var(--navy); }

table.t tr.pct td { color: var(--navy, #16396b); font-style: italic; font-size: .84rem; background: var(--bd2); padding-top: 2px; padding-bottom: 5px; }
table.t tr.hijo td:first-child { padding-left: 26px; }
table.t tr.hijo2 td:first-child { padding-left: 44px; }
table.t tr.clic { cursor: pointer; }
table.t tfoot td { font-weight: 700; background: var(--bd2); position: sticky; bottom: 0; }
.neg { color: var(--bad); }
.pos { color: var(--ok); }
td.cap { background: var(--cap); }
td.gris { background: var(--gris); }
td.nar { background: var(--nar); }
td.mor { background: var(--mor); }

.badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.b-borrador { background: #e6eaf1; color: #4a5568; }
.b-enviado { background: #dbeafe; color: #1e4fa0; }
.b-aprobado, .b-aprobada, .b-Cumplido, .b-aplicada { background: #d9f2e3; color: #18603a; }
.b-devuelto, .b-rechazada, .b-Crítico, .b-rechazada { background: #fde2e2; color: #9b1c1c; }
.b-pendiente, .b-Atención, .b-procesando { background: #fff0cc; color: #7a4a00; }
.b-deshecha { background: #eee; color: #777; }
.b-H { background: var(--ver); color: #18603a; } .b-A { background: var(--gris); color: #364256; } .b-M { background: var(--cap); color: #6b5300; }
[data-theme="oscuro"] .badge { filter: brightness(.9); }
.sem { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; }
.sem.Cumplido { background: var(--ok); } .sem.Atención { background: var(--warn); } .sem.Crítico { background: var(--bad); }
.barra { height: 7px; background: var(--bd2); border-radius: 4px; overflow: hidden; min-width: 70px; }
.barra i { display: block; height: 100%; background: var(--ok); }
.barra i.alto { background: var(--bad); }
.aviso-ic { color: var(--warn); cursor: help; }

/* ---------- Pestañas ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--bd); margin-bottom: 14px; flex-wrap: wrap; }
.tabs button { border: 0; background: none; padding: 9px 14px; cursor: pointer; color: var(--tx2); border-bottom: 3px solid transparent; margin-bottom: -2px; font-weight: 600; }
.tabs button.sel { color: var(--tx); border-bottom-color: var(--gold); }
.tabs button .cnt { background: var(--bd2); border-radius: 10px; padding: 0 7px; font-size: .75rem; margin-left: 4px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { border: 1px solid var(--bd); border-radius: 20px; padding: 4px 12px; cursor: pointer; font-size: .85rem; background: var(--card); }
.chip.sel { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Modal ---------- */
.velo { position: fixed; inset: 0; background: rgba(10,20,40,.5); display: flex; align-items: flex-start; justify-content: center; z-index: 50; padding: 40px 12px; overflow-y: auto; }
.modal { background: var(--card); border-radius: 12px; width: 100%; max-width: 760px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.modal.ancho { max-width: 1100px; }
.modal .cab { padding: 14px 18px; border-bottom: 1px solid var(--bd); display: flex; align-items: center; }
.modal .cab h3 { margin: 0; font-size: 1.1rem; }
.modal .cab .x { margin-left: auto; border: 0; background: none; font-size: 1.4rem; cursor: pointer; color: var(--tx2); }
.modal .cuerpo { padding: 16px 18px; max-height: calc(100vh - 220px); overflow-y: auto; }
.modal .pie { padding: 12px 18px; border-top: 1px solid var(--bd); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.modal .pie .izq { margin-right: auto; }
#toast { position: fixed; bottom: 20px; right: 20px; z-index: 60; display: flex; flex-direction: column; gap: 8px; }
#toast div { background: var(--navy2); color: #fff; padding: 10px 16px; border-radius: 8px; box-shadow: var(--sh); max-width: 420px; animation: ap .2s; white-space: pre-line; }
#toast div.error { background: var(--bad); }
@keyframes ap { from { opacity: 0; transform: translateY(8px); } }

.meses { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.meses label { font-size: .75rem; }
.meses input { width: 100%; text-align: right; }
.paleta { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.paleta button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--bd); cursor: pointer; }
.subida { border: 2px dashed var(--bd); border-radius: 10px; padding: 14px; text-align: center; }
.mensajes { max-height: 300px; overflow: auto; font-family: Consolas, monospace; font-size: .8rem; white-space: pre-wrap; }
code.bloque { display: block; background: var(--bd2); padding: 10px; border-radius: 8px; white-space: pre-wrap; word-break: break-all; font-size: .82rem; }
.vacio { padding: 30px; text-align: center; color: var(--tx2); }
.oculto { display: none !important; }
.muted { color: var(--tx2); }
.chico { font-size: .82rem; }

/* ---------- Celular ---------- */
@media (max-width: 860px) {
  .shell { flex-direction: column; }
  .lateral { width: 100%; flex: none; height: auto; position: sticky; top: 0; z-index: 20; flex-direction: row; align-items: center; overflow-x: auto; }
  .menu { overflow: visible; } .lateral .pie .con, .lateral .pie .ver { display: none; }
  .lateral .marca { padding: 8px 10px; } .lateral .marca .nom, .lateral .emp, .lateral .pie .u, .lateral .pie .r { display: none; }
  .menu { display: flex; padding: 4px; flex: none; }
  .menu details { display: flex; margin: 0; } .menu summary { display: none; }
  .menu a.op { padding: 8px; } .menu a.op span { display: none; }
  .menu details a.op { padding-left: 8px; }
  .lateral .pie { border: 0; display: flex; white-space: nowrap; }
  .contenido { padding: 14px 12px 50px; }
}
.filtros label.btn, .acciones label.btn { flex-direction: row; font-size: .9rem; color: var(--tx); }

/* 1.3.1: primera columna completa y fija al desplazar */
table.t td:first-child, table.t th:first-child { white-space: nowrap; position: sticky; left: 0; z-index: 1; background-color: var(--card); box-shadow: 1px 0 0 var(--bd2); }
table.t th:first-child { z-index: 3; background-color: var(--navy); }
table.t tr:hover td:first-child { background: linear-gradient(rgba(124,200,255,.07), rgba(124,200,255,.07)), var(--card); }
table.t tr.grupo td:first-child, table.t tr.grupo:hover td:first-child { background: var(--card); }
table.t tr.total td:first-child, table.t tr.total:hover td:first-child, table.t tr.pct td:first-child { background: var(--bd2); }
table.t tr.pct td:first-child { padding-left: 26px; }
table.t tr.elegida td { background: rgba(245,180,76,.14) !important; }
table.t tfoot td:first-child { background-color: var(--bd2); z-index: 3; }
table.t td.nom { white-space: nowrap; }
table.t thead tr + tr th:first-child { left: auto; z-index: 2; box-shadow: none; }
table.t.bs tr.bs-n1 td { font-weight: 700; }
table.t.bs tr.bs-n2 td { font-weight: 600; }
table.t.bs tr.bs-n3 td { font-weight: 500; font-style: italic; }
table.t.bs tr.bs-cta td { color: var(--tx2); font-size: .84rem; }
table.t.bs tr.bs-gran td { border-top: 3px double var(--navy); }
table.t .bs-sp { display: inline-block; width: 1em; }
/* 1.3.2: barra horizontal visible arriba de las tablas anchas */
.barra-sup { overflow-x: auto; overflow-y: hidden; height: 14px; margin-bottom: 4px; }
.barra-sup > div { height: 1px; }
.tabla-env, .barra-sup { scrollbar-width: auto; scrollbar-color: #9fb0c8 #eef2f7; }
.tabla-env::-webkit-scrollbar, .barra-sup::-webkit-scrollbar { width: 12px; height: 12px; }
.tabla-env::-webkit-scrollbar-track, .barra-sup::-webkit-scrollbar-track { background: #eef2f7; border-radius: 8px; }
.tabla-env::-webkit-scrollbar-thumb, .barra-sup::-webkit-scrollbar-thumb { background: #9fb0c8; border-radius: 8px; border: 2px solid #eef2f7; }
.tabla-env::-webkit-scrollbar-thumb:hover, .barra-sup::-webkit-scrollbar-thumb:hover { background: #6f84a6; }
[data-theme="dark"] .tabla-env, [data-theme="dark"] .barra-sup { scrollbar-color: #5b6f91 #1b2639; }
.sup-comp { padding: 10px 14px; margin-bottom: 10px; }
.sup-comp .sup-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.sup-comp h2 { margin: 0; font-size: 1rem; }
table.t.sup th, table.t.sup td { padding: 4px 8px; }
table.t.sup th { white-space: normal; line-height: 1.15; font-size: .76rem; min-width: 92px; }
table.t.sup input { width: 70px; padding: 3px 6px; height: 28px; text-align: right; }
table.t.sup { table-layout: fixed; width: 100%; }
table.t.sup th:first-child, table.t.sup td:first-child { width: 110px; }
table.t.sup td.n { text-align: center; }
/* 1.5.1: búsqueda de CECO en los filtros */
.bus-ceco { min-width: 320px; }
.bc-env { position: relative; display: block; }
.bc-env input { width: 100%; padding-right: 28px; }
.bc-x { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--tx2); font-size: 1.1rem; cursor: pointer; padding: 0 4px; }
.bc-lista { display: none; position: absolute; left: 0; top: calc(100% + 4px); z-index: 50; width: max(100%, 520px); max-height: 320px; overflow-y: auto; background: var(--card); border: 1px solid var(--bd); border-radius: 10px; box-shadow: 0 10px 28px rgba(16,40,78,.18); }
.bc-op { padding: 7px 10px; cursor: pointer; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-op b { color: var(--navy); font-weight: 600; margin-right: 6px; }
.bc-op.on, .bc-op:hover { background: rgba(124,200,255,.16); }
.bc-vacio { padding: 8px 10px; color: var(--tx2); font-size: .86rem; }
table.t td.ceco-c, table.t td.ceco-c:first-child { white-space: normal; min-width: 220px; max-width: 300px; }
table.t td.act-c { min-width: 220px; }
/* 1.8.0: lista de CECO compacta */
table.t td.ceco-cel { white-space: normal; min-width: 380px; max-width: 460px; }
table.t td.ceco-cel .cd { font-weight: 500; line-height: 1.25; font-size: .84rem; }
table.t td.ceco-cel .cc { font-size: .72rem; color: var(--tx2); font-family: ui-monospace, Consolas, monospace; margin-top: 2px; }
.btn.chico { padding: 3px 9px; font-size: .78rem; }
/* 1.8.0: panel financiero */
h2.sec { font-size: 1rem; margin: 6px 0 10px; color: var(--tx); }
.kpi.kfin { padding: 10px 14px; }
.kpi.kfin .k { font-size: .72rem; }
.kpi.kfin .v { font-size: 1.15rem; margin: 2px 0; }
.kpi.kfin .d { font-size: .74rem; margin-top: 1px; line-height: 1.3; }
.grid.g4.compacta .kpi { padding: 10px 14px; }
.grid.g4.compacta .kpi .v { font-size: 1.15rem; }
.graf-mes { padding: 10px 14px; }
.graf-mes h2 { font-size: .95rem; margin: 0 0 4px; }
/* Título fijo al desplazarse */
.titulo { position: sticky; top: 0; z-index: 20; background: var(--bg); margin: -22px -26px 12px; padding: 14px 26px 10px; border-bottom: 1px solid var(--bd2); }
@media (max-width: 860px) { .titulo { margin: -14px -12px 10px; padding: 10px 12px 8px; } }
a.kpi { text-decoration: none; color: inherit; display: block; }
.graf-mes svg { width: 100%; height: auto; display: block; }
.graf-mes .ax { font-size: 10px; fill: var(--tx2); }
.graf-mes .ley { display: flex; gap: 14px; margin: -4px 0 6px; color: var(--tx2); }
.graf-mes .ley i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.graf-mes .ley i.ln { height: 3px; width: 14px; vertical-align: 3px; }
.badge.b-mor { background: var(--mor); color: var(--tx); }
.nowrap { white-space: nowrap; }
table.t.desv-seg tfoot td { position: static; }
/* 1.8.3: color por tarjeta del Panel */
.kpi.kfin { border-left: 4px solid var(--kc); }
.kpi.kfin .k { color: var(--kc); font-weight: 700; }
.kc-ing { --kc: #1b7f4b; --kb: rgba(27,127,75,.16); }
.kc-cos { --kc: #b4551c; }
.kc-gas { --kc: #b8860b; }
.kc-exc { --kc: #16396b; --kb: rgba(31,95,174,.15); }
.kc-mar { --kc: #6b3fa0; --kb: rgba(120,70,180,.15); }
[data-theme="oscuro"] .kc-ing { --kc: #5fd39a; } [data-theme="oscuro"] .kc-cos { --kc: #f2a066; } [data-theme="oscuro"] .kc-gas { --kc: #f0c860; } [data-theme="oscuro"] .kc-exc { --kc: #8fbaf0; } [data-theme="oscuro"] .kc-mar { --kc: #c4a2ec; }
@media (prefers-color-scheme: dark) { [data-theme="auto"] .kc-ing { --kc: #5fd39a; } [data-theme="auto"] .kc-cos { --kc: #f2a066; } [data-theme="auto"] .kc-gas { --kc: #f0c860; } [data-theme="auto"] .kc-exc { --kc: #8fbaf0; } [data-theme="auto"] .kc-mar { --kc: #c4a2ec; } }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1200px) { .g5 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } }
.kpi.kfin .k { font-size: .8rem; letter-spacing: .02em; }
/* 1.8.5: desvío servicio → departamento con barras de variación */
table.t.arbol-desv tfoot td { position: static; }
table.t.arbol-desv tr.srv td { font-weight: 600; background: var(--bd2); }
table.t.arbol-desv tr.dep td:first-child { padding-left: 30px; color: var(--tx2); }
table.t.arbol-desv tr.dep td { font-size: .85rem; padding-top: 4px; padding-bottom: 4px; }
table.t.arbol-desv .tog { display: inline-block; width: 12px; color: var(--tx2); }
table.t.arbol-desv td.vcol { width: 42%; min-width: 320px; padding: 2px 8px; }
.vbar { position: relative; height: 22px; }
.vbar.chica { height: 16px; }
.vbar .eje { position: absolute; left: 50%; top: -4px; bottom: -4px; border-left: 1px solid var(--tx2); }
.vbar .b { position: absolute; top: 4px; bottom: 4px; border-radius: 2px; }
.vbar.chica .b { top: 3px; bottom: 3px; opacity: .75; }
.vbar .b.mas { background: #d64545; } .vbar .b.menos { background: #3aa76d; }
.vbar .et { position: absolute; top: 50%; transform: translateY(-50%); font-size: .75rem; font-weight: 700; white-space: nowrap; }
.vbar.chica .et { font-weight: 500; font-size: .72rem; }
.vbar .et.mas { color: #c03030; } .vbar .et.menos { color: #23874f; }
.tabla-env.sinmax { max-height: none; }
table.t.arbol-desv .dep1 { font-weight: 400; color: var(--tx2); font-size: .82rem; margin-left: 8px; }
table.t.arbol-desv .dep1::before { content: '· '; }
/* 1.8.6: ER abierto por servicio y departamento */
.titulo-card { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.titulo-card h2 { margin: 0; }
.seg-niv { margin-left: auto; display: flex; gap: 4px; }
table.t.er-arbol tr.n0 td { font-weight: 600; }
table.t.er-arbol tr.n0.total td { background: var(--bd2); font-weight: 700; border-top: 2px solid var(--navy); }
table.t.er-arbol tr.n1 td { font-size: .88rem; }
table.t.er-arbol tr.n1 td:first-child { padding-left: 26px; }
table.t.er-arbol tr.n2 td { font-size: .8rem; color: var(--tx2); padding-top: 3px; padding-bottom: 3px; }
table.t.er-arbol tr.n2 td:first-child { padding-left: 46px; }
table.t.er-arbol .tog { display: inline-block; width: 14px; color: var(--tx2); }
/* 1.8.7: preparación estilo KPI */
.prep-card { padding: 14px 16px; margin-bottom: 16px; }
.avance { margin-bottom: 14px; }
.av-t { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; font-size: .88rem; color: var(--tx2); }
.av-t b { color: var(--tx); font-size: .95rem; }
.av-t .plazo { margin-left: auto; padding: 2px 10px; border-radius: 12px; background: var(--bd2); font-weight: 600; font-size: .8rem; color: var(--tx); }
.av-t .plazo.aviso { background: rgba(214,140,40,.18); color: #9a5a10; } .av-t .plazo.mal { background: rgba(214,69,69,.16); color: #b02a2a; }
.av-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin: 8px 0 6px; background: var(--bd2); gap: 2px; }
.av-bar .apr, .av-ley .apr { background: #1b7f4b; } .av-bar .env, .av-ley .env { background: #d4a017; } .av-bar .bor, .av-ley .bor { background: #c9ced8; }
.av-ley { display: flex; gap: 16px; color: var(--tx2); }
.av-ley i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.kpi.kprep .kh { display: flex; align-items: center; gap: 8px; }
.kpi.kprep .ki { display: inline-flex; width: 26px; height: 26px; border-radius: 7px; align-items: center; justify-content: center; color: var(--kc); background: color-mix(in srgb, var(--kc) 14%, transparent); }
.kpi.kprep .ki svg { width: 15px; height: 15px; }
.kpi.kprep .v { font-size: 1.5rem; }
table.t.cargas-p td { padding-top: 6px; padding-bottom: 6px; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: .74rem; font-weight: 600; background: var(--bd2); color: var(--tx2); }
.pill.ok { background: rgba(27,127,75,.15); color: #1b7f4b; } .pill.med { background: rgba(212,160,23,.18); color: #94700c; }
.filtros .seg-niv { align-self: flex-end; }
/* 1.9.1: estados financieros */
.ef-sel { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.ef-hoja { background: #fff; color: #222; max-width: 900px; margin: 0 auto 20px; padding: 26px 34px 30px; border-radius: 6px; box-shadow: 0 1px 6px rgba(0,0,0,.12); border-top: 6px solid #16396b; }
.ef-cab { display: flex; justify-content: space-between; align-items: center; min-height: 84px; }
.ef-cab img { max-height: 84px; max-width: 280px; }
.ef-emp { text-align: right; display: flex; flex-direction: column; color: #16396b; font-size: .85rem; } .ef-emp span { color: #666; font-size: .75rem; }
.ef-hoja h2 { text-align: center; color: #16396b; font-size: 1.3rem; margin: 18px 0 2px; }
.ef-per { text-align: center; margin: 0; font-size: .85rem; } .ef-mon { text-align: center; margin: 0 0 12px; font-size: .8rem; font-style: italic; color: #666; }
.ef-desc { font-size: .82rem; color: #333; line-height: 1.45; }
table.ef-t { width: 100%; border-collapse: collapse; font-size: .8rem; margin-top: 6px; }
table.ef-t th { background: #16396b; color: #fff; padding: 6px 8px; text-align: left; font-weight: 600; } table.ef-t th.n { text-align: right; } table.ef-t th.c { text-align: center; }
table.ef-t td { padding: 3px 8px; } table.ef-t td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; } table.ef-t td.c { text-align: center; }
table.ef-t tr.ef-sec td:first-child { font-weight: 700; color: #16396b; padding-top: 8px; }
table.ef-t tr.ef-sub td { font-weight: 700; background: #eef2f8; }
table.ef-t tr.ef-rubro td:first-child { padding-left: 18px; }
table.ef-t tr.ef-total td { font-weight: 700; border-top: 1px solid #16396b; }
table.ef-t tr.ef-gran td { font-weight: 700; background: #dfe7f3; border-top: 1px solid #16396b; border-bottom: 3px double #16396b; }
table.ef-t tr.ef-margen td { font-style: italic; color: #16396b; } table.ef-t tr.ef-margen td:first-child { padding-left: 18px; }
table.ef-t tr.esp td { height: 6px; padding: 0; }
.ef-nota { display: inline-block; min-width: 22px; border: 1px solid #16396b; color: #16396b; font-weight: 700; font-size: .72rem; padding: 0 3px; }
.ef-pie { font-size: .75rem; font-style: italic; color: #666; }
.ef-firmas { display: flex; justify-content: space-around; gap: 20px; margin-top: 54px; text-align: center; font-size: .8rem; }
.ef-firmas div { display: flex; flex-direction: column; min-width: 200px; } .ef-firmas .ln { border-top: 1px solid #333; margin-bottom: 4px; } .ef-firmas span { color: #555; }
.logo-prev { border: 1px dashed var(--bd); border-radius: 6px; min-height: 90px; display: flex; align-items: center; justify-content: center; padding: 10px; background: #fff; }
.logo-prev img { max-height: 90px; max-width: 100%; }
.form.firm { grid-template-columns: 1.2fr 1.2fr 1fr; margin-bottom: 4px; }
/* 1.9.2: informe financiero */
.pol, .nota-inf { border: 1px solid var(--bd2); border-radius: 6px; padding: 8px 10px; margin-bottom: 8px; }
.pol-cab { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.pol-cab input { flex: 1; font-weight: 600; }
.pol textarea, .nota-inf textarea { width: 100%; resize: vertical; font: inherit; font-size: .86rem; line-height: 1.45; }
table.t.inf-t { font-size: .78rem; margin-bottom: 6px; max-width: 640px; }
table.t.inf-t td, table.t.inf-t th { padding: 2px 8px; }
.inf-ind { margin: 0; padding-left: 18px; font-size: .88rem; line-height: 1.7; }
table.t.er-arbol tr.margen td { font-style: italic; font-weight: 500; color: var(--navy, #16396b); font-size: .84rem; padding-top: 2px; padding-bottom: 6px; background: var(--bd2); }
table.t.er-arbol tr.margen td:first-child { padding-left: 26px; }
table.t.er-arbol tr.margen td.pos { color: #1b7f4b; } table.t.er-arbol tr.margen td.neg { color: #c03030; }
/* 1.9.6: nómina consolidada */
table.t.nomc td.ceco-cel { min-width: 360px; max-width: 440px; }
table.t.nomc td.puesto { min-width: 130px; }
table.t.nomc td.nom { white-space: nowrap; }
table.t.det-ppto td.concepto { min-width: 260px; max-width: 360px; white-space: normal; }
table.t.det-ppto td.concepto .badge { margin-left: 4px; }
/* 1.9.8: escenarios en una sola pantalla */
details.fil-pleg { align-self: flex-end; }
details.fil-pleg > summary { cursor: pointer; padding: 7px 12px; border: 1px solid var(--bd); border-radius: 6px; background: var(--card); font-size: .88rem; list-style: none; }
details.fil-pleg > summary::before { content: '▸ '; } details.fil-pleg[open] > summary::before { content: '▾ '; }
details.fil-pleg > .filtros { margin-top: 8px; }
details.fil-pleg[open] { flex-basis: 100%; }
details.fil-pleg .fil-txt { color: var(--tx2); font-size: .82rem; margin-left: 4px; }
details.fil-pleg.activo > summary { border-color: var(--gold); background: rgba(245,180,76,.12); }
details.fil-pleg.activo .fil-txt { color: var(--tx); font-weight: 600; }
table.t.esc-t td { padding-top: 6px; padding-bottom: 6px; vertical-align: middle; }
table.t.esc-t th { padding-top: 10px; padding-bottom: 10px; }
table.t.esc-t tr.pct td { padding-top: 4px; padding-bottom: 8px; }
table.t.esc-t tr.pct td { font-style: italic; color: var(--tx2); }
table.t.esc-t tr.grupo td:first-child { cursor: pointer; }
table.t.esc-t td.esc-p, table.t.esc-t th.esc-p { background-color: rgba(214,69,69,.06); } table.t.esc-t td.esc-o, table.t.esc-t th.esc-o { background-color: rgba(27,127,75,.06); }
table.t.esc-t th.esc-p { background: #6b2f3a; } table.t.esc-t th.esc-o { background: #1f5f45; }
input.esc-in { width: 64px; text-align: right; padding: 2px 6px; }
/* 1.9.10: tendencia */
.tend-top .card { margin-bottom: 12px; }
.tend-top #graf svg { max-height: 200px; }
.top5 { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.t5-f { display: grid; grid-template-columns: 42% 58%; align-items: center; gap: 8px; }
.t5-n { font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top5 .vbar { height: 22px; }
/* 1.10.0: moneda */
.mon-sw { display: flex; align-items: center; gap: 4px; margin: 4px 16px 10px; font-size: .74rem; color: rgba(255,255,255,.7); }
.mon-sw span { margin-right: 4px; }
.mon-sw button { border: 1px solid rgba(255,255,255,.25); background: transparent; color: rgba(255,255,255,.85); border-radius: 12px; padding: 2px 9px; font-size: .74rem; cursor: pointer; }
.mon-sw button.on { background: var(--gold); color: #10284e; border-color: var(--gold); font-weight: 700; }
.pill-usd { display: inline-block; vertical-align: middle; font-size: .7rem; font-weight: 700; background: var(--gold); color: #10284e; border-radius: 10px; padding: 2px 8px; margin-left: 6px; }
.oculto { display: none !important; }
table.t.tc-t { width: 100%; table-layout: fixed; } table.t.tc-t th:first-child, table.t.tc-t td:first-child { width: 78px; } table.t.tc-t td, table.t.tc-t th { padding-left: 4px; padding-right: 4px; }
table.t.tc-t input.tc-in { width: 100%; box-sizing: border-box; text-align: right; padding: 3px 5px; }

/* 1.10.1: distribución por unidad en tarjetas */
.kd-cab { color: var(--tx2); margin: 0 0 6px 2px; }
.kpi-d .kd { margin-top: 10px; display: flex; flex-direction: column; gap: 5px; }
.kd-f { display: grid; grid-template-columns: 34% 1fr auto; align-items: center; gap: 8px; font-size: .76rem; }
.kd-n { color: var(--tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kd-b { position: relative; height: 8px; background: var(--bd2); border-radius: 4px; overflow: hidden; }
.kd-b i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--navy); border-radius: 4px; }
.kd-b i.kd-nv, i.kd-nv { background: var(--gold); }
.kd-v { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 52px; text-align: right; }
.kd-ley { margin-left: 8px; color: var(--tx2); } .kd-ley i { display: inline-block; width: 10px; height: 8px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.kd-sn { color: #a8741c; font-weight: 700; }
.kd-b i.kd-nv { border-radius: 0 4px 4px 0; }

/* 1.10.2: indicadores con semáforo y barras */
.ind-sem { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.ind-tira { display: flex; gap: 3px; } .ind-tira i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.ind-tira i.bien { background: #1b7f4b; } .ind-tira i.mal { background: #c03030; } .ind-tira i.alerta { background: #d49a1f; }
.ind-pill { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.ind-pill.bien { background: #e3f4ea; color: #1b7f4b; } .ind-pill.mal { background: #fbe5e5; color: #b02a2a; } .ind-pill.alerta { background: #fdf1d8; color: #9a6a10; } .ind-pill.neu { background: var(--bd2); color: var(--tx2); }
.ind-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
@media (max-width: 1100px) { .ind-g { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ind-v .v { white-space: nowrap; } .ind-p { margin: -4px 0 12px; min-height: 1.4em; }
.ind-res .ind-tira { margin: 6px 0 12px; flex-wrap: wrap; } .ind-cnt { display: flex; flex-wrap: wrap; gap: 6px; }
table.t.ind-t .ind-pill { white-space: normal; }
.ind-k { border-left: 4px solid var(--bd2); } .ind-k.bien { border-left-color: #1b7f4b; } .ind-k.mal { border-left-color: #c03030; } .ind-k.alerta { border-left-color: #d49a1f; }
.ind-k .k { min-height: 2.3em; }
.ind-v { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 10px; }
.ind-v .v { margin: 0; } .v.bien, b.bien { color: #1b7f4b; } .v.mal, b.mal { color: #c03030; } .v.alerta, b.alerta { color: #b07d14; }
.ind-bar { position: relative; height: 10px; background: var(--bd2); border-radius: 5px; }
.ind-bar i { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: var(--navy); }
.ind-bar i.bien { background: #2e9d63; } .ind-bar i.mal { background: #d64545; } .ind-bar i.alerta { background: #e0a82e; }
.ind-bar b { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--tx); border-radius: 1px; }
.ind-bar em { position: absolute; top: -5px; font-style: normal; font-size: .8rem; color: var(--tx2); } .ind-bar em.der { right: -12px; } .ind-bar em.izq { left: -12px; }
.ind-esc { position: relative; display: flex; justify-content: space-between; font-size: .7rem; color: var(--tx2); margin-top: 4px; height: 1.1em; }
.ind-esc .meta { position: absolute; transform: translateX(-50%); white-space: nowrap; color: var(--tx); font-weight: 600; }
.ind-bar.cero + .ind-esc span:nth-child(2) { position: absolute; left: 50%; transform: translateX(-50%); }
table.t.ind-t td { vertical-align: middle; }
.ind-txt { display: inline-flex; align-items: baseline; gap: 6px; font-weight: 600; } .ind-txt i { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--tx2); }
.ind-txt.bien { color: #1b7f4b; } .ind-txt.bien i { background: #1b7f4b; } .ind-txt.mal { color: #b02a2a; } .ind-txt.mal i { background: #c03030; } .ind-txt.alerta { color: #9a6a10; } .ind-txt.alerta i { background: #d49a1f; }
table.t.ind-t { width: 100%; }
table.t.ind-t td:first-child { white-space: normal; }
/* 1.10.3: tarjetas de indicadores compactas */
.ind-g { gap: 10px; margin-bottom: 12px; }
.kpi.ind-k { padding: 9px 12px 8px; }
.ind-k .k { min-height: 0; font-size: .68rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ind-v { margin: 2px 0 6px; }
.ind-k .ind-v .v { font-size: 1.2rem; line-height: 1.2; }
.ind-k .ind-pill { font-size: .68rem; padding: 1px 7px; }
.ind-k .ind-bar { height: 6px; border-radius: 3px; } .ind-k .ind-bar i { border-radius: 3px; } .ind-k .ind-bar b { top: -3px; bottom: -3px; }
.ind-k .ind-bar em { top: -6px; font-size: .7rem; }
.ind-k .ind-esc { font-size: .62rem; margin-top: 2px; }
.ind-res .ind-tira { margin: 2px 0 6px; } .ind-res .ind-tira i { width: 11px; height: 11px; border-radius: 2px; }
.ind-res .ind-cnt .ind-pill { font-size: .66rem; padding: 1px 7px; }
.ind-res .ind-v .chico { font-size: .68rem; }
.comp-sw { display: flex; align-items: center; gap: 6px; margin: -4px 16px 10px; font-size: .74rem; color: rgba(255,255,255,.7); }
.comp-sw select { flex: 1; min-width: 0; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 2px 8px; font-size: .74rem; }
.comp-sw select option { color: #10284e; }
/* 1.11.2: análisis de anexos */
.anx-g { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
@media (max-width: 1100px) { .anx-g { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi.anx-k { padding: 9px 12px; } .anx-k .k { font-size: .68rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.anx-v { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin: 2px 0 6px; } .anx-k .anx-v .v { font-size: 1.2rem; margin: 0; white-space: nowrap; }
.anx-pp { font-weight: 700; color: var(--navy); font-size: .8rem; white-space: nowrap; }
.anx-bar { height: 6px; background: var(--bd2); border-radius: 3px; position: relative; } .anx-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--navy); border-radius: 3px; }
.anx-top { display: flex; flex-wrap: wrap; gap: 2px 8px; margin-top: 6px; color: var(--tx2); font-size: .68rem; } .anx-top b { color: var(--tx); }
.anx-tot { border-left: 4px solid var(--gold); }
.anx-p2 { margin-bottom: 12px; }
.anx-lista { display: flex; flex-direction: column; gap: 4px; }
.anx-f { display: grid; grid-template-columns: 44% 1fr 74px 60px; align-items: center; gap: 8px; font-size: .8rem; padding: 3px 6px; border-radius: 6px; cursor: pointer; }
.anx-f:hover { background: var(--bd2); } .anx-f.sel { background: rgba(245,180,76,.18); box-shadow: inset 3px 0 0 var(--gold); }
.anx-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .anx-n small { display: block; color: var(--tx2); font-size: .68rem; overflow: hidden; text-overflow: ellipsis; }
.anx-b { height: 9px; background: var(--bd2); border-radius: 4px; position: relative; } .anx-b i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--navy); } .anx-b i.c { background: #c0791b; }
.anx-m { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; } .anx-p { text-align: right; color: var(--tx2); font-variant-numeric: tabular-nums; } .anx-p small { display: block; font-size: .64rem; }
table.t.anx-t th.anx-csel { background: #b07d14; } table.t.anx-t td.anx-csel { box-shadow: inset 2px 0 0 var(--gold), inset -2px 0 0 var(--gold); }
table.t.anx-t tr.n1 td:first-child, table.t.anx-t tr.n2 td:first-child { white-space: normal; }
/* 1.12.0: estructura financiera */
.est-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--bd2); margin: 0 0 14px; }
.est-tabs a { padding: 8px 14px; color: var(--tx2); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -2px; font-weight: 600; font-size: .9rem; }
.est-tabs a.on { color: var(--navy); border-bottom-color: var(--gold); }
.bse-g { margin-bottom: 14px; display: grid; grid-template-columns: 1fr; gap: 12px; } .bse-g .card { margin: 0; }
.bse-l { display: flex; flex-direction: column; gap: 4px; }
.bse-f { display: grid; grid-template-columns: minmax(200px, 1fr) 300px 140px 190px; gap: 6px; align-items: center; padding: 4px 6px; border-radius: 6px; background: var(--bd2); }
.bse-f.n1 { background: transparent; margin-left: 18px; border-left: 2px solid var(--bd2); }
.bse-f.n0 .bse-nom { font-weight: 700; }
.bse-f input, .bse-f select { min-width: 0; padding: 3px 6px; font-size: .8rem; }
.bse-s { text-align: right; font-variant-numeric: tabular-nums; font-size: .78rem; color: var(--tx2); }
.bse-acc { display: flex; gap: 2px; justify-content: flex-end; } .bse-acc .btn { padding: 2px 6px; }
/* 1.13.0: tipo de cambio desde los bancos */
.tc-in.o-banco { background: #eef6f1; } .tc-in.o-manual { background: #fff7e6; }
.tc-or { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: .7rem; } .tc-or.banco { background: #eef6f1; } .tc-or.manual { background: #fff7e6; }
.pill-ok { background: #e3f4ea; color: #1b7f4b; border-radius: 8px; padding: 0 6px; font-size: .7rem; font-weight: 600; }
/* 1.14 · plantilla del CECO por pasos */
.pasos { display: flex; align-items: center; gap: 6px; margin: 4px 0 14px; flex-wrap: wrap; }
.pasos .psep { flex: 1 1 12px; min-width: 8px; height: 2px; background: var(--borde, #d8e0ea); }
.paso { display: flex; align-items: center; gap: 8px; background: var(--card, #fff); border: 1px solid var(--borde, #d8e0ea); border-radius: 10px; padding: 6px 12px 6px 6px; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.paso .pn { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; background: #e8eef6; color: #16396b; flex: none; }
.paso .pt { display: flex; flex-direction: column; line-height: 1.15; }
.paso .pt b { font-size: .86rem; } .paso .pt small { font-size: .72rem; opacity: .65; }
.paso.ok .pn { background: #2e9b5f; color: #fff; }
.paso.sel { border-color: var(--hl2, #7cc8ff); box-shadow: 0 0 0 2px color-mix(in srgb, var(--hl2, #7cc8ff) 35%, transparent); }
.paso.sel .pn { background: #16396b; color: #fff; }
.pasos-nav { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--borde, #d8e0ea); }
.anx-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.anx-lista { display: flex; flex-direction: column; gap: 6px; }
.anx-sec { border: 1px solid var(--borde, #d8e0ea); border-radius: 10px; background: var(--card, #fff); }
.anx-sec > summary { display: flex; align-items: center; gap: 10px; padding: 9px 14px; cursor: pointer; list-style: none; }
.anx-sec > summary::-webkit-details-marker { display: none; }
.anx-sec > summary::before { content: '▸'; font-size: .8rem; opacity: .6; }
.anx-sec[open] > summary::before { content: '▾'; }
.anx-sec .anx-n { font-weight: 600; }
.anx-sec .anx-c { margin-left: auto; font-size: .78rem; opacity: .6; }
.anx-sec .anx-t { min-width: 110px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.anx-sec[open] > summary { border-bottom: 1px solid var(--borde, #d8e0ea); }
.anx-body { padding: 10px 14px 12px; }
.rev-it { padding: 4px 0; font-size: .9rem; } .rev-it span { display: inline-block; width: 18px; color: #b07a12; } .rev-it.ok span { color: #2e9b5f; } .rev-it a { margin-left: 6px; font-size: .78rem; cursor: pointer; text-decoration: underline; }
label.btn.pri, label.btn.pri:hover { color: #fff; }
/* 1.20 · P&L por nivel de la estructura */
.pyl-cab { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pyl-bar { display: inline-block; width: 110px; height: 8px; background: #eef2f7; border-radius: 4px; overflow: hidden; vertical-align: middle; }
.pyl-bar i { display: block; height: 100%; border-radius: 4px; }
.pyl-bar i.b-pos { background: #2e9b5f; } .pyl-bar i.b-neg { background: #d0453b; }
/* 1.20.1 · campos de porcentaje: se escribe 5 para 5 %, con el signo % visible */
input[name$="_pct"], input[name="pct"], input[name="umbral_variacion"], input[name^="sem_"], input.esc-in {
  padding-right: 26px !important; text-align: right;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Ctext x='1' y='12' font-size='13' font-family='Arial' fill='%23667'%3E%25%3C/text%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 8px center !important;
}
/* 1.23 · panel del Estado de Resultados */
.erp-grid { display: flex; flex-direction: column; gap: 14px; }
.erp-der { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 1250px) { .erp-der { grid-template-columns: 1fr; } }
.erp-tit { font-weight: 700; color: #16396b; font-size: 1rem; margin-bottom: 8px; }
table.erp-t td, table.erp-t th, table.erp-dim td, table.erp-dim th { padding: 5px 7px; font-size: .78rem; white-space: nowrap; }
table.erp-t th.erp-h1 { background: #1f4a85; color: #fff; } table.erp-t th.erp-h2 { background: #10284e; color: #fff; }
table.erp-t tbody td:nth-child(5) { border-left: 2px solid #16396b26; }
table.erp-t tbody td:nth-child(n+5):nth-child(-n+7) { background-color: #16396b06; }
table.erp-t tbody td.erp-pp { background-color: #f5b44c14 !important; }
table.erp-t td.erp-pp { border-left: 0; border-right: 0; }
table.erp-t tr.erp-total td { font-weight: 700; border-top: 1px solid #16396b55; }
table.erp-t tr.erp-porcentaje td { color: #2a7fc0; font-weight: 600; font-style: italic; }
table.erp-t tr.erp-grupo td:first-child { padding-left: 16px; }
.erp-d { position: relative; min-width: 230px; }
.erp-d .erp-eje { position: absolute; left: 0; top: 2px; bottom: 2px; border-left: 1px solid #556; }
.erp-d i { display: inline-block; height: 12px; vertical-align: middle; margin: 0 6px 0 2px; border-radius: 2px; }
.erp-d i.ok { background: #2e9b5f; } .erp-d i.mal { background: #d0453b; }
.erp-d span:not(.erp-eje) { font-size: .78rem; font-weight: 600; }
table.erp-dim tr.erp-cia td { font-weight: 700; background: #f2f5f9; }
table.erp-dim tr.erp-un td:first-child { padding-left: 22px; color: #445; }
table.erp-dim td.erp-acu { background: #16396b0d; }
svg.erp-hist { width: 100%; height: auto; }
svg.erp-hist .hb-pos { fill: #2e9b5f; } svg.erp-hist .hb-neg { fill: #d0453b; } svg.erp-hist .hb-eje { stroke: #99a; stroke-width: 1; }
svg.erp-hist text { font-family: inherit; text-anchor: middle; }
svg.erp-hist .hb-v { font-size: 9px; fill: #334; } svg.erp-hist .hb-x { font-size: 9px; fill: #778; }
svg.erp-hist .hb-m { font-size: 8.5px; font-weight: 700; } svg.erp-hist .hb-m.p { fill: #1b7f4b; } svg.erp-hist .hb-m.n { fill: #c03030; }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: middle; margin-right: 4px; } .lg-p { background: #2e9b5f; } .lg-n { background: #d0453b; }
/* 1.24 · filtros dentro del encabezado fijo */
.titulo > .filtros, .titulo > .tabs { margin: 10px 0 0; }
.titulo > .filtros { padding-bottom: 2px; }
#er-niv:empty { display: none; }
#er-niv { margin-left: auto; align-items: center; }
/* Tablas largas sin tope de alto: el encabezado de columnas se queda fijo debajo del encabezado de la pantalla */
.tabla-env.sinmax { overflow-x: clip; overflow-y: visible; }
.tabla-env.sinmax table.t thead th { top: var(--hdr-h, 0px); z-index: 3; }
.tabla-env.sinmax table.t thead tr:nth-child(2) th { top: calc(var(--hdr-h, 0px) + 29px); }
/* Los colores de Mensual y Acumulado bajan a la fila de los años */
table.erp-t thead tr:nth-child(2) th.erp-h1 { background: #1f4a85; }
table.erp-t thead tr:nth-child(2) th.erp-h2 { background: #10284e; }

/* 1.25 · Balance de situación con variación, participación e indicadores */
.bsp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; align-items: stretch; }
.bsp-izq { display: flex; flex-direction: column; } .bsp-izq #bsrc { flex: 1; display: flex; flex-direction: column; } .bsp-izq #bsrc > .card { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; margin-bottom: 0; }
#bsp > .card { margin-bottom: 0; } #bsp > .card:last-child { margin-top: auto; }
@media (max-width: 1250px) { .bsp-grid { grid-template-columns: 1fr; } #bsp > .card:last-child { margin-top: 0; } }
#bsp { display: flex; flex-direction: column; gap: 12px; }
table.t.bs td.bs-d { position: relative; width: 170px; min-width: 170px; padding: 0; overflow: hidden; }
table.t.bs td, table.t.bs th { padding-left: 7px; padding-right: 7px; font-size: .8rem; }
table.t.bs td:first-child { white-space: normal; min-width: 180px; }
.bs-d .bs-eje { position: absolute; left: 50%; top: 3px; bottom: 3px; border-left: 1px solid #889; }
.bs-d i { position: absolute; top: 50%; height: 11px; margin-top: -5.5px; border-radius: 2px; }
.bs-d i.ok { background: #2e9b5f; } .bs-d i.mal { background: #d0453b; }
.bs-d .bs-dv { position: absolute; top: 50%; transform: translateY(-50%); font-size: .7rem; white-space: nowrap; color: #445; }
table.t.bs td.bs-part { color: #556; font-size: .78rem; background: #f5b44c0d; }
.bsp-dona { display: flex; align-items: center; gap: 14px; }
.bsp-ley { display: grid; grid-template-columns: 12px 1fr auto; gap: 2px 6px; align-items: center; font-size: .8rem; margin: 6px 0; }
.bsp-ley i { width: 10px; height: 10px; border-radius: 2px; } .bsp-ley b { text-align: right; } .bsp-ley small { grid-column: 2 / 4; color: #778; }
svg.rc-svg { width: 100%; height: auto; } .rc-a { fill: #f5b44c33; } .rc-l { fill: none; stroke: #d99a20; stroke-width: 2; } .rc-p { fill: #d99a20; }
svg.rc-svg text { font-family: inherit; text-anchor: middle; } .rc-v { font-size: 11px; font-weight: 700; fill: #16396b; } .rc-x { font-size: 10.5px; fill: #778; }
.bsk-g { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bsk { border-left: 3px solid #16396b33; padding: 2px 0 2px 8px; }
.bsk-t { font-size: .74rem; color: #556; margin-bottom: 3px; }
.bsk-v { display: flex; gap: 14px; } .bsk-v span { display: flex; flex-direction: column; } .bsk-v b { font-size: .95rem; color: #16396b; } .bsk-v .pos b { color: #1b7f4b; } .bsk-v .neg b { color: #c03030; } .bsk-v small { font-size: .68rem; color: #889; }

/* ===== Resumen ejecutivo ===== */
.rx-hilo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -4px 0 14px; }
.rx-hilo a { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--card); border: 1px solid var(--bd); cursor: pointer; font-weight: 600; color: var(--navy); font-size: .88rem; text-decoration: none; }
.rx-hilo a:hover { border-color: var(--navy); }
.rx-hilo a.dec { background: var(--navy); color: #fff; border-color: var(--navy); } .rx-hilo a.dec .rx-n { background: var(--gold); color: var(--navy2); }
.rx-fl { color: var(--tx2); }
.rx-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .78rem; font-weight: 700; flex: none; }
.rx-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.rx-top .card { margin: 0; }
.rx-eb { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tx2); margin-bottom: 8px; }
.rx-lec { border-left: 4px solid var(--navy); }
.rx-lec p { margin: 0 0 9px; display: flex; gap: 10px; align-items: flex-start; line-height: 1.38; font-size: .96rem; }
.rx-lec p:last-child { margin-bottom: 0; }
.rx-lec p i { flex: none; width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; } .rx-lec p i.ok { background: var(--ok); } .rx-lec p i.mal { background: var(--bad); }
.rx-dec { border-left: 4px solid var(--gold); display: flex; flex-direction: column; }
.rx-di { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; color: var(--tx); text-decoration: none; font-size: .9rem; line-height: 1.3; border-bottom: 1px solid var(--bd2); }
.rx-di:last-child { border-bottom: 0; } .rx-di:hover { background: var(--bg); }
.rx-di i { flex: none; width: 4px; align-self: stretch; border-radius: 2px; background: var(--info); } .rx-di.mal i { background: var(--bad); } .rx-di.aviso i { background: var(--warn); }
.rx-di span { flex: 1; } .rx-di em { font-style: normal; color: var(--tx2); font-size: 1.1rem; } .rx-di span b { font-weight: 700; }
.rx-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 8px; }
.rx-kpi { background: var(--card); border: 1px solid var(--bd); border-radius: var(--r); box-shadow: var(--sh); padding: 13px 15px 11px; color: var(--tx); text-decoration: none; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "k s" "v v" "c c" "u u"; align-items: start; column-gap: 8px; }
.rx-kpi[href]:hover { border-color: var(--navy); }
.rx-k { grid-area: k; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--tx2); }
.rx-v { grid-area: v; font-size: 1.7rem; font-weight: 700; color: var(--navy); line-height: 1.15; margin-top: 3px; white-space: nowrap; }
[data-theme="oscuro"] .rx-v, [data-theme="oscuro"] .rx-hilo a { color: #e6ebf5; }
.rx-spark { grid-area: s; width: 76px; height: 24px; margin-top: -4px; } .rx-spark polyline { fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linejoin: round; } .rx-spark circle { fill: var(--gold); }
.rx-spark.mal polyline { stroke: var(--bad); }
.rx-chips { grid-area: c; display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; min-height: 20px; }
.rx-chip { font-size: .76rem; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: var(--gris); color: var(--tx2); white-space: nowrap; }
.rx-chip.ok { background: var(--ver); color: var(--ok); } .rx-chip.mal { background: #fde8e8; color: var(--bad); }
[data-theme="oscuro"] .rx-chip.mal { background: #3a1c22; }
.rx-sub { grid-area: u; font-size: .76rem; color: var(--tx2); margin-top: 5px; }
.rx-sem { display: flex; height: 9px; width: 100%; border-radius: 5px; overflow: hidden; gap: 2px; margin: 6px 0 2px; }
.rx-sem i.Cumplido { background: var(--ok); } .rx-sem i.Atención { background: var(--warn); } .rx-sem i.Crítico { background: var(--bad); }
.rx-h { display: flex; align-items: center; gap: 10px; margin: 26px 0 10px; font-size: 1.2rem; color: var(--navy); }
.rx-h .rx-n { width: 26px; height: 26px; font-size: .88rem; }
.rx-q { font-size: .92rem; font-weight: 400; color: var(--tx2); font-style: italic; }
[data-theme="oscuro"] .rx-h { color: #e6ebf5; }
.rx-g2 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 14px; }
.rx-g3 { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 14px; }
.rx-g3b { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 14px; }
.rx-g2 .card, .rx-g3 .card, .rx-g3b .card { margin: 0; }
.rx-g3 + .card { margin-top: 14px; }
@media (max-width: 1150px) { .rx-top, .rx-g2, .rx-g3, .rx-g3b { grid-template-columns: 1fr; } }
.rx-ct { font-weight: 700; color: var(--navy); font-size: 1rem; margin-bottom: 10px; }
[data-theme="oscuro"] .rx-ct { color: #e6ebf5; }
.rx-lin { display: grid; grid-template-columns: minmax(120px, 1.3fr) minmax(90px, 1.5fr) 74px 66px 50px; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--bd2); font-size: .88rem; }
.rx-lin:last-child { border-bottom: 0; }
.rx-lh { font-size: .72rem; color: var(--tx2); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; padding-top: 0; }
.rx-lh > div:nth-child(n+3) { text-align: right; }
.rx-ln { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rx-bar { position: relative; height: 12px; border-radius: 6px; background: var(--gris); }
.rx-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: var(--info); }
.rx-bar i.Cumplido { background: var(--ok); } .rx-bar i.Atención { background: var(--warn); } .rx-bar i.Crítico { background: var(--bad); } .rx-bar i.plan { background: var(--navy); }
.rx-meta { position: absolute; right: 0; top: -3px; bottom: -3px; width: 2px; background: var(--tx2); opacity: .5; }
.rx-pc, .rx-ex, .rx-cr { text-align: right; font-variant-numeric: tabular-nums; } .rx-pc { font-weight: 700; white-space: nowrap; } .rx-ex { color: var(--tx2); }
.rx-crit { display: inline-block; min-width: 22px; padding: 1px 6px; border-radius: 999px; background: #fde8e8; color: var(--bad); font-weight: 700; text-align: center; font-size: .8rem; }
.rx-act { display: flex; align-items: center; gap: 8px; padding: 7px 4px; border-bottom: 1px solid var(--bd2); font-size: .88rem; border-radius: 6px; }
.rx-act:hover { background: var(--bg); }
.rx-an { flex: 1; min-width: 0; line-height: 1.3; } .rx-ap { font-weight: 700; font-variant-numeric: tabular-nums; }
.rx-mas { display: inline-block; margin-top: 10px; font-size: .86rem; font-weight: 600; }
.rx-wf, .rx-mm, .rx-rc { width: 100%; display: block; }
.rx-0 { stroke: var(--tx2); stroke-width: 1; opacity: .45; }
.rx-wf .rx-sube { fill: #2c6fbb; } .rx-wf .rx-baja { fill: #e08585; } .rx-wf .rx-tot { fill: var(--navy); } .rx-wf .rx-tot.neg { fill: var(--bad); }
[data-theme="oscuro"] .rx-wf .rx-tot { fill: #5b8fd6; }
.rx-cn { stroke: var(--tx2); stroke-dasharray: 2 2; opacity: .6; }
.rx-pp { stroke: #e0a53a; stroke-width: 2.5; stroke-linecap: round; }
.rx-vl { font-size: 11px; font-weight: 700; fill: var(--tx); } .rx-vl.baja { fill: var(--bad); } .rx-vl.tot { fill: var(--navy); font-size: 11.5px; }
[data-theme="oscuro"] .rx-vl.tot { fill: #e6ebf5; }
.rx-xl { font-size: 10px; fill: var(--tx2); } .rx-xl.tot { font-weight: 700; fill: var(--tx); }
.rx-mm rect { fill: var(--navy); } .rx-mm rect.neg { fill: var(--bad); } [data-theme="oscuro"] .rx-mm rect { fill: #5b8fd6; }
.rx-mm polyline { fill: none; stroke-width: 2; stroke-linejoin: round; } .rx-mm .a { stroke: #9aa7bf; stroke-dasharray: 4 3; } .rx-mm .p { stroke: #e0a53a; }
.rx-ley { display: flex; gap: 14px; margin: -4px 0 4px; color: var(--tx2); }
.rx-ley i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.rx-ley i.b { background: var(--navy); } .rx-ley i.l { height: 0; border-top: 2px solid; width: 14px; vertical-align: 3px; border-radius: 0; } .rx-ley i.a { border-color: #9aa7bf; border-top-style: dashed; } .rx-ley i.p { border-color: #e0a53a; }
.rx-uns { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); column-gap: 30px; }
.rx-un-h { display: none; }
.rx-un { display: grid; grid-template-columns: minmax(130px, 1.1fr) minmax(100px, 2fr) 76px 56px; gap: 12px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--bd2); font-size: .88rem; }
.rx-unn { line-height: 1.25; overflow: hidden; }
.rx-unb { position: relative; height: 20px; }
.rx-unb i { position: absolute; top: 3px; height: 14px; border-radius: 3px; background: var(--navy); } .rx-unb i.neg { background: var(--bad); }
.rx-unb.div::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--tx2); opacity: .4; }
.rx-z { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--tx2); opacity: .45; } .rx-unv { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.rx-el { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-gr { stroke: var(--bd2); }
.rx-bl { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; color: var(--tx2); justify-content: center; }
.rx-bl i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; } .rx-bl b { color: var(--tx); }
.rx-bl .c1 { background: #2c6fbb; } .rx-bl .c2 { background: #8fb3de; } .rx-bl .c3 { background: #d64545; } .rx-bl .c4 { background: #eba0a0; } .rx-bl .c5 { background: var(--navy); }
.rx-unm { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.rx-cols { display: flex; gap: 22px; justify-content: center; height: 230px; padding: 4px 10px 0; }
.rx-col { flex: 1; max-width: 190px; display: flex; flex-direction: column; }
.rx-colt { text-align: center; font-size: .8rem; font-weight: 700; color: var(--tx2); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .03em; }
.rx-stk { flex: 1; display: flex; flex-direction: column; gap: 2px; justify-content: flex-end; }
.rx-stk > div { border-radius: 4px; position: relative; min-height: 4px; overflow: hidden; }
.rx-stk span { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 8px; color: #fff; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.rx-stk .c1 { background: #2c6fbb; } .rx-stk .c2 { background: #8fb3de; } .rx-stk .c2 span { color: #10284e; }
.rx-stk .c3 { background: #d64545; } .rx-stk .c4 { background: #eba0a0; } .rx-stk .c4 span { color: #5a1414; } .rx-stk .c5 { background: var(--navy); }
.rx-inds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rx-ind { border-left: 3px solid var(--bd); padding: 2px 0 2px 10px; }
.rx-in { font-size: .78rem; color: var(--tx2); } .rx-iv { font-size: 1.3rem; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; } .rx-ip { font-size: .76rem; color: var(--tx2); }
[data-theme="oscuro"] .rx-iv { color: #e6ebf5; }
.rx-rct { margin: 14px 0 2px; }
.rx-rc polyline { fill: none; stroke: #e0a53a; stroke-width: 2; } .rx-uno { stroke: var(--bad); stroke-dasharray: 3 3; opacity: .6; }
.rx-prep { display: block; color: inherit; text-decoration: none; }

.rx-un2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; }
@media (max-width: 1150px) { .rx-un2 { grid-template-columns: 1fr; } }
.rx-ust { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--navy); padding-bottom: 6px; border-bottom: 2px solid var(--navy); }
.rx-ust span { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--tx2); }
[data-theme="oscuro"] .rx-ust { color: #e6ebf5; border-color: #5b8fd6; }
.rx-unb i.pos { background: var(--ok); } .rx-unv.pos, .rx-unm.pos { color: var(--ok); }
.rx-unf { margin-top: 8px; }
