@font-face{font-family:Manrope;src:url('/assets/manrope.woff2') format('woff2');font-weight:400 800;font-display:swap}
@font-face{font-family:Manrope;src:url('/assets/manrope-vn.woff2') format('woff2');font-weight:400 800;font-display:swap;unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
/* Sky, cyan and seafoam are the shared workspace colors. Status colors are separate. */
:root,[data-theme=light] {
  color-scheme: light;
  --bg: #ebf8fc; --surface: #fafdff; --sidebar: #f1fbfe; --subtle: #e7f5fc;
  --ink: #102941; --secondary: #304e68; --muted: #49667c;
  --line: #d1e9f2; --line-strong: #abd5e5;
  --primary: #0867bb; --primary-hover: #0758a2; --primary-soft: #d9f3fc; --primary-text: #07598f;
  --mint: #4bdcab; --mint-soft: #d7f7ec; --mint-text: #0b6553; --cyan: #28bfdc;
  --green: #0f7a43; --green-soft: #e6f7ee; --orange: #8a5300; --orange-soft: #fff4db;
  --blue: #1d4ed8; --blue-soft: #e8f0ff; --red: #b42318; --red-soft: #fdecec;
  --hero: #d4f0ff; --hero-end: #d6f7e9; --hero-ink: var(--ink); --hero-muted: var(--secondary);
  --accent: #0a78c3; --focus: #0867bb; --shadow: 0 4px 16px #246c9f13;
  --glass-canvas: #b5e5f4;
  --glass-edge: linear-gradient(132deg, #83bfe4 0%, #faffff 26%, #64badb 54%, #6dcfbb 78%, #eefcff 100%);
  --glass-frame-shadow: 0 0 0 1px #286d992e, 0 8px 24px #246c9f26;
  --glass-hero: radial-gradient(ellipse at 102% -45%, #71e8c0 0 44%, transparent 44.5%),
    radial-gradient(ellipse at -6% -70%, #78c6f5 0 55%, transparent 55.5%),
    linear-gradient(119deg, #a0dafa, #9fe7e8 68%, #a8eed7);
  --glass-rail: linear-gradient(155deg, #caedfb, #e8f8fc 57%, #d7f5ec);
  --glass-ink: #10314b; --glass-muted: #284d66; --glass-rule: #2f719a36;
  --glass-tint: #ffffff7a; --glass-hover: #fffc;
  --glass-active: #f4fffd; --glass-active-ink: #0b615b; --glass-active-line: #15988a;
  --radius: 16px; --side: 234px;
}
:root[data-theme=dark] {
  color-scheme: dark;
  --bg: #112637; --surface: #203c50; --sidebar: #193346; --subtle: #29485c;
  --ink: #effaff; --secondary: #d4edf7; --muted: #b2d0df;
  --line: #36576a; --line-strong: #50778b;
  --primary: #195fa8; --primary-hover: #1a64b0; --primary-soft: #244961; --primary-text: #9edbff;
  --mint: #67e8b4; --mint-soft: #225249; --mint-text: #a7f7d7; --cyan: #6cdeed;
  --green: #88e6ac; --green-soft: #1b4036; --orange: #ffd191; --orange-soft: #493922;
  --blue: #9bc6ff; --blue-soft: #233c65; --red: #ffabb2; --red-soft: #4b2d39;
  --hero: #244865; --hero-end: #204e4b; --hero-ink: var(--ink); --hero-muted: var(--secondary);
  --accent: #82d7fb; --focus: #a1e6ff; --shadow: 0 4px 16px #071c2b44;
  --glass-canvas: #0c1b2a;
  --glass-edge: linear-gradient(132deg, #4177a0 0%, #b1e6fc 26%, #458fb0 54%, #489e8d 78%, #a4ddd5 100%);
  --glass-frame-shadow: 0 0 0 1px #08203280, 0 8px 26px #06152182;
  --glass-hero: radial-gradient(ellipse at 102% -45%, #21665e 0 44%, transparent 44.5%),
    radial-gradient(ellipse at -6% -70%, #245383 0 55%, transparent 55.5%),
    linear-gradient(119deg, #183b62, #20516a 68%, #215b56);
  --glass-rail: linear-gradient(155deg, #20455e, #1b364e 57%, #204b4c);
  --glass-ink: #effaff; --glass-muted: #cbebf7; --glass-rule: #beeaff38;
  --glass-tint: #d4f6ff15; --glass-hover: #d4f6ff29;
  --glass-active: #a7edda; --glass-active-ink: #103b3c; --glass-active-line: #5ee0ba;
}
*{box-sizing:border-box}html{scrollbar-color:var(--line-strong) var(--bg)}body{margin:0;background:var(--bg);color:var(--ink);font:500 15px/1.5 Manrope,system-ui,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.55}a{color:inherit}img{display:block;max-width:100%}h1,h2,h3,p{margin:0}svg{vertical-align:middle;flex:none}strong{font-weight:800}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.shell{min-height:100dvh}.sidebar{width:var(--side);position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;gap:14px;background:var(--sidebar);border-right:1px solid var(--line);padding:24px 16px 14px;z-index:10;overflow:auto}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;padding:0 7px;text-align:left;border:0;background:transparent;color:var(--ink);flex:none}.brand-icon{color:white;background:linear-gradient(145deg,var(--accent),var(--primary));width:39px;height:39px;border-radius:13px;display:grid;place-items:center;box-shadow:0 4px 10px color-mix(in srgb,var(--primary) 24%,transparent)}.brand b{font-size:21px;letter-spacing:-.9px;line-height:1.12;display:block;font-weight:800}.brand small{font-size:11px;color:var(--muted);display:block;margin-top:2px}.shop-switch{padding:10px;display:flex;gap:10px;align-items:center;background:var(--subtle);border:1px solid var(--line);border-radius:13px;text-align:left;color:var(--ink);width:100%;margin:6px 0 0}.shop-switch .grow{min-width:0}.shop-switch strong,.profile strong{display:block;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shop-switch small,.profile small{font-size:11px;color:var(--muted);display:block}.shop-icon{height:33px;width:33px;border-radius:9px;display:grid;place-items:center;background:var(--primary-soft);color:var(--primary-text);flex:none}.grow{flex:1}.nav-group{display:grid;gap:3px}.nav-group h2{text-transform:uppercase;color:var(--muted);font-size:10px;letter-spacing:.105em;margin:6px 10px}.nav{display:flex;align-items:center;gap:11px;min-height:43px;padding:0 11px;color:var(--secondary);text-align:left;border:0;border-radius:10px;background:transparent;font-weight:700;font-size:13px;text-decoration:none}.nav:hover,.quiet:hover,.icon-button:hover{background:var(--subtle);color:var(--ink)}.nav.current{background:var(--primary-soft);color:var(--primary-text);font-weight:800}.nav-count{margin-left:auto;font-size:11px;background:var(--surface);min-width:21px;text-align:center;border-radius:7px;line-height:20px}.sidebar-footer{margin-top:auto;display:grid;gap:9px}.online{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted);padding:0 10px}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:currentColor;flex:none}.online .dot{color:#26a680}.profile{display:flex;align-items:center;gap:9px;padding:10px 6px;border:0;border-top:1px solid var(--line);width:100%;background:transparent;color:var(--ink);text-align:left}.avatar{width:35px;height:35px;display:grid;place-items:center;border-radius:11px;color:var(--primary-text);background:var(--primary-soft);font-size:12px;font-weight:800;flex:none}
.workspace{margin-left:var(--side);min-width:0}.topbar{height:65px;background:var(--sidebar);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:9px;padding:0 28px;position:sticky;top:0;z-index:5}.breadcrumbs{display:flex;gap:8px;align-items:center;font-size:13px;color:var(--muted);min-width:0;white-space:nowrap}.breadcrumbs strong{color:var(--ink);overflow:hidden;text-overflow:ellipsis}.top-actions{display:flex;align-items:center;gap:9px;margin-left:auto}.top-date{padding:0 10px;color:var(--secondary);display:flex;gap:7px;align-items:center;font-size:13px;white-space:nowrap}.icon-button{height:39px;min-width:39px;padding:0 8px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--secondary);display:inline-grid;place-items:center;position:relative;flex:none}.notify{position:absolute;top:7px;right:7px;width:7px;height:7px;border-radius:50%;background:#ed7598;border:1px solid var(--surface)}.mobile-toggle,.mobile-nav,.nav-overlay{display:none}
main{padding:24px 28px 30px;max-width:1640px;margin:0 auto}.page-title{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 19px}.page-title h1{font-size:clamp(24px,3vw,31px);letter-spacing:-.85px;line-height:1.15;font-weight:800}.page-title p{color:var(--muted);margin-top:5px;font-size:14px}.page-actions,.row-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.btn{border:1px solid transparent;border-radius:11px;min-height:42px;padding:0 13px;display:inline-flex;justify-content:center;align-items:center;gap:8px;font-size:13px;font-weight:800;white-space:nowrap;text-decoration:none}.primary{background:var(--primary);color:white;box-shadow:0 3px 7px color-mix(in srgb,var(--primary) 22%,transparent)}.primary:hover{background:var(--primary-hover)}.secondary{background:var(--surface);color:var(--ink);border-color:var(--line-strong)}.secondary:hover{background:var(--subtle)}.soft{background:var(--primary-soft);color:var(--primary-text)}.quiet{background:transparent;color:var(--secondary)}.danger{background:var(--red-soft);color:var(--red)}.small{min-height:34px;padding:0 10px;font-size:12px}.wide{width:100%}
.hero{isolation:isolate;min-height:150px;position:relative;overflow:hidden;display:flex;align-items:center;background:linear-gradient(106deg,var(--hero),var(--hero-end));border:1px solid color-mix(in srgb,var(--accent) 16%,transparent);border-radius:var(--radius);padding:22px 27px;margin-bottom:19px;color:var(--hero-ink)}.hero h2{font-weight:800;font-size:clamp(23px,3vw,30px);letter-spacing:-.9px;line-height:1.25}.hero p{color:var(--hero-muted);font-size:14px;margin:5px 0 13px}.hero-copy{z-index:1}.hero-illustration{width:268px;position:absolute;height:100%;top:0;right:1%;display:grid;place-items:center;pointer-events:none;opacity:.95}.orbit{position:absolute;border:1px solid color-mix(in srgb,var(--accent) 23%,transparent);border-radius:50%;width:200px;height:200px;transform:rotate(-20deg) scaleY(.7)}.orbit:nth-child(2){width:265px;height:265px;transform:rotate(-20deg) scaleY(.65)}.orbit:nth-child(3){width:330px;height:330px;transform:rotate(-20deg) scaleY(.58)}.cup-art{display:grid;place-items:center;width:94px;height:94px;border-radius:26px;transform:rotate(-12deg);background:linear-gradient(140deg,color-mix(in srgb,var(--accent) 66%,white),var(--primary));color:white;box-shadow:0 13px 23px color-mix(in srgb,var(--primary) 27%,transparent),inset 0 1px 2px #ffffff83;z-index:1}.hero-spark{position:absolute;color:var(--accent);top:22%;right:18%}.hero-diamond{position:absolute;bottom:23%;left:15%;width:10px;height:10px;transform:rotate(34deg);border-radius:3px;background:color-mix(in srgb,var(--accent) 66%,white)}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.metric{padding:15px 16px;min-width:0;min-height:108px}.panel{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);min-width:0}.metric-top{display:flex;align-items:center;gap:9px;color:var(--secondary);font-size:13px;font-weight:700;white-space:nowrap}.pill-icon{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:10px;flex:none}.tone-purple{background:var(--primary-soft);color:var(--primary-text)}.tone-green{background:var(--green-soft);color:var(--green)}.tone-orange{background:var(--orange-soft);color:var(--orange)}.tone-blue{background:var(--blue-soft);color:var(--blue)}.tone-red{background:var(--red-soft);color:var(--red)}.metric strong{font-size:clamp(17px,2vw,25px);line-height:1.2;letter-spacing:-.65px;display:block;margin-top:8px;white-space:nowrap}.metric small{font-size:12px;color:var(--muted);margin-top:4px;display:block}.dash-grid{display:grid;grid-template-columns:minmax(0,1.77fr) minmax(260px,1fr);gap:18px;margin-bottom:18px}.panel-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:17px 18px 12px}.panel-heading h2,.panel-heading h3{font-weight:800;font-size:17px;letter-spacing:-.35px}.panel-heading p{font-size:12px;color:var(--muted);margin-top:1px}.panel-body{padding:16px 18px}.chart-wrap{padding:3px 16px 13px 12px}.chart{width:100%;height:auto;max-height:247px;overflow:visible}.chart text{fill:var(--muted);font-size:11px;font-family:Manrope,sans-serif}.chart .gridline{stroke:var(--line-strong);stroke-dasharray:4 4}.chart .area{fill:url(#chartFill)}.chart .line{stroke:var(--accent);stroke-width:3;fill:none;stroke-linejoin:round;stroke-linecap:round}.chart .data-point{fill:var(--surface);stroke:var(--accent);stroke-width:2}.chart .active-point{fill:var(--accent);stroke:var(--surface);stroke-width:3}.chart-meta{font-size:12px;color:var(--secondary);display:flex;align-items:center;gap:6px}.chart-meta .dot{color:var(--accent)}
.popular{list-style:none;padding:0 18px 12px;margin:0}.popular li{display:flex;gap:10px;align-items:center;border-top:1px solid var(--line);padding:10px 0;font-size:13px}.popular li:first-child{border-top:0}.photo{background-image:url('/assets/menu.jpg');background-size:400% 200%;background-repeat:no-repeat;background-color:var(--subtle);overflow:hidden;display:grid;place-items:center;color:var(--primary-text)}.photo.empty-photo{background-image:none;background-color:var(--primary-soft)}.thumb{height:40px;width:40px;flex:none;border-radius:10px}.item-name{font-weight:800}.subtext{font-size:12px;color:var(--muted)}.right{text-align:right}.table-mini{display:grid;gap:10px;padding:0 18px 17px}.table-mini button{color:var(--ink);background:var(--subtle);border:1px solid var(--line);border-radius:11px;display:flex;align-items:center;padding:7px 10px;gap:8px;text-align:left;width:100%}.tag{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;border-radius:8px;padding:4px 8px;font-size:11px;font-weight:800}.tag .dot{width:6px;height:6px}.tag.neutral{background:var(--subtle);color:var(--secondary)}
.table-scroll{overflow:auto}.data-table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap}.data-table th{font-size:11px;letter-spacing:.025em;color:var(--muted);font-weight:800;background:var(--subtle)}.data-table th,.data-table td{padding:11px 16px;border-top:1px solid var(--line)}.data-table td{font-size:13px}.data-table td:first-child,.data-table th:first-child{padding-left:18px}.data-table td:last-child,.data-table th:last-child{padding-right:18px}.table-link{border:0;background:none;padding:0;color:var(--primary-text);font-weight:800}.table-link:hover{text-decoration:underline}
.controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:15px}.tabs{display:flex;gap:6px;flex-wrap:wrap}.tab{border:1px solid var(--line);background:var(--surface);color:var(--secondary);min-height:38px;border-radius:10px;padding:0 12px;font-size:13px;font-weight:800}.tab.current{background:var(--primary-soft);color:var(--primary-text);border-color:transparent}.search{display:flex;align-items:center;gap:8px;background:var(--surface);color:var(--muted);border:1px solid var(--line-strong);border-radius:11px;padding:0 11px;min-height:41px;flex:1;min-width:140px}.search input{width:100%;border:0;background:transparent;padding:8px 0;outline:0;color:var(--ink)}.search:focus-within{outline:2px solid var(--focus);outline-offset:1px}.search input:focus-visible{outline:0}.field{display:grid;gap:6px;min-width:0;color:var(--secondary);font-size:13px;font-weight:800}.field span{display:flex;align-items:center;gap:6px}.field input,.field select,.field textarea,select.control{border:1px solid var(--line-strong);background:var(--subtle);color:var(--ink);border-radius:10px;padding:9px 11px;min-width:0;min-height:42px;width:100%;font-size:14px;font-weight:600}.field select,select.control{appearance:none;padding-right:30px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' fill='none' stroke='%23848ca2' stroke-width='1.8' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}select.control{width:auto;max-width:100%;min-height:37px;padding-block:5px}.field textarea{resize:vertical}.field input[type=checkbox]{width:18px;min-height:18px;accent-color:var(--primary)}.inline-check{display:flex;flex-direction:row;align-items:center}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.field-grid .full{grid-column:1/-1}
.empty{padding:28px 14px;text-align:center;color:var(--muted);display:grid;justify-items:center;gap:7px}.empty strong{color:var(--secondary)}.empty p{font-size:13px}.empty .pill-icon{width:45px;height:45px}.notice{display:flex;align-items:center;gap:9px;background:var(--orange-soft);color:var(--orange);padding:9px 12px;border-radius:10px;margin-bottom:14px;font-size:13px}.error{background:var(--red-soft);color:var(--red);padding:9px 12px;border-radius:10px;font-size:13px}.offline{margin-bottom:12px}
.pos{display:grid;grid-template-columns:minmax(0,1fr) minmax(290px,335px);gap:16px;align-items:start}.pos-side{position:sticky;top:79px;padding:16px;display:grid;gap:13px}.pos-side h2{font-size:18px}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.product{padding:0;overflow:hidden;cursor:pointer;background:var(--surface);color:var(--ink);text-align:left;position:relative}.product:hover{border-color:var(--focus)}.product .photo{height:auto;aspect-ratio:1.45}.product-info{padding:10px;display:grid;gap:4px}.product-info strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}.product-price{color:var(--primary-text);font-weight:800;font-size:13px}.add-dot{position:absolute;right:8px;top:8px;background:var(--surface);color:var(--primary-text);display:grid;place-items:center;width:30px;height:30px;border-radius:10px;box-shadow:var(--shadow)}.cart-list{display:grid;gap:8px;max-height:42vh;overflow:auto}.cart-line{display:grid;gap:5px;padding:8px 0;border-bottom:1px solid var(--line)}.cart-line .line-top{display:flex;justify-content:space-between;gap:7px;align-items:center}.stepper{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:800}.stepper button{background:var(--subtle);color:var(--secondary);border:1px solid var(--line);border-radius:8px;width:33px;height:33px;display:grid;place-items:center}.cart-total{display:flex;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding-top:10px;font-size:15px}.cart-total strong{color:var(--primary-text);font-size:19px}.order-list{display:grid;gap:8px}.order-mini{background:var(--subtle);border-radius:10px;padding:9px 10px;font-size:13px;display:grid;gap:4px}.order-mini > div:first-child{display:flex;justify-content:space-between;align-items:center;gap:5px}.order-note{border-left:2px solid var(--accent);padding-left:8px;color:var(--secondary);font-size:13px}
.kanban{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.kanban-column{padding:11px;display:grid;align-content:start;gap:9px;background:var(--subtle);border-radius:16px;border:1px solid var(--line)}.kanban-column h2{padding:4px 4px 6px;font-size:15px;display:flex;justify-content:space-between;align-items:center}.ticket{padding:12px;display:grid;gap:10px}.ticket-head,.list-line{display:flex;justify-content:space-between;align-items:center;gap:8px}.ticket-head h3{font-size:16px}.ticket-lines{display:grid;gap:5px;border-block:1px solid var(--line);padding-block:8px}.ticket-lines p{font-size:14px}.ticket-lines .subtext{margin-left:24px}.split-grid,.plan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin-bottom:16px}.plan-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.plan-card{display:grid;align-content:start;gap:8px;padding:17px}.plan-card h2{font-size:18px}.plan-card p{font-size:13px;color:var(--muted)}.plan-card.selected{border-color:var(--accent)}
:root[data-theme=dark] .kanban-column { background: #282a30; }
#dialog{width:min(calc(100% - 28px),540px);max-height:calc(100dvh - 34px);padding:0;border:1px solid var(--line);border-radius:19px;background:var(--surface);color:var(--ink);box-shadow:0 24px 70px #0b102f55;overflow:auto}#dialog::backdrop{background:#12163272;backdrop-filter:blur(2px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:9px;padding:15px 17px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--surface);z-index:1}.dialog-head h2{font-size:18px}.dialog-body{padding:16px 17px}.dialog-body form,.stack{display:grid;gap:12px}.dialog-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;padding-top:4px}.qr-block{text-align:center;display:grid;justify-items:center;gap:11px}.qr-block img{height:220px;width:220px;background:white;border-radius:12px;border:1px solid var(--line-strong);image-rendering:pixelated}.qr-url{overflow-wrap:anywhere;line-height:1.4;font-size:12px;color:var(--muted)}.receipt{display:grid;gap:8px;padding:10px}.receipt h2,.receipt p{text-align:center}.receipt .list-line{border-bottom:1px dashed var(--line-strong);padding:5px 0}.account-row{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--line)}.account-row:last-child{border-bottom:0}
#toast{position:fixed;z-index:30;right:20px;bottom:20px;max-width:calc(100vw - 40px);display:none;background:var(--ink);color:var(--surface);border-radius:12px;box-shadow:0 8px 20px #0002;padding:11px 14px;font-size:13px;font-weight:800}#toast.visible{display:flex;align-items:center;gap:8px}
.initial{min-height:100dvh;display:grid;place-content:center;justify-items:center;gap:10px;color:var(--muted)}.loading-ring{border:3px solid var(--line);border-top-color:var(--primary);border-radius:50%;width:26px;height:26px;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.auth-screen{min-height:100dvh;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);max-width:1190px;gap:26px;padding:24px;margin:auto;align-items:stretch}.auth-art{border-radius:26px;min-height:550px;position:relative;overflow:hidden;display:grid;align-content:end;color:white;background:linear-gradient(0deg,#14123aee,#25224e11 75%),url('/assets/menu.jpg') 0 0/400% 200% no-repeat,var(--primary);padding:26px}.auth-art h1{font-size:clamp(30px,5vw,51px);line-height:1.1;letter-spacing:-1.5px;max-width:460px}.auth-art p{margin-top:10px;color:#f0edff}.auth-area{display:grid;align-content:center;justify-items:center;padding:21px 2px}.auth-card{width:min(100%,410px);padding:20px;display:grid;gap:13px}.auth-card h1{font-size:24px;letter-spacing:-.6px}.demo-logins{display:flex;flex-wrap:wrap;gap:6px}.auth-card .brand{padding:0}
.guest{max-width:1130px;margin:auto;padding:22px}.guest-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:15px}.guest-hero{padding:20px;margin-bottom:14px}.guest-hero h1{font-size:25px;letter-spacing:-.5px}.guest-hero p{color:var(--muted)}
@media(max-width:1130px){:root{--side:202px}.sidebar{padding-inline:12px}.topbar{padding-inline:21px}main{padding-inline:21px}.metrics{gap:10px}.metric{padding-inline:11px}.metric-top{gap:6px}.pill-icon{width:32px;height:32px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:920px){:root{--side:0px}.sidebar{width:min(82vw,255px);transform:translateX(-105%);transition:transform .2s ease}.sidebar.shown{transform:none}.nav-overlay.shown{display:block;position:fixed;inset:0;background:#10163066;z-index:8;border:0}.mobile-toggle{display:inline-grid}.topbar{height:58px}.pos-side{top:70px}.metrics{gap:10px}.hero-illustration{right:0}}
@media(max-width:650px){body{font-size:14px}.topbar{padding:0 12px}.top-actions{gap:6px}.top-date{display:none}.breadcrumbs{font-size:12px}.breadcrumbs .crumb-root,.breadcrumbs .crumb-sep{display:none}main{padding:16px 12px calc(80px + env(safe-area-inset-bottom))}.page-title{align-items:flex-start;margin-bottom:13px}.page-title p{font-size:12px}.page-title h1{font-size:23px}.page-actions .btn{min-height:37px;padding:0 9px}.hero{min-height:135px;padding:15px;margin-bottom:12px}.hero h2{font-size:21px}.hero p{font-size:12px;max-width:210px}.hero-illustration{right:-63px;transform:scale(.72);opacity:.58}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:12px}.metric{min-height:93px;padding:10px}.metric strong{font-size:19px}.metric small{font-size:11px}.dash-grid,.split-grid,.kanban{grid-template-columns:1fr;gap:12px;margin-bottom:12px}.dashboard-chart{overflow:hidden}.chart-wrap{padding-inline:8px}.panel-heading{padding:13px 12px 8px}.panel-heading h2{font-size:16px}.panel-body{padding:12px}.pos{grid-template-columns:1fr;gap:12px}.pos-side{position:static}.product-grid{gap:8px}.product{border-radius:13px}.guest{padding:13px}.guest .pos{padding-bottom:12px}.cart-list{max-height:none}.kanban-column{gap:8px}.plan-grid{grid-template-columns:1fr;gap:9px}.controls{gap:7px}.tab{padding:0 8px;min-height:37px}.auth-screen{display:block;padding:16px}.auth-art{display:none}.auth-area{min-height:calc(100dvh - 32px);padding:0}.auth-card{padding:16px}#toast{bottom:calc(64px + env(safe-area-inset-bottom));right:12px}.field input,.field select,.field textarea,.search input{font-size:16px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}
@media print{body{background:white;color:black}body>*:not(#dialog){display:none!important}#dialog{position:static;display:block;width:100%;max-height:none;border:0;box-shadow:none;margin:0;color:black;background:white}#dialog::backdrop,.dialog-head,.no-print,.dialog-actions{display:none!important}}
.cart-shortcut,.table-shortcut{display:none}
@media(max-width:650px){.table-shortcut{display:block;margin-bottom:11px}.cart-shortcut{display:block;position:sticky;bottom:calc(59px + env(safe-area-inset-bottom));z-index:3;padding:8px 0;background:var(--bg)}.cart-shortcut.for-guest{bottom:env(safe-area-inset-bottom)}#cart{scroll-margin-top:65px}.table-shortcut .btn{justify-content:flex-start}}
.nav-count { padding-inline: 4px; }
.account-avatar { padding: 0; }
.account-avatar .avatar { width: 31px; height: 31px; border-radius: 9px; }
.mobile-nav [data-page="kitchen"] { position: relative; }
.mobile-nav .nav-count {
  position: absolute;
  inset-block-start: 1px;
  inset-inline-end: max(1px, calc(50% - 24px));
  margin: 0;
  min-width: 16px;
  padding-inline: 3px;
  line-height: 16px;
  font-size: 10px;
}
.loyalty-program {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 18px;
  margin-bottom: 14px;
}
.loyalty-program > .pill-icon { width: 44px; height: 44px; }
.loyalty-copy { flex: 1; min-width: 0; }
.loyalty-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 10px; }
.loyalty-heading h2, .customer-list h2 { font-size: 17px; font-weight: 800; }
.loyalty-heading h3, .loyalty-history h3 { font-size: 15px; font-weight: 800; }
.loyalty-copy .subtext { margin-top: 3px; }
.customer-list-head {
  padding: 16px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
}
.customer-list-head .search { flex: 0 1 345px; }
.customers { list-style: none; margin: 0; padding: 0; }
.customer-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(140px, auto) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  border-top: 1px solid var(--line);
}
.customer-identity { display: flex; align-items: center; gap: 9px; min-width: 0; overflow-wrap: anywhere; }
.customer-identity .avatar { flex: 0 0 35px; }
.customer-identity .table-link { text-align: left; color: var(--ink); }
.customer-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.customer-row .row-actions { justify-content: flex-end; flex-wrap: nowrap; }
.customer-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  margin-bottom: 12px;
}
.customer-note { grid-column: 1 / -1; overflow-wrap: anywhere; }
.loyalty-stats {
  background: var(--subtle);
  border: 1px solid var(--line);
  border-radius: 11px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(87px, 1fr));
  gap: 10px;
  padding: 11px 13px;
  margin-bottom: 13px;
}
.loyalty-stats span { font-size: 12px; color: var(--muted); }
.loyalty-stats strong { display: block; color: var(--primary-text); font-variant-numeric: tabular-nums; }
.loyalty-history { margin-bottom: 8px; }
.loyalty-entries { margin-top: 6px; }
.loyalty-entry { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 0; }
.loyalty-entry + .loyalty-entry { border-top: 1px solid var(--line); }
.loyalty-history-footer:not(:empty) { margin-top: 8px; }
.checkout-customer, .checkout-points {
  background: var(--subtle);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 12px;
}
.checkout-customer { display: grid; gap: 8px; }
.checkout-customer .loyalty-heading { justify-content: space-between; }
.checkout-customer input, .checkout-customer select, .checkout-points input { background-color: var(--surface); }
.checkout-points:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 6px 10px; }
.checkout-points > p { grid-column: 1 / -1; }
.payment-settings,.bill-qr-settings,.vat-settings,.shop-option { margin-bottom: 13px; }
.bill-qr-settings .panel-heading { align-items: center; }
.shop-option .panel-heading { flex-wrap: wrap; }
.shop-option-actions { padding-top: 0; }
.payment-account-details { display: grid; grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); gap: 10px; }
.payment-account-details span,.payment-account-details strong,.transfer-detail span,.transfer-detail strong { display: block; overflow-wrap: anywhere; }
.custom-bank { margin: 0; padding: 10px; min-width: 0; border: 1px solid var(--line-strong); border-radius: 11px; }
.custom-bank:not([hidden]) { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr); gap: 8px; }
.checkout-transfer { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.checkout-transfer:not([hidden]),.transfer-details { display: grid; gap: 8px; }
.transfer-detail { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-width: 0; }
.transfer-layout { display: grid; grid-template-columns: minmax(0,158px) minmax(0,1fr); gap: 10px; align-items: center; }
.transfer-layout.transfer-no-qr { grid-template-columns: minmax(0,1fr); }
.transfer-qr { display: block; width: 100%; aspect-ratio: 1; height: auto; background: #fff; image-rendering: pixelated; }
.transfer-detail .icon-button { flex: 0 0 auto; min-height: 34px; min-width: 34px; }
@media(max-width: 475px) {
  .custom-bank:not([hidden]),.transfer-layout { grid-template-columns: minmax(0,1fr); }
  .transfer-qr { width: min(100%,178px); justify-self: center; }
}
@media (max-width: 650px) {
  .loyalty-program, .customer-list-head, .customer-row { padding: 12px; }
  .loyalty-program { flex-wrap: wrap; gap: 9px; }
  .loyalty-copy { flex-basis: calc(100% - 53px); }
  .loyalty-program > .btn { margin-left: 53px; }
  .customer-list-head .search { flex-basis: 100%; }
  .customer-row { grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
  .customer-tags { grid-column: 1; grid-row: 2; }
  .customer-row .row-actions { grid-column: 2; grid-row: 1 / 3; }
  .customer-row .row-actions > .btn svg { display: none; }
}

.floor-plan { --table-free: #008467; --table-occupied: #7855dc; }
.floor-controls > .tabs, .floor-controls .tab { min-width: 0; }
.floor-controls .tab, .floor-area h2 { overflow-wrap: anywhere; }
.floor-summary { display: flex; gap: 8px; flex-wrap: wrap; }
.floor-summary .tone-green { color: #fff; background: var(--table-free); }
.floor-summary .tone-purple { color: #fff; background: var(--table-occupied); }
.floor-count-short, .account-actions .compact-theme { display: none; }
.floor-area { margin-bottom: 18px; }
.floor-area h2 { font-size: 16px; margin: 0 0 10px; }
.floor-grid {
  --table-shadow: 0 2px 4px #29396814, 0 5px 12px #29396812;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 164px), 1fr));
  gap: 12px;
}
:root[data-theme=dark] .floor-grid {
  --table-shadow: 0 2px 6px #0006;
}
.table-card {
  --table-fill: var(--table-free);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: space-between;
  gap: 7px;
  padding: 12px 13px;
  min-height: 112px;
  background: var(--table-fill);
  color: #fff;
  border: 1px solid #ffffff26;
  box-shadow: var(--table-shadow);
  position: relative;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.table-card.occupied { --table-fill: var(--table-occupied); }
.table-card.ready { --table-fill: #b05d00; }
.table-card.table-calling { --table-fill: var(--staff-call-red); --call-shadow: var(--table-shadow); }
.table-hit {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
  text-align: left;
  line-height: 1.25;
  background: transparent;
  color: #fff;
  font-weight: 800;
}
.table-hit > span:last-child, .table-details {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.table-hit > .pill-icon { background: #fff2; color: #fff; }
.table-details { font-size: 12px; }
.table-card:not(.table-calling):has(.table-hit:hover) {
  border-color: #ffffff94;
}
.table-card .table-hit::after { content: ""; position: absolute; inset: 0; }
.table-card :is(.table-hit,.table-call-note > .btn):focus-visible { outline-color: #fff; }
@media screen {
  :where(:root[data-compact-workspace]) #main:has(> .floor-plan) {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  :where(:root[data-compact-workspace]) .floor-plan { display: flex; flex: 1; flex-direction: column; min-height: 0; min-width: 0; }
  :where(:root[data-compact-workspace]) .floor-toolbar {
    display: grid;
    grid-template-areas: "areas areas" "actions counts";
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    flex: none;
    min-width: 0;
    gap: 5px 6px;
    padding-bottom: 7px;
  }
  :where(:root[data-compact-workspace]) .floor-toolbar :is(.page-title,.floor-controls) { display: contents; }
  :where(:root[data-compact-workspace]) .floor-toolbar .page-title > :first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  :where(:root[data-compact-workspace]) .floor-toolbar .page-actions { grid-area: actions; gap: 5px; }
  :where(:root[data-compact-workspace]) .floor-toolbar .page-actions .btn { min-height: 36px; padding-inline: 8px; font-size: 12px; }
  :where(:root[data-compact-workspace]) .floor-controls > .tabs {
    grid-area: areas;
    min-height: var(--compact-bell-size);
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -3px;
    margin-inline-end: var(--compact-bell-gap);
    padding: 3px;
    scrollbar-width: none;
  }
  :where(:root[data-compact-workspace]) .floor-controls .tab {
    flex: none;
    max-width: min(65vw, 235px);
    min-height: 34px;
    overflow: hidden;
    padding-inline: 9px;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 12px;
  }
  :where(:root[data-compact-workspace]) .floor-summary { grid-area: counts; justify-self: end; flex-wrap: nowrap; gap: 4px; }
  :where(:root[data-compact-workspace]) .floor-summary .tag { padding: 2px 5px; gap: 4px; font-size: 10px; }
  :where(:root[data-compact-workspace]) .floor-summary .dot { width: 5px; height: 5px; }
  :where(:root[data-compact-workspace]) .floor-count-short { display: inline; }
  :where(:root[data-compact-workspace]) .floor-count-full { display: none; }
  :where(:root[data-compact-workspace]) .floor-areas {
    min-height: 0;
    flex: 1;
    overflow: hidden auto;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    margin-inline: -4px;
    padding: 4px;
    scroll-padding-block: 4px;
  }
  :where(:root[data-compact-workspace]) .floor-area { margin-bottom: 12px; }
  :where(:root[data-compact-workspace]) .floor-area h2 { margin-bottom: 6px; font-size: 13px; }
  :where(:root[data-compact-workspace]) .floor-grid {
    grid-template-columns: repeat(auto-fill,minmax(min(100%,clamp(86px,11vw,112px)),1fr));
    gap: 8px;
  }
  :where(:root[data-compact-workspace]) .table-card {
    align-content: center;
    min-height: 106px;
    gap: 3px;
    padding: 7px 4px 6px;
    border-radius: 14px;
  }
  :where(:root[data-compact-workspace]) .table-hit { display: grid; justify-items: center; gap: 4px; text-align: center; font-size: 12px; }
  :where(:root[data-compact-workspace]) .table-hit > .pill-icon { width: 31px; height: 31px; }
  :where(:root[data-compact-workspace]) .table-hit > span:last-child {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  :where(:root[data-compact-workspace]) .table-details { text-align: center; font-size: 10px; }
  :where(:root[data-compact-workspace]) .table-call-note .btn { padding-inline: 4px; font-size: 11px; }
}
@media screen and (min-width: 720px) {
  :where(:root[data-compact-workspace]) .floor-toolbar {
    grid-template-areas: "areas actions counts";
    grid-template-columns: minmax(0,1fr) auto auto;
    column-gap: 9px;
    padding-inline-end: var(--compact-bell-gap);
  }
  :where(:root[data-compact-workspace]) .floor-controls > .tabs { margin-inline-end: 0; }
}
@media screen and (max-width: 350px) {
  :where(:root[data-compact-workspace]) .floor-toolbar .page-actions svg { display: none; }
}
@media screen and (prefers-reduced-motion: no-preference) {
  :where(:root[data-compact-workspace]) .floor-areas { scroll-snap-type: y proximity; }
  :where(:root[data-compact-workspace]) :is(.floor-area h2,.floor-grid > .table-card) { scroll-snap-align: start; }
}
@media (max-width: 319px) {
  .topbar { padding-inline: 8px; gap: 5px; }
  .top-actions { gap: 4px; }
}
.sale-tabs {
  position: sticky;
  top: 65px;
  z-index: 4;
  display: flex;
  gap: 5px;
  padding: 6px;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
}
.guest .guest-sale-tabs {
  top: env(safe-area-inset-top);
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
}
.guest-sale-tabs .sale-tab { min-width: 0; }
.sale-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 6px 13px;
  font-weight: 800;
  color: var(--secondary);
  background: transparent;
  border: 0;
  border-radius: 8px;
}
.sale-tab:hover { background: var(--subtle); }
.sale-tab.current { background: var(--primary-soft); color: var(--primary-text); }
.sale-tab strong {
  display: grid;
  place-items: center;
  min-width: 22px;
  min-height: 20px;
  padding-inline: 4px;
  font-size: 12px;
  border-radius: 8px;
  color: var(--primary-text);
  background: var(--surface);
}
.guest-sale-tabs [data-value="cart"] strong {
  color: var(--red);
  background: var(--red-soft);
}
@keyframes guest-selection-pulse {
  28%,52% {
    background-color: var(--primary-soft);
    color: var(--primary-text);
    box-shadow: inset 0 0 0 2px var(--focus),0 0 12px color-mix(in srgb,var(--accent) 36%,transparent);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .guest-sale-tabs .selection-flash { animation: guest-selection-pulse .68s ease-in-out; }
}
.guest.has-selection { padding-block-end: calc(84px + env(safe-area-inset-bottom)); }
.guest-order-confirm {
  position: fixed;
  z-index: 5;
  inset-inline-end: max(calc(14px + env(safe-area-inset-right)),calc((100% - 1130px) / 2 + 22px));
  inset-block-end: calc(14px + env(safe-area-inset-bottom));
  min-height: 48px;
  padding-inline: 18px;
  box-shadow: 0 6px 22px color-mix(in srgb,var(--primary) 35%,transparent);
}
#app:has(.guest-order-confirm) ~ #toast { bottom: calc(72px + env(safe-area-inset-bottom)); }
.menu-layout {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
}
.menu-layout .icon-button { width: 40px; min-width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; }
.menu-layout .icon-button:hover { background: var(--subtle); }
.menu-layout .icon-button[aria-pressed=true] { color: var(--primary-text); background: var(--primary-soft); }
.product-list { display: grid; gap: 7px; }
.product-row {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 69px;
  width: 100%;
  padding: 7px 10px;
  gap: 10px;
  border-radius: 13px;
}
.product-row .product-row-photo { width: 52px; height: 52px; border-radius: 9px; flex: 0 0 52px; }
.product-row .product-info { flex: 1; min-width: 0; grid-template-columns: minmax(0,1fr) auto; padding: 0; column-gap: 10px; }
.product-row .product-info .subtext { grid-row: 2; }
.product-row .product-price { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.product-row .add-dot { position: static; flex: 0 0 30px; background: var(--primary-soft); box-shadow: none; }
.order-panel { display: grid; gap: 12px; padding: 15px; }
.order-panel h2 { font-size: 17px; }
.order-panel .cart-list { max-height: none; overflow: visible; }
.cart-quantity { display: flex; align-items: center; gap: 14px; min-width: 0; }
.item-options { overflow-wrap: anywhere; }
.order-item-main { display: flex; align-items: center; gap: 9px; min-width: 0; }
.order-item-main > [aria-hidden] { flex: none; }
.order-item-main > :last-child { min-width: 0; overflow-wrap: anywhere; }
.order-item-photo { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; }
.sales-layout > * { min-width: 0; }
.selected-orders { display: flex; flex-direction: column; }
.selected-orders > .panel-heading { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.selected-order-scroll { min-height: 0; }
.selected-orders .order-panel { border: 0; box-shadow: none; background: transparent; }
.selected-orders h3 { font-size: 14px; }
.sent-orders { display: grid; gap: 7px; padding: 13px 14px 14px; }
.selected-orders .order-panel + .sent-orders { border-top: 1px solid var(--line); }
.active-order-list { display: grid; gap: 9px; }
.active-order { display: grid; gap: 7px; padding: 11px; background: var(--subtle); border-radius: 11px; }
.active-order ul { list-style: none; padding: 0; margin: 0; }
.active-order li { display: flex; gap: 9px; justify-content: space-between; border-top: 1px solid var(--line); padding: 7px 0; }
.active-order li > strong { white-space: nowrap; }
.active-order .row-actions:empty { display: none; }
.selected-order-actions { border-top: 1px solid var(--line); display: grid; gap: 9px; padding: 12px 14px; }
.selected-order-actions .cart-total { border: 0; padding-top: 0; }
.draft-order-actions,.table-order-summary { display: grid; gap: 7px; }
.order-vat { overflow-wrap: anywhere; }
.draft-order-actions + .table-order-summary { border-top: 1px solid var(--line); padding-top: 9px; }
.table-target-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.table-target-picker legend { padding: 0; color: var(--ink); font-weight: 800; }
.table-target-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: clamp(5px,2vw,10px);
  margin-top: 9px;
}
.table-target-option { position: relative; display: grid; min-width: 0; cursor: pointer; }
.table-target-option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.table-target-tile {
  display: grid;
  align-content: start;
  justify-items: center;
  min-width: 0;
  padding: 7px 3px;
  gap: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--subtle);
  color: var(--ink);
  text-align: center;
  overflow-wrap: anywhere;
  transition: background-color .15s ease,border-color .15s ease;
}
.table-target-icon {
  position: relative;
  width: min(100%,44px);
  aspect-ratio: 1;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.table-target-tile strong { font-size: clamp(10px,3.25vw,13px); line-height: 1.2; }
.table-target-tile small { color: var(--muted); font-size: clamp(9px,2.8vw,11px); line-height: 1.25; }
.table-target-check {
  position: absolute;
  inset: -3px -3px auto auto;
  display: none;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
}
.table-target-option:hover .table-target-tile,
.table-target-option input:checked + .table-target-tile { border-color: var(--primary); }
.table-target-option input:checked + .table-target-tile { background: var(--primary-soft); }
.table-target-option input:checked + .table-target-tile .table-target-check { display: grid; }
.table-target-option input:focus-visible + .table-target-tile { outline: 2px solid var(--focus); outline-offset: 1px; }
.table-target-empty { margin-top: 9px; color: var(--muted); }
.topping-options { margin: 0; padding: 2px 10px 6px; min-width: 0; border: 1px solid var(--line-strong); border-radius: 11px; }
.topping-options legend { color: var(--secondary); font-size: 13px; font-weight: 800; padding-inline: 4px; }
.topping-option { display: flex; align-items: center; gap: 9px; min-height: 42px; cursor: pointer; }
.topping-option + .topping-option { border-top: 1px solid var(--line); }
.topping-option input { width: 18px; height: 18px; accent-color: var(--primary); margin: 0; flex: none; }
.topping-option strong { margin-left: auto; white-space: nowrap; color: var(--primary-text); }
.split-lines { display: grid; gap: 7px; }
.split-line { grid-template-columns: minmax(0, 1fr) 78px; align-items: center; padding: 7px; border: 1px solid var(--line); border-radius: 9px; }
.receipt .item-options { text-align: left; }
:where(html[data-lock-touch-zoom], html[data-lock-touch-zoom] *) {
  touch-action: manipulation;
  touch-action: pan-x pan-y;
}
html[data-lock-touch-zoom] :is(input, select, textarea) { font-size: max(16px,1em); }
.actual-photo { object-fit: cover; background-image: none; }
.guest-hero-at-table {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
}
.guest-location { min-width: 0; overflow-wrap: anywhere; }
.guest-hero-at-table h1 { font-size: clamp(19px,5vw,25px); line-height: 1.22; }
.guest-table-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: top;
  max-width: 100%;
  margin-top: 8px;
  padding: 5px 10px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary-text);
  font-size: clamp(17px,4.6vw,21px);
  font-weight: 800;
  line-height: 1.2;
}
.guest-table-name svg { flex: none; }
.guest-table-name span { min-width: 0; }
.guest-call {
  --call-color: var(--orange);
  --call-background: var(--orange-soft);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  width: clamp(84px,25vw,105px);
  min-height: 72px;
  padding: 6px;
  border: 1px solid color-mix(in srgb,var(--call-color) 48%,transparent);
  border-radius: 14px;
  background: var(--call-background);
  color: var(--call-color);
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}
.guest-call svg { stroke-width: 2; }
.guest-call span { display: grid; min-height: 2.4em; align-content: center; }
.guest-call:not(:disabled):hover { background: color-mix(in srgb,var(--call-color) 7%,var(--call-background)); }
.guest-call[data-calling] { --call-color: var(--green); --call-background: var(--green-soft); opacity: 1; }
.guest-wifi { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 12px 16px; margin-bottom: 14px; }
.wifi-credentials { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; min-width: 0; }
.wifi-credentials > div { display: flex; align-items: center; gap: 7px; min-width: 0; }
.wifi-credentials strong,.wifi-qr > strong { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
.wifi-qr img { width: min(100%,220px); height: auto; aspect-ratio: 1; }
.clipboard-fallback { position: fixed; inset: 0 auto auto 0; width: 1px; height: 1px; opacity: 0; }
:root { --staff-call-red: #ac1d3e; --staff-call-red-bright: #d12947; }
.topbar .staff-call-indicator, .topbar .staff-call-indicator:hover {
  color: #fff;
  background: var(--staff-call-red);
  border-color: var(--staff-call-red);
}
.staff-call-indicator .notify { background: #fff; border-color: var(--staff-call-red); }
.call-ack { min-height: 36px; color: #fff; background: var(--staff-call-red); }
.call-ack:hover { background: var(--staff-call-red-bright); }
.table-call-note .call-ack { position: relative; z-index: 1; width: 100%; color: var(--staff-call-red); background: #fff; }
.table-call-note .call-ack:hover { background: #fff3f5; }
.notice.table-call-banner { justify-content: space-between; flex-wrap: wrap; color: var(--red); background: var(--red-soft); }
.staff-notification { border: 1px solid var(--red); }
.staff-notification > div:first-child { justify-content: space-between; }
@keyframes staff-call-pulse {
  0%,100% { background-color: var(--staff-call-red); }
  50% {
    background-color: var(--staff-call-red-bright);
    box-shadow: var(--call-shadow, 0 0 0 transparent), 0 0 0 3px color-mix(in srgb,var(--staff-call-red-bright) 65%,transparent);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .table-card.table-calling, .topbar .staff-call-indicator { animation: staff-call-pulse 1.35s ease-in-out infinite; }
}
@media(max-width:370px) { .bell-enable svg { display:none; } }
@media (max-width: 920px) {
  .sale-tabs { top: 58px; }
}
@media (min-width: 720px) {
  .phone-sale-tabs,.sales-layout .cart-menu-link { display: none; }
  .sales-layout { display: grid; grid-template-columns: minmax(0,1fr) clamp(298px,44%,540px); align-items: start; gap: 15px; }
  .sales-menu .product-grid { grid-template-columns: repeat(auto-fill,minmax(108px,1fr)); gap: 9px; }
  .sales-menu .product-grid .product { display: grid; grid-template-rows: auto 1fr; }
  .sales-menu .product-grid .photo {
    width: clamp(46px,7vw,56px);
    aspect-ratio: 1;
    margin: 9px auto 0;
    border-radius: 9px;
  }
  .sales-menu .product-grid .product-info { align-content: space-between; padding: 7px 9px 9px; }
  .sales-menu .product-grid .product-info strong {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
  }
  .sales-menu .product-grid .add-dot { width: 24px; height: 24px; top: 6px; right: 6px; }
  .selected-orders { position: sticky; top: 76px; max-height: calc(100dvh - 90px); }
  .selected-order-scroll { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .selected-orders > .panel-heading,.selected-order-actions { flex: 0 0 auto; }
}
@media (max-width: 719px) {
  .sales-layout[data-phone-panel="menu"] > .selected-orders,
  .sales-layout[data-phone-panel="cart"] > .sales-menu { display: none; }
}
@media (max-width: 650px) {
  .sale-tabs { gap: 3px; padding: 4px; margin-bottom: 11px; }
  .sale-tab { flex: 1; gap: 4px; padding-inline: 4px; font-size: 12px; min-height: 44px; }
  .sale-tab strong { min-width: 17px; font-size: 11px; }
  .sale-tab svg { display: none; }
  .product-row .product-row-photo { width: 44px; height: 44px; flex-basis: 44px; }
  .product-row { min-height: 58px; gap: 7px; }
  .product-row .product-info { column-gap: 5px; }
  .product-row .product-price { font-size: 12px; }
  .cart-quantity { flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
  .order-item-main { gap: 7px; }
  .order-item-photo { width: 36px; height: 36px; }
}
@media screen and (max-width: 650px), screen and (orientation: landscape) and (max-height: 540px) and (pointer: coarse) {
  .guest {
    padding-block-start: max(10px,env(safe-area-inset-top));
    padding-inline: max(10px,env(safe-area-inset-left)) max(10px,env(safe-area-inset-right));
  }
  .guest .guest-hero { padding: 13px; }
  .guest .guest-hero h1, .guest .tab { overflow-wrap: anywhere; }
  .guest .controls { margin-block-end: 10px; }
  .guest .tabs { min-width: 0; max-width: 100%; }
  .guest .tab { min-width: 0; max-width: 100%; }
  .guest .menu-tools { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px; }
  .guest .menu-tools :is(.search,.search input) { min-width: 0; }
  .guest .menu-layout .btn { min-height: 34px; padding-inline: 7px; gap: 4px; }
  .guest .menu-layout svg { width: 14px; height: 14px; }
  .guest .order-panel { padding: 12px; }
  .guest .cart-quantity { flex: none; flex-direction: column; align-items: flex-end; }
}

@media screen {
  :where(:root[data-compact-workspace]) .shell {
    --phone-nav-bottom: calc(59px + env(safe-area-inset-bottom));
    --phone-nav-start: 0px;
    --phone-nav-end: 0px;
    --compact-page-gutter: clamp(8px,3vw,14px);
    --compact-page-bottom: 12px;
    --compact-safe-start: env(safe-area-inset-left);
    --compact-safe-end: env(safe-area-inset-right);
    --compact-bell-size: 40px;
    --compact-bell-gap: calc(var(--compact-bell-size) + 6px);
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }
  :where(:root[data-tablet-workspace]) {
    --tablet-dock-size: 56px;
    --tablet-dock-gap: 8px;
    --tablet-dock-left: max(var(--tablet-dock-gap),env(safe-area-inset-left));
    --tablet-dock-right: max(var(--tablet-dock-gap),env(safe-area-inset-right));
    --tablet-dock-bottom: max(var(--tablet-dock-gap),env(safe-area-inset-bottom));
  }
  :where(:root[data-tablet-workspace]) .shell {
    --phone-nav-bottom: calc(var(--tablet-dock-size) + var(--tablet-dock-bottom));
  }
  :where(:root[data-compact-workspace]) .shell .workspace {
    position: relative;
    display: flex;
    flex-direction: column;
    height: calc(100% - var(--phone-nav-bottom));
    margin: 0;
    margin-inline: var(--phone-nav-start) var(--phone-nav-end);
    padding-inline: var(--compact-safe-start) var(--compact-safe-end);
  }
  :where(:root[data-compact-workspace]) .shell :is(.sidebar,.nav-overlay,.topbar > :not(.top-actions),.top-actions > :not([data-do="notifications"])) { display: none; }
  :where(:root[data-compact-workspace]) .shell :is(.topbar,.top-actions) { display: contents; }
  :where(:root[data-compact-workspace]) .shell .topbar [data-do="notifications"] {
    position: absolute;
    inset-block-start: calc(var(--compact-page-gutter) + env(safe-area-inset-top));
    inset-inline-end: calc(var(--compact-page-gutter) + var(--compact-safe-end));
    z-index: 5;
    width: var(--compact-bell-size);
    height: var(--compact-bell-size);
    box-shadow: var(--shadow);
  }
  :where(:root[data-compact-workspace]) .shell #main {
    width: 100%;
    min-height: 0;
    flex: 1;
    overflow: hidden;
    padding: calc(var(--compact-page-gutter) + env(safe-area-inset-top)) var(--compact-page-gutter) var(--compact-page-bottom);
    scroll-padding-block-start: calc(var(--compact-bell-gap) + env(safe-area-inset-top));
  }
  :where(:root[data-compact-workspace]) .shell #main:not(:has(> .floor-plan)) { overflow-y: auto; overscroll-behavior-y: contain; }
  :where(:root[data-compact-workspace]) #main > :is(.notice,.page-title):first-child {
    min-height: var(--compact-bell-size);
    padding-inline-end: var(--compact-bell-gap);
  }
  :where(:root[data-compact-workspace]) .shell .sale-tabs {
    top: env(safe-area-inset-top);
    margin-inline-end: var(--compact-bell-gap);
  }
  :where(:root[data-compact-workspace]) .shell .cart-shortcut { bottom: 0; }
  :where(:root[data-compact-workspace]) .shell .mobile-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 6;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    gap: 4px;
    height: var(--phone-nav-bottom);
    padding: 5px max(8px,env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));
    border-top: 1px solid var(--line);
    background: var(--sidebar);
  }
  :where(:root[data-compact-workspace]) .shell .mobile-nav button {
    position: relative;
    display: grid;
    flex: 1 1 0;
    place-content: center;
    justify-items: center;
    gap: 2px;
    min-width: 0;
    min-height: 44px;
    padding: 0 2px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--secondary);
    font-size: 10px;
    font-weight: 800;
    text-align: center;
  }
  :where(:root[data-compact-workspace]) .shell .mobile-nav button:hover { background: var(--subtle); }
  :where(:root[data-compact-workspace]) .shell .mobile-nav button.current { color: var(--primary-text); background: var(--primary-soft); }
  :where(:root[data-tablet-workspace]) .shell .mobile-nav {
    inset: auto var(--tablet-dock-right) var(--tablet-dock-bottom) var(--tablet-dock-left);
    width: max-content;
    max-width: calc(100% - var(--tablet-dock-left) - var(--tablet-dock-right));
    height: var(--tablet-dock-size);
    margin-inline: auto;
    padding: 2px 5px;
    gap: 2px;
    justify-content: flex-start;
    overflow-x: auto;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }
  :where(:root[data-tablet-workspace]) .shell .mobile-nav button {
    flex: 0 1 52px;
    width: 52px;
    min-width: 44px;
    grid-template-columns: minmax(0,1fr);
    align-content: start;
    row-gap: 1px;
    padding-block-start: 2px;
  }
  :where(:root[data-tablet-workspace]) .shell .mobile-nav button > span {
    max-width: 100%;
    overflow-wrap: anywhere;
    text-wrap: balance;
    line-height: 1;
  }
  :where(:root[data-compact-workspace]) :is(.mobile-nav,.phone-app-grid) [data-tone] {
    --phone-icon-ink: var(--phone-icon-light);
    --phone-icon-bg: color-mix(in srgb,var(--phone-icon-ink) 10%,white);
    --phone-icon-highlight: color-mix(in srgb,var(--phone-icon-ink) 17%,white);
    --phone-icon-line: color-mix(in srgb,var(--phone-icon-ink) 27%,transparent);
  }
  :where(:root[data-compact-workspace][data-theme="dark"]) :is(.mobile-nav,.phone-app-grid) [data-tone] {
    --phone-icon-ink: var(--phone-icon-dark);
    --phone-icon-bg: color-mix(in srgb,var(--phone-icon-ink) 27%,#202530);
    --phone-icon-highlight: color-mix(in srgb,var(--phone-icon-ink) 32%,#272e3b);
    --phone-icon-line: color-mix(in srgb,var(--phone-icon-ink) 56%,transparent);
  }
  :where(:root[data-compact-workspace] :is(.mobile-nav,.phone-app-grid)) [data-tone="blue"] { --phone-icon-light: #205ac8; --phone-icon-dark: #8ec5ff; }
  :where(:root[data-compact-workspace] :is(.mobile-nav,.phone-app-grid)) [data-tone="green"] { --phone-icon-light: #087251; --phone-icon-dark: #6eedb2; }
  :where(:root[data-compact-workspace] :is(.mobile-nav,.phone-app-grid)) [data-tone="purple"] { --phone-icon-light: #6b3fc9; --phone-icon-dark: #c1a5ff; }
  :where(:root[data-compact-workspace] :is(.mobile-nav,.phone-app-grid)) [data-tone="orange"] { --phone-icon-light: #ae4a14; --phone-icon-dark: #ffb777; }
  :where(:root[data-compact-workspace] :is(.mobile-nav,.phone-app-grid)) [data-tone="cyan"] { --phone-icon-light: #096891; --phone-icon-dark: #75e3ff; }
  :where(:root[data-compact-workspace] :is(.mobile-nav,.phone-app-grid)) [data-tone="pink"] { --phone-icon-light: #a42a70; --phone-icon-dark: #ffa4d7; }
  :where(:root[data-compact-workspace] :is(.mobile-nav,.phone-app-grid)) [data-tone="amber"] { --phone-icon-light: #81550e; --phone-icon-dark: #ffda7d; }
  :where(:root[data-compact-workspace] :is(.mobile-nav,.phone-app-grid)) [data-tone="teal"] { --phone-icon-light: #086c71; --phone-icon-dark: #70e4da; }
  :where(:root[data-compact-workspace] :is(.mobile-nav,.phone-app-grid)) [data-tone="indigo"] { --phone-icon-light: #473baa; --phone-icon-dark: #a9acff; }
  :where(:root[data-compact-workspace] :is(.mobile-nav,.phone-app-grid)) [data-tone="lime"] { --phone-icon-light: #557110; --phone-icon-dark: #d0ea83; }
  :where(:root[data-compact-workspace] :is(.mobile-nav,.phone-app-grid)) [data-tone="slate"] { --phone-icon-light: #516280; --phone-icon-dark: #c2d3ef; }
  :where(:root[data-compact-workspace] :is(.mobile-nav,.phone-app-grid)) [data-tone="plum"] { --phone-icon-light: #832eb1; --phone-icon-dark: #e6a6fc; }
  :where(:root[data-compact-workspace] :is(.mobile-nav,.phone-app-grid)) [data-tone="coral"] { --phone-icon-light: #aa432f; --phone-icon-dark: #ffa797; }
  :where(:root[data-compact-workspace] :is(.mobile-nav,.phone-app-grid)) [data-tone="red"] { --phone-icon-light: #ae2945; --phone-icon-dark: #ff829e; }
  :where(:root[data-compact-workspace]) :is(.mobile-nav,.phone-app-grid) [data-tone] > svg {
    border: 1px solid var(--phone-icon-line);
    background: linear-gradient(150deg,var(--phone-icon-highlight),var(--phone-icon-bg));
    color: var(--phone-icon-ink);
    stroke-width: 2;
  }
  :where(:root[data-compact-workspace]) .mobile-nav [data-tone] > svg {
    width: 25px;
    height: 25px;
    padding: 3px;
    border-radius: 8px;
  }
  :where(:root[data-compact-workspace]) #dialog.phone-sheet {
    position: fixed;
    inset: auto 0 0;
    width: min(100%,520px);
    max-height: calc(100dvh - max(14px,env(safe-area-inset-top)));
    margin: 0 auto;
    padding-bottom: env(safe-area-inset-bottom);
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
    overscroll-behavior: contain;
    transform-origin: center bottom;
  }
  :where(:root[data-tablet-workspace]) #dialog.phone-sheet { width: min(100%,380px); }
  :where(:root[data-compact-workspace]) #dialog.phone-sheet .dialog-head { padding-block: 10px; }
  :where(:root[data-compact-workspace]) #dialog.phone-sheet .dialog-head .icon-button { min-width: 44px; height: 44px; }
  :where(:root[data-compact-workspace]) #dialog.phone-sheet .phone-app-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    align-items: stretch;
    gap: 8px 5px;
  }
  :where(:root[data-compact-workspace]) #dialog.phone-sheet .phone-app-button {
    position: relative;
    display: grid;
    align-content: start;
    justify-items: center;
    gap: 5px;
    min-width: 0;
    min-height: 76px;
    padding: 5px 2px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--ink);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    text-wrap: balance;
    white-space: normal;
  }
  :where(:root[data-compact-workspace]) #dialog.phone-sheet .phone-app-button:hover { background: var(--subtle); }
  :where(:root[data-compact-workspace]) #dialog.phone-sheet .phone-app-button.current { color: var(--primary-text); background: var(--primary-soft); }
  :where(:root[data-compact-workspace]) #dialog.phone-sheet .phone-app-button > svg {
    width: 49px;
    height: 49px;
    padding: 11px;
    border-radius: 14px;
  }
  :where(:root[data-compact-workspace]) #dialog.phone-sheet .nav-count {
    position: absolute;
    inset: 0 max(0px,calc(50% - 31px)) auto auto;
    margin: 0;
    background: #c82742;
    color: #fff;
  }
  :where(:root[data-compact-workspace]) #dialog.phone-sheet .account-demo { border-top: 1px solid var(--line); padding-top: 12px; }
  :where(:root[data-compact-workspace]:has(.shell)) #toast { bottom: calc(65px + env(safe-area-inset-bottom)); }
  :where(:root[data-tablet-workspace]:has(.shell)) #toast {
    bottom: calc(var(--tablet-dock-size) + var(--tablet-dock-bottom) + 8px);
  }
}

@media screen and (min-width: 720px) {
  :where(:root[data-compact-workspace]) .shell .selected-orders {
    top: calc(var(--compact-page-gutter) + env(safe-area-inset-top));
    max-height: calc(100dvh - var(--phone-nav-bottom) - var(--compact-page-gutter) - env(safe-area-inset-top) - var(--compact-page-bottom));
  }
  :where(:root[data-compact-workspace]) .selected-orders > .panel-heading { padding-inline-end: var(--compact-bell-gap); }
}
@media screen and (max-width: 719px), screen and (orientation: landscape) and (max-height: 540px) {
  :where(:root[data-compact-workspace]) .sales-menu .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media screen and (orientation: landscape) {
  :where(:root[data-compact-workspace]) .shell {
    --phone-nav-bottom: 0px;
    --phone-nav-end: calc(66px + env(safe-area-inset-right));
    --compact-page-bottom: max(12px,env(safe-area-inset-bottom));
    --compact-safe-end: 0px;
  }
  :where(:root[data-compact-workspace]) .shell .mobile-nav {
    inset: 0 0 0 auto;
    flex-direction: column;
    width: var(--phone-nav-end);
    height: auto;
    overflow-y: auto;
    padding: max(5px,env(safe-area-inset-top)) calc(5px + env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) 5px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
  :where(:root[data-compact-workspace]) .shell .mobile-nav button { max-height: 64px; }
  :where(:root[data-tablet-workspace]) .shell {
    --tablet-dock-width: 62px;
    --phone-nav-start: calc(var(--tablet-dock-width) + var(--tablet-dock-left));
    --phone-nav-end: 0px;
    --compact-safe-start: 0px;
    --compact-safe-end: env(safe-area-inset-right);
  }
  :where(:root[data-tablet-workspace]) .shell .mobile-nav {
    --tablet-dock-top: max(var(--tablet-dock-gap),env(safe-area-inset-top));
    inset: var(--tablet-dock-top) auto var(--tablet-dock-bottom) var(--tablet-dock-left);
    width: var(--tablet-dock-width);
    max-width: none;
    height: max-content;
    max-height: calc(100% - var(--tablet-dock-top) - var(--tablet-dock-bottom));
    margin: auto 0;
    padding: 6px 4px;
    overflow-x: hidden;
    border: 1px solid var(--line-strong);
  }
  :where(:root[data-tablet-workspace]) .shell .mobile-nav button {
    flex: 0 0 50px;
    width: auto;
  }
  :where(:root[data-compact-workspace]) #dialog.phone-sheet {
    inset: 0 0 0 auto;
    width: min(380px,calc(100% - 36px));
    max-height: none;
    height: 100dvh;
    margin: 0;
    padding-right: env(safe-area-inset-right);
    border-width: 0 0 0 1px;
    border-radius: 22px 0 0 22px;
    transform-origin: right center;
  }
  :where(:root[data-tablet-workspace]) #dialog.phone-sheet {
    inset: 0 auto 0 0;
    padding-right: 0;
    padding-left: env(safe-area-inset-left);
    border-width: 0 1px 0 0;
    border-radius: 0 22px 22px 0;
    transform-origin: left center;
  }
  :where(:root[data-compact-workspace]) #dialog.phone-sheet .dialog-head { padding-top: max(10px,env(safe-area-inset-top)); }
  :where(:root[data-compact-workspace]:has(.shell)) #toast { right: calc(78px + env(safe-area-inset-right)); bottom: max(12px,env(safe-area-inset-bottom)); }
  :where(:root[data-tablet-workspace]:has(.shell)) #toast { right: max(12px,env(safe-area-inset-right)); }
}

:root[data-pwa-installed] button[data-do="install"] { display: none !important; }

.menu-availability-list {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,330px),1fr));
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.menu-availability-card {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 13px;
}
.menu-availability-photo {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
}
.menu-availability-details { min-width: 0; overflow-wrap: anywhere; }
.menu-availability-details strong { display: block; font-size: 14px; line-height: 1.3; }
.menu-availability-count { margin-top: 4px; color: var(--muted); font-size: 12px; }
.menu-availability-count.empty-stock { color: var(--orange); font-weight: 800; }
.toggle-switch {
  display: grid;
  flex: none;
  justify-items: center;
  align-content: center;
  min-width: 64px;
  min-height: 44px;
  gap: 3px;
  padding: 4px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--secondary);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.toggle-switch:hover { background: var(--subtle); }
.toggle-switch[aria-checked="true"] { color: var(--green); }
.switch-track {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 20px;
  background: #6a7488;
  transition: background-color .16s ease;
}
.switch-track::after {
  content: "";
  position: absolute;
  inset: 3px auto auto 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px #0003;
  transition: transform .16s ease;
}
.toggle-switch[aria-checked="true"] .switch-track { background: #008467; }
.toggle-switch[aria-checked="true"] .switch-track::after { transform: translateX(20px); }
@media (max-width: 650px) {
  .menu-page-tabs > .tabs { width: 100%; }
  .menu-page-tabs .tab { flex: 1 1 0; }
  .menu-availability-card { gap: 8px; padding: 8px; }
  .menu-availability-photo { width: 48px; height: 48px; }
}

.recipe-unit-line {
  display: grid;
  grid-template-columns: minmax(0,1.5fr) minmax(0,.7fr) minmax(0,1fr) auto;
  gap: 8px;
  align-items: end;
}
.recipe-unit-line > .icon-button { height: 42px; }
.recipe-unit-preview { grid-column: 1 / -1; }
@media (max-width: 520px) {
  .recipe-unit-line { grid-template-columns: repeat(2,minmax(0,1fr)) auto; }
  .recipe-unit-line > .field:first-child { grid-column: 1 / 3; }
  .recipe-unit-line > .icon-button { grid-column: 3; grid-row: 1; }
  .recipe-unit-line > .field:nth-child(3) { grid-column: 2 / -1; }
}

.settings-records {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr));
  align-items: start;
  gap: 10px;
}
.settings-record {
  min-width: 0;
  padding: 12px;
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--subtle);
  overflow-wrap: anywhere;
}
.settings-record-heading,.settings-record-list > li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.settings-record-heading h3 { font-size: 15px; }
.settings-record-list { margin: 0; padding: 0; list-style: none; }
.settings-record-list > li { padding-block: 6px; border-top: 1px solid var(--line); font-size: 13px; }
.settings-record :is(.row-actions,.tag,.btn) { flex: none; }
.settings-record .row-actions { flex-wrap: nowrap; }
.settings-record .icon-button { height: 36px; min-width: 36px; }
.table-settings-body { display: grid; gap: 18px; }
.table-settings > .panel-heading { flex-wrap: wrap; }
.table-settings-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.table-settings-toolbar .subtext { margin-inline-start: auto; }
.table-settings-area-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.table-settings-area-head h3 { font-size: 15px; overflow-wrap: anywhere; }
.table-settings-area-head .row-actions { flex: none; }
.table-settings-area-head .icon-button { height: 44px; min-width: 44px; }
.table-settings-empty { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: var(--subtle); }
.table-settings-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,154px),1fr)); gap: 8px; }
.table-settings-card { grid-template-rows: 1fr auto auto; }
.table-settings-card-heading { display: flex; align-items: center; min-width: 0; gap: 8px; }
.table-settings-card-heading .pill-icon { width: 33px; height: 33px; border-radius: 9px; }
.table-settings-card-heading h4 { margin: 0; font-size: 14px; }
.table-settings-actions { display: flex; gap: 6px; }
.table-settings-actions .btn { flex: 1; min-height: 44px; padding-inline: 6px; }
.table-settings-actions .icon-button { min-width: 44px; height: 44px; }
.panel-note { padding: 0 18px 16px; }
.einvoice-result { margin-top: 14px; }
