:root{--paper:#f5f5ef;--white:#fff;--ink:#24372f;--muted:#647369;--line:#dce3d9;--green:#244d3c;--soft:#eaf0e5;--gold:#9a692e;--red:#ac3434;--shade:0 7px 24px #29423409}*{box-sizing:border-box}html{height:100%;scrollbar-gutter:stable}body{margin:0;background:var(--paper);color:var(--ink);font:17px/1.45 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.48;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #bf862e;outline-offset:3px}button svg,a svg{width:21px;height:21px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}h1,h2,h3,p{margin:0}h1{font-size:32px;letter-spacing:-1px;line-height:1.15}h2{font-size:23px;letter-spacing:-.5px}h3{font-size:18px}a{color:var(--green)}.muted,small{color:var(--muted)}small{font-size:14px}.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.stack{display:grid;gap:18px}.grow{flex:1;min-width:0}.space{margin-top:22px}.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:1.8px;color:var(--muted);font-weight:750;margin-bottom:8px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:10px 18px;border:1px solid var(--line);border-radius:12px;background:white;color:var(--ink);font-weight:650;text-decoration:none;white-space:normal}.btn:hover{background:#f1f4ee}.btn.primary{background:var(--green);border-color:var(--green);color:white}.btn.danger{color:var(--red);border-color:#e7ceca}.btn.quiet{background:transparent;border-color:transparent}.btn.small{font-size:14px;padding:7px 11px;min-height:44px}.btn.full{width:100%}.btn.square{width:48px;flex-shrink:0;padding:10px}.btn.large{min-height:56px;font-size:19px}.topbar{height:91px;background:#ffffffed;backdrop-filter:blur(16px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1490px)/2));gap:22px;position:sticky;top:0;z-index:10}.brand{display:flex;align-items:center;gap:13px;font-size:28px;font-weight:800;letter-spacing:-1px;min-width:150px}.brand-mark{background:var(--green);color:white;border-radius:13px;width:43px;height:43px;display:grid;place-items:center}.brand-mark svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7}.main-nav{display:flex;background:#eff2eb;border-radius:15px;padding:5px;gap:5px}.main-nav button{border:0;border-radius:11px;background:transparent;min-width:145px;min-height:48px;font-weight:700;font-size:17px;color:var(--muted);display:flex;align-items:center;justify-content:center;gap:10px}.main-nav .active{background:white;box-shadow:0 3px 10px #182d2010;color:var(--green)}.connection{text-align:right;min-width:170px;font-size:13px}.connection b{display:block;font-size:14px}.dot{display:inline-block;width:7px;height:7px;background:#437d48;border-radius:50%;margin-right:6px}.connection.offline .dot{background:var(--red)}.preparation{color:#866227}main{max-width:1510px;margin:0 auto;padding:30px 28px 60px}.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:25px}.page-head p{margin-top:9px;color:var(--muted)}.seg{display:flex;gap:5px;border:1px solid var(--line);border-radius:13px;padding:4px;background:#edf0e7;width:fit-content}.seg button{background:transparent;border:0;border-radius:10px;color:var(--muted);padding:10px 20px;min-height:46px;font-weight:700}.seg button.active{background:white;color:var(--green);box-shadow:0 2px 6px #213c2010}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px}.search{width:260px;max-width:100%;border:1px solid var(--line);background:white;border-radius:12px;padding:13px 16px;min-height:49px;color:var(--ink)}.chips{display:flex;gap:8px;flex-wrap:wrap}.chip{background:white;border:1px solid var(--line);border-radius:10px;padding:10px 16px;min-height:46px;color:var(--muted);font-weight:650}.chip.active{color:white;background:var(--green);border-color:var(--green)}.summary-text{color:var(--muted);font-size:15px}.summary-text b{color:var(--ink)}.tables{display:grid;grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:16px}.table-card{text-align:left;min-height:152px;background:white;border:1.5px solid var(--line);border-radius:18px;padding:20px;color:var(--ink);box-shadow:var(--shade);display:flex;flex-direction:column;justify-content:space-between;gap:15px;transition:transform .12s}.table-card:hover{transform:translateY(-2px);border-color:#9caf94}.table-card.open{background:#f0f4e8;border-color:#99b28b}.table-card strong{font-size:24px;letter-spacing:-.6px}.table-card .status{font-size:14px;color:var(--muted)}.table-card .amount{font-size:20px;font-weight:750;color:var(--green)}.badge{display:inline-flex;padding:4px 9px;gap:6px;align-items:center;background:var(--soft);color:var(--green);font-size:12px;font-weight:700;border-radius:7px}.badge.amber{background:#f4ead7;color:#886326}.empty{border:1px dashed #cbd6c4;background:#fafbf6;border-radius:16px;padding:35px 24px;text-align:center;color:var(--muted)}.empty svg{width:40px;height:40px;stroke:currentColor;fill:none;stroke-width:1.5;margin-bottom:10px}.work-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px;gap:12px}.work-head h1{font-size:30px}.work-grid{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:24px;align-items:start}.catalog-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.catalog-tools .search{width:245px}.products{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:13px;margin-top:18px}.product-card{background:white;border:1px solid var(--line);border-radius:17px;text-align:left;min-height:147px;padding:16px;color:var(--ink);position:relative;box-shadow:var(--shade)}.product-card:hover{border-color:#91ab84;background:#fafcf5}.product-card .product-name{display:block;font-size:19px;font-weight:700;line-height:1.2;margin:12px 0 5px}.product-card .product-price{font-size:17px;font-weight:650;color:var(--green)}.product-art{display:flex;align-items:center;justify-content:center;width:47px;height:47px;background:#f0e8da;color:#84623c;border-radius:13px}.product-art svg{width:28px;height:28px;stroke:currentColor;stroke-width:1.4;fill:none}.product-art img{width:100%;height:100%;object-fit:cover;border-radius:13px}.add-sign{position:absolute;right:14px;top:17px;border-radius:8px;background:var(--soft);color:var(--green);width:30px;height:30px;display:grid;place-items:center;font-size:23px}.bill{position:sticky;top:110px;background:white;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shade);overflow:hidden}.bill-head{padding:20px 21px;border-bottom:1px solid var(--line)}.bill-head h2{font-size:21px}.bill-body{padding:0 20px;max-height:calc(100vh - 470px);min-height:70px;overflow:auto;overscroll-behavior:contain}.bill-line{padding:16px 0;border-bottom:1px solid #e8ece3}.bill-line:last-child{border-bottom:0}.bill-line .line-title{display:flex;gap:8px;justify-content:space-between;align-items:flex-start;font-size:17px}.bill-line .line-title b:first-child{max-width:70%}.line-sub{font-size:13px;color:var(--muted);margin:4px 0 8px}.line-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px}.qty{display:flex;align-items:center;gap:7px}.qty button{height:44px;width:44px;display:grid;place-items:center;border:1px solid var(--line);border-radius:10px;background:#f8f9f5;font-size:23px;color:var(--ink)}.qty b{min-width:25px;text-align:center}.bill-foot{padding:18px 20px;background:#fafbf7;border-top:1px solid var(--line);display:grid;gap:12px}.total-row{display:flex;justify-content:space-between;align-items:center}.total-row.big b{font-size:30px;letter-spacing:-.8px}.bill-buttons{display:grid;grid-template-columns:1fr 1.3fr;gap:9px}.more-row{display:flex;gap:8px;flex-wrap:wrap}.customer-bar{border:1px solid var(--line);border-radius:12px;padding:13px 17px;display:flex;gap:12px;justify-content:space-between;align-items:center;background:white;margin-bottom:18px}.admin-layout{display:grid;grid-template-columns:204px minmax(0,1fr);gap:28px}.side-tabs{display:flex;flex-direction:column;gap:6px;align-self:start;position:sticky;top:120px}.side-tabs button{border:0;background:transparent;text-align:left;padding:13px 15px;border-radius:11px;color:var(--muted);font-weight:650;min-height:48px}.side-tabs button.active{background:var(--green);color:white}.panel{border:1px solid var(--line);background:white;border-radius:18px;padding:25px;box-shadow:var(--shade)}.list-row{display:flex;align-items:center;gap:14px;padding:16px 0;border-bottom:1px solid #e5e9df}.list-row:last-child{border-bottom:0}.list-row .price{font-size:18px;font-weight:700;white-space:nowrap}.input{display:block;width:100%;border:1px solid #cfd9c9;border-radius:10px;background:white;color:var(--ink);padding:12px 13px;min-height:49px;margin-top:6px}.field{display:block;font-size:15px;font-weight:600}textarea.input{min-height:96px;resize:vertical}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.check{display:flex;gap:10px;align-items:center;min-height:44px;font-size:16px}.check input{width:22px;height:22px;accent-color:var(--green)}.form-error{color:var(--red);font-size:15px;min-height:0}.form-error:empty{display:none}.help{font-size:14px;line-height:1.55;color:var(--muted)}.notice{border:1px solid #e8d8b5;background:#fcf5e6;color:#765d30;border-radius:12px;padding:15px;font-size:15px}.note{padding:14px 16px;background:var(--soft);color:var(--green);border-radius:12px;font-size:15px}.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.stat-card{background:#f5f7ef;border-radius:13px;padding:19px}.stat-card b{display:block;font-size:29px;margin-top:8px;letter-spacing:-1px}.audit{font-size:14px;display:grid;gap:10px;margin-top:20px}.audit>div{border-bottom:1px solid var(--line);padding-bottom:10px}.audit small{display:block}.details{border:1px solid var(--line);padding:15px;border-radius:12px}.details summary{cursor:pointer;font-weight:650;min-height:30px}.details[open]>summary{margin-bottom:17px}.check-row{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:14px 0;border-bottom:1px solid var(--line)}.check-row b{display:block}.good{color:#27673f}.warn{color:#a06926}.export-link{overflow-wrap:anywhere}.loading{padding:60px;text-align:center;color:var(--muted)}#message{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:70;background:#203d30;color:white;box-shadow:0 12px 40px #1b362f30;border-radius:14px;padding:13px 17px;display:none;align-items:center;gap:18px;max-width:calc(100vw - 30px);min-height:56px;font-size:16px}#message.show{display:flex}#message.error{background:#813d2d}#message button{background:#ffffff20;border:1px solid #ffffff40;border-radius:8px;min-height:42px;padding:6px 12px;color:white;font-weight:700;white-space:nowrap}dialog{padding:0;border:1px solid var(--line);border-radius:22px;color:var(--ink);width:min(630px,calc(100vw - 26px));max-height:calc(100dvh - 40px);box-shadow:0 24px 100px #1636263a}dialog::backdrop{background:#182b2359;backdrop-filter:blur(2px)}.sheet-head{position:sticky;top:0;background:white;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--line)}.sheet-content{padding:24px}.sheet-content .big-amount{font-size:40px;font-weight:780;letter-spacing:-1.5px}.entry{max-width:510px;margin:9vh auto;padding:30px;background:white;border:1px solid var(--line);border-radius:22px;display:grid;gap:25px}.entry .brand{justify-content:center}.pending{background:#fbeddc;border-bottom:1px solid #e0cda6;padding:12px 24px;display:flex;gap:15px;align-items:center;justify-content:center}.hidden{display:none!important}.pill-row{display:flex;gap:7px;flex-wrap:wrap}#print-area{display:none}.qrcode{width:210px;height:210px;max-width:100%;background:white;padding:10px;border:1px solid var(--line);border-radius:12px}.money-row{display:flex;justify-content:space-between;gap:12px;padding:8px 0}.history-row{border-bottom:1px solid var(--line);padding:12px 0}.options{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.option{display:flex;gap:10px;align-items:center;border:1px solid var(--line);border-radius:11px;padding:12px;min-height:51px}.option input{width:21px;height:21px;accent-color:var(--green)}.menu-mini{display:flex;justify-content:space-between;align-items:center;padding:20px;background:#f1f4e8;border-radius:14px;gap:15px}.legend{font-size:13px;color:var(--muted);margin-top:20px}.mobile-bill-jump{display:none}.launch-state{padding:15px;background:#edf2e7;border-radius:10px}.amount-cell{font-variant-numeric:tabular-nums}.search-wide{width:100%}
@media(min-width:1600px){.tables{grid-template-columns:repeat(7,1fr)}}
@media(max-width:1100px){.topbar{padding:0 22px}.work-grid{grid-template-columns:minmax(0,1fr) 350px;gap:18px}.products{grid-template-columns:repeat(3,minmax(0,1fr))}.product-card{padding:13px;min-height:150px}.product-card .product-name{font-size:18px}.admin-layout{grid-template-columns:176px 1fr;gap:19px}.connection{min-width:120px}}
@media(max-width:780px){.topbar{padding:10px 16px;height:auto;min-height:78px;gap:12px;flex-wrap:wrap}.brand{font-size:24px;min-width:0}.brand-mark{width:36px;height:36px}.main-nav{order:3;width:100%}.main-nav button{min-width:0;flex:1}.connection{min-width:0;font-size:11px}.connection b{font-size:12px}main{padding:23px 16px 90px}.page-head{align-items:flex-start;gap:12px}.page-head h1{font-size:28px}.page-head .btn{padding:10px 13px}.toolbar{align-items:stretch;flex-wrap:wrap}.toolbar .search{flex:1;min-width:140px}.tables{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.table-card{padding:15px;min-height:130px}.table-card strong{font-size:21px}.table-card .amount{font-size:18px}.work-grid{grid-template-columns:1fr}.bill{position:static}.bill-body{max-height:none}.work-head{margin-bottom:17px}.work-head h1{font-size:26px}.work-head .btn{font-size:14px}.products{grid-template-columns:repeat(3,minmax(0,1fr))}.product-card{min-height:145px}.catalog-tools{align-items:stretch;flex-wrap:wrap}.catalog-tools .search{width:100%}.chips{flex-wrap:nowrap;overflow:auto;padding-bottom:5px;max-width:100%}.chip{flex-shrink:0}.admin-layout{grid-template-columns:1fr;gap:18px}.side-tabs{flex-direction:row;overflow:auto;position:static;gap:6px;padding:3px 0}.side-tabs button{white-space:nowrap;flex-shrink:0;background:white;border:1px solid var(--line)}.panel{padding:18px}.stat-grid{grid-template-columns:1fr 1fr}.stat-card b{font-size:24px}.mobile-bill-jump{display:flex;position:fixed;bottom:12px;left:16px;right:16px;z-index:9;border:0;border-radius:13px;background:var(--green);color:white;padding:13px 19px;align-items:center;justify-content:space-between;box-shadow:0 5px 20px #244d3c33;min-height:52px;font-weight:700}.list-row{gap:10px;flex-wrap:wrap}.list-row .grow{min-width:35%}.list-row .btn.small{font-size:13px}.list-row .price{font-size:16px}#message{bottom:75px;width:max-content;max-width:calc(100vw - 26px);font-size:14px}.form-grid{gap:14px}.sheet-content{padding:20px}.sheet-head{padding:16px 20px}.menu-mini{flex-wrap:wrap}}
@media(max-width:420px){.tables{grid-template-columns:repeat(2,minmax(0,1fr))}.products{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid{grid-template-columns:1fr}.summary-text{font-size:13px}.seg button{padding:9px 15px}.work-head .muted{font-size:13px}.bill-buttons{grid-template-columns:1fr 1fr}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media print{@page{margin:4mm}body{background:white!important;color:black!important;font:12px/1.45 monospace!important}body>*{display:none!important}#print-area{display:block!important;width:70mm;margin:0!important}#print-area h2{font-size:18px;text-align:center}#print-area .print-center{text-align:center}#print-area .print-line{display:flex;justify-content:space-between;gap:7px;margin:7px 0}#print-area .print-sep{border-top:1px dashed black;margin:10px 0}#print-area .print-small{font-size:10px}#print-area .print-total{font-size:16px;font-weight:800}}
[hidden]{display:none!important}
/* Shrink grid children on phones; chip strip scrolls inside its own column. */
.work-grid>*{min-width:0}.work-grid .chips{max-width:100%}.work-grid .search{max-width:100%}
.admin-layout>*{min-width:0}
/* Familiar staff layout; the owner's management area keeps its own styling. */
.staff-view{--paper:#f5f5f5;--ink:#292929;--green:#2475ab;--line:#d6d6d6;background:#f5f5f5}
.staff-view .topbar{height:64px;padding:8px 20px;background:#fff;border-bottom:1px solid #ccc}
.staff-view main{max-width:none;padding:12px 20px}
.staff-view .page-head{margin:8px 0 18px}.staff-view .page-head p,.staff-view .legend{display:none}
.staff-view .tables{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.staff-view .table-card{border-radius:5px;background:#4aa950;color:#fff;min-height:125px;border:1px solid #388c3e;box-shadow:none}
.staff-view .table-card.open{background:#d98220;border-color:#b46b15}.staff-view .table-card strong{font-size:24px}.staff-view .table-card .status,.staff-view .table-card small{color:#fff}
.staff-view .chip{border-radius:4px;min-height:46px;padding:9px 14px}.staff-view .chip.active{background:#337eae;color:#fff}
.staff-view .btn{border-radius:5px}.staff-view .work-head{height:48px;margin:0 0 10px}.staff-view .work-head h1{font-size:24px}
.staff-view .work-grid{grid-template-columns:minmax(300px,30%) minmax(0,1fr);gap:16px;align-items:stretch}
.staff-view .bill{position:static;border-radius:4px;display:flex;flex-direction:column;min-height:0;overflow:hidden;border:1px solid #bcbcbc;background:#fff}
.staff-view .bill-head{padding:10px 12px;background:#eee}.staff-view .bill-head h2{font-size:20px}
.bill-columns{display:grid;grid-template-columns:minmax(0,1fr) 40px 77px;gap:6px;padding:8px 10px;font-size:14px;border-bottom:1px solid #ddd}.bill-columns>:nth-child(2){text-align:center}.bill-columns>:last-child{text-align:right}
.staff-view .bill-body{flex:1;min-height:70px;overflow:auto;padding:0}.staff-view .bill-line{padding:6px 8px;border-bottom:1px solid #ddd}.staff-view .line-values{padding:3px 0;border:0;font-size:14px}
.staff-view .line-controls{gap:4px;margin-top:5px;justify-content:flex-end}.staff-view .qty{margin-right:auto}.staff-view .qty button{min-width:44px;min-height:44px}.staff-view .line-controls .btn{min-height:44px;padding:5px 9px}
.staff-view .bill-foot{padding:10px}.staff-view .total-row{margin:4px 0;font-size:14px}.staff-view .total-row.big{font-size:21px;margin:8px 0}.staff-view .bill-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.staff-view .bill-buttons .btn{padding:8px 3px;min-height:48px;font-size:14px}
.paid-section{border-top:1px solid #ddd;border-bottom:1px solid #ddd;padding:7px 0;margin-top:7px;max-height:130px;overflow:auto}.paid-section>b{font-size:14px;color:#378341}.payment-line{font-size:13px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px}.payment-line small{font-size:11px}
.staff-view .catalog{display:flex;flex-direction:column;min-width:0;min-height:0}.staff-view .catalog>.chips{display:flex;flex-wrap:wrap;overflow:visible;gap:6px;margin:0 0 8px}.staff-view .catalog .chip{font-size:14px;padding:8px 10px}
.staff-view .catalog-tools{margin:0 0 10px;gap:8px;display:flex;justify-content:space-between}.staff-view .catalog-tools .search{width:100%;max-width:320px;min-height:44px;border-radius:4px;padding:8px 12px}
.staff-view .products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(var(--product-rows,4),minmax(0,1fr));gap:10px;flex:1;margin:0;min-height:0;align-content:stretch}
.staff-view .product-card{background:#de5048;border:1px solid #c9443d;color:#fff;border-radius:5px;min-height:80px;height:100%;width:100%;padding:12px 9px;box-shadow:none;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px}
.staff-view .product-card:hover{background:#c8433c}.staff-view .product-name{font-size:19px;font-weight:700;line-height:1.2}.staff-view .product-price{font-size:15px;color:#fff;opacity:.95}.staff-view .product-cell{position:relative;min-width:0;min-height:0}.staff-view .product-cell:has(.product-extra) .product-card{padding-bottom:42px}
.staff-view .product-extra{position:absolute;bottom:3px;left:3px;right:3px;min-height:34px;padding:4px;font-size:13px;border:0;background:#ffffff22;color:#fff}
.group-hint{margin-bottom:18px;color:#666}.group-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.group-choice{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;width:100%;min-height:140px;border:0;border-radius:6px;padding:15px;background:#de5048;color:#fff;font-size:20px}.group-choice span{font-size:17px}
@media(min-width:800px) and (min-height:580px){.order-view{height:100dvh;overflow:hidden}.order-view main{height:calc(100dvh - 64px);display:flex;flex-direction:column}.order-view .work-grid{flex:1;min-height:0}.order-view .work-head{flex-shrink:0}.order-view .mobile-bill-jump{display:none}}
@media(max-width:1000px){.staff-view .product-name{font-size:17px}.staff-view .work-grid{gap:10px;grid-template-columns:minmax(285px,33%) minmax(0,1fr)}.staff-view main{padding:10px}.staff-view .catalog .chip{font-size:13px;padding:8px}.staff-view .products{gap:7px}}
@media(max-width:799px){.staff-view .work-grid{display:flex;flex-direction:column}.staff-view .catalog{order:-1}.staff-view .products{grid-auto-rows:minmax(105px,auto);grid-template-rows:none}.staff-view .bill{max-height:650px}.staff-view .tables{grid-template-columns:repeat(2,minmax(0,1fr))}.staff-view .table-card{min-height:110px}.staff-view .topbar{height:auto}.staff-view .connection{display:none}.group-options{grid-template-columns:1fr}.group-choice{min-height:90px}.staff-view .product-name{font-size:15px}}
@media print{.staff-view{overflow:visible;height:auto}}
.add-quantity{display:flex;align-items:center;gap:8px;white-space:nowrap;font-weight:700}.add-quantity input{width:66px;min-height:46px;padding:6px;border:1px solid #bbb;border-radius:4px;font-size:20px;text-align:center}.admin-filters{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0}.admin-filters select{width:auto;min-width:180px;margin:0}.bulk-orders{max-height:260px;overflow:auto}.bulk-orders .check{justify-content:space-between}.bulk-orders input{width:24px;height:24px}.bulk-orders span{flex:1}
body:not(.staff-view){--paper:#f4f3ed;--ink:#213f39;--green:#274e44;--gold:#a7804b}body:not(.staff-view) .page-head h1{font-family:Georgia,serif;font-size:44px;font-weight:500}body:not(.staff-view) .panel{border-radius:12px;box-shadow:0 8px 30px #263d3105}body:not(.staff-view) .side-tabs{border-left:2px solid #d8ded4;padding-left:12px}body:not(.staff-view) .side-tabs button.active{background:#274e44;color:#fff}body:not(.staff-view) .list-row .product-art{border-radius:6px}body:not(.staff-view) .menu-mini{background:#253e36;color:#f4eddb;padding:24px;border-radius:12px}body:not(.staff-view) .menu-mini small{color:#d8dece}
@media(max-width:900px){.staff-view .catalog-tools .search{min-width:0;width:150px}.add-quantity input{width:55px}.staff-view .work-head h1{font-size:20px}.staff-view .work-head .row{gap:6px}}
/* Original POS navigation: region row remains present inside every table. */
.staff-view .topbar{position:sticky;top:0;z-index:12}.zone-bar{position:sticky;top:64px;z-index:11;display:flex;background:#ececec;padding:8px 20px;gap:8px;border-bottom:1px solid #bbb;height:76px}.zone-bar button{flex:1;min-width:0;border:1px solid #bbb;background:#fff;color:#333;border-radius:4px;font-size:22px;font-weight:700;min-height:58px;padding:8px}.zone-bar button.active{background:#337eae;border-color:#337eae;color:white}
.staff-view .catalog>.chips{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:10px}.staff-view .catalog>.chips .chip{font-size:25px;min-height:70px;font-weight:750;padding:12px 6px;text-transform:uppercase}
.group-options .quick-extra{min-height:62px;font-size:19px;border-radius:4px;margin-top:6px;background:#f2ead9;border-color:#c7ae7a;color:#513d15}.staff-view .product-extra.quick-extra{min-height:44px;font-size:16px}.staff-view .product-cell:has(.quick-extra) .product-card{padding-bottom:52px}
@media(min-width:800px) and (min-height:580px){.order-view main{height:calc(100dvh - 140px)}.staff-view .products{gap:8px}.staff-view .product-card{min-height:68px}.staff-view .product-name{font-size:18px}}
@media(max-width:1000px){.zone-bar{padding:8px 10px;gap:6px}.zone-bar button{font-size:18px}.staff-view .catalog>.chips .chip{font-size:21px;min-height:64px}}
@media(max-width:799px){.zone-bar{top:0;height:auto;flex-wrap:wrap}.zone-bar button{flex:1 1 26%;min-height:50px;font-size:17px}.staff-view .catalog>.chips .chip{font-size:17px;min-height:56px}}
.source-review{color:#936020;background:#fff6de;border-radius:4px;padding:4px 7px;display:inline-block;font-size:13px}
.staff-view .products{grid-template-columns:repeat(5,minmax(0,1fr))}.staff-view .product-name{font-size:18px}.staff-view .product-card{padding:8px 5px;gap:5px}
@media(max-width:799px){.staff-view .products{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:none;grid-auto-rows:minmax(100px,auto)}}

.layout-list{display:grid;gap:10px}.layout-tile{border:1px solid #d9e0da;border-radius:12px;padding:12px;background:#fff}.layout-tile details{margin-top:8px}.layout-tile summary{cursor:pointer;color:#526b61;padding:8px 0}.layout-tile .field{margin-top:10px}.layout-save{position:sticky;bottom:0;background:#fff;padding:12px 0 0;border-top:1px solid #dde3de}.layout-save small{display:block;text-align:center;margin-top:8px}

/* Compact bills: editing controls appear only for the selected line. */
.staff-view .bill-line{padding:0 6px}.staff-view button.line-values{width:100%;min-height:44px;background:white;border:0;border-bottom:1px solid #edf0ec;color:inherit;text-align:left;cursor:pointer;font:inherit;font-size:14px;padding:6px 4px;border-radius:0}.staff-view button.line-values[aria-expanded=true]{background:#eaf3f8}.staff-view .line-sub{padding:0 4px 4px;font-size:12px;line-height:1.2}.staff-view .line-controls{margin:0;padding:4px 0}.staff-view .bill-head{padding:5px 10px}.staff-view .bill-head h2{font-size:17px}.staff-view .bill-head small{font-size:11px}.staff-view .bill-foot{padding:6px 8px}.staff-view .paid-section{padding:3px 0;margin-top:3px}.paid-section summary{display:flex;justify-content:space-between;cursor:pointer;font-size:13px;color:#378341}.staff-view .bill-foot .total-row.big{margin:3px 0}.staff-view .bill-buttons .btn{min-height:42px;padding:5px 2px}.staff-view .line-values b:first-child{overflow-wrap:anywhere}.add-quantity .btn{min-width:54px;min-height:46px;padding:6px}

.staff-view .bill-body{max-height:none}.staff-view .bill-foot{gap:2px;flex-shrink:0}.staff-view .bill-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-shrink:0}.staff-view .bill-buttons{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.staff-view .bill-buttons .btn{font-size:12px;min-height:44px}.staff-view button.line-values{min-height:40px}.staff-view .bill-foot .total-row.big b{font-size:25px}.staff-view .bill-foot .total-row{margin:1px 0}.staff-view .bill-foot .total-row.big{font-size:17px;margin:1px 0}
@media(min-width:800px) and (max-height:800px){.staff-view .product-card{min-height:0;padding:5px;gap:3px}.staff-view .product-name{font-size:16px;line-height:1.12}.staff-view .product-price{font-size:14px;line-height:1.1}}
@media(min-width:800px){.order-view .bill-head{display:none}.order-view .bill-foot{grid-template-columns:1fr 1fr;align-items:center}.order-view .bill-foot>.total-row:not(.big){grid-column:1}.order-view .bill-foot>.paid-section{grid-column:2;border:0;margin:0;padding:0 0 0 10px}.order-view .bill-foot>.total-row.big,.order-view .bill-foot>.bill-buttons,.order-view .bill-foot>.btn{grid-column:1/-1}}

.order-categories{position:sticky;top:140px;z-index:10;display:flex;gap:8px;padding:6px 20px;background:#ececec;border-bottom:1px solid #bbb;height:66px}.order-categories button{flex:1;border:1px solid #bbb;border-radius:4px;background:white;color:#333;font-size:23px;font-weight:750;text-transform:uppercase}.order-categories button.active{background:#337eae;color:white}.sales-tally{width:100%;border-collapse:collapse;margin-top:20px}.sales-tally th,.sales-tally td{padding:12px 8px;border-bottom:1px solid var(--line);text-align:left}.sales-tally th:not(:first-child),.sales-tally td:not(:first-child){text-align:right}.sales-tally tbody tr:nth-child(even){background:#f7f9f4}
@media(min-width:800px) and (min-height:580px){.order-view main{height:calc(100dvh - 206px)}.order-view .work-head{height:38px;margin-bottom:6px}.order-view .work-head .btn{min-height:36px;height:36px}.order-view .bill-buttons .btn{min-height:40px}.order-view button.line-values{min-height:36px;font-size:14px}.order-view .work-grid{gap:12px}}
@media(max-width:799px){.order-categories{top:0;padding:6px 10px;height:56px}.order-categories button{font-size:17px}}

.analytics-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.analytics-stats .stat-card{padding:16px}.analytics-stats .stat-card b{font-size:27px}@media(max-width:1000px){.analytics-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

.staff-view .work-head>.catalog-tools{margin:0;flex:1;justify-content:flex-end}.staff-view .work-head{height:auto;min-height:48px;gap:16px}.staff-view .work-head .add-quantity{gap:6px}.staff-view .work-head .add-quantity .btn{min-width:42px;width:auto;min-height:42px;height:42px}.quantity-removal{color:#ae2929;font-size:14px;font-weight:750}.line-recent{animation:line-added 1.8s ease-out}@keyframes line-added{from{background:#daecd0}to{background:transparent}}.line-recent button.line-values{background:transparent}@media(prefers-reduced-motion:reduce){.line-recent{animation:none;background:#eef5e9}}@media(max-width:799px){.staff-view .work-head{flex-wrap:wrap}.staff-view .work-head>.catalog-tools{flex-basis:100%;justify-content:flex-start}.quantity-removal{font-size:12px}}

/* One aligned header; table arrows never depend on the name's width. */
.staff-view{--order-columns:minmax(300px,30%) minmax(0,1fr);--order-gap:12px;--order-side:20px}.staff-view .work-grid{grid-template-columns:var(--order-columns);gap:var(--order-gap)}.order-strip{position:sticky;top:140px;z-index:10;height:72px;display:grid;grid-template-columns:var(--order-columns);gap:var(--order-gap);padding:8px var(--order-side);background:#ececec;border-bottom:1px solid #bbb;align-items:stretch}.table-navigation{display:grid;grid-template-columns:minmax(0,1fr) 50px 50px;gap:6px;align-items:center;min-width:0}.table-navigation h1{font-size:27px;line-height:1.08;letter-spacing:-.6px;margin:0;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.table-navigation.customer-navigation{grid-template-columns:minmax(0,1fr)}.staff-view .table-arrow{width:50px;min-width:50px;height:54px;min-height:54px;padding:0;font-size:32px;border-radius:4px}.order-strip .order-categories{position:static;top:auto;height:auto;padding:0;border:0;gap:8px;min-width:0}.order-strip .order-categories button{font-size:21px;min-height:54px;padding:4px;min-width:0}.staff-view .work-head{min-height:44px;margin-bottom:6px}.staff-view .work-head>.catalog-tools{min-height:44px}
@media(min-width:800px) and (min-height:580px){.order-view main{height:calc(100dvh - 212px)}}
@media(min-width:800px) and (max-width:1000px){.staff-view{--order-columns:minmax(285px,33%) minmax(0,1fr);--order-side:10px}.table-navigation h1{font-size:24px}.order-strip .order-categories button{font-size:18px}}
@media(max-width:799px){.staff-view{--order-side:10px}.order-strip{position:sticky;top:0;height:auto;grid-template-columns:minmax(0,1fr);gap:8px}.table-navigation{grid-template-columns:minmax(0,1fr) 50px 50px}.table-navigation h1{font-size:26px}.order-strip .order-categories{height:50px}.order-strip .order-categories button{font-size:17px;min-height:50px}}

/* Quantity belongs to the catalog; the bill uses the full available height. */
.staff-view .catalog>.work-head{flex-shrink:0;min-height:46px;margin-bottom:6px}

.order-feedback{flex:1;min-width:0}.order-view .order-feedback #message{position:static;transform:none;bottom:auto;left:auto;width:100%;max-width:none;min-height:44px;height:44px;padding:4px 8px;gap:8px;margin:0;border-radius:4px;box-shadow:none;font-size:13px}.order-feedback #message span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1}.order-feedback #message button{min-height:36px;padding:4px 8px;border-radius:4px}.staff-view .catalog-tools .add-quantity{flex-shrink:0}
@media(max-width:1000px){.staff-view .catalog-tools:has(.order-feedback #message.show){flex-wrap:wrap}.order-feedback:has(#message.show){flex-basis:100%}.order-view .order-feedback #message{height:auto}.order-feedback #message span{white-space:normal}}

.staff-view .product-cell:has(.quick-extra){display:flex;flex-direction:column;gap:3px}.staff-view .product-cell:has(.quick-extra) .product-card{flex:1;height:auto;min-height:44px;padding:5px}.staff-view .product-cell>.product-extra.quick-extra{position:static;flex-shrink:0;min-height:36px;font-size:14px;margin:0}.staff-view .products:has(.product-extra.quick-extra){grid-template-rows:repeat(var(--product-rows,4),minmax(100px,1fr));overflow-y:auto}.order-view .customer-bar{padding:6px 10px;min-height:44px;margin-bottom:8px;flex-shrink:0}.order-view .customer-bar .btn{min-height:36px;padding:4px 10px}

@media(min-width:800px){.staff-view .catalog-tools:has(.order-feedback #message.show){flex-wrap:nowrap}.order-feedback:has(#message.show){flex-basis:auto}.order-feedback #message span{white-space:nowrap}.order-view .order-feedback #message{height:44px}.staff-view .catalog-tools>.row{flex-shrink:0;gap:4px}.staff-view .catalog-tools>.row .btn{min-width:36px;width:36px}}
@media(min-width:800px) and (min-height:580px){.order-view>#app{height:100%;display:flex;flex-direction:column;min-height:0}.order-view #app>.topbar,.order-view #app>.zone-bar,.order-view #app>.order-strip,.order-view #app>.pending{flex-shrink:0}.order-view #app>main{height:auto;flex:1;min-height:0;width:100%}}

.order-view .order-feedback #message.error{height:auto}.order-feedback #message.error span{white-space:normal}

/* Dense tablet catalog: six columns on wide tablets, up to six rows. */
@media(min-width:800px){.staff-view .products{grid-template-columns:repeat(var(--product-columns,5),minmax(0,1fr))}}
@media(min-width:800px){.staff-view .product-card .product-name{margin:0;font-size:15px;line-height:1.1}.staff-view .product-card .product-price{margin:0;font-size:14px;line-height:1.1;flex-shrink:0}.staff-view .product-card{padding:4px;gap:3px}}

/* Inside an order, keep only the region and product navigation. */
.order-view #app>.topbar{display:none}.order-view .zone-bar{top:0}.order-view .order-strip{top:76px}
@media(max-width:799px){.order-view .order-strip{top:0}}
@media(min-width:1100px) and (min-height:680px){.staff-view .product-card .product-name{font-size:17px}.staff-view .product-card .product-price{font-size:15px}}
/* Group counts stand apart from individual product prices. */
.staff-view .product-card.grouped .product-price{display:inline-flex;align-items:center;justify-content:center;background:#fff0bf;color:#624200;border:1px solid #ffe19a;border-radius:6px;padding:3px 8px;font-weight:800;line-height:1.1}
.complimentary-label{display:inline-block;font-size:10px;padding:2px 4px;border-radius:3px;background:#fff0bf;color:#624200;vertical-align:middle}.staff-view .complimentary-mode{background:#fff0bf;color:#624200;border:2px solid #ba8323;min-height:42px;font-size:14px;padding:4px 8px;flex-shrink:0}.staff-view .bill-buttons .bill-more{grid-column:1/-1;min-height:32px;font-size:13px;padding:4px;background:#f3f3ef}
/* Slightly larger product labels while preserving the thirty-button layout. */
@media(min-width:1100px) and (min-height:680px){.staff-view .product-card .product-name{font-size:18px}.staff-view .product-card .product-price{font-size:16px}}
/* Primary bill actions get a full row; secondary actions remain compact. */
.staff-view .bill-buttons{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.staff-view .bill-buttons .bill-main-action{grid-column:span 3;min-height:60px;font-size:21px;font-weight:800;padding:8px 4px}.staff-view .bill-buttons .bill-print{background:#e7eef4;border-color:#7999b1;color:#244e6e}.staff-view .bill-buttons .bill-secondary-action{grid-column:span 2;min-height:44px;font-size:14px;padding:5px 2px}.staff-view .bill-buttons .bill-more{grid-column:1/-1}
