/* Referencia v187: reglas finales conservadas; duplicados exactos anteriores retirados. */
@media screen {
  @layer club-stable-fade, club-back-jello, club-filter-alignment, club-back-mobile, club-back-unified, club-rail-glass, club-floating-rails, club-metrics-spark, club-metrics-relief, club-table-actions, club-home-motion, club-icon-actions, club-mobile-polish, club-interaction-repair, club-mobile-layout, club-card-theme;
  @layer club-back-jello {
  @media screen {
  @keyframes club-back-jello-horizontal { 
  0%, 100% { transform: scale3d(1, 1, 1); }
  30% { transform: scale3d(1.25, 0.75, 1); }
  40% { transform: scale3d(0.75, 1.25, 1); }
  50% { transform: scale3d(1.15, 0.85, 1); }
  65% { transform: scale3d(0.95, 1.05, 1); }
  75% { transform: scale3d(1.05, 0.95, 1); }
}
}
}
  
  

  


  @layer club-mobile-layout {
  @media screen and (max-width: 760px) {
  html { --mobile-nav-space: calc(64px + env(safe-area-inset-bottom,0px)); }
  body:not(.table-operation-mode) .content { width: 100% !important; max-width: none !important; padding: 0px !important; min-width: 0px !important; box-sizing: border-box !important; }
  body:not(.table-operation-mode) .content > .page:not(#ventas) { width: 100% !important; max-width: none !important; margin: 0px !important; box-sizing: border-box !important; padding: 8px max(10px,env(safe-area-inset-right,0px)) calc(var(--mobile-nav-space) + 12px) max(10px,env(safe-area-inset-left,0px)) !important; }
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
}
  
  @media screen and (min-width: 761px) and (max-width: 1024px) {
  body:not(.table-operation-mode) .content > .page:not(#ventas) { padding-inline: 16px !important; box-sizing: border-box !important; }
}
}
  @media screen {
  @layer club-card-theme {
  :root { --club-card-top-alpha: .3264; --club-card-bottom-alpha: .408; --club-card-light-rgb: var(--home-line-rgb); --club-card-light-edge: .48; --club-card-light-haze: .09; --club-card-light-width: 104px; --club-card-light-height: 78px; --club-card-blur: 24px; --club-card-saturation: 125%; }
  html[data-theme="light"] { --club-card-top-alpha: .4352; --club-card-bottom-alpha: .5168; --club-card-light-rgb: 255,255,255; --club-card-light-edge: .58; --club-card-light-haze: .12; }
  
  
  
  
  
}
}
  @font-face { font-family: "ClubPOS UI"; src: local("Segoe UI Light"); font-style: normal; font-weight: 100 350; font-display: swap; }
  @font-face { font-family: "Satoshi"; src: url("fonts/Satoshi-Variable.woff2") format("woff2"); font-style: normal; font-weight: 300 900; font-display: swap; }
  @font-face { font-family: "ClubPOS UI"; src: local("Segoe UI"); font-style: normal; font-weight: 351 550; font-display: swap; }
  @font-face { font-family: "ClubPOS UI"; src: local("Segoe UI Semibold"), local("SegoeUI-Semibold"); font-style: normal; font-weight: 551 650; font-display: swap; }
  @font-face { font-family: "ClubPOS UI"; src: local("Segoe UI Bold"), local("SegoeUI-Bold"); font-style: normal; font-weight: 651 1000; font-display: swap; }
  @font-face { font-family: "ClubPOS UI"; src: local("Segoe UI Italic"); font-style: italic; font-weight: 100 550; font-display: swap; }
  @font-face { font-family: "ClubPOS UI"; src: local("Segoe UI Italic"); font-style: italic; font-weight: 551 650; font-display: swap; }
  @font-face { font-family: "ClubPOS UI"; src: local("Segoe UI Italic"); font-style: italic; font-weight: 651 1000; font-display: swap; }
  @layer app-typography {
  @media all {
  /* Sistema tipográfico: Satoshi en toda la interfaz (títulos, cifras y etiquetas).
     Si no hay conexión, se usan las fuentes del sistema. */
  :root { --app-font-ui: 'Satoshi','ClubPOS UI','Segoe UI',system-ui,sans-serif; --app-font-display: var(--app-font-ui); --app-font-mono: 'JetBrains Mono',ui-monospace,'Cascadia Mono',Consolas,monospace; --app-font-family: var(--app-font-ui); --aur-sans: var(--app-font-ui); --mx-sans: var(--app-font-ui); }
  :is(h1, h2, h3, .page-title, .section-title) { --app-font-family: var(--app-font-display); letter-spacing: -.015em; }
  html, body, body *, body::before, body::after, body ::before, body ::after { font-family: var(--app-font-family) !important; font-synthesis: none !important; }
}
}
  :root { --bg: var(--uc-1,#F2F3F5); --panel: var(--uc-2,#FFFFFF); --panel2: var(--uc-3,#F7F7F8); --text: var(--uc-4,#111111); --muted: var(--uc-5,#4B5563); --line: var(--uc-6,#C9CED6); --accent: var(--uc-4,#111111); --accent2: var(--uc-7,#E5482E); --accent3: var(--uc-8,#5B45D6); --ok: var(--uc-9,#087443); --warn: var(--uc-10,#8A5700); --danger: var(--uc-11,#B42318); --info: var(--uc-12,#155EEF); --shadow: 0 8px 24px var(--uc-13,rgba(17,17,17,.10)); --radius: 16px; --brand: #147eea; --brandText: var(--uc-15,#ffffff); --mesa-bg: var(--uc-16,#A85A2A); }
  [data-theme="dark"] { --bg: var(--uc-17,#080808); --panel: var(--uc-4,#111111); --panel2: var(--uc-18,#1A1A1A); --text: var(--uc-2,#FFFFFF); --muted: var(--uc-19,#D1D5DB); --line: var(--uc-20,#3A3A3A); --accent: var(--uc-2,#FFFFFF); --accent2: var(--uc-21,#FF6548); --accent3: var(--uc-22,#8B78FF); --ok: var(--uc-23,#4ADE80); --warn: var(--uc-24,#FBBF24); --danger: var(--uc-25,#FF6B6B); --info: var(--uc-26,#60A5FA); --shadow: 0 8px 26px var(--uc-27,rgba(0,0,0,.45)); --brand: var(--uc-28,#1677F0); --brandText: var(--uc-15,#ffffff); --mesa-bg: var(--uc-29,#5b321e); }
  html, body { margin: 0px; height: 100%; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; max-width: 100vw; }
  button, input, select, textarea { font: inherit; }
  button { cursor: pointer; border: 0px; }
  .app { display: grid; height: 100vh; overflow: hidden; }
  
  
  
  
  
  
  
  
  .content { min-width: 0px; display: flex; flex-direction: column; overflow: hidden; }
  
  
   .ghost, .primary, .danger, .success { border-radius: 12px; padding: 10px 13px; font-weight: 700; }
   .ghost { background: var(--panel2); color: var(--text); }
  .primary { background: var(--text); color: var(--panel); }
  .danger { background: var(--danger); color: var(--uc-31,#fff); }
  .page { padding: 22px 24px 100px; overflow: auto; }
  .page.hidden { display: none; }
  .card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
  .metric { padding: 18px; }
  .metric .label { color: var(--muted); font-size: 13px; }
  .metric .value { font-size: 28px; font-weight: 800; margin-top: 7px; }
  .metric .sub { font-size: 12px; color: var(--muted); margin-top: 5px; }
  .section { margin-top: 18px; }
  .muted { color: var(--muted); }
  .chips { display: flex; gap: 8px; overflow: auto; padding-bottom: 4px; }
  .chip { background: var(--panel2); color: var(--muted); padding: 8px 12px; border-radius: 999px; font-weight: 700; white-space: nowrap; }
  .chip.active { background: var(--text); color: var(--panel); }
  .tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 13px; }
  
  
  
  
  
  
  
  .badge { padding: 5px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }
  .badge.free { background: var(--uc-36,rgba(22,163,74,.12)); color: var(--ok); }
  .badge.occupied { background: var(--uc-37,rgba(220,38,38,.12)); color: var(--danger); }
  .ticket { padding: 16px; display: flex; flex-direction: column; min-height: 0px; height: 100%; }
  .qty { display: flex; align-items: center; gap: 5px; }
  .qty button { width: 28px; height: 28px; border-radius: 9px; background: var(--panel2); color: var(--text); font-weight: 800; }
  .product { padding: 14px; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 15px; min-height: 105px; }
  .product:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
  .product strong { display: block; }
  .product .price { font-weight: 800; margin-top: 9px; }
  .product .cat { color: var(--muted); font-size: 12px; }
  .row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0px; }
  .total { font-size: 26px; font-weight: 900; }
  .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0px, 1fr)); gap: 12px; }
  .field { display: flex; flex-direction: column; gap: 6px; }
  .field label { font-size: 12px; color: var(--muted); font-weight: 700; }
  .field input, .field select, .field textarea { padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); color: var(--text); }
   .pf-mod-checklist { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow-y: auto; margin-top: 6px; padding: 4px 2px; }
  .modifier-group-details { border: 1px solid var(--line); border-radius: 12px; padding: 0px; background: var(--panel2); }
  .modifier-group-details .modifier-group-section { padding: 4px 12px 12px; }
  .modifier-group-count { font-weight: 700; color: var(--accent); font-size: 12px; }
  .table-wrap { overflow: auto; }
  .data-table { width: 100%; border-collapse: collapse; }
  .data-table th, .data-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; }
  .data-table th { color: var(--muted); font-weight: 700; }
  .modal { position: fixed; inset: 0px; background: var(--uc-38,rgba(0,0,0,.48)); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 200000; }
  .modal.open { display: flex; }
  .modal-card { width: min(560px, 100%); max-height: 90vh; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
  .modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
  .modal-head h3 { margin: 0px; }
  .modal.login-lock .modal-head button { display: none !important; }
  .modal.login-lock { z-index: 999999 !important; }
  .modal.login-lock .modal-card { pointer-events: auto; }
  .modal-card.wide { width: min(920px, 100%); padding: 0px; overflow: hidden; }
  .modal-card.wide .modal-head { padding: 14px 18px; margin: 0px; border-bottom: 1px solid var(--line); }
  .modal-card.wide #modalBody { max-height: calc(-58px + 90vh); overflow: auto; }

  .toast { position: fixed; right: 18px; bottom: 18px; background: var(--text); color: var(--panel); padding: 13px 16px; border-radius: 12px; display: none; z-index: 200001; font-weight: 700; }
  .toast.show { display: block; }
  .confirm-toast { position: fixed; top: 18px; left: 50%; transform: translateX(-50%) translateY(-16px); display: flex; align-items: center; gap: 11px; background: var(--ok); color: rgb(255, 255, 255); padding: 13px 22px; border-radius: 14px; box-shadow: rgba(0, 0, 0, 0.35) 0px 10px 30px; z-index: 900000; opacity: 0; pointer-events: none; transition: opacity 0.18s, transform 0.18s; max-width: min(92vw, 420px); }
  .confirm-toast.show { opacity: 1; transform: translateX(-50%) translateY(0px); }
  .confirm-toast-icon { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 900; }
  .confirm-toast-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0px; }
  .confirm-toast-text strong { font-size: 14px; letter-spacing: 0.4px; font-weight: 900; }
  .confirm-toast-text span { font-size: 12px; opacity: 0.92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .confirm-toast-text span:empty { display: none; }
  @media (max-width: 600px) {
  .confirm-toast { left: 12px; right: 12px; top: 12px; transform: translateY(-16px); max-width: none; }
  .confirm-toast.show { transform: translateY(0px); }
}
  
  @media (max-width: 760px) {
  .app { display: block; }
  
  .content { height: 100vh; }
  
  
  .page { padding: 14px 14px 90px; }
   .form-grid > * { min-width: 0px; }
  .tables { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  
  
  
  
  .metric .value { font-size: 22px; }
}
  
  
  
  
  .hero { padding: 22px 24px; background: linear-gradient(135deg,var(--text),var(--uc-41,#27303b)); color: var(--panel); border-radius: 22px; margin-bottom: 18px; box-shadow: var(--shadow); }
  .hero h2 { margin: 0px; font-size: 28px; letter-spacing: -0.8px; }
  .hero p { margin: 7px 0px 0px; color: var(--uc-42,#b8c0cb); }
  
  
  
  
  
  
  
  
  
  




  
  
  
  
  
  
  
  
  
  .command-fichera-name { display: block; margin: 7px 0px 3px; padding: 6px 7px; border: 2px solid rgb(17, 17, 17); border-radius: 7px; background: rgb(255, 255, 255); color: rgb(17, 17, 17); font-size: 18px; line-height: 1.05; font-weight: 1000; text-align: center; letter-spacing: 0.3px; text-transform: uppercase; }
  @media print {
  .command-fichera-name { font-size: 19px; border-width: 2px; }
}
  
  
  
  

  .badge.free { background: var(--uc-45,#E9F8F0); color: var(--uc-9,#087443); border: 1px solid var(--uc-46,#9AD7B8); }
  .badge.occupied { background: var(--uc-47,#FFF0EE); color: var(--uc-11,#B42318); border: 1px solid var(--uc-48,#F2A39A); }
  [data-theme="dark"] .badge.free { background: var(--uc-53,#0D2A1D); color: var(--uc-23,#4ADE80); border-color: var(--uc-54,#236B45); }
  [data-theme="dark"] .badge.occupied { background: var(--uc-55,#351412); color: var(--uc-56,#FF8B7A); border-color: var(--uc-57,#8D3930); }
  .chip { background: var(--panel); color: var(--text); border: 1px solid var(--line); }
  .chip.active{ background: var(--text); color: var(--panel); border-color: var(--text); }
  
  .hero { background: var(--text); color: var(--panel); }
  .hero p { color: var(--uc-58,#E5E7EB); }
  .primary { background: var(--text); color: var(--panel); border: 1px solid var(--text); }
  
  .print-note { font-size: 11px; color: var(--muted); margin: 5px 0px 0px; }
  
  #topDate { display: none !important; }
  
  
  :root { --club: var(--uc-71,#ff4f3d); --club2: var(--uc-72,#ff7a45); --fast: var(--uc-73,#0f172a); }
  .product.fast-product { min-height: 112px; padding: 13px 12px; border: 2px solid var(--line); position: relative; display: flex; flex-direction: column; justify-content: space-between; touch-action: manipulation; -webkit-tap-highlight-color: var(--uc-30,transparent); }
  .product.fast-product:active { transform: scale(0.97); background: var(--panel2); }
  .product.fast-product strong { font-size: 15px; line-height: 1.12; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .product.fast-product .price { font-size: 17px; margin-top: 7px; }
  .product.fast-product .cat { font-size: 9px; text-transform: uppercase; letter-spacing: 0.5px; }
  .product.fast-product small { font-size: 9px; color: var(--muted); }
  @media (max-width: 600px) {
  .product.fast-product { min-height: 106px; padding: 11px; }
  .product.fast-product strong { font-size: 14px; }
  .product.fast-product .price { font-size: 16px; }
}
  .fast-product { min-height: 125px; padding: 16px; }
  .fast-product strong { font-size: 16px; line-height: 1.15; }
  .fast-product .price { font-size: 18px; }
  .modal-head button:where(:not(.modal-back)) { padding: 7px 10px !important; font-size: 10px !important; }
  


  @media (max-width: 760px) {
  .fast-product { min-height: 112px; padding: 12px; }
  .fast-product strong { font-size: 14px; }
  .fast-product .price { font-size: 16px; }
  .ticket { padding: 12px; }
  .chip { padding: 11px 14px !important; }
}
  .payment-method-box { margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel2); }
  .payment-method-title, .mixed-title { font-size: 11px; font-weight: 900; letter-spacing: 0.04em; margin-bottom: 8px; }
  .payment-method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
  .method-choice { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 9px; padding: 10px 7px; font-weight: 800; cursor: pointer; font-size: 12px; line-height: 1.2; }
  .method-choice .ui-ic { flex: none; width: 18px; height: 18px; }
  .method-choice.active { background: var(--accent); color: var(--uc-31,#fff); border-color: var(--accent); }
  .payment-method-fields { margin-top: 10px; }
  .method-single-note { padding: 13px; border-radius: 9px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; }
  .quick-cash-buttons { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 7px; }
  .quick-cash-buttons button { padding: 9px 5px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); font-weight: 800; cursor: pointer; }
  .cash-denom-label { margin-top: 10px; margin-bottom: 4px; font-size: 11px; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
  .cash-preset-btn { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 14px !important; }
  .cash-preset-btn .preset-count { font-size: 11px; font-weight: 900; color: rgb(22, 163, 74); }
  .cash-preset-btn.selected { background: rgb(187, 247, 208) !important; border: 2px solid rgb(22, 163, 74) !important; color: rgb(6, 95, 70) !important; }
  .cash-preset-btn.selected .preset-count { color: rgb(6, 95, 70) !important; }
  .cash-preset-btn:active { transform: scale(0.95); }
  .quick-coin-buttons { grid-template-columns: repeat(4, 1fr) !important; }
  .coin-preset-btn { aspect-ratio: 1 / 1; flex-direction: column; border-radius: 50% !important; font-size: 12px !important; padding: 4px !important; }
  .coin-preset-btn .preset-count { font-size: 9px; }
  .cash-clear-btn { width: 100%; margin-top: 8px; padding: 9px; border: 1px dashed var(--line); border-radius: 9px; background: transparent; color: var(--muted); font-weight: 800; font-size: 12px; cursor: pointer; }
  .cash-clear-btn:active { background: var(--panel2); transform: scale(0.98); }
  .payment-received { font-size: 11px; margin-top: 8px; color: var(--muted); }
  .payment-status { font-size: 13px; font-weight: 900; margin-top: 6px; }
  @media (max-width: 700px) {
  .payment-method-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-cash-buttons { grid-template-columns: repeat(3, 1fr); }
}
  .admin-security-note { padding: 8px 10px; border-radius: 9px; background: color-mix(in srgb,var(--accent3) 9%,var(--panel2)); border: 1px solid color-mix(in srgb,var(--accent3) 22%,var(--line)); font-size: 10px; color: var(--muted); }
  .table-action-card { min-height: 120px; padding: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 12px; text-align: left; display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
  .table-action-card span { font-size: 25px; }
  .table-action-card b { font-size: 12px; }
  .table-action-card small { font-size: 10px; color: var(--muted); line-height: 1.3; }
  @media (max-width: 650px) {
  .table-action-card { min-height: 74px; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 9px; }
  .table-action-card span { grid-row: 1 / 3; align-self: center; }
  .table-action-card small { grid-column: 2; }
}
  .product.fast-product { min-height: 104px !important; padding: 11px !important; }
  .product.fast-product strong { font-size: 14px !important; }
  .product.fast-product .price { font-size: 16px !important; }
  .product.fast-product small { font-size: 8px !important; }
  :root { --bg: var(--uc-75,#F4F6F8); --panel: var(--uc-2,#FFFFFF); --panel2: var(--uc-76,#F1F5F9); --text: #111827; --muted: var(--uc-78,#475569); --line: var(--uc-79,#B8C2CF); --accent: var(--uc-80,#1F2937); --accent2: var(--uc-81,#C62828); --accent3: var(--uc-82,#4338CA); --ok: var(--uc-83,#166534); --warn: var(--uc-84,#92400E); --danger: var(--uc-85,#B91C1C); --info: var(--uc-86,#1D4ED8); --club: var(--uc-81,#C62828); --club2: var(--uc-87,#EA580C); }
  [data-theme="dark"] { --bg: var(--uc-88,#0B1120); --panel: #111827; --panel2: var(--uc-89,#1E293B); --text: var(--uc-90,#F8FAFC); --muted: var(--uc-91,#CBD5E1); --line: var(--uc-78,#475569); --accent: var(--uc-90,#F8FAFC); --accent2: var(--uc-92,#FF6B57); --accent3: var(--uc-93,#818CF8); --ok: var(--uc-23,#4ADE80); --warn: var(--uc-24,#FBBF24); --danger: var(--uc-94,#FF7A7A); --info: var(--uc-26,#60A5FA); --club: var(--uc-95,#FF5B47); --club2: var(--uc-96,#FB923C); }
  .product.fast-product { background: var(--panel) !important; color: var(--text) !important; border-color: var(--line) !important; box-shadow: 0 1px 2px var(--uc-98,rgba(15,23,42,.08)) !important; }
  .product.fast-product strong { color: var(--text) !important; }
  .product.fast-product .price { color: var(--text) !important; font-weight: 900 !important; }
  .product.fast-product .cat, .product.fast-product small { color: var(--muted) !important; }
  .product.fast-product:hover { border-color: var(--accent3) !important; box-shadow: 0 3px 12px var(--uc-99,rgba(15,23,42,.12)) !important; }
  [data-theme="dark"] .product.fast-product:hover { box-shadow: 0 3px 14px var(--uc-100,rgba(0,0,0,.35)) !important; }
  :root { --bg: var(--uc-76,#F1F5F9); --panel: var(--uc-2,#FFFFFF); --panel2: var(--uc-90,#F8FAFC); --text: var(--uc-105,#0F172A); --muted: var(--uc-78,#475569); --line: var(--uc-91,#CBD5E1); --accent: var(--uc-86,#1D4ED8); --accent2: var(--uc-87,#EA580C); --accent3: var(--uc-106,#6D28D9); --ok: var(--uc-107,#15803D); --warn: var(--uc-108,#A16207); --danger: var(--uc-109,#DC2626); --info: var(--uc-110,#0369A1); --surface: var(--uc-2,#FFFFFF); --surface2: var(--uc-90,#F8FAFC); --border: var(--uc-91,#CBD5E1); --chip: var(--uc-111,#E2E8F0); --shadow: 0 6px 20px var(--uc-112,rgba(15,23,42,.10)); }
  [data-theme="dark"] { --bg: var(--uc-88,#0B1120); --panel: #111827; --panel2: var(--uc-89,#1E293B); --text: var(--uc-90,#F8FAFC); --muted: var(--uc-91,#CBD5E1); --line: var(--uc-78,#475569); --accent: var(--uc-26,#60A5FA); --accent2: var(--uc-96,#FB923C); --accent3: var(--uc-113,#A78BFA); --ok: var(--uc-23,#4ADE80); --warn: var(--uc-114,#FACC15); --danger: var(--uc-115,#F87171); --info: var(--uc-116,#38BDF8); --surface: #111827; --surface2: var(--uc-89,#1E293B); --border: var(--uc-78,#475569); --chip: var(--uc-117,#334155); --shadow: 0 8px 26px var(--uc-118,rgba(0,0,0,.42)); }
  body { background: var(--bg); color: var(--text); }
  .card, .product, .chip, .ghost, .field input, .field select, .field textarea, .modal-card{ background: var(--panel); color: var(--text); border-color: var(--line); }
  
  
  .primary { background: var(--accent); color: var(--uc-31,#fff); border: 1px solid var(--accent); }
  .ghost { background: var(--panel); color: var(--text); border: 1px solid var(--line); }
  .ghost:hover { background: var(--panel2); border-color: var(--accent); color: var(--text); }
  .danger { background: var(--danger); color: var(--uc-31,#fff); border: 1px solid var(--danger); }
  .success { background: var(--ok); color: var(--uc-31,#fff); }
  .field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
  .field input:where(:not(.buy-sheet input)):focus, .field select:focus, .field textarea:where(:not(.buy-sheet textarea, .cj-field-in > textarea)):focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb,var(--accent) 18%,var(--uc-30,transparent)); }
  .muted, .product .cat, .field label, .data-table th { color: var(--muted); }
  .data-table th, .data-table td { border-color: var(--line); }
  .chip{ background: var(--panel); color: var(--text); border: 1px solid var(--line); }
  .chip.active{ background: var(--accent); color: var(--uc-31,#fff); border-color: var(--accent); }
  
  
  .badge.free { background: var(--uc-119,#DCFCE7); color: var(--uc-83,#166534); border: 1px solid var(--uc-120,#86EFAC); }
  .badge.occupied { background: var(--uc-121,#FEE2E2); color: var(--uc-122,#991B1B); border: 1px solid var(--uc-123,#FCA5A5); }
  [data-theme="dark"] .badge.free { background: var(--uc-127,#14532D); color: var(--uc-128,#BBF7D0); border-color: var(--uc-129,#22C55E); }
  [data-theme="dark"] .badge.occupied { background: var(--uc-130,#450A0A); color: var(--uc-131,#FECACA); border-color: var(--uc-132,#EF4444); }
  .product:hover { border-color: var(--accent); box-shadow: var(--shadow); }
  .product .price, .metric .value, .total { color: var(--text); }
  .hero { background: var(--uc-136,#172554); color: var(--uc-31,#fff); }
  .hero p { color: var(--uc-137,#DBEAFE); }
  .modal { background: var(--uc-138,rgba(2,6,23,.68)); }
  .toast { background: var(--text); color: var(--bg); }
  #usuarios .data-table thead th { background: var(--panel2); color: var(--text); font-weight: 850; }
  #usuarios .data-table tbody tr:hover { background: var(--panel2); }
  #usuarios .data-table td { color: var(--text); }
  button { color: var(--text); }
  button:disabled { opacity: 0.48; cursor: not-allowed; }
  :root { --bg: #0a0f17; --panel: rgba(22,28,38,.78); --panel2: rgba(255,255,255,.075); --glass: rgba(18,24,34,.72); --glass-strong: rgba(14,19,28,.88); --text: #ffffff; --muted: #d5dbe5; --subtle: #b8c1ce; --line: rgba(255,255,255,.20); --accent: #0a84ff; --accent-hover: #2997ff; --ok: #30d158; --danger: #ff453a; --warn: #ffd60a; --purple: #bf5af2; --shadow: 0 24px 70px rgba(0,0,0,.34); --radius: 22px; --blur: 28px; }
  html, body { background: rgb(10, 15, 23) !important; color: var(--text) !important; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Inter, sans-serif !important; }
  body { position: relative; isolation: isolate; overflow: hidden; }
  body::before { content: ""; position: fixed; inset: -45px; z-index: -20; background-image: var(--app-wallpaper,var(--theme-default-bg,radial-gradient(circle at 20% 10%,#31465f 0,#101722 38%,#06090e 100%))); background-size: cover; background-position: center center; background-repeat: no-repeat; filter: blur(var(--app-wallpaper-blur,24px)); transform: scale(1.08); }
  body::after { content: ""; position: fixed; inset: 0px; z-index: -19; background: linear-gradient(135deg, rgba(5, 9, 15, 0.68), rgba(8, 12, 20, 0.45) 45%, rgba(3, 6, 10, 0.72)); pointer-events: none; }
  * { box-sizing: border-box; }
  button, input, select, textarea { font-family: inherit !important; }
  button { cursor: pointer; }
  .app { display: grid !important; height: 100vh !important; overflow: hidden !important; background: transparent !important; }
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  .content { background: transparent !important; min-width: 0px !important; }
  
  
  
  
  
  
  .page { background: transparent !important; color: rgb(255, 255, 255) !important; padding: 22px 24px 90px !important; }
  .page h1, .page h2, .page h3, .page h4 { color: rgb(255, 255, 255) !important; }
  .muted, .page .muted { color: rgb(201, 209, 220) !important; }
   .hint, .sub, .small { color: rgb(184, 194, 206) !important; }
  .card, .metric, .section, .panel, .box { background: var(--glass) !important; color: rgb(255, 255, 255) !important; border: 1px solid var(--line) !important; border-radius: 22px !important; box-shadow: var(--shadow) !important; backdrop-filter: blur(var(--blur)) saturate(135%) !important; }
  button, .ghost, .method-choice, .chip{ transition: background 0.16s, border-color 0.16s, transform 0.16s, box-shadow 0.16s; }
  .ghost, .method-choice, .chip, select, input, textarea { background: rgba(255, 255, 255, 0.086) !important; color: rgb(255, 255, 255) !important; border: 1px solid rgba(255, 255, 255, 0.22) !important; border-radius: 13px !important; }
  .ghost:hover, .method-choice:hover, .chip:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.14) !important; border-color: rgba(255, 255, 255, 0.32) !important; }
  .primary { background: rgb(10, 132, 255) !important; color: rgb(255, 255, 255) !important; border: 1px solid rgba(255, 255, 255, 0.24) !important; box-shadow: rgba(10, 132, 255, 0.25) 0px 8px 22px !important; }
  .primary:hover { background: rgb(41, 151, 255) !important; }
  .success { background: rgb(48, 209, 88) !important; color: rgb(6, 20, 10) !important; border: 1px solid rgba(255, 255, 255, 0.2) !important; font-weight: 800 !important; }
  .danger { background: rgb(255, 69, 58) !important; color: rgb(255, 255, 255) !important; border: 1px solid rgba(255, 255, 255, 0.2) !important; font-weight: 800 !important; }
  .warning { background: rgb(255, 214, 10) !important; color: rgb(25, 19, 0) !important; font-weight: 800 !important; }
  button:focus-visible, input:where(:not(.ui-find > input, .ui-step > input, .cj-field-in > input, .buy-sheet input)):focus-visible, select:focus-visible, textarea:where(:not(.buy-sheet textarea, .cj-field-in > textarea)):focus-visible { outline: rgba(10, 132, 255, 0.95) solid 3px !important; outline-offset: 2px !important; }
  input::placeholder, textarea::placeholder { color: rgb(192, 201, 213) !important; opacity: 1 !important; }
  .field label, .label, th { color: rgb(220, 227, 236) !important; }
  .data-table th { background: rgba(255, 255, 255, 0.07) !important; }
  .data-table td { color: rgb(255, 255, 255) !important; border-color: rgba(255, 255, 255, 0.14) !important; }
  
  
  
  
  
  
  
  
  
  .tables{ gap: 14px !important; }
  .badge.free { background: rgba(48, 209, 88, 0.18) !important; color: rgb(92, 255, 125) !important; }
  .badge.occupied { background: rgba(255, 69, 58, 0.18) !important; color: rgb(255, 143, 136) !important; }
   [data-table-status="free"] { display: none !important; }
   .chips .chip { background: rgba(255, 255, 255, 0.08) !important; color: rgb(255, 255, 255) !important; border: 1px solid rgba(255, 255, 255, 0.2) !important; }
   .chips .chip.active { background: rgb(10, 132, 255) !important; color: rgb(255, 255, 255) !important; border-color: rgb(10, 132, 255) !important; }
  .product, .fast-product { background: rgba(25, 31, 42, 0.86) !important; color: rgb(255, 255, 255) !important; border: 1px solid rgba(255, 255, 255, 0.2) !important; border-radius: 18px !important; box-shadow: rgba(0, 0, 0, 0.2) 0px 12px 30px !important; }
  .product *, .fast-product * { color: inherit; }
  .product .cat, .fast-product .cat { color: rgb(196, 206, 218) !important; }
  .product .price, .fast-product .price { color: rgb(255, 255, 255) !important; font-weight: 800 !important; }
  .qty button { background: rgba(255, 255, 255, 0.1) !important; color: rgb(255, 255, 255) !important; border: 1px solid rgba(255, 255, 255, 0.18) !important; }
  .qty button:hover { background: rgba(255, 255, 255, 0.17) !important; }
  .modal { background: rgba(0, 0, 0, 0.62) !important; backdrop-filter: blur(16px) !important; }
  .modal-card { background: rgba(17, 23, 33, 0.94) !important; color: rgb(255, 255, 255) !important; border: 1px solid rgba(255, 255, 255, 0.22) !important; border-radius: 24px !important; box-shadow: rgba(0, 0, 0, 0.52) 0px 30px 90px !important; }
  .modal-card * { color: inherit; }
  .modal-card .muted { color: rgb(199, 208, 219) !important; }
  .modal-head { border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important; }
   #appleWallpaperManager { background: rgba(18, 24, 34, 0.78) !important; color: rgb(255, 255, 255) !important; border: 1px solid rgba(255, 255, 255, 0.2) !important; border-radius: 22px !important; backdrop-filter: blur(25px) !important; }
   #appleWallpaperManager p { color: rgb(200, 209, 220) !important; }
  [style*="background:#fff"], [style*="background: #fff"], [style*="background:white"], [style*="background: white"] { background: rgba(255, 255, 255, 0.1) !important; color: rgb(255, 255, 255) !important; }
  [style*="color:#111"], [style*="color: #111"], [style*="color:#000"], [style*="color: #000"] { color: rgb(255, 255, 255) !important; }
  [style*="color:#666"], [style*="color: #666"], [style*="color:#777"], [style*="color: #777"], [style*="color:#999"], [style*="color: #999"] { color: rgb(198, 207, 218) !important; }
  @media (max-width: 1100px) {
  .page { padding: 18px !important; }
}
  @media (max-width: 900px) {
  
  
  .page { padding: 14px 12px 80px !important; }
  .tables { grid-template-columns: repeat(2, minmax(0px, 1fr)) !important; }
}
  @media (max-width: 600px) {
  .tables { grid-template-columns: 1fr !important; }
  .card, .modal-card { border-radius: 18px !important; }
}
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  @media (max-width: 900px) {
  body.mobile-sheet-open { overflow: hidden !important; }
}
  @media (max-width: 760px) {
  html, body { width: 100% !important; max-width: 100% !important; height: 100% !important; min-height: 100% !important; overflow: hidden !important; overscroll-behavior: none !important; }
  .app, .content { width: 100% !important; max-width: 100% !important; min-width: 0px !important; height: 100dvh !important; min-height: 0px !important; overflow: hidden !important; }
  
  
  
}
  .modal-card.wide[data-kind~="payment-charge-screen"] { width: min(980px, -20px + 100vw) !important; max-width: calc(-20px + 100vw) !important; height: auto !important; max-height: calc(-20px + 100dvh) !important; padding: 0px !important; overflow: hidden !important; }
  @media (max-width: 900px) {
  .modal { padding: 8px !important; }
  .modal-card.wide[data-kind~="payment-charge-screen"] { width: 100% !important; max-width: 100% !important; max-height: calc(-16px + 100dvh) !important; }
}

  .modal[data-kind~="payment-charge-screen"] { position: fixed !important; inset: 0px !important; padding: 0px !important; align-items: stretch !important; justify-content: stretch !important; overflow: hidden !important; }
  .modal-card.wide[data-kind~="payment-charge-screen"] { position: relative !important; width: 100vw !important; max-width: none !important; height: 100dvh !important; max-height: 100dvh !important; min-height: 100dvh !important; border-radius: 0px !important; border: 0px !important; padding: 0px !important; overflow: hidden !important; }
  .modal-card.wide[data-kind~="payment-charge-screen"] .modal-head { flex: 0 0 58px !important; height: 58px !important; min-height: 58px !important; padding: 10px 16px !important; margin: 0px !important; box-sizing: border-box !important; }
  .modal-card.wide[data-kind~="payment-charge-screen"] #modalBody { height: calc(-58px + 100dvh) !important; max-height: none !important; overflow: hidden !important; padding: 0px !important; }
  @media (max-width: 900px) {
  .modal[data-kind~="payment-charge-screen"] { position: fixed !important; inset: 0px !important; padding: 0px !important; align-items: stretch !important; justify-content: stretch !important; overflow: hidden !important; }
  .modal-card.wide[data-kind~="payment-charge-screen"] { position: relative !important; width: 100vw !important; max-width: none !important; height: 100dvh !important; max-height: 100dvh !important; min-height: 100dvh !important; border-radius: 0px !important; border: 0px !important; padding: 0px !important; overflow: hidden !important; }
  .modal-card.wide[data-kind~="payment-charge-screen"] .modal-head { flex: 0 0 54px !important; height: 54px !important; min-height: 54px !important; padding: 9px 12px !important; margin: 0px !important; box-sizing: border-box !important; }
  .modal-card.wide[data-kind~="payment-charge-screen"] #modalBody { height: calc(-54px + 100dvh) !important; max-height: none !important; overflow: hidden !important; padding: 0px !important; }
}


  .fichera-picker { position: relative; }
  .fichera-cat-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
  .fichera-cat-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel2); font-weight: 800; font-size: 13px; }
  html { width: 100%; min-height: 100%; overflow: hidden auto; }
  body { width: 100%; min-width: 0px; min-height: 100vh; margin: 0px; overflow: hidden auto; }
  *, ::before, ::after { box-sizing: border-box; }
  .app { width: 100%; min-width: 0px; min-height: 100vh; height: auto; overflow: visible; }
  .content { min-width: 0px; min-height: 100vh; height: auto; overflow: visible; }
  .modal { padding: 12px; align-items: center; overflow: auto !important; }
  .modal-card { width: min(560px, -24px + 100vw); max-width: 100%; max-height: calc(-24px + 100dvh); overflow: auto !important; }
  .modal-card.wide { width: min(920px, -24px + 100vw); max-height: calc(-24px + 100dvh); overflow: hidden !important; }
  .modal-card.wide #modalBody { max-height: calc(-82px + 100dvh); overflow: auto !important; }
  @media (max-height: 800px) {
  .modal { align-items: safe center; padding-top: 8px; padding-bottom: 8px; }
  .modal-card { max-height: calc(-16px + 100dvh); }
  .modal-card.wide { max-height: calc(-16px + 100dvh); }
  .modal-card.wide #modalBody { max-height: calc(-74px + 100dvh); }
}
  @media (max-width: 900px) {
  .modal-card.wide { width: calc(-20px + 100vw); }
}
  @media (max-width: 700px) {
  .app { display: block; }
  
  .content { min-height: calc(-70px + 100vh); }
  .modal { padding: 6px; }
  .modal-card, .modal-card.wide { width: calc(-12px + 100vw); max-width: 100%; }
}
  html, body { width: 100%; max-width: 100%; min-width: 0px !important; }
  body { text-size-adjust: 100%; touch-action: manipulation; overflow-x: hidden !important; }
  @media (max-width: 768px) {
  button { min-height: 44px; }
  input, select, textarea { min-height: 44px; font-size: 16px !important; }
  .table-wrap { max-width: 100%; overflow-x: auto !important; }
}

  .fast-product, .product { -webkit-tap-highlight-color: transparent; pointer-events: auto !important; touch-action: manipulation !important; }
  .expense-payment-box { margin-top: 12px; }
  .expense-payment-box .payment-method-grid { grid-template-columns: repeat(4, 1fr); }
  @media (max-width: 700px) {
  .expense-payment-box .payment-method-grid { grid-template-columns: 1fr 1fr; }
}
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  




  
  
  
  
  .stats-title-wrap { display: flex; align-items: center; gap: 12px; }
  .stats-card { padding: 11px 12px; min-width: 0px; border-radius: 12px; }
  .stats-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
  .stats-card-head h3 { font-size: 13px; margin: 0px; font-weight: 900; }
  .stats-card-head .muted { font-size: 8px; margin-top: 2px; display: block; }
  .fperf-warn { color: var(--danger,#e5484d); font-weight: 800; }
  .fperf-note { font-size: 10px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
  .stats-empty { padding: 20px 5px; text-align: center; color: var(--muted); font-size: 9px; }
  @media (max-width: 760px) {
  .stats-card { padding: 10px; }
}
  .product.fast-product strong { width: 100% !important; box-sizing: border-box !important; overflow-wrap: anywhere !important; }
  :root { --ui-bg: #F4F6F8; --ui-surface: #FFFFFF; --ui-surface-2: #F0F3F7; --ui-surface-3: #E8EDF3; --ui-text: #172033; --ui-muted: #526074; --ui-border: #CBD5E1; --ui-accent: var(--accent,#0A84FF); --ui-action: var(--ok,#16A34A); --ui-danger: var(--danger,#DC2626); --ui-warning: var(--warn,#B45309); --ui-info: var(--info,#2563EB); --ui-shadow: 0 8px 24px rgba(15,23,42,.08); --ui-shadow-strong: 0 18px 55px rgba(15,23,42,.16); --ui-radius: 14px; --ui-radius-lg: 18px; }
  html[data-theme="dark"] { color-scheme: dark; --ui-bg: #0B1220; --ui-surface: #121B2A; --ui-surface-2: #1A2636; --ui-surface-3: #223247; --ui-text: #F8FAFC; --ui-muted: #AEB9C9; --ui-border: #3A4A5F; --ui-shadow: 0 10px 28px rgba(0,0,0,.24); --ui-shadow-strong: 0 22px 65px rgba(0,0,0,.48); }
  html:not([data-theme="dark"]) { color-scheme: light; }
  html, body { background: var(--ui-bg) !important; color: var(--ui-text) !important; }
  body { font-size: 14px; line-height: 1.42; }
  html:not([data-theme="dark"]) body::before { opacity: 0.035 !important; }
  html:not([data-theme="dark"]) body::after { background: rgba(244, 246, 248, 0.94) !important; opacity: 1 !important; }
  html[data-theme="dark"] body::after { background: rgba(5, 10, 18, 0.16) !important; }
  html:not([data-theme="dark"]) .page, html:not([data-theme="dark"]) .content, html:not([data-theme="dark"]) .main, html:not([data-theme="dark"]) #clientes, html:not([data-theme="dark"]) #usuarios, html:not([data-theme="dark"]) #personal, html:not([data-theme="dark"]) #estadisticas, html:not([data-theme="dark"]) #comandas, html:not([data-theme="dark"]) #caja, html:not([data-theme="dark"]) #corte, html:not([data-theme="dark"]) #menuadmin, html:not([data-theme="dark"]) #inventario, html:not([data-theme="dark"]) #gastos, html:not([data-theme="dark"]) #reportes, html:not([data-theme="dark"]) #ficheras, html:not([data-theme="dark"]) #config { color: var(--ui-text) !important; background-image: none !important; }
  
  .page, .section, .card, .metric, .table-action-card, .payment-method-box, .method-single-note, .admin-security-note, .stats-card, .staff-pay-card { background: var(--ui-surface) !important; color: var(--ui-text) !important; border-color: var(--ui-border) !important; }
  .card, .metric, .table-action-card, .stats-card, .staff-pay-card { box-shadow: var(--ui-shadow) !important; }
  .card:hover { box-shadow: rgba(15, 23, 42, 0.12) 0px 12px 32px !important; }
  html[data-theme="dark"] .card:hover { box-shadow: rgba(0, 0, 0, 0.34) 0px 14px 36px !important; }
  .panel { background: var(--ui-surface-2) !important; color: var(--ui-text) !important; border-color: var(--ui-border) !important; }
  body h1, body h2, body h3, body h4, body h5, body h6, body p, body li, body td, body th, body strong, body b, .product strong, .product .name, .product .title{ color: var(--ui-text) !important; }
  .muted, .hint, .small, .sub, .product .cat, .field label, .data-table th{ color: var(--ui-muted) !important; }
  input::placeholder, textarea::placeholder { color: rgb(124, 136, 153) !important; opacity: 1 !important; }
  html[data-theme="dark"] input::placeholder, html[data-theme="dark"] textarea::placeholder { color: rgb(137, 151, 170) !important; }
  input, select, textarea{ background: var(--ui-surface) !important; color: var(--ui-text) !important; border: 1px solid var(--ui-border) !important; }
  input:where(:not(.ui-find > input, .ui-step > input, .cj-field-in > input, .buy-sheet input)):focus, select:focus, textarea:where(:not(.buy-sheet textarea, .cj-field-in > textarea)):focus{ border-color: var(--ui-accent) !important; box-shadow: 0 0 0 3px color-mix(in srgb,var(--ui-accent) 16%,transparent) !important; outline: none !important; }
  input[type="checkbox"], input[type="radio"], input[type="color"] { accent-color: var(--ui-accent); }
  
  
  
  
  
  
  
  
  
  
  
  .ghost, .cash-preset-btn, .coin-preset-btn, .quick-cash-buttons button, .qty button { background: var(--ui-surface) !important; color: var(--ui-text) !important; border: 1px solid var(--ui-border) !important; }
  .ghost:hover, .cash-preset-btn:hover, .coin-preset-btn:hover, .quick-cash-buttons button:hover, .qty button:hover { background: var(--ui-surface-2) !important; color: var(--ui-text) !important; border-color: var(--ui-accent) !important; }
  .primary, .chip.active, .chips .chip.active { background: var(--ui-accent) !important; color: rgb(255, 255, 255) !important; border-color: var(--ui-accent) !important; }
  .success { background: var(--ui-action) !important; color: rgb(255, 255, 255) !important; border-color: var(--ui-action) !important; }
  .danger { background: var(--ui-danger) !important; color: rgb(255, 255, 255) !important; border-color: var(--ui-danger) !important; }
   .success:hover { filter: brightness(0.94) !important; }
  .danger:hover { filter: brightness(0.94) !important; }
  .chip { background: var(--ui-surface) !important; color: var(--ui-text) !important; border: 1px solid var(--ui-border) !important; }
  .chip:hover { background: var(--ui-surface-2) !important; }
  .product, .fast-product { background: var(--ui-surface) !important; color: var(--ui-text) !important; border-color: var(--ui-border) !important; }
  .product:hover, .fast-product:hover { border-color: color-mix(in srgb,var(--ui-accent) 48%,var(--ui-border)) !important; }
  .product .price, .product .name, .product strong { color: var(--ui-text) !important; }
  .product .cat, .fast-product .cat { color: var(--ui-muted) !important; }
  .product .add, .product button { background: var(--ui-accent) !important; color: rgb(255, 255, 255) !important; border-color: var(--ui-accent) !important; }
  .total { color: var(--ui-text) !important; }
  
  
  
  
   .badge.free { background: color-mix(in srgb,var(--ui-action) 14%,var(--ui-surface)) !important; color: var(--ui-action) !important; border-color: color-mix(in srgb,var(--ui-action) 48%,var(--ui-surface)) !important; }
   .badge.occupied { background: color-mix(in srgb,var(--ui-danger) 14%,var(--ui-surface)) !important; color: var(--ui-danger) !important; border-color: color-mix(in srgb,var(--ui-danger) 48%,var(--ui-surface)) !important; }
  
  .data-table th { background: var(--ui-surface-2) !important; color: var(--ui-muted) !important; border-color: var(--ui-border) !important; }
  .data-table td { background: var(--ui-surface) !important; color: var(--ui-text) !important; border-color: var(--ui-border) !important; }
  .modal { background: rgba(15, 23, 42, 0.58) !important; backdrop-filter: blur(8px) !important; }
  html:not([data-theme="dark"]) .modal { background: rgba(15, 23, 42, 0.34) !important; }
  .modal-card { background: var(--ui-surface) !important; color: var(--ui-text) !important; border: 1px solid var(--ui-border) !important; border-radius: var(--ui-radius-lg) !important; box-shadow: var(--ui-shadow-strong) !important; }
  .modal-card .modal-head { border-color: var(--ui-border) !important; }
  .modal-card .muted { color: var(--ui-muted) !important; }
  .modal-card input, .modal-card select, .modal-card textarea { background: var(--ui-surface-2) !important; color: var(--ui-text) !important; border-color: var(--ui-border) !important; }
  .method-choice { background: var(--ui-surface) !important; color: var(--ui-text) !important; border-color: var(--ui-border) !important; }
  .method-choice.active { background: var(--ui-accent) !important; color: rgb(255, 255, 255) !important; border-color: var(--ui-accent) !important; }
   #appleWallpaperManager { background: var(--ui-surface) !important; color: var(--ui-text) !important; border-color: var(--ui-border) !important; box-shadow: var(--ui-shadow) !important; }
   #appleWallpaperManager p { color: var(--ui-muted) !important; }
     .stats-card, .staff-pay-card { background: var(--ui-surface) !important; color: var(--ui-text) !important; border-color: var(--ui-border) !important; }
  .confirm-toast { background: var(--ui-action) !important; color: rgb(255, 255, 255) !important; }
  .toast { background: var(--ui-text) !important; color: var(--ui-surface) !important; }
  html:not([data-theme="dark"]) [style*="background:#fff"], html:not([data-theme="dark"]) [style*="background: #fff"], html:not([data-theme="dark"]) [style*="background:white"], html:not([data-theme="dark"]) [style*="background: white"] { background: var(--ui-surface) !important; color: var(--ui-text) !important; }
  html[data-theme="dark"] [style*="background:#fff"], html[data-theme="dark"] [style*="background: #fff"], html[data-theme="dark"] [style*="background:white"], html[data-theme="dark"] [style*="background: white"] { background: var(--ui-surface) !important; color: var(--ui-text) !important; }
  html:not([data-theme="dark"]) [style*="color:#111"], html:not([data-theme="dark"]) [style*="color: #111"], html:not([data-theme="dark"]) [style*="color:#000"], html:not([data-theme="dark"]) [style*="color: #000"] { color: var(--ui-text) !important; }
  html[data-theme="dark"] [style*="color:#111"], html[data-theme="dark"] [style*="color: #111"], html[data-theme="dark"] [style*="color:#000"], html[data-theme="dark"] [style*="color: #000"] { color: var(--ui-text) !important; }
  button:focus-visible, input:where(:not(.ui-find > input, .ui-step > input, .cj-field-in > input, .buy-sheet input)):focus-visible, select:focus-visible, textarea:where(:not(.buy-sheet textarea, .cj-field-in > textarea)):focus-visible { outline: 3px solid color-mix(in srgb,var(--ui-accent) 55%,transparent) !important; outline-offset: 2px !important; }
  button:disabled { opacity: 0.55; }
  * { scrollbar-color: var(--ui-border) transparent; }
  ::-webkit-scrollbar { width: 8px; height: 8px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--ui-border); border-radius: 99px; }
  ::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb,var(--ui-muted) 65%,var(--ui-border)); }
  @media (max-width: 760px) {
  body { font-size: 13px; }
  
  .card, .metric, .product, .fast-product { border-radius: 14px !important; }
  .modal { padding: 10px !important; }
  .modal-card { width: 100% !important; max-width: 100% !important; border-radius: 18px !important; }
  .modal-card.wide { border-radius: 16px !important; }
  .field input, .field select, .field textarea { min-height: 44px; }
  .ghost, .primary, .success, .danger { min-height: 42px; }
}
  @media (max-width: 390px) {
  .field input, .field select, .field textarea { min-height: 42px; }
}
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  html[data-theme="dark"] .card, html[data-theme="dark"] .metric, html[data-theme="dark"] .stats-card, html[data-theme="dark"] .staff-pay-card { background: rgb(18, 27, 42) !important; color: rgb(248, 250, 252) !important; border-color: rgb(58, 74, 95) !important; box-shadow: rgba(0, 0, 0, 0.24) 0px 10px 28px !important; }
  
  
  
  
  
  
  
  
  
  html[data-theme="dark"] .product, html[data-theme="dark"] .fast-product { background: rgb(18, 27, 42) !important; color: rgb(248, 250, 252) !important; border-color: rgb(58, 74, 95) !important; }
  html[data-theme="dark"] .product .price, html[data-theme="dark"] .product .name, html[data-theme="dark"] .product strong { color: rgb(248, 250, 252) !important; }
  html[data-theme="dark"] .product .cat, html[data-theme="dark"] .fast-product .cat { color: rgb(174, 185, 201) !important; }
   html[data-theme="dark"] .muted, html[data-theme="dark"] .field label { color: rgb(174, 185, 201) !important; }
  html[data-theme="dark"] .modal-card { background: rgb(18, 27, 42) !important; color: rgb(248, 250, 252) !important; border-color: rgb(58, 74, 95) !important; }
  html[data-theme="dark"] .modal-card input:where(:not(.ui-find > input, .ui-step > input)), html[data-theme="dark"] .modal-card select, html[data-theme="dark"] .modal-card textarea { background: rgb(26, 38, 54) !important; color: rgb(248, 250, 252) !important; border-color: rgb(58, 74, 95) !important; }
  html[data-theme="dark"] .method-choice { background: rgb(18, 27, 42) !important; color: rgb(248, 250, 252) !important; border-color: rgb(58, 74, 95) !important; }
  html[data-theme="dark"] .method-choice.active { background: rgb(10, 132, 255) !important; color: rgb(255, 255, 255) !important; border-color: rgb(10, 132, 255) !important; }
  
  
  
  
  
  
  
  
  
  :root { --bubble-gap: 14px; --bubble-radius: 22px; --bubble-radius-sm: 16px; --bubble-border: rgba(15,23,42,.10); --bubble-shadow: 0 12px 32px rgba(15,23,42,.09); }
  html[data-theme="dark"] { --bubble-border: rgba(255,255,255,.11); --bubble-shadow: 0 16px 38px rgba(0,0,0,.30); }
  .page, .main, .content { gap: var(--bubble-gap) !important; }
    .stats-card { border-radius: var(--bubble-radius) !important; }
  .product, .fast-product { border-radius: 18px !important; border: 1px solid var(--ui-border) !important; box-shadow: rgba(15, 23, 42, 0.055) 0px 5px 18px !important; transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s !important; }
  .product:hover, .fast-product:hover { transform: translateY(-2px) !important; box-shadow: rgba(15, 23, 42, 0.11) 0px 10px 26px !important; }
  button:not(:where(.ui-side,.ui-top,.ui-home,.ui-tabbar,#ventas,.ui-step) *), .btn, .primary, .ghost, .success, .danger { border-radius: 13px !important; }
  .chip { border-radius: 999px !important; }
  .badge { border-radius: 999px !important; }
  .modal-card { border-radius: 26px !important; overflow: hidden !important; }
  .modal-card .modal-head { padding: 18px 20px !important; }
  .table-wrap { overflow-x: auto !important; border: 0px !important; background: transparent !important; box-shadow: none !important; }
  .data-table { border-collapse: separate !important; border-spacing: 0px 8px !important; background: transparent !important; border: 0px !important; }
  .data-table thead th { border: 0px !important; background: transparent !important; color: var(--ui-muted) !important; font-size: 11px !important; letter-spacing: 0.04em !important; text-transform: uppercase !important; padding: 7px 12px !important; }
  .data-table tbody tr { background: var(--ui-surface) !important; box-shadow: rgba(15, 23, 42, 0.055) 0px 5px 18px !important; }
  .data-table tbody td { border-top: 1px solid var(--ui-border) !important; border-bottom: 1px solid var(--ui-border) !important; background: var(--ui-surface) !important; padding: 11px 12px !important; }
  .data-table tbody td:first-child { border-left: 1px solid var(--ui-border) !important; border-radius: 15px 0px 0px 15px !important; }
  .data-table tbody td:last-child { border-right: 1px solid var(--ui-border) !important; border-radius: 0px 15px 15px 0px !important; }
  .data-table tbody tr:hover td { background: var(--ui-surface-2) !important; }
   .card.section .table-wrap { background: transparent !important; padding: 0px !important; border: 0px !important; }
  html:not([data-theme="dark"]) .product, html:not([data-theme="dark"]) .fast-product, html:not([data-theme="dark"]) .data-table tbody tr, html:not([data-theme="dark"]) .data-table tbody td { color: var(--ui-text) !important; }
  html[data-theme="dark"] .product, html[data-theme="dark"] .fast-product, html[data-theme="dark"] .data-table tbody tr, html[data-theme="dark"] .data-table tbody td { background: rgb(18, 27, 42) !important; color: rgb(248, 250, 252) !important; }
  input, select, textarea { border-radius: 12px !important; }
  @media (max-width: 760px) {
  :root { --bubble-gap: 10px; --bubble-radius: 18px; }
    .stats-card { border-radius: 18px !important; }
  .data-table { min-width: 640px; }
  .data-table thead th { padding: 6px 9px !important; }
  .data-table tbody td { padding: 10px 9px !important; }
  .modal-card { border-radius: 20px !important; }
}


  .bb-actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; margin-bottom: 10px; }
  .bb-actions button { height: 50px; border-radius: 14px; font-weight: 950; font-size: 14px; }
  #v265PrinterChip { position: fixed; z-index: 9000; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); display: none; align-items: center; gap: 8px; border-radius: 999px; padding: 8px 14px; font: 800 13px / 1.2 system-ui, -apple-system, "Segoe UI", Roboto, Arial; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(20, 20, 26, 0.92); color: rgb(255, 255, 255); box-shadow: rgba(0, 0, 0, 0.35) 0px 8px 24px; cursor: pointer; }
  #v265PrinterChip.warn { background: rgb(180, 83, 9); }
  #v265PrinterChip.err { background: rgb(185, 28, 28); }
  @media (max-width: 760px) {
  #v265PrinterChip { bottom: calc(84px + env(safe-area-inset-bottom)); right: 10px; font-size: 12px; padding: 7px 12px; }
}
  html.v274-ringing #wcOverlay.show, html.v274-ringing #v255Offer.on.flash { animation: 1s steps(2) 0s infinite normal none running v274flash; }
  @keyframes v274flash { 
  0% { background: rgba(220, 38, 38, 0.82); }
  50% { background: rgba(0, 0, 0, 0.82); }
}
  #v275Clock { position: fixed; z-index: 2147483000; left: 10px; right: 10px; top: calc(10px + env(safe-area-inset-top)); background: rgb(127, 29, 29); color: rgb(255, 255, 255); border: 1px solid rgb(239, 68, 68); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; font: 600 13.5px / 1.35 system-ui, -apple-system, "Segoe UI", Roboto, Arial; box-shadow: rgba(0, 0, 0, 0.45) 0px 12px 30px; }
  #v275Clock b { font-size: 15px; }
  #v275Clock button { align-self: flex-end; border: 0px; border-radius: 10px; background: rgb(255, 255, 255); color: rgb(127, 29, 29); font-weight: 900; min-height: 38px; padding: 0px 14px; }
  .v292 { display: flex; flex-direction: column; gap: 10px; }
  .v292 h4 { margin: 6px 0px 0px; font-size: 14px; }
  .v292-ok { border-radius: 12px; padding: 10px 12px; background: rgba(22, 163, 74, 0.133); border: 1px solid rgba(22, 163, 74, 0.4); font-weight: 800; }
  .v292-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .v292-sum > div { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
  .v292-sum small { display: block; color: var(--muted); font-weight: 800; font-size: 11.5px; }
  .v292-sum b { font-size: 22px; font-weight: 950; }
  .v292-list { display: flex; flex-direction: column; gap: 6px; }
  .v292-it { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 13px; padding: 9px 11px; }
  .v292-in { flex: 1 1 180px; min-width: 0px; }
  .v292-in b { display: block; font-size: 14.5px; overflow-wrap: anywhere; }
  .v292-in small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
  .v292-acts { display: flex; gap: 6px; align-items: center; flex: 0 0 auto; }
  .v292-acts button { min-height: 40px; border-radius: 10px; font-weight: 850; padding: 0px 12px; }
  .v292-q { width: 58px; height: 40px; text-align: center; border-radius: 10px; font-weight: 900; }
  .v292-mv.hidden { display: none !important; }
  .v292-mv { border: 2px solid rgb(59, 130, 246); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: rgba(59, 130, 246, 0.06); }
  .v292-mv select { min-height: 44px; border-radius: 11px; }
  .v292-two { display: flex; gap: 8px; }
  .v292-two > * { flex: 1 1 0%; min-height: 44px; border-radius: 12px; font-weight: 850; }
  .v292-add { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
  .v292-add summary { cursor: pointer; font-weight: 900; list-style: none; }
  .v292-add summary::-webkit-details-marker { display: none; }
  .v292-add[open] { display: flex; flex-direction: column; gap: 8px; }
  .v292-add > button { min-height: 46px; border-radius: 12px; font-weight: 900; }
  .v292-grid { display: grid; grid-template-columns: minmax(0px, 2fr) minmax(0px, 1fr); gap: 8px; }
  .v292-grid label, .v292-why { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 800; color: var(--muted); }
  .v292-grid select, .v292-grid input, .v292-why input { min-height: 44px; border-radius: 11px; width: 100%; box-sizing: border-box; font-size: 16px; }
  .v292-catrow { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; margin-bottom: 6px; }
  .v292-ci { font-size: 20px; }
  .v292-cn { flex: 1 1 0%; min-width: 0px; }
  .v292-cn b { display: block; }
  .v292-cn small { display: block; color: var(--muted); font-size: 11.5px; }
  .v292-catrow button { min-height: 38px; min-width: 42px; border-radius: 10px; }
  @media (max-width: 560px) {
  .v292-grid { grid-template-columns: 1fr; }
  .v292-acts { width: 100%; }
  .v292-acts button { flex: 1 1 0%; }
}
   .out { color: var(--danger); }
  .cf-accounts { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 9px; }
  .cf-accounts span { padding: 8px 11px; border-radius: 10px; background: color-mix(in srgb,var(--panel2) 90%,transparent); font-weight: 900; font-size: 12px; }


  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  


  
  
  
  :root { --theme-bg: #EEF3F8; --theme-panel: #FFFFFF; --theme-panel2: #F4F7FA; --theme-text: #0B1F33; --theme-muted: #475569; --theme-line: #94A3B8; --theme-accent: #1459D9; --theme-action: #15803D; --theme-danger: #C62828; --theme-info: #1459D9; }
  [data-theme="dark"] { --theme-bg: #0B1220; --theme-panel: #121B2A; --theme-panel2: #1B293A; --theme-text: #F8FAFC; --theme-muted: #D5DEE9; --theme-line: #64748B; --theme-accent: #3B82F6; --theme-action: #22C55E; --theme-danger: #F87171; --theme-info: #38BDF8; }
  html, body { background: var(--theme-bg) !important; color: var(--theme-text) !important; }
  body { font-size: 14px; line-height: 1.4; }
  .page, .content, .main, .section, .card, .product, .chip, .ghost, .field input, .field select, .field textarea, .modal-card, .table-action-card, .payment-method-box, .method-single-note, .method-choice, .quick-cash-buttons button { background: var(--theme-panel) !important; color: var(--theme-text) !important; border-color: var(--theme-line) !important; }
  .page, .content, .main, .section{ background: var(--theme-bg) !important; }
  body h1, body h2, body h3, body h4, body h5, body h6, body p, body li, body td, body strong, body b, .product .name, .product .title { color: var(--theme-text) !important; }
  .muted, .product .cat, .field label, .data-table th, .hint { color: var(--theme-muted) !important; }
  input, select, textarea { background: var(--theme-panel) !important; color: var(--theme-text) !important; border: 1px solid var(--theme-line) !important; }
  input::placeholder, textarea::placeholder { color: var(--theme-muted) !important; opacity: 1 !important; }
  input:where(:not(.ui-find > input, .ui-step > input, .cj-field-in > input, .buy-sheet input)):focus, select:focus, textarea:where(:not(.buy-sheet textarea, .cj-field-in > textarea)):focus { border-color: var(--theme-accent) !important; box-shadow: 0 0 0 3px color-mix(in srgb,var(--theme-accent) 18%,transparent) !important; }
  
  
  
  
  .primary, .chip.active { background: var(--theme-accent) !important; color: rgb(255, 255, 255) !important; border-color: var(--theme-accent) !important; }
  .success { background: var(--theme-action) !important; color: rgb(255, 255, 255) !important; border-color: var(--theme-action) !important; }
  .danger { background: var(--danger) !important; color: rgb(255, 255, 255) !important; border-color: var(--danger) !important; }
  .ghost { background: var(--theme-panel) !important; color: var(--theme-text) !important; border: 1px solid var(--theme-line) !important; }
  .ghost:hover { background: var(--theme-panel2) !important; color: var(--theme-text) !important; border-color: var(--theme-accent) !important; }
  .chip { background: var(--theme-panel) !important; color: var(--theme-text) !important; border-color: var(--theme-line) !important; }
  
  
  
  
  
  
   .badge.free { background: color-mix(in srgb,var(--theme-action) 14%,var(--theme-panel)) !important; color: var(--theme-action) !important; border: 1px solid color-mix(in srgb,var(--theme-action) 48%,var(--theme-panel)) !important; }
   .badge.occupied { background: color-mix(in srgb,var(--danger) 14%,var(--theme-panel)) !important; color: var(--danger) !important; border: 1px solid color-mix(in srgb,var(--danger) 48%,var(--theme-panel)) !important; }
  
  
  
  
  
  
  .product { background: var(--theme-panel) !important; color: var(--theme-text) !important; border: 1px solid var(--theme-line) !important; }
  .product .price, .product .name, .product strong { color: var(--theme-text) !important; }
  .product .cat { color: var(--theme-muted) !important; }
  .product .add, .product button { background: var(--theme-accent) !important; color: rgb(255, 255, 255) !important; border-color: var(--theme-accent) !important; }
  .data-table th { background: var(--theme-panel2) !important; color: var(--theme-text) !important; border-color: var(--theme-line) !important; }
  .data-table td { background: var(--theme-panel) !important; color: var(--theme-text) !important; border-color: var(--theme-line) !important; }
  .data-table tbody tr:hover { background: var(--theme-panel2) !important; }
  .modal { background: rgba(2, 6, 23, 0.7) !important; }
  .modal-card { background: var(--theme-panel) !important; color: var(--theme-text) !important; }
  .method-choice { background: var(--theme-panel) !important; color: var(--theme-text) !important; border-color: var(--theme-line) !important; }
  .method-choice.active { background: var(--theme-accent) !important; color: rgb(255, 255, 255) !important; border-color: var(--theme-accent) !important; }
  .toast { background: var(--theme-text) !important; color: var(--theme-panel) !important; }
  .card, .product, .modal-card { box-shadow: rgba(15, 23, 42, 0.08) 0px 2px 8px !important; }
  button:focus-visible, input:where(:not(.ui-find > input, .ui-step > input, .cj-field-in > input, .buy-sheet input)):focus-visible, select:focus-visible, textarea:where(:not(.buy-sheet textarea, .cj-field-in > textarea)):focus-visible { outline: 3px solid var(--theme-accent) !important; outline-offset: 2px !important; }
  [data-theme="dark"] .page, [data-theme="dark"] .content, [data-theme="dark"] .main{ background: var(--theme-bg) !important; color: var(--theme-text) !important; }
  [data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea { background: var(--theme-panel) !important; color: var(--theme-text) !important; }
  [data-theme="dark"] .muted, [data-theme="dark"] .field label { color: var(--theme-muted) !important; }
  
  [data-theme="dark"] .ghost, [data-theme="dark"] .method-choice { background: var(--theme-panel) !important; color: var(--theme-text) !important; }
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  body::before { background-image: var(--app-wallpaper,var(--theme-default-bg,radial-gradient(circle at 15% 20%,rgba(191,120,61,.55) 0,rgba(66,38,20,.65) 42%,rgba(10,10,12,.92) 100%))) !important; }
  html, body { background: transparent !important; }
  .page, .content, .main, .section, [data-theme="dark"] .page, [data-theme="dark"] .content, [data-theme="dark"] .main{ background: none transparent !important; }

  /* Modo día: fondo, texto y acento los define la paleta activa; aquí solo los tonos auxiliares que la paleta no trae. */
[data-theme="light"]{--glass:rgba(255,255,255,.82);--glass-strong:rgba(255,255,255,.94);--subtle:var(--muted);--accent-hover:var(--accent)}
  [data-theme="light"] body::after { background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.32) 45%, rgba(255, 255, 255, 0.58)) !important; }
  [data-theme="light"] html, [data-theme="light"] body { color: rgb(28, 36, 48) !important; }
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  [data-theme="light"] .card, [data-theme="light"] .metric, [data-theme="light"] .section, [data-theme="light"] .panel { background: rgba(255, 255, 255, 0.82) !important; color: rgb(28, 36, 48) !important; border-color: rgba(15, 23, 42, 0.1) !important; box-shadow: rgba(15, 23, 42, 0.08) 0px 10px 26px !important; }
  [data-theme="dark"] .card, [data-theme="dark"] .metric { background: rgba(28, 32, 38, 0.6) !important; color: rgb(255, 255, 255) !important; border-color: rgba(255, 255, 255, 0.14) !important; backdrop-filter: blur(18px) saturate(140%) !important; box-shadow: rgba(0, 0, 0, 0.22) 0px 10px 26px !important; }
  [data-theme="dark"] .card .muted, [data-theme="dark"] .metric .label, [data-theme="dark"] .metric .sub { color: rgb(199, 207, 218) !important; }
  [data-theme="dark"] .data-table th { background: rgba(255, 255, 255, 0.05) !important; color: rgb(199, 207, 218) !important; border-color: rgba(255, 255, 255, 0.12) !important; }
  [data-theme="dark"] .data-table td { background: transparent !important; color: rgb(255, 255, 255) !important; border-color: rgba(255, 255, 255, 0.1) !important; }
  [data-theme="light"] .muted, [data-theme="light"] .page .muted, [data-theme="light"] .hint, [data-theme="light"] .sub, [data-theme="light"] .small { color: rgb(91, 100, 114) !important; }
  [data-theme="light"] .page h1, [data-theme="light"] .page h2, [data-theme="light"] .page h3, [data-theme="light"] .page h4 { color: rgb(28, 36, 48) !important; }
  [data-theme="light"] .field label, [data-theme="light"] .label, [data-theme="light"] th { color: rgb(61, 71, 86) !important; }
  [data-theme="light"] .data-table th { background: rgba(15, 23, 42, 0.05) !important; }
  [data-theme="light"] .data-table td { color: rgb(28, 36, 48) !important; border-color: rgba(15, 23, 42, 0.1) !important; }
  [data-theme="light"] .ghost, [data-theme="light"] .method-choice, [data-theme="light"] .chip, [data-theme="light"] select, [data-theme="light"] input, [data-theme="light"] textarea { background: rgba(15, 23, 42, 0.043) !important; color: rgb(28, 36, 48) !important; border-color: rgba(15, 23, 42, 0.16) !important; }
  [data-theme="light"] .ghost:hover, [data-theme="light"] .chip:hover { background: rgba(15, 23, 42, 0.09) !important; border-color: rgba(15, 23, 42, 0.24) !important; }
  [data-theme="light"] input::placeholder, [data-theme="light"] textarea::placeholder { color: rgb(136, 145, 160) !important; }
   [data-theme="light"] .chips .chip.active { background: rgb(10, 132, 255) !important; color: rgb(255, 255, 255) !important; border-color: rgb(10, 132, 255) !important; }
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  [data-theme="light"] .modal { background: rgba(15, 23, 42, 0.32) !important; }
  [data-theme="light"] .modal-card { background: rgb(255, 255, 255) !important; color: rgb(28, 36, 48) !important; border-color: rgba(15, 23, 42, 0.1) !important; box-shadow: rgba(15, 23, 42, 0.2) 0px 30px 80px !important; }
  [data-theme="light"] .modal-card .muted { color: rgb(91, 100, 114) !important; }
  [data-theme="light"] .modal-head { border-bottom-color: rgba(15, 23, 42, 0.1) !important; }
   [data-theme="light"] #appleWallpaperManager { background: rgba(255, 255, 255, 0.92) !important; color: rgb(28, 36, 48) !important; border-color: rgba(15, 23, 42, 0.12) !important; }
   [data-theme="light"] #appleWallpaperManager p { color: rgb(91, 100, 114) !important; }
   [data-theme="light"] .chips .chip { background: rgba(15, 23, 42, 0.05) !important; color: rgb(28, 36, 48) !important; border-color: rgba(15, 23, 42, 0.16) !important; }
  [data-theme="light"] .product, [data-theme="light"] .fast-product { background: rgba(255, 255, 255, 0.88) !important; color: rgb(28, 36, 48) !important; border-color: rgba(15, 23, 42, 0.1) !important; }
  [data-theme="light"] .product .cat, [data-theme="light"] .fast-product .cat { color: rgb(91, 100, 114) !important; }
  [data-theme="light"] .product.fast-product strong, [data-theme="light"] .product strong { color: rgb(28, 36, 48) !important; }
  [data-theme="light"] .product.fast-product .price, [data-theme="light"] .product .price, [data-theme="light"] .product .name { color: rgb(28, 36, 48) !important; }
  [data-theme="light"] .qty button { background: rgba(15, 23, 42, 0.06) !important; color: rgb(28, 36, 48) !important; border-color: rgba(15, 23, 42, 0.14) !important; }
  html, body { width: 100%; min-width: 0px; height: 100%; overflow: hidden; }
  .app { width: 100%; height: 100dvh; min-height: 0px; min-width: 0px; overflow: hidden; }
  .content { min-width: 0px; min-height: 0px; height: 100dvh; overflow: hidden; }
  .page { min-width: 0px; min-height: 0px; max-width: 100%; }
  
  
  
  
  
  
  
  @media (max-width: 760px) {
  html, body { overflow: auto !important; }
  .app { display: block !important; height: auto !important; min-height: 100dvh !important; overflow: visible !important; }
  
  .content { height: auto !important; min-height: 100dvh !important; overflow: visible !important; }
  
  
}
  @media (max-width: 760px) {
  html, body { width: 100%; max-width: 100%; height: 100%; overscroll-behavior: none; overflow: hidden !important; }
  .app, .content { width: 100%; max-width: 100%; min-width: 0px; }
  .app { height: 100dvh !important; min-height: 100dvh !important; overflow: hidden !important; }
  .content { height: 100dvh !important; min-height: 0px !important; overflow: hidden !important; }
  
  
  
  
  
  
  
  
  
  
  
  
  
  .page { max-width: 100% !important; min-width: 0px !important; box-sizing: border-box !important; }
  .page:not(#ventas) { height: calc(-122px + 100dvh) !important; min-height: 0px !important; overflow: auto !important; padding-bottom: 78px !important; }
  
  
}
   .fast-product:active { transform: scale(0.985); }
  @media (max-width: 760px) {
  body.table-operation-mode { overflow: hidden !important; width: 100% !important; }
  body.table-operation-mode .content { width: 100vw !important; height: 100dvh !important; min-height: 100dvh !important; max-height: 100dvh !important; overflow: hidden !important; padding: 0px !important; margin: 0px !important; }
}
  
  
  
  
  
  .method-choice.active { background: var(--theme-action) !important; border-color: var(--theme-action) !important; color: rgb(255, 255, 255) !important; }
  


  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  .inv-title-wrap { display: flex; align-items: center; gap: 12px; min-width: 0px; }
  .inv-title-wrap h2 { margin: 0px; font-size: 24px; line-height: 1.05; color: var(--text); }
  .inv-title-wrap span { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted); }
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  html { width: 100%; min-width: 0px; min-height: 100%; overflow: hidden auto !important; }
  body { width: 100%; min-width: 0px; min-height: 100dvh; height: auto !important; overflow: hidden auto !important; }
  .app { width: 100%; min-width: 0px; min-height: 100dvh; height: auto !important; overflow: visible !important; }
  .content { min-width: 0px; min-height: 100dvh; height: auto !important; overflow: visible !important; }
  .page { min-width: 0px; min-height: 0px; height: auto !important; overflow: visible !important; }
  .modal { overflow: auto !important; align-items: safe center !important; padding: clamp(8px, 2vh, 20px) !important; box-sizing: border-box !important; }
  .modal-card { max-width: calc(-16px + 100vw) !important; max-height: calc(-16px + 100dvh) !important; overflow: auto !important; box-sizing: border-box !important; }
  .modal-card.wide { max-width: calc(-16px + 100vw) !important; max-height: calc(-16px + 100dvh) !important; overflow: hidden !important; }
  .modal-card.wide #modalBody { max-height: calc(-74px + 100dvh) !important; overflow: auto !important; }
  .modal-card button, .modal-card input, .modal-card select, .modal-card textarea { max-width: 100%; box-sizing: border-box; }
  @media (max-height: 850px) {
  .app { height: auto !important; min-height: 100dvh !important; overflow: visible !important; }
  .content { height: auto !important; min-height: 100dvh !important; overflow: visible !important; }
  .page { height: auto !important; min-height: calc(-70px + 100dvh) !important; overflow: visible !important; }
  .modal { align-items: safe center !important; overflow: auto !important; }
  .modal-card { margin: 0px auto !important; }
}
  @media (max-height: 650px) {
  
  .page { padding-bottom: 90px !important; }
  .modal { padding: 6px !important; }
  .modal-card { max-height: calc(-12px + 100dvh) !important; }
  .modal-card.wide #modalBody { max-height: calc(-64px + 100dvh) !important; }
}
  @media (max-height: 850px) {
  .modal-card.wide[data-kind~="payment-charge-screen"] #modalBody { overflow: auto !important; }
}
  @media (max-width: 760px) {
  body { padding-bottom: 0px !important; }
  .content { overflow: visible !important; }
  .page:not(#ventas) { height: auto !important; min-height: calc(-122px + 100dvh) !important; overflow: visible !important; }
}
  html, body { min-height: 100%; height: auto !important; overflow: hidden auto !important; }
  body { min-height: 100dvh; }
  .app { min-height: 100dvh !important; height: auto !important; overflow: visible !important; }
  .content { min-width: 0px !important; min-height: 100dvh !important; height: auto !important; overflow: visible !important; }
  .page { overscroll-behavior: contain; min-height: 0px !important; height: auto !important; overflow: auto !important; }
  .modal { overflow: hidden auto !important; align-items: flex-start !important; justify-content: center !important; padding: 12px !important; }
  .modal-card { flex: 0 0 auto; width: min(560px, 100%) !important; max-width: 100% !important; max-height: calc(-24px + 100dvh) !important; overflow: auto !important; }
  .modal-card.wide { max-height: calc(-24px + 100dvh) !important; overflow: auto !important; }
  .modal-card.wide #modalBody { max-height: none !important; overflow: visible !important; }
  @media (max-height: 900px), (max-width: 900px) {
  .modal { padding: 8px !important; }
  .modal-card { max-height: calc(-16px + 100dvh) !important; }
  .modal-card.wide { max-height: calc(-16px + 100dvh) !important; }
}
  @media (max-width: 760px) {
  .app { min-height: 100dvh !important; height: auto !important; }
  .content { min-height: calc(-60px + 100dvh) !important; }
  .page { overflow: visible !important; padding-bottom: 90px !important; }
  .modal-card, .modal-card.wide{ width: 100% !important; max-width: 100% !important; max-height: calc(-12px + 100dvh) !important; }
}
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  

  
  
  
  body.role-restricted [data-view][data-permission-hidden="true"]{ display: none !important; }
  
  
  
  
  
  
  
  
  .modal { align-items: safe center !important; }
  .modal-card.wide:not([data-kind~="product-select-modal"]):not([data-kind~="payment-charge-screen"]) { max-height: calc(-24px + 100dvh) !important; overflow: hidden auto !important; }
  .modal-card.wide:not([data-kind~="product-select-modal"]):not([data-kind~="payment-charge-screen"]) #modalBody { max-height: none !important; overflow: visible !important; }
  .fichera-pay-grid { display: grid; grid-template-columns: repeat(3, minmax(0px, 1fr)); gap: 8px; margin-bottom: 12px; }
  .fichera-pay-box { padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel2); }
  .fichera-pay-box span { display: block; color: var(--muted); font-size: 10px; font-weight: 800; }
  .fichera-pay-box strong { display: block; font-size: 19px; margin-top: 3px; }
  .fichera-pay-total { padding: 13px; border: 2px solid var(--ok); border-radius: 13px; background: color-mix(in srgb,var(--ok) 8%,var(--panel)); margin-bottom: 12px; }
  .fichera-pay-total span { display: block; color: var(--muted); font-size: 10px; font-weight: 900; text-transform: uppercase; }
  .fichera-pay-total strong { display: block; color: var(--ok); font-size: 29px; margin-top: 3px; }
  .fichera-pay-choice { margin-top: 10px; }
  .fichera-pay-note { font-size: 11px; color: var(--muted); margin-top: 7px; }
  @media (max-width: 650px) {
  .fichera-pay-grid { grid-template-columns: 1fr 1fr; }
  .fichera-pay-total { grid-column: 1 / -1; }
}
  
  
  
  body.waiter-portal-active .content { width: 100% !important; }
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  html[data-theme="dark"][data-theme="dark"][data-theme="dark"][data-theme="dark"] .card, html[data-theme="dark"][data-theme="dark"][data-theme="dark"][data-theme="dark"] .metric, html[data-theme="dark"][data-theme="dark"][data-theme="dark"][data-theme="dark"] .table-action-card, html[data-theme="dark"][data-theme="dark"][data-theme="dark"][data-theme="dark"] .payment-method-box, html[data-theme="dark"][data-theme="dark"][data-theme="dark"][data-theme="dark"] .admin-security-note, html[data-theme="dark"][data-theme="dark"][data-theme="dark"][data-theme="dark"] .stats-card, html[data-theme="dark"][data-theme="dark"][data-theme="dark"][data-theme="dark"] .staff-pay-card, html[data-theme="dark"][data-theme="dark"][data-theme="dark"][data-theme="dark"] .staff-pay-grid > div, html[data-theme="dark"][data-theme="dark"][data-theme="dark"][data-theme="dark"] .product.fast-product, html[data-theme="dark"][data-theme="dark"][data-theme="dark"][data-theme="dark"] .fichera-pay-box { background: var(--glass,rgba(18,24,34,.72)) !important; backdrop-filter: blur(24px) saturate(140%) !important; border-color: rgba(255, 255, 255, 0.16) !important; }
  html[data-theme="dark"][data-theme="dark"][data-theme="dark"][data-theme="dark"] .ghost, html[data-theme="dark"][data-theme="dark"][data-theme="dark"][data-theme="dark"] .chip { background: rgba(255, 255, 255, 0.055) !important; border-color: rgba(255, 255, 255, 0.16) !important; }
  html[data-theme="dark"][data-theme="dark"][data-theme="dark"][data-theme="dark"] input:where(:not(.ui-find > input, .ui-step > input)), html[data-theme="dark"][data-theme="dark"][data-theme="dark"][data-theme="dark"] select, html[data-theme="dark"][data-theme="dark"][data-theme="dark"][data-theme="dark"] textarea{ background: rgba(255, 255, 255, 0.05) !important; border-color: rgba(255, 255, 255, 0.16) !important; }
  html[data-theme="dark"][data-theme="dark"][data-theme="dark"][data-theme="dark"] .modal-card { background: rgba(17, 23, 33, 0.9) !important; backdrop-filter: blur(28px) saturate(140%) !important; }
  html[data-theme="dark"][data-theme="dark"][data-theme="dark"][data-theme="dark"] h1, html[data-theme="dark"][data-theme="dark"][data-theme="dark"][data-theme="dark"] h2, html[data-theme="dark"][data-theme="dark"][data-theme="dark"][data-theme="dark"] h3, html[data-theme="dark"][data-theme="dark"][data-theme="dark"][data-theme="dark"] h4, html[data-theme="dark"][data-theme="dark"][data-theme="dark"][data-theme="dark"] p, html[data-theme="dark"][data-theme="dark"][data-theme="dark"][data-theme="dark"] li, html[data-theme="dark"][data-theme="dark"][data-theme="dark"][data-theme="dark"] td, html[data-theme="dark"][data-theme="dark"][data-theme="dark"][data-theme="dark"] th, html[data-theme="dark"][data-theme="dark"][data-theme="dark"][data-theme="dark"] strong, html[data-theme="dark"][data-theme="dark"][data-theme="dark"][data-theme="dark"] b, html[data-theme="dark"][data-theme="dark"][data-theme="dark"][data-theme="dark"] label, html[data-theme="dark"][data-theme="dark"][data-theme="dark"][data-theme="dark"] .value, html[data-theme="dark"][data-theme="dark"][data-theme="dark"][data-theme="dark"] .label, html[data-theme="dark"][data-theme="dark"][data-theme="dark"][data-theme="dark"] .field label, html[data-theme="dark"][data-theme="dark"][data-theme="dark"][data-theme="dark"] .product strong { color: rgb(244, 247, 251) !important; }
  html[data-theme="dark"][data-theme="dark"][data-theme="dark"][data-theme="dark"] .muted, html[data-theme="dark"][data-theme="dark"][data-theme="dark"][data-theme="dark"] .hint, html[data-theme="dark"][data-theme="dark"][data-theme="dark"][data-theme="dark"] .sub, html[data-theme="dark"][data-theme="dark"][data-theme="dark"][data-theme="dark"] .small, html[data-theme="dark"][data-theme="dark"][data-theme="dark"][data-theme="dark"] .product .cat, html[data-theme="dark"][data-theme="dark"][data-theme="dark"][data-theme="dark"] .data-table th { color: rgb(195, 204, 218) !important; }
  html[data-theme="dark"][data-theme="dark"][data-theme="dark"][data-theme="dark"] input:where(:not(.ui-find > input, .ui-step > input)), html[data-theme="dark"][data-theme="dark"][data-theme="dark"][data-theme="dark"] select, html[data-theme="dark"][data-theme="dark"][data-theme="dark"][data-theme="dark"] textarea { color: rgb(244, 247, 251) !important; }
  html[data-theme="dark"][data-theme="dark"][data-theme="dark"][data-theme="dark"] input::placeholder, html[data-theme="dark"][data-theme="dark"][data-theme="dark"][data-theme="dark"] textarea::placeholder { color: rgb(139, 150, 168) !important; opacity: 1 !important; }
  html:not([data-theme="dark"]):not([data-theme="dark"]):not([data-theme="dark"]):not([data-theme="dark"]) h1, html:not([data-theme="dark"]):not([data-theme="dark"]):not([data-theme="dark"]):not([data-theme="dark"]) h2, html:not([data-theme="dark"]):not([data-theme="dark"]):not([data-theme="dark"]):not([data-theme="dark"]) h3, html:not([data-theme="dark"]):not([data-theme="dark"]):not([data-theme="dark"]):not([data-theme="dark"]) h4, html:not([data-theme="dark"]):not([data-theme="dark"]):not([data-theme="dark"]):not([data-theme="dark"]) strong, html:not([data-theme="dark"]):not([data-theme="dark"]):not([data-theme="dark"]):not([data-theme="dark"]) b, html:not([data-theme="dark"]):not([data-theme="dark"]):not([data-theme="dark"]):not([data-theme="dark"]) label, html:not([data-theme="dark"]):not([data-theme="dark"]):not([data-theme="dark"]):not([data-theme="dark"]) .page h1, html:not([data-theme="dark"]):not([data-theme="dark"]):not([data-theme="dark"]):not([data-theme="dark"]) .page h2, html:not([data-theme="dark"]):not([data-theme="dark"]):not([data-theme="dark"]):not([data-theme="dark"]) .modal-card h2, html:not([data-theme="dark"]):not([data-theme="dark"]):not([data-theme="dark"]):not([data-theme="dark"]) .modal-card h3, html:not([data-theme="dark"]):not([data-theme="dark"]):not([data-theme="dark"]):not([data-theme="dark"]) .modal-head, html:not([data-theme="dark"]):not([data-theme="dark"]):not([data-theme="dark"]):not([data-theme="dark"]) .product .price, html:not([data-theme="dark"]):not([data-theme="dark"]):not([data-theme="dark"]):not([data-theme="dark"]) .fast-product .price { color: rgb(23, 32, 51) !important; }
  .page { overscroll-behavior: auto !important; overflow-x: clip !important; }
  .page .table-wrap { overscroll-behavior-x: contain; overflow-x: auto !important; overscroll-behavior-y: auto !important; }
  @media (min-width: 761px) {
  html, body { overscroll-behavior: auto !important; }
}
  html[data-theme="dark"] select { color-scheme: dark; }
  html[data-theme="dark"] select option, html[data-theme="dark"] select optgroup { background: rgb(20, 28, 43) !important; color: rgb(248, 250, 252) !important; }
  html:not([data-theme="dark"]) select { color-scheme: light; }
  html:not([data-theme="dark"]) select option, html:not([data-theme="dark"]) select optgroup { background: rgb(255, 255, 255) !important; color: rgb(17, 24, 39) !important; }
  select option:disabled { color: rgb(138, 148, 166) !important; }
  #paidAccountsMethod { border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 9px; padding: 8px 10px; font-size: 11px; font-weight: 700; }
  @media (hover: hover) and (pointer: fine) {
  .card, .metric, .section, .panel, .box, .modal, .modal-card, #appleWallpaperManager { backdrop-filter: none !important; }
  body::before { filter: none !important; transform: none !important; }
  .product:hover{ transform: none !important; }
}
  html.perf-lite-blur .card, html.perf-lite-blur .metric, html.perf-lite-blur .section, html.perf-lite-blur .panel, html.perf-lite-blur .box, html.perf-lite-blur .modal, html.perf-lite-blur .modal-card, html.perf-lite-blur #appleWallpaperManager { backdrop-filter: none !important; }
  html.perf-lite-blur body::before { filter: none !important; transform: none !important; }
  html.club-hdrag, html.club-hdrag * { cursor: grabbing !important; user-select: none !important; }
  @media (max-height: 560px) and (orientation: landscape) and (pointer: coarse) {
  
  
  .page { padding: 10px 12px 74px !important; overflow-y: auto !important; }
  
  
  
  
   .form-grid > * { min-width: 0px !important; }
  
  .tables{ grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important; }
  .table-wrap { overflow-x: auto !important; }
  .modal-card { max-height: 92dvh !important; overflow-y: auto !important; }
  .metric .value { font-size: 18px !important; }
}
  @media (max-height: 430px) and (orientation: landscape) and (pointer: coarse) {
  
  .page { padding: 8px 10px 66px !important; }
  
  
  
  
}
  
  
  
  
  
  
  
  
  
  
  
  
  @keyframes wcPulse { 
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
  @keyframes wcFlash { 
  0% { background: rgba(200, 20, 30, 0.94); }
  100% { background: rgba(245, 165, 36, 0.94); }
}
  .wc-banner { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 1000010; width: min(720px, 100% - 20px); display: flex; flex-direction: column; gap: 6px; }
  .wc-banner-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgb(180, 35, 24); color: rgb(255, 255, 255); font-size: 12px; box-shadow: rgba(0, 0, 0, 0.35) 0px 10px 30px; }
  .wc-banner-row > span { flex: 1 1 0%; min-width: 0px; }
  .wc-banner-row button { white-space: nowrap; color: rgb(255, 255, 255) !important; border-color: rgba(255, 255, 255, 0.5) !important; }
  .section:not(.card):not(.panel):not(.metric):not(.box) { background: transparent !important; border: 0px !important; box-shadow: none !important; backdrop-filter: none !important; }
  @media (max-width: 760px) {
  html { height: auto !important; overflow: hidden auto !important; }
  body { height: auto !important; min-height: 100dvh !important; overflow: clip visible !important; }
  body:not(.table-operation-mode) .app, body:not(.table-operation-mode) .content { height: auto !important; min-height: 100dvh !important; overflow: visible !important; }
}
  @media (max-width: 760px) {
  
  
  
  body.ui-v249 .page { padding-top: calc(10px + env(safe-area-inset-top,0px)) !important; padding-bottom: calc(88px + env(safe-area-inset-bottom,0px)) !important; }
  
  
  
  
  
  
  
  
  
  body.ui-v249 #pushPill { bottom: calc(84px + env(safe-area-inset-bottom,0px)) !important; }
  body.ui-v249.table-operation-mode #pushPill { bottom: calc(12px + env(safe-area-inset-bottom,0px)) !important; }
}
  body.waiter-portal-active .app > .content, body.ui-v249-waiter .app > .content { grid-column: 1 / -1 !important; width: 100% !important; max-width: 100% !important; }
  
  #v250LoginCover { position: fixed; inset: 0px; z-index: 999990; background: rgb(11, 16, 32); pointer-events: auto; }
  html:not([data-theme="dark"]) #v250LoginCover { background: rgb(238, 241, 246); }
  body.v250-locked #uiV249Sheet { display: none !important; }
  
  @media (max-width: 760px) {
  
  html body.ui-v249 .content > .page:not(#ventas), html body.ui-v249 .page:not(#ventas) { padding-bottom: calc(96px + env(safe-area-inset-bottom,0px)) !important; }
  body.ui-v249 #pushPill { bottom: calc(76px + env(safe-area-inset-bottom,0px)) !important; }
  body.ui-v249 #v250StatusCover { position: fixed; left: 0px; right: 0px; top: 0px; height: env(safe-area-inset-top,0px); background: var(--bg,#0b0f17); z-index: 1090; pointer-events: none; display: block !important; }
  html:not([data-theme="dark"]) body.ui-v249 #v250StatusCover { background: rgb(238, 241, 246); }
}
  :root { --v252-r: 16px; }
  html body .stats-title-wrap h2 { font-size: 24px !important; line-height: 1.05 !important; margin: 0px !important; }
  html body .stats-title-wrap p { font-size: 12.5px !important; color: var(--muted) !important; margin: 3px 0px 0px !important; }
  html body :is(#usuarios, #menuadmin, #gastos, #reportes) .card:not(.metric) { background-image: none !important; border: 1px solid var(--line) !important; border-radius: var(--v252-r) !important; box-shadow: none !important; backdrop-filter: none !important; }
  html body :is(#usuarios, #menuadmin, #gastos, #reportes) .card .card:not(.metric) { background: var(--panel) !important; border-radius: 14px !important; }
  html body :is(#usuarios, #menuadmin, #gastos, #reportes) .card:not(.metric) :is(h2, h3) { font-size: 15px !important; line-height: 1.2 !important; color: var(--text) !important; font-weight: 850 !important; }
  html body .page .card.metric { background-image: none !important; border: 1px solid var(--line) !important; border-radius: 14px !important; padding: 10px 12px !important; box-shadow: none !important; backdrop-filter: none !important; min-width: 0px !important; min-height: 0px !important; display: flex !important; flex-direction: column !important; align-items: flex-start !important; justify-content: flex-start !important; gap: 2px !important; }
  html body .page .card.metric .label { order: 2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; font-size: 10.5px !important; font-weight: 850 !important; letter-spacing: 0.03em !important; color: var(--muted) !important; text-transform: none !important; margin: 0px !important; }
  html body .page .card.metric .value { order: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; font-size: 22px !important; font-weight: 950 !important; line-height: 1.1 !important; color: var(--text) !important; margin: 0px !important; }
  html body .page .card.metric .sub { order: 3; font-size: 10.5px !important; color: var(--muted) !important; margin: 2px 0px 0px !important; line-height: 1.3 !important; }
  @media (max-width: 760px) {
  html body .page .card.metric .value { font-size: 19px !important; }
}
  html body .page .chips { scrollbar-width: none; display: flex !important; gap: 8px !important; overflow-x: auto !important; flex-wrap: nowrap !important; padding: 1px 0px 4px !important; }
  html body .page .chips::-webkit-scrollbar { display: none; }
  html body .page .chips .chip { flex: 0 0 auto !important; height: 38px !important; min-height: 38px !important; padding: 0px 15px !important; border-radius: 999px !important; border: 1px solid var(--line) !important; background: var(--panel2) !important; color: var(--text) !important; font-size: 12.5px !important; font-weight: 800 !important; white-space: nowrap !important; box-shadow: none !important; }
  html body .page .chips .chip.active { background: var(--info) !important; border-color: var(--info) !important; color: rgb(255, 255, 255) !important; }
  
  
  html body .page:not(#ventas) button.primary { border-radius: 12px !important; box-shadow: none !important; }
  html body .page:not(#ventas) :is(button.ghost) { border-radius: 11px !important; box-shadow: none !important; }
  html body .page:not(#ventas) :is(button.ghost) { background: var(--panel2) !important; border: 1px solid var(--line) !important; }
  
  
  
  
  
  
  @media (min-width: 761px) {
  html body:not(.club-attendance-locked):not(.mobile-sheet-open) { overflow: clip visible !important; }
  
}
  #modal { left: 0px !important; right: 0px !important; width: auto !important; max-width: none !important; }
  #modal .modal-card { max-width: min(100%,var(--v265-card-max,9999px)) !important; box-sizing: border-box !important; }
  #modal, #modal .modal-card { overscroll-behavior: contain !important; }
  #modal .modal-card { }
  html.v267-lock, html.v267-lock body { overflow: hidden !important; overscroll-behavior: none !important; }
  html.v267-lock body { position: fixed !important; left: 0px !important; right: 0px !important; width: 100% !important; top: var(--v267-lock-top,0px) !important; }
  .v268-tip { position: fixed; z-index: 9500; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom)); width: min(560px, -24px + 100vw); background: rgb(17, 24, 39); color: rgb(255, 255, 255); border: 1px solid rgb(55, 65, 81); border-radius: 16px; padding: 12px 14px; box-shadow: rgba(0, 0, 0, 0.45) 0px 12px 30px; display: flex; gap: 10px; align-items: center; font: 600 13.5px / 1.35 system-ui, -apple-system, "Segoe UI", Roboto, Arial; }
  .v268-tip b { display: block; font-size: 14.5px; }
  .v268-tip button { flex: 0 0 auto; min-height: 40px; border-radius: 10px; font-weight: 900; border: 0px; padding: 0px 12px; }
  .v268-tip .go { background: rgb(22, 163, 74); color: rgb(255, 255, 255); }
  .v268-tip .no { background: transparent; color: rgb(156, 163, 175); border: 1px solid rgb(55, 65, 81); }
  #modal .row { flex-wrap: wrap; }
  #modal select, #modal input, #modal textarea { max-width: 100%; box-sizing: border-box; }
  #modal select, #modal input:not([type="checkbox"]):not([type="radio"]), #modal textarea { min-width: 0px; }
  html.pc-layout { --pcz: 1; --pc-sb: 234px; }
  html.pc-layout .app { zoom: var(--pcz); height: calc(100vh / var(--pcz)) !important; min-height: 0px !important; }
  html.pc-layout .content { height: calc(100vh / var(--pcz)) !important; min-height: 0px !important; }
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  html.pc-layout #modal { zoom: var(--pcz); }
  html.pc-layout #modal .modal-card { max-height: calc(92vh / var(--pcz)) !important; }
  
  
  
  
  
  
  html.pc-layout .page:not(#ventas):not(#mesas) { max-width: 1640px; box-sizing: border-box; width: 100% !important; margin-left: auto !important; margin-right: auto !important; }
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  html.pc-layout .page th { font-size: 11.5px !important; }
  html.pc-layout .page .card .label, html.pc-layout .page .card .sub { font-size: 12px !important; }
  html.pc-layout .page small { letter-spacing: normal; }
  .info-freshness { font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  html body #modal .modal-card[data-kind~="v254Lines"] { display: flex !important; flex-direction: column !important; overflow: hidden !important; max-height: calc(-24px + 100dvh) !important; padding: 0px !important; }
  html body #modal .modal-card[data-kind~="v254Lines"] .modal-head { flex: 0 0 auto !important; margin: 0px !important; padding: 14px 16px !important; }
  html body #modal .modal-card #modalBody[data-kind~="v254Lines"] { flex: 1 1 auto !important; min-height: 0px !important; max-height: calc(-110px + 100dvh) !important; overflow: auto !important; padding: 16px !important; box-sizing: border-box !important; }
  html body .app, html body .content { max-width: 100%; min-width: 0px !important; height: 100dvh !important; }
  html body .modal { box-sizing: border-box; padding: max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left)); }
  html body .modal-card:not([data-kind~="product-select-modal"]) { box-sizing: border-box; overscroll-behavior: contain; max-width: 100% !important; max-height: calc(-24px + 100dvh) !important; }
  html body .modal-card.wide:not([data-kind~="product-select-modal"]) #modalBody { max-height: calc(-110px + 100dvh) !important; overflow: auto !important; }
  html body .modal-card :is(input, select, textarea) { min-width: 0px; max-width: 100%; box-sizing: border-box; }
  html body [data-permission-hidden="true"] { display: none !important; }
  @media (max-width: 760px) {
  html body .modal-card :is(input, select, textarea) { min-height: 44px; font-size: 16px !important; }
  html body .modal-card button:where(:not(.ui-step > button, .mz-seg > button, .ui-area-dot)) { min-height: 44px; }
}
  @media (max-height: 500px) {
  html body .modal { padding: 6px; }
  html body .modal-card:not([data-kind~="product-select-modal"]) { max-height: calc(-12px + 100dvh) !important; }
  html body .modal-card.wide:not([data-kind~="product-select-modal"]) #modalBody { max-height: calc(-84px + 100dvh) !important; }
  
}
  .precision-kpis { display: grid; grid-template-columns: repeat(4, minmax(0px, 1fr)); gap: 12px; margin: 16px 0px; }
  .precision-kpis > div { padding: 16px; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; }
  .precision-kpis small { display: block; color: var(--muted); margin-bottom: 8px; }
  .precision-kpis b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
  .precision-scroll { max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
  .precision-scroll table { border-collapse: collapse; width: 100%; min-width: 850px; text-align: left; font-size: 13px; }
  .precision-scroll :is(th, td) { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
  .precision-scroll th { background: var(--panel2); white-space: nowrap; }
  .precision-scroll td:not(:first-child) { font-variant-numeric: tabular-nums; text-align: right; }
  .precision-scroll small { display: block; color: var(--muted); }
  .precision-scroll summary { cursor: pointer; min-height: 44px; }
  .precision-line { min-width: 280px; line-height: 1.5; border-top: 1px solid var(--line); padding: 12px 0px; }
  .precision-line ul { padding-left: 18px; }
  .precision-note, .precision-audit p { color: var(--muted); line-height: 1.6; font-size: 13px; }
  .precision-tools { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin: 18px 0px; }
  .precision-tools label { flex: 1 1 0%; max-width: 500px; font-size: 12px; }
  .precision-tools input { display: block; width: 100%; box-sizing: border-box; min-height: 44px; font-size: 16px; margin-top: 8px; }
  .precision-tools button { min-height: 44px; }
  .precision-audit { margin: 24px 0px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
  .precision-audit summary { cursor: pointer; min-height: 44px; font-weight: 600; }
  .precision-audit ul { max-height: 440px; overflow: auto; padding-left: 20px; }
  .precision-audit li { padding: 8px 0px; font-size: 13px; overflow-wrap: anywhere; }
  .precision-audit small { display: block; color: var(--muted); }
  @media (max-width: 900px) {
  .precision-kpis { grid-template-columns: repeat(2, minmax(0px, 1fr)); }
  .precision-tools { display: block; }
  .precision-tools button { margin-top: 12px; }
  .precision-kpis b { font-size: 18px; }
}
  @media (max-width: 360px) {
  .precision-kpis { grid-template-columns: 1fr; }
}
  .precision-subhead { margin: 14px 0px 6px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.02em; color: var(--muted); }
  .precision-scroll table.precision-breakdown { min-width: 0px; width: 100%; margin-bottom: 6px; font-size: 12px; }
  .precision-scroll table.precision-breakdown :is(th, td) { padding: 7px 9px; }
  .precision-warn { color: var(--danger,#e5484d); font-weight: 700; }
  :root { --mx-ground: #EDEEF2; --mx-surface: #FFFFFF; --mx-tile: rgba(20,20,30,.03); --mx-line: rgba(20,20,30,.09); --mx-line-soft: rgba(20,20,30,.06); --mx-ink: #15161A; --mx-muted: #63656E; --mx-faint: #9A9CA6; --mx-glass: rgba(255,255,255,.6); --mx-glass-strong: rgba(255,255,255,.8); --mx-glass-border: rgba(20,20,30,.08); --mx-blur: 20px; --mx-blue: #2E63DB; --mx-blue-tint: rgba(46,99,219,.1); --mx-green: #188A52; --mx-green-tint: rgba(24,138,82,.1); --mx-amber: #A8700C; --mx-amber-tint: rgba(168,112,12,.1); --mx-rose: #B93A31; --mx-rose-tint: rgba(185,58,49,.1); --mx-shadow: 0 1px 1px rgba(15,16,20,.03), 0 14px 30px -16px rgba(15,16,20,.14); --mx-sans: 'Manrope',ui-sans-serif,-apple-system,system-ui,sans-serif; }
  [data-theme="dark"] { --mx-ground: #07070A; --mx-surface: #15130F; --mx-tile: rgba(255,255,255,.035); --mx-line: rgba(255,255,255,.1); --mx-line-soft: rgba(255,255,255,.07); --mx-ink: #F2F2F4; --mx-muted: #9A9BA6; --mx-faint: #5D5E68; --mx-glass: rgba(255,255,255,.06); --mx-glass-strong: rgba(255,255,255,.1); --mx-glass-border: rgba(255,255,255,.13); --mx-blue: #6F97FF; --mx-blue-tint: rgba(111,151,255,.16); --mx-green: #49D08C; --mx-green-tint: rgba(73,208,140,.14); --mx-amber: #E7AE4E; --mx-amber-tint: rgba(231,174,78,.14); --mx-rose: #EC776C; --mx-rose-tint: rgba(236,119,108,.14); --mx-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 16px 34px -18px rgba(0,0,0,.7); }
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  #modalBody .table-action-card { display: flex; align-items: center; gap: 12px; text-align: left; background: var(--mx-surface,var(--panel2)) !important; border: 1px solid var(--mx-line,var(--line)) !important; border-radius: 13px !important; padding: 13px !important; }
  #modalBody .table-action-card span { flex-shrink: 0; display: flex; color: var(--mx-blue,var(--accent)) !important; }
  #modalBody .table-action-card b { display: block; font-size: 13px !important; color: var(--mx-ink,var(--text)) !important; }
  #modalBody .table-action-card small { color: var(--mx-faint,var(--muted)) !important; font-size: 11px !important; }
  
  :root { --aur-ground: #F3F3F5; --aur-ink: #15161A; --aur-ink-muted: #63656E; --aur-ink-faint: #9A9CA6; --aur-glass: rgba(255,255,255,.58); --aur-glass-strong: rgba(255,255,255,.78); --aur-glass-border: rgba(20,20,30,.09); --aur-line: rgba(20,20,30,.08); --aur-line-soft: rgba(20,20,30,.05); --aur-blue: #2E63DB; --aur-blue-tint: rgba(46,99,219,.12); --aur-green: #188A52; --aur-green-tint: rgba(24,138,82,.12); --aur-amber: #A8700C; --aur-amber-tint: rgba(168,112,12,.12); --aur-rose: #B93A31; --aur-rose-tint: rgba(185,58,49,.12); --aur-blur: 20px; --aur-shadow: 0 1px 1px rgba(15,16,20,.03), 0 16px 36px -20px rgba(15,16,20,.16); --aur-sans: 'Manrope',ui-sans-serif,-apple-system,system-ui,sans-serif; --aur-r-sm: 8px; --aur-r-md: 12px; --aur-r-lg: 16px; --aur-r-pill: 999px; --aur-r-full: 50%; --aur-invert-bg: #15161A; --aur-invert-ink: #F5F5F7; }
  @media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --aur-ground: #08080A; --aur-ink: #F2F2F4; --aur-ink-muted: #9A9BA6; --aur-ink-faint: #5D5E68; --aur-glass: rgba(255,255,255,.055); --aur-glass-strong: rgba(255,255,255,.09); --aur-glass-border: rgba(255,255,255,.12); --aur-line: rgba(255,255,255,.09); --aur-line-soft: rgba(255,255,255,.06); --aur-blue: #6F97FF; --aur-blue-tint: rgba(111,151,255,.16); --aur-green: #49D08C; --aur-green-tint: rgba(73,208,140,.14); --aur-amber: #E7AE4E; --aur-amber-tint: rgba(231,174,78,.14); --aur-rose: #EC776C; --aur-rose-tint: rgba(236,119,108,.14); --aur-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 20px 44px -20px rgba(0,0,0,.7); }
}
  :root[data-theme="dark"] { --aur-ground: #08080A; --aur-ink: #F2F2F4; --aur-ink-muted: #9A9BA6; --aur-ink-faint: #5D5E68; --aur-glass: rgba(255,255,255,.055); --aur-glass-strong: rgba(255,255,255,.09); --aur-glass-border: rgba(255,255,255,.12); --aur-line: rgba(255,255,255,.09); --aur-line-soft: rgba(255,255,255,.06); --aur-blue: #6F97FF; --aur-blue-tint: rgba(111,151,255,.16); --aur-green: #49D08C; --aur-green-tint: rgba(73,208,140,.14); --aur-amber: #E7AE4E; --aur-amber-tint: rgba(231,174,78,.14); --aur-rose: #EC776C; --aur-rose-tint: rgba(236,119,108,.14); --aur-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 20px 44px -20px rgba(0,0,0,.7); }
  :root[data-theme="light"] { --aur-ground: #F3F3F5; --aur-ink: #15161A; --aur-ink-muted: #63656E; --aur-ink-faint: #9A9CA6; --aur-glass: rgba(255,255,255,.58); --aur-glass-strong: rgba(255,255,255,.78); --aur-glass-border: rgba(20,20,30,.09); --aur-line: rgba(20,20,30,.08); --aur-line-soft: rgba(20,20,30,.05); --aur-blue: #2E63DB; --aur-blue-tint: rgba(46,99,219,.12); --aur-green: #188A52; --aur-green-tint: rgba(24,138,82,.12); --aur-amber: #A8700C; --aur-amber-tint: rgba(168,112,12,.12); --aur-rose: #B93A31; --aur-rose-tint: rgba(185,58,49,.12); --aur-shadow: 0 1px 1px rgba(15,16,20,.03), 0 16px 36px -20px rgba(15,16,20,.16); }
  body { background-color: var(--aur-ground) !important; }
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  @media screen {
  @layer night-home {
  html { --home-default-wallpaper: var(--club-satin-wallpaper); --home-bg: #060708; --home-accent: #e5bb80; --home-text: #f2eee7; --home-muted: #aca9a4; --home-subtitle: #c7c3bc; --home-label: #c0bdb7; --home-success: #9fceaa; --home-danger: #f0a39b; --home-heading: #d5d0c8; --home-axis: #aaa69e; --home-arrow: #a29a8d; --home-sidebar-top: #101314; --home-sidebar-bottom: #070809; --home-shell-text: #e8e5df; --home-nav-heading: #aaa396; --home-nav-text: #bdbab4; --home-profile-text: #c6c0b7; --home-profile-muted: #b3ada4; --home-header-text: #eee9df; --home-icon-text: #e2d3be; --home-mobile-text: #beb8ad; --home-popover: #121415; --home-shadow: #000; --home-bg-rgb: 6,7,8; --home-surface-top-rgb: 31,32,31; --home-surface-bottom-rgb: 12,14,15; --home-line-rgb: 236,221,199; --home-grid-rgb: 234,215,185; --home-accent-rgb: 229,187,128; --home-tile-top-rgb: 24,25,25; --home-tile-bottom-rgb: 10,12,13; --home-profile-rgb: 24,26,26; --home-icon-rgb: 19,21,21; }
  body[data-screen~="mesas-on"]:is(:is( #mesas):not(.hidden):not([hidden]), *) { color-scheme: var(--home-color-scheme,dark); background: var(--home-bg) !important; }
  
  
  body[data-screen~="mesas-on"]:is(:is( #mesas):not(.hidden):not([hidden]), *) .app { background: var(--home-bg) !important; }
  body[data-screen~="mesas-on"]:is(:is( #mesas):not(.hidden):not([hidden]), *) .content { background: var(--home-bg) !important; }
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
}
}
  
  
  
  @keyframes club-theme-cloud { 
  0%, 100% { transform: translateX(0px); }
  40% { transform: translateX(4px); }
  80% { transform: translateX(-4px); }
}
  @keyframes club-theme-twinkle { 
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.2); }
  80% { transform: scale(0.8); }
}
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  @keyframes home-sales-draw { 
  0% { stroke-dashoffset: 100; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -100; }
}
  
  @keyframes home-sales-light { 
  0% { background-position: 220% 0px; }
  100% { background-position: -120% 0px; }
}
  
  @keyframes home-sales-present { 
  0% { stroke-dashoffset: var(--trace-length,100px); }
  100% { stroke-dashoffset: 0; }
}
  
  @media screen {
  @layer night-home {
  /* Configuración del negocio: panel anclado a la píldora del negocio (arriba a la derecha);
     en teléfono, hoja desde abajo. Mismo vidrio, tipografía y botones que el Inicio. */
  html body #modal#modal[data-kind~="business-settings-menu"] { align-items: flex-start !important; justify-content: flex-end !important; padding: 68px 24px 24px !important; background: rgba(0,0,0,.32) !important; backdrop-filter: none !important; }
  html body #modal#modal[data-kind~="business-settings-menu"] .modal-card { width: min(400px, 100%) !important; margin: 0px !important; max-height: calc(100dvh - 92px) !important; padding: 20px !important; border: 0px !important; border-radius: var(--ui-r-lg) !important; background: var(--ui-glass) !important; backdrop-filter: var(--ui-glass-blur) !important; box-shadow: var(--ui-glass-edge),var(--ui-glass-depth-up) !important; color: var(--ui-text) !important; font-family: inherit !important; overflow: auto !important; transform-origin: top right; animation: ui-pop .2s var(--ui-ease) both; }
  html body #modal#modal[data-kind~="business-settings-menu"] .modal-head { border: 0px !important; padding: 0px !important; margin: 0px 0px 16px !important; gap: 12px !important; align-items: center !important; }
  html body #modal#modal[data-kind~="business-settings-menu"] #modalTitle { font-size: 17px !important; line-height: 1.3 !important; font-weight: 700 !important; letter-spacing: -.01em !important; color: var(--ui-text) !important; }
  html body #modal#modal[data-kind~="business-settings-menu"] .modal-head button:where(:not(.modal-back)) { min-height: 32px !important; height: 32px !important; padding: 0 12px !important; border: 0px !important; border-radius: 10px !important; background: var(--ui-glass-btn) !important; box-shadow: var(--ui-glass-edge) !important; color: var(--ui-muted) !important; font-size: 13px !important; font-weight: 600 !important; }
  html body #modal#modal .business-settings-menu { display: flex !important; flex-direction: column !important; gap: 16px !important; }
  html body #modal#modal .business-settings-menu .business-preview { display: flex !important; align-items: center !important; gap: 14px !important; padding: 0px !important; border: 0px !important; background: none !important; backdrop-filter: none !important; box-shadow: none !important; }
  html body #modal#modal .business-settings-menu .business-preview :is(img, .business-preview-initials) { display: grid !important; place-items: center !important; width: 56px !important; height: 56px !important; min-width: 56px !important; border: 0px !important; border-radius: 16px !important; object-fit: cover !important; background: var(--ui-action-fill) !important; color: var(--ui-on-action) !important; font-size: 17px !important; font-weight: 800 !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.22),var(--ui-action-glow) !important; }
  html body #modal#modal .business-settings-menu .business-preview-copy { min-width: 0px !important; }
  html body #modal#modal .business-settings-menu .business-preview-copy strong { display: block !important; font-size: 17px !important; font-weight: 700 !important; letter-spacing: -.01em !important; line-height: 1.3 !important; color: var(--ui-text) !important; overflow-wrap: anywhere !important; }
  html body #modal#modal .business-settings-menu .business-preview-copy span { display: block !important; margin-top: 2px !important; font-size: 13px !important; font-weight: 500 !important; line-height: 1.4 !important; color: var(--ui-muted) !important; }
  html body #modal#modal .business-settings-menu .field { display: flex !important; flex-direction: column !important; margin: 0px !important; gap: 6px !important; min-width: 0px !important; }
  html body #modal#modal .business-settings-menu :is(.field > label, .biz-label) { font-size: 13px !important; font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--ui-text) !important; opacity: .85; }
  html body #modal#modal .business-settings-menu input:not([type="file"]) { width: 100% !important; min-width: 0px !important; box-sizing: border-box !important; height: 44px !important; min-height: 44px !important; padding: 0 14px !important; border: 0px !important; border-radius: 12px !important; background: var(--ui-sunken) !important; box-shadow: var(--ui-inset) !important; color: var(--ui-text) !important; font: inherit !important; font-size: var(--ui-field-size) !important; outline: none !important; caret-color: var(--ui-accent); transition: background-color .2s, box-shadow .2s; }
  html body #modal#modal .business-settings-menu input:not([type="file"]):focus { background: var(--ui-raised) !important; box-shadow: var(--ui-raise) !important; }
  html body #modal#modal .business-settings-menu .biz-file { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--ui-glass-btn); box-shadow: var(--ui-glass-edge); cursor: pointer; transition: transform .1s; }
  html body #modal#modal .business-settings-menu .biz-file:active { transform: scale(.98); }
  html body #modal#modal .business-settings-menu .biz-file:focus-within { outline: 2px solid var(--ui-accent); outline-offset: 2px; }
  html body #modal#modal .business-settings-menu .biz-file input { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; opacity: 0 !important; pointer-events: none; }
  html body #modal#modal .business-settings-menu :is(.biz-file, .biz-more) .ui-ic { color: var(--ui-accent); flex: none; }
  html body #modal#modal .business-settings-menu :is(.biz-file, .biz-more, .biz-session-who) b { display: block; font-size: 15px; font-weight: 600; color: var(--ui-text); }
  html body #modal#modal .business-settings-menu :is(.biz-file, .biz-more, .biz-session-who) small { display: block; margin-top: 1px; font-size: 12px; font-weight: 500; letter-spacing: .01em; color: var(--ui-muted); }
  html body #modal#modal .business-settings-menu .business-actions { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 10px !important; margin: 0px !important; }
  html body #modal#modal[data-kind~="business-settings-menu"] .business-settings-menu button { display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important; width: auto; height: 44px !important; min-height: 44px !important; margin: 0px !important; padding: 0 16px !important; border: 0px !important; border-radius: 12px !important; font: inherit !important; font-size: 15px !important; font-weight: 600 !important; transform: none; transition: transform .1s, filter .15s !important; }
  html body #modal#modal .business-settings-menu button.ghost { background: var(--ui-glass-btn) !important; box-shadow: var(--ui-glass-edge) !important; color: var(--ui-text) !important; }
  html body #modal#modal .business-settings-menu button.primary { background: var(--ui-action-fill) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.22),var(--ui-action-glow) !important; color: var(--ui-on-action) !important; }
  html body #modal#modal .business-settings-menu button.biz-more { display: grid !important; grid-template-columns: 36px minmax(0,1fr) auto !important; justify-content: stretch !important; width: 100% !important; height: auto !important; padding: 10px 12px !important; gap: 12px !important; background: var(--ui-glass-btn) !important; box-shadow: var(--ui-glass-edge) !important; color: var(--ui-text) !important; text-align: left !important; }
  html body #modal#modal .business-settings-menu .biz-more-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--ui-accent-soft); }
  html body #modal#modal .business-settings-menu .biz-more > .ui-ic:last-child { width: 18px; height: 18px; color: var(--ui-muted); }
  html body #modal#modal .business-settings-menu .biz-session { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--ui-divider); }
  html body #modal#modal .business-settings-menu .biz-session-who { min-width: 0; }
  html body #modal#modal .business-settings-menu button.business-logout { flex: none; height: 40px !important; min-height: 40px !important; padding: 0 14px !important; background: color-mix(in srgb,var(--ui-danger) 14%,transparent) !important; box-shadow: none !important; outline: none; color: var(--ui-danger) !important; }
  html body #modal#modal .business-settings-menu button.biz-logout-wide { width: 100% !important; height: 44px !important; }
  html body #modal#modal .business-settings-menu button .ui-ic { width: 18px; height: 18px; }
  html body #modal#modal[data-kind~="business-settings-menu"] button:hover:not(:disabled) { filter: brightness(1.08); }
  html body #modal#modal[data-kind~="business-settings-menu"] button:active:not(:disabled) { transform: scale(.97) !important; transition-duration: .1s !important; }
  html body #modal#modal[data-kind~="business-settings-menu"] button:focus-visible { outline: 2px solid var(--ui-accent) !important; outline-offset: 2px !important; }
  @media (max-width: 760px) {
    html body #modal#modal[data-kind~="business-settings-menu"] { align-items: flex-end !important; justify-content: center !important; padding: 0px !important; }
    html body #modal#modal[data-kind~="business-settings-menu"] .modal-card { width: 100% !important; max-height: 88dvh !important; margin: 0px !important; border-radius: 20px 20px 0 0 !important; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)) !important; transform-origin: bottom center; animation: ui-sheet .24s var(--ui-ease) both; }
  }
  /* Ventanas de Mesas (Cambiar mesa, Cambiar mesero, Eliminar cuenta), v413: ventana sólida de 480 px
     (más oscura que su contenido), opciones tocables, pie con Cancelar y el botón principal que dice
     lo que hará. En celular, hoja desde abajo. */
  html body #modal#modal[data-kind~="mz-sheet"] { --mzs-card: color-mix(in srgb,var(--ui-card-solid) 62%,#000 38%); --mzs-field: color-mix(in srgb,var(--ui-card-solid) 90%,#fff 10%); --mzs-field-on: color-mix(in srgb,var(--ui-card-solid) 80%,#fff 20%); padding: 12px !important; background: rgba(0,0,0,.45) !important; -webkit-backdrop-filter: var(--ui-scrim-blur,blur(10px)) !important; backdrop-filter: var(--ui-scrim-blur,blur(10px)) !important; }
  html[data-theme="light"] body #modal#modal[data-kind~="mz-sheet"] { --mzs-card: #dcdee6; --mzs-field: #ffffff; --mzs-field-on: #ffffff; background: rgba(16,24,40,.3) !important; }
  html body #modal#modal[data-kind~="mz-sheet"] .modal-card { display: flex !important; flex-direction: column !important; width: min(480px, 100%) !important; max-height: calc(100dvh - 24px) !important; margin: 0 !important; padding: 18px 20px 20px !important; border: 0 !important; border-radius: var(--ui-r-lg) !important; background: var(--mzs-card) !important; backdrop-filter: none !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.05),0 30px 80px -20px rgba(0,0,0,.7) !important; color: var(--ui-text) !important; font-family: inherit !important; overflow: hidden !important; animation: ui-pop .2s var(--ui-ease) both; }
  html body #modal#modal[data-kind~="mz-sheet"] .modal-head { flex: none !important; border: 0 !important; padding: 0 !important; margin: 0 0 6px !important; gap: 12px !important; align-items: center !important; }
  html body #modal#modal[data-kind~="mz-sheet"] #modalTitle { font-size: 17px !important; line-height: 1.3 !important; font-weight: 700 !important; letter-spacing: -.01em !important; color: var(--ui-text) !important; }
  html body #modal#modal[data-kind~="mz-sheet"] .modal-head button:where(:not(.modal-back)) { min-height: 32px !important; height: 32px !important; padding: 0 12px !important; border: 0 !important; border-radius: 10px !important; background: none !important; box-shadow: none !important; color: var(--ui-muted) !important; font-size: 13px !important; font-weight: 600 !important; }
  html body #modal#modal[data-kind~="mz-sheet"] .modal-head button:where(:not(.modal-back)):hover { background: var(--ui-hover) !important; color: var(--ui-text) !important; }
  html body #modal#modal[data-kind~="mz-sheet"] #modalBody { flex: 1 1 auto !important; min-height: 0 !important; overflow: hidden !important; padding: 0 !important; }
  html body #modal#modal .mz-sheet { display: flex; flex-direction: column; gap: 12px; max-height: calc(100dvh - 100px); min-height: 0; color: var(--ui-text); }
  html body #modal#modal .mz-sheet .ui-ic { width: 18px; height: 18px; flex: none; }
  html body #modal#modal .mzs-intro { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ui-muted); }
  html body #modal#modal .mzs-intro b, html body #modal#modal .mzs-warn b { font-weight: 700; color: var(--ui-text); }
  html body #modal#modal .mzs-scroll { flex: 1 1 auto; min-height: 0; max-height: 330px; overflow-y: auto; margin: 0 -4px; padding: 2px 4px; scrollbar-width: thin; }
  /* Cambiar mesa: fichas de mesas libres agrupadas por zona */
  html body #modal#modal .mzs-group + .mzs-group { margin-top: 12px; }
  html body #modal#modal .mzs-group-title { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--ui-text); }
  html body #modal#modal .mzs-group-title small { font-size: 12px; font-weight: 500; color: var(--ui-muted); }
  html body #modal#modal .mzs-tiles { display: grid; grid-template-columns: repeat(auto-fill,minmax(88px,1fr)); gap: 8px; }
  html body #modal#modal .mzs-tile { height: 48px; min-height: 0; margin: 0; padding: 0 8px; border: 0; border-radius: 12px; background: var(--mzs-field); box-shadow: 0 1px 2px rgba(0,0,0,.18); color: var(--ui-text); font: inherit; font-size: 15px; font-weight: 650; cursor: pointer; transition: background .15s, transform .1s; }
  html body #modal#modal .mzs-tile:hover { background: var(--mzs-field-on); }
  html body #modal#modal .mzs-tile:active { transform: scale(.97); }
  html body #modal#modal .mzs-row:active .mzs-check { transform: scale(.9); }
  html body #modal#modal .mzs-tile[aria-checked="true"] { background: var(--ui-action-fill); box-shadow: inset 0 1px 0 rgba(255,255,255,.22),0 2px 6px -2px rgba(0,0,0,.4); color: var(--ui-on-action) !important; }
  /* Cambiar mesero: listado simple con iniciales, nombre y mesas que atiende;
     los nombres flotan sobre la ventana, sin fondo ni líneas; la palomita azul a la derecha marca la selección */
  html body #modal#modal .mzs-list { display: grid; gap: 0; align-content: start; }
  html body #modal#modal .mzs-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; margin: 0; padding: 8px 12px; border: 0; border-radius: 12px; background: none; box-shadow: none; color: var(--ui-text); font: inherit; text-align: left; cursor: pointer; transition: background .15s, transform .1s; }
  @media (hover: hover) { html body #modal#modal .mzs-row:hover { background: var(--ui-hover); } }
  html body #modal#modal .mzs-avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--ui-accent-soft); color: var(--ui-accent); font-size: 13px; font-weight: 700; }
  html body #modal#modal .mzs-row-text { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
  html body #modal#modal .mzs-row-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 650; color: var(--ui-text); }
  html body #modal#modal .mzs-row-text small { font-size: 12px; font-weight: 500; letter-spacing: .01em; color: var(--ui-muted); }
  html body #modal#modal .mzs-now { flex: none; padding: 3px 9px; border-radius: 999px; background: var(--ui-hover); font-size: 12px; font-weight: 600; color: var(--ui-muted); }
  html body #modal#modal .mzs-check { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ui-divider); }
  html body #modal#modal .mzs-check .ui-ic { width: 16px; height: 16px; opacity: 0; }
  html body #modal#modal .mzs-row[aria-checked="true"] .mzs-check { background: var(--ui-action-fill); box-shadow: none; color: var(--ui-on-action) !important; }
  html body #modal#modal .mzs-row[aria-checked="true"] .mzs-check .ui-ic { opacity: 1; }
  /* Eliminar cuenta: aviso en rojo y motivo obligatorio */
  html body #modal#modal .mzs-warn { display: flex; gap: 12px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb,var(--ui-danger) 14%,transparent); color: var(--ui-danger); }
  html body #modal#modal .mzs-warn .ui-ic { width: 20px; height: 20px; margin-top: 1px; }
  html body #modal#modal .mzs-warn div { display: flex; flex-direction: column; gap: 3px; }
  html body #modal#modal .mzs-warn span { font-size: 13px; line-height: 1.45; color: var(--ui-text); }
  html body #modal#modal .mzs-label { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 -6px; font-size: 13px; font-weight: 600; color: var(--ui-text); }
  html body #modal#modal .mzs-label small { font-size: 12px; font-weight: 500; color: var(--ui-muted); }
  html body #modal#modal .mzs-field { width: 100% !important; min-height: 88px !important; box-sizing: border-box !important; margin: 0 !important; padding: 10px 12px !important; border: 0 !important; border-radius: 12px !important; background: var(--mzs-field) !important; box-shadow: inset 0 1px 2px rgba(0,0,0,.22) !important; color: var(--ui-text) !important; font: inherit !important; font-size: var(--ui-field-size) !important; line-height: 1.4 !important; resize: vertical; outline: none !important; caret-color: var(--ui-accent); }
  html body #modal#modal .mzs-field:focus { background: var(--mzs-field-on) !important; }
  html body #modal#modal .mzs-field::placeholder { color: var(--ui-muted) !important; opacity: 1; }
  /* Pie: Cancelar en cristal y el botón principal sólido con relieve */
  html body #modal#modal .mzs-foot { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 4px; }
  html body #modal#modal :is(.mzs-cancel, .mzs-go) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; min-height: 0; margin: 0; padding: 0 18px; border: 0; border-radius: 13px; font: inherit; font-size: 15px; font-weight: 650; white-space: nowrap; cursor: pointer; transition: transform .1s, filter .15s; }
  html body #modal#modal .mzs-cancel { background: var(--mzs-field); box-shadow: 0 1px 2px rgba(0,0,0,.18); color: var(--ui-text); }
  html body #modal#modal .mzs-go { min-width: 0; background: var(--ui-action-fill); box-shadow: inset 0 1px 0 rgba(255,255,255,.22),inset 0 -2px 0 rgba(0,0,0,.22),0 2px 0 rgba(0,0,0,.28),0 8px 16px -6px rgba(0,0,0,.5); color: var(--ui-on-action) !important; }
  html body #modal#modal .mzs-go span { overflow: hidden; text-overflow: ellipsis; }
  html body #modal#modal .mzs-go.is-danger { background: var(--ui-danger); color: #fff !important; }
  html body #modal#modal :is(.mzs-cancel, .mzs-go):not(:disabled):hover { filter: brightness(1.06); }
  html body #modal#modal :is(.mzs-cancel, .mzs-go):not(:disabled):active { transform: scale(.97); }
  html body #modal#modal .mzs-go:not(:disabled):active { box-shadow: inset 0 2px 4px rgba(0,0,0,.3); }
  html body #modal#modal .mzs-go:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
  /* Abrir mesa (v415): dos campos, Mesa y Mesero; cada uno despliega debajo una tabla con buscador
     (nombre y zona o mesas que atiende). Pensado para muchas zonas, mesas y meseros. */
  html body #modal#modal[data-kind~="mzs-open"] .modal-card { width: min(520px, 100%) !important; }
  html body #modal#modal .mz-sheet.mzs-open { gap: 10px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  html body #modal#modal .mz-sheet.mzs-open > * { flex-shrink: 0; }
  html body #modal#modal .mzs-pick { display: flex; flex-direction: column; border-radius: 14px; background: var(--mzs-field); box-shadow: 0 1px 2px rgba(0,0,0,.18); overflow: hidden; }
  html body #modal#modal .mzs-pick-btn { display: grid; grid-template-columns: 64px minmax(0,1fr) auto; align-items: center; gap: 10px; width: 100%; height: 52px; min-height: 0; margin: 0; padding: 0 14px; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--ui-text); font: inherit; text-align: left; cursor: pointer; }
  html body #modal#modal .mzs-pick-btn:disabled { cursor: default; }
  html body #modal#modal .mzs-pick-label { font-size: 13px; font-weight: 600; color: var(--ui-muted); }
  html body #modal#modal .mzs-pick-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 700; color: var(--ui-text); }
  html body #modal#modal .mzs-pick-value em { font-style: normal; font-weight: 500; color: var(--ui-muted); }
  html body #modal#modal .mzs-pick-btn > .ui-ic { color: var(--ui-muted); transition: transform .2s var(--ui-ease); }
  html body #modal#modal .mzs-pick-btn[aria-expanded="true"] > .ui-ic { transform: rotate(180deg); }
  html body #modal#modal .mzs-pick-panel { padding: 0 8px 8px; }
  html body #modal#modal .mzs-find { margin: 0 0 6px; }
  html body #modal#modal .mzs-pick-list { display: grid; max-height: 232px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  html body #modal#modal .mzs-opt { display: grid; grid-template-columns: auto minmax(0,1fr) auto 20px; align-items: center; gap: 0 10px; width: 100%; min-height: 44px; margin: 0; padding: 0 10px; border: 0; border-radius: 10px; background: none; box-shadow: none; color: var(--ui-text); font: inherit; text-align: left; cursor: pointer; }
  html body #modal#modal .mzs-opt b { grid-column: 2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 600; color: var(--ui-text); }
  html body #modal#modal .mzs-opt small { grid-column: 3; font-size: 12px; font-weight: 500; color: var(--ui-muted); white-space: nowrap; }
  html body #modal#modal .mzs-opt > .ui-ic:first-child { grid-column: 1; width: 16px; height: 16px; color: var(--ui-warn); }
  html body #modal#modal .mzs-opt > .ui-ic:last-child { grid-column: 4; width: 18px; height: 18px; color: var(--ui-accent); opacity: 0; }
  html body #modal#modal .mzs-opt[aria-selected="true"] > .ui-ic:last-child { opacity: 1; }
  html body #modal#modal .mzs-opt[aria-selected="true"] b { color: var(--ui-accent); }
  html body #modal#modal .mzs-opt.is-active, html body #modal#modal .mzs-opt:focus-visible { background: var(--ui-hover); outline: none; }
  @media (hover: hover) { html body #modal#modal .mzs-opt:hover { background: var(--ui-hover); } }
  html body #modal#modal .mzs-opt:active { transform: scale(.98); }
  html body #modal#modal .mzs-open .mzs-foot { position: sticky; bottom: 0; padding-top: 10px; background: var(--mzs-card); }
  html body #modal#modal .mzs-native { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; opacity: 0 !important; pointer-events: none !important; }
  html body #modal#modal .mzs-empty { margin: 0; padding: 10px 12px; font-size: 13px; color: var(--ui-muted); }
  html body #modal#modal .mzs-extras { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 4px; }
  html body #modal#modal .mzs-money { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; font-weight: 600; color: var(--ui-text); }
  html body #modal#modal .mzs-money small, html body #modal#modal .mzs-switch small { font-size: 12px; font-weight: 500; color: var(--ui-muted); }
  html body #modal#modal .mzs-money-field { display: flex; align-items: center; gap: 4px; height: 42px; padding: 0 12px; border-radius: 12px; background: var(--mzs-field); box-shadow: inset 0 1px 2px rgba(0,0,0,.22); color: var(--ui-muted); font-size: 15px; }
  html body #modal#modal .mzs-money-field:focus-within { background: var(--mzs-field-on); }
  html body #modal#modal .mzs-money-field input { width: 80px !important; height: 40px !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; outline: none !important; color: var(--ui-text) !important; font: inherit !important; font-size: var(--ui-field-size) !important; font-weight: 600 !important; font-variant-numeric: tabular-nums; }
  html body #modal#modal .mzs-switch { display: flex; position: relative; align-items: center; gap: 10px; margin: 0; font-size: 13px; font-weight: 600; color: var(--ui-text); cursor: pointer; }
  html body #modal#modal .mzs-switch input { position: absolute; top: 0; left: 0; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
  html body #modal#modal .mzs-switch-ui { position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px; background: var(--mzs-field); box-shadow: inset 0 1px 2px rgba(0,0,0,.25); transition: background .2s; }
  html body #modal#modal .mzs-switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: transform .2s var(--ui-ease); }
  html body #modal#modal .mzs-switch input:checked + .mzs-switch-ui { background: var(--ui-action-fill); }
  html body #modal#modal .mzs-switch input:checked + .mzs-switch-ui::after { transform: translateX(18px); }
  html body #modal#modal .mzs-switch input:focus-visible + .mzs-switch-ui { outline: 2px solid var(--ui-accent); outline-offset: 2px; }
  /* Administrar mesas y zonas (v417): buscador y botones arriba; a la izquierda las zonas (filtran),
     a la derecha sus mesas como renglones sin tarjeta. Solo la lista se desplaza; cabe en laptop.
     En celular las zonas pasan a una fila de pestañas que se desliza. */
  html body #modal#modal[data-kind~="mzs-admin"] .modal-card { width: min(820px, 100%) !important; height: min(560px, calc(100dvh - 24px)) !important; }
  html body #modal#modal .mz-sheet.mzs-admin { height: 100%; max-height: none; }
  html body #modal#modal .mzs-admin-bar { flex: none; display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 10px; }
  html body #modal#modal .mzs-admin .mzs-find { margin: 0; }
  html body #modal#modal .mzs-admin-bar :is(.mzs-cancel, .mzs-go) { height: 44px; padding: 0 16px; }
  html body #modal#modal .mzs-admin-cols { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 200px minmax(0,1fr); gap: 20px; }
  html body #modal#modal .mzs-zones { display: flex; flex-direction: column; gap: 2px; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
  html body #modal#modal .mzs-zone { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: none; height: 42px; min-height: 0; margin: 0; padding: 0 12px; border: 0; border-radius: 11px; background: none; box-shadow: none; color: var(--ui-text); font: inherit; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; transition: background .15s, transform .1s; }
  html body #modal#modal .mzs-zone span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html body #modal#modal .mzs-zone small { font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ui-muted); }
  @media (hover: hover) { html body #modal#modal .mzs-zone:hover { background: var(--ui-hover); } }
  html body #modal#modal .mzs-zone:active { transform: scale(.97); }
  html body #modal#modal .mzs-zone[aria-selected="true"], html body #modal#modal .mzs-zone[aria-selected="true"] small { background: var(--ui-accent-soft); color: var(--ui-accent); }
  html body #modal#modal .mzs-zone[aria-selected="true"] small { background: none; }
  html body #modal#modal .mzs-tables { display: flex; flex-direction: column; gap: 6px; min-height: 0; }
  html body #modal#modal .mzs-zone-head { flex: none; display: flex; align-items: center; gap: 2px; min-height: 40px; padding-left: 12px; }
  html body #modal#modal .mzs-zone-head div { display: flex; align-items: baseline; gap: 10px; flex: 1; min-width: 0; }
  html body #modal#modal .mzs-zone-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
  html body #modal#modal .mzs-zone-head small { flex: none; font-size: 12px; font-weight: 500; letter-spacing: .01em; color: var(--ui-muted); }
  html body #modal#modal .mzs-tlist { max-height: none; }
  html body #modal#modal .mzs-tlist .mzs-group-title { margin: 12px 0 2px; padding: 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .01em; color: var(--ui-muted); }
  html body #modal#modal .mzs-tlist .mzs-group-title:first-child { margin-top: 0; }
  html body #modal#modal .mzs-trow { display: flex; align-items: center; gap: 2px; border-radius: 12px; transition: background .15s; }
  @media (hover: hover) { html body #modal#modal .mzs-trow:hover { background: var(--ui-hover); } }
  html body #modal#modal .mzs-trow-main { display: grid; grid-template-columns: minmax(0,1fr) auto 18px; align-items: center; gap: 12px; flex: 1; min-width: 0; min-height: 52px; margin: 0; padding: 6px 4px 6px 12px; border: 0; border-radius: 12px; background: none; box-shadow: none; color: var(--ui-text); font: inherit; text-align: left; cursor: pointer; transition: transform .1s; }
  html body #modal#modal .mzs-trow-main:active { transform: scale(.98); }
  html body #modal#modal .mzs-trow-main > span:first-child { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
  html body #modal#modal .mzs-trow-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 650; }
  html body #modal#modal .mzs-trow-main small { font-size: 12px; font-weight: 500; letter-spacing: .01em; color: var(--ui-muted); }
  html body #modal#modal .mzs-trow-main > .ui-ic { width: 16px; height: 16px; color: var(--ui-muted); }
  html body #modal#modal .mzs-status { font-size: 12px; font-weight: 600; color: var(--ui-muted); }
  html body #modal#modal .mzs-status.is-busy { padding: 3px 9px; border-radius: 999px; background: var(--ui-accent-soft); color: var(--ui-accent); }
  html body #modal#modal .mzs-ibtn { display: grid; place-items: center; flex: none; width: 36px; height: 36px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 10px; background: none; box-shadow: none; color: var(--ui-muted); cursor: pointer; transition: background .15s, color .15s, transform .1s; }
  html body #modal#modal .mzs-ibtn:not(:disabled):hover { background: var(--ui-hover); color: var(--ui-text); }
  html body #modal#modal .mzs-ibtn.is-danger:not(:disabled):hover { color: var(--ui-danger); }
  html body #modal#modal .mzs-ibtn:not(:disabled):active { transform: scale(.94); }
  html body #modal#modal .mzs-ibtn:disabled { opacity: .3; cursor: not-allowed; }
  /* Formularios de mesa y zona: etiqueta arriba, campo hundido que se aclara al escribir, zona en fichas */
  html body #modal#modal .mzs-form { gap: 16px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  html body #modal#modal .mzs-form > * { flex-shrink: 0; }
  html body #modal#modal .mzs-fld { display: flex; flex-direction: column; gap: 6px; margin: 0; }
  html body #modal#modal .mzs-fld > span { font-size: 13px; font-weight: 600; color: var(--ui-text); }
  html body #modal#modal .mzs-fld > small { font-size: 12px; font-weight: 500; letter-spacing: .01em; color: var(--ui-muted); }
  html body #modal#modal .mzs-input { width: 100% !important; height: 46px !important; min-height: 0 !important; box-sizing: border-box !important; margin: 0 !important; padding: 0 14px !important; border: 0 !important; border-radius: 12px !important; background: var(--mzs-field) !important; box-shadow: inset 0 1px 2px rgba(0,0,0,.22) !important; outline: none !important; color: var(--ui-text) !important; font: inherit !important; font-size: 16px !important; font-weight: 600 !important; }
  html body #modal#modal .mzs-input:focus { background: var(--mzs-field-on) !important; }
  html body #modal#modal .mzs-input::placeholder { color: var(--ui-muted) !important; font-weight: 500; opacity: 1; }
  html body #modal#modal .mzs-form .mzs-tiles { grid-template-columns: repeat(auto-fill,minmax(112px,1fr)); }
  html body #modal#modal .mzs-form .mzs-tile { height: 44px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
  @media (max-width: 760px) {
    html body #modal#modal .mz-sheet { max-height: calc(90dvh - 84px - env(safe-area-inset-bottom)); }
    }
  @media (max-width: 760px) {
    html body #modal#modal[data-kind~="mz-sheet"] { align-items: flex-end !important; padding: 0 !important; }
    html body #modal#modal[data-kind~="mz-sheet"] .modal-card { width: 100% !important; max-height: 90dvh !important; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)) !important; border-radius: 22px 22px 0 0 !important; transform-origin: bottom center; animation: ui-sheet .24s var(--ui-ease) both; }
    html body #modal#modal .mzs-scroll { max-height: none; }
    html body #modal#modal .mzs-tiles { grid-template-columns: repeat(3,minmax(0,1fr)); }
    html body #modal#modal .mzs-tile { height: 52px; }
    html body #modal#modal[data-kind~="mzs-admin"] .modal-card { height: 90dvh !important; }
    html body #modal#modal .mzs-admin-bar { grid-template-columns: 1fr 1fr; }
    html body #modal#modal .mzs-admin-bar .mzs-find { grid-column: 1 / -1; }
    html body #modal#modal .mzs-admin-cols { grid-template-columns: minmax(0,1fr); grid-template-rows: auto minmax(0,1fr); gap: 8px; }
    html body #modal#modal .mzs-zones { flex-direction: row; gap: 6px; overflow-x: auto; overflow-y: hidden; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
    html body #modal#modal .mzs-zone { height: 38px; padding: 0 14px; border-radius: 999px; }
    html body #modal#modal .mzs-zone-head { padding-left: 4px; }
    html body #modal#modal .mzs-trow-main { min-height: 56px; padding-left: 4px; }
    html body #modal#modal .mzs-tlist .mzs-group-title { padding: 0 4px; }
    html body #modal#modal .mzs-ibtn { width: 44px; height: 44px; }
    html body #modal#modal .mzs-form .mzs-tiles { grid-template-columns: repeat(2,minmax(0,1fr)); }
  }
  /* Registrar compra, formato "carrito y cobro": a la izquierda lo que se compró; a la derecha
     un panel sólido con el total, la forma de pago, el efecto en la cuenta y el botón.
     Contraste alto: ventana sólida oscura, campos más claros y etiquetas en texto principal.
     Cabe completa en laptop (~1320×610); si hay muchos productos solo la lista se desplaza. */
  html body #modal#modal[data-kind~="buy-sheet"] { --buy-card: color-mix(in srgb,var(--ui-card-solid) 58%,#000 42%); --buy-panel: color-mix(in srgb,var(--ui-card-solid) 86%,#000 14%); --buy-field: color-mix(in srgb,var(--ui-card-solid) 88%,#fff 12%); --buy-field-on: color-mix(in srgb,var(--ui-card-solid) 80%,#fff 20%); --buy-field-hover: color-mix(in srgb,var(--ui-card-solid) 80%,#fff 20%); padding: 12px !important; background: rgba(0,0,0,.45) !important; -webkit-backdrop-filter: var(--ui-scrim-blur,blur(10px)) !important; backdrop-filter: var(--ui-scrim-blur,blur(10px)) !important; }
  html[data-theme="light"] body #modal#modal[data-kind~="buy-sheet"] { --buy-card: color-mix(in srgb,var(--ui-page) 84%,var(--ui-text) 9%); --buy-panel: #ffffff; --buy-field: color-mix(in srgb,var(--ui-page) 92%,var(--ui-text) 4%); --buy-field-on: #ffffff; --buy-field-hover: color-mix(in srgb,var(--ui-page) 86%,var(--ui-text) 9%); background: rgba(16,24,40,.3) !important; }
  html body #modal#modal[data-kind~="buy-sheet"] .modal-card { display: flex !important; flex-direction: column !important; width: min(1120px, 100%) !important; height: auto !important; max-height: calc(100dvh - 24px) !important; margin: 0px !important; padding: 16px 20px 18px !important; border: 0px !important; border-radius: var(--ui-r-lg) !important; background: var(--buy-card) !important; backdrop-filter: none !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.06),0 30px 80px -20px rgba(0,0,0,.7) !important; color: var(--ui-text) !important; font-family: inherit !important; overflow: hidden !important; animation: ui-pop .2s var(--ui-ease) both; }
  html body #modal#modal[data-kind~="buy-sheet"] .modal-head { flex: none !important; border: 0px !important; padding: 0px !important; margin: 0px 0px 10px !important; gap: 12px !important; align-items: center !important; }
  html body #modal#modal[data-kind~="buy-sheet"] #modalTitle { font-size: 17px !important; line-height: 1.3 !important; font-weight: 700 !important; letter-spacing: -.01em !important; color: var(--ui-text) !important; }
  html body #modal#modal[data-kind~="buy-sheet"] .modal-head button:where(:not(.modal-back)) { min-height: 32px !important; height: 32px !important; padding: 0 12px !important; border: 0px !important; border-radius: 10px !important; background: var(--buy-field) !important; box-shadow: none !important; color: var(--ui-text) !important; font-size: 13px !important; font-weight: 600 !important; }
  html body #modal#modal[data-kind~="buy-sheet"] #modalBody { flex: 1 1 auto !important; min-height: 0px !important; overflow: hidden !important; padding: 0px !important; }
  html body #modal#modal .buy-sheet { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 18px; height: 100%; max-height: calc(100dvh - 96px); min-height: 0; color: var(--ui-text); }
  html body #modal#modal .buy-sheet .buy-main { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
  html body #modal#modal .buy-sheet .buy-intro { flex: none; margin: 0; font-size: 13px; color: var(--ui-muted); }
  html body #modal#modal .buy-sheet .buy-fields { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  html body #modal#modal .buy-sheet .field { display: flex; flex-direction: column; gap: 6px; margin: 0; min-width: 0; }
  html body #modal#modal .buy-sheet :is(.field > label, .payment-method-title, .mixed-title) { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ui-text); opacity: 1; }
  html body #modal#modal .buy-sheet :is(input:not([type="checkbox"],[type="radio"]):where(:not(.ui-find > input, .ui-step > input, .cj-field-in > input)), select) { width: 100% !important; min-width: 0 !important; box-sizing: border-box !important; height: 42px !important; min-height: 42px !important; margin: 0 !important; padding: 0 12px !important; border: 0 !important; border-radius: 11px !important; background: var(--buy-field) !important; box-shadow: inset 0 1px 2px rgba(0,0,0,.22) !important; color: var(--ui-text) !important; font: inherit !important; font-size: var(--ui-field-size) !important; font-weight: 500 !important; outline: none !important; caret-color: var(--ui-accent); transition: background-color .2s, box-shadow .2s; }
  html body #modal#modal .buy-sheet input[type="number"]:where(:not(.ui-step > input)) { padding: 0 10px !important; font-variant-numeric: tabular-nums; text-align: right; }
  html body #modal#modal .buy-sheet :is(input:not([type="checkbox"],[type="radio"]):where(:not(.ui-find > input, .ui-step > input, .cj-field-in > input)), select):focus { background: var(--buy-field-on) !important; box-shadow: inset 0 1px 2px rgba(0,0,0,.22) !important; }
  html body #modal#modal .buy-sheet .ui-dd-btn:where(:not(.cj-field-in .ui-dd-btn)) { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 8px !important; width: 100% !important; height: 42px !important; min-height: 42px !important; padding: 0 12px !important; border-radius: 11px !important; background: var(--buy-field) !important; box-shadow: inset 0 1px 2px rgba(0,0,0,.22) !important; color: var(--ui-text) !important; font-size: 15px !important; font-weight: 500 !important; text-align: left !important; }
  html body #modal#modal .buy-sheet .ui-dd-btn[aria-expanded="true"]:where(:not(.cj-field-in .ui-dd-btn)) { background: var(--buy-field-on) !important; }
  html body #modal#modal .buy-sheet input::placeholder { color: var(--ui-muted) !important; opacity: 1; }
  html body #modal#modal .buy-sheet .buy-products { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 12px 14px 14px; border-radius: 16px; background: var(--buy-panel); }
  html body #modal#modal .buy-sheet .buy-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
  html body #modal#modal .buy-sheet .buy-head h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--ui-text); }
  html body #modal#modal .buy-sheet .buy-count { font-size: 12px; font-weight: 500; letter-spacing: .01em; color: var(--ui-muted); }
  html body #modal#modal .buy-sheet :is(.buy-cols, .buy-line) { display: grid; grid-template-columns: minmax(0,1fr) 76px 76px 96px 96px 34px; gap: 8px; align-items: center; }
  html body #modal#modal .buy-sheet .buy-cols { padding: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .01em; color: var(--ui-muted); }
  html body #modal#modal .buy-sheet .buy-cols span:nth-child(n+2):nth-child(-n+5) { text-align: right; }
  html body #modal#modal .buy-sheet .buy-lines { flex: 0 1 auto; min-height: 0; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
  html body #modal#modal .buy-sheet .buy-line { padding: 8px 0; border-top: 1px solid color-mix(in srgb,var(--ui-text) 8%,transparent); }
  html body #modal#modal .buy-sheet .buy-line:first-child { border-top: 0; padding-top: 0; }
  html body #modal#modal .buy-sheet .buy-cell { display: block; min-width: 0; margin: 0; }
  html body #modal#modal .buy-sheet .buy-cap { display: none; }
  html body #modal#modal .buy-sheet .buy-sub { font-size: 15px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ui-text); }
  html body #modal#modal .buy-sheet .buy-stock { grid-column: 1 / -1; font-size: 12px; font-weight: 500; letter-spacing: .01em; color: var(--ui-muted); }
  html body #modal#modal .buy-sheet .buy-stock b { color: var(--ui-text); font-variant-numeric: tabular-nums; }
  html body #modal#modal .buy-sheet .buy-stock .up { color: var(--ui-ok); font-weight: 700; font-variant-numeric: tabular-nums; }
  html body #modal#modal .buy-sheet .buy-stock .buy-warn { color: var(--ui-warn); font-weight: 600; }
  html body #modal#modal .buy-sheet button { font: inherit !important; border: 0 !important; cursor: pointer; transition: transform .1s, filter .15s, background .15s !important; }
  html body #modal#modal .buy-sheet button:active:not(:disabled) { transform: scale(.97); }
  html body #modal#modal .buy-sheet button:focus-visible { outline: 2px solid var(--ui-accent) !important; outline-offset: 2px !important; }
  html body #modal#modal .buy-sheet .buy-add { display: flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important; flex: none; width: 100% !important; height: 42px !important; min-height: 42px !important; margin-top: 10px !important; padding: 0 14px !important; border-radius: 11px !important; background: var(--ui-accent-soft) !important; box-shadow: none !important; color: var(--ui-accent) !important; font-size: 15px !important; font-weight: 600 !important; }
  html body #modal#modal .buy-sheet .buy-add:hover { background: color-mix(in srgb,var(--ui-accent) 24%,transparent) !important; }
  html body #modal#modal .buy-sheet .buy-add .ui-ic { width: 18px; height: 18px; }
  html body #modal#modal .buy-sheet .buy-del { display: grid !important; place-items: center !important; width: 34px !important; height: 34px !important; min-height: 34px !important; padding: 0 !important; border-radius: 10px !important; background: none !important; box-shadow: none !important; color: var(--ui-muted) !important; }
  html body #modal#modal .buy-sheet .buy-del:hover { background: color-mix(in srgb,var(--ui-danger) 16%,transparent) !important; color: var(--ui-danger) !important; }
  html body #modal#modal .buy-sheet .buy-del .ui-ic { width: 18px; height: 18px; }
  html body #modal#modal .buy-sheet .buy-side { display: flex; flex-direction: column; gap: 14px; min-height: 0; padding: 16px; border-radius: 18px; background: var(--buy-panel); overflow-y: auto; }
  html body #modal#modal .buy-sheet .buy-total { display: flex; flex-direction: column; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid color-mix(in srgb,var(--ui-text) 8%,transparent); }
  html body #modal#modal .buy-sheet .buy-total small { font-size: 13px; font-weight: 600; color: var(--ui-text); }
  html body #modal#modal .buy-sheet .buy-total strong { font-size: 32px; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ui-text); }
  html body #modal#modal .buy-sheet .buy-total span { font-size: 12px; font-weight: 500; letter-spacing: .01em; color: var(--ui-muted); }
  html body #modal#modal .buy-sheet .payment-method-box { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
  html body #modal#modal .buy-sheet .payment-method-grid { display: grid !important; grid-template-columns: repeat(var(--pm-cols,2),minmax(0,1fr)) !important; gap: 8px !important; margin-top: 8px !important; }
  html body #modal#modal .buy-sheet .method-choice { display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: flex-start !important; gap: 10px !important; height: 44px !important; min-height: 44px !important; padding: 0 12px !important; border: 0 !important; border-radius: 11px !important; background: var(--buy-field) !important; box-shadow: none !important; color: var(--ui-text) !important; font: inherit !important; font-size: 13px !important; font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important; }
  html body #modal#modal .buy-sheet .method-choice .ui-ic { flex: none; width: 20px; height: 20px; color: var(--ui-accent); }
  html body #modal#modal .buy-sheet .method-choice:hover { background: var(--buy-field-hover) !important; }
  html body #modal#modal .buy-sheet .method-choice.active { background: var(--ui-action-fill) !important; color: var(--ui-on-action) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.22),var(--ui-action-glow) !important; }
  html body #modal#modal .buy-sheet .method-choice.active .ui-ic { color: currentColor; }
  html body #modal#modal .buy-sheet .method-single-note { display: none !important; }
  html body #modal#modal .buy-sheet .payment-method-fields { position: relative; margin-top: 10px; padding: 0 !important; border: 0 !important; background: none !important; }
  html body #modal#modal .buy-sheet .payment-method-fields .form-grid { display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 8px !important; margin-top: 6px !important; }
  html body #modal#modal .buy-sheet .payment-method-fields .field > label { font-size: 12px; }
  /* "Distribuido" va en la misma línea que su título para no alargar el panel. */
  html body #modal#modal .buy-sheet .payment-received { position: absolute; top: 0; right: 0; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; font-size: 13px; font-weight: 600; color: var(--ui-text); }
  html body #modal#modal .buy-sheet .buy-impact { margin: 10px 0 0; font-size: 13px; color: var(--ui-muted); }
  html body #modal#modal .buy-sheet .buy-impact b { color: var(--ui-text); font-weight: 700; font-variant-numeric: tabular-nums; }
  html body #modal#modal .buy-sheet .buy-impact.is-short b:last-child { color: var(--ui-danger) !important; }
  html body #modal#modal .buy-sheet .buy-outside-note { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--ui-accent-soft); font-size: 13px; color: var(--ui-text); }
  html body #modal#modal .buy-sheet .buy-toggle { display: flex; position: relative; align-items: center; gap: 12px; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; }
  html body #modal#modal .buy-sheet .buy-toggle input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
  html body #modal#modal .buy-sheet .buy-switch { position: relative; flex: none; width: 42px; height: 24px; border-radius: 999px; background: var(--buy-field); box-shadow: inset 0 1px 2px rgba(0,0,0,.3); transition: background .2s; }
  html body #modal#modal .buy-sheet .buy-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ui-text); box-shadow: 0 1px 3px rgba(0,0,0,.4); transition: transform .2s var(--ui-ease); }
  html body #modal#modal .buy-sheet .buy-toggle input:checked + .buy-switch { background: var(--ui-action-fill); }
  html body #modal#modal .buy-sheet .buy-toggle input:checked + .buy-switch::after { transform: translateX(18px); background: #fff; }
  html body #modal#modal .buy-sheet .buy-toggle input:focus-visible + .buy-switch { outline: 2px solid var(--ui-accent); outline-offset: 2px; }
  html body #modal#modal .buy-sheet .buy-toggle-text b { display: block; font-size: 13px; font-weight: 600; color: var(--ui-text); }
  html body #modal#modal .buy-sheet .buy-toggle-text small { display: block; font-size: 12px; font-weight: 500; letter-spacing: .01em; color: var(--ui-muted); }
  html body #modal#modal .buy-sheet .buy-save { display: flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important; width: 100% !important; height: 50px !important; min-height: 50px !important; margin-top: auto !important; padding: 0 18px !important; border-radius: 13px !important; background: var(--ui-action-fill) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.22),var(--ui-action-glow) !important; color: var(--ui-on-action) !important; font-size: 15px !important; font-weight: 700 !important; }
  html body #modal#modal .buy-sheet .buy-save .ui-ic { width: 18px; height: 18px; }
  html body #modal#modal .buy-sheet .buy-save:hover { filter: brightness(1.08); }
  /* Registrar gasto: misma ventana, más angosta; los datos van en una tarjeta clara con el monto grande y la categoría en chips. */
  html body #modal#modal:is([data-kind~="buy-sheet-is-expense"], [data-kind~="buy-sheet-is-deposit"]) .modal-card { width: min(860px, 100%) !important; }
  html body #modal#modal .buy-sheet .exp-form { gap: 16px; padding: 16px; }
  html body #modal#modal .buy-sheet .exp-amount { position: relative; }
  html body #modal#modal .buy-sheet .exp-amount span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 32px; font-weight: 800; letter-spacing: -.035em; color: var(--ui-muted); pointer-events: none; }
  html body #modal#modal .buy-sheet .exp-amount input { height: 64px !important; min-height: 64px !important; padding: 0 16px 0 42px !important; border-radius: 14px !important; font-size: 32px !important; font-weight: 800 !important; letter-spacing: -.035em; text-align: left; }
  html body #modal#modal .buy-sheet .exp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
  html body #modal#modal .buy-sheet .exp-chips.is-scroll { max-height: 142px; margin: -2px; padding: 2px 2px 10px; overflow-y: auto; }
  html body #modal#modal .buy-sheet .exp-chip { display: inline-flex !important; align-items: center !important; gap: 6px !important; height: 38px !important; min-height: 38px !important; margin: 0 !important; padding: 0 14px !important; border-radius: 999px !important; background: var(--buy-field) !important; box-shadow: none !important; color: var(--ui-text) !important; font-size: 13px !important; font-weight: 600 !important; white-space: nowrap; }
  html body #modal#modal .buy-sheet .exp-chip:hover { background: var(--buy-field-hover) !important; }
  html body #modal#modal .buy-sheet :is(.exp-chip.active, .exp-chip.selected) { background: var(--ui-action-fill) !important; color: var(--ui-on-action) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.22),var(--ui-action-glow) !important; }
  html body #modal#modal .buy-sheet .exp-chip.is-new:not(.active) { background: var(--ui-accent-soft) !important; color: var(--ui-accent) !important; }
  html body #modal#modal .buy-sheet .exp-chip .ui-ic { width: 16px; height: 16px; }
  html body #modal#modal .buy-sheet #ef_cat_new_input { margin-top: 2px !important; }
  /* Abono a cuenta (v421): misma ventana que Registrar gasto; el efectivo recibido con billetes y monedas tocables. */
  html body #modal#modal .buy-sheet .dep-quick { margin-top: 4px; }
  html body #modal#modal .buy-sheet .dep-cash { gap: 8px; }
  html body #modal#modal .buy-sheet .dep-cash-row { display: grid; grid-template-columns: minmax(0,1fr) auto 42px; gap: 8px; }
  html body #modal#modal .buy-sheet .dep-cash-row input { height: 48px !important; min-height: 48px !important; font-size: 20px !important; font-weight: 700 !important; }
  html body #modal#modal .buy-sheet :is(.dep-exact, .dep-clear, .dep-bill) { display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 6px !important; height: 48px !important; min-height: 48px !important; margin: 0 !important; padding: 0 14px !important; border-radius: 12px !important; background: var(--buy-field) !important; box-shadow: none !important; color: var(--ui-text) !important; font-size: 15px !important; font-weight: 650 !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
  html body #modal#modal .buy-sheet .dep-exact { background: var(--ui-accent-soft) !important; color: var(--ui-accent) !important; }
  html body #modal#modal .buy-sheet .dep-clear { padding: 0 !important; color: var(--ui-muted) !important; }
  html body #modal#modal .buy-sheet :is(.dep-exact, .dep-clear) .ui-ic { width: 18px; height: 18px; }
  html body #modal#modal .buy-sheet :is(.dep-exact, .dep-clear, .dep-bill):hover { background: var(--buy-field-on) !important; }
  html body #modal#modal .buy-sheet .dep-bills { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 6px; }
  html body #modal#modal .buy-sheet .dep-bills.is-coins { grid-template-columns: repeat(6,minmax(0,1fr)); }
  html body #modal#modal .buy-sheet .dep-bill { position: relative; overflow: visible !important; height: 42px !important; min-height: 42px !important; padding: 0 6px !important; font-size: 14px !important; }
  html body #modal#modal .buy-sheet .is-coins .dep-bill { height: 36px !important; min-height: 36px !important; border-radius: 999px !important; font-size: 13px !important; }
  html body #modal#modal .buy-sheet .dep-bill.selected { background: var(--ui-action-fill) !important; color: var(--ui-on-action) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.22),var(--ui-action-glow) !important; }
  html body #modal#modal .buy-sheet .dep-badge { display: none; position: absolute; top: -6px; right: -4px; min-width: 22px; padding: 1px 6px; border-radius: 999px; background: var(--buy-panel) !important; box-shadow: 0 1px 4px rgba(0,0,0,.3); color: var(--ui-accent) !important; font-size: 12px; font-weight: 700; line-height: 18px; text-align: center; }
  html body #modal#modal .buy-sheet .dep-status { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--ui-muted); font-variant-numeric: tabular-nums; }
  html body #modal#modal .buy-sheet .dep-status > span + span { font-weight: 700; }
  html body #modal#modal .buy-sheet :is(.dep-status > span, .buy-impact):empty { display: none; }
  html body #modal#modal .buy-sheet.is-deposit .buy-impact { margin: 0; }
  /* Acciones sobre productos comandados (v425, .buy-sheet.is-admin): solo lo que se eligió en la cuenta (sin
     volver a elegir), lo de cada acción y el botón que dice lo que hará. Computadora: dos columnas que caben sin
     desplazarse (elegidos | resumen, campos y botón). Celular: una columna con el botón fijo abajo. */
  html body #modal#modal[data-kind~="buy-sheet-is-admin"] .modal-card { width: min(900px, 100%) !important; }
  html body #modal#modal .buy-sheet.is-admin { grid-template-columns: minmax(0,1fr) 340px; grid-template-rows: auto minmax(0,1fr) auto; grid-template-areas: "intro side" "list side" "list go"; gap: 12px 18px; }
  html body #modal#modal .buy-sheet.is-admin .buy-intro { grid-area: intro; }
  html body #modal#modal .buy-sheet.is-admin .adm-products { grid-area: list; align-self: start; max-height: 100%; min-height: 0; }
  html body #modal#modal .buy-sheet.is-admin .adm-products .adm-list { flex: 1 1 auto; max-height: none; min-height: 0; }
  html body #modal#modal .buy-sheet.is-admin .buy-side { grid-area: side; overflow-y: auto; }
  html body #modal#modal .buy-sheet.is-admin .buy-save { grid-area: go; margin-top: 0 !important; }
  html body #modal#modal .buy-sheet.is-admin .dep-bills { grid-template-columns: repeat(3,minmax(0,1fr)); }
  html body #modal#modal .buy-sheet.is-admin .buy-side { overflow: visible; gap: 12px; }
  html body #modal#modal .buy-sheet .adm-products { padding: 10px 8px 6px 14px; }
  html body #modal#modal .buy-sheet .adm-products .buy-head { margin-bottom: 2px; padding-right: 6px; }
  html body #modal#modal .buy-sheet .adm-link { margin-left: auto; padding: 4px 6px !important; background: none !important; color: var(--ui-accent) !important; font-size: 13px !important; font-weight: 600 !important; }
  html body #modal#modal .buy-sheet .adm-list { max-height: 196px; overflow-y: auto; margin: 0 -2px; padding: 0 6px 0 2px; }
  html body #modal#modal .buy-sheet .adm-row { display: grid; grid-template-columns: minmax(0,1fr) auto 84px; align-items: center; gap: 12px; min-height: 48px; padding: 4px 0; }
  html body #modal#modal .buy-sheet .adm-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  html body #modal#modal .buy-sheet .adm-info b { font-size: 15px; font-weight: 600; color: var(--ui-text) !important; overflow-wrap: anywhere; }
  html body #modal#modal .buy-sheet .adm-info small { font-size: 12px; font-weight: 500; letter-spacing: .01em; color: var(--ui-muted) !important; font-variant-numeric: tabular-nums; }
  html body #modal#modal .buy-sheet .adm-step { grid-column: 2; }
  html body #modal#modal .buy-sheet .adm-amt { grid-column: 3; font-size: 15px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ui-text); }
  /* Total en un renglón: etiqueta y detalle a la izquierda, cifra a la derecha */
  html body #modal#modal .buy-sheet .adm-total { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; column-gap: 12px; padding-bottom: 12px; }
  html body #modal#modal .buy-sheet .adm-total strong { grid-column: 2; grid-row: 1 / 3; font-size: 28px; }
  html body #modal#modal .buy-sheet .adm-reason { width: 100% !important; box-sizing: border-box !important; min-height: 60px !important; margin: 0 !important; padding: 10px 12px !important; border: 0 !important; border-radius: 11px !important; background: var(--buy-field) !important; box-shadow: inset 0 1px 2px rgba(0,0,0,.22) !important; color: var(--ui-text) !important; font: inherit !important; font-size: var(--ui-field-size) !important; resize: none; }
  html body #modal#modal .buy-sheet .adm-reason:focus { background: var(--buy-field-on) !important; outline: none !important; }
  html body #modal#modal .buy-sheet .adm-price input { height: 56px !important; min-height: 56px !important; font-size: 28px !important; }
  html body #modal#modal .buy-sheet .adm-price span { font-size: 28px; }
  html body #modal#modal .buy-sheet .adm-targets { display: flex; flex-direction: column; max-height: 168px; overflow-y: auto; margin: 2px -4px 0; padding: 0 4px; }
  html body #modal#modal .buy-sheet .adm-target { display: grid !important; grid-template-columns: minmax(0,1fr) 24px !important; grid-template-rows: auto auto; column-gap: 10px !important; align-items: center !important; min-height: 48px !important; height: auto !important; padding: 6px 8px !important; border-radius: 11px !important; background: none !important; color: var(--ui-text) !important; text-align: left !important; }
  html body #modal#modal .buy-sheet .adm-target[hidden] { display: none !important; }
  html body #modal#modal .buy-sheet .adm-target:hover { background: var(--buy-field) !important; }
  html body #modal#modal .buy-sheet .adm-target b { grid-column: 1; font-size: 15px; font-weight: 600; color: var(--ui-text) !important; }
  html body #modal#modal .buy-sheet .adm-target small { grid-column: 1; font-size: 12px; color: var(--ui-muted) !important; }
  html body #modal#modal .buy-sheet .adm-target-pick { grid-column: 2; grid-row: 1 / 3; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--buy-field); box-shadow: inset 0 1px 2px rgba(0,0,0,.22); color: transparent !important; }
  html body #modal#modal .buy-sheet .adm-target-pick .ui-ic { width: 15px; height: 15px; stroke-width: 2.4; }
  html body #modal#modal .buy-sheet .adm-target[aria-checked="true"] .adm-target-pick { background: var(--ui-action-fill); box-shadow: none; color: var(--ui-on-action) !important; }
  html body #modal#modal .buy-sheet .adm-choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  html body #modal#modal .buy-sheet .adm-choice { display: flex !important; align-items: center !important; gap: 12px !important; min-height: 56px !important; height: auto !important; padding: 8px 12px !important; border-radius: 12px !important; background: var(--buy-field) !important; color: var(--ui-text) !important; text-align: left !important; }
  html body #modal#modal .buy-sheet .adm-choice .ui-ic { flex: none; width: 20px; height: 20px; color: var(--ui-accent); }
  html body #modal#modal .buy-sheet .adm-choice b { display: block; font-size: 15px; font-weight: 600; color: inherit !important; }
  html body #modal#modal .buy-sheet .adm-choice small { display: block; font-size: 12px; color: var(--ui-muted) !important; }
  html body #modal#modal .buy-sheet .adm-choice.active { background: var(--ui-action-fill) !important; color: var(--ui-on-action) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.22),var(--ui-action-glow) !important; }
  html body #modal#modal .buy-sheet .adm-choice.active :is(.ui-ic, small) { color: currentColor !important; }
  html body #modal#modal .buy-sheet.is-admin .buy-impact { margin: 0; }
  html body #modal#modal .buy-sheet :is(.buy-save, .buy-save.is-danger):disabled { background: linear-gradient(var(--buy-field),var(--buy-field)) var(--buy-panel) !important; box-shadow: none !important; color: var(--ui-muted) !important; opacity: 1 !important; filter: none; cursor: default; }
  html body #modal#modal .buy-sheet .buy-save.is-danger { background: var(--ui-danger) !important; }
  @media (max-width: 760px) {
    html body #modal#modal .buy-sheet.is-admin { display: flex; flex-direction: column; gap: 12px; }
    html body #modal#modal .buy-sheet.is-admin > * { flex: none; }
    html body #modal#modal .buy-sheet.is-admin .adm-products .adm-list { max-height: 196px; }
    html body #modal#modal .buy-sheet.is-admin .dep-bills { grid-template-columns: repeat(6,minmax(0,1fr)); }
    /* El botón va fuera de las tarjetas, al final de la hoja: se queda abajo mientras se desliza. Un margen
       sólido del color de la ventana tapa lo que pasa por detrás. */
    html body #modal#modal .buy-sheet:is(.is-admin, .is-charge, .is-split) .buy-save { position: sticky; bottom: 0; z-index: 2; box-shadow: inset 0 1px 0 rgba(255,255,255,.22),var(--ui-action-glow),0 0 0 12px var(--buy-card) !important; }
    html body #modal#modal .buy-sheet:is(.is-admin, .is-charge, .is-split) :is(.buy-save, .buy-save.is-danger):disabled { box-shadow: 0 0 0 12px var(--buy-card) !important; }
    html body #modal#modal .buy-sheet.is-pay > .buy-save { box-shadow: inset 0 1px 0 rgba(255,255,255,.22),var(--ui-action-glow),0 0 0 12px var(--buy-card) !important; }
    html body #modal#modal .buy-sheet.is-pay > .buy-save:disabled { box-shadow: 0 0 0 12px var(--buy-card) !important; }
    html body #modal#modal .buy-sheet .adm-row { grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "info info" "step amt"; row-gap: 6px; padding: 8px 0; }
    html body #modal#modal .buy-sheet .adm-info { grid-area: info; }
    html body #modal#modal .buy-sheet .adm-step { grid-area: step; justify-self: start; }
    html body #modal#modal .buy-sheet .adm-amt { grid-area: amt; }
    html body #modal#modal .buy-sheet .adm-row.no-step { grid-template-areas: "info amt"; }
    html body #modal#modal .buy-sheet .adm-choices { grid-template-columns: minmax(0,1fr); }
  }
  /* Pantallas de pago (fondos insuficientes, completar pago, elegir método): una columna de 560 px. */
  /* Confirmar cobro y Descuento (v428): el cambio en grande dentro de la tarjeta; atajos de descuento. */
  html body #modal#modal .buy-sheet .chg-big { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--buy-field); }
  html body #modal#modal .buy-sheet .chg-big span { font-size: 13px; font-weight: 600; color: var(--ui-text); }
  html body #modal#modal .buy-sheet .chg-big b { font-size: 36px; font-weight: 800; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ui-text) !important; }
  html body #modal#modal .buy-sheet.is-disc .exp-chips { margin-top: 2px; }

  html body #modal#modal[data-kind~="buy-sheet-is-pay"] .modal-card { width: min(560px, 100%) !important; }
  html body #modal#modal .buy-sheet.is-pay { display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
  html body #modal#modal .buy-sheet .pay-card { flex: none; gap: 14px; padding: 16px; }
  html body #modal#modal .buy-sheet .pay-head { display: flex; align-items: flex-start; gap: 12px; }
  html body #modal#modal .buy-sheet .pay-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--ui-accent-soft); color: var(--ui-accent); }
  html body #modal#modal .buy-sheet .pay-ic.is-warn { background: color-mix(in srgb,var(--ui-danger) 16%,transparent); color: var(--ui-danger); }
  html body #modal#modal .buy-sheet .pay-ic .ui-ic { width: 22px; height: 22px; }
  html body #modal#modal .buy-sheet .pay-head h3 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; color: var(--ui-text) !important; }
  html body #modal#modal .buy-sheet .pay-head p { margin: 4px 0 0; font-size: 13px; line-height: 1.4; color: var(--ui-muted); }
  html body #modal#modal .buy-sheet .pay-head p b { color: var(--ui-text); font-weight: 700; font-variant-numeric: tabular-nums; }
  html body #modal#modal .buy-sheet .pay-stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(0,1fr)); gap: 8px; }
  html body #modal#modal .buy-sheet .pay-stats > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 12px; border-radius: 12px; background: var(--buy-field); }
  html body #modal#modal .buy-sheet .pay-stats span { font-size: 12px; font-weight: 500; letter-spacing: .01em; color: var(--ui-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html body #modal#modal .buy-sheet .pay-stats b { font-size: 17px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ui-text); }
  html body #modal#modal .buy-sheet .pay-stats .is-short b { color: var(--ui-danger) !important; }
  html body #modal#modal .buy-sheet .pay-actions { display: flex; flex-direction: column; gap: 8px; }
  html body #modal#modal .buy-sheet.is-pay .buy-save { flex: none; margin-top: 0 !important; }
  /* Agregar / editar personal (v479, .is-pay.is-staff): en computadora los datos a la izquierda y la forma de pago
     a la derecha, con Quitar y Guardar abajo; cabe sin desplazarse. En celular, una columna (regla general). */
  @media (min-width: 761px) {
    html body #modal#modal[data-kind~="buy-sheet-is-staff"] .modal-card { width: min(980px, 100%) !important; }
    html body #modal#modal[data-kind~="buy-sheet-is-perm"] .modal-card { width: min(860px, 100%) !important; }
    html body #modal#modal[data-kind~="buy-sheet-is-att"] .modal-card { width: min(940px, 100%) !important; }
    html body #modal#modal[data-kind~="buy-sheet-is-login"] .modal-card { width: min(440px, 100%) !important; }
    html body #modal#modal[data-kind~="buy-sheet-is-cost"] .modal-card { width: min(920px, 100%) !important; }
    html body #modal#modal[data-kind~="buy-sheet-is-sp"] .modal-card { width: min(900px, 100%) !important; }
    html body #modal#modal .buy-sheet.is-staff { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); grid-template-areas: "data pay" "shift pay" "del go"; align-items: start; gap: 12px 14px; }
    html body #modal#modal .buy-sheet.is-staff .ps-data { grid-area: data; }
    html body #modal#modal .buy-sheet.is-staff .ps-pay { grid-area: pay; }
    html body #modal#modal .buy-sheet.is-staff .ps-shift { grid-area: shift; }
    html body #modal#modal .buy-sheet.is-staff > .buy-save { grid-area: go; }
    html body #modal#modal .buy-sheet.is-staff > .ps-del { grid-area: del; margin: 0; height: 100%; }
  }
  /* Revisión antes del corte (v452, .is-pay.is-review): la lista se encoge para que las acciones queden a la vista;
     las secundarias van en pareja (.pay-pair). */
  html body #modal#modal .buy-sheet.is-review .pay-card { flex: 1 1 auto; min-height: 0; }
  html body #modal#modal .buy-sheet.is-review .pick-list { flex: 1 1 auto; min-height: 112px; max-height: none; }
  html body #modal#modal .buy-sheet .pay-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  html body #modal#modal .buy-sheet .pay-alt { display: flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important; width: 100% !important; height: 46px !important; min-height: 46px !important; margin: 0 !important; padding: 0 16px !important; border-radius: 13px !important; background: var(--buy-panel) !important; box-shadow: var(--ui-raise) !important; color: var(--ui-text) !important; font-size: 15px !important; font-weight: 600 !important; }
  html body #modal#modal .buy-sheet .pay-alt:hover { filter: brightness(1.05); }
  html body #modal#modal .buy-sheet :is(.pay-alt, .buy-save) .ui-ic { width: 18px; height: 18px; }
  /* Cobrar cuenta y Cobrar venta directa (v433, .buy-sheet.is-charge): tres columnas que caben sin desplazarse.
     La cuenta (productos, lo abonado y las demás opciones) | lo que se recibe | la cifra, la forma de pago y el botón. */
  html body #modal#modal[data-kind~="buy-sheet-is-charge"] .modal-card { width: min(1180px, 100%) !important; }
  html body #modal#modal .buy-sheet.is-charge { grid-template-columns: minmax(240px,.85fr) minmax(0,1.2fr) 320px; grid-template-rows: minmax(0,1fr) auto; grid-template-areas: "acct pay side" "acct pay go"; gap: 12px 16px; }
  html body #modal#modal .buy-sheet.is-charge .chg-acct { grid-area: acct; padding: 12px 8px 12px 14px; }
  html body #modal#modal .buy-sheet.is-charge .chg-pay { grid-area: pay; gap: 14px; padding: 16px; overflow-y: auto; }
  html body #modal#modal .buy-sheet.is-charge .buy-side { grid-area: side; gap: 12px; }
  html body #modal#modal .buy-sheet.is-charge .buy-save { grid-area: go; margin-top: 0 !important; }
  html body #modal#modal .buy-sheet.is-charge .buy-impact { margin: 0; }
  html body #modal#modal .buy-sheet .chg-acct .buy-head { flex-wrap: wrap; row-gap: 0; padding-right: 6px; }
  html body #modal#modal .buy-sheet .chg-items { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin: 0; padding: 0 6px 0 0; list-style: none; }
  html body #modal#modal .buy-sheet .chg-items li { display: grid; grid-template-columns: 26px minmax(0,1fr) auto; align-items: baseline; gap: 8px; padding: 7px 0; border-top: 1px solid color-mix(in srgb,var(--ui-text) 6%,transparent); }
  html body #modal#modal .buy-sheet .chg-items li:first-child { border-top: 0; }
  html body #modal#modal .buy-sheet .chg-q { font-size: 13px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; color: var(--ui-muted); }
  html body #modal#modal .buy-sheet .chg-n { min-width: 0; font-size: 15px; overflow-wrap: anywhere; color: var(--ui-text); }
  html body #modal#modal .buy-sheet .chg-n small { display: block; font-size: 12px; font-weight: 500; letter-spacing: .01em; color: var(--ui-muted); }
  html body #modal#modal .buy-sheet .chg-items b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ui-text); }
  html body #modal#modal .buy-sheet .chg-sum { flex: none; display: flex; flex-direction: column; gap: 4px; margin-top: 8px; padding: 10px 6px 0 0; border-top: 1px solid color-mix(in srgb,var(--ui-text) 8%,transparent); }
  html body #modal#modal .buy-sheet .chg-sum div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ui-muted); }
  html body #modal#modal .buy-sheet .chg-sum b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ui-text); }
  html body #modal#modal .buy-sheet .chg-sum .is-due { font-size: 15px; font-weight: 700; color: var(--ui-text); }
  html body #modal#modal .buy-sheet .chg-sum .is-due b { font-weight: 800; }
  html body #modal#modal .buy-sheet .chg-more { flex: none; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; margin-top: 12px; padding-right: 6px; }
  html body #modal#modal .buy-sheet .chg-more button { display: flex !important; align-items: center !important; gap: 8px !important; height: 38px !important; min-height: 38px !important; margin: 0 !important; padding: 0 10px !important; border-radius: 10px !important; background: var(--buy-field) !important; box-shadow: none !important; color: var(--ui-text) !important; font-size: 13px !important; font-weight: 600 !important; text-align: left; white-space: nowrap; }
  html body #modal#modal .buy-sheet .chg-more button:hover { background: var(--buy-field-on) !important; }
  html body #modal#modal .buy-sheet .chg-more .ui-ic { flex: none; width: 17px; height: 17px; color: var(--ui-accent); }
  html body #modal#modal .buy-sheet .chg-more span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  html body #modal#modal .buy-sheet .chg-more button:only-child { grid-column: 1 / -1; }
  html body #modal#modal .buy-sheet :is(.chg-amt, .chg-tip) { display: flex; flex-wrap: wrap; gap: 8px; }
  html body #modal#modal .buy-sheet :is(.chg-amt, .chg-tip) .exp-chip { height: 42px !important; min-height: 42px !important; }
  html body #modal#modal .buy-sheet .chg-amt input { flex: 1 1 120px; width: auto !important; font-size: 17px !important; font-weight: 700 !important; }
  html body #modal#modal .buy-sheet .chg-tip input { flex: 1 1 80px; width: auto !important; }
  html body #modal#modal .buy-sheet .chg-court { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  /* Laptop baja (≤600 px de alto, v437): los mismos elementos de las ventanas de captura y pago, más compactos,
     para que quepan sin desplazarse. */
  @media (min-width: 761px) and (max-height: 600px) {
    html body #modal#modal .buy-sheet .exp-form { gap: 10px; padding: 14px; }
    html body #modal#modal .buy-sheet .exp-amount input { height: 48px !important; min-height: 48px !important; font-size: 26px !important; }
    html body #modal#modal .buy-sheet .exp-chip { height: 34px !important; min-height: 34px !important; }
    html body #modal#modal .buy-sheet .exp-chips.is-scroll { max-height: 130px; }
    html body #modal#modal .buy-sheet .pl-who { padding-bottom: 8px; }
    html body #modal#modal .buy-sheet .exp-amount span { font-size: 26px; }
    html body #modal#modal .buy-sheet :is(.dep-cash-row input, .dep-exact, .dep-clear) { height: 42px !important; min-height: 42px !important; }
    html body #modal#modal .buy-sheet .dep-bill { height: 38px !important; min-height: 38px !important; }
    html body #modal#modal .buy-sheet .is-coins .dep-bill { height: 32px !important; min-height: 32px !important; }
    html body #modal#modal .buy-sheet .buy-side { gap: 10px; padding: 14px; }
  }
  /* Agregar / Editar producto (v440, .buy-sheet.is-product): izquierda el producto (foto o inicial, nombre, precio,
     existencia) y sus opciones (chips para elegir, − n + para repartir unidades, fichera en lista fija); derecha la
     cantidad, la nota, el precio especial del administrador y los botones. */
  html body #modal#modal[data-kind~="buy-sheet-is-product"] .modal-card { width: min(900px, 100%) !important; }
  html body #modal#modal .buy-sheet.is-product { grid-template-rows: minmax(0,1fr) auto; grid-template-areas: "main side" "main go"; }
  html body #modal#modal .buy-sheet.is-product > .buy-main { grid-area: main; }
  html body #modal#modal .buy-sheet.is-product > .buy-side { grid-area: side; }
  html body #modal#modal .buy-sheet.is-product > .prod-go { grid-area: go; }
  html body #modal#modal[data-kind~="buy-sheet-is-simple"] .modal-card { width: min(560px, 100%) !important; }
  html body #modal#modal .buy-sheet.is-product.is-simple { grid-template-columns: minmax(0,1fr); grid-template-rows: auto auto; grid-template-areas: "main" "side" "go"; gap: 12px; }
  html body #modal#modal .buy-sheet.is-simple .prod-head { padding-bottom: 0; border-bottom: 0; }
  html body #modal#modal .buy-sheet.is-product .prod-card { gap: 14px; padding: 16px; overflow-y: auto; }
  html body #modal#modal .buy-sheet.is-product .buy-side { gap: 14px; overflow-y: auto; }
  html body #modal#modal .buy-sheet .prod-head { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid color-mix(in srgb,var(--ui-text) 8%,transparent); }
  html body #modal#modal .buy-sheet .prod-photo { flex: none; width: 64px; height: 64px; border-radius: 14px; object-fit: contain; background: var(--buy-field); }
  html body #modal#modal .buy-sheet .prod-photo.is-initial { display: grid; place-items: center; font-size: 26px; font-weight: 800; color: var(--ui-accent); background: var(--ui-accent-soft); }
  html body #modal#modal .buy-sheet .prod-who { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  html body #modal#modal .buy-sheet .prod-who h3 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; color: var(--ui-text) !important; }
  html body #modal#modal .buy-sheet .prod-who p { margin: 0; font-size: 13px; color: var(--ui-muted); }
  html body #modal#modal .buy-sheet .prod-who p b { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ui-text); }
  html body #modal#modal .buy-sheet .prod-who small { font-size: 12px; font-weight: 500; letter-spacing: .01em; color: var(--ui-muted); }
  html body #modal#modal .buy-sheet .prod-opt { gap: 8px; }
  html body #modal#modal .buy-sheet .exp-chip small { margin-left: 2px; font-size: 12px; font-weight: 500; opacity: .75; }
  html body #modal#modal .buy-sheet .cc-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 12px; }
  html body #modal#modal .buy-sheet .cc-row .ui-step { height: 56px; padding: 6px; }
  html body #modal#modal .buy-sheet .prod-group { flex: none; border-radius: 14px; background: var(--buy-field); }
  html body #modal#modal .buy-sheet .prod-group > summary { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px; list-style: none; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--ui-text); }
  html body #modal#modal .buy-sheet .prod-group > summary::-webkit-details-marker { display: none; }
  html body #modal#modal .buy-sheet .prod-group > summary::after { content: ""; flex: none; width: 7px; height: 7px; margin-left: auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; opacity: .5; transform: rotate(45deg); transition: transform .2s; }
  html body #modal#modal .buy-sheet .prod-group[open] > summary::after { transform: rotate(-135deg); }
  html body #modal#modal .buy-sheet .prod-group > summary em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--ui-accent); }
  html body #modal#modal .buy-sheet .prod-group .modifier-group-count { font-size: 12px; font-weight: 500; color: var(--ui-muted); font-variant-numeric: tabular-nums; }
  html body #modal#modal .buy-sheet .prod-group .modifier-group-section { display: flex; flex-direction: column; gap: 8px; padding: 0 14px 14px; }
  html body #modal#modal .buy-sheet .modifier-group-section > p { margin: 0; font-size: 12px; color: var(--ui-muted); }
  html body #modal#modal .buy-sheet .prod-group .exp-chip:not(.selected) { background: var(--buy-panel) !important; }
  html body #modal#modal .buy-sheet .prod-qty-row { display: flex; align-items: center; gap: 12px; min-height: 48px; }
  html body #modal#modal .buy-sheet .prod-qty-row .pick-info { flex: 1; }
  html body #modal#modal .buy-sheet .prod-count { font-size: 13px; color: var(--ui-muted); font-variant-numeric: tabular-nums; }
  html body #modal#modal .buy-sheet .prod-count b { color: var(--ui-text); font-weight: 700; }
  html body #modal#modal .buy-sheet .prod-count.acc-complete b { color: var(--ui-ok); }
  html body #modal#modal .buy-sheet .prod-price { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 8px; }
  html body #modal#modal .buy-sheet .prod-price .exp-chip { height: 42px !important; min-height: 42px !important; }
    html body #modal#modal .buy-sheet .pay-alt:disabled { opacity: .5; cursor: default; filter: none; }
  html body #modal#modal .buy-sheet .fichera-picker .pick-list { flex: none; max-height: 232px; }
  html body #modal#modal .buy-sheet .pick-row.is-on { background: var(--ui-accent-soft) !important; }
  html body #modal#modal .buy-sheet .pick-row.is-on > .ui-ic { color: var(--ui-accent); }
  /* Agregar anfitriona nueva (v509, pedido del usuario: que resalte): tinte azul, placa sólida con +, título en acento;
     pegada abajo de la lista para verse aunque haya muchas coincidencias. Sin contorno ni resplandor. */
  html body #modal#modal .buy-sheet .pick-row.lf-add { position: sticky; bottom: 0; z-index: 1; margin-top: 4px !important; background: color-mix(in srgb, var(--ui-accent) 16%, var(--ui-card-solid)) !important; }
  html body #modal#modal .buy-sheet .pick-row.lf-add:hover { background: color-mix(in srgb, var(--ui-accent) 24%, var(--ui-card-solid)) !important; }
  html body #modal#modal .buy-sheet .pick-row.lf-add:active { transform: scale(.98); }
  html body #modal#modal .buy-sheet .pick-row.lf-add .split-no { width: 36px; height: 36px; background: var(--ui-action-fill); color: var(--ui-on-action); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -2px 0 rgba(0,0,0,.2), 0 2px 0 rgba(0,0,0,.18); }
  html body #modal#modal .buy-sheet .pick-row.lf-add .split-no .ui-ic { width: 18px; height: 18px; stroke-width: 2.2; }
  html body #modal#modal .buy-sheet .pick-row.lf-add .pick-info b { color: var(--ui-accent) !important; font-weight: 700; }
  /* Lista de opciones (.pick-list / .pick-row, v439): inicial, nombre con detalle y un icono; la usan Pagar después y ¿A quién llamamos?. */
  /* Pagar después (v437, .buy-sheet.is-paylater): primero el cliente (lista con inicial, calificación y deuda),
     luego cuánto paga hoy. Con $0 (.is-zero) se ocultan las piezas de pago (.pay-part): todo queda a crédito. */
  html body #modal#modal[data-kind~="buy-sheet-is-paylater"] .modal-card { width: min(900px, 100%) !important; }
  html body #modal#modal .buy-sheet.is-zero .pay-part { display: none !important; }
  html body #modal#modal .buy-sheet.is-paylater .buy-impact { margin: 0; }
  html body #modal#modal .buy-sheet.is-pay .pick-list { max-height: 300px; margin-top: -4px; }
  html body #modal#modal .buy-sheet.is-paylater .buy-side > .pay-part { display: flex; flex-direction: column; gap: 12px; }
  html body #modal#modal .buy-sheet .pl-pick { gap: 12px; }
  html body #modal#modal .buy-sheet .pl-pick .buy-head { margin-bottom: 0; }
  html body #modal#modal .buy-sheet .adm-link .ui-ic { width: 16px; height: 16px; margin-right: 4px; vertical-align: -3px; }
  html body #modal#modal .buy-sheet .pick-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; margin: 0 -6px; padding: 0 6px; }
  html body #modal#modal .buy-sheet .pick-row { display: flex !important; align-items: center !important; gap: 12px !important; width: 100% !important; min-height: 56px !important; height: auto !important; margin: 0 !important; padding: 8px !important; border-radius: 12px !important; background: none !important; box-shadow: none !important; color: var(--ui-text) !important; text-align: left !important; }
  html body #modal#modal .buy-sheet .pick-row:hover { background: var(--buy-field) !important; }
  html body #modal#modal .buy-sheet .pick-row > .ui-ic { flex: none; width: 18px; height: 18px; color: var(--ui-muted); }
  html body #modal#modal .buy-sheet .pick-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  html body #modal#modal .buy-sheet .pick-info b { font-size: 15px; font-weight: 600; color: var(--ui-text) !important; overflow-wrap: anywhere; }
  html body #modal#modal .buy-sheet .pick-info small { font-size: 12px; font-weight: 500; letter-spacing: .01em; color: var(--ui-muted) !important; font-variant-numeric: tabular-nums; }
  /* Cuenta de dinero (v447, .buy-sheet.is-account): movimientos con filtro y búsqueda a la izquierda; saldo, lo de
     hoy y las acciones a la derecha. Movimiento, Ajustar saldo y Transferir usan .is-pay. Caja comprometida (v448,
     .is-committed) usa el mismo acomodo: categorías o personas a la izquierda, el resumen a la derecha.
     Entradas en verde, salidas en gris. */
  html body #modal#modal:is([data-kind~="buy-sheet-is-account"], [data-kind~="buy-sheet-is-committed"], [data-kind~="buy-sheet-is-transfer"], [data-kind~="buy-sheet-is-cut"], [data-kind~="buy-sheet-is-stat"]) .modal-card { width: min(900px, 100%) !important; }
  html body #modal#modal .buy-sheet:is(.is-account, .is-committed, .is-transfer, .is-cut) { grid-template-rows: minmax(0,1fr); }
  html body #modal#modal .buy-sheet .acc-tools { flex: none; display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
  html body #modal#modal .buy-sheet .acc-tools .exp-chips { flex: none; flex-wrap: nowrap; max-height: none; overflow: visible; }
  html body #modal#modal .buy-sheet .acc-tools .ui-find { flex: 1 1 auto; min-width: 0; }
  html body #modal#modal .buy-sheet .acc-amt { flex: none; font-size: 15px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ui-text); }
  html body #modal#modal .buy-sheet .acc-move.is-in .acc-amt, html body #modal#modal .buy-sheet :is(b, strong).is-in { color: var(--ui-ok) !important; }
  html body #modal#modal .buy-sheet :is(b, span, strong).is-out { color: var(--ui-danger) !important; }
  html body #modal#modal .buy-sheet .acc-move.is-out .split-no { background: var(--buy-field); color: var(--ui-muted); }
  html body #modal#modal .buy-sheet .split-no .ui-ic { width: 16px; height: 16px; }
  html body #modal#modal .buy-sheet .buy-total strong.is-short { color: var(--ui-danger) !important; }
  html body #modal#modal .buy-sheet .acc-big.is-in strong { color: var(--ui-ok); }
  html body #modal#modal .buy-sheet .buy-figs { display: flex; flex-direction: column; gap: 10px; }
  html body #modal#modal .buy-sheet .buy-figs div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ui-muted); }
  html body #modal#modal .buy-sheet .buy-figs b { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ui-text); }
  html body #modal#modal .buy-sheet:is(.is-account, .is-committed, .is-transfer, .is-cut) .buy-impact { margin: 0; }
  html body #modal#modal .buy-sheet:is(.is-account, .is-committed, .is-transfer, .is-cut) .pay-actions { margin-top: auto; }
  html body #modal#modal .buy-sheet:is(.is-account, .is-committed, .is-transfer, .is-cut) .pay-actions .buy-save { margin-top: 0 !important; }
  html body #modal#modal .buy-sheet.is-committed .buy-products { gap: 10px; overflow-y: auto; }
  html body #modal#modal .buy-sheet.is-committed .buy-head { margin: 4px 0 0; }
  html body #modal#modal .buy-sheet .cm-cats { flex: none; overflow: visible; }
  html body #modal#modal .buy-sheet .pick-row > .acc-amt + .ui-ic { margin-left: -4px; }
  html body #modal#modal .buy-sheet .cm-tabs { flex: none; }
  html body #modal#modal .buy-sheet .cm-person { margin-bottom: 6px; }
  html body #modal#modal .buy-sheet .cm-person > summary { min-height: 56px; padding: 0 14px 0 8px; gap: 12px; }
  html body #modal#modal .buy-sheet .cm-person > summary .pick-info { flex: 1; }
  html body #modal#modal .buy-sheet .cm-person > summary::after { margin-left: 0; }
  html body #modal#modal .buy-sheet .cm-lines { display: flex; flex-direction: column; gap: 6px; padding: 0 14px 14px 52px; }
  html body #modal#modal .buy-sheet .cm-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; color: var(--ui-muted); }
  html body #modal#modal .buy-sheet .cm-line small { display: block; font-size: 12px; font-weight: 500; letter-spacing: .01em; }
  html body #modal#modal .buy-sheet .cm-line b { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ui-text); }
  html body #modal#modal .buy-sheet .cm-line.is-total { padding-top: 6px; border-top: 1px solid color-mix(in srgb,var(--ui-text) 8%,transparent); font-weight: 600; color: var(--ui-text); }
  html body #modal#modal .buy-sheet .cm-sub { margin: 6px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .01em; color: var(--ui-muted); }
  html body #modal#modal .buy-sheet .cc-row .tc-all { height: 64px !important; min-height: 64px !important; border-radius: 14px !important; }
  html body #modal#modal .buy-sheet .exp-chip.is-static { cursor: default; pointer-events: none; }
  html body #modal#modal .buy-sheet .acc-kind { flex: none; margin: 0; }
  html body #modal#modal .buy-sheet .acc-kind .pick-row:not(.is-on) > .ui-ic { opacity: 0; }
  html body #modal#modal .buy-sheet .acc-items { flex: none; max-height: 240px; }
  html body #modal#modal .buy-sheet .pl-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--ui-muted); vertical-align: 0; }
  html body #modal#modal .buy-sheet .pl-dot.is-ok { background: var(--ui-ok); }
  html body #modal#modal .buy-sheet .pl-dot.is-warn { background: var(--ui-warn); }
  html body #modal#modal .buy-sheet .pl-dot.is-bad { background: var(--ui-danger); }
  html body #modal#modal .buy-sheet .pl-who { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid color-mix(in srgb,var(--ui-text) 8%,transparent); }
  html body #modal#modal .buy-sheet .pl-who .pick-info b { font-size: 17px; font-weight: 700; }
  /* Cuenta dividida (v434, .buy-sheet.is-split): arriba la forma de dividir. Partes iguales en dos columnas
     (personas | saldo); por productos en tres, como Cobrar (productos | lo que se recibe | total, forma de pago y botón). */
  html body #modal#modal[data-kind~="buy-sheet-is-split"] .modal-card { width: min(900px, 100%) !important; }
  html body #modal#modal[data-kind~="buy-sheet-is-split-items"] .modal-card { width: min(1180px, 100%) !important; }
  html body #modal#modal .buy-sheet.is-split { grid-template-columns: minmax(0,1fr) 320px; grid-template-rows: auto minmax(0,1fr); grid-template-areas: "seg seg" "list side"; gap: 12px 16px; }
  html body #modal#modal .buy-sheet.is-split-items { grid-template-columns: minmax(300px,1.25fr) minmax(0,.85fr) 320px; grid-template-rows: auto minmax(0,1fr) auto; grid-template-areas: "seg seg seg" "list pay side" "list pay go"; }
  html body #modal#modal .buy-sheet.is-split .split-seg { grid-area: seg; max-height: none; overflow: visible; }
  html body #modal#modal .buy-sheet.is-split .exp-chip:disabled { opacity: .5; cursor: default; }
  html body #modal#modal .buy-sheet.is-split .split-list { grid-area: list; }
  html body #modal#modal .buy-sheet.is-split .split-list .adm-list { flex: 1 1 auto; max-height: none; min-height: 0; }
  html body #modal#modal .buy-sheet.is-split .chg-pay { grid-area: pay; gap: 14px; padding: 16px; overflow-y: auto; }
  html body #modal#modal .buy-sheet.is-split .buy-side { grid-area: side; gap: 12px; }
  html body #modal#modal .buy-sheet.is-split .buy-save { grid-area: go; margin-top: 0 !important; }
  html body #modal#modal .buy-sheet.is-split .buy-impact { margin: 0; }
  html body #modal#modal .buy-sheet.is-split .adm-row:not(.is-on) .adm-amt { color: var(--ui-muted); font-weight: 500; }
  html body #modal#modal .buy-sheet .split-list .buy-head { align-items: center; flex-wrap: wrap; gap: 8px 12px; }
  html body #modal#modal .buy-sheet .split-parts { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin: 4px 0 0; padding: 0 6px 0 0; list-style: none; }
  html body #modal#modal .buy-sheet .split-parts li { display: grid; grid-template-columns: 32px minmax(0,1fr) auto auto; align-items: center; gap: 12px; min-height: 56px; padding: 6px 0; border-top: 1px solid color-mix(in srgb,var(--ui-text) 6%,transparent); }
  html body #modal#modal .buy-sheet .split-parts li:first-child { border-top: 0; }
  html body #modal#modal .buy-sheet .split-no { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ui-accent-soft); color: var(--ui-accent); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
  html body #modal#modal .buy-sheet .split-who { min-width: 0; font-size: 15px; color: var(--ui-text); }
  html body #modal#modal .buy-sheet .split-parts b { font-size: 17px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ui-text); }
  html body #modal#modal .buy-sheet .split-go { display: inline-flex !important; align-items: center !important; gap: 8px !important; height: 40px !important; min-height: 40px !important; margin: 0 !important; padding: 0 14px !important; border-radius: 11px !important; background: var(--ui-action-fill) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.22),var(--ui-action-glow) !important; color: var(--ui-on-action) !important; font-size: 14px !important; font-weight: 600 !important; }
  html body #modal#modal .buy-sheet .split-go .ui-ic { width: 18px; height: 18px; }
  html body #modal#modal .buy-sheet .split-go:hover { filter: brightness(1.08); }
  @media (min-width: 761px) and (max-width: 1100px) {
    html body #modal#modal .buy-sheet.is-split-items { grid-template-columns: minmax(0,1fr) 300px; grid-template-rows: auto auto auto 1fr; grid-template-areas: "seg seg" "list side" "pay side" "pay go"; align-items: start; overflow-y: auto; }
    html body #modal#modal .buy-sheet.is-split-items :is(.chg-pay, .split-list) { min-height: auto; overflow: visible; }
    html body #modal#modal .buy-sheet.is-split-items .adm-list { max-height: 260px; }
    html body #modal#modal .buy-sheet.is-split-items .buy-save { align-self: end; }
  }
  /* Tableta y laptop angosta: lo que se recibe arriba y la cuenta abajo, junto al panel del total; si no cabe, la ventana se desliza. */
  @media (min-width: 761px) and (max-width: 1100px) {
    html body #modal#modal .buy-sheet.is-charge { grid-template-columns: minmax(0,1fr) 300px; grid-template-rows: auto auto 1fr; grid-template-areas: "pay side" "acct side" "acct go"; align-items: start; overflow-y: auto; }
    html body #modal#modal .buy-sheet.is-charge :is(.chg-pay, .chg-acct) { min-height: auto; overflow: visible; }
    html body #modal#modal .buy-sheet.is-charge .chg-items { flex: none; max-height: 220px; }
    html body #modal#modal .buy-sheet.is-charge .buy-save { align-self: end; }
  }
  @media (max-width: 760px) {
    html body #modal#modal[data-kind~="buy-sheet"] { align-items: flex-end !important; padding: 0px !important; }
    html body #modal#modal[data-kind~="buy-sheet"] .modal-card { width: 100% !important; max-height: 94dvh !important; padding: 16px 14px calc(14px + env(safe-area-inset-bottom)) !important; border-radius: 20px 20px 0 0 !important; animation: ui-sheet .24s var(--ui-ease) both; }
    html body #modal#modal[data-kind~="buy-sheet"] #modalBody { overflow-y: auto !important; }
    /* v556: el inicio de sesión va centrado también en celular (antes salía pegado abajo como hoja). */
    html body #modal#modal[data-kind~="buy-sheet-is-login"] { align-items: center !important; padding: max(16px,env(safe-area-inset-top)) 16px max(16px,env(safe-area-inset-bottom)) !important; }
    html body #modal#modal[data-kind~="buy-sheet-is-login"] .modal-card { max-width: 440px; margin: 0 auto !important; padding-bottom: 14px !important; border-radius: 20px !important; animation: ui-fade .2s ease-out both; }
    html body #modal#modal .buy-sheet { display: flex; flex-direction: column; max-height: none; height: auto; gap: 14px; }
    html body #modal#modal .buy-sheet .buy-fields { grid-template-columns: minmax(0,1fr); }
    html body #modal#modal .buy-sheet .buy-cols { display: none; }
    html body #modal#modal .buy-sheet .buy-line { grid-template-columns: repeat(3,minmax(0,1fr)) 34px; }
    html body #modal#modal .buy-sheet .buy-prod { grid-column: 1 / -1; }
    html body #modal#modal .buy-sheet .buy-cap { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; color: var(--ui-muted); }
    html body #modal#modal .buy-sheet .buy-sub { display: none; }
    html body #modal#modal .buy-sheet .buy-del { align-self: end; }
    html body #modal#modal .buy-sheet .buy-side { overflow: visible; }
    /* Fijo abajo: un margen sólido del color del panel tapa lo que se desplaza por detrás. */
    html body #modal#modal .buy-sheet .buy-save { position: sticky; bottom: 0; z-index: 2; box-shadow: inset 0 1px 0 rgba(255,255,255,.22),var(--ui-action-glow),0 0 0 10px var(--buy-panel) !important; }
    html body #modal#modal .buy-sheet :is(.buy-save, .buy-save.is-danger):disabled { box-shadow: 0 0 0 10px var(--buy-panel) !important; }
    html body #modal#modal .buy-sheet .exp-chips.is-scroll { max-height: none; overflow: visible; }
    html body #modal#modal .buy-sheet .pay-stats { grid-template-columns: minmax(0,1fr); }
    html body #modal#modal .buy-sheet .pay-stats > div { flex-direction: row; align-items: baseline; justify-content: space-between; }
    /* Cobrar (v433): la cifra (en un renglón) y la forma de pago arriba, luego el efectivo con billetes, el monto y la propina, y al final la cuenta; el botón fijo abajo. */
    html body #modal#modal .buy-sheet.is-charge { display: flex; flex-direction: column; gap: 12px; }
    html body #modal#modal .buy-sheet.is-charge > * { flex: none; }
    html body #modal#modal .buy-sheet.is-charge .buy-side { order: 1; }
    html body #modal#modal .buy-sheet.is-charge .chg-pay { order: 2; overflow: visible; }
    html body #modal#modal .buy-sheet.is-charge .chg-acct { order: 3; }
    html body #modal#modal .buy-sheet.is-charge .buy-save { order: 4; }
    html body #modal#modal .buy-sheet .chg-items { max-height: 220px; }
    /* Cuenta (v447): el saldo, lo de hoy y las acciones arriba; debajo los movimientos con la lista limitada. */
    html body #modal#modal .buy-sheet:is(.is-account, .is-committed, .is-cut) .buy-side { order: -1; }
    html body #modal#modal .buy-sheet:is(.is-account, .is-committed, .is-transfer, .is-cut) { display: flex; }
    html body #modal#modal .buy-sheet .cc-row .tc-all { height: 48px !important; min-height: 48px !important; }
    html body #modal#modal .buy-sheet.is-account .pick-list { flex: none; max-height: 52dvh; }
    html body #modal#modal .buy-sheet .acc-tools { flex-wrap: wrap; }
    html body #modal#modal .buy-sheet .acc-tools .ui-find { flex-basis: 100%; }
    html body #modal#modal .buy-sheet.is-charge .chg-pay > :not(.field) { order: -1; }
    html body #modal#modal .buy-sheet.is-charge .buy-total { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; column-gap: 12px; padding-bottom: 12px; }
    html body #modal#modal .buy-sheet.is-charge .buy-total strong { grid-column: 2; grid-row: 1 / 3; font-size: 28px; }
    html body #modal#modal .buy-sheet.is-charge .dep-status { flex-direction: row; flex-wrap: wrap; justify-content: space-between; column-gap: 12px; }
    html body #modal#modal .buy-sheet .chg-amt { flex-wrap: nowrap; }
    html body #modal#modal .buy-sheet .chg-amt input { flex: 1 1 0; min-width: 72px; }
    html body #modal#modal .buy-sheet .chg-amt .exp-chip { flex: none; padding: 0 12px !important; }
    /* Cuenta dividida (v434): la forma de dividir arriba; por partes, el saldo y luego las personas; por productos,
       la lista, el total con la forma de pago y el efectivo; el botón fijo abajo. */
    html body #modal#modal .buy-sheet.is-split { display: flex; flex-direction: column; gap: 12px; }
    html body #modal#modal .buy-sheet.is-split > * { flex: none; }
    html body #modal#modal .buy-sheet.is-split .buy-side { order: 1; }
    html body #modal#modal .buy-sheet.is-split .split-list { order: 2; }
    html body #modal#modal .buy-sheet.is-split-items .split-list { order: 0; }
    html body #modal#modal .buy-sheet.is-split .chg-pay { order: 2; overflow: visible; }
    html body #modal#modal .buy-sheet.is-split .buy-save { order: 3; }
    html body #modal#modal .buy-sheet.is-split .split-seg { order: -1; }
    html body #modal#modal .buy-sheet.is-split .split-list .adm-list { max-height: 300px; }
    html body #modal#modal .buy-sheet.is-split .buy-total { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; column-gap: 12px; padding-bottom: 12px; }
    html body #modal#modal .buy-sheet.is-split .buy-total strong { grid-column: 2; grid-row: 1 / 3; font-size: 28px; }
    /* Agregar producto (v440): las columnas no se desplazan por dentro; los botones quedan fijos abajo sobre el fondo de la ventana. */
    html body #modal#modal .buy-sheet.is-product :is(.prod-card, .buy-side) { overflow: visible; }
    html body #modal#modal .buy-sheet.is-product > .prod-go { position: sticky; bottom: 0; z-index: 2; padding-top: 10px; background: var(--buy-card); box-shadow: 0 0 0 12px var(--buy-card); }
    html body #modal#modal .buy-sheet .split-parts li { grid-template-columns: 32px minmax(0,1fr) auto; grid-template-areas: "no who amt" "go go go"; row-gap: 8px; }
    html body #modal#modal .buy-sheet .split-parts .split-go { grid-area: go; justify-content: center !important; width: 100% !important; }
  }
}
}
  @media screen {
  @layer night-home {
  html { --aur-ground: var(--home-bg) !important; --aur-ink: var(--home-text) !important; --aur-ink-muted: var(--home-muted) !important; --aur-ink-faint: var(--home-label) !important; --aur-glass: rgba(var(--home-surface-top-rgb),.3264) !important; --aur-glass-strong: rgba(var(--home-surface-top-rgb),.408) !important; --aur-glass-border: rgba(var(--home-line-rgb),.16) !important; --aur-line: rgba(var(--home-line-rgb),.12) !important; --aur-line-soft: rgba(var(--home-line-rgb),.06) !important; --aur-blue: var(--home-accent) !important; --aur-blue-tint: rgba(var(--home-accent-rgb),.12) !important; --aur-green: var(--home-success) !important; --aur-rose: var(--home-danger) !important; }
  html body .page:not(#dashboard):not(#mesas):not(#ventas):not(#caja,#gastos,#corte,#estadisticas,#comandas,#ficheras,#personal,#usuarios,#inventario,#menuadmin,#clientes,#auditoria,#finanzas,#config,#mesero) { color: var(--home-text) !important; }
  html body .page:not(#dashboard):not(#mesas):not(#ventas):not(#caja,#gastos,#corte,#estadisticas,#comandas,#ficheras,#personal,#usuarios,#inventario,#menuadmin,#clientes,#auditoria,#finanzas,#config,#mesero) :is(h1, h2, h3, h4, h5, h6, strong, b, label, td, th) { color: var(--home-text) !important; }
  html body .page:not(#dashboard):not(#mesas):not(#ventas):not(#caja,#gastos,#corte,#estadisticas,#comandas,#ficheras,#personal,#usuarios,#inventario,#menuadmin,#clientes,#auditoria,#finanzas,#config,#mesero) :is(.muted, small, .subtitle, .hint, .help) { color: var(--home-muted) !important; }
  html body .page:not(#dashboard):not(#mesas):not(#ventas):not(#caja,#gastos,#corte,#estadisticas,#comandas,#ficheras,#personal,#usuarios,#inventario,#menuadmin,#clientes,#auditoria,#finanzas,#config,#mesero) :is(.card, .stats-card, .table-wrap, .data-table, table) { background: rgba(var(--home-surface-top-rgb),.88) !important; color: var(--home-text) !important; border-color: rgba(var(--home-line-rgb),.12) !important; }
  html body .page:not(#dashboard):not(#mesas):not(#ventas):not(#caja,#gastos,#corte,#estadisticas,#comandas,#ficheras,#personal,#usuarios,#inventario,#menuadmin,#clientes,#auditoria,#finanzas,#config,#mesero) :is(td, th, tr, thead, tbody) { border-color: rgba(var(--home-line-rgb),.12) !important; }
  html body .page:not(#dashboard):not(#mesas):not(#ventas):not(#caja,#gastos,#corte,#estadisticas,#comandas,#ficheras,#personal,#usuarios,#inventario,#menuadmin,#clientes,#auditoria,#finanzas,#config,#mesero) th { background: rgba(var(--home-surface-bottom-rgb),.8) !important; }
  html body .page:not(#dashboard):not(#mesas):not(#ventas):not(#caja,#gastos,#corte,#estadisticas,#comandas,#ficheras,#personal,#usuarios,#inventario,#menuadmin,#clientes,#auditoria,#finanzas,#config,#mesero) tbody tr { background: transparent !important; }
  html body .page:not(#dashboard):not(#mesas):not(#ventas):not(#caja,#gastos,#corte,#estadisticas,#comandas,#ficheras,#personal,#usuarios,#inventario,#menuadmin,#clientes,#auditoria,#finanzas,#config,#mesero) tbody tr:hover { background: rgba(var(--home-accent-rgb),.08) !important; }
  html body .page:not(#dashboard):not(#mesas):not(#ventas):not(#caja,#gastos,#corte,#estadisticas,#comandas,#ficheras,#personal,#usuarios,#inventario,#menuadmin,#clientes,#auditoria,#finanzas,#config,#mesero) :is(input:where(:not(.ui-find > input, .ui-step > input)), select, textarea, .ghost) { background: rgba(var(--home-surface-top-rgb),.65) !important; color: var(--home-text) !important; border-color: rgba(var(--home-line-rgb),.16) !important; }
  html body .page:not(#dashboard):not(#mesas):not(#ventas):not(#caja,#gastos,#corte,#estadisticas,#comandas,#ficheras,#personal,#usuarios,#inventario,#menuadmin,#clientes,#auditoria,#finanzas,#config,#mesero) :is(input, textarea)::placeholder { color: var(--home-muted) !important; }
  html body .page:not(#dashboard):not(#mesas):not(#ventas):not(#caja,#gastos,#corte,#estadisticas,#comandas,#ficheras,#personal,#usuarios,#inventario,#menuadmin,#clientes,#auditoria,#finanzas,#config,#mesero) :is(.primary, button.active) { background: var(--home-accent) !important; color: var(--brandText,#fff) !important; border-color: transparent !important; }
  html body :is(.page:not(#dashboard):not(#mesas):not(#ventas):not(#caja,#gastos,#corte,#estadisticas,#comandas,#ficheras,#personal,#usuarios,#inventario,#menuadmin,#clientes,#auditoria,#finanzas,#config,#mesero) :is(.primary, button.active)) :is(strong, b, small, span:not([class])) { color: inherit !important; }
  html body .page:not(#dashboard):not(#mesas):not(#ventas):not(#caja,#gastos,#corte,#estadisticas,#comandas,#ficheras,#personal,#usuarios,#inventario,#menuadmin,#clientes,#auditoria,#finanzas,#config,#mesero) :is(.ok, .success) { color: var(--home-success) !important; }
  html body .page:not(#dashboard):not(#mesas):not(#ventas):not(#caja,#gastos,#corte,#estadisticas,#comandas,#ficheras,#personal,#usuarios,#inventario,#menuadmin,#clientes,#auditoria,#finanzas,#config,#mesero) :is(.danger, .error) { color: var(--home-danger) !important; }
}
}
  @media screen {
  @layer night-home {
  html body[data-screen~="mesas-on"]:is(#mesas:not(.hidden):not([hidden]), *) .app.app { background-color: var(--home-bg) !important; background-image: linear-gradient(180deg,rgba(var(--home-bg-rgb),var(--home-hero-wash-near,.1)) 0px,rgba(var(--home-bg-rgb),var(--home-hero-wash-near,.1)) var(--mesas-hero-start,360px),var(--home-bg) 100%),var(--home-wallpaper,var(--home-default-wallpaper)) !important; background-position: center var(--mesas-hero-offset,0px),center var(--mesas-hero-offset,0px) !important; background-size: 100% var(--mesas-hero-height,540px),100% var(--mesas-hero-height,540px) !important; background-repeat: no-repeat !important; }
  html body[data-screen~="mesas-on"]:is(#mesas:not(.hidden):not([hidden]), *) .content.content { background: transparent !important; }
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
}
}

  @media screen {
  @layer night-home {
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  @keyframes mesa-bell-ring { 
  0%, 100% { transform: rotateZ(0deg); }
  15% { transform: rotateZ(10deg); }
  30% { transform: rotateZ(-10deg); }
  45% { transform: rotateZ(5deg); }
  60% { transform: rotateZ(-5deg); }
  75% { transform: rotateZ(2deg); }
}
  
}
}

  @property --mesas-search-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
  @media screen {
  @layer night-home {
  
  
  
  
  
  
  @keyframes mesas-search-contour { 
  100% { --mesas-search-angle: 360deg; }
}
}
}





  @layer night-home {
  html body .waiter-request-icon { display: inline-block !important; width: 18px !important; height: 18px !important; flex: 0 0 18px !important; vertical-align: middle !important; stroke: currentcolor !important; fill: none !important; color: var(--home-accent) !important; margin-right: 8px !important; }
  
}






  
  @layer night-home {
  :root { --floating-text-depth: 0 1px 1px rgba(0,0,0,.7),0 3px 4px rgba(0,0,0,.65),0 7px 12px rgba(0,0,0,.45); --floating-icon-depth: drop-shadow(0 1px 1px rgba(0,0,0,.7)) drop-shadow(0 4px 3px rgba(0,0,0,.55)); }
  html[data-theme="light"] { --floating-text-depth: 0 1px 1px rgba(0,0,0,.22),0 3px 4px rgba(0,0,0,.18),0 7px 12px rgba(0,0,0,.12); --floating-icon-depth: drop-shadow(0 1px 1px rgba(0,0,0,.28)) drop-shadow(0 4px 3px rgba(0,0,0,.22)); }
  
  
}

  @media screen {
  @layer night-home {
  html body[data-screen~="cuenta-on"]:is(#ventas[data-context="account"]:not(.hidden), *) .app.app { background-color: var(--home-bg) !important; background-image: linear-gradient(180deg,rgba(var(--home-bg-rgb),var(--home-hero-wash-near,.1)) 0px,rgba(var(--home-bg-rgb),var(--home-hero-wash-near,.1)) 320px,var(--home-bg) 100%),var(--home-wallpaper,var(--home-default-wallpaper)) !important; background-position: center top !important; background-size: 100% 560px !important; background-repeat: no-repeat !important; }
  html body[data-screen~="cuenta-on"]:is(#ventas[data-context="account"]:not(.hidden), *) .content.content { background: transparent !important; }
}
}
  @media screen {
  @layer night-home {
  html body[data-screen~="cuenta-on"]:is(#ventas[data-context="account"]:not(.hidden), *) { background: var(--home-bg) !important; }
  html body[data-screen~="cuenta-on"]:is(#ventas[data-context="account"]:not(.hidden), *)::before { content: none !important; background-image: none !important; }
  
  @media (min-width: 901px) {
  html[data-screen~="cuenta-on"]:is(#ventas[data-context="account"]:not(.hidden), *), html body[data-screen~="cuenta-on"]:is(#ventas[data-context="account"]:not(.hidden), *) { height: 100dvh !important; min-height: 0px !important; margin: 0px !important; padding: 0px !important; overflow: hidden !important; }
  
  html body[data-screen~="cuenta-on"]:is(#ventas[data-context="account"]:not(.hidden), *) .app.app { width: 100% !important; max-width: none !important; margin: 0px !important; padding: 0px !important; grid-template-rows: minmax(0px, 1fr) !important; height: calc(100dvh / var(--pcz,1)) !important; min-height: 0px !important; overflow: hidden !important; }
  html body[data-screen~="cuenta-on"]:is(#ventas[data-context="account"]:not(.hidden), *) .content.content { position: relative !important; box-sizing: border-box !important; width: 100% !important; max-width: none !important; margin: 0px !important; padding: 0px !important; gap: 0px !important; display: flex !important; flex-direction: column !important; height: 100% !important; min-height: 0px !important; overflow: hidden !important; }
  
}
}
}
  
  @media screen {
  @layer night-home {
  html { --home-glass: linear-gradient(140deg,rgba(var(--home-surface-top-rgb),var(--home-glass-top-alpha,.72)),rgba(var(--home-surface-bottom-rgb),var(--home-glass-bottom-alpha,.78))); --aur-glass: rgba(var(--home-surface-top-rgb),var(--home-glass-top-alpha,.72)) !important; --aur-glass-strong: rgba(var(--home-surface-top-rgb),.94) !important; --theme-text: var(--home-text) !important; --theme-muted: var(--home-muted) !important; --theme-accent: var(--home-accent) !important; --theme-danger: var(--home-danger) !important; --theme-info: var(--home-accent) !important; --theme-bg: var(--home-bg) !important; --theme-panel: rgb(var(--home-surface-top-rgb)) !important; --theme-panel2: rgb(var(--home-surface-bottom-rgb)) !important; }
  
  html body .page:not(#dashboard):not(#mesas):not(#ventas):not(#caja,#gastos,#corte,#estadisticas,#comandas,#ficheras,#personal,#usuarios,#inventario,#menuadmin,#clientes,#auditoria,#finanzas,#config,#mesero) :is(.card, .stats-card, .table-wrap, .data-table, table) { background: rgba(var(--home-surface-top-rgb),.94) !important; color: var(--home-text) !important; box-shadow: var(--home-elevation) !important; }
  html body .page:not(#dashboard):not(#mesas):not(#ventas):not(#caja,#gastos,#corte,#estadisticas,#comandas,#ficheras,#personal,#usuarios,#inventario,#menuadmin,#clientes,#auditoria,#finanzas,#config,#mesero) :is(td, th) { color: var(--home-text) !important; }
  html body #modal#modal#modal#modal .modal-card:not(:is([data-kind~="business-settings-menu"], [data-kind~="buy-sheet"], [data-kind~="mz-sheet"])) { background: rgba(var(--home-popover-rgb),.97) !important; color: var(--home-text) !important; box-shadow: var(--home-elevation) !important; }
  html body #modal#modal#modal#modal:not(:is([data-kind~="business-settings-menu"], [data-kind~="buy-sheet"], [data-kind~="mz-sheet"])) :is(h2, h3, h4, label, input, select, textarea) { color: var(--home-text) !important; }
  html body #modal#modal#modal#modal:not(:is([data-kind~="business-settings-menu"], [data-kind~="buy-sheet"], [data-kind~="mz-sheet"])) :is(.muted, small, .hint, .help) { color: var(--home-muted) !important; }
  html body #modal#modal#modal#modal:not(:is([data-kind~="business-settings-menu"], [data-kind~="buy-sheet"], [data-kind~="mz-sheet"])) :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { background: rgb(var(--home-surface-bottom-rgb)) !important; }
  html body #modal#modal#modal#modal :is(input, textarea)::placeholder { color: var(--home-muted) !important; }
  
  
  html body :is(.page, #modal) :is(button, a, input:where(:not(.ui-find > input, .ui-step > input, .cj-field-in > input, .buy-sheet input)), select, textarea:where(:not(.buy-sheet textarea, .cj-field-in > textarea))):focus-visible { outline: 2px solid var(--home-accent) !important; outline-offset: 3px !important; }
}
}
  @media screen {
  @layer night-home {
  html { --theme-surface: rgb(var(--home-surface-top-rgb)) !important; --theme-surface2: rgb(var(--home-surface-bottom-rgb)) !important; --aur-ground: var(--home-bg) !important; --aur-ink: var(--home-text) !important; --aur-ink-muted: var(--home-muted) !important; }
  html body { background-color: var(--home-bg) !important; color: var(--home-text) !important; }
  html body .page:not(#dashboard):not(#mesas):not(#ventas):not(#caja,#gastos,#corte,#estadisticas,#comandas,#ficheras,#personal,#usuarios,#inventario,#menuadmin,#clientes,#auditoria,#finanzas,#config,#mesero) :is(input:not([type="checkbox"]):not([type="radio"]):where(:not(.ui-find > input, .ui-step > input)), textarea, select, .ghost) { background: rgba(var(--home-surface-bottom-rgb),.92) !important; color: var(--home-text) !important; }
  html body .page:not(#dashboard):not(#mesas):not(#ventas):not(#caja,#gastos,#corte,#estadisticas,#comandas,#ficheras,#personal,#usuarios,#inventario,#menuadmin,#clientes,#auditoria,#finanzas,#config,#mesero) :is(table, .table-wrap, .data-table) { background: rgba(var(--home-surface-top-rgb),.94) !important; color: var(--home-text) !important; }
  html body .page:not(#dashboard):not(#mesas):not(#ventas):not(#caja,#gastos,#corte,#estadisticas,#comandas,#ficheras,#personal,#usuarios,#inventario,#menuadmin,#clientes,#auditoria,#finanzas,#config,#mesero) th { background: rgb(var(--home-surface-bottom-rgb)) !important; color: var(--home-text) !important; }
  html body .page:not(#dashboard):not(#mesas):not(#ventas):not(#caja,#gastos,#corte,#estadisticas,#comandas,#ficheras,#personal,#usuarios,#inventario,#menuadmin,#clientes,#auditoria,#finanzas,#config,#mesero) tbody tr:nth-child(2n) { background: rgba(var(--home-surface-bottom-rgb),.45) !important; }
  html body .page:not(#dashboard):not(#mesas):not(#ventas):not(#caja,#gastos,#corte,#estadisticas,#comandas,#ficheras,#personal,#usuarios,#inventario,#menuadmin,#clientes,#auditoria,#finanzas,#config,#mesero) tbody tr:hover { background: rgba(var(--home-accent-rgb),.12) !important; }
  
  
}
}
  @media screen {
  @layer night-home {
  #clubFullscreenBackground { display: none; }
  #appleWallpaperManager > [hidden] { display: none !important; }
  .fullscreen-background-picker .scene-file[hidden] { display: none !important; }
  html[data-scene] body { isolation: isolate; background: transparent !important; }
  html[data-scene] #clubFullscreenBackground { display: block; position: fixed; inset: 0px; z-index: -1; pointer-events: none; background-position: center center; background-size: cover; background-repeat: no-repeat; }
  html[data-scene="photo"] #clubFullscreenBackground { inset: -80px; filter: blur(var(--scene-blur,18px)); }
  html[data-scene] body::before, html[data-scene] body::after { content: none !important; display: none !important; }
  html[data-scene] body:is([data-screen~="mesas"], [data-screen~="ventas"], [data-screen~="page"]):is(#mesas, #ventas, .page, *) :is(.app.app.app, .content.content.content) { background: transparent !important; isolation: auto !important; }
  html[data-scene] body :is( #mesas#mesas#mesas#mesas#mesas#mesas#mesas#mesas#mesas#mesas, #ventas#ventas#ventas#ventas#ventas#ventas#ventas#ventas#ventas#ventas, .page.page.page) { background: transparent !important; }
  html[data-scene-tone="light"] { --scene-floating-ink: #202020; --scene-floating-muted: #454545; }
  html[data-scene-tone="dark"] { --scene-floating-ink: #f5f5f5; --scene-floating-muted: #d0d0d0; }
  
  
  
  
  
}
}
  @media screen {
  @layer night-home {
  html body #modal#modal#modal#modal#modal#modal#modal#modal :is( .size-option-btn) { background: rgba(var(--home-surface-top-rgb),.65) !important; color: var(--home-text) !important; border: 0px !important; border-radius: 12px !important; box-shadow: 0 4px 9px rgba(var(--home-shadow-rgb),.12) !important; transition: transform 0.25s, background-color 0.25s, box-shadow 0.25s !important; }
  html body #modal#modal#modal#modal#modal#modal#modal#modal :is( .size-option-btn).selected { background: color-mix(in srgb,var(--home-accent) 12%,rgba(var(--home-surface-top-rgb),.8)) !important; color: var(--home-accent) !important; box-shadow: inset 0 -2px var(--home-accent),0 4px 9px rgba(var(--home-shadow-rgb),.12) !important; }
  @media (hover: hover) and (pointer: fine) {
  html body #modal#modal#modal#modal#modal#modal#modal#modal :is( .size-option-btn):hover:not(:disabled) { transform: scale(1.03) !important; box-shadow: 0 5px 12px rgba(var(--home-shadow-rgb),.2) !important; }
}
  html body #modal#modal#modal#modal#modal#modal#modal#modal :is( .size-option-btn):active:not(:disabled) { transform: scale(0.97) !important; }
}
}
  @media screen {
  @layer night-home {
  html { --club-satin-wallpaper: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221600%22%20height%3D%22700%22%20viewBox%3D%220%200%201600%20700%22%20preserveAspectRatio%3D%22xMidYMin%20slice%22%3E%3Cdefs%3E%3CradialGradient%20id%3D%22atmosphere%22%3E%3Cstop%20stop-color%3D%22%23b8c8dd%22%20stop-opacity%3D%22.15%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23b8c8dd%22%20stop-opacity%3D%220%22%2F%3E%3C%2FradialGradient%3E%3CradialGradient%20id%3D%22warmth%22%3E%3Cstop%20stop-color%3D%22%23cbb78e%22%20stop-opacity%3D%22.085%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23cbb78e%22%20stop-opacity%3D%220%22%2F%3E%3C%2FradialGradient%3E%3ClinearGradient%20id%3D%22satin%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%22.2%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23b8c8dd%22%20stop-opacity%3D%220%22%2F%3E%3Cstop%20offset%3D%22.55%22%20stop-color%3D%22%23b8c8dd%22%20stop-opacity%3D%22.025%22%2F%3E%3Cstop%20offset%3D%22.93%22%20stop-color%3D%22%23b8c8dd%22%20stop-opacity%3D%22.14%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23dbe6f5%22%20stop-opacity%3D%22.24%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22glint%22%20x1%3D%220%22%20y1%3D%22.7%22%20x2%3D%221%22%20y2%3D%22.2%22%3E%3Cstop%20stop-color%3D%22%23dbe6f5%22%20stop-opacity%3D%220%22%2F%3E%3Cstop%20offset%3D%22.3%22%20stop-color%3D%22%23dbe6f5%22%20stop-opacity%3D%22.32%22%2F%3E%3Cstop%20offset%3D%22.7%22%20stop-color%3D%22%23dbe6f5%22%20stop-opacity%3D%22.14%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23dbe6f5%22%20stop-opacity%3D%220%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22fade%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22white%22%2F%3E%3Cstop%20offset%3D%22.38%22%20stop-color%3D%22white%22%20stop-opacity%3D%22.8%22%2F%3E%3Cstop%20offset%3D%22.78%22%20stop-color%3D%22white%22%20stop-opacity%3D%220%22%2F%3E%3C%2FlinearGradient%3E%3Cmask%20id%3D%22fadeout%22%3E%3Crect%20width%3D%221600%22%20height%3D%22700%22%20fill%3D%22url(%23fade)%22%2F%3E%3C%2Fmask%3E%3Cfilter%20id%3D%22soft%22%20x%3D%22-10%25%22%20y%3D%22-25%25%22%20width%3D%22120%25%22%20height%3D%22150%25%22%3E%3CfeGaussianBlur%20stdDeviation%3D%222%22%2F%3E%3C%2Ffilter%3E%3C%2Fdefs%3E%3Cg%20mask%3D%22url(%23fadeout)%22%3E%3Cellipse%20cx%3D%22540%22%20cy%3D%2248%22%20rx%3D%22900%22%20ry%3D%22360%22%20fill%3D%22url(%23atmosphere)%22%2F%3E%3Cellipse%20cx%3D%221190%22%20cy%3D%2236%22%20rx%3D%22480%22%20ry%3D%22260%22%20fill%3D%22url(%23warmth)%22%2F%3E%3Cpath%20d%3D%22M-180-180H1720V-70C1120-65%20900%20115%20570%20220C260%20320%2010%20280-180%20160Z%22%20fill%3D%22url(%23satin)%22%2F%3E%3Cpath%20d%3D%22M-120%20198C160%20347%20480%20248%20780%20120C1050%205%201250-70%201680-58%22%20fill%3D%22none%22%20stroke%3D%22url(%23glint)%22%20stroke-width%3D%221.4%22%2F%3E%3Cg%20opacity%3D%22.45%22%20filter%3D%22url(%23soft)%22%3E%3Cpath%20d%3D%22M-180-180H1720V-25C1090-10%20850%20165%20510%20275C200%20375-30%20315-180%20210Z%22%20fill%3D%22url(%23satin)%22%2F%3E%3Cpath%20d%3D%22M-120%20254C175%20388%20470%20303%20770%20169C1040%2048%201270-22%201680-12%22%20fill%3D%22none%22%20stroke%3D%22url(%23glint)%22%20stroke-width%3D%221.4%22%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%22M-180-180H1720V35C1050%2044%20780%20220%20440%20325C155%20413-30%20365-180%20275Z%22%20fill%3D%22url(%23satin)%22%20opacity%3D%22.18%22%20filter%3D%22url(%23soft)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); --home-default-wallpaper: var(--club-satin-wallpaper) !important; }
  html[data-theme="light"] { --club-satin-wallpaper: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221600%22%20height%3D%22700%22%20viewBox%3D%220%200%201600%20700%22%20preserveAspectRatio%3D%22xMidYMin%20slice%22%3E%3Cdefs%3E%3CradialGradient%20id%3D%22atmosphere%22%3E%3Cstop%20stop-color%3D%22%238596ac%22%20stop-opacity%3D%22.22%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%238596ac%22%20stop-opacity%3D%220%22%2F%3E%3C%2FradialGradient%3E%3CradialGradient%20id%3D%22warmth%22%3E%3Cstop%20stop-color%3D%22%23ad956c%22%20stop-opacity%3D%22.085%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23ad956c%22%20stop-opacity%3D%220%22%2F%3E%3C%2FradialGradient%3E%3ClinearGradient%20id%3D%22satin%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%22.2%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%238596ac%22%20stop-opacity%3D%220%22%2F%3E%3Cstop%20offset%3D%22.55%22%20stop-color%3D%22%238596ac%22%20stop-opacity%3D%22.025%22%2F%3E%3Cstop%20offset%3D%22.93%22%20stop-color%3D%22%238596ac%22%20stop-opacity%3D%22.19%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23657c97%22%20stop-opacity%3D%22.32%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22glint%22%20x1%3D%220%22%20y1%3D%22.7%22%20x2%3D%221%22%20y2%3D%22.2%22%3E%3Cstop%20stop-color%3D%22%23657c97%22%20stop-opacity%3D%220%22%2F%3E%3Cstop%20offset%3D%22.3%22%20stop-color%3D%22%23657c97%22%20stop-opacity%3D%22.34%22%2F%3E%3Cstop%20offset%3D%22.7%22%20stop-color%3D%22%23657c97%22%20stop-opacity%3D%22.14%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23657c97%22%20stop-opacity%3D%220%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22fade%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22white%22%2F%3E%3Cstop%20offset%3D%22.38%22%20stop-color%3D%22white%22%20stop-opacity%3D%22.8%22%2F%3E%3Cstop%20offset%3D%22.78%22%20stop-color%3D%22white%22%20stop-opacity%3D%220%22%2F%3E%3C%2FlinearGradient%3E%3Cmask%20id%3D%22fadeout%22%3E%3Crect%20width%3D%221600%22%20height%3D%22700%22%20fill%3D%22url(%23fade)%22%2F%3E%3C%2Fmask%3E%3Cfilter%20id%3D%22soft%22%20x%3D%22-10%25%22%20y%3D%22-25%25%22%20width%3D%22120%25%22%20height%3D%22150%25%22%3E%3CfeGaussianBlur%20stdDeviation%3D%222%22%2F%3E%3C%2Ffilter%3E%3C%2Fdefs%3E%3Cg%20mask%3D%22url(%23fadeout)%22%3E%3Cellipse%20cx%3D%22540%22%20cy%3D%2248%22%20rx%3D%22900%22%20ry%3D%22360%22%20fill%3D%22url(%23atmosphere)%22%2F%3E%3Cellipse%20cx%3D%221190%22%20cy%3D%2236%22%20rx%3D%22480%22%20ry%3D%22260%22%20fill%3D%22url(%23warmth)%22%2F%3E%3Cpath%20d%3D%22M-180-180H1720V-70C1120-65%20900%20115%20570%20220C260%20320%2010%20280-180%20160Z%22%20fill%3D%22url(%23satin)%22%2F%3E%3Cpath%20d%3D%22M-120%20198C160%20347%20480%20248%20780%20120C1050%205%201250-70%201680-58%22%20fill%3D%22none%22%20stroke%3D%22url(%23glint)%22%20stroke-width%3D%221.4%22%2F%3E%3Cg%20opacity%3D%22.45%22%20filter%3D%22url(%23soft)%22%3E%3Cpath%20d%3D%22M-180-180H1720V-25C1090-10%20850%20165%20510%20275C200%20375-30%20315-180%20210Z%22%20fill%3D%22url(%23satin)%22%2F%3E%3Cpath%20d%3D%22M-120%20254C175%20388%20470%20303%20770%20169C1040%2048%201270-22%201680-12%22%20fill%3D%22none%22%20stroke%3D%22url(%23glint)%22%20stroke-width%3D%221.4%22%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%22M-180-180H1720V35C1050%2044%20780%20220%20440%20325C155%20413-30%20365-180%20275Z%22%20fill%3D%22url(%23satin)%22%20opacity%3D%22.18%22%20filter%3D%22url(%23soft)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
  html:not([data-wallpaper]):not([data-scene]) { --home-hero-wash-near: .06 !important; --home-hero-wash-far: .26 !important; }
  html[data-theme="light"]:not([data-wallpaper]):not([data-scene]) { --home-hero-wash-near: .04 !important; --home-hero-wash-far: .22 !important; }
}
}
  @media screen {
  @layer club-card-theme {
  html[data-palette^="carbon"] { --carbon-action: var(--neon-action-fill,var(--neon-action,#b6ff4d)); --carbon-on-action: var(--neon-on-action,#13171b); }
  
  
  
}
}
  @media screen {
  @layer night-home {
  html[data-scene="preset"] #clubFullscreenBackground, html[data-scene="photo"] #clubFullscreenBackground { inset: 0px !important; filter: none !important; background-image: none !important; }
  #clubFullscreenBackground .club-background-art { position: absolute; inset: 0px 0px auto; height: clamp(420px, 78vh, 680px); background-position: center top; background-size: cover; background-repeat: no-repeat; mask-image: linear-gradient(rgb(0, 0, 0) 0%, rgb(0, 0, 0) 22%, rgba(0, 0, 0, 0.6) 55%, transparent 100%); pointer-events: none; }
  html[data-scene="photo"] #clubFullscreenBackground .club-background-art { inset: -35px -35px auto; height: calc(70px + clamp(420px, 78vh, 680px)); filter: blur(var(--scene-blur,12px)); }
  /* Fondo de pantalla (v525): la ventana de la app (tarjeta sólida, encabezado con icono y X), Diseños en
     cuadrícula de miniaturas, Colores lisos en pastillas y Tu imagen con su desenfoque en un renglón. Lo elegido
     se marca con el azul suave de la app. */
  html body .club-background-picker { display: flex; flex-direction: column; gap: 12px; color: var(--ui-text) !important; }
  #appleWallpaperManager > :not(.club-background-picker) { display: none !important; }
  .club-background-dialog { width: min(800px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; border: 0; border-radius: var(--ui-r-lg,20px); padding: 20px; background: var(--ui-card-solid); color: var(--ui-text); box-shadow: 0 24px 60px -12px rgba(0,0,0,.5); }
  .club-background-dialog::backdrop { background: rgba(0,0,0,.45); backdrop-filter: var(--ui-scrim-blur,blur(10px)); }
  .club-bg-close { position: absolute; top: 18px; right: 18px; }
  .club-bg-head { display: grid; grid-template-columns: 44px minmax(0,1fr); align-items: start; gap: 12px; padding-right: 44px; }
  .club-bg-head h3 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--ui-text); }
  .club-bg-head p { margin: 2px 0 0; font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--ui-muted) !important; }
  .club-bg-sub { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--ui-text); }
  .club-bg-sub small { margin-left: 4px; font-size: 12px; font-weight: 500; color: var(--ui-muted); }
  .club-bg-presets { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; }
  html body .club-bg-choice { display: flex; flex-direction: column; align-items: stretch; gap: 3px; min-width: 0; padding: 6px 6px 8px; border: 0 !important; border-radius: 14px; background: transparent !important; color: var(--ui-text) !important; box-shadow: none !important; text-align: left; cursor: pointer; transition: background .15s, transform .1s; }
  html body .club-bg-choice:hover { background: var(--ui-hover) !important; }
  html body .club-bg-choice:active { transform: scale(.97); }
  html body .club-bg-choice[aria-pressed="true"] { background: var(--ui-accent-soft) !important; }
  .club-bg-thumb { display: block; aspect-ratio: 16 / 10; margin-bottom: 3px; border-radius: 10px; background-color: var(--home-bg); background-size: cover; background-position: center top; box-shadow: var(--ui-glass-edge), 0 4px 10px -4px rgba(0,0,0,.35); }
  .club-bg-choice strong { padding: 0 2px; font-size: 13px; font-weight: 600; }
  .club-bg-choice small { padding: 0 2px; font-size: 12px; font-weight: 500; line-height: 1.35; color: var(--ui-muted); }
  .club-bg-status { padding: 0 2px; font-size: 12px; font-weight: 600; color: var(--ui-accent); }
  .club-bg-status:empty { display: none; }
  .fullscreen-background-options { display: flex; flex-wrap: wrap; gap: 8px; }
  html body .fullscreen-background-option { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 6px; border: 0 !important; border-radius: 999px; background: var(--ui-glass-btn) !important; box-shadow: var(--ui-glass-edge) !important; color: var(--ui-text) !important; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
  html body .fullscreen-background-option[aria-pressed="true"] { background: var(--ui-accent-soft) !important; color: var(--ui-accent) !important; }
  .scene-swatch { flex: none; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(127,127,127,.35); }
  .club-bg-photo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
  .club-bg-btn { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border: 0; border-radius: 11px; background: var(--ui-glass-btn); box-shadow: var(--ui-glass-edge); color: var(--ui-text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
  .club-bg-btn:disabled { opacity: .55; cursor: default; }
  .scene-blur-control { display: flex; flex: 1 1 240px; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--ui-muted); }
  .scene-blur-control input { flex: 1; min-width: 0; accent-color: var(--ui-accent); }
  .scene-blur-control:has(input:disabled) { opacity: .5; }
  .scene-blur-control output { min-width: 44px; font-variant-numeric: tabular-nums; color: var(--ui-text); }
  .club-background-picker button:focus-visible { outline: 2px solid var(--ui-accent); outline-offset: 2px; }
  html body .club-background-picker .scene-file[hidden] { display: none !important; }
  @media (max-width: 760px) {
  .club-bg-presets { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .club-background-dialog { padding: 16px; }
}
  @media (max-width: 420px) {
  .club-bg-presets { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
}
}
  @media screen {
  @layer club-card-theme {
  html[data-palette^="carbon"] { color-scheme: dark; }
  html[data-palette^="carbon"][data-theme="light"] { color-scheme: light; }
  
}
}
  @media screen {
  @layer night-home {
  html[data-palette^="carbon"] body :is( #appleWallpaperManager) { border: 0px !important; background: var(--home-glass) !important; color: var(--home-text) !important; }
  html[data-palette^="carbon"] body :is( #appleWallpaperManager) :is(p, .muted) { color: var(--home-muted) !important; }
}
}
}

/* Una vista oculta nunca se muestra: varias reglas del portal del mesero forzaban display:flex en #mesas y la dejaban encima de la venta. */
html body #clientes.hidden, html body #auditoria.hidden, html body #finanzas.hidden, html body #config.hidden, html body #usuarios.hidden, html body #personal.hidden, html body #estadisticas.hidden, html body #comandas.hidden, html body #caja.hidden, html body #corte.hidden, html body #menuadmin.hidden, html body #inventario.hidden, html body #finanzas.hidden, html body #gastos.hidden, html body #reportes.hidden, html body #auditoria.hidden, html body #ficheras.hidden, html body #config.hidden, html body #mesero.hidden{display:none!important}/* El portal del mesero no usa la barra lateral; el diseño de PC (html.pc-layout) la volvía a mostrar en tabletas y computadoras. */
