/* SAAVY · interfaz "Cristal" (noviembre 2026).
   Se activa poniendo class="glass-ui" en el <body>. Paneles de vidrio transparente con texto blanco sobre un fondo
   en escala de grises claro, desenfocado, con un destello amarillo arriba. El amarillo SAAVY es el único color fuerte.
   Nunca fondos verdes. Las páginas siguen usando sus clases de siempre (card, btn, text-slate-…): aquí se traducen a vidrio. */

:root {
    --g-ink: #ffffff;
    --g-soft: rgba(255, 255, 255, .86);
    --g-faint: rgba(255, 255, 255, .68);
    --g-line: rgba(255, 255, 255, .28);
    --g-line-soft: rgba(255, 255, 255, .16);
    --g-fill: rgba(255, 255, 255, .12);
    --g-fill-2: rgba(255, 255, 255, .2);
    --g-yellow: #FACC15;
    --g-ok: #e3ffef; --g-ok-bg: rgba(52, 199, 120, .34);
    --g-warn: #fff6c4; --g-warn-bg: rgba(250, 204, 21, .4);
    --g-bad: #ffe2e2; --g-bad-bg: rgba(255, 99, 99, .38);
    --g-shadow: rgba(30, 32, 36, .45);
}

/* ---------- Fondo: escala de grises clara, desenfocada, con destello amarillo ---------- */
body.glass-ui { color: var(--g-ink); background: #85888d !important; min-height: 100vh; position: relative; }
body.glass-ui::before {
    content: ''; position: fixed; inset: 0; z-index: -2;
    background:
        radial-gradient(620px 420px at 78% -4%, rgba(253, 222, 120, .55), transparent 70%),
        radial-gradient(360px 280px at 98% 20%, rgba(250, 204, 21, .2), transparent 70%),
        radial-gradient(760px 300px at 26% 6%, rgba(220, 222, 225, .32), transparent 70%),
        radial-gradient(560px 640px at -6% 80%, rgba(98, 101, 107, .7), transparent 70%),
        radial-gradient(500px 620px at 106% 66%, rgba(108, 111, 117, .65), transparent 70%),
        radial-gradient(620px 320px at 50% 108%, rgba(170, 173, 177, .45), transparent 70%),
        linear-gradient(180deg, #a4a7ab 0%, #92959a 45%, #81848a 100%);
}
.glass-ui .bg-white\/95, .glass-ui .bg-white\/90, .glass-ui .bg-white\/80, .glass-ui .bg-white\/70 { background: rgba(110, 113, 118, .38) !important;
    -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%); border-color: rgba(255, 255, 255, .22) !important; }
/* Pantallas completas que se abren encima (mesa en Mesero, reservas, etc.): el mismo fondo, no blanco */
.glass-ui .fixed.inset-0.bg-\[\#F7F7F8\], .glass-ui .fixed.inset-0.bg-white, .glass-ui .bg-\[\#F7F7F8\] { background:
        radial-gradient(620px 420px at 78% -4%, rgba(253, 222, 120, .55), transparent 70%),
        radial-gradient(360px 280px at 98% 20%, rgba(250, 204, 21, .2), transparent 70%),
        radial-gradient(760px 300px at 26% 6%, rgba(220, 222, 225, .32), transparent 70%),
        radial-gradient(560px 640px at -6% 80%, rgba(98, 101, 107, .7), transparent 70%),
        radial-gradient(500px 620px at 106% 66%, rgba(108, 111, 117, .65), transparent 70%),
        radial-gradient(620px 320px at 50% 108%, rgba(170, 173, 177, .45), transparent 70%),
        linear-gradient(180deg, #a4a7ab 0%, #92959a 45%, #81848a 100%), #85888d !important; }

body.glass-ui ::selection { background: rgba(250, 204, 21, .45); }

/* ---------- Vidrio transparente ---------- */
.glass-ui .ui-header, .glass-ui .card, .glass-ui .pt-card, .glass-ui .g-pane, .glass-ui .dcard, .glass-ui .acc-group, .glass-ui .join-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .05)) !important;
    -webkit-backdrop-filter: blur(28px) saturate(140%); backdrop-filter: blur(28px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, .3) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .36), 0 24px 50px -32px var(--g-shadow) !important;
    color: var(--g-ink);
}
.glass-ui .card, .glass-ui .pt-card, .glass-ui .dcard, .glass-ui .acc-group, .glass-ui .join-card { border-radius: 24px !important; }
.glass-ui .acc-row + .acc-row { border-color: var(--g-line-soft) !important; }
.glass-ui .acc-gh, .glass-ui .acc-note { color: var(--g-faint) !important; }
.glass-ui .top-link { color: var(--g-soft) !important; } .glass-ui .top-link .si { color: inherit !important; }
.glass-ui .top-link:hover { background: rgba(255, 255, 255, .14) !important; color: #fff !important; }
.glass-ui .pk-app:not([data-free]):hover, .glass-ui .prof-row:hover { background: rgba(255, 255, 255, .1) !important; }
.glass-ui .perm-sheet, .glass-ui .sheet { background: linear-gradient(145deg, rgba(128, 131, 136, .9), rgba(96, 99, 104, .86)) !important; color: #fff !important;
    -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); }
