/* Sistema visual del prototipo de Business Analytics de Serveo (v18, junio 2026):
   la barra lateral verde de Gober, Poppins para el texto, Fraunces para las cifras
   y coral de acento. Lo que aún no existe va con la etiqueta «próximamente» en vez
   de desaparecer: así se ve hacia dónde va el producto sin prometerlo para hoy. */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&display=swap');

:root{
  --orange:#fc783d; --orange-soft:#fff0e7; --orange-line:#f8d2bc;
  --green:#222B24; --green-light:#2f3a32; --green-700:#1a211c;
  --cyan:#EDF4F3; --paper:#fff;
  --gray:#424242; --gray-soft:#6b6b6b; --gray-line:#e5e5e5; --bg:#f5f5f5;
  --red:#c4453b; --yellow:#d4a72c; --blue:#3f6f8f; --teal:#3b7d6e;
  --f1:#3b7d6e; --f1-soft:#eaf5f1; --f2:#c9971f; --f2-soft:#fbf3df; --f3:#3f6f8f; --f3-soft:#e9f0f5;
}
*{box-sizing:border-box;margin:0;padding:0}
[hidden]{display:none!important}
html,body{height:100%}
body{font-family:'Poppins',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--gray);
  background:var(--bg);-webkit-font-smoothing:antialiased;line-height:1.45;font-size:13px}
a{color:inherit;text-decoration:none}
button,input,select{font-family:inherit}
button{cursor:pointer;border:none;background:none;color:inherit}
.app{display:flex;height:100vh;overflow:hidden}

/* ===== Etiquetas de fase ===== */
.ph{display:inline-flex;align-items:center;font-size:9px;font-weight:700;letter-spacing:.04em;
  padding:1px 6px;border-radius:5px;vertical-align:middle;text-transform:uppercase;white-space:nowrap}
.ph1{background:var(--f1-soft);color:var(--f1)}
.ph2{background:var(--f2-soft);color:var(--f2)}
.ph3{background:var(--f3-soft);color:var(--f3)}

