/* ============================================================================================
   SHELL «STRAWBERRY 2026» PARA NANCHESOFT · Área 1 · OT-NS-0126
   --------------------------------------------------------------------------------------------
   Va DESPUÉS de shell-v4.css y solo agrega o sobreescribe: quitar el <link> de App.razor deja el
   shell exactamente como estaba (reversible de un golpe).
   Reglas de David: blanco, limpio y discreto, SIN GRIS (ni fondos, ni riel oscuro, ni grayscale);
   letra casi negra (secundaria nunca más clara que #4b5563, contraste ≥ 4.5:1); tintes de la
   marca en vez de grises; animaciones suaves que respetan prefers-reduced-motion.
   Lección de IVRA: no depender del tema para ser blanco y legible → todo con variables y color
   de texto EXPLÍCITO en cada pieza (cinta, menú, tarjetas, contadores, rejillas, toast).
   ============================================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── Variables (modo claro). El acento (--brand1) lo pone el tema del usuario; los tintes salen de él. */
.ns-shellv4.ns-sb:not([data-theme="dark"]) {
    --bg: #ffffff;
    --panel: #ffffff;
    --rail: var(--sb-tint);
    --ink: #111827;
    --muted: #4b5563;
    --muted2: #4b5563;
    --zebra: #ffffff;
    --line: color-mix(in srgb, var(--brand1) 13%, #ffffff);
    --line2: color-mix(in srgb, var(--brand1) 8%, #ffffff);
    --hover: color-mix(in srgb, var(--brand1) 7%, #ffffff);
    --active: color-mix(in srgb, var(--brand1) 13%, #ffffff);

    --sb-tint: color-mix(in srgb, var(--brand1) 4%, #ffffff);     /* fondo del menú: casi blanco, con la marca */
    --sb-tint2: color-mix(in srgb, var(--brand1) 9%, #ffffff);
    --sb-line: color-mix(in srgb, var(--brand1) 16%, #ffffff);
    --sb-ink-strong: color-mix(in srgb, var(--brand1) 55%, #0b1220); /* acento legible sobre blanco */
}
.ns-shellv4.ns-sb[data-theme="dark"] {
    --sb-tint: #121a2c; --sb-tint2: #19233a; --sb-line: #263452; --sb-ink-strong: #cfe0ff;
}
.ns-shellv4.ns-sb {
    --sb-radius: 14px;
    --sb-shadow-1: 0 1px 2px color-mix(in srgb, var(--brand1) 10%, rgba(15, 23, 42, .06));
    --sb-shadow-2: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 18px color-mix(in srgb, var(--brand1) 12%, rgba(15, 23, 42, .06));
    --sb-shadow-3: 0 2px 4px rgba(15, 23, 42, .05), 0 16px 36px color-mix(in srgb, var(--brand1) 18%, rgba(15, 23, 42, .08));
    --sb-ease: cubic-bezier(.2, .8, .2, 1);
    --menu-w: 236px;
    --sb-font: "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-family: var(--sb-font);
    letter-spacing: -.005em;
}
.ns-shellv4.ns-sb ::-webkit-scrollbar-thumb { background: var(--sb-line); }
.ns-shellv4.ns-sb ::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--brand1) 35%, #fff); }

/* Lo BLOQUEADO se atenúa SIN volverse gris: opacidad, nunca grayscale (regla de David). */
.ns-shellv4.ns-sb .ns-shellv4__railbtn.is-locked,
.ns-shellv4.ns-sb .ns-shellv4__railbtn.is-locked:hover,
.ns-dash3__qa-tile.is-locked, .ns-dash3__qa-tile.is-locked:hover { filter: none; }

/* ── Barra superior ─────────────────────────────────────────────────────────────────────────── */
.ns-shellv4.ns-sb .ns-shellv4__topbar { background: #fff; border-bottom-color: var(--line2); }
.ns-shellv4.ns-sb[data-theme="dark"] .ns-shellv4__topbar { background: var(--panel); }
.ns-shellv4.ns-sb .ns-shellv4__searchbar { background: var(--sb-tint); border-color: var(--line); color: var(--muted); }
.ns-shellv4.ns-sb .ns-shellv4__searchbar:hover { background: #fff; border-color: color-mix(in srgb, var(--brand1) 35%, #fff); box-shadow: var(--sb-shadow-1); }
.ns-shellv4.ns-sb .ns-shellv4__kbd { color: var(--muted); border-color: var(--line); }

.ns-sb-quick { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: var(--sb-tint); }
.ns-shellv4 .ns-sb-quick__btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 0; border-radius: 8px;
    background: none; color: var(--muted); font: 600 12px/1 var(--sb-font); cursor: pointer; transition: background .15s var(--sb-ease), color .15s; }
.ns-shellv4 .ns-sb-quick__btn:hover { color: var(--ink); background: #fff; }
.ns-shellv4 .ns-sb-quick__btn.is-on { color: var(--sb-ink-strong); background: #fff; box-shadow: var(--sb-shadow-1); }
.ns-shellv4[data-theme="dark"] .ns-sb-quick__btn.is-on, .ns-shellv4[data-theme="dark"] .ns-sb-quick__btn:hover { background: var(--sb-tint2); }
@media (max-width: 1180px) { .ns-sb-quick__btn span { display: none; } .ns-shellv4 .ns-sb-quick__btn { padding: 0 8px; } }
@media (max-width: 640px) { .ns-sb-quick { display: none; } }

/* ── Pictograma (cuadro pastel con ícono de color). «Más cool»: degradado suave, brillo, relieve. ─ */
.ns-sb-pict {
    --mod: var(--brand1);
    position: relative; flex: none; display: grid; place-items: center;
    width: 30px; height: 30px; border-radius: 9px; color: color-mix(in srgb, var(--mod) 78%, #0b1220);
    background:
        radial-gradient(120% 90% at 20% 10%, rgba(255, 255, 255, .95), transparent 55%),
        linear-gradient(145deg, color-mix(in srgb, var(--mod) 14%, #fff), color-mix(in srgb, var(--mod) 26%, #fff));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mod) 22%, #fff), 0 1px 2px color-mix(in srgb, var(--mod) 18%, transparent);
    transition: transform .25s var(--sb-ease), box-shadow .25s var(--sb-ease);
}
.ns-sb-pict svg { width: 17px; height: 17px; }
.ns-sb-pict--sm { width: 26px; height: 26px; border-radius: 8px; }
.ns-sb-pict--sm svg { width: 15px; height: 15px; }
.ns-sb-pict--lg { width: 40px; height: 40px; border-radius: 12px; }
.ns-sb-pict--lg svg { width: 21px; height: 21px; }
.ns-sb-pict--xl { width: 48px; height: 48px; border-radius: 14px; }
.ns-sb-pict--xl svg { width: 25px; height: 25px; }
.ns-sb-pict--star { font-size: 15px; color: #b45309; }
.ns-shellv4[data-theme="dark"] .ns-sb-pict { color: color-mix(in srgb, var(--mod) 60%, #fff);
    background: linear-gradient(145deg, color-mix(in srgb, var(--mod) 26%, #121a2c), color-mix(in srgb, var(--mod) 40%, #121a2c)); }
.ns-sb-dot { --mod: var(--brand1); width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--mod); }
.ns-sb-ico { --mod: var(--brand1); width: 22px; height: 22px; border-radius: 7px; flex: none; display: grid; place-items: center;
    color: color-mix(in srgb, var(--mod) 78%, #0b1220); background: color-mix(in srgb, var(--mod) 14%, #fff); }
.ns-sb-ico svg { width: 13px; height: 13px; }

/* ── Estrella (único modo de marcar favoritos) con «pop» ────────────────────────────────────── */
.ns-shellv4 .ns-sb-star, .ns-sb-star {
    flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 8px;
    background: none; color: #6b7280; cursor: pointer; opacity: .0; transition: opacity .15s, color .15s, background .15s;
}
.ns-sb-star.is-on { color: #d97706; opacity: 1; }
.ns-sb-star:hover { background: #fff7e6; color: #b45309; opacity: 1; }
.ns-sb-star:focus-visible { opacity: 1; outline: 2px solid var(--brand1); outline-offset: 1px; }
.ns-sb-star.is-pop svg { animation: nsSbPop .32s var(--sb-ease); }
@keyframes nsSbPop { 0% { transform: scale(1); } 45% { transform: scale(1.45) rotate(-12deg); } 100% { transform: scale(1); } }
/* La estrella aparece al pasar por el renglón o la tarjeta; en táctil siempre visible. */
.ns-sb-card:hover .ns-sb-star, .ns-sb-card:focus-within .ns-sb-star,
.ns-sb-menu__leaf:hover .ns-sb-star, .ns-sb-ribbon__dditem:hover .ns-sb-star,
.ns-shellv4__palrow:hover .ns-sb-star, .ns-shellv4__palrow.is-sel .ns-sb-star { opacity: 1; }
@media (hover: none) { .ns-sb-star { opacity: .9; } }

/* ── CINTA ──────────────────────────────────────────────────────────────────────────────────── */
.ns-sb-ribbon { flex: none; background: #fff; border-bottom: 1px solid var(--line2); position: relative; z-index: 25;
    animation: nsSbSlideDown .28s var(--sb-ease); }
.ns-shellv4[data-theme="dark"] .ns-sb-ribbon { background: var(--panel); }
@keyframes nsSbSlideDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.ns-sb-ribbon__tabs { display: flex; align-items: flex-end; gap: 2px; padding: 6px 12px 0; overflow-x: auto; scrollbar-width: none; }
.ns-sb-ribbon__tabs::-webkit-scrollbar { display: none; }
.ns-shellv4 .ns-sb-ribbon__tab {
    --area: var(--brand1);
    position: relative; flex: none; height: 32px; padding: 0 13px; border: 0; border-radius: 9px 9px 0 0;
    background: none; color: var(--muted); font: 600 12.5px/1 var(--sb-font); cursor: pointer; white-space: nowrap;
    transition: color .15s, background .15s;
}
.ns-shellv4 .ns-sb-ribbon__tab:hover { color: var(--ink); background: var(--sb-tint); }
.ns-shellv4 .ns-sb-ribbon__tab.is-on { color: var(--ink); background: var(--sb-tint2); }
.ns-sb-ribbon__tab::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0;
    background: var(--area); transform: scaleX(0); transition: transform .22s var(--sb-ease); }
.ns-sb-ribbon__tab.is-on::after { transform: scaleX(1); }
.ns-sb-ribbon__tabstar { color: #d97706; }
.ns-sb-ribbon__spacer { flex: 1; }
.ns-shellv4 .ns-sb-ribbon__ctl { flex: none; width: 28px; height: 28px; margin-bottom: 2px; border: 0; border-radius: 8px; background: none;
    color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.ns-shellv4 .ns-sb-ribbon__ctl:hover { background: var(--sb-tint2); color: var(--ink); }
.ns-sb-ribbon__ctl svg { transition: transform .22s var(--sb-ease); }

.ns-sb-ribbon__body { display: flex; align-items: stretch; gap: 0; min-height: 96px; padding: 8px 10px 0; background: var(--sb-tint2);
    overflow-x: auto; overflow-y: visible; animation: nsSbFade .22s var(--sb-ease); }
@keyframes nsSbFade { from { opacity: 0; } to { opacity: 1; } }
.ns-sb-ribbon.is-min .ns-sb-ribbon__tabs { padding-bottom: 0; }
.ns-sb-ribbon__group { display: flex; flex-direction: column; padding: 0 10px; border-right: 1px solid var(--sb-line); }
.ns-sb-ribbon__group:last-child { border-right: 0; }
.ns-sb-ribbon__btns { display: flex; align-items: flex-start; gap: 4px; flex: 1; }
.ns-sb-ribbon__smalls { display: grid; grid-auto-flow: column; grid-template-rows: repeat(3, 26px); gap: 2px 10px; flex: 1; align-content: start; }
.ns-sb-ribbon__glabel { padding: 4px 0 5px; text-align: center; font: 600 10.5px/1.2 var(--sb-font); color: var(--muted); letter-spacing: .02em; }
.ns-sb-ribbon__hint { align-self: center; max-width: 230px; padding: 8px 6px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.ns-sb-ribbon__hint b { color: #b45309; }

/* Botón grande de MÓDULO: tarjetita con pictograma, brillo y elevación al pasar. */
.ns-shellv4 .ns-sb-ribbon__big {
    position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 5px;
    width: 92px; min-height: 76px; padding: 8px 6px 7px; border: 1px solid transparent; border-radius: 12px; background: transparent;
    color: var(--ink); cursor: pointer; text-align: center;
    transition: transform .22s var(--sb-ease), box-shadow .22s var(--sb-ease), background .22s, border-color .22s;
}
.ns-shellv4 .ns-sb-ribbon__big::before { /* destello que cruza el botón al pasar el mouse */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .75) 48%, transparent 66%);
    transform: translateX(-120%); transition: transform .6s var(--sb-ease);
}
.ns-shellv4 .ns-sb-ribbon__big:hover, .ns-shellv4 .ns-sb-ribbon__big.is-open {
    background: #fff; border-color: var(--sb-line); box-shadow: var(--sb-shadow-2); transform: translateY(-2px);
}
.ns-shellv4 .ns-sb-ribbon__big:hover::before { transform: translateX(120%); }
.ns-shellv4 .ns-sb-ribbon__big:hover .ns-sb-pict { transform: scale(1.08) rotate(-3deg);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mod) 30%, #fff), 0 6px 14px color-mix(in srgb, var(--mod) 32%, transparent); }
.ns-shellv4 .ns-sb-ribbon__big:focus-visible { outline: 2px solid var(--brand1); outline-offset: 2px; }
.ns-shellv4 .ns-sb-ribbon__big.is-locked { opacity: .5; }
.ns-sb-ribbon__biglabel { font: 650 11.5px/1.2 var(--sb-font); font-weight: 650; color: var(--ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ns-sb-ribbon__bigsub { display: inline-flex; align-items: center; gap: 3px; font: 600 10px/1 var(--sb-font); color: var(--muted); }
.ns-shellv4 .ns-sb-ribbon__small { display: flex; align-items: center; gap: 7px; height: 26px; padding: 0 8px; max-width: 220px; border: 0; border-radius: 7px;
    background: none; color: var(--ink); font: 500 12px/1 var(--sb-font); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-shellv4 .ns-sb-ribbon__small:hover { background: #fff; box-shadow: var(--sb-shadow-1); }

/* Submenú del módulo */
.ns-sb-ribbon__ddwrap { position: relative; }
.ns-sb-ribbon__scrim { position: fixed; inset: 0; z-index: 40; }
.ns-sb-ribbon__dd { position: absolute; top: calc(100% + 6px); left: 0; z-index: 41; width: 300px; max-height: min(62vh, 520px);
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--sb-line); border-radius: 14px; box-shadow: var(--sb-shadow-3);
    transform-origin: top left; animation: nsSbPop2 .18s var(--sb-ease); overflow: hidden; }
.ns-shellv4[data-theme="dark"] .ns-sb-ribbon__dd { background: var(--panel); }
@keyframes nsSbPop2 { from { opacity: 0; transform: translateY(-4px) scale(.97); } to { opacity: 1; transform: none; } }
.ns-sb-ribbon__ddhead { --mod: var(--brand1); display: flex; align-items: center; gap: 8px; padding: 11px 14px; font: 700 13px/1 var(--sb-font); color: var(--ink);
    border-bottom: 1px solid var(--line2); background: linear-gradient(90deg, color-mix(in srgb, var(--mod) 9%, #fff), #fff); }
.ns-sb-ribbon__ddhead .ns-sb-dot { background: var(--mod); }
.ns-sb-ribbon__ddcount { margin-left: auto; font: 600 11px/1 var(--sb-font); color: var(--muted); }
.ns-sb-ribbon__ddlist { overflow: auto; padding: 6px; }
.ns-sb-ribbon__ddsec { padding: 10px 8px 4px; font: 700 10px/1.2 var(--sb-font); letter-spacing: .05em; text-transform: uppercase; color: var(--sb-ink-strong); }
.ns-sb-ribbon__dditem { display: flex; align-items: center; border-radius: 9px; transition: background .12s; }
.ns-sb-ribbon__dditem:hover { background: var(--hover); }
.ns-sb-ribbon__dditem.is-locked { opacity: .5; }
.ns-shellv4 .ns-sb-ribbon__ddgo { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 8px; border: 0; background: none;
    color: var(--ink); font: 500 12.5px/1 var(--sb-font); text-align: left; cursor: pointer; }
.ns-shellv4 .ns-sb-ribbon__ddgo:disabled { cursor: not-allowed; }
.ns-sb-ribbon__ddtxt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── MENÚ IZQUIERDO NORMAL ──────────────────────────────────────────────────────────────────── */
.ns-shellv4.ns-sb[data-menu="normal"] .ns-shellv4__body { grid-template-columns: var(--menu-w) 1fr; }
.ns-shellv4.ns-sb[data-menu="off"] .ns-shellv4__body { grid-template-columns: 1fr; }
.ns-sb-menu { display: flex; flex-direction: column; min-height: 0; background: var(--sb-tint); border-right: 1px solid var(--line2);
    color: var(--ink); overflow: hidden; }
.ns-sb-menu__head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px; }
.ns-sb-menu__avatar { width: 36px; height: 36px; border-radius: 11px; flex: none; display: grid; place-items: center; color: #fff;
    font: 800 12px/1 var(--sb-font); background: linear-gradient(140deg, var(--brand1), var(--brand2)); box-shadow: 0 6px 14px color-mix(in srgb, var(--brand1) 30%, transparent); }
.ns-sb-menu__co { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.ns-sb-menu__coeyebrow { font: 700 9.5px/1 var(--sb-font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ns-sb-menu__coname { margin-top: 3px; font: 750 13.5px/1.2 var(--sb-font); font-weight: 750; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ns-shellv4 .ns-sb-menu__search { display: flex; align-items: center; gap: 8px; margin: 0 12px 8px; height: 34px; padding: 0 10px; border: 1px solid var(--line);
    border-radius: 10px; background: #fff; color: var(--muted); font: 500 12.5px/1 var(--sb-font); cursor: text; transition: border-color .15s, box-shadow .15s; }
.ns-shellv4 .ns-sb-menu__search:hover { border-color: color-mix(in srgb, var(--brand1) 40%, #fff); box-shadow: var(--sb-shadow-1); }
.ns-sb-menu__search span { flex: 1; text-align: left; }
.ns-sb-menu__search kbd, .ns-home kbd { font: 600 10px/1 ui-monospace, monospace; color: var(--muted); background: #fff; border: 1px solid var(--line);
    border-bottom-width: 2px; border-radius: 5px; padding: 3px 5px; }
.ns-sb-menu__scroll { flex: 1; min-height: 0; overflow: auto; padding: 2px 8px 10px; }
.ns-sb-menu__label { --area: var(--brand1); display: flex; align-items: center; gap: 7px; padding: 14px 8px 6px; font: 800 10px/1 var(--sb-font);
    letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ns-sb-menu__label::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--area); }
.ns-shellv4 .ns-sb-menu__row { display: flex; align-items: center; gap: 9px; width: 100%; height: calc(var(--row) + 4px); padding: 0 8px; border: 0; border-radius: 10px;
    background: none; color: var(--ink); font: 600 12.8px/1 var(--sb-font); text-align: left; cursor: pointer;
    transition: background .14s var(--sb-ease), transform .14s var(--sb-ease); }
.ns-shellv4 .ns-sb-menu__row:hover { background: #fff; box-shadow: var(--sb-shadow-1); }
.ns-shellv4 .ns-sb-menu__row:hover .ns-sb-pict { transform: scale(1.06); }
.ns-shellv4 .ns-sb-menu__row.is-active, .ns-shellv4 .ns-sb-menu__row.is-current { background: #fff; box-shadow: inset 3px 0 0 var(--brand1), var(--sb-shadow-1); }
.ns-shellv4 .ns-sb-menu__row.is-locked { opacity: .5; }
.ns-shellv4 .ns-sb-menu__row--danger { color: #b91c1c; }
.ns-sb-menu__txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ns-sb-menu__count { flex: none; min-width: 22px; padding: 3px 6px; border-radius: 999px; text-align: center; font: 700 10.5px/1 var(--sb-font);
    color: var(--sb-ink-strong); background: var(--sb-tint2); }
.ns-sb-menu__chev { flex: none; color: var(--muted); transition: transform .2s var(--sb-ease); }
.ns-sb-menu__row.is-open .ns-sb-menu__chev { transform: rotate(90deg); }
.ns-sb-menu__lock { flex: none; color: var(--muted); }
.ns-sb-menu__sub { --mod: var(--brand1); position: relative; margin: 2px 0 6px 20px; padding-left: 10px; border-left: 2px solid color-mix(in srgb, var(--mod) 30%, #fff);
    animation: nsSbFade .2s var(--sb-ease); }
.ns-sb-menu__sec { padding: 8px 6px 3px; font: 700 9.5px/1.2 var(--sb-font); letter-spacing: .05em; text-transform: uppercase; color: color-mix(in srgb, var(--mod) 65%, #0b1220); }
.ns-sb-menu__leaf { display: flex; align-items: center; border-radius: 8px; }
.ns-sb-menu__leaf:hover { background: #fff; }
.ns-sb-menu__leaf.is-active { background: #fff; box-shadow: var(--sb-shadow-1); }
.ns-sb-menu__leaf.is-active .ns-sb-menu__leafgo { color: var(--sb-ink-strong); font-weight: 700; }
.ns-sb-menu__leaf.is-locked { opacity: .5; }
.ns-shellv4 .ns-sb-menu__leafgo { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: var(--row); padding: 0 6px; border: 0; background: none;
    color: var(--ink); font: 500 12.3px/1 var(--sb-font); text-align: left; cursor: pointer; }
.ns-shellv4 .ns-sb-menu__leafgo:disabled { cursor: not-allowed; }
.ns-sb-menu__leafgo .ns-sb-dot { width: 5px; height: 5px; background: color-mix(in srgb, var(--mod) 70%, #fff); }
.ns-sb-menu__leaf .ns-sb-star { width: 24px; height: 24px; }
.ns-sb-menu__badge { flex: none; font: 700 9px/1 var(--sb-font); color: var(--sb-ink-strong); background: var(--sb-tint2); border-radius: 999px; padding: 2px 5px; }
.ns-sb-menu__empty { padding: 6px 8px 8px; font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.ns-sb-menu__foot { flex: none; padding: 8px; border-top: 1px solid var(--line2); }
.ns-sb-menu__footico { width: 26px; height: 26px; flex: none; display: grid; place-items: center; color: var(--muted); }

/* ── Riel COMPACTO en claro (antes azul marino #0e1726: era el «riel oscuro grisáceo») ─────── */
.ns-shellv4.ns-sb:not([data-theme="dark"]) .ns-shellv4__rail { background: var(--sb-tint); border-right: 1px solid var(--line2); }
.ns-shellv4.ns-sb:not([data-theme="dark"]) .ns-shellv4__railbtn.is-active::before { background: var(--brand1); }
.ns-shellv4.ns-sb:not([data-theme="dark"]) .ns-shellv4__railbtn.is-active .ns-shellv4__railcode { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand1); }
.ns-shellv4.ns-sb:not([data-theme="dark"]) .ns-shellv4__railcode { box-shadow: 0 2px 6px color-mix(in srgb, var(--mod) 35%, transparent); }
.ns-shellv4.ns-sb:not([data-theme="dark"]) .ns-shellv4__cog .ns-shellv4__railcode { background: #fff; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.ns-shellv4.ns-sb:not([data-theme="dark"]) .ns-shellv4__railseplinea { background: var(--sb-line); }
.ns-shellv4.ns-sb:not([data-theme="dark"]) .ns-shellv4__railsepico { color: var(--muted); }
.ns-shellv4.ns-sb .ns-shellv4__list { background: #fff; border-right-color: var(--line2); }
.ns-shellv4.ns-sb[data-theme="dark"] .ns-shellv4__list { background: var(--panel); }
.ns-shellv4.ns-sb .ns-shellv4__item { color: var(--ink); }
.ns-shellv4.ns-sb .ns-shellv4__item.is-active { color: var(--sb-ink-strong); }
.ns-shellv4.ns-sb .ns-shellv4__filterwrap { background: var(--sb-tint); }

/* ── Pestañas y área de trabajo ─────────────────────────────────────────────────────────────── */
.ns-shellv4.ns-sb .ns-shellv4__tab { color: var(--muted); }
.ns-shellv4.ns-sb .ns-shellv4__tab.is-active { color: var(--sb-ink-strong); border-color: var(--sb-line); background: var(--active); }
.ns-shellv4.ns-sb .ns-shellv4__tab:hover { background: var(--sb-tint); }
.ns-shellv4.ns-sb .ns-shellv4__empty { color: var(--muted); }
.ns-shellv4.ns-sb .ns-shellv4__emptybig { color: var(--ink); }

/* ── Barra de estado ────────────────────────────────────────────────────────────────────────── */
.ns-sb-status { flex: none; display: flex; align-items: center; gap: 18px; height: 26px; padding: 0 14px; border-top: 1px solid var(--line2);
    background: var(--sb-tint); color: var(--muted); font: 500 11.3px/1 var(--sb-font); white-space: nowrap; overflow: hidden; }
.ns-sb-status__item { display: inline-flex; align-items: center; gap: 6px; color: #374151; }
.ns-shellv4[data-theme="dark"] .ns-sb-status__item { color: var(--muted); }
.ns-sb-status__muted { color: var(--muted); }
.ns-sb-status__dot { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); }
.ns-sb-status__spacer { flex: 1; }
/* Periodo de nómina vigente (solo en /payroll): resalta en el color de Nómina; «automático» = nadie lo eligió. */
.ns-sb-status__periodo { padding: 0 8px; height: 20px; border-radius: 6px; font-weight: 600; text-decoration: none;
    color: #9a3412; background: #fff7ed; border: 1px solid #fed7aa; }
.ns-sb-status__periodo:hover { background: #ffedd5; }
.ns-sb-status__periodo.is-auto { font-weight: 500; }
.ns-shellv4[data-theme="dark"] .ns-sb-status__periodo { color: #fdba74; background: rgba(251, 146, 60, .12); border-color: rgba(251, 146, 60, .35); }
@media (max-width: 760px) { .ns-sb-status__item--wide { display: none; } }
@media (max-width: 520px) { .ns-sb-status { display: none; } }

/* ── Bienvenida (toast ABAJO) ───────────────────────────────────────────────────────────────── */
.ns-sb-welcome { position: fixed; left: 50%; bottom: 40px; z-index: 1090; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px);
    padding: 12px 20px; border-radius: 999px; background: #fff; color: #111827; font: 650 13.5px/1.3 var(--sb-font); font-weight: 650;
    border: 1px solid var(--sb-line); box-shadow: var(--sb-shadow-3);
    opacity: 0; transform: translate(-50%, 24px) scale(.96); pointer-events: none;
    transition: opacity .35s var(--sb-ease), transform .45s var(--sb-ease); }
.ns-sb-welcome.is-show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.ns-sb-welcome__wave { display: inline-block; font-size: 18px; animation: nsSbWave 1.4s ease-in-out .3s 2; transform-origin: 70% 70%; }
@keyframes nsSbWave { 0%, 60%, 100% { transform: rotate(0); } 15% { transform: rotate(16deg); } 30% { transform: rotate(-10deg); } 45% { transform: rotate(12deg); } }

/* ── Panel «Personalizar mi pantalla» ───────────────────────────────────────────────────────── */
.ns-sb-cust { flex: 1; min-height: 0; overflow: auto; padding-bottom: 8px; }
.ns-sb-cust__toggles { display: flex; flex-direction: column; gap: 2px; }
.ns-shellv4 .ns-sb-toggle { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 6px 4px; border: 0; background: none;
    color: var(--ink); font: 500 12.8px/1.3 var(--sb-font); text-align: left; cursor: pointer; border-radius: 8px; }
.ns-shellv4 .ns-sb-toggle:hover { background: var(--hover); }
.ns-sb-toggle__label { flex: 1; }
.ns-sb-toggle__track { flex: none; position: relative; width: 36px; height: 21px; border-radius: 999px; background: var(--sb-line); transition: background .2s var(--sb-ease); }
.ns-sb-toggle__thumb { position: absolute; top: 2.5px; left: 2.5px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .25); transition: transform .22s var(--sb-ease); }
.ns-sb-toggle.is-on .ns-sb-toggle__track { background: var(--brand1); }
.ns-sb-toggle.is-on .ns-sb-toggle__thumb { transform: translateX(15px); }
.ns-sb-cust__range { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 12.5px; color: var(--ink); }
.ns-sb-cust__range input { flex: 1; accent-color: var(--brand1); }
.ns-sb-cust__range b { min-width: 52px; text-align: right; font-weight: 600; color: var(--muted); }
.ns-shellv4 .ns-sb-cust__reset { width: 100%; margin-top: 12px; }

/* ── Paleta Ctrl+K: fade + scale ────────────────────────────────────────────────────────────── */
.ns-shellv4.ns-sb .ns-shellv4__palov { background: color-mix(in srgb, var(--brand1) 10%, rgba(17, 24, 39, .32)); animation: nsSbFade .16s var(--sb-ease); }
.ns-shellv4.ns-sb .ns-shellv4__pal { border-color: var(--sb-line); box-shadow: var(--sb-shadow-3), 0 30px 80px rgba(15, 23, 42, .18);
    animation: nsSbPalIn .2s var(--sb-ease); }
@keyframes nsSbPalIn { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: none; } }
.ns-shellv4.ns-sb .ns-shellv4__palrow { transition: background .1s; }
.ns-shellv4.ns-sb .ns-shellv4__palrow.is-sel { background: var(--active); }
.ns-shellv4.ns-sb .ns-shellv4__palgl, .ns-shellv4.ns-sb .ns-shellv4__pals { color: var(--muted); }

/* ── Ventana angosta (móvil primero) ────────────────────────────────────────────────────────── */
@media (max-width: 959.98px) {
    /* La cinta en el teléfono: solo pestañas (los botones no caben y robarían la pantalla). */
    .ns-sb-ribbon__body { display: none; }
    .ns-sb-ribbon__ctl { display: none !important; }
    .ns-shellv4.ns-sb .ns-shellv4__body { grid-template-columns: 1fr !important; }
    .ns-sb-menu { position: fixed; top: var(--top-h); bottom: 0; z-index: 60; width: min(86vw, var(--menu-w));
        left: calc(-1 * min(86vw, var(--menu-w)) - 2px); transition: left .2s var(--sb-ease); box-shadow: var(--sb-shadow-3); }
    .ns-shellv4[data-nav="on"] .ns-sb-menu { left: 0; }
    /* Con el menú oculto por preferencia, en el teléfono el ☰ sigue abriéndolo (data-nav). */
}

/* ═══ INICIO ═══════════════════════════════════════════════════════════════════════════════════ */
.ns-home { --ink: #111827; --muted: #4b5563; max-width: 1280px; margin: 0 auto; padding: 22px 26px 40px; color: var(--ink); }
.ns-shellv4[data-theme="dark"] .ns-home { --ink: #e8edf6; --muted: #aab8cf; }
.ns-home__hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px;
    animation: nsSbRise .4s var(--sb-ease) both; }
.ns-home__title { margin: 0; font: 800 clamp(22px, 2.6vw, 30px)/1.15 var(--sb-font); font-weight: 800; letter-spacing: -.025em; color: var(--ink); }
.ns-home__title span { background: linear-gradient(100deg, var(--brand1), color-mix(in srgb, var(--brand2) 70%, #9333ea));
    -webkit-background-clip: text; background-clip: text; color: transparent; }
.ns-home__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.ns-home__date { color: #374151; font-weight: 600; }
.ns-shellv4[data-theme="dark"] .ns-home__date { color: var(--ink); }
.ns-home__sep { color: var(--sb-line); }
.ns-home__ctx { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.ns-home__ctx b { color: var(--ink); }
.ns-home__searchrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; flex: 1 1 380px; max-width: 620px; }
.ns-home__search { flex: 1 1 300px; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border: 1px solid var(--sb-line);
    border-radius: 14px; background: #fff; color: var(--muted); font: 500 13.5px/1 var(--sb-font); cursor: text; box-shadow: var(--sb-shadow-1);
    transition: box-shadow .2s var(--sb-ease), border-color .2s, transform .2s var(--sb-ease); }
.ns-home__search:hover { border-color: color-mix(in srgb, var(--brand1) 45%, #fff); box-shadow: var(--sb-shadow-2); transform: translateY(-1px); }
.ns-home__search span { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ns-home__search svg { color: var(--brand1); }
.ns-shellv4[data-theme="dark"] .ns-home__search { background: var(--panel); }
.ns-home__check { display: inline-flex; align-items: center; gap: 8px; font: 600 12.5px/1.2 var(--sb-font); color: var(--ink); cursor: pointer; user-select: none; }
.ns-home__check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ns-home__checkbox { width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; border: 1.5px solid var(--sb-line); background: #fff;
    color: transparent; transition: background .15s, border-color .15s, color .15s; }
.ns-home__check input:checked + .ns-home__checkbox { background: var(--brand1); border-color: var(--brand1); color: #fff; }
.ns-home__check input:focus-visible + .ns-home__checkbox { outline: 2px solid var(--brand1); outline-offset: 2px; }

.ns-home__section { margin-top: 18px; animation: nsSbRise .4s var(--sb-ease) both; }
.ns-home__sechead { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ns-home__secicon { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; color: #b45309; background: #fff7e6; }
.ns-home__sectitle { margin: 0; font: 750 15px/1 var(--sb-font); font-weight: 750; color: var(--ink); letter-spacing: -.01em; }
.ns-home__seccount { font: 700 11px/1 var(--sb-font); color: var(--sb-ink-strong, #0a3d91); background: var(--sb-tint2, #eef4ff); padding: 3px 7px; border-radius: 999px; }
.ns-home__secspacer { flex: 1; height: 1px; background: linear-gradient(90deg, var(--sb-line), transparent); margin: 0 8px; }
.ns-home__secbtn { width: 28px; height: 28px; border: 0; border-radius: 8px; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.ns-home__secbtn:hover { background: var(--sb-tint2); color: var(--ink); }
.ns-home__secbtn svg { transition: transform .2s var(--sb-ease); }
.ns-home__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px; }
.ns-home__grid--compact { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }

/* Tarjeta: blanca, borde fino tintado, sombra suave en capas, elevación al pasar, aparición escalonada. */
.ns-sb-card { --mod: var(--brand1); position: relative; display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 13px 10px 13px 14px;
    border: 1px solid var(--sb-line); border-radius: var(--sb-radius); background: #fff; color: var(--ink); text-align: left; cursor: pointer;
    box-shadow: var(--sb-shadow-1); overflow: hidden;
    transition: transform .22s var(--sb-ease), box-shadow .22s var(--sb-ease), border-color .22s;
    animation: nsSbRise .38s var(--sb-ease) both; animation-delay: calc(var(--i, 0) * 28ms); }
.ns-sb-card::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--mod); opacity: 0; transition: opacity .2s; }
.ns-sb-card:hover, .ns-sb-card:focus-visible { transform: translateY(-3px); border-color: color-mix(in srgb, var(--mod) 35%, #fff); box-shadow: var(--sb-shadow-3); outline: none; }
.ns-sb-card:hover::after, .ns-sb-card:focus-visible::after { opacity: 1; }
.ns-sb-card:hover .ns-sb-pict { transform: scale(1.08) rotate(-3deg); box-shadow: 0 8px 18px color-mix(in srgb, var(--mod) 30%, transparent); }
.ns-sb-card:active { transform: translateY(-1px) scale(.99); }
.ns-sb-card--compact { min-height: 52px; padding: 8px 8px 8px 10px; gap: 10px; border-radius: 12px; }
.ns-sb-card--module { min-height: 84px; }
.ns-sb-card.is-locked { opacity: .5; }
.ns-shellv4[data-theme="dark"] .ns-sb-card { background: var(--panel); }
.ns-sb-card__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ns-sb-card__title { font: 650 13.5px/1.25 var(--sb-font); font-weight: 650; color: var(--ink); overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ns-sb-card--compact .ns-sb-card__title { -webkit-line-clamp: 1; font-size: 12.8px; }
.ns-sb-card__sub { font: 500 11.5px/1.2 var(--sb-font); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes nsSbRise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.ns-home__empty { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border: 1px dashed var(--sb-line); border-radius: var(--sb-radius); background: var(--sb-tint); }
.ns-home__emptyart { width: 110px; height: 77px; flex: none; }
.ns-home__emptytit { font: 700 14px/1.2 var(--sb-font); color: var(--ink); }
.ns-home__emptysub { margin-top: 4px; font-size: 12.8px; color: var(--muted); line-height: 1.45; }
.ns-home__emptysub b { color: #b45309; }
.ns-home__hintrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.ns-home__chip { --mod: var(--brand1); height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--mod) 25%, #fff);
    background: color-mix(in srgb, var(--mod) 8%, #fff); color: color-mix(in srgb, var(--mod) 70%, #0b1220); font: 600 12px/1 var(--sb-font); cursor: pointer;
    transition: transform .15s var(--sb-ease), box-shadow .15s; }
.ns-home__chip:hover { transform: translateY(-1px); box-shadow: var(--sb-shadow-2); }
.ns-home__back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; height: 30px; padding: 0 10px; border: 1px solid var(--sb-line);
    border-radius: 9px; background: #fff; color: var(--ink); font: 600 12px/1 var(--sb-font); cursor: pointer; }
.ns-home__back:hover { background: var(--sb-tint); }
.ns-home__restore { margin-top: 18px; font-size: 12.5px; color: var(--muted); }
.ns-home__restore button, .ns-home__link { border: 0; background: none; padding: 0; color: var(--sb-ink-strong, #0a3d91); font: 600 12.5px/1 var(--sb-font); cursor: pointer; text-decoration: none; }
.ns-home__restore button:hover, .ns-home__link:hover { text-decoration: underline; }
.ns-home__guidebar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.ns-home__guide { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-top: 12px; }
.ns-home__step { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--sb-line); border-radius: 12px; background: #fff; color: var(--ink);
    text-align: left; cursor: pointer; animation: nsSbRise .35s var(--sb-ease) both; animation-delay: calc(var(--i) * 40ms); transition: box-shadow .2s, transform .2s; }
.ns-home__step:hover { box-shadow: var(--sb-shadow-2); transform: translateY(-2px); }
.ns-home__stepnum { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; font: 800 12px/1 var(--sb-font); color: #fff;
    background: linear-gradient(140deg, var(--brand1), var(--brand2)); }
.ns-home__steptxt { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.ns-home__steptxt small { color: var(--muted); font-size: 11.5px; }
@media (max-width: 640px) {
    .ns-home { padding: 16px 16px 32px; }
    .ns-home__grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .ns-sb-card { min-height: 64px; padding: 10px; gap: 9px; }
    .ns-sb-card .ns-sb-pict--lg { width: 34px; height: 34px; }
    .ns-home__empty { flex-direction: column; text-align: center; }
}

/* ═══ REJILLAS DxGrid · FILAS COMPLETAS DE COLOR (paleta tipo TikTok, tonos suaves) ═════════════
   Estilo común GLOBAL de rejillas, no pantalla por pantalla. :where() deja la especificidad en
   CERO a propósito: cualquier regla de una pantalla (una fila pintada por estatus, por ejemplo)
   le gana sin tener que pelear con !important. Texto SIEMPRE oscuro encima.
   Cian #25F4EE y rosa #FE2C55 se usan muy aclarados: puros sobre texto negro no pasan 4.5:1 en
   grandes superficies y cansan la vista. Sin cebra gris. */
:where(.dxbl-grid) {
    --sb-grid-cyan: #25f4ee;
    --sb-grid-pink: #fe2c55;
    --sb-grid-row-alt: color-mix(in srgb, #25f4ee 7%, #ffffff);
    --sb-grid-hover: color-mix(in srgb, #25f4ee 20%, #ffffff);
    --sb-grid-sel: color-mix(in srgb, #fe2c55 13%, #ffffff);
    --sb-grid-sel-hover: color-mix(in srgb, #fe2c55 19%, #ffffff);
}
:where(.dxbl-grid) :where(.dxbl-grid-table) > :where(tbody) > :where(tr.dxbl-grid-data-row) > :where(td) { color: #111827; background-color: #ffffff; }
:where(.dxbl-grid) :where(.dxbl-grid-table) > :where(tbody) > :where(tr.dxbl-grid-data-row:nth-of-type(even)) > :where(td) { background-color: var(--sb-grid-row-alt); }
:where(.dxbl-grid) :where(.dxbl-grid-table) > :where(tbody) > :where(tr.dxbl-grid-data-row:hover) > :where(td) { background-color: var(--sb-grid-hover); }
:where(.dxbl-grid) :where(.dxbl-grid-table) > :where(tbody) > :where(tr.dxbl-grid-selected-row, tr.dxbl-grid-focused-row) > :where(td) { background-color: var(--sb-grid-sel); color: #111827; }
:where(.dxbl-grid) :where(.dxbl-grid-table) > :where(tbody) > :where(tr.dxbl-grid-selected-row:hover, tr.dxbl-grid-focused-row:hover) > :where(td) { background-color: var(--sb-grid-sel-hover); }
:where(.dxbl-grid) :where(.dxbl-grid-table) > :where(tbody) > :where(tr.dxbl-grid-focused-row) > :where(td:first-child) { box-shadow: inset 3px 0 0 var(--sb-grid-pink); }
:where(.dxbl-grid) :where(.dxbl-grid-table) > :where(thead) :where(th) { color: #111827; font-weight: 700; box-shadow: inset 0 -2px 0 color-mix(in srgb, #25f4ee 70%, #0e7490); }
.ns-shellv4[data-theme="dark"] :where(.dxbl-grid) :where(.dxbl-grid-table) > :where(tbody) > :where(tr.dxbl-grid-data-row) > :where(td) { color: #e8edf6; background-color: transparent; }
.ns-shellv4[data-theme="dark"] :where(.dxbl-grid) :where(.dxbl-grid-table) > :where(tbody) > :where(tr.dxbl-grid-data-row:nth-of-type(even)) > :where(td) { background-color: rgba(37, 244, 238, .06); }
.ns-shellv4[data-theme="dark"] :where(.dxbl-grid) :where(.dxbl-grid-table) > :where(tbody) > :where(tr.dxbl-grid-data-row:hover) > :where(td) { background-color: rgba(37, 244, 238, .14); }
.ns-shellv4[data-theme="dark"] :where(.dxbl-grid) :where(.dxbl-grid-table) > :where(tbody) > :where(tr.dxbl-grid-selected-row, tr.dxbl-grid-focused-row) > :where(td) { background-color: rgba(254, 44, 85, .2); color: #fff; }

/* ── Movimiento reducido: todo quieto, nada se pierde. ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .ns-sb-ribbon, .ns-sb-ribbon__body, .ns-sb-ribbon__dd, .ns-sb-card, .ns-home__hero, .ns-home__section, .ns-home__step,
    .ns-sb-menu__sub, .ns-sb-welcome__wave, .ns-sb-star.is-pop svg { animation: none !important; }
    .ns-sb-card, .ns-sb-pict, .ns-sb-ribbon__big, .ns-sb-welcome, .ns-sb-menu { transition: none !important; }
    .ns-sb-ribbon__big::before { display: none; }
}

/* ═══ CINTA COMPACTA (David, 2026-11-07: «muy impráctica», «el panel donde se despliegan los módulos es lo
   más importante»). Viene OCULTA de entrada; si el usuario la prende, es una franja BLANCA y delgada: las
   pantallas del área van directo como botones chicos en dos renglones, sin desplegables que se corten y
   sin franja de color que empuje el área de trabajo. ═══════════════════════════════════════════════════ */
.ns-sb-ribbon__tabs { padding-top: 2px; }
.ns-shellv4 .ns-sb-ribbon__tab { height: 28px; padding: 0 11px; font-size: 12px; }
.ns-sb-ribbon__body { min-height: 0; padding: 4px 8px 0; background: #fff; border-top: 1px solid var(--line2); overflow-x: auto; overflow-y: hidden; }
.ns-shellv4[data-theme="dark"] .ns-sb-ribbon__body { background: var(--panel); }
.ns-sb-ribbon__group { flex: none; padding: 0 8px; }
.ns-sb-ribbon__group.is-locked { opacity: .55; }
.ns-sb-ribbon__smalls { grid-template-rows: repeat(2, 24px); gap: 1px 4px; }
.ns-shellv4 .ns-sb-ribbon__small { height: 24px; max-width: 200px; padding: 0 7px; gap: 6px; font-size: 11.8px; }
.ns-shellv4 .ns-sb-ribbon__small .ns-sb-ico { width: 18px; height: 18px; border-radius: 5px; }
.ns-shellv4 .ns-sb-ribbon__small .ns-sb-ico svg { width: 11px; height: 11px; }
.ns-sb-ribbon__glabel { padding: 1px 0 3px; font-size: 10px; color: color-mix(in srgb, var(--mod, var(--brand1)) 60%, #111827); }
/* Favoritos: los botones grandes también se vuelven chicos para no inflar la franja. */
.ns-sb-ribbon__btns { gap: 2px; flex-wrap: nowrap; }
.ns-shellv4 .ns-sb-ribbon__big { flex-direction: row; width: auto; min-height: 0; height: 50px; padding: 0 10px; gap: 8px; }
.ns-shellv4 .ns-sb-ribbon__big::before { display: none; }
.ns-shellv4 .ns-sb-ribbon__big:hover { transform: none; }
.ns-shellv4 .ns-sb-ribbon__big .ns-sb-pict { width: 26px; height: 26px; }
.ns-sb-ribbon__biglabel { max-width: 140px; text-align: left; }
.ns-sb-ribbon__hint { padding: 4px 6px; font-size: 11.5px; }

/* ═══ REJILLAS DevExtreme (los 116 catálogos de CatalogCrudPage, ns-crud-grid.js) · mismo criterio que DxGrid:
   filas completas de color suave, sin cebra gris, texto oscuro. Especificidad baja con :where(). ═══ */

/* Cinta sobre una pantalla de trabajo: los botones se despliegan ENCIMA (no empujan el panel) y se recogen al elegir. */
.ns-sb-ribbon.is-overlay .ns-sb-ribbon__body { position: absolute; left: 0; right: 0; top: 100%; z-index: 45; box-shadow: var(--sb-shadow-3); border-bottom: 1px solid var(--line2); }

/* ══ SIN BARRA SUPERIOR (David, 2026-11-11) ════════════════════════════════════════════════════════
   El riel y el panel de submódulos suben a top 0; logo, buscador, tenant, empresa y avatar bajan a la
   barra de estado (ShellStatusBar). Los menús de empresa/tenant/usuario se abren HACIA ARRIBA. */
.ns-shellv4.ns-sb--sin-topbar { --top-h: 0px; --sb-status-h: 40px; }

.ns-shellv4__railtoggle { color: var(--ink); opacity: 1; flex: none; margin-bottom: 4px; }
.ns-shellv4__railtoggle:hover { background: color-mix(in srgb, var(--brand1) 12%, transparent); }
.ns-shellv4__railtoggle.is-on { color: var(--brand1); }
.ns-shellv4[data-theme="dark"] .ns-shellv4__railtoggle { color: #e5e7eb; }

.ns-sb-status.ns-sb-status--sesion { height: var(--sb-status-h, 40px); gap: 10px; padding: 0 10px; overflow: visible; position: relative; z-index: 40; }
.ns-sb-status--sesion .ns-sb-status__nav { display: none; width: 32px; height: 32px; border-radius: 8px; place-items: center; color: var(--ink); flex: none; }
.ns-sb-status--sesion .ns-sb-status__nav:hover { background: var(--bg); }
.ns-sb-status--sesion .ns-sb-status__brand { display: flex; align-items: center; flex: none; }
.ns-sb-status--sesion .ns-sb-status__brand .ns-shellv4__logomark { height: 22px; }
.ns-sb-status--sesion .ns-sb-status__search { flex: 0 1 340px; max-width: 340px; margin: 0; height: 30px; font-size: 12.5px; }
.ns-sb-status--sesion .ns-shellv4__session { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.ns-sb-status--sesion .ns-shellv4__ctx,
.ns-sb-status--sesion .ns-shellv4__userpill { height: 32px; padding-top: 0; padding-bottom: 0; }
/* Menús hacia arriba (la barra está pegada abajo). */
.ns-sb-status--sesion .ns-shellv4__menu { top: auto; bottom: calc(100% + 8px); max-height: calc(100vh - 80px); overflow: auto; white-space: normal; }

@media (max-width: 959.98px) {
    .ns-sb-status--sesion .ns-sb-status__nav { display: grid; }
    /* El riel y el panel superpuestos no tapan la barra de abajo (ahí está el ☰ que los cierra). */
    .ns-shellv4.ns-sb--sin-topbar .ns-shellv4__rail,
    .ns-shellv4.ns-sb--sin-topbar .ns-shellv4__list { bottom: var(--sb-status-h); }
    .ns-shellv4.ns-sb--sin-topbar[data-nav="on"] .ns-shellv4__main::before { bottom: var(--sb-status-h); }
}
@media (max-width: 760px) {
    .ns-sb-status--sesion .ns-sb-status__brand { display: none; }
    .ns-sb-status--sesion .ns-sb-status__search { flex: 0 0 auto; width: 34px; padding: 0; justify-content: center; }
    .ns-sb-status--sesion .ns-sb-status__search .ns-shellv4__searchhint,
    .ns-sb-status--sesion .ns-sb-status__search .ns-shellv4__kbd { display: none; }
}
/* La barra vieja se ocultaba en el teléfono; ahora lleva la sesión: se queda. */
@media (max-width: 520px) { .ns-sb-status.ns-sb-status--sesion { display: flex; } }

/* ══ ESTILO LIMPIO «COMO CLAUDE» · shell (David, 2026-11-11) ══════════════════════════════════════════
   Sin gris: íconos y textos secundarios en azul de marca; separadores en cian suave. */
.ns-shellv4.ns-sb { --ns-marca-azul: #0071e3; --ns-marca-azul-texto: #0a4a91; --ns-marca-cian-tinte: #e8f6fc; --ns-marca-cian-linea: #d3eef9; }

/* Pestañas: solo pestañas + «⋯» al final. */
.ns-shellv4__tabmas { margin-left: auto; }
.ns-shellv4__tabmasbtn { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--ns-marca-azul); }
.ns-shellv4__tabmasbtn:hover, .ns-shellv4__tabmasbtn[aria-expanded="true"] { background: var(--ns-marca-cian-tinte); }
.ns-shellv4__tabmasmenu { border-color: var(--ns-marca-cian-linea); border-radius: 12px; box-shadow: 0 12px 32px rgba(10, 74, 145, .14); }
.ns-shellv4__tabmasmenu .ns-shellv4__distitem { color: var(--ns-marca-azul-texto); }
.ns-shellv4__tabmasmenu .ns-shellv4__distitem svg { color: var(--ns-marca-azul); }
.ns-shellv4__tabmasmenu .ns-shellv4__distitem:hover:not(:disabled) { background: var(--ns-marca-cian-tinte); }
.ns-shellv4__tabmashead { padding: 8px 10px 4px; font: 700 10px/1 var(--sb-font, system-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ns-marca-azul); }
.ns-shellv4__tabmassep { height: 1px; margin: 5px 6px; background: var(--ns-marca-cian-linea); }
.ns-shellv4__tabmasmenu .ns-shellv4__disthint { color: var(--ns-marca-azul-texto); opacity: .8; }
@media (max-width: 959.98px) { .ns-shellv4__tabmasmenu .ns-shellv4__tabaction--split { display: none; } }

/* Riel: el ☰ en azul de marca. */
.ns-shellv4__railtoggle { color: var(--ns-marca-azul, #0071e3); }

/* Barra de abajo compacta: chips pequeños, sin rótulos «TENANT/EMPRESA», sin gris. */
.ns-sb-status.ns-sb-status--sesion { --sb-status-h: 36px; height: 36px; border-top-color: var(--ns-marca-cian-linea); background: #fff; color: var(--ns-marca-azul-texto); }
.ns-sb-status--sesion .ns-sb-status__item { color: var(--ns-marca-azul-texto); }
.ns-sb-status--sesion .ns-sb-status__nav { color: var(--ns-marca-azul); }
.ns-sb-status--sesion .ns-sb-status__search { height: 28px; background: #fff; border-color: var(--ns-marca-cian-linea); color: var(--ns-marca-azul); }
.ns-sb-status--sesion .ns-sb-status__search:hover { background: var(--ns-marca-cian-tinte); border-color: var(--ns-marca-cian-linea); box-shadow: none; }
.ns-sb-status--sesion .ns-shellv4__searchhint { color: var(--ns-marca-azul-texto); }
.ns-sb-status--sesion .ns-shellv4__kbd { color: var(--ns-marca-azul); background: var(--ns-marca-cian-tinte); border: 0; }
.ns-sb-status--sesion .ns-shellv4__ctx,
.ns-sb-status--sesion .ns-shellv4__userpill { height: 28px; padding: 0 8px 0 4px; border-radius: 999px; border: 1px solid var(--ns-marca-cian-linea); background: #fff; gap: 6px; }
.ns-sb-status--sesion .ns-shellv4__ctx:hover,
.ns-sb-status--sesion .ns-shellv4__userpill:hover { background: var(--ns-marca-cian-tinte); border-color: var(--ns-marca-cian-linea); }
.ns-sb-status--sesion .ns-shellv4__ctx-eyebrow { display: none; }
.ns-sb-status--sesion .ns-shellv4__ctx-value { font-size: 12px; color: var(--ns-marca-azul-texto); }
.ns-sb-status--sesion .ns-shellv4__ctx-avatar { width: 20px; height: 20px; border-radius: 999px; font-size: 9px; }
.ns-sb-status--sesion .ns-shellv4__caret { color: var(--ns-marca-azul); }
.ns-shellv4[data-theme="dark"] .ns-sb-status.ns-sb-status--sesion { background: var(--panel); }

/* ══ ATAJOS · ventana Ctrl+/, acciones de Ctrl K y modo enfoque (David, 2026-11-11 · sin gris) ══════════ */
.ns-atajos__fondo { position: fixed; inset: 0; z-index: 1100; background: rgba(10, 74, 145, .18); display: grid; place-items: center; padding: 16px; }
.ns-atajos { width: min(760px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 16px;
    border: 1px solid #d3eef9; box-shadow: 0 24px 60px rgba(10, 74, 145, .22); padding: 20px 22px 14px; color: #0a4a91; }
.ns-atajos__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ns-atajos__head b { font-size: 16px; }
.ns-atajos__x { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: #0071e3; }
.ns-atajos__x:hover { background: #e8f6fc; }
.ns-atajos__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 26px; }
.ns-atajos__grupo h3 { margin: 0 0 8px; font: 700 10.5px/1 var(--sb-font, system-ui); letter-spacing: .08em; text-transform: uppercase; color: #0071e3; }
.ns-atajos__fila { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid #e8f6fc; font-size: 13px; }
.ns-atajos__teclas { display: inline-flex; align-items: center; gap: 3px; flex: none; }
.ns-atajos__teclas i { font-style: normal; font-size: 11px; color: #0071e3; margin: 0 3px; }
.ns-atajos__teclas kbd, .ns-palaccion__kbd { font: 600 11px/1 ui-monospace, monospace; color: #0071e3; background: #e8f6fc; border: 1px solid #d3eef9;
    border-radius: 6px; padding: 4px 6px; min-width: 20px; text-align: center; }
.ns-atajos__pie { margin-top: 12px; font-size: 11.5px; color: #0a4a91; opacity: .8; }

.ns-palaccion__ico { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: #0071e3; background: #e8f6fc; flex: none; }
.ns-palaccion .ns-shellv4__palt { color: #0a4a91; }
.ns-palaccion__kbd { margin-left: auto; }

/* Modo enfoque: fuera riel, panel y barra de abajo; la pantalla ocupa todo. (Ancho 0, no display:none, para el
   riel y la lista: así no se mueve la colocación del grid — ver shell-v4.css «COLAPSAR MENÚ».) */
.ns-shellv4[data-enfoque="on"] .ns-shellv4__body { grid-template-columns: 0 0 1fr !important; }
.ns-shellv4[data-enfoque="on"] .ns-shellv4__rail,
.ns-shellv4[data-enfoque="on"] .ns-shellv4__list { width: 0 !important; padding: 0 !important; overflow: hidden !important; border: 0 !important; }
.ns-shellv4[data-enfoque="on"] .ns-sb-status { display: none !important; }
.ns-enfoque-chip { position: fixed; right: 14px; bottom: 12px; z-index: 1080; padding: 6px 12px; border-radius: 999px; border: 1px solid #d3eef9;
    background: #fff; color: #0a4a91; font-size: 12px; box-shadow: 0 6px 18px rgba(10, 74, 145, .14); opacity: .9; }
.ns-enfoque-chip:hover { opacity: 1; background: #e8f6fc; }

/* Ícono de atajos al pie del riel (junto al engrane). */
.ns-shellv4__railatajos { color: var(--ns-marca-azul, #0071e3); opacity: 1; flex: none; }
.ns-shellv4__railatajos:hover { background: color-mix(in srgb, var(--ns-marca-azul, #0071e3) 12%, transparent); }
.ns-shellv4[data-theme="dark"] .ns-shellv4__railatajos { color: #7cc4ff; }
.ns-shellv4__menukbd { margin-left: auto; font: 600 10.5px/1 ui-monospace, monospace; color: #0071e3; background: #e8f6fc; border-radius: 5px; padding: 3px 6px; }

/* BUSCADOR CENTRADO ABAJO, como la barra de tareas de Windows 11 (David, 2026-11-11):
   izquierda ☰ (angosta) · logo · tenant · empresa | centro: buscador | derecha: avatar · servidor · versión · fecha.
   El bloque de sesión se «disuelve» (display:contents) para poder mandar el avatar a la derecha. */
.ns-sb-status--sesion .ns-shellv4__session { display: contents; }
.ns-sb-status--sesion .ns-sb-status__nav { order: 0; }
.ns-sb-status--sesion .ns-sb-status__brand { order: 1; }
.ns-sb-status--sesion .ns-shellv4__session > .ns-shellv4__ctxwrap { order: 2; }
.ns-sb-status--sesion .ns-sb-status__spacer { order: 3; }
.ns-sb-status--sesion .ns-shellv4__session > .ns-shellv4__ctxwrap:has(.ns-shellv4__userpill) { order: 4; }
.ns-sb-status--sesion .ns-sb-status__item { order: 5; }
.ns-sb-status--sesion .ns-sb-status__search { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: min(420px, 34vw); max-width: none; height: 28px; border-radius: 999px; }
.ns-sb-status--sesion .ns-sb-status__search .ns-shellv4__searchicon { color: var(--ns-marca-azul, #0071e3); }
@media (max-width: 1100px) { .ns-sb-status--sesion .ns-sb-status__item--wide { display: none; } }
@media (max-width: 760px) {
    .ns-sb-status--sesion .ns-sb-status__search { position: static; transform: none; width: 34px; order: 3; }
}

/* ══ FONDO BLANCO, SIN AZUL DE FONDO (David, 2026-11-11: «azul de fondo no me gusta, quiero el blanco») ══════
   El azul de marca queda SOLO en letra, íconos y líneas finas. Lo activo/elegido se marca con letra azul y una
   línea, no con relleno. Manda sobre lo de arriba (va al final a propósito). Solo tema claro. */
.ns-shellv4.ns-sb:not([data-theme="dark"]) .ns-shellv4__rail { background: #fff; border-right: 1px solid var(--ns-marca-cian-linea, #d3eef9); }
.ns-shellv4.ns-sb:not([data-theme="dark"]) .ns-shellv4__tab.is-active { background: #fff; border-color: transparent; box-shadow: inset 0 -2px 0 #0071e3; color: #0a4a91; }
.ns-shellv4.ns-sb:not([data-theme="dark"]) .ns-shellv4__item.is-active { background: #fff; box-shadow: inset 3px 0 0 #0071e3; color: #0a4a91; }
.ns-shellv4.ns-sb:not([data-theme="dark"]) .ns-shellv4__tabmasbtn:hover,
.ns-shellv4.ns-sb:not([data-theme="dark"]) .ns-shellv4__tabmasbtn[aria-expanded="true"],
.ns-shellv4.ns-sb:not([data-theme="dark"]) .ns-shellv4__tabmasmenu .ns-shellv4__distitem:hover:not(:disabled),
.ns-shellv4.ns-sb:not([data-theme="dark"]) .ns-shellv4__railtoggle:hover,
.ns-shellv4.ns-sb:not([data-theme="dark"]) .ns-shellv4__railatajos:hover,
.ns-sb-status--sesion .ns-sb-status__search:hover,
.ns-sb-status--sesion .ns-shellv4__ctx:hover,
.ns-sb-status--sesion .ns-shellv4__userpill:hover,
.ns-atajos__x:hover, .ns-enfoque-chip:hover { background: #fff; color: #0071e3; box-shadow: 0 0 0 1px #d3eef9; }
.ns-sb-status--sesion .ns-shellv4__kbd, .ns-shellv4__menukbd,
.ns-atajos__teclas kbd, .ns-palaccion__kbd { background: #fff; border: 1px solid #d3eef9; }
.ns-palaccion__ico { background: #fff; }
.ns-atajos__fondo { background: rgba(255, 255, 255, .6); }