.glass-ui .seg, .glass-ui .seg2 { background: rgba(255, 255, 255, .14) !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28) !important; }
.glass-ui .seg button, .glass-ui .seg2 > button { color: var(--g-soft) !important; }
.glass-ui .seg button.on, .glass-ui .seg2 > button.on { background: rgba(255, 255, 255, .34) !important; color: #fff !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45) !important; }
.glass-ui .kbd { background: rgba(255, 255, 255, .25); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.glass-ui .ui-header { background: linear-gradient(180deg, rgba(60, 62, 66, .2), rgba(60, 62, 66, .1)) !important;
    border-width: 0 0 1px 0 !important; border-radius: 0 !important; box-shadow: 0 10px 30px -24px var(--g-shadow) !important; }
.glass-ui .big-title, .glass-ui h1, .glass-ui h2, .glass-ui h3 { color: var(--g-ink) !important; text-shadow: 0 1px 16px rgba(30, 32, 36, .28); }
.glass-ui main, .glass-ui .card { text-shadow: 0 1px 10px rgba(30, 32, 36, .16); }

/* ---------- Colores de texto y fondos de las clases de siempre ---------- */
.glass-ui .text-slate-950, .glass-ui .text-slate-900, .glass-ui .text-slate-800, .glass-ui .text-slate-700,
.glass-ui .text-\[\#111114\], .glass-ui .text-\[\#111\] { color: var(--g-ink) !important; }
.glass-ui .text-slate-600, .glass-ui .text-slate-500, .glass-ui .text-\[\#3c3c43\] { color: var(--g-soft) !important; }
.glass-ui .text-slate-400, .glass-ui .text-slate-300, .glass-ui .text-\[\#8e8e93\] { color: var(--g-faint) !important; }
.glass-ui .text-red-600, .glass-ui .text-red-500, .glass-ui .text-rose-500 { color: #ffd6d6 !important; }
.glass-ui .text-emerald-700, .glass-ui .text-emerald-600 { color: var(--g-ink) !important; }
.glass-ui .text-amber-600, .glass-ui .text-amber-700 { color: #fff0b0 !important; }
.glass-ui .hover\:text-slate-900:hover, .glass-ui .hover\:text-emerald-700:hover { color: var(--g-ink) !important; }
.glass-ui .bg-white { background: var(--g-fill) !important; }
.glass-ui .bg-slate-50, .glass-ui .bg-slate-100, .glass-ui .bg-\[\#fafafa\], .glass-ui .bg-\[\#f2f2f5\] { background: var(--g-fill) !important; }
.glass-ui .bg-yellow-50 { background: rgba(250, 204, 21, .2) !important; }
.glass-ui .bg-red-50, .glass-ui .hover\:bg-red-50:hover { background: rgba(255, 99, 99, .24) !important; }
.glass-ui .hover\:bg-slate-50:hover, .glass-ui .hover\:bg-yellow-50:hover, .glass-ui .hover\:bg-slate-200:hover { background: var(--g-fill-2) !important; }
.glass-ui .bg-slate-900, .glass-ui .bg-slate-800 { background: rgba(255, 255, 255, .9) !important; }
.glass-ui .border-slate-100, .glass-ui .border-slate-200, .glass-ui .divide-slate-100 > * + * { border-color: var(--g-line) !important; }
.glass-ui .shadow-sm { box-shadow: none !important; }
/* Gráficas del ERP: amarillo lo que entra, blanco lo que sale (sin verdes) */
.glass-ui #view-dashboard .bg-emerald-500, .glass-ui #view-dashboard .bg-emerald-600 { background: var(--g-yellow) !important; }
.glass-ui #view-dashboard .bg-slate-400, .glass-ui #view-dashboard .bg-slate-300 { background: rgba(255, 255, 255, .62) !important; }

/* ---------- GASTRO: plano del salón en vidrio; el color de la mesa sigue diciendo su estado ---------- */
.glass-ui .tbl-body { -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.glass-ui .tbl.free .tbl-body { background: linear-gradient(145deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, .12)) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), 0 12px 24px -16px var(--g-shadow); }
.glass-ui .tbl.free .tbl-name, .glass-ui .tbl.free .tbl-foot { color: #fff; }
.glass-ui .tbl-chair { background: rgba(255, 255, 255, .55); }
.glass-ui .tbl.occupied .tbl-body, .glass-ui .tbl.kitchen .tbl-body, .glass-ui .tbl.ready .tbl-body { text-shadow: none; }

/* ---------- Botones, pestañas y campos ---------- */
.glass-ui .btn-soft { background: var(--g-fill-2) !important; color: var(--g-ink) !important; border: 1px solid rgba(255, 255, 255, .36) !important; }
.glass-ui .btn-soft:hover:not(:disabled) { background: rgba(255, 255, 255, .36) !important; }
.glass-ui .btn-dark { background: rgba(255, 255, 255, .9) !important; color: #1d1b16 !important; text-shadow: none; }
.glass-ui .btn-primary { background: var(--g-yellow) !important; color: #1d1b16 !important; text-shadow: none; box-shadow: 0 12px 26px -14px rgba(234, 179, 8, .95) !important; }
.glass-ui .btn-tab { background: transparent !important; color: var(--g-soft) !important; border: 0 !important; }
.glass-ui .btn-tab.on { background: var(--g-fill-2) !important; color: var(--g-ink) !important; }
.glass-ui .ui-seg { background: rgba(255, 255, 255, .14) !important; border: 1px solid rgba(255, 255, 255, .3); }
.glass-ui .ui-seg > a, .glass-ui .ui-seg > button { color: var(--g-soft) !important; }
.glass-ui .ui-seg > .active, .glass-ui .ui-seg > .on, .glass-ui .ui-seg > [aria-current="page"] {
    background: rgba(255, 255, 255, .34) !important; color: var(--g-ink) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45) !important; }
.glass-ui input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), .glass-ui select, .glass-ui textarea {
    background: rgba(255, 255, 255, .18) !important; border: 1px solid rgba(255, 255, 255, .36) !important; color: var(--g-ink) !important; }
.glass-ui input::placeholder, .glass-ui textarea::placeholder { color: rgba(255, 255, 255, .72) !important; }
/* Autocompletar del celular (Chrome pinta el campo de blanco): queda gris con la letra blanca */
.glass-ui input:-webkit-autofill, .glass-ui input:-webkit-autofill:hover, .glass-ui input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff !important; caret-color: #fff; -webkit-box-shadow: 0 0 0 1000px rgba(120, 123, 128, .95) inset !important;
    transition: background-color 9999s ease-out 0s; }
.glass-ui .join-card label { color: var(--g-soft) !important; }
.glass-ui .join-card input { background: rgba(255, 255, 255, .18) !important; color: #fff !important; }

/* Al escribir, el campo sigue siendo de vidrio gris (no blanco) para que la letra blanca se vea */
.glass-ui input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):focus, .glass-ui select:focus, .glass-ui textarea:focus {
    background: rgba(255, 255, 255, .26) !important; color: #fff !important; border-color: rgba(250, 204, 21, .9) !important;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, .25) !important; outline: none !important; }
.glass-ui select option { color: #1d1b16; }
.glass-ui input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .85; }
.glass-ui .si { color: inherit; }

/* ---------- Ventanas (modales) ---------- */
.glass-ui div.fixed[id^="modal-"] { background: rgba(40, 42, 46, .28) !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.glass-ui div.fixed[id^="modal-"] > .card, .glass-ui div.fixed[id^="modal-"] > form {
    background: linear-gradient(145deg, rgba(128, 131, 136, .66), rgba(96, 99, 104, .56)) !important;
    -webkit-backdrop-filter: blur(30px) saturate(140%); backdrop-filter: blur(30px) saturate(140%); }

/* ---------- Tablas: la tabla de SAAVY (encabezado con el ícono de su tipo, líneas suaves, cálculos abajo) ---------- */
.glass-ui table.ledger th, .glass-ui .pt-table th {
    background: transparent !important; color: var(--g-soft) !important; font-weight: 500 !important; font-size: 12.5px !important;
    letter-spacing: 0 !important; border-bottom: 1px solid var(--g-line) !important; }
.glass-ui table.ledger td, .glass-ui .pt-table td { color: var(--g-ink); border-color: var(--g-line-soft) !important; }
.glass-ui table.ledger tbody tr + tr td { border-top: 1px solid var(--g-line-soft) !important; }
.glass-ui table.ledger th + th, .glass-ui table.ledger td + td,
.glass-ui .pt-table th + th, .glass-ui .pt-table td + td { border-left: 1px solid var(--g-line-soft); }
.glass-ui table.ledger tbody tr:hover td, .glass-ui .pt-table tbody tr:hover td { background: rgba(255, 255, 255, .08); }
.glass-ui .pt-table tfoot td { background: transparent !important; }
.th-ic { display: inline-flex; align-items: center; gap: 7px; }
.th-ic svg { width: 15px; height: 15px; opacity: .85; }
.calc { font-size: 10.5px; font-weight: 600; letter-spacing: .02em; color: var(--g-faint); margin-right: 4px; }
/* Estados en píldora con punto */
.st { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 7px; border-radius: 7px; font-size: 12.5px; font-weight: 500; white-space: nowrap; text-shadow: none; }
.st::before { content: ''; width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.st.ok { background: var(--g-ok-bg); color: var(--g-ok); }
.st.pend { background: var(--g-warn-bg); color: var(--g-warn); }
.st.bad { background: var(--g-bad-bg); color: var(--g-bad); }
.st.tag { background: rgba(255, 255, 255, .2); color: var(--g-ink); }
.st.tag::before { display: none; }

/* ---------- Proveedores y clientes ---------- */
.glass-ui .pt-row:hover { background: rgba(255, 255, 255, .12); }
.glass-ui .pt-row.on { background: rgba(255, 255, 255, .28); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .42); }
.glass-ui .pt-initial { background: rgba(255, 255, 255, .24); color: var(--g-ink); }
.glass-ui .pt-kpi + .pt-kpi { border-color: var(--g-line); }
.glass-ui .pt-pop { background: rgba(110, 113, 118, .86); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); border-color: rgba(255, 255, 255, .32); }
.glass-ui .pt-pop label:hover { background: rgba(255, 255, 255, .14) !important; }

/* Encabezado de la lista de proveedores y clientes, como el filtro de Excel: se toca la columna para ordenar */
.party-thead { display: grid; grid-template-columns: 1fr auto; margin: 0 4px 6px; border-top: 1px solid var(--g-line-soft, rgba(0,0,0,.08)); border-bottom: 1px solid var(--g-line-soft, rgba(0,0,0,.08)); }
.party-th { display: flex; align-items: center; gap: 6px; padding: 8px 10px; font-size: 12.5px; font-weight: 500; color: var(--g-soft, #6e6e73); }
.party-th + .party-th { border-left: 1px solid var(--g-line-soft, rgba(0,0,0,.08)); }
.party-th:hover { background: rgba(255, 255, 255, .08); }
.party-th.on { color: var(--g-ink, #111); font-weight: 600; }

/* ---------- Botón de las mini apps (triángulos) ---------- */
.glass-ui #saavy-apps-button { background: rgba(255, 255, 255, .24) !important; border-color: rgba(255, 255, 255, .45) !important; color: var(--g-yellow) !important; }
.glass-ui #saavy-apps-button:hover { background: rgba(255, 255, 255, .34) !important; color: var(--g-yellow) !important; }

/* ---------- Factura de compra (purchase-invoice.js) ---------- */
.glass-ui #pi-modal { background: rgba(40, 42, 46, .26); }
.glass-ui #pi-card { background: linear-gradient(145deg, rgba(134, 137, 142, .72), rgba(98, 101, 106, .62)) !important;
    -webkit-backdrop-filter: blur(30px) saturate(140%); backdrop-filter: blur(30px) saturate(140%); border: 1px solid rgba(255, 255, 255, .36); color: #fff; }
.glass-ui #pi-card .pi-field { background: rgba(255, 255, 255, .18) !important; border: 1px solid rgba(255, 255, 255, .32) !important; }
.glass-ui #pi-card .pi-label { color: var(--g-faint); }
.glass-ui #pi-card .pi-sheet { border-color: var(--g-line); }
.glass-ui #pi-card .pi-sheet th { background: rgba(255, 255, 255, .1); color: var(--g-soft); border-color: var(--g-line); }
.glass-ui #pi-card .pi-sheet td { border-color: var(--g-line-soft); }
.glass-ui #pi-card .pi-cell { color: #fff; background: transparent !important; border: 0 !important; }
.glass-ui #pi-card .pi-cell:focus { background: rgba(250, 204, 21, .2) !important; box-shadow: inset 0 0 0 2px var(--g-yellow); }
.glass-ui #pi-card .pi-seg { background: rgba(255, 255, 255, .14); }
.glass-ui #pi-card .pi-seg button { color: var(--g-soft); }
.glass-ui #pi-card .pi-seg button.on { background: rgba(255, 255, 255, .9); color: #1d1b16; }
.glass-ui #pi-card [data-pi="close"].w-9 { background: rgba(255, 255, 255, .2); color: #fff; }

/* ---------- Íconos de vidrio: las baldosas grises pasan a ser cristal transparente con el ícono blanco ---------- */
.glass-ui .si-tile, .glass-ui .g-ic {
    background: linear-gradient(145deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .12)) !important; color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 8px 18px -12px var(--g-shadow);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.glass-ui .si-tile.dark { background: rgba(255, 255, 255, .88) !important; color: #1d1b16 !important; }
.g-ic { display: inline-grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 15px; }
.g-ic > .si { width: 22px; height: 22px; }
.glass-ui .btn-soft:not([aria-label]) > .si:first-child, .glass-ui .btn-tab > .si:first-child {
    background: rgba(255, 255, 255, .26) !important; color: #fff !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.glass-ui .btn-tab.on > .si:first-child { background: rgba(255, 255, 255, .9) !important; color: #1d1b16 !important; }

/* ---------- Piezas compartidas de saavy-ui.css ---------- */
.glass-ui .side, .glass-ui .tabbar { background: linear-gradient(145deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .1)) !important;
    border-color: rgba(255, 255, 255, .38) !important; color: var(--g-ink) !important; }
.glass-ui .side-head, .glass-ui .nav-sub, .glass-ui .ui-gh { color: var(--g-faint) !important; }
.glass-ui .nav-row { color: var(--g-soft) !important; }
.glass-ui .nav-row:hover { background: rgba(255, 255, 255, .12) !important; }
.glass-ui .nav-row.on, .glass-ui .nav-row.active { background: rgba(255, 255, 255, .26) !important; color: var(--g-ink) !important; }
.glass-ui .nav-row > svg { background: rgba(255, 255, 255, .22) !important; color: #fff !important; }
.glass-ui .nav-row.on > svg, .glass-ui .nav-row.active > svg { background: rgba(255, 255, 255, .9) !important; color: #1d1b16 !important; }
.glass-ui .tab { color: var(--g-faint) !important; }
.glass-ui .tab.on { color: var(--g-ink) !important; }
.glass-ui .tab.on .ico { background: rgba(255, 255, 255, .26) !important; color: var(--g-yellow) !important; }
.glass-ui .ui-group { background: linear-gradient(145deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .09)) !important;
    border: 1px solid rgba(255, 255, 255, .4); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.glass-ui .text-\[\#007aff\] { color: #fff !important; text-decoration: underline; text-decoration-color: var(--g-yellow); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.glass-ui .bg-emerald-50, .glass-ui .bg-blue-50, .glass-ui .bg-amber-50, .glass-ui .bg-gray-50, .glass-ui .bg-gray-100 { background: var(--g-fill) !important; }
.glass-ui .border-emerald-200, .glass-ui .border-yellow-200, .glass-ui .border-amber-200, .glass-ui .border-red-200,
.glass-ui .border-gray-100, .glass-ui .border-gray-200 { border-color: var(--g-line) !important; }
.glass-ui .text-gray-900, .glass-ui .text-gray-800, .glass-ui .text-gray-700 { color: var(--g-ink) !important; }
.glass-ui .text-gray-600, .glass-ui .text-gray-500 { color: var(--g-soft) !important; }
.glass-ui .text-gray-400, .glass-ui .text-gray-300 { color: var(--g-faint) !important; }
.glass-ui .saavy-brand-text { text-shadow: 0 1px 10px rgba(60, 50, 0, .25) !important; }
.glass-ui .app-icon-3d { filter: drop-shadow(0 10px 18px rgba(30, 32, 36, .35)) drop-shadow(0 1px 2px rgba(30, 32, 36, .25)); }
/* Mosaico de vidrio que se ilumina al pasar el mouse */
.g-tile { transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.glass-ui .g-tile:hover { transform: translateY(-2px); background: linear-gradient(145deg, rgba(255, 255, 255, .36), rgba(255, 255, 255, .14)) !important; }
.glass-ui .g-tile:active { transform: scale(.98); }

@media (min-width: 640px) {
    .glass-ui .app-tile { background: linear-gradient(145deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .05)); border: 1px solid rgba(255, 255, 255, .42);
        -webkit-backdrop-filter: blur(28px) saturate(140%); backdrop-filter: blur(28px) saturate(140%); border-radius: 24px !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 24px 50px -32px var(--g-shadow); }
}

/* ---------- Lobby · administración del edificio (lobby_ph.html usa sus propias variables) ---------- */
.glass-ui { --card: rgba(255, 255, 255, .16); --side: transparent; --sep: rgba(255, 255, 255, .18);
    --ink: #fff; --ink2: rgba(255, 255, 255, .86); --mute: rgba(255, 255, 255, .68); --faint: rgba(255, 255, 255, .5);
    --fill: rgba(255, 255, 255, .16); --hover: rgba(255, 255, 255, .1); --press: rgba(255, 255, 255, .18); --ytext: #fde68a;
    --green: #c9f5d9; --red: #ffc9c9; }
.glass-ui.ph-ui .group, .glass-ui.ph-ui .widget {
    background: linear-gradient(145deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .05)) !important; border: 1px solid rgba(255, 255, 255, .42);
    -webkit-backdrop-filter: blur(28px) saturate(140%); backdrop-filter: blur(28px) saturate(140%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 24px 50px -32px var(--g-shadow); }
.glass-ui.ph-ui .group, .glass-ui.ph-ui .widget { border-radius: 22px; }
.glass-ui .bar { background: rgba(255, 255, 255, .1) !important; }
.glass-ui .drawer, .glass-ui .sheet, .glass-ui .sheet-head { background: linear-gradient(145deg, rgba(128, 131, 136, .92), rgba(96, 99, 104, .9)) !important; }
.glass-ui .t-soft { background: rgba(255, 255, 255, .22); color: #fff; }
.glass-ui .t-gray, .glass-ui .t-ink { background: rgba(255, 255, 255, .24); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.glass-ui .switch { background: rgba(255, 255, 255, .22); }
.glass-ui .switch:checked { background: var(--g-yellow); }
/* Lobby trae su propio .st con un <i> de punto: sin la píldora de la tabla */
.st:has(> i) { padding: 0; background: none; border-radius: 0; }
.st:has(> i)::before { display: none; }

/* ---------- Página principal (index.html) ---------- */
.glass-ui .bg-slate-900.text-white, .glass-ui .bg-slate-950.text-white, .glass-ui .bg-slate-950 {
    background: rgba(24, 26, 30, .72) !important; color: #fff !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 12px 26px -14px rgba(0, 0, 0, .6) !important; }
.glass-ui .hover\:bg-slate-800:hover { background: rgba(24, 26, 30, .86) !important; }
.glass-ui .aspect-video.bg-slate-900, .glass-ui .bg-slate-900\/90 { background: #1c1d20 !important; }
.glass-ui .modal-overlay > div.bg-white, .glass-ui .dropdown-menu {
    background: linear-gradient(145deg, rgba(128, 131, 136, .92), rgba(96, 99, 104, .88)) !important; border-color: rgba(255, 255, 255, .3) !important;
    -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); color: #fff; }
.glass-ui .bg-\[\#f5f5f7\] { background: var(--g-fill) !important; }
.glass-ui .text-slate-950 { color: var(--g-ink) !important; }
.glass-ui .bg-\[\#FACC15\].text-slate-950, .glass-ui .bg-\[\#FACC15\] .text-slate-950, .glass-ui .bg-yellow-400.text-slate-950,
.glass-ui .bg-\[\#FACC15\] { color: #1d1b16 !important; text-shadow: none; }
.glass-ui .mini-tile.is-open, .glass-ui .m-plan { background: var(--g-fill-2) !important; border-color: rgba(255, 255, 255, .4) !important; }
.glass-ui .m-seg button.on { background: rgba(255, 255, 255, .34) !important; color: #fff !important; }
.glass-ui footer.bg-white { background: transparent !important; }
.glass-ui .text-emerald-800, .glass-ui .text-emerald-900, .glass-ui .text-green-700, .glass-ui .text-green-800, .glass-ui .text-sky-800 { color: #fff !important; }

/* ---------- Vidrio "invisible" (página principal): casi sin paneles, bordes apenas insinuados, sin sombras ---------- */
.glass-thin header, .glass-thin aside, .glass-thin .bg-white\/95 { background: transparent !important; border-color: transparent !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: none !important; }
.glass-thin header.is-scrolled, .glass-thin header:has(+ *) { -webkit-backdrop-filter: blur(18px) !important; backdrop-filter: blur(18px) !important; }
.glass-thin .bg-white, .glass-thin .rounded-\[24px\], .glass-thin .mini-tile.is-open, .glass-thin .m-plan {
    background: rgba(255, 255, 255, .05) !important; border: 1px solid rgba(255, 255, 255, .13) !important; box-shadow: none !important; }
.glass-thin .border-2.border-\[\#FACC15\] { border: 1px solid rgba(250, 204, 21, .55) !important; }
.glass-thin .bg-slate-50, .glass-thin .bg-\[\#f5f5f7\], .glass-thin .border-slate-200 { background: transparent !important; border-color: rgba(255, 255, 255, .16) !important; box-shadow: none !important; }
.glass-thin .bg-slate-950, .glass-thin .bg-slate-950.text-white, .glass-thin .bg-slate-900.text-white { background: rgba(255, 255, 255, .1) !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28) !important; }
.glass-thin .hover\:bg-slate-800:hover { background: rgba(255, 255, 255, .18) !important; }
.glass-thin .bg-\[\#FACC15\]:not(button):not(a) { background: transparent !important; color: var(--g-yellow) !important; border-bottom: 1px solid rgba(250, 204, 21, .3); }
.glass-thin .modal-overlay > div.bg-white, .glass-thin .dropdown-menu { background: rgba(110, 113, 118, .55) !important; border-color: rgba(255, 255, 255, .18) !important; }
.glass-thin input:not([type="checkbox"]):not([type="radio"]) { background: rgba(255, 255, 255, .08) !important; border-color: rgba(255, 255, 255, .18) !important; }

html:has(body.glass-thin), body.glass-thin { overflow-x: clip; }   /* nada se sale de lado en el celular */
/* Ingrediente al que le falta información (mínimo, máximo, precio...): punto azul con cuántos datos faltan */
.info-dot { position: absolute; top: 10px; right: 10px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #3B82F6; color: #fff;
    font-size: 11px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 3px rgba(59, 130, 246, .25); text-shadow: none; }

/* Casilla que falta llenar (en la ventana del ingrediente): borde azul, como el punto de la tarjeta */
body.glass-ui input.need-info:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), .need-info { border: 2px solid #3B82F6 !important; background: rgba(59, 130, 246, .14) !important; box-shadow: 0 0 0 3px rgba(59, 130, 246, .22) !important; }

/* Plato sin ingredientes en Editar menú: naranja, porque al venderlo no descuenta inventario */
.no-recipe { box-shadow: inset 4px 0 0 #f97316; }
.no-recipe-tag { font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #f97316; color: #fff; white-space: nowrap; text-shadow: none; }
.no-recipe-banner { margin-bottom: 16px; padding: 10px 14px; border-radius: 16px; background: rgba(249, 115, 22, .22); border: 1px solid rgba(251, 146, 60, .7); font-size: 12px; color: #fff; }

/* Opción elegida en una lista de botones (de dónde llegó el domicilio...): borde amarillo para que se note */
.pick-on, .glass-ui .btn.pick-on { border: 2px solid #FACC15 !important; box-shadow: 0 0 0 3px rgba(250, 204, 21, .25), 0 8px 20px -12px rgba(234, 179, 8, .9) !important; }
.glass-ui .btn.pick-on { background: rgba(250, 204, 21, .22) !important; color: #fff !important; }

/* Tarjetas con tinte de estado (fila, todos los pedidos, avisos): vidrio teñido, la letra blanca se sigue leyendo */
.glass-ui .bg-sky-50 { background: rgba(56, 189, 248, .2) !important; }
.glass-ui .bg-emerald-50 { background: rgba(52, 211, 153, .2) !important; }
.glass-ui .bg-orange-50 { background: rgba(251, 146, 60, .2) !important; }
.glass-ui .bg-violet-50 { background: rgba(167, 139, 250, .2) !important; }
.glass-ui .text-orange-600, .glass-ui .text-orange-700 { color: #fed7aa !important; }
.glass-ui .text-sky-900, .glass-ui .text-emerald-900, .glass-ui .text-violet-900 { color: #fff !important; }

/* Etiquetas de color claro (estado del plato, opciones, reservas): letra oscura, si no el texto blanco no se lee */
.glass-ui .bg-yellow-100, .glass-ui .bg-yellow-200, .glass-ui .bg-amber-100, .glass-ui .bg-sky-100, .glass-ui .bg-blue-100,
.glass-ui .bg-emerald-100, .glass-ui .bg-green-100, .glass-ui .bg-red-100, .glass-ui .bg-rose-100, .glass-ui .bg-orange-100, .glass-ui .bg-violet-100,
.glass-ui .bg-yellow-100 *, .glass-ui .bg-amber-100 *, .glass-ui .bg-sky-100 *, .glass-ui .bg-emerald-100 *, .glass-ui .bg-red-100 * { color: #1d1b16 !important; text-shadow: none !important; }
.glass-ui .bg-red-100, .glass-ui .bg-red-100 * { color: #9b1c1c !important; }

#saavy-3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }

/* Domicilios y para llevar: naranja en cocina (y en la lista de pedidos del mesero) */
.to-go { border-color: #fb923c !important; box-shadow: 0 0 0 2px rgba(251, 146, 60, .35), 0 18px 40px -26px rgba(234, 88, 12, .8) !important; }
.to-go-band { margin: -4px -4px 12px; padding: 6px 12px; border-radius: 14px; background: #f97316; color: #fff; font-size: 12px; font-weight: 800;
    display: flex; align-items: center; gap: 6px; text-shadow: none; }
.to-go-dot { display: inline-block; padding: 1px 7px; border-radius: 999px; background: #f97316; color: #fff; font-size: 10px; font-weight: 800; vertical-align: 1px; text-shadow: none; }

/* ---------- Celular: pestañas con solo el ícono; la elegida muestra también su nombre ---------- */
@media (max-width: 639px) {
    .glass-ui #nav > button:not(.active) > span { display: none; }
    .glass-ui #nav > button { padding: 7px 11px !important; }
    .glass-ui #nav > button svg { width: 18px !important; height: 18px !important; }
}

/* ERP: filas de cuentas en los reportes que abren el libro de la cuenta */
.acct-row { cursor: pointer; }
.acct-row:hover td { background: rgba(250, 204, 21, .12); }
.acct-row:hover td:nth-child(2) { text-decoration: underline; text-underline-offset: 3px; }

/* Botón elegido (btn-dark) en cristal: al pasar el mouse sigue claro y legible, no se pone negro */
.glass-ui .btn-dark:hover:not(:disabled) { background: #fff !important; color: #1d1b16 !important; }

/* =====================================================================================================
   ESTILOS (skins): cada persona elige en su equipo entre gris (el vidrio de siempre), negro y blanco.
   Lo guarda la cookie saavy_skin y el servidor pone la clase en el <body> (main.py · skin_class).
   ===================================================================================================== */

/* ---------- Negro: el mismo vidrio, sobre un fondo casi negro con el destello amarillo ---------- */
body.glass-ui.skin-negro { background: #0e0f11 !important; --g-shadow: rgba(0, 0, 0, .8); }
body.glass-ui.skin-negro::before {
    background:
        radial-gradient(620px 420px at 78% -4%, rgba(250, 204, 21, .22), transparent 70%),
        radial-gradient(360px 280px at 98% 20%, rgba(250, 204, 21, .08), transparent 70%),
        radial-gradient(760px 300px at 26% 6%, rgba(120, 124, 130, .16), transparent 70%),
        radial-gradient(560px 640px at -6% 80%, rgba(40, 42, 46, .9), transparent 70%),
        radial-gradient(500px 620px at 106% 66%, rgba(48, 50, 55, .8), transparent 70%),
        linear-gradient(180deg, #1b1c1f 0%, #121315 45%, #0a0a0c 100%);
}
.skin-negro .fixed.inset-0.bg-\[\#F7F7F8\], .skin-negro .fixed.inset-0.bg-white, .skin-negro .bg-\[\#F7F7F8\] { background:
        radial-gradient(620px 420px at 78% -4%, rgba(250, 204, 21, .2), transparent 70%),
        linear-gradient(180deg, #1b1c1f 0%, #121315 45%, #0a0a0c 100%), #0e0f11 !important; }
.skin-negro .bg-white\/95, .skin-negro .bg-white\/90, .skin-negro .bg-white\/80, .skin-negro .bg-white\/70 { background: rgba(28, 29, 32, .6) !important; }
.skin-negro .ui-header { background: linear-gradient(180deg, rgba(10, 10, 12, .55), rgba(10, 10, 12, .35)) !important; }
.skin-negro .card, .skin-negro .pt-card, .skin-negro .g-pane, .skin-negro .dcard, .skin-negro .acc-group, .skin-negro .join-card,
.skin-negro .side, .skin-negro .tabbar, .skin-negro .ui-group {
    background: linear-gradient(145deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)) !important; border-color: rgba(255, 255, 255, .14) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 24px 50px -32px rgba(0, 0, 0, .9) !important; }
.skin-negro div.fixed[id^="modal-"] { background: rgba(0, 0, 0, .5) !important; }
.skin-negro div.fixed[id^="modal-"] > .card, .skin-negro div.fixed[id^="modal-"] > form, .skin-negro #pi-card,
.skin-negro .perm-sheet, .skin-negro .sheet, .skin-negro .drawer, .skin-negro .sheet-head, .skin-negro .modal-overlay > div.bg-white,
.skin-negro .dropdown-menu, .skin-negro .pt-pop {
    background: linear-gradient(145deg, rgba(40, 41, 45, .94), rgba(24, 25, 28, .94)) !important; border-color: rgba(255, 255, 255, .14) !important; }
.skin-negro input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), .skin-negro select, .skin-negro textarea {
    background: rgba(255, 255, 255, .08) !important; border-color: rgba(255, 255, 255, .18) !important; }
.skin-negro input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #222327 inset !important; }
.skin-negro .glass-thin .bg-white, .glass-thin.skin-negro .bg-white { background: rgba(255, 255, 255, .04) !important; }

/* ---------- Blanco: claro tipo Ajustes del iPhone (las páginas usan sus colores de siempre, sin vidrio) ---------- */
body.skin-blanco {
    --g-ink: #111114; --g-soft: #3c3c43; --g-faint: #8e8e93; --g-line: rgba(60, 60, 67, .14); --g-line-soft: rgba(60, 60, 67, .08);
    --g-fill: rgba(118, 118, 128, .08); --g-fill-2: rgba(118, 118, 128, .14); --g-shadow: rgba(15, 23, 42, .12);
    --g-ok: #146c43; --g-ok-bg: rgba(52, 199, 120, .16); --g-warn: #8a5a00; --g-warn-bg: rgba(250, 204, 21, .26);
    --g-bad: #b42318; --g-bad-bg: rgba(255, 99, 99, .16);
    color: #111114; background: #f2f2f7 !important; min-height: 100vh; position: relative;
}
body.skin-blanco::before { content: ''; position: fixed; inset: 0; z-index: -2;
    background: radial-gradient(620px 380px at 80% -6%, rgba(250, 204, 21, .16), transparent 70%), #f2f2f7; }
.skin-blanco .card, .skin-blanco .pt-card, .skin-blanco .g-pane, .skin-blanco .dcard, .skin-blanco .acc-group, .skin-blanco .join-card {
    background: #fff; border: 0; border-radius: 18px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .05); }
.skin-blanco .ui-header { background: rgba(255, 255, 255, .82) !important; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(60, 60, 67, .1); }
.skin-blanco .si-tile, .skin-blanco .g-ic { background: #8e8e93; color: #fff; }
.skin-blanco .g-ic { border-radius: 13px; }
.skin-blanco .si-tile.dark { background: #1c1c1e; color: #fff; }
.skin-blanco .st.tag { background: rgba(118, 118, 128, .12); color: #3c3c43; }
.skin-blanco table.ledger th, .skin-blanco .pt-table th { color: #6e6e73; }
.skin-blanco div.fixed[id^="modal-"] > .card, .skin-blanco div.fixed[id^="modal-"] > form { background: #fff; }

/* ---------- Selector de estilo (Mi cuenta y el inicio de las mini apps) ---------- */
.skin-pick { display: inline-flex; gap: 6px; padding: 4px; border-radius: 999px; background: rgba(118, 118, 128, .14); }
.skin-pick button { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 7px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: inherit; }
.skin-pick button.on { background: rgba(255, 255, 255, .9); color: #1d1b16; box-shadow: 0 1px 3px rgba(0, 0, 0, .18); text-shadow: none; }
.skin-pick i { width: 18px; height: 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.skin-pick i.gris { background: linear-gradient(145deg, #b4b7bb, #7d8086); }
.skin-pick i.blanco { background: #f5f5f7; }
.skin-pick i.negro { background: linear-gradient(145deg, #2a2b2f, #0b0b0d); }/* Blanco sin verdes: los avisos y textos que el diseño claro pintaba en verde pasan a amarillo suave y tinta */
.skin-blanco #view-dashboard .bg-emerald-500, .skin-blanco #view-dashboard .bg-emerald-600 { background: #FACC15 !important; }.skin-blanco .card .bg-white\/40, .skin-blanco .card .bg-white\/30 { background: #f2f2f7 !important; }
/* Página principal: la tarjeta de cada mini app con su pantallazo, del mismo vidrio que el resto (no blanca) */
.glass-ui .show-card { background: rgba(255, 255, 255, .05) !important; border-color: rgba(255, 255, 255, .18) !important;
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.glass-ui .show-card.is-hover, .glass-ui .show-card.is-playing { border-color: rgba(255, 255, 255, .32) !important; box-shadow: 0 28px 50px -24px rgba(0, 0, 0, .35); }
.glass-ui .show-role { color: var(--g-faint); }.glass-ui .show-card .bg-emerald-500 { background: var(--g-yellow) !important; }

/* =====================================================================================================
   LAVADO DE MARCA (dic 2026): botones y tablas.
   Blanco (Aluminio): botones de esquinas casi rectas; el principal en amarillo suave con borde dorado, los demás en gris.
   Negro (Neón corporativo): el principal con borde de neón; los demás sin relleno, solo una línea abajo.
   Tablas tipo Google Sheets: cuadrícula, encabezado gris, filas compactas, números alineados.
   Los botones grandes para el dedo (tablet del operario, .big/.mid) no se tocan.
   ===================================================================================================== */
:root { --sv-y: #FACC15; }

/* ---------- Forma común (blanco y negro) ---------- */
body.skin-blanco .btn:not(.big):not(.mid):not(.ord-chip), body.glass-ui.skin-negro .btn:not(.big):not(.mid):not(.ord-chip) {
    border-radius: 4px !important; letter-spacing: 0; font-weight: 500 !important; text-shadow: none !important; }
/* Los pequeños de barras, tablas y filtros: 28 px de alto */
body.skin-blanco .btn.text-xs:not(.big):not(.mid), body.glass-ui.skin-negro .btn.text-xs:not(.big):not(.mid) {
    min-height: 28px; padding-top: 0 !important; padding-bottom: 0 !important; display: inline-flex; align-items: center; gap: 6px; font-size: 13px !important; }
/* Sin la baldosa detrás del ícono: el ícono va suelto, del color del texto */
body.skin-blanco .btn-soft > .si:first-child, body.skin-blanco .btn-tab > .si:first-child,
body.glass-ui.skin-negro .btn-soft > .si:first-child, body.glass-ui.skin-negro .btn-tab > .si:first-child {
    background: none !important; color: inherit !important; box-shadow: none !important; padding: 0 !important; }
/* Un solo tamaño de ícono en toda la app: el de las pestañas de GASTRO (15 px) */
body.skin-blanco .btn-soft > .si:first-child, body.skin-blanco .btn-tab > .si:first-child,
body.glass-ui.skin-negro .btn-soft > .si:first-child, body.glass-ui.skin-negro .btn-tab > .si:first-child,
body.skin-blanco .btn .si, body.glass-ui.skin-negro .btn .si {
    width: 15px !important; height: 15px !important; vertical-align: -3px !important; stroke-width: 2 !important; }
body.skin-blanco .btn-soft > .si:first-child, body.skin-blanco .btn-tab > .si:first-child,
body.glass-ui.skin-negro .btn-soft > .si:first-child, body.glass-ui.skin-negro .btn-tab > .si:first-child { margin-right: .45em !important; }
body.skin-blanco .btn-soft:has(> .si:first-child), body.skin-blanco .btn-tab:has(> .si:first-child),
body.glass-ui.skin-negro .btn-soft:has(> .si:first-child), body.glass-ui.skin-negro .btn-tab:has(> .si:first-child) { padding-left: .75rem !important; }

/* ---------- BLANCO · opción A: grises rellenos ---------- */
body.skin-blanco .btn-primary { background: rgba(250, 204, 21, .16) !important; color: #6b4e00 !important; border: 1px solid #e3b40c !important; font-weight: 600 !important; box-shadow: none !important; }
body.skin-blanco .btn-primary:hover:not(:disabled) { background: rgba(250, 204, 21, .3) !important; }
body.skin-blanco .btn-soft { background: rgba(118, 118, 128, .13) !important; color: #111114 !important; border: 0 !important; box-shadow: none !important; }
body.skin-blanco .btn-soft:hover:not(:disabled) { background: rgba(118, 118, 128, .2) !important; }
body.skin-blanco .btn-tab { color: #6e6e73 !important; }
body.skin-blanco .btn-tab { box-shadow: none !important; }
body.skin-blanco .btn-tab.on { background: rgba(118, 118, 128, .13) !important; color: #111114 !important; font-weight: 600 !important; }
body.skin-blanco .btn-dark { background: #111114 !important; color: #fff !important; }

/* ---------- NEGRO · Neón corporativo ---------- */
body.glass-ui.skin-negro { background: #08080B !important; }
/* Fondo: negro profundo, sin cuadrícula; solo el destello amarillo suave en la esquina, como el del blanco */
body.glass-ui.skin-negro::before {
    background:
        radial-gradient(620px 420px at 96% -8%, rgba(250, 204, 21, .13), transparent 70%),
        radial-gradient(900px 600px at 10% 110%, rgba(255, 255, 255, .025), transparent 70%),
        #08080B;
    -webkit-mask-image: none; mask-image: none; }
/* Tarjetas en grafito con borde neutro: el amarillo queda para lo que se toca o está elegido */
body.glass-ui.skin-negro .card, body.glass-ui.skin-negro .pt-card, body.glass-ui.skin-negro .g-pane, body.glass-ui.skin-negro .dcard,
body.glass-ui.skin-negro .acc-group, body.glass-ui.skin-negro .ui-group {
    background: #0F0F13 !important; border: 1px solid #1F1F26 !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 18px 40px -28px rgba(0, 0, 0, .9) !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
body.glass-ui.skin-negro .ui-header { background: rgba(8, 8, 11, .86) !important; border-bottom: 1px solid #1A1A20 !important; }
/* Botones · opción B: el principal con borde de neón; los secundarios sin relleno, solo una línea abajo */
body.glass-ui.skin-negro .btn-primary { background: rgba(250, 204, 21, .1) !important; color: var(--sv-y) !important; border: 1px solid rgba(250, 204, 21, .65) !important;
    font-weight: 600 !important; box-shadow: none !important; }
body.glass-ui.skin-negro .btn-primary:hover:not(:disabled) { background: rgba(250, 204, 21, .18) !important; }
body.glass-ui.skin-negro .btn-soft { background: transparent !important; color: #e5e5e5 !important; border: 0 !important;
    box-shadow: inset 0 -1.5px 0 #3a3a42 !important; border-radius: 4px 4px 0 0 !important; }
body.glass-ui.skin-negro .btn-soft:hover:not(:disabled) { background: rgba(255, 255, 255, .05) !important; box-shadow: inset 0 -1.5px 0 rgba(250, 204, 21, .6) !important; }
body.glass-ui.skin-negro .btn-soft[aria-label] { background: #1a1a1f !important; box-shadow: none !important; border-radius: 4px !important; }   /* solo ícono: gris */
body.glass-ui.skin-negro .btn-tab { color: #8a8a93 !important; background: transparent !important; box-shadow: none !important; }
body.glass-ui.skin-negro .btn-tab.on { color: var(--sv-y) !important; background: rgba(250, 204, 21, .08) !important; }
body.glass-ui.skin-negro .btn-dark { background: #F2F2F2 !important; color: #0a0a0a !important; box-shadow: none !important; }
body.skin-blanco .btn-dark { box-shadow: none !important; }

/* ---------- Tablas tipo Google Sheets (ERP, proveedores, inventario, Industrial) ---------- */
body.skin-blanco table.ledger, body.skin-blanco .pt-table, body.skin-blanco table.tbl,
body.glass-ui.skin-negro table.ledger, body.glass-ui.skin-negro .pt-table, body.glass-ui.skin-negro table.tbl { border-collapse: collapse !important; font-variant-numeric: tabular-nums; }
body.skin-blanco table.ledger th, body.skin-blanco .pt-table th, body.skin-blanco table.tbl th {
    background: #f8f9fa !important; color: #5f6368 !important; font-weight: 500 !important; font-size: 12.5px !important; letter-spacing: 0 !important;
    border: 1px solid #e3e3e8 !important; padding: 6px 10px !important; height: 30px; }
body.skin-blanco table.ledger td, body.skin-blanco .pt-table td, body.skin-blanco table.tbl td {
    border: 1px solid #ececf0 !important; padding: 5px 10px !important; height: 30px; color: #202124; }
body.skin-blanco table.ledger tbody tr:hover td, body.skin-blanco .pt-table tbody tr:hover td, body.skin-blanco table.tbl tbody tr:hover td { background: rgba(250, 204, 21, .1) !important; }
body.skin-blanco table.ledger tfoot td, body.skin-blanco .pt-table tfoot td { background: #f8f9fa !important; font-weight: 600; }
body.glass-ui.skin-negro table.ledger th, body.glass-ui.skin-negro .pt-table th, body.glass-ui.skin-negro table.tbl th {
    background: #121216 !important; color: #8a8a93 !important; font: 500 11.5px 'Geist Mono', ui-monospace, monospace !important; letter-spacing: .04em !important;
    text-transform: uppercase; border: 1px solid #222228 !important; padding: 6px 10px !important; height: 30px; }
body.glass-ui.skin-negro table.ledger td, body.glass-ui.skin-negro .pt-table td, body.glass-ui.skin-negro table.tbl td {
    border: 1px solid #1c1c22 !important; padding: 5px 10px !important; height: 30px; color: #e5e5e5; }
body.glass-ui.skin-negro table.ledger tbody tr:hover td, body.glass-ui.skin-negro .pt-table tbody tr:hover td, body.glass-ui.skin-negro table.tbl tbody tr:hover td { background: rgba(250, 204, 21, .06) !important; }
body.glass-ui.skin-negro table.ledger tfoot td, body.glass-ui.skin-negro .pt-table tfoot td { background: #121216 !important; color: var(--sv-y); font-weight: 600; }
/* ---------- Menú lateral estilo TikTok: íconos de línea sueltos (sin baldosa), letra grande y gruesa,
   la sección elegida en color (dorado en blanco, amarillo neón en negro) ---------- */
body.skin-blanco .side, body.glass-ui.skin-negro .side { background: transparent !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.skin-blanco .side { border-right: 1px solid rgba(60, 60, 67, .08) !important; }
body.glass-ui.skin-negro .side { border-right: 1px solid #1A1A20 !important; }
body.skin-blanco .nav-row, body.glass-ui.skin-negro .nav-row {
    gap: 14px; padding: 10px 12px; border-radius: 8px; font-size: 16px !important; font-weight: 600 !important; letter-spacing: -.01em; }
body.skin-blanco .nav-row { color: #111114 !important; }
body.glass-ui.skin-negro .nav-row { color: #F2F2F2 !important; }
body.skin-blanco .nav-row > svg, body.glass-ui.skin-negro .nav-row > svg {
    width: 15px !important; height: 15px !important; padding: 0 !important; border-radius: 0 !important; background: none !important; color: inherit !important;
    box-shadow: none !important; stroke-width: 2 !important; }
body.skin-blanco .nav-row:hover { background: rgba(118, 118, 128, .08) !important; }
body.glass-ui.skin-negro .nav-row:hover { background: rgba(255, 255, 255, .05) !important; }
body.skin-blanco .nav-row.on, body.skin-blanco .nav-row.active { background: transparent !important; color: #a16207 !important; font-weight: 700 !important; }
body.glass-ui.skin-negro .nav-row.on, body.glass-ui.skin-negro .nav-row.active { background: transparent !important; color: var(--sv-y) !important; font-weight: 700 !important;
    text-shadow: none !important; }
body.skin-blanco .nav-row.on > svg, body.skin-blanco .nav-row.active > svg { background: none !important; color: #a16207 !important; stroke-width: 2.4 !important; }
body.glass-ui.skin-negro .nav-row.on > svg, body.glass-ui.skin-negro .nav-row.active > svg { background: none !important; color: var(--sv-y) !important; stroke-width: 2.4 !important; }
body.skin-blanco .nav-row .caret, body.glass-ui.skin-negro .nav-row .caret { display: none !important; }
body.skin-blanco .side-head { font-size: 12.5px; color: #8e8e93 !important; }
/* ---------- Detalles del navegador con la marca (blanco y negro): selección, cursor, foco y barras de desplazamiento ---------- */
body.skin-blanco ::selection { background: rgba(250, 204, 21, .45); color: #111114; }
body.glass-ui.skin-negro ::selection { background: rgba(250, 204, 21, .35); color: #fff; }
body.skin-blanco input, body.skin-blanco textarea, body.glass-ui.skin-negro input, body.glass-ui.skin-negro textarea { caret-color: #EAB308; }
body.skin-blanco :focus-visible { outline: 2px solid #EAB308 !important; outline-offset: 2px; }
body.glass-ui.skin-negro :focus-visible { outline: 2px solid var(--sv-y) !important; outline-offset: 2px; }
body.glass-ui.skin-negro { scrollbar-color: #2A2A32 #08080B; }
body.glass-ui.skin-negro ::-webkit-scrollbar { width: 10px; height: 10px; }
body.glass-ui.skin-negro ::-webkit-scrollbar-track { background: #08080B; }
body.glass-ui.skin-negro ::-webkit-scrollbar-thumb { background: #2A2A32; border-radius: 10px; border: 2px solid #08080B; }
body.glass-ui.skin-negro ::-webkit-scrollbar-thumb:hover { background: #4A4430; }
body.skin-blanco { scrollbar-color: #C7C7CC transparent; }
body.glass-ui.skin-negro input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):focus,
body.glass-ui.skin-negro select:focus, body.glass-ui.skin-negro textarea:focus { border-color: rgba(250, 204, 21, .7) !important; box-shadow: none !important; background: #121217 !important; }
/* Verde permitido otra vez (dic 2026): avisos buenos en verde tenue sobre el negro */
body.glass-ui.skin-negro .bg-emerald-50, body.glass-ui.skin-negro .bg-green-50 { background: rgba(52, 211, 153, .08) !important; }
body.glass-ui.skin-negro .border-emerald-200, body.glass-ui.skin-negro .border-green-200 { border-color: rgba(52, 211, 153, .32) !important; }
body.glass-ui.skin-negro .text-emerald-600, body.glass-ui.skin-negro .text-emerald-700, body.glass-ui.skin-negro .text-emerald-800,
body.glass-ui.skin-negro .text-emerald-900, body.glass-ui.skin-negro .text-green-700, body.glass-ui.skin-negro .text-green-800 { color: #34D399 !important; }

/* =====================================================================================================
   FORMAS RECTAS (opción 1 "Recto", dic 2026) · blanco y negro
   Nada de óvalos ni burbujas: tarjetas con esquinas de 6, chips, pestañas y campos de 4, puntos de color cuadrados,
   barras segmentadas en vez de tortas y fotos cuadradas con su barrita debajo en vez de anillos.
   Los círculos de verdad (fotos de perfil, interruptores, puntos de mesa) se quedan redondos.
   ===================================================================================================== */
body.skin-blanco .card, body.skin-blanco .pt-card, body.skin-blanco .dcard, body.skin-blanco .acc-group, body.skin-blanco .join-card,
body.skin-blanco .ui-group, body.skin-blanco .g-pane,
body.glass-ui.skin-negro .card, body.glass-ui.skin-negro .pt-card, body.glass-ui.skin-negro .dcard, body.glass-ui.skin-negro .acc-group,
body.glass-ui.skin-negro .join-card, body.glass-ui.skin-negro .ui-group, body.glass-ui.skin-negro .g-pane { border-radius: 6px !important; }
body.skin-blanco .rounded-xl, body.skin-blanco .rounded-2xl, body.skin-blanco .rounded-3xl, body.skin-blanco .rounded-\[24px\], body.skin-blanco .rounded-\[22px\],
body.glass-ui.skin-negro .rounded-xl, body.glass-ui.skin-negro .rounded-2xl, body.glass-ui.skin-negro .rounded-3xl,
body.glass-ui.skin-negro .rounded-\[24px\], body.glass-ui.skin-negro .rounded-\[22px\] { border-radius: 6px !important; }
body.skin-blanco .rounded-lg, body.glass-ui.skin-negro .rounded-lg { border-radius: 4px !important; }
body.skin-blanco .rounded-t-3xl, body.skin-blanco .rounded-t-2xl, body.glass-ui.skin-negro .rounded-t-3xl, body.glass-ui.skin-negro .rounded-t-2xl { border-radius: 10px 10px 0 0 !important; }
/* Píldoras con texto (llevan relleno a los lados) → rectángulo de esquinas 4 */
body.skin-blanco .rounded-full[class*="px-"], body.glass-ui.skin-negro .rounded-full[class*="px-"],
body.skin-blanco .app-badge, body.glass-ui.skin-negro .app-badge, body.skin-blanco .no-recipe-tag, body.glass-ui.skin-negro .no-recipe-tag,
body.skin-blanco .to-go-dot, body.glass-ui.skin-negro .to-go-dot, body.skin-blanco .info-dot, body.glass-ui.skin-negro .info-dot { border-radius: 4px !important; }
/* Barritas y puntos de color → casi rectos */
body.skin-blanco .rounded-full.h-1, body.skin-blanco .rounded-full.h-1\.5, body.skin-blanco .rounded-full.h-2, body.skin-blanco .rounded-full.h-2\.5, body.skin-blanco .rounded-full.h-3,
body.glass-ui.skin-negro .rounded-full.h-1, body.glass-ui.skin-negro .rounded-full.h-1\.5, body.glass-ui.skin-negro .rounded-full.h-2,
body.glass-ui.skin-negro .rounded-full.h-2\.5, body.glass-ui.skin-negro .rounded-full.h-3 { border-radius: 2px !important; }
/* Campos de texto y listas */
body.skin-blanco input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), body.skin-blanco select, body.skin-blanco textarea,
body.glass-ui.skin-negro input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), body.glass-ui.skin-negro select, body.glass-ui.skin-negro textarea { border-radius: 4px !important; }
body.skin-blanco .skin-pick, body.glass-ui.skin-negro .skin-pick { border-radius: 6px; }
body.skin-blanco .skin-pick button, body.glass-ui.skin-negro .skin-pick button { border-radius: 4px; }
body.skin-blanco .skin-pick i, body.glass-ui.skin-negro .skin-pick i { border-radius: 3px; }
body.skin-blanco .st, body.glass-ui.skin-negro .st { border-radius: 4px; }
body.skin-blanco .st::before, body.glass-ui.skin-negro .st::before { border-radius: 1px; }
body.skin-blanco .g-ic, body.glass-ui.skin-negro .g-ic { border-radius: 6px; }
body.skin-blanco .ui-seg, body.glass-ui.skin-negro .ui-seg, body.skin-blanco .seg, body.glass-ui.skin-negro .seg { border-radius: 6px !important; }
body.skin-blanco .ui-seg > *, body.glass-ui.skin-negro .ui-seg > *, body.skin-blanco .seg > *, body.glass-ui.skin-negro .seg > * { border-radius: 4px !important; }

/* ---------- Estado de inventario: etiqueta recta con punto cuadrado (verde = bien, ámbar = poco, rojo = agotado) ---------- */
.st-tag { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: 4px; font-size: 11px; font-weight: 600; white-space: nowrap; text-shadow: none; }
.st-tag::before { content: ''; width: 7px; height: 7px; border-radius: 1px; background: currentColor; }
.st-tag.ok { background: rgba(52, 211, 153, .16); color: #a7f3d0; }
.st-tag.low { background: rgba(250, 204, 21, .16); color: #fde68a; }
.st-tag.out { background: rgba(248, 113, 113, .16); color: #fecaca; }
body.skin-blanco .st-tag.ok { background: rgba(16, 185, 129, .12); color: #047857; }
body.skin-blanco .st-tag.low { background: rgba(245, 158, 11, .14); color: #92400e; }
body.skin-blanco .st-tag.out { background: rgba(239, 68, 68, .11); color: #b91c1c; }
body.glass-ui.skin-negro .st-tag.ok { background: rgba(52, 211, 153, .1); color: #34D399; }
body.glass-ui.skin-negro .st-tag.low { background: rgba(250, 204, 21, .1); color: #FACC15; }
body.glass-ui.skin-negro .st-tag.out { background: rgba(248, 113, 113, .1); color: #F87171; }
/* Botones de filtro por estado */
.st-filter { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border-radius: 4px; font-size: 12.5px; font-weight: 500;
    background: rgba(118, 118, 128, .16); color: inherit; transition: background-color .15s ease; }
.st-filter > i { width: 8px; height: 8px; border-radius: 1px; flex-shrink: 0; }
.st-filter > b { font-weight: 700; font-variant-numeric: tabular-nums; }
.st-filter:hover { background: rgba(118, 118, 128, .24); }
.st-filter.on { background: rgba(255, 255, 255, .9); color: #111114; }
body.skin-blanco .st-filter { background: rgba(118, 118, 128, .1); color: #3c3c43; }
body.skin-blanco .st-filter:hover { background: rgba(118, 118, 128, .17); }
body.skin-blanco .st-filter.on { background: #111114; color: #fff; }
body.glass-ui.skin-negro .st-filter { background: #17171C; color: #c4c4cc; }
body.glass-ui.skin-negro .st-filter:hover { background: #1E1E24; }
body.glass-ui.skin-negro .st-filter.on { background: rgba(250, 204, 21, .1); color: #FACC15; box-shadow: inset 0 0 0 1px rgba(250, 204, 21, .5); }
/* Barra segmentada (reemplaza la torta): ocupa todo el ancho de la tarjeta, debajo */
.seg-bar { display: flex; gap: 2px; height: 10px; width: 100%; flex-basis: 100%; order: 9; }
.seg-bar > i { display: block; min-width: 3px; border-radius: 1px; }
.seg-bar > i.empty { flex: 1; background: rgba(118, 118, 128, .18); }
/* Foto cuadrada del artículo con su barrita de "cuánto queda" debajo (reemplaza el anillo) */
.stock-ring { width: 72px !important; height: auto !important; display: flex !important; flex-direction: column; gap: 6px; background: none !important; border-radius: 0 !important; }
.stock-ring > span { width: 72px !important; height: 72px !important; border-radius: 4px !important; display: grid; place-items: center; font-size: 30px; overflow: hidden;
    background: rgba(255, 255, 255, .14) !important; }
.stock-ring::after { content: ''; display: block; width: 100%; height: 3px; border-radius: 1px;
    background: linear-gradient(90deg, var(--c) calc(var(--p) * 1%), rgba(118, 118, 128, .2) 0); }
body.skin-blanco .stock-ring > span { background: #f2f2f5 !important; }
body.glass-ui.skin-negro .stock-ring > span { background: #17171C !important; }