/* ===== Barra lateral ===== */
.nav{width:222px;flex:0 0 222px;background:var(--green);color:#fff;display:flex;flex-direction:column}
.brand{padding:22px 20px 16px;border-bottom:1px solid var(--green-light)}
.brand-logo{height:21px;width:auto;display:block}
.brand-sub{font-size:10.5px;color:#9fb0a4;margin-top:8px;letter-spacing:.04em;text-transform:uppercase}
.nav-scroll{flex:1;overflow-y:auto}
.nav-group{padding:13px 12px 3px}
.nav-label{font-size:9.5px;text-transform:uppercase;letter-spacing:.14em;color:#7d8e82;padding:5px 10px 7px}
.nav-item{display:flex;align-items:center;gap:11px;padding:9px 11px;border-radius:8px;color:#cdd6cf;
  font-size:12.5px;margin-bottom:2px;position:relative;width:100%}
.nav-item svg{width:16px;height:16px;stroke:currentColor;stroke-width:1.7;fill:none;flex:0 0 16px}
a.nav-item:hover{background:var(--green-light);color:#fff}
.nav-item.active{background:rgba(252,120,61,.16);color:#fff;font-weight:500}
.nav-item.active::before{content:"";position:absolute;left:-12px;top:7px;bottom:7px;width:3px;
  background:var(--orange);border-radius:0 3px 3px 0}
.nav-item.off{color:#6f8074;cursor:default}
.nav-item .ph{margin-left:auto}
.nav-foot{padding:13px 14px;border-top:1px solid var(--green-light);display:flex;align-items:center;gap:10px}
.nav-foot .who{font-size:11.5px}
.nav-foot .role{font-size:10.5px;color:#9fb0a4}
.nav-foot a.role:hover{color:var(--orange)}
.avatar{width:30px;height:30px;border-radius:50%;background:var(--orange);color:#fff;display:flex;
  align-items:center;justify-content:center;font-weight:600;font-size:12px;flex:0 0 30px}

/* ===== Cabecera ===== */
.main{flex:1;display:flex;flex-direction:column;min-width:0}
.topbar{min-height:56px;background:var(--paper);border-bottom:1px solid var(--gray-line);display:flex;
  align-items:center;gap:14px;padding:0 20px;flex:0 0 auto}
.crumb{font-size:11px;color:var(--gray-soft);display:flex;align-items:center;gap:7px}
.crumb b{color:var(--gray);font-weight:600;font-size:13px}
.crumb a:hover{color:var(--orange)}
.spacer{flex:1}
.btn{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 13px;border-radius:8px;
  font-size:12px;font-weight:500;transition:.13s;white-space:nowrap}
.btn svg{width:15px;height:15px;stroke:currentColor;stroke-width:1.8;fill:none}
.btn-ghost{color:var(--gray);border:1px solid var(--gray-line);background:#fff}
.btn-ghost:hover{background:#fafafa;border-color:var(--orange-line)}

/* ===== Piezas comunes ===== */
.screens{flex:1;display:flex;min-height:0}
.scroll{flex:1;overflow-y:auto;min-width:0}
.pad{padding:22px 26px 40px;max-width:1200px}
.card{background:var(--paper);border:1px solid var(--gray-line);border-radius:12px;padding:17px 19px;margin-bottom:14px}
.card>h4{font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:var(--gray-soft);margin-bottom:13px;
  display:flex;align-items:center;justify-content:space-between;gap:8px;font-weight:600}
.card.off{background:#fafafa;border-style:dashed}
.card.off>h4{color:#a3a3a3}
.nota{font-size:11px;color:var(--gray-soft);margin-top:8px;line-height:1.5}
.enlace{color:var(--orange);font-weight:500}
.vacio{padding:26px;text-align:center;color:var(--gray-soft);background:var(--paper);border:1px dashed var(--gray-line);
  border-radius:11px;margin-bottom:12px}
.intro{background:linear-gradient(120deg,#fffaf6,#fff);border:1px solid var(--orange-line);border-radius:13px;
  padding:15px 18px;margin-bottom:18px}
.intro .t{font-size:12px;font-weight:600;color:#1f1f1f;margin-bottom:5px;display:flex;align-items:center;gap:8px}
.intro p{font-size:12px;color:var(--gray-soft);line-height:1.55;max-width:880px}
.sec-h{display:flex;align-items:center;gap:11px;margin:22px 0 14px}
.sec-h h2{font-size:13px;font-weight:600;color:var(--gray);text-transform:uppercase;letter-spacing:.05em;white-space:nowrap}
.sec-h .dot{width:9px;height:9px;border-radius:50%;flex:0 0 9px}
.sec-h .c{font-size:11px;color:var(--gray-soft);background:#ececec;padding:2px 8px;border-radius:10px;font-weight:600}
.sec-h .line{flex:1;height:1px;background:var(--gray-line)}
.ver-todas{font-size:11.5px;color:var(--orange);font-weight:500;white-space:nowrap}
.field{display:flex;justify-content:space-between;gap:14px;padding:7px 0;border-bottom:1px dashed #efefed;font-size:12.5px}
.field:last-child{border-bottom:none}
.field .k{color:var(--gray-soft)}
.field .v{color:var(--gray);font-weight:500;text-align:right}
.field.pend .k{color:#a3a3a3}
.src{display:inline-flex;align-items:center;font-size:9px;font-weight:600;padding:1px 5px;border-radius:4px;margin-left:6px}
.src.calc{background:var(--f2-soft);color:var(--f2)}
.nc{display:inline-block;font-size:11px;font-weight:600;color:var(--gray-soft);background:#efefed;padding:1px 8px;border-radius:5px}
.ba-chip{font-size:10px;font-weight:600;padding:2px 8px;border-radius:5px;white-space:nowrap}
.ba-chip.azul{background:#eaf1f6;color:#3f6f8f}
.ba-chip.gris{background:#efefed;color:#5f5f5f}
.tag-new{font-size:9.5px;font-weight:600;color:#3b7d6e;background:#eaf5f1;padding:2px 8px;border-radius:5px;white-space:nowrap}
.tag-ret{font-size:9.5px;font-weight:600;color:#b8531f;background:var(--orange-soft);padding:2px 8px;border-radius:5px;white-space:nowrap}
.tag-serveo{font-size:9.5px;font-weight:600;color:#3b7d6e;background:#eaf5f1;padding:1px 7px;border-radius:5px}
.tag-nc{font-size:9.5px;color:#8a8a8a;background:#f1f1ef;padding:1px 7px;border-radius:5px;white-space:nowrap}
.pill{font-size:10.5px;font-weight:500;padding:3px 10px;border-radius:20px;background:#efefed;color:#5f5f5f;white-space:nowrap}
.pill.adj{background:#eef3ee;color:#4a6b52}
.pill.curso{background:#eaf1f6;color:#3f6f8f}
.pill.form{background:#f4eef6;color:#7a5a8a}
.pill.eval{background:#fbf1dc;color:#a07d1e}
.pill.anul{background:#fbeaea;color:var(--red)}
.aviso-fila{margin-top:8px;font-size:11px;color:#b8531f}

/* ===== Exploración · filtros ===== */
.filters{width:250px;flex:0 0 250px;background:var(--paper);border-right:1px solid var(--gray-line);
  overflow-y:auto;padding:16px 0 30px}
.filters h3{font-size:11px;text-transform:uppercase;letter-spacing:.1em;color:var(--gray-soft);padding:0 18px 8px;
  display:flex;justify-content:space-between;align-items:center;font-weight:600}
.filters h3 a{font-size:10.5px;color:var(--orange);text-transform:none;letter-spacing:0;font-weight:500}
.buscar{padding:4px 18px 12px;border-bottom:1px solid #f0f0ee}
.buscar input{width:100%;font-size:12px;border:1px solid var(--gray-line);border-radius:8px;padding:8px 10px;background:#fafafa}
.buscar input:focus{outline:none;border-color:var(--orange);background:#fff}
.fgroup{border-bottom:1px solid #f0f0ee;padding:12px 18px}
.fgroup.solo{padding:11px 18px}
.fgroup-h{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600;color:var(--gray);cursor:pointer;list-style:none}
.fgroup-h::-webkit-details-marker{display:none}
.fgroup-h .chev{width:13px;height:13px;stroke:var(--gray-soft);stroke-width:2;fill:none;margin-left:auto;
  transition:transform .18s;transform:rotate(-90deg)}
details.fgroup[open] .fgroup-h .chev{transform:none}
.fgroup-h .nsel{font-size:9.5px;font-weight:700;color:#fff;background:var(--orange);border-radius:9px;padding:0 6px}
.fgroup-body{margin-top:10px;display:flex;flex-direction:column;gap:8px;max-height:236px;overflow-y:auto}
.fgroup.off .fgroup-h{color:#a9a9a9;cursor:default}
.fgroup.off .ph{margin-left:auto}
.check{display:flex;align-items:center;gap:9px;font-size:12px;color:var(--gray);cursor:pointer;position:relative}
.check input{position:absolute;opacity:0;width:1px;height:1px}
.check .box{width:15px;height:15px;border:1.5px solid #cdcdcd;border-radius:4px;flex:0 0 15px;display:flex;
  align-items:center;justify-content:center;background:#fff}
.check .box svg{width:10px;height:10px;stroke:#fff;stroke-width:2.6;fill:none;opacity:0}
.check input:checked + .box{background:var(--orange);border-color:var(--orange)}
.check input:checked + .box svg{opacity:1}
.check input:focus-visible + .box{box-shadow:0 0 0 3px var(--orange-line)}
.check .count{margin-left:auto;font-size:10.5px;color:var(--gray-soft);font-variant-numeric:tabular-nums}
.check.cero{color:#b0b0b0}

/* ===== Exploración · lista ===== */
.listcol{flex:1;display:flex;flex-direction:column;min-width:0;background:var(--bg)}
.listhead{padding:14px 22px 10px;display:flex;align-items:center;gap:13px;flex-wrap:wrap}
.result-n{font-size:14px;font-weight:600}
.result-n b{color:var(--orange)}
.result-sub{font-size:11px;color:var(--gray-soft)}
.lens{display:flex;gap:3px;background:#eaeae8;border-radius:9px;padding:3px}
.lens-btn{font-size:11.5px;font-weight:500;color:var(--gray-soft);padding:6px 12px;border-radius:7px;display:inline-flex;
  align-items:center;gap:7px;white-space:nowrap}
.lens-btn svg{width:13px;height:13px;stroke:currentColor;stroke-width:2;fill:none}
.lens-btn:hover{color:var(--gray)}
.lens-btn.on{background:#fff;color:var(--green);box-shadow:0 1px 3px rgba(0,0,0,.1)}
.chips{padding:0 22px 10px;display:flex;gap:7px;flex-wrap:wrap}
.chip{display:inline-flex;align-items:center;gap:6px;background:var(--orange-soft);border:1px solid var(--orange-line);
  color:#b8531f;font-size:11px;font-weight:500;padding:4px 9px;border-radius:7px}
.chip:hover{background:#ffe3d2}
.chip svg{width:11px;height:11px;stroke:currentColor;stroke-width:2.2;fill:none}
.tablewrap{flex:1;overflow-y:auto;padding:0 22px 26px}
.listopts{display:flex;align-items:center;justify-content:flex-end;gap:8px;font-size:11.5px;color:var(--gray-soft);margin:0 0 4px}
.listopts select{font-size:11.5px;border:1px solid var(--gray-line);border-radius:7px;padding:4px 8px;background:#fff;color:var(--gray)}
.thead,.row{display:grid;grid-template-columns:minmax(0,1fr) 160px 110px 220px 124px;gap:14px;align-items:center}
/* La prórroga, en sus tres casos: la tiene (verde), no la tiene (gris) o no lo sabemos (ámbar). */
.pr{font-size:10.5px;font-weight:600}
.pr.si{color:#3b7d6e}
.pr.no{color:#5f5f5f}
.pr.duda{color:#a07d1e;cursor:help}
.opp .ctx .x .pr{font-size:11px}
.field .v .pr,.lote-b .x b .pr{font-size:12px}
.thead{padding:8px 18px;font-size:10px;text-transform:uppercase;letter-spacing:.07em;color:var(--gray-soft)}
.thead .r{text-align:right}
.row{background:var(--paper);border:1px solid var(--gray-line);border-radius:11px;padding:13px 18px;margin-bottom:9px;transition:.13s}
.row:hover{border-color:var(--orange-line);box-shadow:0 6px 20px rgba(34,43,36,.07)}
.row.es-lote{border:0;border-bottom:1px solid #f4f4f2;border-radius:0;margin:0;padding:11px 18px 11px 30px}
.row.es-lote:hover{box-shadow:none;background:#fffaf6}
.obj{min-width:0}
.obj-title{font-size:13px;font-weight:500;margin-bottom:5px;color:#1f1f1f;line-height:1.35}
.row:hover .obj-title{color:#000}
.obj-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.expedient{font-size:10.5px;color:var(--gray-soft)}
.entity{font-size:12px;line-height:1.35;min-width:0}
.entity .loc{font-size:10.5px;color:var(--gray-soft);margin-top:2px}
.amount{font-size:13px;font-weight:600;text-align:right;font-variant-numeric:tabular-nums}
.amount .yr{display:block;font-size:10.5px;color:var(--gray-soft);font-weight:400;margin-top:2px}
.recur .on{font-size:11.5px;font-weight:600;color:var(--orange)}
.recur .on.lejos{color:var(--gray)}
.recur .when{font-size:10.5px;color:var(--gray-soft);margin-top:2px}
.recur .off{font-size:11px;color:#b8b8b8}
.exp-group{border:1px solid var(--gray-line);border-radius:12px;margin:0 0 10px;overflow:hidden;background:#fff}
.exp-head{display:flex;align-items:center;gap:11px;padding:11px 16px;background:#fafafa;cursor:pointer;
  border-bottom:1px solid var(--gray-line);list-style:none}
.exp-head::-webkit-details-marker{display:none}
.exp-head:hover{background:#f4f4f2}
.exp-head .chev{width:14px;height:14px;stroke:var(--gray-soft);stroke-width:2.4;fill:none;flex:0 0 14px;transition:.15s;transform:rotate(-90deg)}
details.exp-group[open] .exp-head .chev{transform:none}
details.exp-group:not([open]) .exp-head{border-bottom:none}
.eh-main{min-width:0;flex:1}
.exp-head .eh-obj{font-size:12.5px;font-weight:600;color:#1f1f1f}
.exp-head a.eh-obj:hover{color:var(--orange)}
.exp-head .eh-meta{font-size:10.5px;color:var(--gray-soft);margin-top:2px}
.exp-head .eh-right{margin-left:auto;text-align:right;white-space:nowrap;display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.exp-head .exp-badge{font-size:9px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#b8531f;
  background:var(--orange-soft);padding:2px 8px;border-radius:6px}
.exp-head .eh-right .tot{font-size:13px;font-weight:600;color:var(--green);font-family:'Fraunces',serif}
.exp-head .eh-right .nl{font-size:10px;color:var(--gray-soft)}
.lote-tag{display:inline-block;font-size:9px;font-weight:700;color:#3f6f8f;background:#eaf1f6;padding:2px 7px;
  border-radius:5px;margin-right:7px;vertical-align:middle}
.mas-lotes{display:block;padding:10px 18px 10px 30px;font-size:11.5px;color:var(--orange);font-weight:500}
.paginas{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:16px;font-size:12px;color:var(--gray-soft)}

/* ===== Análisis ===== */
.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:6px}
.kpi{background:var(--paper);border:1px solid var(--gray-line);border-radius:13px;padding:15px 17px}
.kpi .k{font-family:'Fraunces',serif;font-size:25px;font-weight:600;color:var(--green);line-height:1}
.kpi .l{font-size:11px;color:var(--gray-soft);margin-top:6px;line-height:1.35}
.kpi.accent{background:linear-gradient(135deg,#232c25,#2f3a32);border-color:#232c25}
.kpi.accent .k{color:var(--orange)}
.kpi.accent .l{color:#b6c3b8}
.dash{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:16px}
.dash .card{margin-bottom:0}
.bar-row{display:grid;grid-template-columns:minmax(0,158px) minmax(0,1fr) auto;align-items:center;gap:12px;margin-bottom:9px;font-size:12px}
.bar-row .lab{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bar-row .track{height:14px;background:#f2f2f0;border-radius:5px;overflow:hidden}
.bar-row .fill{height:100%;border-radius:5px;background:var(--orange)}
.bar-row .fill.g{background:var(--green)}
.bar-row .fill.t{background:var(--teal)}
.bar-row .fill.serveo{background:var(--orange)}
.bar-row .val{font-size:11px;color:var(--gray-soft);white-space:nowrap;font-variant-numeric:tabular-nums}

/* ===== Radar ===== */
.radar-filtros{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:18px}
.radar-filtros select{font-size:12px;border:1px solid var(--gray-line);border-radius:8px;padding:7px 10px;background:#fff;color:var(--gray)}
.radar-filtros .kpis{margin:0}
.opp{background:var(--paper);border:1px solid var(--gray-line);border-radius:14px;margin-bottom:12px;overflow:hidden;display:flex}
.opp:hover{box-shadow:0 8px 26px rgba(34,43,36,.08);border-color:var(--orange-line)}
.opp .when{flex:0 0 92px;background:#fafafa;border-right:1px solid var(--gray-line);display:flex;flex-direction:column;
  align-items:center;justify-content:center;padding:15px 8px;text-align:center}
.opp .when .big{font-family:'Fraunces',serif;font-size:23px;font-weight:600;color:var(--orange);line-height:1}
.opp .when .unit{font-size:10px;color:var(--gray-soft);text-transform:uppercase;letter-spacing:.06em;margin-top:4px}
.opp .when .date{font-size:10px;color:var(--gray-soft);margin-top:5px}
.opp.soon .when{background:var(--orange-soft)}
.opp .mid{flex:1;padding:14px 17px;min-width:0}
.opp .mtop{display:flex;align-items:center;gap:8px;margin-bottom:6px;flex-wrap:wrap}
.opp .ot{display:block;font-size:13.5px;font-weight:600;color:#1f1f1f;line-height:1.3;margin-bottom:7px}
.opp .ot:hover{color:var(--orange)}
.opp .ctx{display:flex;gap:6px 20px;flex-wrap:wrap}
.opp .ctx .x{font-size:11px;color:var(--gray-soft)}
.opp .ctx .x b{color:var(--gray);font-weight:600}
.opp .ctx .x.won b{color:#4a6b52}
.opp .right{flex:0 0 156px;border-left:1px solid var(--gray-line);padding:14px 15px;display:flex;flex-direction:column;gap:8px;justify-content:center}
.opp .right .wa{font-size:10.5px;color:var(--gray-soft)}
.opp .right .wa b{color:var(--gray);font-weight:600;display:block;margin-top:1px}
.btn-prep{background:var(--green);color:#fff;font-size:11.5px;font-weight:500;padding:8px 12px;border-radius:8px;
  display:flex;align-items:center;justify-content:center;gap:7px}
.btn-prep:hover{background:var(--green-700)}
.btn-prep svg{width:13px;height:13px;stroke:#fff;stroke-width:2;fill:none}

/* ===== Ficha del expediente ===== */
.doc{flex:1;overflow-y:auto;min-width:0}
.fhead{background:var(--paper);border-bottom:1px solid var(--gray-line);padding:20px 28px 0}
.fhead .tags{display:flex;gap:8px;margin-bottom:10px;flex-wrap:wrap;align-items:center}
.recur-flag{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:600;color:var(--orange);
  background:var(--orange-soft);border:1px solid var(--orange-line);padding:3px 9px;border-radius:6px}
.recur-flag svg{width:13px;height:13px;stroke:var(--orange);stroke-width:2;fill:none}
.ftitle{font-size:19px;font-weight:600;color:#1f1f1f;line-height:1.3;max-width:860px;letter-spacing:-.01em}
.fsub{display:flex;gap:24px;margin-top:13px;flex-wrap:wrap}
.fsub .it{font-size:11px;color:var(--gray-soft)}
.fsub .it b{display:block;font-size:13px;color:var(--gray);font-weight:600;margin-top:3px}
.fsub .it b.amt{font-family:'Fraunces',serif;font-size:17px;color:var(--green)}
.open-in{display:flex;align-items:center;gap:8px;margin-top:15px;flex-wrap:wrap}
.open-in .oi-l{font-size:11px;color:var(--gray-soft);margin-right:2px}
.oi{display:inline-flex;align-items:center;gap:7px;font-size:11.5px;font-weight:500;color:var(--gray);
  border:1px solid var(--gray-line);background:#fff;padding:7px 12px;border-radius:8px}
a.oi:hover{border-color:var(--orange-line);background:var(--orange-soft)}
.oi svg{width:14px;height:14px;stroke-width:1.8;fill:none}
.oi .gd{width:11px;height:11px;border-radius:3px;background:var(--orange);flex:0 0 11px}
.oi.placsp svg{stroke:var(--blue)}
.oi.off{color:#a3a3a3;cursor:default}
.tabs{display:flex;gap:2px;margin-top:18px;flex-wrap:wrap}
.tab{padding:10px 14px;font-size:12px;color:var(--gray-soft);border-bottom:2px solid transparent;font-weight:500;
  display:flex;align-items:center;gap:7px}
.tab .n{background:#eee;color:var(--gray-soft);font-size:10px;padding:0 6px;border-radius:9px;font-weight:600}
a.tab:hover{color:var(--gray)}
.tab.on{color:var(--orange);border-bottom-color:var(--orange)}
.tab.on .n{background:var(--orange-soft);color:#b8531f}
.tab.off{color:#b3b3b3;cursor:default}
.dbody{padding:22px 28px 40px;max-width:1200px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.texto-original{margin-top:10px;font-size:11px;color:var(--gray-soft);background:#fafafa;border-radius:8px;padding:8px 10px;line-height:1.5}
.lote{border:1px solid var(--gray-line);border-radius:11px;margin-bottom:10px;overflow:hidden;background:#fff}
.lote-h{display:flex;align-items:center;gap:13px;padding:12px 16px;background:#fafafa;border-bottom:1px solid var(--gray-line)}
.lote-num{min-width:26px;height:26px;padding:0 6px;border-radius:7px;background:var(--green);color:#fff;display:flex;
  align-items:center;justify-content:center;font-size:12px;font-weight:600}
.lote-t{font-size:12px;font-weight:500;flex:1;line-height:1.35}
.lote-amt{font-size:12.5px;font-weight:600;font-family:'Fraunces',serif;color:var(--green);white-space:nowrap}
.lote-b{padding:10px 16px;display:flex;gap:10px 28px;font-size:11.5px;flex-wrap:wrap}
.lote-b .x{color:var(--gray-soft)}
.lote-b .x b{display:block;color:var(--gray);font-weight:600;margin-top:2px}
.lote-win{color:#4a6b52!important}

/* ===== Acceso (sin sesión) ===== */
.sin-sesion{min-height:100vh;padding:0 16px}
.portada{max-width:410px;margin:0 auto;padding-top:10vh;text-align:center}
.portada-marca{display:flex;align-items:center;justify-content:center;gap:14px;margin-bottom:26px}
.portada-marca .pm-gober{height:30px;width:auto}
.portada-marca .pm-cliente{height:22px;width:auto}
.portada-marca .pm-cruce{color:#9fb0a4;font-size:17px}
.portada h1{font-family:'Fraunces',serif;font-size:25px;font-weight:500;color:var(--green);margin-bottom:8px}
.portada-sub{color:var(--gray-soft);font-size:14px;margin:0 auto 22px;max-width:36ch;line-height:1.5}
.tarjeta{background:var(--paper);border:1px solid var(--gray-line);border-radius:12px;padding:22px 24px;text-align:left;margin-bottom:16px}
.mini{font-size:12px;color:var(--gray-soft);line-height:1.45}
.portada label.mini{display:block;margin-bottom:5px}
.portada input[type=email],.portada input[type=text]{width:100%;padding:10px 12px;border:1px solid var(--gray-line);border-radius:9px;font-size:14px;background:#fff}
.portada input:focus{outline:2px solid var(--orange-line);border-color:var(--orange)}
.portada button{background:var(--orange);color:#fff;border-radius:9px;padding:11px 18px;font-weight:500;font-size:14px}
.portada button:hover{background:#e9692f}
.portada button.gris{background:#fff;color:var(--gray);border:1px solid var(--gray-line);margin-top:4px}
.portada-pie{color:var(--gray-soft);font-size:12px;margin-top:20px}
.aviso{border-left:3px solid var(--orange);background:var(--orange-soft);padding:11px 14px;border-radius:0 9px 9px 0;
  margin:0 0 14px;font-size:13px;text-align:left}
.aviso.error{border-color:var(--red);background:#fbeaea}
.casilla-codigo{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:24px!important;letter-spacing:9px;text-align:center}
.codigo-visible{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:19px;letter-spacing:3px}

@media (max-width:1150px){
  .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dash,.grid2{grid-template-columns:1fr}
  .thead{display:none}
  .row{grid-template-columns:minmax(0,1fr) 120px}
  .row .entity,.row>div:last-child{display:none}
}


/* --- Segmentador de importe: en el panel de filtros, con su histograma (R20) --- */
.seg-h{cursor:default;margin-bottom:10px}
.seg-campo{margin-left:auto;font-size:11px;font-weight:500;border:1px solid var(--gray-line);border-radius:6px;padding:2px 4px;background:#fff;color:var(--gray-soft)}
.seg-histo{height:54px;display:flex;align-items:flex-end;justify-content:space-between;padding:0 8px;margin-bottom:-7px}
.seg-histo i{display:block;width:2px;border-radius:1px 1px 0 0;background:var(--orange)}
.seg-histo i.fuera{background:#d9d9d6}
.seg-pista{position:relative;height:22px}
.seg-pista::before{content:"";position:absolute;left:0;right:0;top:9px;height:3px;border-radius:2px;background:#e4e4e1}
.seg-tramo{position:absolute;top:9px;height:3px;border-radius:2px;background:var(--orange)}
.seg-pista input[type=range]{position:absolute;left:0;top:0;width:100%;height:22px;margin:0;background:none;
  pointer-events:none;-webkit-appearance:none;appearance:none}
.seg-pista input[type=range]::-webkit-slider-runnable-track{background:none;height:22px}
.seg-pista input[type=range]::-moz-range-track{background:none}
.seg-pista input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;pointer-events:auto;width:16px;height:16px;
  margin-top:3px;border-radius:50%;background:#fff;border:2px solid var(--orange);cursor:grab;box-shadow:0 1px 3px rgba(0,0,0,.18)}
.seg-pista input[type=range]::-moz-range-thumb{pointer-events:auto;width:12px;height:12px;border-radius:50%;
  background:#fff;border:2px solid var(--orange);cursor:grab}
.seg-pista input[type=range]:focus-visible::-webkit-slider-thumb{outline:2px solid var(--orange-line);outline-offset:2px}
.seg-eje{display:flex;justify-content:space-between;font-size:9.5px;color:#a3a3a3;margin-top:-2px;font-variant-numeric:tabular-nums}
.seg-cajas{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:9px 0 10px}
.seg-cajas label{font-size:9.5px;text-transform:uppercase;letter-spacing:.07em;color:var(--gray-soft)}
.seg-cajas input{display:block;width:100%;margin-top:3px;font-size:12px;border:1px solid var(--gray-line);border-radius:7px;
  padding:6px 8px;background:#fafafa;color:var(--gray);font-variant-numeric:tabular-nums;text-transform:none;letter-spacing:0}
.seg-cajas input:focus{outline:none;border-color:var(--orange);background:#fff}
.seg-check{font-size:11.5px}

/* --- Calidad del dato --- */
.cal-h,.cal-r{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) 74px 74px 62px;gap:14px;align-items:center}
.cal-h{font-size:10px;text-transform:uppercase;letter-spacing:.07em;color:var(--gray-soft);padding-bottom:8px;border-bottom:1px solid var(--gray-line)}
.cal-r{font-size:12px;padding:8px 0;border-bottom:1px solid #f3f3f1;font-variant-numeric:tabular-nums}
.cal-r:last-child{border-bottom:0}
.cal-n small{display:block;font-size:10.5px;color:var(--gray-soft);margin-top:1px}
.cal .r{text-align:right}
.cal .pct{font-weight:600}
.cal .track{height:10px;background:#f2f2f0;border-radius:5px;overflow:hidden}
.cal .fill{height:100%;border-radius:5px;background:var(--f2)}
.cal .fill.g{background:var(--f1)}
.cal .fill.bajo{background:var(--orange)}
.cal-r.pend .cal-n{color:#a3a3a3}
details.card>summary{cursor:pointer;list-style:none}
details.card>summary::-webkit-details-marker{display:none}
details.card[open]>summary{margin-bottom:6px}

/* --- Filtrar sin recargar: mientras llega la respuesta, la lista se atenúa --- */
.listcol{transition:opacity .12s}
.main.cargando .listcol{opacity:.5;pointer-events:none}

/* --- El pliego, desde la fila --- */
.fin-fila{display:flex;align-items:center;gap:8px;justify-content:space-between}
.abre{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;flex:0 0 26px;border-radius:7px;
  border:1px solid var(--gray-line);background:#fff;color:var(--gray-soft);cursor:pointer}
.abre svg{width:13px;height:13px;stroke:currentColor;stroke-width:2;fill:none}
.abre:hover,.abre:focus-visible{color:var(--orange);border-color:var(--orange-line);background:var(--orange-soft);outline:none}

/* --- De cuándo son los datos --- */
.nav-datos{margin:0 18px 10px;padding:8px 10px;border:1px solid rgba(255,255,255,.12);border-radius:8px;font-size:10.5px;color:#9fb0a3;line-height:1.4}
.nav-datos b{color:#e8efe9;font-weight:600}

/* --- Oportunidades por año de fin, sin y con prórroga --- */
.leyenda{float:right;text-transform:none;letter-spacing:0;font-size:11px;color:var(--gray-soft);font-weight:400}
.leyenda i{display:inline-block;width:9px;height:9px;border-radius:2px;margin:0 5px 0 12px;background:var(--orange)}
.leyenda i.con{background:var(--green)}
.cols{display:flex;gap:6px;height:190px;margin-top:4px}
.col-g{flex:1;min-width:0;display:flex;flex-direction:column}
.col-b{flex:1;min-height:0;display:flex;align-items:flex-end;justify-content:center;gap:5px;border-bottom:1px solid var(--gray-line)}
.col{height:100%;width:42%;max-width:54px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center}
.col i{display:block;width:100%;min-height:0;border-radius:5px 5px 0 0;background:var(--orange)}
.col.con i{background:var(--green)}
.col .n{font-size:11px;font-weight:600;color:var(--gray);line-height:1.15;text-align:center;white-space:nowrap;margin-bottom:4px;font-variant-numeric:tabular-nums}
.col .n small{display:block;font-size:9.5px;font-weight:400;color:var(--gray-soft)}
.col-l{text-align:center;font-size:11.5px;font-weight:600;color:var(--gray);padding-top:7px;white-space:nowrap}

/* --- Radar con el panel de filtros --- */
.radar-wrap{padding-top:20px}
.radar-filtros{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:14px 0 4px}

/* --- Vencimiento por meses --- */
.meses{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:4px;padding-top:9px;border-top:1px dashed #ececea}
.meses label{font-size:9.5px;text-transform:uppercase;letter-spacing:.07em;color:var(--gray-soft);min-width:0}
.meses input{display:block;width:100%;margin-top:3px;font:inherit;font-size:11px;border:1px solid var(--gray-line);border-radius:7px;
  padding:5px 4px;background:#fafafa;color:var(--gray);text-transform:none;letter-spacing:0}
.meses input:focus{outline:none;border-color:var(--orange);background:#fff}

/* --- Asistente (beta): la caja de Exploración --- */
.ia{margin:14px 22px 0;padding:10px 12px;background:var(--paper);border:1px dashed var(--orange-line);border-radius:12px;
  display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ia-marca{display:inline-flex;width:28px;height:28px;flex:0 0 28px;border-radius:8px;background:var(--orange-soft);align-items:center;justify-content:center}
.ia-marca svg{width:15px;height:15px;stroke:var(--orange);stroke-width:1.8;fill:none}
.ia input[type=text]{flex:1;min-width:260px;font-size:13px;border:0;background:none;padding:6px 2px;color:var(--gray)}
.ia input[type=text]:focus{outline:none}
.ia-tag{font-size:9.5px;text-transform:uppercase;letter-spacing:.07em;color:#b8531f;background:var(--orange-soft);border-radius:6px;padding:3px 7px}
.ia-nota{flex-basis:100%;font-size:11.5px;color:var(--gray-soft);margin:0 0 2px 38px}
.ia-nota.error{color:#b3261e}
.ia-nota b{font-weight:600;color:var(--gray)}
.main.cargando .ia{opacity:.6}
