/* ============================================================
   MIDNIGHT OS · DISEÑO AZUL (identidad oficial, igual al Centro de mando de Next Gen)
   - Una sola hoja central: se carga en cada app después de mid-type.css y redefine las variables que ya usan
     todas las pantallas, así toda pantalla actual y futura hereda el diseño sin tocar su código.
   - SOLO apariencia: no cambia botones, textos, rutas, permisos, datos ni funciones. Nada se oculta.
   - Verde ganancias · rojo pérdidas/errores · amarillo advertencias · azul eléctrico y cyan para todo lo demás.
   - El logo dorado de Midnight no se toca (es imagen).
   - Se activa con html[data-theme=azul]. Los modos Claro, Oscuro y Colors siguen disponibles.
   ============================================================ */
html[data-theme=azul]{
  --mb-ink:#080D16;--mb-graphite:#0b1220;--mb-smoke:#16213a;--mb-s1:#060a14;--mb-s2:#0c1424;--mb-s3:#111b30;
  --mb-gold:#248CFF;--mb-gold-hi:#6DB6FF;--mb-gold-lo:#1667D9;--mb-champ:#d5def2;--mb-white:#F2F5FA;
  --mb-mute:rgba(205,220,250,.62);--mb-mute2:rgba(205,220,250,.42);--mb-line:rgba(130,160,210,.16);--mb-line2:rgba(130,160,210,.32);
  --mb-panel:linear-gradient(180deg,rgba(18,27,46,.82),rgba(8,12,22,.92));
  --mb-ok:#00D96A;--mb-warn:#ffc947;--mb-bad:#FF465C;--mb-info:#6DB6FF;
  --az-glow:0 0 0 1px rgba(109,182,255,.22),0 10px 34px -14px rgba(36,140,255,.35);
  color-scheme:dark;background:radial-gradient(40% 32% at 78% 0%,rgba(36,140,255,.14),transparent 70%),#080D16 fixed;
}
/* fondo: brillo azul discreto + piso holográfico muy suave */
html[data-theme=azul] body,html[data-theme=azul] body.mt-os{background:transparent!important;color:var(--mb-white)}
html[data-theme=azul] body::before{content:"";position:fixed;left:-50%;right:-50%;bottom:-35%;height:60%;pointer-events:none;z-index:-1;transform:perspective(520px) rotateX(72deg);transform-origin:50% 100%;
  background-image:linear-gradient(rgba(36,140,255,.13) 1px,transparent 1px),linear-gradient(90deg,rgba(36,140,255,.13) 1px,transparent 1px);background-size:64px 64px;-webkit-mask-image:linear-gradient(to top,#000 5%,transparent 80%);mask-image:linear-gradient(to top,#000 5%,transparent 80%);opacity:.5}
@media print{html[data-theme=azul] body::before{display:none}}

/* títulos y texto destacado */
html[data-theme=azul] body .gold{background:linear-gradient(100deg,#ffffff 10%,#6DB6FF 70%,#248CFF)!important;-webkit-background-clip:text!important;background-clip:text!important;color:transparent!important;-webkit-text-fill-color:transparent!important}
html[data-theme=azul] body a:not(.btn){color:#6DB6FF}
html[data-theme=azul] body ::selection{background:rgba(36,140,255,.35);color:#fff}

/* tarjetas, cifras y ventanas */
html[data-theme=azul] body :is(.card,.mod,.kpi,.tw){border-radius:16px}
html[data-theme=azul] body .card{background:var(--mb-panel);border:1px solid var(--mb-line);box-shadow:inset 0 1px 0 rgba(109,182,255,.06);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
html[data-theme=azul] body .card:hover{border-color:var(--mb-line2)}
html[data-theme=azul] body .kpi{background:linear-gradient(180deg,rgba(20,30,52,.7),rgba(8,12,22,.85));border:1px solid var(--mb-line)}
html[data-theme=azul] body .kpi::before{background:linear-gradient(90deg,#1667D9,#6DB6FF)!important;opacity:.7!important}
html[data-theme=azul] body .kpi b{color:#fff}
html[data-theme=azul] body .ov{background:rgba(2,4,10,.78);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
html[data-theme=azul] body .mod{background:linear-gradient(180deg,#0d1628,#070b16);border:1px solid var(--mb-line2);box-shadow:0 30px 80px -20px rgba(0,0,0,.7),0 0 40px -10px rgba(36,140,255,.25)}

/* botones: compactos, cyan; el principal ya no es amarillo */
html[data-theme=azul] body .btn{color:#d5def2;border:1px solid rgba(109,182,255,.32);background:rgba(36,140,255,.07);border-radius:11px;padding:8px 14px;min-height:36px;font-size:12px;letter-spacing:.08em;box-shadow:none}
html[data-theme=azul] body .btn:hover{color:#fff;border-color:rgba(109,182,255,.6);background:rgba(36,140,255,.14);box-shadow:0 0 18px rgba(36,140,255,.25)}
html[data-theme=azul] body .btn.solid{color:#fff;border-color:rgba(109,182,255,.6);background:linear-gradient(180deg,rgba(36,140,255,.48),rgba(31,111,209,.32));text-shadow:none}
html[data-theme=azul] body .btn.solid:hover{color:#fff;box-shadow:0 0 0 1px rgba(109,182,255,.55),0 0 24px rgba(36,140,255,.4)}
html[data-theme=azul] body .btn.ghost{background:none;border-color:transparent;color:var(--mb-mute)}
html[data-theme=azul] body .btn.ghost:hover{color:#fff;background:rgba(36,140,255,.08)}
html[data-theme=azul] body .btn.bad{color:#ff8da0;border-color:rgba(255,70,92,.45);background:rgba(255,70,92,.07)}
html[data-theme=azul] body .btn.sm{padding:6px 11px;min-height:30px;font-size:11px}
html[data-theme=azul] body .chip{border-color:var(--mb-line2);color:#d5def2;background:rgba(36,140,255,.04)}
html[data-theme=azul] body .chip.on{color:#fff;background:linear-gradient(180deg,rgba(36,140,255,.42),rgba(31,111,209,.28));border-color:rgba(109,182,255,.6);box-shadow:0 0 14px rgba(36,140,255,.25)}

/* formularios */
html[data-theme=azul] body :is(input,select,textarea){background-color:rgba(4,8,18,.72);border-color:var(--mb-line2);color:#F2F5FA;border-radius:11px}
html[data-theme=azul] body :is(input,select,textarea):focus{border-color:#248CFF;box-shadow:0 0 0 3px rgba(36,140,255,.2)}
html[data-theme=azul] body ::placeholder{color:rgba(205,220,250,.38)}
html[data-theme=azul] body select{background-image:linear-gradient(45deg,transparent 50%,#6DB6FF 50%),linear-gradient(135deg,#6DB6FF 50%,transparent 50%);background-position:calc(100% - 17px) 55%,calc(100% - 12px) 55%;background-size:5px 5px;background-repeat:no-repeat}
html[data-theme=azul] body select[multiple]{background-image:none}
html[data-theme=azul] body input[type=checkbox],html[data-theme=azul] body input[type=radio]{accent-color:#248CFF}

/* tablas */
html[data-theme=azul] body .tw{border-color:var(--mb-line);background:rgba(6,10,20,.55)}
html[data-theme=azul] body th{color:#8fb6e8;background:rgba(36,140,255,.05);border-bottom-color:var(--mb-line2)}
html[data-theme=azul] body td{border-bottom-color:var(--mb-line)}
html[data-theme=azul] body tr:hover td{background:rgba(36,140,255,.06)}

/* etiquetas: se conservan los colores con significado */
html[data-theme=azul] body .tag{color:#6DB6FF;border-color:rgba(109,182,255,.4)}
html[data-theme=azul] body .tag.ok{color:#00D96A;border-color:rgba(0,217,106,.45)}
html[data-theme=azul] body .tag.warn{color:#ffc947;border-color:rgba(255,201,71,.45)}
html[data-theme=azul] body .tag.bad{color:#ff7d93;border-color:rgba(255,70,92,.5)}

/* menú lateral y barra superior */
html[data-theme=azul] body .side{background:rgba(5,9,18,.92);border-right:1px solid var(--mb-line);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
html[data-theme=azul] body .nv{color:#cdd7ee;border-radius:11px}
html[data-theme=azul] body .nv:hover{background:rgba(36,140,255,.08);color:#fff}
html[data-theme=azul] body .nv.on{color:#fff;background:linear-gradient(90deg,rgba(36,140,255,.22),rgba(36,140,255,.06));box-shadow:inset 3px 0 0 #248CFF}
html[data-theme=azul] body .side h4{color:#6DB6FF}
html[data-theme=azul] body .mobbar{background:rgba(5,9,18,.92);border-bottom:1px solid var(--mb-line)}
html[data-theme=azul] body .ctx{border-color:var(--mb-line)}

/* Main Dashboard (Nano) y avisos */
html[data-theme=azul] body .nano-v{--nv-bg:transparent;--nv-card:#0b1220;--nv-fg:#F2F5FA;--nv-mut:rgba(205,220,250,.62);--nv-ln:rgba(130,160,210,.16);--nv-ln2:rgba(130,160,210,.32);--nv-y:#6DB6FF;--nv-r:#FF465C;--nv-ok:#00D96A}
html[data-theme=azul] body .toast{background:rgba(16,23,36,.96);border:1px solid var(--mb-line2);color:#F2F5FA;border-radius:12px}

/* selector de modo */
html[data-theme=azul] #mos-theme-seg{background:rgba(8,12,24,.9);border-color:rgba(109,182,255,.35)}
#mos-theme-seg button[data-t=azul].on,#mos-theme-seg button[data-t=azul]:hover{background:linear-gradient(180deg,rgba(36,140,255,.55),rgba(31,111,209,.35));color:#fff}

/* barras de desplazamiento */
html[data-theme=azul] ::-webkit-scrollbar{width:10px;height:10px}
html[data-theme=azul] ::-webkit-scrollbar-thumb{background:rgba(109,182,255,.22);border-radius:10px;border:2px solid #080D16}
html[data-theme=azul] ::-webkit-scrollbar-track{background:transparent}
@media print{html[data-theme=azul]{background:#fff}html[data-theme=azul] body{color:#000}}
/* íconos emoji en el mismo azul (los de estado conservan su color) */
html[data-theme=azul] .az-emo{display:inline-block;filter:grayscale(1) brightness(1.15) sepia(1) hue-rotate(168deg) saturate(2.4) drop-shadow(0 0 6px rgba(36,140,255,.35))}
/* tarjetas-botón (divisiones de la Torre, accesos rápidos): mismo estilo de tarjeta del Centro de mando */
html[data-theme=azul] body :is(.tw-d,.icc-q,.nsa-pin){background:linear-gradient(180deg,rgba(20,30,52,.7),rgba(8,12,22,.85));border:1px solid var(--mb-line);border-radius:14px;transition:border-color .2s,box-shadow .2s,transform .2s}
html[data-theme=azul] body :is(.tw-d,.icc-q):hover{border-color:rgba(109,182,255,.55);box-shadow:0 0 22px -6px rgba(36,140,255,.45);transform:translateY(-2px)}
html[data-theme=azul] body .tw-d b{letter-spacing:.12em}
html[data-theme=azul] body .tw-h{color:#F2F5FA}
/* desplegables (details) */
html[data-theme=azul] body details{border-color:var(--mb-line)}
html[data-theme=azul] body summary::marker{color:#248CFF}
/* avisos de advertencia: ámbar, pero suave */
html[data-theme=azul] body .card[style*="--warn"],html[data-theme=azul] body .card.warn{border-width:1px!important;background:linear-gradient(180deg,rgba(255,201,71,.06),rgba(8,12,22,.85))}

/* ===== estructura Next Gen dentro de cada módulo ===== */
/* módulo abierto dentro de Next Gen: sin menú lateral fijo; el menú completo sigue en ☰ */
html.ng-embed .app{grid-template-columns:1fr!important}
html.ng-embed .side{position:fixed!important;inset:0 auto 0 0;width:min(300px,86vw)!important;z-index:60;transform:translateX(-102%);transition:.3s;height:100%!important}
html.ng-embed .side.open{transform:none;box-shadow:0 0 0 100vmax rgba(0,0,0,.6)}
html.ng-embed .mobbar{display:flex!important}
html.ng-embed body::before{display:none}
html.ng-embed #mos-theme-seg{display:none!important}
/* tarjetas de cifras como el Centro de mando: vidrio, borde holográfico, línea de color abajo */
html[data-theme=azul] body .kpi{position:relative;overflow:hidden;border-radius:18px;padding:16px;background:rgba(18,26,40,.62);border:1px solid rgba(130,160,210,.16);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:inset 0 -2px 0 rgba(36,140,255,.55)}
html[data-theme=azul] body .kpi::before{inset:0!important;height:auto!important;border-radius:inherit;padding:1px;background:linear-gradient(130deg,rgba(109,182,255,.55),transparent 40%,transparent 60%,rgba(216,180,106,.35))!important;-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:.55!important;pointer-events:none}
html[data-theme=azul] body .kpi small{font:500 10.5px/1.3 var(--f-ui)!important;letter-spacing:.2em!important;text-transform:uppercase;color:#8a97b3!important}
html[data-theme=azul] body .kpi b{font:500 clamp(20px,2.2vw,28px)/1.15 var(--f-ui)!important;color:#fff;text-shadow:0 0 18px rgba(36,140,255,.35);font-variant-numeric:tabular-nums;margin-top:8px}
html[data-theme=azul] body button.kpi,html[data-theme=azul] body .kpi[data-act]{transition:transform .25s,border-color .25s}
html[data-theme=azul] body button.kpi:hover,html[data-theme=azul] body .kpi[data-act]:hover{transform:translateY(-3px);border-color:rgba(109,182,255,.45)}
/* divisiones y accesos como los botones de función del Centro de mando: ícono en esfera + nombre */
html[data-theme=azul] body .tw-divs{gap:10px}
html[data-theme=azul] body .tw-d{align-items:center!important;text-align:center;padding:14px 8px 12px!important;border-radius:16px!important;background:rgba(18,26,40,.62)!important;gap:6px!important}
html[data-theme=azul] body .tw-d>span:first-child{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;font-size:19px;background:radial-gradient(circle at 35% 30%,rgba(109,182,255,.35),rgba(36,140,255,.08) 60%,transparent 70%);box-shadow:inset 0 0 0 1px rgba(109,182,255,.35),0 0 22px rgba(36,140,255,.15)}
html[data-theme=azul] body .tw-d b{font:500 11px/1.2 var(--f-ui)!important;letter-spacing:.14em!important;text-transform:uppercase;color:#cdd7ee}
html[data-theme=azul] body .tw-d small{color:#8a97b3;font-variant-numeric:tabular-nums}
html[data-theme=azul] body .tw-d:hover>span:first-child{box-shadow:inset 0 0 0 1px rgba(216,180,106,.7),0 0 28px rgba(36,140,255,.5)}
/* pestañas y filtros como los selectores del Centro de mando */
html[data-theme=azul] body .chips{gap:4px;padding:4px;border-radius:14px;background:rgba(18,26,40,.62);border:1px solid rgba(130,160,210,.16);width:max-content;max-width:100%}
html[data-theme=azul] body .chips .chip{border-color:transparent;background:none;border-radius:10px;padding:8px 13px;color:#8a97b3}
html[data-theme=azul] body .chips .chip.on{background:linear-gradient(180deg,rgba(36,140,255,.28),rgba(36,140,255,.12));color:#fff;box-shadow:inset 0 0 0 1px rgba(109,182,255,.35)}
/* encabezado del módulo */
html[data-theme=azul] body .top h2{font-family:var(--f-head);font-weight:600;font-size:clamp(28px,3.6vw,40px)}
html[data-theme=azul] body .card{border-radius:18px}

/* ===== MIDNIGHT SALES · LEADS (diseño Next Gen) ===== */
html[data-theme=azul] .nl{--nl-line:rgba(130,160,210,.16);--nl-line2:rgba(130,160,210,.32);--nl-panel:rgba(18,26,40,.62)}
html[data-theme=azul] .nl-head{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin:4px 0 16px}
html[data-theme=azul] .nl-crumb{font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:#6DB6FF}
html[data-theme=azul] .nl-title{margin:4px 0 0;font:600 clamp(30px,4vw,44px)/1 var(--f-head);color:#fff}
html[data-theme=azul] .nl-title em{font-style:normal;background:linear-gradient(90deg,#d8b46a,#fff 55%,#6DB6FF);-webkit-background-clip:text;background-clip:text;color:transparent}
html[data-theme=azul] .nl-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}
html[data-theme=azul] .nl-kpi{position:relative;text-align:left;padding:16px;border-radius:18px;background:var(--nl-panel);border:1px solid var(--nl-line);color:inherit;cursor:pointer;overflow:hidden;transition:transform .25s,border-color .25s;box-shadow:inset 0 -2px 0 rgba(36,140,255,.6);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
html[data-theme=azul] .nl-kpi::before{content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;background:linear-gradient(130deg,rgba(109,182,255,.55),transparent 40%,transparent 60%,rgba(216,180,106,.4));-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:.55;pointer-events:none}
html[data-theme=azul] .nl-kpi:hover{transform:translateY(-3px);border-color:var(--nl-line2)}
html[data-theme=azul] .nl-kpi .k{display:block;font-size:10.5px;letter-spacing:.2em;text-transform:uppercase;color:#8a97b3}
html[data-theme=azul] .nl-kpi .v{display:block;font-size:clamp(22px,2.4vw,30px);font-weight:500;margin-top:8px;color:#fff;text-shadow:0 0 18px rgba(36,140,255,.45)}
html[data-theme=azul] .nl-kpi .s{display:block;font-size:11.5px;color:#8a97b3;margin-top:4px}
html[data-theme=azul] .nl-kpi.amber{box-shadow:inset 0 -2px 0 rgba(255,201,71,.55)}html[data-theme=azul] .nl-kpi.amber .v{color:#ffc947;text-shadow:none}
html[data-theme=azul] .nl-kpi.green{box-shadow:inset 0 -2px 0 rgba(0,217,106,.5)}html[data-theme=azul] .nl-kpi.green .v{color:#00D96A;text-shadow:none}
html[data-theme=azul] .nl-dock{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:16px}
html[data-theme=azul] .nl-fn{display:flex;align-items:center;justify-content:center;gap:10px;padding:12px 8px;border-radius:16px;border:1px solid var(--nl-line);background:var(--nl-panel);color:#cdd7ee;font:500 11.5px/1 var(--f-ui);letter-spacing:.14em;text-transform:uppercase;cursor:pointer;transition:.25s}
html[data-theme=azul] .nl-fn .o{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;flex:none;background:radial-gradient(circle at 35% 30%,rgba(109,182,255,.35),rgba(36,140,255,.08) 60%,transparent 70%);box-shadow:inset 0 0 0 1px rgba(109,182,255,.35),0 0 22px rgba(36,140,255,.15)}
html[data-theme=azul] .nl-fn svg{width:18px;height:18px;color:#6DB6FF}
html[data-theme=azul] .nl-fn:hover{transform:translateY(-2px);border-color:var(--nl-line2)}
html[data-theme=azul] .nl-fn.on{background:linear-gradient(180deg,rgba(36,140,255,.22),rgba(18,26,40,.7));border-color:rgba(109,182,255,.6);color:#fff}
html[data-theme=azul] .nl-fn.on .o{box-shadow:inset 0 0 0 1px rgba(216,180,106,.7),0 0 26px rgba(36,140,255,.5)}
/* embudo */
html[data-theme=azul] .nl-board{display:grid;grid-template-columns:repeat(6,minmax(232px,1fr));gap:10px;overflow-x:auto;padding-bottom:6px;align-items:start}
html[data-theme=azul] .nl-col{border-radius:16px;border:1px solid var(--nl-line);background:rgba(6,10,20,.5);min-width:0}
html[data-theme=azul] .nl-col summary{list-style:none;display:flex;align-items:center;gap:8px;padding:11px 12px;cursor:pointer;border-bottom:1px solid transparent}
html[data-theme=azul] .nl-col[open] summary{border-bottom-color:var(--nl-line)}
html[data-theme=azul] .nl-col summary::-webkit-details-marker{display:none}
html[data-theme=azul] .nl-cn{font:600 11px/1 var(--f-ui);letter-spacing:.16em;text-transform:uppercase;color:#dbe8ff}
html[data-theme=azul] .nl-cc{min-width:24px;height:24px;padding:0 6px;border-radius:12px;display:grid;place-items:center;font-size:12px;background:rgba(36,140,255,.16);color:#6DB6FF;box-shadow:inset 0 0 0 1px rgba(109,182,255,.3)}
html[data-theme=azul] .nl-cs{margin-left:auto;font-size:12px;color:#8a97b3}
html[data-theme=azul] .nl-c-new .nl-cc{background:rgba(255,201,71,.14);color:#ffc947;box-shadow:inset 0 0 0 1px rgba(255,201,71,.35)}
html[data-theme=azul] .nl-c-won .nl-cc{background:rgba(0,217,106,.14);color:#00D96A;box-shadow:inset 0 0 0 1px rgba(0,217,106,.35)}
html[data-theme=azul] .nl-c-lost .nl-cc{background:rgba(255,70,92,.12);color:#ff7d93;box-shadow:inset 0 0 0 1px rgba(255,70,92,.3)}
html[data-theme=azul] .nl-cards{display:flex;flex-direction:column;gap:8px;padding:10px}
html[data-theme=azul] .nl-card,html[data-theme=azul] .nl-row{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:10px;border-radius:12px;border:1px solid var(--nl-line);background:rgba(18,26,40,.75);color:inherit;cursor:pointer;transition:border-color .2s,transform .2s,box-shadow .2s}
html[data-theme=azul] .nl-card:hover,html[data-theme=azul] .nl-row:hover{border-color:rgba(109,182,255,.5);transform:translateY(-1px);box-shadow:0 0 18px -6px rgba(36,140,255,.45)}
html[data-theme=azul] .nl-av{width:34px;height:34px;flex:none;border-radius:50%;display:grid;place-items:center;font:600 12px/1 var(--f-ui);letter-spacing:.04em;color:#fff;background:linear-gradient(140deg,rgba(36,140,255,.55),rgba(31,111,209,.35));box-shadow:inset 0 0 0 1px rgba(109,182,255,.45)}
html[data-theme=azul] .nl-av.nl-av-lg{width:48px;height:48px;font-size:16px}
html[data-theme=azul] .nl-cw{display:flex;flex-direction:column;min-width:0;flex:1;gap:2px}
html[data-theme=azul] .nl-cw b{font-weight:500;font-size:13.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-theme=azul] .nl-cw small{font-size:11.5px;color:#8a97b3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-theme=azul] .nl-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:3px}
html[data-theme=azul] .nl-next{font-size:11px;color:#6DB6FF}html[data-theme=azul] .nl-next::before{content:"◷ "}
html[data-theme=azul] .nl-next.late{color:#ff7d93}
html[data-theme=azul] .nl-val{font-size:12.5px;color:#6DB6FF;white-space:nowrap}
html[data-theme=azul] .nl-morec{border:1px dashed var(--nl-line2);background:none;color:#6DB6FF;border-radius:10px;padding:8px;font-size:12px;cursor:pointer}
html[data-theme=azul] .nl-empty{color:#8a97b3;font-size:12.5px;padding:8px 4px;text-align:center}
/* lista */
html[data-theme=azul] .nl-sec{padding:14px;border-radius:18px;border:1px solid var(--nl-line);background:rgba(6,10,20,.45)}
html[data-theme=azul] .nl-bar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:12px}
html[data-theme=azul] .nl-filt{display:flex;gap:4px;flex-wrap:wrap;padding:4px;border-radius:14px;background:var(--nl-panel);border:1px solid var(--nl-line)}
html[data-theme=azul] .nl-filt button{border:0;background:none;color:#8a97b3;padding:7px 11px;border-radius:10px;font-size:12.5px;cursor:pointer}
html[data-theme=azul] .nl-filt button small{opacity:.7;margin-left:3px}
html[data-theme=azul] .nl-filt button.on{background:linear-gradient(180deg,rgba(36,140,255,.28),rgba(36,140,255,.12));color:#fff;box-shadow:inset 0 0 0 1px rgba(109,182,255,.35)}
html[data-theme=azul] #nl-q{flex:1;min-width:200px}
html[data-theme=azul] .nl-rows{display:flex;flex-direction:column;gap:8px}
html[data-theme=azul] .nl-ct{display:flex;flex-direction:column;font-size:12.5px;color:#cdd7ee;min-width:0;width:26%;overflow:hidden;text-overflow:ellipsis}
html[data-theme=azul] .nl-ct small{color:#8a97b3}
html[data-theme=azul] .nl-st{display:flex;flex-direction:column;align-items:flex-end;gap:3px;font-size:11px;color:#8a97b3;width:120px}
html[data-theme=azul] .nl-more{margin:12px auto 0;display:flex}
html[data-theme=azul] .tag.nl-s-new{color:#ffc947;border-color:rgba(255,201,71,.45)}html[data-theme=azul] .tag.nl-s-won{color:#00D96A;border-color:rgba(0,217,106,.45)}html[data-theme=azul] .tag.nl-s-lost{color:#ff7d93;border-color:rgba(255,70,92,.45)}
/* Real Estate y Sitio web dentro de secciones */
html[data-theme=azul] .nl-sec .card{background:rgba(18,26,40,.7)}
html[data-theme=azul] .nl-sec .grid.kp{margin-top:0}
/* ficha del lead: panel lateral */
html[data-theme=azul] .ov:has(.nl-drawer){place-items:stretch end;padding:0}
html[data-theme=azul] .ov:has(.nl-drawer) .mod{width:min(560px,100%);min-height:100%;border-radius:0;border-width:0 0 0 1px;padding:0;animation:nlin .35s cubic-bezier(.2,.8,.2,1)}
@keyframes nlin{from{transform:translateX(40px);opacity:0}to{transform:none;opacity:1}}
html[data-theme=azul] .nl-drawer{display:flex;flex-direction:column;min-height:100vh}
html[data-theme=azul] .nl-dh{display:flex;gap:14px;align-items:center;padding:22px 22px 16px;border-bottom:1px solid rgba(130,160,210,.16);background:linear-gradient(180deg,rgba(36,140,255,.1),transparent)}
html[data-theme=azul] .nl-dh h3{font:600 24px/1.1 var(--f-head);color:#fff;margin:0 0 6px;padding-right:30px}
html[data-theme=azul] .nl-dsub{display:flex;gap:6px;flex-wrap:wrap;align-items:center;font-size:12.5px;color:#6DB6FF}
html[data-theme=azul] .nl-drawer>.f{padding:14px 18px;flex:1;display:flex;flex-direction:column;gap:10px}
html[data-theme=azul] .nl-dsec{border:1px solid rgba(130,160,210,.16);border-radius:16px;background:rgba(18,26,40,.55)}
html[data-theme=azul] .nl-dsec>summary{list-style:none;cursor:pointer;padding:12px 14px;font:600 11.5px/1 var(--f-ui);letter-spacing:.16em;text-transform:uppercase;color:#dbe8ff;display:flex;align-items:center;gap:8px}
html[data-theme=azul] .nl-dsec>summary::-webkit-details-marker{display:none}
html[data-theme=azul] .nl-dsec>summary::after{content:"";margin-left:auto;width:8px;height:8px;border-right:1.5px solid #6DB6FF;border-bottom:1.5px solid #6DB6FF;transform:rotate(45deg);transition:.2s}
html[data-theme=azul] .nl-dsec[open]>summary::after{transform:rotate(225deg)}
html[data-theme=azul] .nl-dsec>summary small{color:#8a97b3;letter-spacing:0}
html[data-theme=azul] .nl-db{padding:0 14px 14px;display:flex;flex-direction:column;gap:10px}
html[data-theme=azul] .nl-steps{display:flex;gap:4px;flex-wrap:wrap}
html[data-theme=azul] .nl-steps button{flex:1;min-width:80px;border:1px solid rgba(130,160,210,.2);background:rgba(4,8,18,.6);color:#8a97b3;border-radius:10px;padding:8px 6px;font-size:11.5px;cursor:pointer}
html[data-theme=azul] .nl-steps button.done{color:#6DB6FF;border-color:rgba(109,182,255,.35)}
html[data-theme=azul] .nl-steps button.on{background:linear-gradient(180deg,rgba(36,140,255,.45),rgba(31,111,209,.3));color:#fff;border-color:rgba(109,182,255,.65)}
html[data-theme=azul] .nl-steps button.on.nl-s-won{background:rgba(0,217,106,.25);border-color:rgba(0,217,106,.6)}
html[data-theme=azul] .nl-steps button.on.nl-s-lost{background:rgba(255,70,92,.2);border-color:rgba(255,70,92,.55)}
html[data-theme=azul] .nl-msg{padding:10px 12px;border-radius:12px;background:rgba(36,140,255,.06);border:1px solid rgba(130,160,210,.16);font-size:13.5px}
html[data-theme=azul] .nl-quick{display:flex;gap:8px;flex-wrap:wrap}
html[data-theme=azul] .nl-dist{padding:12px;border-radius:12px;border:1px solid rgba(130,160,210,.2);background:rgba(4,8,18,.5)}
html[data-theme=azul] .nl-tl{display:flex;flex-direction:column;gap:2px;margin-top:6px;border-left:1px solid rgba(109,182,255,.3);margin-left:6px;padding-left:14px}
html[data-theme=azul] .nl-ev{position:relative;font-size:13px;padding:6px 0}
html[data-theme=azul] .nl-ev i{position:absolute;left:-19px;top:11px;width:9px;height:9px;border-radius:50%;background:#248CFF;box-shadow:0 0 8px #248CFF}
html[data-theme=azul] .nl-ev.nl-k-stage i{background:#ffc947;box-shadow:0 0 8px rgba(255,201,71,.6)}
html[data-theme=azul] .nl-ev small{display:block;color:#8a97b3;font-size:11px}
html[data-theme=azul] .nl-foot{position:sticky;bottom:0;display:flex;gap:10px;align-items:center;padding:14px 18px;margin:0;background:rgba(5,9,18,.94);border-top:1px solid rgba(130,160,210,.16);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
@media (max-width:1100px){html[data-theme=azul] .nl-kpis{grid-template-columns:repeat(2,1fr)}}
@media (max-width:720px){
  html[data-theme=azul] .nl-dock{grid-template-columns:repeat(2,1fr)}
  html[data-theme=azul] .nl-board{grid-template-columns:1fr;overflow:visible}
  html[data-theme=azul] .nl-ct{display:none}
  html[data-theme=azul] .nl-st{width:auto}
  html[data-theme=azul] .nl-kpi{padding:13px}
  html[data-theme=azul] .nl-head .btn.ghost{order:5}
}
html[data-theme=azul] .nl>.navb{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:6px}
html[data-theme=azul] .nl .mono,html[data-theme=azul] .nl-drawer .mono{font-family:var(--f-ui)!important;font-variant-numeric:tabular-nums;letter-spacing:0}
html[data-theme=azul] .nl-card{align-items:flex-start}
html[data-theme=azul] .nl-card .nl-val{position:absolute;right:10px;bottom:9px;font-size:12px}
html[data-theme=azul] .nl-card{position:relative;padding-bottom:12px}
html[data-theme=azul] .nl-card .nl-cw{padding-right:2px}
html[data-theme=azul] .nl-card .nl-tags{padding-right:70px}

/* ===== BOTONES MODERNOS (todas las pantallas) ===== */
html[data-theme=azul] body .btn{min-height:38px;padding:8px 15px;border-radius:12px;font:500 13.5px/1 var(--f-ui)!important;letter-spacing:.01em!important;text-transform:none!important;color:#dbe8ff;
  border:1px solid rgba(109,182,255,.24);background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.015));box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 1px 2px rgba(0,0,0,.4);
  transition:transform .15s,box-shadow .2s,border-color .2s,background .2s,color .2s;gap:7px}
html[data-theme=azul] body .btn:hover{color:#fff;border-color:rgba(109,182,255,.6);background:linear-gradient(180deg,rgba(36,140,255,.22),rgba(36,140,255,.08));box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 0 0 3px rgba(36,140,255,.12),0 8px 22px -10px rgba(36,140,255,.7);transform:translateY(-1px)}
html[data-theme=azul] body .btn:active{transform:translateY(0) scale(.98)}
html[data-theme=azul] body .btn:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(36,140,255,.45)}
html[data-theme=azul] body .btn.solid{color:#fff;border-color:rgba(160,215,255,.55);background:linear-gradient(180deg,#3aa0ff,#1667D9);box-shadow:inset 0 1px 0 rgba(255,255,255,.28),0 10px 26px -12px rgba(36,140,255,.95)}
html[data-theme=azul] body .btn.solid:hover{background:linear-gradient(180deg,#52adff,#2a7ce0);box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 0 0 3px rgba(36,140,255,.2),0 12px 30px -10px rgba(36,140,255,1)}
html[data-theme=azul] body .btn.ghost{background:none;border-color:transparent;box-shadow:none;color:#9fb3d9}
html[data-theme=azul] body .btn.ghost:hover{background:rgba(36,140,255,.1);border-color:rgba(109,182,255,.25);color:#fff}
html[data-theme=azul] body .btn.bad{color:#ff9aab;border-color:rgba(255,70,92,.4);background:linear-gradient(180deg,rgba(255,70,92,.12),rgba(255,70,92,.04))}
html[data-theme=azul] body .btn.bad:hover{border-color:rgba(255,70,92,.7);box-shadow:0 0 0 3px rgba(255,70,92,.14)}
html[data-theme=azul] body .btn.sm{min-height:32px;padding:6px 12px;font-size:12.5px!important;border-radius:10px}
html[data-theme=azul] body .btn[disabled]{opacity:.45}
/* barra Atrás / Inicio / Mega Admin / Historial: botones discretos tipo píldora */
html[data-theme=azul] body .navb .btn{min-height:30px;padding:5px 12px;border-radius:999px;font-size:12px!important;color:#9fb3d9;background:rgba(255,255,255,.03)}

/* ===== PESTAÑAS COMO BOTONES DE FUNCIÓN ===== */
html[data-theme=azul] body .chips.ngdock{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;width:auto;max-width:none;padding:0;background:none;border:0}
html[data-theme=azul] body .chips.ngdock .chip{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;border:1px solid rgba(130,160,210,.16);background:rgba(18,26,40,.62);color:#cdd7ee;font:500 12.5px/1.2 var(--f-ui);text-align:left;transition:transform .2s,border-color .2s,background .2s}
html[data-theme=azul] body .chips.ngdock .chip:hover{transform:translateY(-2px);border-color:rgba(109,182,255,.45)}
html[data-theme=azul] body .chips.ngdock .chip.on{background:linear-gradient(180deg,rgba(36,140,255,.22),rgba(18,26,40,.7));border-color:rgba(109,182,255,.6);color:#fff;box-shadow:none}
html[data-theme=azul] body .ngo{width:32px;height:32px;flex:none;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 35% 30%,rgba(109,182,255,.35),rgba(36,140,255,.08) 60%,transparent 70%);box-shadow:inset 0 0 0 1px rgba(109,182,255,.35),0 0 18px rgba(36,140,255,.15)}
html[data-theme=azul] body .ngo svg{width:16px;height:16px;color:#6DB6FF}
html[data-theme=azul] body .chips.ngdock .chip.on .ngo{box-shadow:inset 0 0 0 1px rgba(216,180,106,.7),0 0 22px rgba(36,140,255,.5)}
html[data-theme=azul] body .ngl{min-width:0;overflow:hidden;text-overflow:ellipsis}

/* ===== ENCABEZADO DE CADA MÓDULO ===== */
html[data-theme=azul] body .top.ngt{display:grid;grid-template-columns:1fr auto;align-items:end;column-gap:12px;row-gap:4px}
html[data-theme=azul] body .top.ngt>.navb{grid-column:1/-1;margin-bottom:6px}
html[data-theme=azul] body .top.ngt>.ngt-crumb{grid-column:1/-1;font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:#6DB6FF}
html[data-theme=azul] body .top.ngt>h2{grid-column:1;margin:0}
html[data-theme=azul] body .top.ngt>h2{grid-row:3}
html[data-theme=azul] body .top.ngt>.ngt-r{grid-column:2;grid-row:3;justify-self:end;display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:flex-end}
@media (max-width:720px){html[data-theme=azul] body .top.ngt{grid-template-columns:1fr}html[data-theme=azul] body .top.ngt>.ngt-r{grid-column:1;grid-row:4;justify-self:start;justify-content:flex-start}}

/* ===== TABLAS: tarjetas en celular ===== */
@media (max-width:720px){
  html[data-theme=azul] #main table[data-ngl]{min-width:0!important;border-collapse:separate}
  html[data-theme=azul] #main table[data-ngl] thead{display:none}
  html[data-theme=azul] #main table[data-ngl] tbody tr{display:block;margin:0 0 10px;padding:8px 12px;border:1px solid rgba(130,160,210,.16);border-radius:14px;background:rgba(18,26,40,.7)}
  html[data-theme=azul] #main table[data-ngl] tbody td{display:flex;justify-content:space-between;gap:12px;padding:6px 0!important;border:0!important;text-align:right;white-space:normal!important}
  html[data-theme=azul] #main table[data-ngl] tbody td[data-l]::before{content:attr(data-l);flex:none;max-width:45%;text-align:left;font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:#8a97b3;padding-top:2px}
  html[data-theme=azul] #main .tw:has(table[data-ngl]){border:0;background:none;overflow:visible}
  html[data-theme=azul] body .chips.ngdock{grid-template-columns:repeat(2,1fr)}
}
/* ===== MENÚ COMPLETO con el estilo del Centro de mando ===== */
html[data-theme=azul] .ng-back{display:flex;align-items:center;gap:10px;margin:10px 0;padding:10px 12px;border-radius:14px;text-decoration:none;color:#fff!important;background:linear-gradient(180deg,rgba(36,140,255,.28),rgba(31,111,209,.14));border:1px solid rgba(109,182,255,.55);box-shadow:0 0 22px -8px rgba(36,140,255,.7)}
html[data-theme=azul] .ng-back b{display:block;font-weight:600;font-size:14px}html[data-theme=azul] .ng-back small{display:block;font-size:11px;color:#9fd2ff;letter-spacing:.08em}
html[data-theme=azul] .nsa-gh{border:1px solid rgba(130,160,210,.16)!important;border-left:1px solid rgba(130,160,210,.16)!important;border-radius:14px!important;background:rgba(18,26,40,.62)!important;margin:6px 0!important;padding:10px 12px!important;color:#dbe8ff!important}
html[data-theme=azul] .nsa-gh:hover{border-color:rgba(109,182,255,.45)!important}
html[data-theme=azul] .nsa-g.cur>.nsa-gh,html[data-theme=azul] .nsa-gh[aria-expanded=true]{background:linear-gradient(180deg,rgba(36,140,255,.22),rgba(18,26,40,.7))!important;border-color:rgba(109,182,255,.6)!important}
html[data-theme=azul] .nsa-gh>i,html[data-theme=azul] .nsa-gh>.nsa-svg,html[data-theme=azul] .nsa-gh>svg{width:32px;height:32px;flex:none;border-radius:50%;display:grid;place-items:center;font-style:normal;color:#6DB6FF;background:radial-gradient(circle at 35% 30%,rgba(109,182,255,.35),rgba(36,140,255,.08) 60%,transparent 70%);box-shadow:inset 0 0 0 1px rgba(109,182,255,.35)}
html[data-theme=azul] .side .nv{margin:1px 0}
/* Usuarios y accesos (Next Gen) */
html[data-theme=azul] .ngu-g{border:1px solid rgba(130,160,210,.16);border-radius:16px;background:rgba(6,10,20,.4);margin-bottom:10px}
html[data-theme=azul] .ngu-g>summary{list-style:none;display:flex;align-items:center;gap:8px;padding:11px 14px;cursor:pointer}
html[data-theme=azul] .ngu-g>summary::-webkit-details-marker{display:none}
html[data-theme=azul] .ngu-g>.nl-rows{padding:0 10px 10px}
html[data-theme=azul] .ngu-role{font-size:12.5px;color:#9fd2ff;width:180px;text-align:right}
@media (max-width:720px){html[data-theme=azul] .ngu-role{display:none}}
/* fichas (usuario, cliente…): panel lateral moderno */
html[data-theme=azul] .ov:has([data-act=usersave]){place-items:stretch end;padding:0}
html[data-theme=azul] .ov:has([data-act=usersave]) .mod{width:min(620px,100%);min-height:100%;border-radius:0;border-width:0 0 0 1px;animation:nlin .35s cubic-bezier(.2,.8,.2,1)}
html[data-theme=azul] .ov:has([data-act=usersave]) .mod .acts{position:sticky;bottom:-22px;background:rgba(5,9,18,.95);padding:14px 0;margin-top:14px;border-top:1px solid rgba(130,160,210,.16)}
/* Nano IA general dentro del cajón del Centro de mando */
html.ng-nano #root,html.ng-nano #mos-theme-seg,html.ng-nano #cx-fab,html.ng-nano .nfab,html.ng-nano [data-mcgo-consent]{visibility:hidden!important}
html.ng-nano #cx-panel{left:0!important;top:0!important;right:0!important;bottom:0!important;width:100vw!important;height:100vh!important;height:100dvh!important;max-width:none!important;border:0!important;border-radius:0!important}
html.ng-nano .ov{z-index:1000}
html.ng-nano #cx-panel{visibility:visible!important}html.ng-nano #cx-panel *{visibility:visible}html.ng-nano #cx-panel [hidden]{display:none!important}
html.ng-nano body:has(.ov) #cx-panel{display:flex!important}

/* módulo abierto dentro del Centro de mando: un solo botón de Nano IA (el del Centro de mando) */
html.ng-embed:not(.ng-nano) #cx-fab{display:none!important}
