:root{--ink:#161834;--muted:#73837e;--line:#e5e5ea;--green:#141a5e;--green2:#1b237d;--bg:#f4f4f7;--white:#fff;--shadow:0 8px 26px rgba(33,62,54,.065);--rad:19px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.8 Vazirmatn,Tahoma,'Segoe UI',Arial,sans-serif}button,input,textarea,select{font:inherit}a{color:inherit;text-decoration:none}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button,input,select,textarea{outline-offset:3px}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #8e94d8}img{max-width:100%;display:block}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(25px,2.4vw,34px);line-height:1.5;margin:3px 0}h2{font-size:20px;margin:0 0 18px}small{font-size:12px;color:var(--muted)}.muted,.hint,.page-heading p{color:var(--muted)}.hint{font-size:12px;margin:10px 0 0}.app-layout{display:grid;grid-template-columns:235px minmax(0,1fr);min-height:100vh}.sidebar{background:#12142e;color:#f0f1f9;min-height:100vh;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;padding:23px 13px;z-index:20}.side-brand{display:flex;align-items:center;gap:11px;padding:3px 10px 28px}.side-brand b{font-size:20px;letter-spacing:.4px;color:white;display:block;direction:ltr;text-align:right}.side-brand b em{font-style:normal;color:#7a82d8}.side-brand small{color:#9da0c6}.brand-mark{background:#242857;padding:9px;border-radius:12px;font-size:26px}.side-label{color:#7d81a8;font-size:12px;padding:13px 14px 8px}.side-links{display:grid;gap:5px}.side-links a{padding:12px 14px;border-radius:11px;display:flex;gap:10px;align-items:center;font-weight:bold;color:#d2d4e6}.side-links a:hover,.side-links a.active{background:#262b5d;color:#fff}.side-bottom{margin-top:auto;border-top:1px solid #343753;padding:19px 6px 0;display:flex;align-items:center;gap:9px}.user-avatar{background:#8c92d5;color:#101443;height:36px;min-width:36px;display:grid;place-items:center;border-radius:50%;font-weight:bold}.user-id{display:grid;flex:1;min-width:0}.user-id small{color:#a8abc9}.logout-icon{background:transparent;border:0;color:white;font-size:25px}.page-shell{min-width:0;display:flex;flex-direction:column}.topbar{height:74px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 30px;border-bottom:1px solid var(--line)}.site-identity{display:flex;align-items:center;gap:8px}.tiny-mark{color:#212c9d;font-size:24px}.top-actions{display:flex;align-items:center;gap:12px}.today-pill,.pill-link{border:1px solid var(--line);padding:6px 12px;border-radius:40px;background:#fff;font-size:13px}.pill-link:hover{color:var(--green)}.mobile-menu{display:none;background:white;border:1px solid var(--line);border-radius:9px;padding:4px 12px}.main-content{width:100%;max-width:1530px;margin:0 auto;flex:1;padding:30px}.footer{padding:16px;text-align:center;font-size:12px;color:var(--muted)}.footer a{color:#182073}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:24px;flex-wrap:wrap}.page-heading p{margin:0}.eyebrow{text-transform:none;font-size:12px;letter-spacing:.2px;color:var(--green2);font-weight:700}.btn{display:inline-flex;justify-content:center;align-items:center;gap:6px;text-align:center;padding:10px 17px;border-radius:11px;border:1px solid var(--line);font-weight:700;transition:background .12s ease,transform .12s ease;background:#fff;color:var(--ink)}.btn:hover:not(:disabled){transform:translateY(-1px)}.btn.primary{color:white;background:var(--green);border-color:var(--green)}.btn.primary:hover{background:#0f1345}.btn.dark{background:#191c3b;border-color:#191c3b;color:#fff}.btn.outline{background:#fff;border-color:#bdbecd;color:var(--green)}.btn.danger-outline{border-color:#eec6c6;color:#af3434;background:#fff7f7}.btn.big{padding:13px 20px;font-size:17px}.btn.full{width:100%}.text-link{color:#192178;background:none;border:0;font-weight:700;font-size:13px}.panel{background:#fff;border:1px solid #e7e8ed;box-shadow:var(--shadow);border-radius:var(--rad);padding:24px;min-width:0}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:20px}.metric-card{padding:23px;border-radius:16px;border:1px solid var(--line);position:relative;min-width:0;background:#fff;overflow:hidden;display:grid;gap:5px;box-shadow:var(--shadow)}.metric-card>span:first-child{font-size:14px;font-weight:bold;color:#51536b}.metric-card strong{font-size:clamp(21px,2vw,28px);line-height:1.6;white-space:nowrap}.metric-card small{max-width:80%}.metric-card.mint{background:#e9eaf8;border-color:#d6d8ec}.metric-card.rose{background:#fff1ee;border-color:#f2dfdc}.metric-card.sand{background:#fff8e8;border-color:#f4e8ce}.metric-card.sky{background:#edf6ff;border-color:#dae8f7}.metric-emoji{position:absolute;left:18px;top:22px;font-size:31px;opacity:.45}.two-panels{display:grid;grid-template-columns:1fr 1fr;gap:20px}.section-top,.toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px;flex-wrap:wrap}.section-top h2{margin:0}.section-top p{margin:0}.quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.quick-item{border:1px solid var(--line);border-radius:14px;padding:18px;display:grid;gap:4px;transition:background .2s}.quick-item:hover{background:#ecedf6}.quick-item span{font-size:29px}.quick-item b{font-size:16px}.quick-item small{line-height:1.3}.compact-list{display:grid;gap:8px}.compact-line{display:flex;align-items:center;gap:10px;border:1px solid var(--line);padding:11px 13px;border-radius:12px;min-width:0}.compact-line:hover{background:#fbfbfd}.compact-line .grow{flex:1;display:grid;min-width:0;line-height:1.55}.compact-line .grow b{overflow-wrap:anywhere}.order-icon{border-radius:10px;background:#edeef7;display:grid;place-items:center;height:40px;min-width:40px;font-size:19px}.tag,.status,.small-pill{display:inline-flex;align-items:center;font-size:12px;font-weight:700;border-radius:25px;padding:4px 10px;background:#ebebf0;color:#4d4f66;white-space:nowrap}.tag.success,.status-paid{background:#dadcf4;color:#141b61}.tag.danger,.status-cancelled{background:#ffebea;color:#b13333}.status-confirmed{background:#e5f2ff;color:#25639a}.status-pending{background:#fff1d9;color:#936215}.large-status{font-size:18px;padding:8px 15px}.small-pill{background:#eff0f5}.empty{padding:24px;text-align:center;color:var(--muted);border:1px dashed #cccdda;border-radius:13px}.hint-box{border-radius:13px;padding:15px;background:#ecedf5;color:#36395e;font-size:13px}.flash{border-radius:12px;padding:12px 16px;margin-bottom:16px;background:#e4e6f8;color:#22275b;font-weight:600}.flash-error{color:#9c3935;background:#ffefec}.flash-warning{background:#fff8e8}.stack-form{display:grid;gap:14px}.stack-form label,.cart-details label{font-weight:700;display:grid;gap:6px;font-size:13px}.stack-form input,.stack-form select,.stack-form textarea,.cart-details input,.search-field{width:100%;padding:11px 13px;background:#fbfbfd;border:1px solid #cfd0de;border-radius:10px;color:var(--ink);min-height:44px}.stack-form input[type=checkbox]{width:auto;min-height:0;margin-left:8px}.stack-form label:has(input[type=checkbox]){display:flex;align-items:center;gap:7px}.stack-form textarea{min-height:90px;resize:vertical}.stack-form ul.errorlist,.errorlist{padding:8px;color:#a82b2b;font-size:12px;margin:0;list-style:none}.stack-form .helptext{font-size:12px;color:var(--muted)}.search-field{width:min(270px,100%)}.toolbar{margin-bottom:18px}.category-tabs{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.category-button{padding:8px 13px;border-radius:50px;background:#f1f1f6;border:1px solid transparent;font-size:13px;color:#494c67;font-weight:700}.category-button.active,.category-button:hover{background:#141a5d;color:#fff}.sales-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:19px;align-items:start}.pos-products{min-height:520px}.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:14px}.product-tile{position:relative;min-width:0;padding:0;text-align:right;background:#fff;border:1px solid #e4e4e9;border-radius:14px;overflow:hidden;box-shadow:0 4px 13px #181a3608;transition:transform .15s,border .15s}.product-tile:hover:not(:disabled){transform:translateY(-3px);border-color:#a9add9}.food-photo{height:135px;background:#edeef3;overflow:hidden}.food-photo img{width:100%;height:100%;object-fit:cover}.product-info{padding:10px 12px 12px;display:grid;line-height:1.4;gap:5px}.product-info b{font-size:14px;min-height:19px}.product-info span{color:#182072;font-size:13px;font-weight:700}.plus-chip{position:absolute;left:10px;top:107px;background:#171e6d;color:white;border-radius:50%;width:31px;height:31px;display:grid;place-items:center;font-size:22px;box-shadow:0 3px 7px #0002}.cart-panel{position:sticky;top:15px}.cart-list{display:grid;gap:8px;max-height:270px;overflow:auto}.cart-item{border-bottom:1px solid var(--line);padding:9px 0;display:flex;align-items:center;gap:9px}.cart-item-name{flex:1;min-width:0}.cart-item-name b{display:block;font-size:13px}.cart-item-name small{font-size:11px}.qty-controls{display:flex;align-items:center;gap:7px}.qty-controls button{width:29px;height:29px;border:1px solid #cbccdc;border-radius:8px;background:#edeef6;color:#131956;font-size:19px;line-height:1}.cart-details{display:grid;gap:11px;margin:18px 0}.total-line{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding:16px 0 14px;font-weight:bold}.total-line strong{font-size:22px;color:var(--green)}.cart-form .hint{line-height:1.8}.two-panels>.panel{align-self:start}.subheading{margin:26px 0 15px}.bordered-form{margin-top:18px;border-top:1px solid var(--line);padding-top:18px}.balance-detail{background:#f4f5fa;padding:15px;border-radius:12px;display:grid;gap:8px}.balance-detail>div{display:flex;justify-content:space-between;gap:9px}.income{color:#1a237d}.expense{color:#bf4c46}.inline-void{display:flex;gap:8px;margin-bottom:9px}.inline-void input{border:1px solid var(--line);padding:5px 9px;border-radius:7px;flex:1;min-width:0}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;text-align:right;white-space:nowrap}.data-table th,.data-table td{padding:13px 11px;border-bottom:1px solid var(--line);font-size:13px}.data-table th{color:#696b82;background:#f7f7fa}.data-table tr:hover td{background:#fafafd}.data-table a{color:var(--green);font-weight:700}.statusbar{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:18px}.statusbar .btn{padding:8px 13px;font-size:13px}.statusbar .btn.active{background:#151b5c;color:white;border-color:#151b5c}.bill-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:22px;max-width:930px;margin:0 auto}.receipt{text-align:center}.receipt-header{padding-bottom:18px;border-bottom:1px dashed #c9cad9}.receipt-logo{font-size:36px}.receipt-header h2{font-size:24px;margin:2px}.receipt-header p{margin:1px;color:var(--muted);font-size:13px}.receipt-meta{display:flex;justify-content:space-between;gap:9px;padding:14px 0;font-size:13px}.receipt-note{border-radius:8px;background:#f6f6f9;padding:7px;font-size:13px}.receipt-table{text-align:right}.receipt-th,.receipt-tr{display:grid;grid-template-columns:2fr 55px 1fr;gap:10px;padding:10px 0;border-bottom:1px solid var(--line);align-items:center}.receipt-th{font-size:12px;color:var(--muted)}.receipt-tr small{display:block}.receipt-tr strong{font-size:13px}.receipt-total{display:flex;justify-content:space-between;padding:15px 0;font-size:18px}.receipt-status{background:#f0f0f6;border-radius:9px;padding:7px;font-weight:700}.thanks{color:#696b84;font-size:13px;margin-top:25px}.actions-column .panel{display:grid;gap:14px}.actions-column .panel h2{margin-bottom:0}.actions-column form{display:grid;gap:10px}.report-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.grid-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.grid-form .full-span{grid-column:1/-1}.product-row{display:flex;align-items:center;gap:12px}.product-mini{width:52px;height:52px;border-radius:9px;object-fit:cover;background:#eee}.product-name{min-width:0;display:grid}.product-name b{overflow-wrap:anywhere}.public-bg{background:#f5f5fa}.public-header{max-width:1240px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;padding:24px 22px 12px;gap:15px}.public-brand{display:flex;align-items:center;gap:12px}.public-brand>span{font-size:37px}.public-brand h1{margin:0;font-size:24px}.public-brand small{display:block}.public-badge{background:#e3e4f5;color:#1a2178;border-radius:32px;padding:7px 12px;font-size:12px;font-weight:bold}.public-intro{max-width:1240px;margin:0 auto;padding:25px 22px 15px}.public-intro h2{font-size:29px;margin:0}.public-intro p{margin:5px 0;color:var(--muted)}.public-layout{max-width:1240px;margin:0 auto;padding:0 22px 36px;display:grid;grid-template-columns:1fr 340px;gap:19px;align-items:start}.public-products{min-width:0}.public-tabs{margin-bottom:16px}.public-footer{text-align:center;color:var(--muted);font-size:12px;padding-bottom:25px}.public-footer a{color:var(--green)}.public-flash{max-width:1196px;margin:8px auto}.honeypot{position:absolute!important;left:0!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;opacity:0!important}.login-bg{background:radial-gradient(circle at 60% 25%,#e4e5f3,#f8f8fa 58%);min-height:100vh;display:grid;place-items:center;padding:24px}.login-box{width:min(420px,100%);padding:38px 30px;border-radius:22px;background:white;box-shadow:0 22px 60px #1a216b17;text-align:center}.login-icon{font-size:50px}.login-box h1{font-size:26px}.login-box p{font-size:14px;color:var(--muted);margin-bottom:23px}.login-box form{text-align:right}.login-box .flash{text-align:right}.qr-preview{max-width:230px;border:1px solid var(--line);border-radius:16px;background:white;padding:9px}.soft-note{padding:11px 15px;background:#f2f2f6;border-radius:11px;color:#494b64}.check-row{display:flex;align-items:center;gap:8px}.check-row input{width:auto}.report-date{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:17px}.report-date input{padding:8px 11px;border:1px solid var(--line);border-radius:9px}.scroll-list{max-height:500px;overflow:auto}.mini-form{display:flex;gap:6px;flex-wrap:wrap}.mini-form input{max-width:150px;padding:6px 8px;border-radius:7px;border:1px solid var(--line)}
@media(max-width:1200px){.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-layout{grid-template-columns:1fr 310px}.public-layout{grid-template-columns:1fr 300px}.main-content{padding:22px}}@media(max-width:960px){.app-layout{grid-template-columns:1fr}.sidebar{position:fixed;right:0;top:0;width:246px;transform:translateX(104%);transition:transform .2s}.sidebar.open{transform:translateX(0)}.mobile-menu{display:inline-block}.topbar{padding:0 18px}.sales-layout,.public-layout,.two-panels,.bill-layout{grid-template-columns:1fr}.cart-panel{position:static}.page-heading{align-items:flex-start}.public-layout{gap:15px}}@media(max-width:600px){.main-content{padding:14px}.topbar{height:66px}.top-actions .today-pill{display:none}.panel{padding:16px}.metric-grid{gap:10px}.metric-card{padding:13px}.metric-card strong{font-size:19px}.metric-emoji{display:none}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.food-photo{height:118px}.plus-chip{top:93px}.quick-grid{gap:8px}.quick-item{padding:12px}.grid-form{grid-template-columns:1fr}.report-cards{grid-template-columns:1fr}.public-header{padding:14px}.public-intro{padding:12px 14px}.public-layout{padding:0 12px 24px}.public-intro h2{font-size:23px}.data-table{min-width:500px}}
@media print{body{background:white}.sidebar,.topbar,.footer,.no-print,.actions-column,.btn,.page-heading{display:none!important}.app-layout,.page-shell,.main-content,.bill-layout{display:block!important;padding:0;margin:0;width:100%!important;max-width:none}.receipt{box-shadow:none;border:0;padding:5mm}.receipt-header{padding-top:5mm}@page{size:A4;margin:12mm}@page receipt{size:80mm 250mm;margin:2mm}.receipt{page:receipt}.receipt-table{font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.auth-bg{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at top right,#dfe1f4,#f4f4f7 65%)}.auth-card{background:white;border-radius:24px;box-shadow:0 24px 65px #14195415;padding:34px;width:min(430px,100%);text-align:center}.auth-symbol{font-size:54px}.auth-card form{text-align:right;margin-top:20px}.auth-card h1{font-size:26px}.auth-foot{margin:24px 0 0;color:var(--muted);font-size:12px}.qr-box .qr-frame{display:flex;justify-content:center;padding:20px;border-radius:16px;background:#f3f3f8;margin-bottom:14px}.qr-box .qr-frame img{border-radius:10px;background:white;padding:5px}.menu-address{background:#f7f7fa;padding:10px;border-radius:10px;text-align:center;overflow-wrap:anywhere;font-size:12px}.qr-box .btn{margin-top:9px}.product-tile:disabled{opacity:.78;filter:saturate(.7)}[hidden]{display:none!important}

.brand-logo{width:43px;height:43px;border-radius:10px;object-fit:cover}.public-logo{width:55px;height:55px;object-fit:cover;border-radius:12px}.receipt-logo .public-logo{margin:0 auto}.table-scroll{overflow:auto}.table-photo{width:54px;height:54px;border-radius:10px;object-fit:cover;background:#e9eaf4}.staff-list{display:grid;gap:10px}.staff-item{display:flex;align-items:center;gap:10px;padding:12px;border-radius:12px;background:#f9f9fc;border:1px solid var(--line)}.staff-avatar{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#dee0f2;font-weight:bold}.staff-item .grow{flex:1;min-width:0;display:grid}.staff-item .grow b,.staff-item .grow small{line-height:1.4}.password-row{display:flex;gap:8px;border-bottom:1px solid var(--line);padding:6px 0 15px}.password-row input{flex:1;min-width:0;border-radius:8px;border:1px solid var(--line);padding:8px}.small{padding:6px 10px;font-size:12px}.tag.warning{background:#fff4e2;color:#96651a}.stack-form>p{display:grid;gap:6px;margin:0}.stack-form>p>label{font-weight:bold}.stack-form>p>input:not([type=checkbox]),.stack-form>p>select{width:100%;padding:11px;border:1px solid #cfd0de;background:#fbfbfd;border-radius:10px;min-height:43px}.stack-form>p>input[type=checkbox]{width:20px;height:20px}.report-filter{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:19px}.report-filter>label{display:grid;gap:5px}.report-filter input{padding:10px;border:1px solid var(--line);border-radius:9px;min-height:40px}button[aria-busy=true]{opacity:.6;pointer-events:none}

@font-face{font-family:Vazirmatn;src:url("../fonts/Vazirmatn.f6d31671339d.woff2") format('woff2');font-weight:100 900;font-display:swap}
[data-theme="dark"]{--ink:#e6e7f3;--muted:#b4b6c6;--line:#3b3d52;--green:#8088db;--bg:#141524;--white:#202237}
[data-theme="dark"] .panel,[data-theme="dark"] .metric-card,[data-theme="dark"] .topbar,[data-theme="dark"] .product-tile{background:#202237;color:var(--ink)}
[data-theme="dark"] input,[data-theme="dark"] select,[data-theme="dark"] textarea,[data-theme="dark"] .receipt-status,[data-theme="dark"] .hint-box,[data-theme="dark"] .data-table th{background:#17192a;color:var(--ink)}
[data-theme="dark"] .compact-line:hover,[data-theme="dark"] .data-table tr:hover td{background:#30324a}
.btn,button.category-button,.qty-controls button{min-height:44px}.qty-controls button{min-width:44px}
.pagination{display:flex;gap:16px;align-items:center;justify-content:center;margin:20px 0}
.report-filter{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.report-filter input{max-width:180px}
@media print{html[data-theme="dark"]{--ink:#111;--muted:#444;--bg:#fff;--white:#fff}.panel,.metric-card{background:white!important;color:#111!important}.receipt{max-width:76mm;margin:auto}.report-filter,.pagination{display:none!important}}

[data-theme="dark"] .metric-card>span:first-child{color:#c1c3d9}[data-theme="dark"] .pill-link,[data-theme="dark"] .today-pill,[data-theme="dark"] .btn.outline{background:#202237;color:#e6e7f3;border-color:#585a75}

.mobile-cart-jump{display:none}#order-cart{scroll-margin-top:16px}@media(max-width:960px){.mobile-cart-jump{display:flex;position:fixed;bottom:12px;inset-inline:12px;justify-content:space-between;align-items:center;gap:10px;min-height:48px;padding:10px 16px;border-radius:12px;background:#13195c;color:white;box-shadow:0 4px 20px #0003;z-index:25}.public-bg,.main-content:has([data-pos-root]){padding-bottom:85px}}@media print{.mobile-cart-jump{display:none!important}}

.system-nav{padding:11px 15px;margin:0 0 6px;border-radius:10px;background:#b3985a25;color:#f2dcad;font-weight:700}
.main-content{padding:20px 24px}.page-heading{margin-bottom:16px}.metric-card{padding:16px}.metric-grid{gap:13px;margin-bottom:16px}.two-panels{gap:16px;align-items:start}.quick-item{padding:14px}.dashboard-summary{margin-top:16px}.summary-chips{display:flex;flex-wrap:wrap;gap:12px}.summary-chips>span{background:var(--bg);padding:6px 12px;border-radius:9px}.dashboard-summary h2{font-size:17px;margin-bottom:10px}.product-reason-form{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.product-reason-form input{width:170px;min-width:0;padding:7px;border:1px solid var(--line);border-radius:7px}.audit-detail{white-space:normal;overflow-wrap:anywhere;min-width:230px;max-width:600px}.dashboard-summary .hint-box{margin-top:12px}.today-pill{font-variant-numeric:tabular-nums}
@media(max-width:600px){.main-content{padding:12px}.metric-card strong{font-size:17px}.metric-card{padding:12px}.top-actions .today-pill{display:inline-block;font-size:10px;padding:4px}.topbar{flex-wrap:wrap;height:auto;min-height:66px;gap:5px;padding:8px 12px}.top-actions{gap:5px}.today-pill b{display:inline-block}.site-identity{font-size:12px}.two-panels{gap:12px}}

/* Bright restaurant palette and touch-friendly menu controls. */
:root{--page:#fff9ee;--mint:#dddff7;--rose:#ffe0e8;--sand:#fff0b8;--sky:#dceeff}
body{background-color:var(--page)}
.metric-card.mint{background:linear-gradient(125deg,#bcc1f1,#e3e5f9)}
.metric-card.rose{background:linear-gradient(125deg,#ffc5d7,#ffe7e5)}
.metric-card.sand{background:linear-gradient(125deg,#ffe38b,#fff6cc)}
.metric-card.sky{background:linear-gradient(125deg,#c4dcff,#e0f5ff)}
.quick-item:nth-child(4n+1){background:#dddff8}.quick-item:nth-child(4n+2){background:#fff0c5}
.quick-item:nth-child(4n+3){background:#ffe4ed}.quick-item:nth-child(4n){background:#e8e2ff}
.category-button{border:1px solid #e0d9cb;background:#fff4cf;color:#44351d}
.category-button:nth-child(3n){background:#e8e0ff}.category-button:nth-child(3n+1){background:#dee0f5}
.category-button.active{background:#171d65;color:white;border-color:#171d65}
.product-card{position:relative;min-width:0;border-radius:20px;background:#fff0ce;border:1px solid #eddcb4;overflow:hidden}
.product-card:nth-child(4n+2){background:#ffe3ec;border-color:#f3cbd9}
.product-card:nth-child(4n+3){background:#e6e1ff;border-color:#d5ccef}
.product-card:nth-child(4n){background:#dcdef5;border-color:#bfc2e8}
.product-card .product-tile{width:100%;height:100%;border:0;background:transparent;padding-bottom:48px;border-radius:18px}
.product-card .product-info{padding-bottom:12px}
.product-card .plus-chip{width:auto;min-height:36px;border-radius:12px;padding:5px 12px;bottom:9px;left:10px;background:#171d65;color:#fff;font-size:13px}
.product-tile.is-selected{box-shadow:inset 0 0 0 3px #1b237e}
.product-tile.is-selected .plus-chip{visibility:hidden}
.tile-quantity{position:absolute;bottom:9px;left:10px;right:10px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-radius:12px;min-height:40px;box-shadow:0 2px 8px #24274e20}
.tile-quantity[hidden]{display:none}.tile-quantity button{width:44px;height:40px;background:#171d65;color:white;border:0;border-radius:10px;font-size:22px;cursor:pointer}
.tile-quantity b{color:#14184a}.cart-feedback{padding:10px 12px;margin:8px 0 12px;border-radius:12px;background:#fff0b8;color:#57420a;font-size:13px;min-height:40px}
.menu-search{width:100%;margin:8px 0}.public-intro{background:linear-gradient(110deg,#fff0c5,#ffe2ea,#dddff5);border-radius:24px;padding:18px}
@media(min-width:700px) and (max-width:1100px){.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.sales-layout,.public-layout{grid-template-columns:1fr}.cart-panel{position:static}.mobile-cart-jump{display:flex}}
@media(max-width:420px){.product-grid{gap:10px}.product-card .product-info{padding:10px}.product-card .food-photo{height:125px}.product-card .product-info b{font-size:14px}}
[data-theme="dark"] body{background:#141525}[data-theme="dark"] .product-card{background:#292b46;border-color:#41456d}
[data-theme="dark"] .product-card:nth-child(4n+2){background:#4e303d}[data-theme="dark"] .product-card:nth-child(4n+3){background:#393653}[data-theme="dark"] .product-card:nth-child(4n){background:#24474b}
[data-theme="dark"] .quick-item{background:#292b41}[data-theme="dark"] .cart-feedback{background:#524819;color:#fff3bd}

/* Consistent typography, compact page rhythm and accessible in-app messages. */
body{font-size:15px;line-height:1.85;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
h1,h2,h3{font-weight:800;letter-spacing:-.35px}.main-content{max-width:1600px;padding:22px 24px}.page-heading{margin-bottom:18px;gap:14px}.page-heading p{margin-bottom:0}
.panel{padding:20px;margin-bottom:16px}.panel h2{margin-bottom:14px}.two-panels{align-items:start;gap:18px}.metric-grid{gap:14px;margin-bottom:18px}.metric-card{padding:18px 20px;min-height:130px}.stack-form{gap:13px}
.flash{display:flex;align-items:center;gap:12px;padding:14px 18px;border-radius:16px;border:1px solid #b7bade;background:#e8e9f8;color:#181d55;box-shadow:0 4px 14px #292d5c10;margin-bottom:14px}.flash:before{content:'✓';display:grid;place-items:center;flex:0 0 30px;height:30px;border-radius:50%;background:#1c2584;color:#fff;font-weight:800}.flash-error{background:#fff0f2;color:#84243b;border-color:#f2b9c4}.flash-error:before{content:'!';background:#b82e50}
.margo-dialog{width:min(440px,calc(100% - 32px));padding:30px;border:1px solid #d9dae9;border-radius:26px;background:#fffdf6;color:#20223d;box-shadow:0 24px 100px #0f123555;text-align:center;font:inherit;overflow-wrap:anywhere}
.margo-dialog::backdrop{background:#10122c80;backdrop-filter:blur(5px)}.margo-dialog .dialog-icon{height:60px;width:60px;margin:0 auto 14px;display:grid;place-items:center;border-radius:20px;background:linear-gradient(135deg,#c9ccf2,#f9e89b);font-size:30px;color:#1f2569}.margo-dialog h2{font-size:23px;margin:0 0 12px}.margo-dialog p{margin:0 0 24px;font-size:16px;line-height:2}.dialog-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.dialog-actions .btn{min-height:46px;flex:1;white-space:nowrap}.dialog-actions [hidden]{display:none}
@media(max-width:700px){.main-content{padding:16px 12px}.panel{padding:16px}.metric-card{padding:15px;min-height:115px}.two-panels{gap:12px}.margo-dialog{padding:24px 20px}.page-heading{align-items:flex-start}}
[data-theme="dark"] .margo-dialog{background:#1b1d36;color:#edeef9;border-color:#424569}

[data-live-clock],[data-live-date]{font-weight:500;font-size:13px;direction:rtl;unicode-bidi:isolate;white-space:nowrap}
[data-live-clock]{color:#9b3a13;background:#fff0b9;border:1px solid #efd16e;border-radius:12px;padding:4px 8px;display:inline-flex;align-items:center;gap:5px;font-weight:600}
[data-live-clock] span{font-size:11px}[data-live-date]{color:#151b5d}
.topbar{height:auto;min-height:82px;gap:14px}.top-actions{flex-wrap:wrap}.today-pill{border:0;background:#e2e4f6;padding:7px 12px}
@media(max-width:700px){[data-live-clock],[data-live-date]{font-size:12px}.topbar{padding:12px;flex-wrap:wrap}.top-actions{gap:7px}.today-pill{padding:5px 8px}}
[data-theme="dark"] [data-live-clock]{background:#574817;color:#ffeaa0}[data-theme="dark"] [data-live-date]{color:#b4b9ef}

/* Compact cards across phone, tablet and laptop. */
.product-grid{grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:10px}
.product-card{border-radius:16px;box-shadow:0 3px 12px #3134510d}
.product-card .food-photo{height:104px}.product-card .product-info{padding:9px 10px 7px;gap:3px}.product-card .product-info b{font-size:14px;line-height:1.6}.product-card .product-info span{font-size:12px}
.product-card .product-tile{padding-bottom:43px}.product-card .plus-chip{top:auto!important;bottom:7px;left:8px;min-height:32px;padding:3px 10px;font-size:12px}
.tile-quantity{bottom:7px;left:7px;right:7px;min-height:36px}.tile-quantity button{height:36px;width:42px}
.pos-products{min-height:0}.public-layout{max-width:1480px;gap:16px}.public-intro{margin-top:10px;margin-bottom:14px}.public-intro h2{font-size:25px;margin-bottom:3px}.public-intro p{margin-bottom:0}
.main-content{padding:18px 20px}.panel{padding:17px;margin-bottom:14px}.metric-card{min-height:112px;padding:15px 18px}.quick-item{padding:13px}.section-top{margin-bottom:13px}.topbar{min-height:76px}.side-links a{padding:10px 13px}
.today-pill{display:inline-flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:center}
@media(min-width:700px) and (max-width:1100px){.product-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}}
@media(max-width:600px){.main-content{padding:12px 10px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.product-card .food-photo{height:98px}.public-layout{padding-left:10px;padding-right:10px}.panel{padding:14px}.metric-card{min-height:100px}.top-actions{width:100%;justify-content:center}.topbar .site-identity{display:none}.today-pill{gap:5px;padding:4px}.top-actions [data-live-date]{font-size:12px}.top-actions [data-live-clock]{font-size:13px;padding:4px 6px}.top-actions [data-live-clock] span{font-size:11px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}

.phone-input{display:flex!important;align-items:center;direction:ltr;border:1px solid var(--line);border-radius:11px;background:#fff;overflow:hidden;margin-top:5px}.phone-prefix{padding:9px 12px;background:#e9eaf4;color:#363854;border-right:1px solid #d8d9e5;font-weight:600;font-size:14px}.phone-input input{min-width:0!important;width:100%;border:0!important;border-radius:0!important;margin:0!important;direction:ltr;text-align:left;padding:10px!important}.customer-phone-label small{display:block;font-size:10px;font-weight:400;line-height:1.7;margin-top:5px}.receipt-actions{display:grid;gap:8px;margin-top:14px}.btn.whatsapp{background:#e0e2f4;border:1px solid #a9add6;color:#1a2169}.margo-monogram{font-family:Georgia,serif;font-size:27px;line-height:1;color:#ffe5a5}.brand-mark:has(.margo-monogram){background:#242852;min-width:46px;min-height:46px;display:grid;place-items:center}

/* Midnight navy, warm coral and cream. Management stays above the fold. */
:root{--ink:#292c46;--muted:#77758a;--line:#e7e1e7;--green:#ad403d;--green2:#b74642;--bg:#fff8f2;--page:#fff8f2;--shadow:0 8px 26px #2925480b}
body{background:var(--page)}.btn.primary,.product-card .plus-chip,.tile-quantity button{background:#ad403d;border-color:#ad403d;color:#fff}.btn.primary:hover:not(:disabled){background:#913330}.btn.outline,.text-link{color:#a13b3b}.btn.dark{background:#303755;border-color:#303755}.category-button.active,.category-button:hover{background:#343d6a;border-color:#343d6a;color:#fff}.mobile-cart-jump{background:#343d6a}.tiny-mark{color:#bd514a}.today-pill{background:#eeedfa}.brand-mark:has(.margo-monogram){background:#41496e}.phone-prefix{background:#f3eff9;color:#504166}
.sidebar{height:100vh;height:100dvh;min-height:0;overflow:hidden;background:linear-gradient(170deg,#252c4a,#33365a);padding:14px 12px;isolation:isolate}
.side-brand{flex:0 0 auto;padding:2px 5px 15px;min-height:66px}.side-brand b{font-size:21px}.side-brand b em{color:#ffb2a0}.side-brand small,.user-id small{color:#c6c7dd}.brand-mark{padding:8px;background:#41496e}.sidebar-scroll{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#9c90c1 #303651;-webkit-overflow-scrolling:touch;touch-action:pan-y;padding:1px 2px 8px}
.side-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:0 0 9px}.side-shortcuts a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:72px;padding:9px 2px;border-radius:12px;background:#ffffff0e;border:1px solid #ffffff20;color:#fff4ed;font-size:11px;font-weight:600;text-align:center}.side-shortcuts a span{display:grid;place-items:center;background:#ffd3bf;color:#3a3553;border-radius:9px;height:29px;width:31px;font-size:20px}.side-shortcuts a:nth-child(2) span{background:#ded4ff}.side-shortcuts a:nth-child(3) span{background:#ffe9af}.side-shortcuts a:hover,.side-shortcuts a.active{background:#b64b44;border-color:#e99b85}
.side-label{padding:8px 9px 5px;font-size:11px;color:#b9b8d0}.side-links{gap:3px}.side-links a{padding:9px 11px;min-height:40px;font-size:13px;color:#e4e4f2}.side-links a:hover,.side-links a.active{background:#ffffff18;color:#fff}.side-bottom{flex:0 0 auto;margin-top:8px;padding:12px 2px 0;border-color:#ffffff25;min-height:57px}.user-avatar{background:#ffd3bf;color:#42344a}.user-id b{font-size:13px}.sidebar-close{display:none}.sidebar-backdrop{position:fixed;inset:0;background:#1c20356b;backdrop-filter:blur(3px);border:0;z-index:45;padding:0}.sidebar-backdrop[hidden]{display:none!important}
@media(max-width:960px){.sidebar{z-index:60;width:min(310px,86vw);visibility:hidden;transition:transform .2s ease,visibility .2s}.sidebar.open{visibility:visible}.side-brand{padding-left:32px}.sidebar-close{display:grid;place-items:center;position:absolute;left:12px;top:17px;border:1px solid #ffffff3a;border-radius:10px;width:36px;height:36px;background:#ffffff15;color:#fff;font-size:25px;z-index:2}.side-shortcuts a{min-height:68px;font-size:12px}.menu-open,.menu-open body{overflow:hidden;overscroll-behavior:none}.mobile-menu{min-height:42px;min-width:44px;color:#343d6a}.sidebar-scroll{scroll-padding-bottom:12px}}
@media(max-height:620px){.side-brand{min-height:55px;padding-bottom:10px}.side-shortcuts a{min-height:58px;padding:5px 2px;gap:3px}.side-shortcuts a span{width:27px;height:25px;font-size:18px}.side-links a{min-height:36px;padding:6px 9px}.side-label{padding-top:6px}.side-bottom{min-height:50px;padding-top:8px}}
[data-theme="dark"]{--ink:#efedf8;--muted:#bcb8ce;--bg:#202337;--page:#202337;--line:#48465d;--green:#b94c46;--green2:#ffc0ae}[data-theme="dark"] body{background:#202337}[data-theme="dark"] .product-card{background:#36354e}[data-theme="dark"] .product-card:nth-child(4n+2){background:#50323e}[data-theme="dark"] .product-card:nth-child(4n+3){background:#3f3555}[data-theme="dark"] .product-card:nth-child(4n){background:#303d53}[data-theme="dark"] .today-pill{background:#34334f}[data-theme="dark"] .quick-item{background:#34354f}
@media print{.sidebar-backdrop{display:none!important}}

/* Account, explicit sign-out and MARGO credit remain outside the scrolling area. */
.side-bottom{display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:10px 0 0;min-height:0}.sidebar-account{display:flex;align-items:center;gap:8px;min-width:0}.sidebar-account .user-avatar{width:32px;height:32px;min-width:32px;font-size:14px}.sidebar-account .user-id{overflow:hidden}.sidebar-account .user-id b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.sidebar-account .user-id small{font-size:10px}.sidebar-account form{margin:0;flex:0 0 auto}.logout-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:42px;padding:7px 10px;border:1px solid #e6a49265;border-radius:11px;background:#ffccb31c;color:#ffe0d6;font-size:12px;font-weight:700;cursor:pointer}.logout-button span{font-size:18px}.logout-button:hover{background:#ad403d;color:white}.sidebar-credit{display:flex;align-items:center;justify-content:space-between;gap:6px;border-top:1px solid #ffffff15;padding-top:8px;color:#ffd3bf;line-height:1.6}.sidebar-credit b{font-size:11px;white-space:nowrap}.sidebar-credit small{font-size:9px;color:#bbb9d0}.sidebar-credit:hover{color:#fff}.sidebar-credit:focus-visible,.logout-button:focus-visible{outline:2px solid #ffd3bf;outline-offset:2px}
@media(max-height:620px){.side-bottom{gap:6px;padding-top:7px}.sidebar-credit{padding-top:5px}.sidebar-account .user-avatar{height:30px;width:30px;min-width:30px}}

/* Two bounded, independent scrolling regions for food selection and the cart. */
.split-workspace{height:var(--workspace-height,650px);min-height:390px;align-items:stretch!important;gap:14px!important;grid-template-columns:minmax(0,1fr) 300px!important;margin-bottom:16px}
.split-workspace .pos-products,.split-workspace .public-products{display:flex;flex-direction:column;min-height:0;height:100%;overflow:hidden;margin:0}
.split-workspace .toolbar,.split-workspace .category-tabs,.split-workspace #product-search,.split-workspace .cart-feedback,.split-workspace #product-alert{flex:0 0 auto}
.split-workspace .product-grid{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;align-content:start;padding:2px 3px 12px;scrollbar-width:thin;scrollbar-color:#b2a4be #f3edf4;touch-action:pan-y}
.split-workspace .cart-panel{position:static!important;display:flex;flex-direction:column;gap:0;min-height:0;height:100%;max-height:none;margin:0;overflow:hidden;padding:15px}
.split-workspace .cart-panel>.section-top{flex:0 0 auto;margin-bottom:10px}.split-workspace .cart-panel h2{font-size:17px}
.split-workspace .cart-list{display:block;flex:1 1 auto;min-height:75px;max-height:none!important;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:0 2px 8px;scrollbar-width:thin;scrollbar-color:#b2a4be #f3edf4;touch-action:pan-y}
.split-workspace .cart-item+.cart-item{margin-top:8px}.split-workspace .cart-form{flex:0 0 auto;min-height:0;max-height:calc(100% - 120px);overflow-y:auto;overscroll-behavior:contain;border-top:1px solid var(--line);padding-top:8px}.split-workspace .cart-form .hint{font-size:10px;margin-top:7px}.split-workspace .cart-form .btn.big{padding:10px;font-size:15px;min-height:44px}.split-workspace .total-line{padding:9px 0;font-size:14px}.split-workspace .total-line strong{font-size:18px}
.customer-details{border:1px solid #e6dbe7;border-radius:11px;background:#fffaf5;padding:8px 10px;margin-bottom:7px}.customer-details summary{cursor:pointer;font-size:12px;font-weight:600;min-height:28px;line-height:2}.customer-details summary span{font-size:10px;font-weight:400;color:#837689;margin-right:4px}.customer-details[open] summary{margin-bottom:10px}.customer-details .cart-details{display:grid!important;grid-template-columns:1fr!important;gap:10px}.customer-details .cart-details input{padding:8px 10px;min-height:40px}.workspace-tabs{display:none}.menu-filter-back{border:1px solid #d6c5d7;border-radius:10px;padding:6px 10px;color:#9e424a;background:#fff7f5;font-size:11px;white-space:nowrap;min-height:36px}
@media(min-width:700px) and (max-width:1150px){.guest-menu .split-workspace{grid-template-columns:minmax(0,1fr) 280px!important}.guest-menu .split-workspace .product-grid{grid-template-columns:1fr!important}.split-workspace .category-tabs{flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding-bottom:4px}.split-workspace .category-button{white-space:nowrap}.split-workspace .toolbar{display:block}.split-workspace .search-field{margin-top:7px;width:100%}}
@media(max-width:699px){.split-workspace,.guest-menu .split-workspace{display:grid;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:44px minmax(0,1fr);gap:10px!important;min-height:390px}.workspace-tabs{display:flex;gap:8px;grid-column:1/-1}.workspace-tabs button{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #d6ccdf;border-radius:12px;background:#fffaf5;color:#61536c;min-height:44px;font:inherit;font-size:13px;cursor:pointer}.workspace-tabs button[aria-pressed=true]{background:#343d6a;border-color:#343d6a;color:#fff}.workspace-count{border-radius:20px;background:#ffffff30;padding:0 7px;font-size:12px}.split-workspace[data-workspace=products] .cart-panel{display:none!important}.split-workspace[data-workspace=cart] .pos-products,.split-workspace[data-workspace=cart] .public-products{display:none!important}.split-workspace .cart-panel{padding:14px}.split-workspace .cart-list{min-height:80px}.guest-menu .split-workspace{padding-bottom:0}.split-workspace .cart-form .hint{font-size:10px}.split-workspace .cart-feedback{font-size:11px;padding:7px 10px;margin:6px 0}.split-workspace .pos-products{padding:12px}.split-workspace .toolbar{margin-bottom:9px}}
[data-theme="dark"] .customer-details{background:#36324c;border-color:#62516e}[data-theme="dark"] .workspace-tabs button{background:#35314c;color:#f4eafb}

.top-navigation{display:flex;align-items:center;gap:10px;min-width:0}.back-link{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;min-height:34px;border:1px solid #e3d7e5;border-radius:9px;color:#9b4146;background:#fff8f5;font-size:12px;white-space:nowrap}.back-link:hover{background:#f9e8e6}.top-navigation .site-identity{min-width:0}.top-navigation .site-identity strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:230px}
@media(max-width:600px){.top-navigation{gap:7px}.topbar{gap:9px}.back-link{font-size:11px;min-height:32px;padding:4px 8px}}

.split-workspace .product-grid{grid-auto-rows:max-content}.split-workspace .product-card .product-tile{height:auto}.guest-menu .split-workspace .product-card .product-tile{height:154px}@media(max-width:600px){.guest-menu .split-workspace .product-card .product-tile{height:136px}}
