:root{--green:#123b32;--paper:#f1f4ef;--line:#dce4dd;--muted:#6e7e78;--amber:#efad51}*{box-sizing:border-box}body{margin:0;background:var(--paper);font-family:'DM Sans',sans-serif;color:#17211e}button,input{font:inherit}.login{min-height:100vh;display:grid;place-items:center;padding:20px;background:linear-gradient(135deg,#0f342c,#1f6453)}.login form{width:min(390px,100%);background:#fff;border-radius:22px;padding:30px}.login h1{font:700 34px 'Playfair Display',serif;margin:8px 0}.login p{color:var(--muted)}.login input,.login button{width:100%;padding:14px;border-radius:11px;margin-top:10px}.login input{border:1px solid var(--line)}button{border:0;cursor:pointer;font-weight:700}.primary{background:var(--green);color:#fff}.appbar{position:sticky;top:0;z-index:3;background:var(--green);color:white;padding:15px 18px;display:flex;justify-content:space-between;align-items:center}.appbar h1{font-size:19px;margin:0}.appbar small{color:#bad3ca}.appbar button{background:#ffffff18;color:white;padding:9px;border-radius:9px}.main{max-width:820px;margin:auto;padding:18px}.tabs{display:grid;grid-template-columns:1fr 1fr;background:#fff;padding:5px;border-radius:13px;margin-bottom:15px}.tabs button{padding:11px;background:transparent;border-radius:9px}.tabs button.active{background:var(--green);color:#fff}.notice{background:#fff4df;border:1px solid #f1d5a6;border-radius:15px;padding:15px;margin-bottom:10px;display:flex;justify-content:space-between;align-items:center}.notice strong{font-size:22px}.notice button{background:#9c631a;color:white;padding:10px;border-radius:9px}.card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:16px;margin-bottom:12px;box-shadow:0 8px 25px #17342b10}.card-head{display:flex;justify-content:space-between;align-items:start}.table-no{font-size:28px;font-weight:700;color:var(--green)}.code{background:#e5efe9;color:var(--green);padding:5px 8px;border-radius:12px;font-size:11px;font-weight:700}.card p{color:var(--muted);line-height:1.5}.total{font-weight:700}.actions{display:flex;gap:8px}.actions button{flex:1;padding:11px;border-radius:10px;background:#e5efe9;color:var(--green)}.actions .next{background:var(--green);color:white}.empty{text-align:center;color:var(--muted);padding:50px 10px}#toast{position:fixed;bottom:18px;left:50%;transform:translate(-50%,20px);opacity:0;background:#17211e;color:white;padding:12px 16px;border-radius:10px;transition:.2s}#toast.show{opacity:1;transform:translate(-50%,0)}

.table-map{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.table-tile{position:relative;background:#fff;border:1px solid var(--line);border-radius:15px;padding:17px;text-align:center}.table-tile.occupied{background:#fff4df;border-color:#efad51}.table-tile strong{display:block;font-size:25px;color:var(--green)}.call-dot{position:absolute;right:7px;top:7px;background:#b6383d;color:#fff;border-radius:20px;padding:4px 7px;font-size:9px}.elapsed{font-size:11px;color:#9c631a;font-weight:700}.card.urgent{border-color:#b6383d;box-shadow:0 0 0 2px #b6383d22}.shift-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:13px}.shift-summary div{background:#fff;border-radius:12px;padding:10px;text-align:center}.shift-summary strong{display:block;font-size:20px}.shift-summary small{color:var(--muted);font-size:9px}@media(max-width:460px){.table-map{grid-template-columns:repeat(2,1fr)}}

.tabs.three{grid-template-columns:repeat(3,1fr)}

.live-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#66e3a5;box-shadow:0 0 0 0 #66e3a588;animation:pulse 1.5s infinite}.app-actions{display:flex;gap:6px}.app-actions button:first-child{background:#efad51;color:#2d210e}@keyframes pulse{70%{box-shadow:0 0 0 7px #66e3a500}}@media(max-width:520px){.app-actions button{font-size:11px;padding:8px 7px}.appbar h1{font-size:16px}}

body{background:linear-gradient(180deg,#edf3ee,#f8f9f5)}.appbar{background:linear-gradient(120deg,#0d332a,#1c5c4c);box-shadow:0 8px 25px #08251e30}.waiter-time{font-size:19px;font-weight:700}.waiter-date{font-size:10px;color:#cde0d8}.shift-summary div{border:1px solid var(--line);box-shadow:0 7px 20px #17342b0c}.tabs{position:sticky;top:76px;z-index:2;box-shadow:0 8px 25px #17342b0d}.filter-row{display:flex;gap:7px;overflow:auto;margin:0 0 12px}.filter-row button{white-space:nowrap;background:#fff;border:1px solid var(--line);border-radius:20px;padding:8px 11px;color:var(--green)}.filter-row button.active{background:var(--green);color:#fff}.card{transition:.2s}.card:active{transform:scale(.99)}.table-tile{box-shadow:0 8px 20px #17342b0c}.table-tile.occupied{background:linear-gradient(145deg,#fff8ea,#fff0cf)}@media(max-width:520px){.appbar{padding:12px}.main{padding:12px}.tabs{top:67px}.shift-summary div{padding:8px}.shift-summary strong{font-size:18px}}

/* RestoFlow Demo — modern luxury waiter theme */
:root{--green:#211e1a;--paper:#f2eee8;--line:#dbd0c2;--muted:#756d64;--amber:#b99155;--red:#8a2d3b}
body{background:linear-gradient(160deg,#f5f1eb,#ede6dc);color:#201d19}
.login{background:radial-gradient(circle at 70% 15%,#b9915538,transparent 32%),linear-gradient(135deg,#171512,#302822 65%,#5c222c)}.login form{background:#fffaf3;border:1px solid #c6a069;border-radius:18px;box-shadow:0 28px 75px #0005}.login input{background:#fffdf9;border-color:#d4c4ad}.primary{background:linear-gradient(135deg,#26221e,#46392f);border:1px solid #b99155;color:#f8ead3}.primary:hover{background:#682833}
.appbar{background:linear-gradient(100deg,#181613,#2b2520 70%,#4c2027);border-bottom:1px solid #b99155;box-shadow:0 9px 28px #1b130d2b}.appbar h1{font-family:'Playfair Display',serif;color:#f7ead5;letter-spacing:.02em}.appbar small{color:#c9b99f}.appbar button{background:#332d27;color:#e4cda7;border:1px solid #745f42;border-radius:8px}
.tabs{background:#fffdf9;border:1px solid #d9cebf;border-radius:11px;box-shadow:0 9px 28px #251b1210}.tabs button{border-radius:7px;color:#665d54}.tabs button.active{background:#211e1a;color:#ead6b5;box-shadow:inset 0 0 0 1px #b99155}.notice{background:#f4e8d2;border-color:#d7b97e;border-radius:12px;color:#3d3024}.notice button{background:#6e2934;color:#fff2df;border:1px solid #b99155;border-radius:7px}
.card{background:#fffdf9;border-color:#d9cebf;border-radius:13px;box-shadow:0 12px 34px rgba(39,28,19,.09);border-left:3px solid #b99155}.card-head{border-bottom:1px solid #eee5d9;padding-bottom:10px}.table-no{font-family:'Playfair Display',serif;color:#642632}.code{background:#eee4d7;color:#5d4a39;border:1px solid #ddc8aa}.card p{color:#70675f}.actions button{background:#eee5d9;color:#4d4034;border:1px solid #ddcbb2;border-radius:8px}.actions .next{background:linear-gradient(135deg,#26221e,#493a30);border-color:#b99155;color:#f6e7cf}.actions .next:hover{background:#6d2934}.shift-summary,.table-tile{background:#fffdf9!important;border-color:#d8cbb9!important;box-shadow:0 10px 28px #271d1512!important}.table-tile{border-radius:12px!important}#toast{background:#211d19;border:1px solid #b99155;color:#fff4e3}
@media(max-width:600px){.main{padding:14px 12px}.card{border-radius:11px}.appbar{padding-inline:14px}}

/* TATAR GROUP luxury waiter console v2 */
.tatar-waiter{background:radial-gradient(circle at 90% 0,#b991551b,transparent 24%),linear-gradient(155deg,#f6f1e9,#ebe3d8)}.tatar-waiter .main{max-width:1040px;padding:20px 18px 70px}.tatar-waiter .appbar{min-height:82px;padding:13px max(18px,calc((100vw - 1040px)/2));background:radial-gradient(circle at 80% 0,#b9915532,transparent 28%),linear-gradient(105deg,#171512,#2d2620 70%,#54212a);border-bottom:1px solid #c0985b}.tatar-waiter .appbar h1{font-size:22px}.tatar-waiter .appbar small{color:#d5c5ae}.tatar-waiter .powered{border-color:#b991556b}
.waiter-command{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:14px;padding:22px;border:1px solid #b991556b;border-radius:16px;background:radial-gradient(circle at 88% 0,#b9915535,transparent 28%),linear-gradient(125deg,#191714,#332a23 72%,#57222b);color:#fff;box-shadow:0 22px 48px #20160e24}.waiter-command>div>small{color:#d9b77f;font-weight:700;letter-spacing:.13em}.waiter-command h2{font:700 28px 'Playfair Display',serif;margin:6px 0}.waiter-command p{margin:0;color:#cfc2b3;font-size:12px}.waiter-quick{display:grid;grid-template-columns:repeat(4,82px);gap:7px}.waiter-quick button{min-height:72px;padding:8px;border:1px solid #b9915555;border-radius:10px;background:#ffffff0d;color:#fff}.waiter-quick button:active{transform:scale(.97)}.waiter-quick b{display:block;color:#edcf9d;font-size:20px}.waiter-quick span{display:block;margin-top:4px;color:#d2c4b1;font-size:9px}.waiter-quick .danger{background:#792b39;border-color:#d08a92}.waiter-quick .danger b{color:#fff}
.tatar-waiter .shift-summary{grid-template-columns:repeat(4,1fr);gap:9px}.tatar-waiter .shift-summary div{position:relative;padding:14px;text-align:left;border:1px solid #d9ccbb;border-top:2px solid #b99155;border-radius:11px;background:#fffdf9;box-shadow:0 10px 28px #2b211713}.tatar-waiter .shift-summary span{color:#8a7a69;font-size:8px;font-weight:700;letter-spacing:.1em}.tatar-waiter .shift-summary strong{font:700 27px 'Playfair Display',serif;color:#312820}.tatar-waiter .shift-summary small{display:block;color:#766d63}.tatar-waiter .shift-summary .metric-call{border-top-color:#8a2d3b}.tatar-waiter .shift-summary .metric-call strong{color:#8a2d3b}.service-status{display:flex;align-items:center;gap:12px;margin:-5px 0 13px;padding:7px 10px;border:1px solid #ded2c3;border-radius:8px;background:#fffaf3;color:#665c52;font-size:9px}.service-status span{display:flex;align-items:center;gap:4px}.service-status i{width:6px;height:6px;border-radius:50%;background:#b99155}.service-status i.prep{background:#7c5a31}.service-status i.ready{background:#6d2934}.service-status em{margin-left:auto;color:#8b7c6b;font-style:normal}.tatar-waiter .tabs{top:82px;border-color:#cdb890}.tatar-waiter .filter-row button.active{border-color:#b99155}.tatar-waiter .card{border-left-width:4px}.tatar-waiter .card.urgent{border-color:#8a2d3b;box-shadow:0 0 0 2px #8a2d3b1c,0 14px 36px #2e1d1814}.tatar-waiter .table-map{grid-template-columns:repeat(4,1fr)}
@media(max-width:760px){.waiter-command{display:block}.waiter-quick{grid-template-columns:repeat(4,1fr);margin-top:17px}.tatar-waiter .table-map{grid-template-columns:repeat(3,1fr)}}@media(max-width:520px){.tatar-waiter .appbar{min-height:74px}.waiter-command{padding:17px}.waiter-command h2{font-size:24px}.waiter-quick{grid-template-columns:repeat(2,1fr)}.tatar-waiter .shift-summary{grid-template-columns:1fr 1fr}.tatar-waiter .tabs{top:74px}.service-status{overflow:auto}.service-status em{display:none}.tatar-waiter .table-map{grid-template-columns:repeat(2,1fr)}}

.waiter-order-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.waiter-order-toolbar .filter-row{margin:0}.manual-order-button,.waiter-collect,.waiter-pos-submit{border:1px solid #b99155;background:linear-gradient(135deg,#211d19,#4a3a2f);color:#fff5e6;border-radius:10px;padding:11px 15px;font-weight:800;cursor:pointer}.waiter-order-actions{display:grid!important;grid-template-columns:1fr auto;gap:9px}.waiter-status-select{min-height:43px;border:1px solid #cdbb9f;border-radius:9px;background:#fffdf9;color:#241f1a;padding:0 10px;font-weight:700}.waiter-collect{background:#6e2634}.waiter-modal-bg{position:fixed;inset:0;z-index:100;background:#15110dc7;display:grid;place-items:center;padding:16px}.waiter-modal{width:min(720px,100%);max-height:92vh;overflow:auto;background:#fffaf3;color:#211c18;border:1px solid #c7a26a;border-radius:18px;box-shadow:0 30px 90px #0008;padding:20px}.waiter-modal-head{display:flex;align-items:start;justify-content:space-between;border-bottom:1px solid #e4d7c5;padding-bottom:14px;margin-bottom:16px}.waiter-modal-head small{color:#7b603e;font-weight:800;letter-spacing:.12em}.waiter-modal-head h2{margin:4px 0 0;color:#211c18}.waiter-modal-head>button{border:0;background:#eee2d2;color:#602936;border-radius:50%;width:36px;height:36px;font-size:24px}.waiter-pos-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.waiter-pos-fields label{display:grid;gap:6px;color:#55483b;font-weight:700}.waiter-pos-fields input,.waiter-pos-fields select,.waiter-menu-search{width:100%;box-sizing:border-box;border:1px solid #d2c0aa;background:#fff;color:#211c18;border-radius:9px;padding:11px;font:inherit}.waiter-menu-search{margin:14px 0}.waiter-menu-item{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 2px;border-bottom:1px solid #eadfd1}.waiter-menu-item>div:first-child{display:flex;align-items:center;gap:10px}.waiter-menu-item img{width:52px;height:52px;object-fit:cover;border-radius:9px}.waiter-menu-item span{display:grid;color:#211c18}.waiter-menu-item small{color:#716457}.waiter-qty{display:flex;align-items:center;gap:9px}.waiter-qty button{width:35px;height:35px;border:1px solid #c8b495;background:#f2e9dc;color:#2d251e;border-radius:9px;font-size:20px}.waiter-pos-total,.waiter-bill-total{display:flex;justify-content:space-between;align-items:center;margin:16px 0;padding:14px;background:#f0e6d8;color:#2b241d;border-radius:10px}.waiter-pos-total strong,.waiter-bill-total strong{font-size:22px}.waiter-pos-submit{width:100%;font-size:15px}.manual-quick{border-color:#b99155!important}.manual-quick b{color:#b99155!important}@media(max-width:650px){.waiter-order-toolbar{align-items:stretch;flex-direction:column}.manual-order-button{width:100%}.waiter-pos-fields{grid-template-columns:1fr}.waiter-order-actions{grid-template-columns:1fr}.waiter-modal{padding:15px}}

/* Readability guardrails for the waiter application. */
.card,.notice,.table-tile,.shift-summary,.waiter-command{color:#211c18}.waiter-command h2{color:#fff!important;text-shadow:0 1px 2px #0006}.card p,.notice small,.table-tile small{color:#655a50}.filter-row button{color:#43372d}.filter-row button.active{color:#fff7ea}.appbar button{color:#f6ead8}.waiter-command button{color:#2d251e}.waiter-command button.danger{color:#7f2634}.empty{color:#6c6259;background:#fffaf3}

.waiter-order-actions{grid-template-columns:minmax(150px,1fr) repeat(3,auto)!important}.waiter-edit,.waiter-delete{border:1px solid #cbb89d;border-radius:9px;padding:9px 12px;font-weight:800;background:#fffaf3;color:#33291f}.waiter-delete{background:#f3e1df;color:#812936;border-color:#dfb8b7}.waiter-void-info{color:#655a50;line-height:1.5}.waiter-pos-fields.one{grid-template-columns:1fr}.waiter-delete-submit{background:#762936}@media(max-width:720px){.waiter-order-actions{grid-template-columns:1fr 1fr!important}.waiter-status-select,.waiter-collect{grid-column:span 2}}

.waiter-alert-center{position:fixed;z-index:120;right:18px;top:18px;width:min(390px,calc(100vw - 28px));display:grid;gap:10px;pointer-events:none}.waiter-live-alert{pointer-events:auto;display:grid;grid-template-columns:46px 1fr 30px;gap:12px;align-items:start;padding:16px;border:1px solid #c59c5e;border-left:5px solid #b99155;border-radius:14px;background:#fffdf9;color:#211c18;box-shadow:0 22px 55px #120b0740;animation:waiterAlertIn .28s ease-out}.waiter-live-alert.service{background:linear-gradient(120deg,#fff6ed,#f7dfda);border-color:#a63c48;border-left-color:#8a2d3b}.waiter-live-alert.success{border-left-color:#168552}.waiter-alert-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:#241f1a;color:#e8c68e;font-size:20px;font-weight:800}.waiter-live-alert.service .waiter-alert-icon{background:#8a2d3b;color:#fff}.waiter-live-alert small{display:block;color:#8a2d3b;font-size:9px;font-weight:800;letter-spacing:.13em}.waiter-live-alert strong{display:block;margin:2px 0 3px;font:700 18px 'Playfair Display',serif}.waiter-live-alert p{margin:0;color:#55493f;font-size:13px;line-height:1.4}.waiter-live-alert time{display:block;margin-top:7px;color:#8c7a68;font-size:10px}.waiter-live-alert button{width:28px;height:28px;border:0;border-radius:50%;background:#eee5d8;color:#392f27;font-size:18px}.app-actions button.notice-enabled{background:#176044!important;color:#fff!important;border-color:#58b98d!important}.app-actions button.notice-blocked{background:#7d2e3a!important;color:#fff!important}.waiter-alerting .appbar{box-shadow:0 0 0 4px #b99155,0 14px 40px #40161f55!important;animation:waiterHeaderAlarm 1s ease 4}@keyframes waiterAlertIn{from{opacity:0;transform:translateX(24px) scale(.97)}to{opacity:1;transform:none}}@keyframes waiterHeaderAlarm{50%{box-shadow:0 0 0 7px #8a2d3b,0 14px 45px #40161f77}}@media(max-width:700px){.waiter-alert-center{top:10px;right:10px}.waiter-live-alert{grid-template-columns:40px 1fr 28px;padding:13px}.waiter-alert-icon{width:36px;height:36px}.waiter-live-alert strong{font-size:16px}}

.waiter-notice-bg{position:fixed;inset:0;z-index:130;background:#100d0abb;display:grid;place-items:center;padding:18px}.waiter-notice-card{width:min(470px,100%);background:#fffdf8;border-radius:21px;padding:23px;color:#211e1a;box-shadow:0 30px 90px #0005}.waiter-notice-card header{display:flex;justify-content:space-between;border-bottom:1px solid #e5dacb;padding-bottom:14px}.waiter-notice-card h2{margin:4px 0;font-family:'Playfair Display',serif}.waiter-notice-card header button{width:35px;height:35px;border-radius:50%;font-size:21px}.waiter-notice-card>label{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:14px 0;border-bottom:1px solid #eee5da}.waiter-notice-card label span{display:grid;gap:3px}.waiter-notice-card label small{color:#756b60}.waiter-notice-card input{width:22px;height:22px;accent-color:#7b3140}.waiter-notice-card>div{display:flex;justify-content:flex-end;gap:8px;margin-top:17px}.waiter-notice-card>div button{padding:10px 13px;border-radius:10px;background:#eee7dd}.waiter-notice-card>div .primary{background:#28241f;color:white}.waiter-notice-settings{min-width:42px!important;padding:0!important}.waiter-connection-state{position:fixed;left:14px;bottom:14px;z-index:80;padding:8px 12px;border-radius:25px;background:#e8f5ed;color:#206a42;font-size:11px;font-weight:800;box-shadow:0 8px 25px #0002}.waiter-connection-state i{display:inline-block;width:8px;height:8px;background:#31a566;border-radius:50%;margin-right:5px}.waiter-connection-state.offline{background:#ffe8e6;color:#9e3039}.waiter-connection-state.offline i{background:#c63d48}.order-version{display:block;text-align:right;color:#8b7f71;margin-top:8px;font-size:9px}@media(max-width:600px){.app-actions{gap:5px}.app-actions button{font-size:11px}.waiter-connection-state{bottom:8px;left:8px}}

/* Shared site theme. Light mode keeps the established luxury appearance unchanged. */
html[data-site-theme="dark"]{--ink:#f6efe5;--muted:#b8aa99;--paper:#17130f;--white:#251f1a;--line:#493c30;--green:#d6ae6d;--green2:#ebc780;--mint:#342b23;--amber:#d7a44f;--red:#ef8990;--shadow:0 18px 48px #0007}html[data-site-theme="dark"] body{background:#17130f!important;color:#f6efe5!important}html[data-site-theme="dark"] input,html[data-site-theme="dark"] textarea,html[data-site-theme="dark"] select{color:#f7efe3!important;background:#29221c!important;border-color:#554638!important;color-scheme:dark}html[data-site-theme="dark"] input::placeholder,html[data-site-theme="dark"] textarea::placeholder{color:#9f9283}
html[data-site-theme="dark"][data-site-surface="customer"] .topbar{background:#17130ff2!important;border-color:#493c30!important}html[data-site-theme="dark"][data-site-surface="customer"] .main,html[data-site-theme="dark"][data-site-surface="customer"] .category-main{background:transparent!important}html[data-site-theme="dark"][data-site-surface="customer"] .dish,html[data-site-theme="dark"][data-site-surface="customer"] .tracking-card,html[data-site-theme="dark"][data-site-surface="customer"] .filter-panel,html[data-site-theme="dark"][data-site-surface="customer"] .category-tile,html[data-site-theme="dark"][data-site-surface="customer"] .service-strip,html[data-site-theme="dark"][data-site-surface="customer"] .drawer,html[data-site-theme="dark"][data-site-surface="customer"] .feedback-box{background:#251f1a!important;color:#f6efe5!important;border-color:#493c30!important}html[data-site-theme="dark"][data-site-surface="customer"] .description,html[data-site-theme="dark"][data-site-surface="customer"] .energy,html[data-site-theme="dark"][data-site-surface="customer"] .menu-head span,html[data-site-theme="dark"][data-site-surface="customer"] .section-title span,html[data-site-theme="dark"][data-site-surface="customer"] .category-tile small{color:#b8aa99!important}html[data-site-theme="dark"][data-site-surface="customer"] .circle-btn,html[data-site-theme="dark"][data-site-surface="customer"] .filter-btn,html[data-site-theme="dark"][data-site-surface="customer"] .service-actions button,html[data-site-theme="dark"][data-site-surface="customer"] .tracking-actions button{background:#342b23!important;color:#efd19a!important;border-color:#5b4937!important}html[data-site-theme="dark"][data-site-surface="customer"] .details{border-color:#493c30!important}html[data-site-theme="dark"][data-site-surface="customer"] .details summary,html[data-site-theme="dark"][data-site-surface="customer"] .price{color:#ebc780!important}
html[data-site-theme="dark"][data-site-surface="admin"] .content{background:#17130f!important}html[data-site-theme="dark"][data-site-surface="admin"] .panel,html[data-site-theme="dark"][data-site-surface="admin"] .stat,html[data-site-theme="dark"][data-site-surface="admin"] .bill-card,html[data-site-theme="dark"][data-site-surface="admin"] .kitchen-col,html[data-site-theme="dark"][data-site-surface="admin"] .kitchen-ticket,html[data-site-theme="dark"][data-site-surface="admin"] .performance-card,html[data-site-theme="dark"][data-site-surface="admin"] .analytics-kpis>div,html[data-site-theme="dark"][data-site-surface="admin"] .modal,html[data-site-theme="dark"][data-site-surface="admin"] .notice-settings-card{background:#251f1a!important;color:#f6efe5!important;border-color:#493c30!important}html[data-site-theme="dark"][data-site-surface="admin"] .table th,html[data-site-theme="dark"][data-site-surface="admin"] .table td{border-color:#493c30!important}html[data-site-theme="dark"][data-site-surface="admin"] .commandbar,html[data-site-theme="dark"][data-site-surface="admin"] .order-tools,html[data-site-theme="dark"][data-site-surface="admin"] .staff-link{background:#201a16!important;color:#f6efe5!important;border-color:#493c30!important}html[data-site-theme="dark"][data-site-surface="admin"] .page-head p,html[data-site-theme="dark"][data-site-surface="admin"] .panel small,html[data-site-theme="dark"][data-site-surface="admin"] .stat span{color:#b8aa99!important}html[data-site-theme="dark"][data-site-surface="admin"] .btn-soft{background:#342b23!important;color:#efd19a!important;border-color:#5b4937!important}
html[data-site-theme="dark"][data-site-surface="waiter"] .main{background:transparent!important}html[data-site-theme="dark"][data-site-surface="waiter"] .card,html[data-site-theme="dark"][data-site-surface="waiter"] .tabs,html[data-site-theme="dark"][data-site-surface="waiter"] .table-card,html[data-site-theme="dark"][data-site-surface="waiter"] .manual-order,html[data-site-theme="dark"][data-site-surface="waiter"] .modal,html[data-site-theme="dark"][data-site-surface="waiter"] .waiter-modal{background:#251f1a!important;color:#f6efe5!important;border-color:#493c30!important}html[data-site-theme="dark"][data-site-surface="waiter"] .card p,html[data-site-theme="dark"][data-site-surface="waiter"] .appbar small,html[data-site-theme="dark"][data-site-surface="waiter"] .empty{color:#b8aa99!important}html[data-site-theme="dark"][data-site-surface="waiter"] .tabs button,html[data-site-theme="dark"][data-site-surface="waiter"] .actions button{background:#342b23!important;color:#efd19a!important}html[data-site-theme="dark"][data-site-surface="waiter"] .tabs button.active,html[data-site-theme="dark"][data-site-surface="waiter"] .actions .next{background:#9c7140!important;color:#fff!important}
@media print{html[data-site-theme="dark"] body{background:#fff!important;color:#000!important}}

/* Dark mode contrast completion for all nested legacy surfaces. */
html[data-site-theme="dark"][data-site-surface="admin"] .page-head h1,html[data-site-theme="dark"][data-site-surface="admin"] .content .panel h2,html[data-site-theme="dark"][data-site-surface="admin"] .content .stat strong,html[data-site-theme="dark"][data-site-surface="admin"] .content .qr-card h3,html[data-site-theme="dark"][data-site-surface="admin"] .content .bill-card h2,html[data-site-theme="dark"][data-site-surface="admin"] .content .bill-total strong,html[data-site-theme="dark"][data-site-surface="admin"] .content .report-row b,html[data-site-theme="dark"][data-site-surface="admin"] .content .satisfaction-kpis b,html[data-site-theme="dark"][data-site-surface="admin"] .content .analytics-kpis b,html[data-site-theme="dark"][data-site-surface="admin"] .content .rank-row b,html[data-site-theme="dark"][data-site-surface="admin"] .content .performance-name b,html[data-site-theme="dark"][data-site-surface="admin"] .content .performance-stats b,html[data-site-theme="dark"][data-site-surface="admin"] .content .staff-card h3,html[data-site-theme="dark"][data-site-surface="admin"] .content .geo-note b{color:#f7efe4!important}
html[data-site-theme="dark"][data-site-surface="admin"] .content .empty,html[data-site-theme="dark"][data-site-surface="admin"] .content .table th,html[data-site-theme="dark"][data-site-surface="admin"] .content .panel-head small,html[data-site-theme="dark"][data-site-surface="admin"] .content .stat span,html[data-site-theme="dark"][data-site-surface="admin"] .content .satisfaction-kpis span,html[data-site-theme="dark"][data-site-surface="admin"] .content .satisfaction-kpis small,html[data-site-theme="dark"][data-site-surface="admin"] .content .analytics-kpis span,html[data-site-theme="dark"][data-site-surface="admin"] .content .analytics-kpis small,html[data-site-theme="dark"][data-site-surface="admin"] .content .performance-note,html[data-site-theme="dark"][data-site-surface="admin"] .content .field small,html[data-site-theme="dark"][data-site-surface="admin"] .content .geo-note span,html[data-site-theme="dark"][data-site-surface="admin"] .content .meter-input span{color:#c8baa8!important}
html[data-site-theme="dark"][data-site-surface="admin"] .content .field label,html[data-site-theme="dark"][data-site-surface="admin"] .content .modal label,html[data-site-theme="dark"][data-site-surface="admin"] .notice-settings-card label,html[data-site-theme="dark"][data-site-surface="admin"] .content .geo-switch b{color:#e9dccb!important}
html[data-site-theme="dark"][data-site-surface="admin"] .qr-card,html[data-site-theme="dark"][data-site-surface="admin"] .satisfaction-kpis article,html[data-site-theme="dark"][data-site-surface="admin"] .performance-card,html[data-site-theme="dark"][data-site-surface="admin"] .category-pill.category-manage,html[data-site-theme="dark"][data-site-surface="admin"] .category-add,html[data-site-theme="dark"][data-site-surface="admin"] .geo-note{background:#2a231d!important;color:#f6efe5!important;border-color:#564636!important}
html[data-site-theme="dark"][data-site-surface="admin"] .category-manage .category-edit{color:#f5e8d5!important}html[data-site-theme="dark"][data-site-surface="admin"] .category-manage .category-delete{background:#45242a!important;color:#ffabb1!important;border-color:#6c3941!important}html[data-site-theme="dark"][data-site-surface="admin"] .category-add{color:#efd09a!important}html[data-site-theme="dark"][data-site-surface="admin"] .stock-ok{color:#72d6b7!important}html[data-site-theme="dark"][data-site-surface="admin"] .qr-card p,html[data-site-theme="dark"][data-site-surface="admin"] .qr-card small{color:#c8baa8!important}html[data-site-theme="dark"][data-site-surface="admin"] .satisfaction-filters label{color:#c8baa8!important}html[data-site-theme="dark"][data-site-surface="admin"] .rating-bars i,html[data-site-theme="dark"][data-site-surface="admin"] .criteria-grid i{background:#493c30!important}
html[data-site-theme="dark"][data-site-surface="waiter"] .login form,html[data-site-theme="dark"][data-site-surface="waiter"] .waiter-notice-card,html[data-site-theme="dark"][data-site-surface="waiter"] .shift-summary div,html[data-site-theme="dark"][data-site-surface="waiter"] .service-status,html[data-site-theme="dark"][data-site-surface="waiter"] .tabs,html[data-site-theme="dark"][data-site-surface="waiter"] .table-tile{background:#251f1a!important;color:#f6efe5!important;border-color:#493c30!important}
html[data-site-theme="dark"][data-site-surface="waiter"] .login h1,html[data-site-theme="dark"][data-site-surface="waiter"] .waiter-notice-card h2,html[data-site-theme="dark"][data-site-surface="waiter"] .shift-summary strong,html[data-site-theme="dark"][data-site-surface="waiter"] .card strong,html[data-site-theme="dark"][data-site-surface="waiter"] .table-tile strong{color:#f7efe4!important}html[data-site-theme="dark"][data-site-surface="waiter"] .login p,html[data-site-theme="dark"][data-site-surface="waiter"] .shift-summary small,html[data-site-theme="dark"][data-site-surface="waiter"] .shift-summary span,html[data-site-theme="dark"][data-site-surface="waiter"] .service-status,html[data-site-theme="dark"][data-site-surface="waiter"] .order-version,html[data-site-theme="dark"][data-site-surface="waiter"] .card p,html[data-site-theme="dark"][data-site-surface="waiter"] .table-tile small{color:#c8baa8!important}
html[data-site-theme="dark"][data-site-surface="waiter"] .filter-row button{background:#302820!important;color:#eadbc8!important;border-color:#564637!important}html[data-site-theme="dark"][data-site-surface="waiter"] .filter-row button.active,html[data-site-theme="dark"][data-site-surface="waiter"] .tabs button.active{background:#9b7040!important;color:#fff8ed!important}html[data-site-theme="dark"][data-site-surface="waiter"] .waiter-notice-card label{color:#eadfce!important;border-color:#493c30!important}html[data-site-theme="dark"][data-site-surface="waiter"] .waiter-notice-card label small{color:#c8baa8!important}
html[data-site-theme="dark"][data-site-surface="customer"] .menu-head h2,html[data-site-theme="dark"][data-site-surface="customer"] .dish h3,html[data-site-theme="dark"][data-site-surface="customer"] .drawer h2,html[data-site-theme="dark"][data-site-surface="customer"] .cart-item strong,html[data-site-theme="dark"][data-site-surface="customer"] .tracking-card h3,html[data-site-theme="dark"][data-site-surface="customer"] .feedback-box h2,html[data-site-theme="dark"][data-site-surface="customer"] .location-panel h3,html[data-site-theme="dark"][data-site-surface="customer"] .service-strip h3{color:#f7efe4!important}
html[data-site-theme="dark"][data-site-surface="customer"] .location-panel,html[data-site-theme="dark"][data-site-surface="customer"] .location-panel.verified,html[data-site-theme="dark"][data-site-surface="customer"] .location-panel.outside,html[data-site-theme="dark"][data-site-surface="customer"] .location-panel.denied,html[data-site-theme="dark"][data-site-surface="customer"] .success,html[data-site-theme="dark"][data-site-surface="customer"] .overall-score,html[data-site-theme="dark"][data-site-surface="customer"] .score-grid label{background:#2a231d!important;color:#f6efe5!important;border-color:#564636!important}
html[data-site-theme="dark"][data-site-surface="customer"] .location-panel p,html[data-site-theme="dark"][data-site-surface="customer"] .location-panel small,html[data-site-theme="dark"][data-site-surface="customer"] .feedback-full>p,html[data-site-theme="dark"][data-site-surface="customer"] .cart-item small{color:#c8baa8!important}html[data-site-theme="dark"][data-site-surface="customer"] .recommend{border-color:#493c30!important}html[data-site-theme="dark"][data-site-surface="customer"] .success strong{color:#efc982!important}

/* Dark theme v37: explicit colors for portal tables and dialogs appended outside their main containers. */
html[data-site-theme="dark"][data-site-surface="admin"] .page-head h1,
html[data-site-theme="dark"][data-site-surface="admin"] .table td,
html[data-site-theme="dark"][data-site-surface="admin"] .table td strong,
html[data-site-theme="dark"][data-site-surface="admin"] .product-cell strong,
html[data-site-theme="dark"][data-site-surface="admin"] .category-pill b,
html[data-site-theme="dark"][data-site-surface="admin"] .modal-head h2,
html[data-site-theme="dark"][data-site-surface="admin"] .modal .field label,
html[data-site-theme="dark"][data-site-surface="admin"] .modal .image-editor,
html[data-site-theme="dark"][data-site-surface="admin"] .modal .bill-preview{color:#f7efe4!important}
html[data-site-theme="dark"][data-site-surface="admin"] .table tbody tr:hover,
html[data-site-theme="dark"][data-site-surface="admin"] .table tbody tr:hover td{background:#302820!important;color:#fff4e5!important}
html[data-site-theme="dark"][data-site-surface="admin"] .table tbody tr:hover .stock-ok{color:#79dfbf!important}
html[data-site-theme="dark"][data-site-surface="admin"] .modal,
html[data-site-theme="dark"][data-site-surface="admin"] .modal .form{color:#f7efe4!important}
html[data-site-theme="dark"][data-site-surface="admin"] .modal .modal-head{border-color:#584838!important}
html[data-site-theme="dark"][data-site-surface="admin"] .modal .bill-preview{background:#302820!important;border:1px solid #584838!important}
html[data-site-theme="dark"][data-site-surface="admin"] .modal input[type="file"]::file-selector-button{background:#e9ddcc!important;color:#2b241e!important;border:0;border-radius:7px;padding:8px 10px}
html[data-site-theme="dark"][data-site-surface="admin"] .modal .btn-soft{background:#342b23!important;color:#efd19a!important;border-color:#5b4937!important}

html[data-site-theme="dark"][data-site-surface="waiter"] .appbar h1,
html[data-site-theme="dark"][data-site-surface="waiter"] .waiter-time,
html[data-site-theme="dark"][data-site-surface="waiter"] .waiter-date{color:#fff4e6!important;text-shadow:0 1px 2px #0008!important}
html[data-site-theme="dark"][data-site-surface="waiter"] .waiter-modal-head h2,
html[data-site-theme="dark"][data-site-surface="waiter"] .waiter-pos-fields label,
html[data-site-theme="dark"][data-site-surface="waiter"] .waiter-menu-item span,
html[data-site-theme="dark"][data-site-surface="waiter"] .waiter-menu-item b,
html[data-site-theme="dark"][data-site-surface="waiter"] .waiter-qty strong,
html[data-site-theme="dark"][data-site-surface="waiter"] .waiter-pos-total,
html[data-site-theme="dark"][data-site-surface="waiter"] .waiter-bill-total{color:#f7efe4!important}
html[data-site-theme="dark"][data-site-surface="waiter"] .waiter-modal-head{border-color:#584838!important}
html[data-site-theme="dark"][data-site-surface="waiter"] .waiter-modal-head small{color:#e6bd78!important}
html[data-site-theme="dark"][data-site-surface="waiter"] .waiter-menu-item{border-color:#584838!important}
html[data-site-theme="dark"][data-site-surface="waiter"] .waiter-menu-item small{color:#c8baa8!important}
html[data-site-theme="dark"][data-site-surface="waiter"] .waiter-pos-total,
html[data-site-theme="dark"][data-site-surface="waiter"] .waiter-bill-total{background:#302820!important;border:1px solid #584838!important}
html[data-site-theme="dark"][data-site-surface="waiter"] .waiter-void-info{color:#c8baa8!important}

html[data-site-theme="dark"][data-site-surface="customer"] .tracking-card small,
html[data-site-theme="dark"][data-site-surface="customer"] .track-steps span{color:#c8baa8!important}
html[data-site-theme="dark"][data-site-surface="customer"] .track-steps span.done{background:#225b49!important;color:#f2fff9!important}

/* Dark theme v38: analytics, satisfaction and product hover contrast. */
html[data-site-theme="dark"][data-site-surface="admin"] .analytics-head,
html[data-site-theme="dark"][data-site-surface="admin"] .analytics-kpis>div,
html[data-site-theme="dark"][data-site-surface="admin"] .performance-card,
html[data-site-theme="dark"][data-site-surface="admin"] .satisfaction-kpis article,
html[data-site-theme="dark"][data-site-surface="admin"] .topic-list>div,
html[data-site-theme="dark"][data-site-surface="admin"] .feedback-scores span,
html[data-site-theme="dark"][data-site-surface="admin"] .management-note{background:#2a231d!important;color:#f7efe4!important;border-color:#594838!important}
html[data-site-theme="dark"][data-site-surface="admin"] .performance-stats span{background:#352c24!important;color:#d8c8b5!important;border:1px solid #594838!important}
html[data-site-theme="dark"][data-site-surface="admin"] .performance-stats span b,
html[data-site-theme="dark"][data-site-surface="admin"] .topic-list>div span,
html[data-site-theme="dark"][data-site-surface="admin"] .topic-list>div b,
html[data-site-theme="dark"][data-site-surface="admin"] .rating-bars span,
html[data-site-theme="dark"][data-site-surface="admin"] .rating-bars strong,
html[data-site-theme="dark"][data-site-surface="admin"] .criteria-grid span,
html[data-site-theme="dark"][data-site-surface="admin"] .criteria-grid b,
html[data-site-theme="dark"][data-site-surface="admin"] .feedback-scores span,
html[data-site-theme="dark"][data-site-surface="admin"] .feedback-scores b{color:#f7efe4!important}
html[data-site-theme="dark"][data-site-surface="admin"] .analytics-head p,
html[data-site-theme="dark"][data-site-surface="admin"] .analytics-kpis span,
html[data-site-theme="dark"][data-site-surface="admin"] .analytics-kpis small,
html[data-site-theme="dark"][data-site-surface="admin"] .performance-name small,
html[data-site-theme="dark"][data-site-surface="admin"] .panel-head small{color:#cbbba8!important}
html[data-site-theme="dark"][data-site-surface="admin"] .performance-note{background:#3a3027!important;color:#ead2ac!important;border:1px solid #66523d!important}
html[data-site-theme="dark"][data-site-surface="admin"] .satisfaction-kpis .danger{background:#3c2424!important;border-color:#8b4b51!important}
html[data-site-theme="dark"][data-site-surface="admin"] .topic-list .empty{background:#352c24!important;color:#d7c7b4!important}
html[data-site-theme="dark"][data-site-surface="admin"] .table tbody tr:hover>td,
html[data-site-theme="dark"][data-site-surface="admin"] .table tbody tr:hover>td *,
html[data-site-theme="dark"][data-site-surface="admin"] .table tbody tr:hover .product-cell,
html[data-site-theme="dark"][data-site-surface="admin"] .table tbody tr:hover .product-cell strong{background-color:#352c24!important;color:#fff4e5!important}
html[data-site-theme="dark"][data-site-surface="admin"] .table tbody tr:hover .stock-ok{color:#79dfbf!important}
html[data-site-theme="dark"][data-site-surface="admin"] .table tbody tr:hover .btn-soft{background:#eadfce!important;color:#2c241e!important}
html[data-site-theme="dark"][data-site-surface="admin"] .table tbody tr:hover .btn-danger{background:#542e34!important;color:#ffc2c7!important}

/* Product media v38: balanced square previews without cropping tall products. */
html[data-site-surface="customer"] .dish-image{width:min(320px,calc(100% - 32px))!important;height:auto!important;aspect-ratio:1!important;align-self:center!important;margin:16px auto 0!important;border:1px solid var(--line)!important;border-radius:16px!important;overflow:hidden!important;background:#eee9e1!important}
html[data-site-surface="customer"] .dish-image img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important}
html[data-site-theme="dark"][data-site-surface="customer"] .dish-image{background:#2d261f!important;border-color:#574737!important}
@media(max-width:760px){html[data-site-surface="customer"] .dish-image{width:calc(100% - 32px)!important;max-width:340px!important}}
