:root{--ink:#17211e;--muted:#6e7e78;--paper:#f1f4ef;--white:#fff;--line:#dce4dd;--green:#123b32;--mint:#e5efe9;--red:#b6383d;--amber:#efad51;--shadow:0 12px 35px #17342b12}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',sans-serif}button,input,textarea,select{font:inherit}button{border:0;cursor:pointer}.login{min-height:100vh;display:grid;place-items:center;padding:20px;background:linear-gradient(135deg,#0f342c,#1f6453)}.login-card{width:min(390px,100%);background:white;border-radius:22px;padding:30px;box-shadow:var(--shadow)}.login-card h1{font:700 32px 'Playfair Display',serif;margin:10px 0}.login-card p{color:var(--muted);font-size:14px}.login-card input{width:100%;padding:13px;border:1px solid var(--line);border-radius:10px;margin:10px 0}.btn{border-radius:10px;padding:10px 14px;font-weight:700}.btn-primary{background:var(--green);color:white}.btn-soft{background:var(--mint);color:var(--green)}.btn-danger{background:#fae7e7;color:var(--red)}.login-card .btn{width:100%;padding:13px}.layout{display:grid;grid-template-columns:240px 1fr;min-height:100vh}.sidebar{background:var(--green);color:white;padding:24px 17px;position:sticky;top:0;height:100vh}.logo{font:700 23px 'Playfair Display',serif;padding:0 10px 25px}.logo small{display:block;font:500 10px 'DM Sans',sans-serif;color:#bcd4ca;letter-spacing:.12em;margin-top:5px}.nav{display:grid;gap:6px}.nav button{background:transparent;color:#cde0d8;text-align:left;padding:12px;border-radius:10px;font-weight:600}.nav button.active,.nav button:hover{background:#ffffff16;color:white}.side-foot{position:absolute;bottom:20px;left:17px;right:17px}.side-foot button{width:100%}.content{padding:30px max(3vw,24px) 60px;overflow:hidden}.page-head{display:flex;justify-content:space-between;align-items:start;margin-bottom:23px}.page-head h1{font:700 34px 'Playfair Display',serif;margin:0}.page-head p{margin:5px 0;color:var(--muted)}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-bottom:22px}.stat{background:white;border:1px solid var(--line);border-radius:15px;padding:17px}.stat span{font-size:11px;color:var(--muted);text-transform:uppercase}.stat strong{font-size:25px;display:block;margin-top:6px}.panel{background:white;border:1px solid var(--line);border-radius:17px;padding:20px;box-shadow:var(--shadow);margin-bottom:18px;overflow:auto}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.panel h2{font-size:17px;margin:0}.table{width:100%;border-collapse:collapse;min-width:700px}.table th{text-align:left;color:var(--muted);font-size:11px;text-transform:uppercase;padding:10px;border-bottom:1px solid var(--line)}.table td{padding:12px 10px;border-bottom:1px solid var(--line);font-size:13px}.status{padding:5px 8px;border-radius:15px;background:var(--mint);color:var(--green);font-weight:700;font-size:10px}.status.pending{background:#fff1dc;color:#9c631a}.status.cancelled{background:#fae7e7;color:var(--red)}.actions{display:flex;gap:5px}.actions button{background:var(--mint);color:var(--green);border-radius:7px;padding:6px 8px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field{display:grid;gap:5px}.field.full{grid-column:1/-1}.field label{font-size:11px;font-weight:700}.field input,.field textarea,.field select{border:1px solid var(--line);border-radius:9px;padding:10px;background:#fbfcfa}.field textarea{min-height:75px}.modal-bg{position:fixed;inset:0;background:#0b1b1788;display:grid;place-items:center;padding:20px;z-index:30}.modal{background:white;border-radius:18px;width:min(650px,100%);max-height:90vh;overflow:auto;padding:23px}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}.modal-head h2{font:700 25px 'Playfair Display',serif;margin:0}.close{width:34px;height:34px;border-radius:50%;background:var(--mint)}.modal-foot{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.toast{position:fixed;bottom:20px;right:20px;background:var(--ink);color:white;padding:12px 16px;border-radius:10px;opacity:0;transform:translateY(10px);transition:.2s;z-index:40}.toast.show{opacity:1;transform:none}.empty{text-align:center;color:var(--muted);padding:35px}.mobile-nav{display:none}@media(max-width:820px){.layout{display:block}.sidebar{position:sticky;height:auto;z-index:10;padding:13px;display:flex;align-items:center;justify-content:space-between}.logo{padding:0;font-size:18px}.logo small,.nav,.side-foot{display:none}.mobile-nav{display:block}.mobile-nav select{padding:9px;border-radius:9px}.content{padding:22px 16px 80px}.stats{grid-template-columns:1fr 1fr}.grid2{grid-template-columns:1fr}.form{grid-template-columns:1fr}.field.full{grid-column:auto}}

.product-cell{display:flex;align-items:center;gap:10px}.thumb{width:52px;height:52px;border-radius:10px;object-fit:cover;background:#e5efe9}.image-editor{display:grid;grid-template-columns:110px 1fr;gap:12px;align-items:center}.image-preview{width:110px;height:88px;border-radius:12px;object-fit:cover;background:#e5efe9}.uploading{opacity:.55;pointer-events:none}.category-list{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.category-pill{display:flex;align-items:center;gap:7px;background:#fff;padding:6px 10px;border-radius:20px;font-size:12px}.category-pill img{width:27px;height:27px;border-radius:50%;object-fit:cover}.table-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px}.qr-card{position:relative;background:#fff;border:1px solid var(--line);border-radius:17px;padding:16px;text-align:center;box-shadow:var(--shadow)}.qr-card.occupied{border-color:#efad51}.occupancy{position:absolute;right:10px;top:10px;background:#e5efe9;color:#123b32;padding:5px 8px;border-radius:12px;font-size:9px;font-weight:700}.occupied .occupancy{background:#fff0d8;color:#9c631a}.qr-card img{width:150px;height:150px;border:1px solid var(--line);border-radius:10px}.qr-card h3{margin:10px 0 2px;font-family:'Playfair Display',serif}.qr-card p{margin:0 0 12px;color:var(--muted);font-size:12px}.qr-actions{display:flex;gap:7px;justify-content:center}.staff-link{display:flex;align-items:center;justify-content:space-between;gap:15px;background:#123b32;color:#fff;padding:18px;border-radius:15px;margin-top:18px}.staff-link p{margin:3px 0;color:#cfe1da;font-size:13px}.staff-link a{background:#fff;color:#123b32;padding:10px 14px;border-radius:10px;font-weight:700;text-decoration:none}.bill-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px;margin-bottom:22px}.bill-card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:17px;box-shadow:var(--shadow)}.bill-card-head{display:flex;justify-content:space-between}.bill-card-head small{color:var(--muted)}.bill-card h2{font:700 26px 'Playfair Display',serif;margin:3px 0 12px}.bill-card ul{list-style:none;padding:0;margin:0;border-top:1px solid var(--line)}.bill-card li,.discount-row,.bill-total,.report-row{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--line);font-size:13px}.discount-row{color:#b6383d}.bill-total{align-items:end;border:0}.bill-total strong{font-size:24px;color:#123b32}.bill-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.bill-preview{display:flex;justify-content:space-between;background:#f1f5f1;padding:14px;border-radius:11px}.compact{min-width:0}.receipt-print,.print-qr{display:none}.receipt-logo{display:block;max-width:55%;max-height:70px;object-fit:contain;margin:0 auto 8px}.receipt-print h1{text-align:center;font-size:20px;margin:4px}.receipt-print>p{text-align:center;font-size:11px;line-height:1.5}.receipt-print hr{border:0;border-top:1px dashed #000;margin:8px 0}.receipt-meta{display:grid;gap:3px;font-size:10px}.receipt-line{display:flex;justify-content:space-between;gap:8px;font-size:11px;padding:3px 0}.receipt-grand{font-size:14px;font-weight:700;margin-top:4px}.receipt-58{width:54mm}.receipt-80{width:76mm}.receipt-a4{width:190mm;padding:15mm}.receipt-a4 .receipt-line,.receipt-a4>p,.receipt-a4 .receipt-meta{font-size:14px}.receipt-a4 h1{font-size:28px}@media(max-width:620px){.image-editor{grid-template-columns:1fr}.table-grid{grid-template-columns:1fr 1fr}.qr-card img{width:115px;height:115px}.qr-actions{display:grid}.bill-grid{grid-template-columns:1fr}.bill-actions{grid-template-columns:1fr}}@media print{@page{margin:3mm}body>*{display:none!important}.receipt-print,.print-qr{display:block!important;position:absolute;left:0;top:0;background:#fff;color:#000;font-family:Arial,sans-serif}.print-qr{width:100%;text-align:center;padding:25px}.print-qr img{width:300px}.print-qr h1{font-size:36px}.receipt-print *,.print-qr *{visibility:visible}}

.kitchen-board{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.kitchen-col{background:#e8ede8;border-radius:16px;padding:13px;min-height:300px}.kitchen-col h2{font-size:14px;margin:0 0 12px}.kitchen-ticket{background:#fff;border-radius:12px;padding:13px;margin-bottom:10px;border-left:4px solid #efad51;box-shadow:0 5px 15px #17342b0d}.kitchen-ticket.late{border-color:#b6383d}.kitchen-ticket strong{font-size:18px}.kitchen-ticket p{font-size:12px;color:#6e7e78}.kitchen-ticket small{display:block;margin-bottom:8px}.feedback-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}.feedback-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:15px}.rating{color:#d78b21;font-size:18px;letter-spacing:2px}.stock-low{color:#b6383d;font-weight:700}.stock-ok{color:#1a6251}.ops-alert{display:flex;justify-content:space-between;align-items:center;background:#fff3df;border:1px solid #efd29f;border-radius:13px;padding:13px;margin-bottom:17px}@media(max-width:820px){.kitchen-board{grid-template-columns:1fr}.kitchen-col{min-height:0}}

.live-enable{position:fixed;right:18px;bottom:18px;z-index:25;border:0;border-radius:24px;padding:11px 15px;background:#17211e;color:#fff;font-weight:700;box-shadow:0 8px 25px #0003}.live-enable span{display:inline-block;width:8px;height:8px;border-radius:50%;background:#66e3a5;margin-right:5px;animation:adminPulse 1.5s infinite}@keyframes adminPulse{70%{box-shadow:0 0 0 8px #66e3a500}}@media(max-width:820px){.live-enable{bottom:14px;right:14px;font-size:11px}}

:root{--navy:#102c26;--gold:#e9a94f}.sidebar{background:linear-gradient(180deg,#102f28,#0b211c)}.nav button{display:flex;align-items:center;gap:8px}.nav button:before{content:'•';color:#efad51}.content{background:radial-gradient(circle at 95% 0,#dfece4 0,transparent 280px),var(--paper)}.commandbar{display:flex;align-items:center;justify-content:space-between;gap:15px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:11px 14px;margin-bottom:22px;box-shadow:var(--shadow)}.tr-clock{display:flex;align-items:center;gap:11px}.tr-clock strong{font-size:22px;color:var(--green)}.tr-clock span{display:block;color:var(--muted);font-size:11px}.quick-actions{display:flex;gap:6px;flex-wrap:wrap}.quick-actions button,.quick-actions a{border:0;background:#eef4ef;color:var(--green);padding:8px 10px;border-radius:9px;font-size:11px;font-weight:700;text-decoration:none}.quick-actions .accent{background:var(--green);color:#fff}.page-head h1{letter-spacing:-.02em}.stat{position:relative;overflow:hidden}.stat:after{content:'';position:absolute;right:-18px;bottom:-25px;width:72px;height:72px;border-radius:50%;background:#e5efe980}.panel{box-shadow:0 14px 40px #17342b0c}.order-tools{display:flex;gap:8px;margin-bottom:14px;flex-wrap:wrap}.order-tools input,.order-tools select{border:1px solid var(--line);border-radius:9px;padding:9px;background:#fff}.table tr:hover td{background:#f7faf7}.turkey-badge{font-size:9px;background:#e9f2ec;color:#123b32;padding:3px 6px;border-radius:8px}@media(max-width:820px){.commandbar{align-items:flex-start}.quick-actions{justify-content:flex-end}.quick-actions button:nth-child(n+4){display:none}.tr-clock strong{font-size:17px}}@media(max-width:520px){.commandbar{display:block}.quick-actions{margin-top:9px;justify-content:flex-start}.stats{gap:8px}.stat{padding:13px}.stat strong{font-size:19px}}

/* RestoFlow Demo — modern luxury administration theme */
:root{--ink:#1d1a17;--muted:#766e65;--paper:#f2eee8;--white:#fffdf9;--line:#ddd3c6;--green:#201d19;--mint:#eee6db;--red:#8b2d3b;--amber:#b99155;--shadow:0 14px 38px rgba(39,29,20,.08)}
body{background:linear-gradient(135deg,#f4f0e9,#eee8df);color:var(--ink)}
.login{background:radial-gradient(circle at 70% 15%,#b9915538,transparent 32%),linear-gradient(135deg,#171512,#302822 65%,#5c222c)}.login-card{background:#fffaf3;border:1px solid #c7a26a;border-radius:18px;box-shadow:0 30px 80px #0005}.login-card h1{color:#201c18}.login-card input{background:#fffdf9;border-color:#d5c5ae}
.sidebar{background:linear-gradient(180deg,#181613,#24201c);border-right:1px solid #b991555c;box-shadow:10px 0 40px #1c160f16}.logo{color:#f4e7d1}.logo small{color:#bca98d}.nav button{color:#c9bba8;border:1px solid transparent}.nav button.active,.nav button:hover{background:linear-gradient(90deg,#b991552b,#ffffff08);border-color:#b9915552;color:#f7ead5}.side-foot .btn-soft{background:#342e27;color:#d8bd91;border:1px solid #6f5a3c}
.content{background:transparent}.page-head h1{color:#211d19;letter-spacing:-.02em}.page-head p{color:#776d62}.stat,.panel{background:#fffdf9;border-color:#ddd1c1;border-radius:14px;box-shadow:var(--shadow)}.stat{border-top:2px solid #b99155}.stat strong{font-family:'Playfair Display',serif;color:#332a22}.panel-head{border-bottom:1px solid #ebe2d7;padding-bottom:13px}.panel h2{color:#332820}.table th{color:#776d62;border-color:#e6ddd2}.table td{border-color:#eee6dc}.table tbody tr:hover{background:#faf4eb}
.btn{border-radius:8px}.btn-primary{background:linear-gradient(135deg,#26221e,#44382f);border:1px solid #b99155;color:#f7ead6}.btn-primary:hover{background:#652733}.btn-soft,.actions button{background:#eee5d8;color:#493c30;border:1px solid #ddcbb2}.btn-danger{background:#f3e1df;color:#812936;border:1px solid #e6c5c3}.status{background:#eee4d5;color:#544333;border:1px solid #ddcab0}.status.pending{background:#f4e8cf;color:#815b20}.status.cancelled{background:#f3dfdf;color:#862d39}.field input,.field textarea,.field select{background:#fffdf9;border-color:#d8cbbb;border-radius:8px}.field input:focus,.field textarea:focus,.field select:focus{outline:2px solid #b9915544;border-color:#b99155}.modal-bg{background:#16110d99}.modal{background:#fffaf3;border:1px solid #c9a46c;border-radius:15px}.close{background:#ede2d4;color:#6b2934}.toast{background:#211d19;border:1px solid #b99155;color:#fff5e6}
.commandbar,.shift-summary,.kitchen-col,.bill-card,.qr-card,.live-enable{border-color:#d8c9b5!important;background:#fffdf9!important;box-shadow:var(--shadow)}
@media(max-width:820px){.sidebar{background:#1b1815;border-bottom:1px solid #b99155}.mobile-nav select{background:#302a24;color:#f3e3c9;border:1px solid #806744}.content{background:#f2eee8}}

/* TATAR GROUP luxury operations console v2 */
.tatar-admin .content{min-height:100vh;background:radial-gradient(circle at 92% 0,#b9915516,transparent 25%),linear-gradient(145deg,#f6f2ec,#eee8df)}
.powered-side{margin:0 0 12px;padding:10px;border-top:1px solid #b9915545;color:#9f927f;font-size:9px;line-height:1.6;letter-spacing:.1em}.powered-side b{color:#d8b779}.tatar-admin>.powered{display:none}
.admin-ops-deck{margin:-2px 0 22px;padding:24px;border:1px solid #b9915570;border-radius:16px;background:radial-gradient(circle at 88% 8%,#b9915535,transparent 25%),linear-gradient(125deg,#191714,#302821 70%,#53212a);color:#fff;box-shadow:0 24px 55px #20170f26}.ops-copy small{color:#d8b779;font-weight:700;letter-spacing:.14em}.ops-copy h2{margin:7px 0 4px;font:700 28px 'Playfair Display',serif}.ops-copy p{margin:0;color:#cfc2b2;font-size:13px}.ops-pulse{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.ops-pulse span{padding:7px 10px;border:1px solid #ffffff20;border-radius:8px;background:#ffffff0c;color:#d9cec0;font-size:11px}.ops-pulse b{color:#edcf9d;font-size:14px}.ops-pulse .urgent{background:#7a2938;border-color:#c4878e;color:#fff}.ops-launch{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.ops-launch button{text-align:left;padding:14px;border:1px solid #b9915545;border-radius:10px;background:#ffffff0b;color:#fff;transition:.2s}.ops-launch button:hover{transform:translateY(-2px);background:#ffffff16;border-color:#d8b779}.ops-launch i{display:block;color:#b99155;font-size:9px;font-style:normal}.ops-launch b{display:block;margin:4px 0;font-size:14px}.ops-launch small{color:#bfb2a1}.commandbar{border-radius:12px!important;border-color:#d8c9b5!important}.quick-actions button,.quick-actions a{border:1px solid #ddcbb2!important;background:#f2e9dc!important;color:#493b30!important}.quick-actions .accent{background:#211e1a!important;color:#efd9b5!important;border-color:#b99155!important}
@media(max-width:820px){.admin-ops-deck{padding:18px}.ops-launch{grid-template-columns:1fr 1fr}.powered-side{display:none}.tatar-admin>.powered{display:block}}@media(max-width:480px){.ops-copy h2{font-size:23px}.ops-pulse{margin:13px 0}.ops-launch button{padding:11px}}

/* Geofence configuration and feedback intelligence */
.geo-admin-panel{border-top:3px solid #b99155}.geo-admin-panel .panel-head>div>small{color:#8c7049;font-weight:700;letter-spacing:.13em}.geo-admin-panel .panel-head h2{margin:4px 0}.geo-admin-panel .panel-head p{margin:4px 0;color:var(--muted);font-size:12px}.geo-state{padding:6px 9px;border:1px solid #d6c8b6;border-radius:8px;background:#eee6db;color:#76695a;font-size:9px;font-weight:700}.geo-state.active{background:#2f422e;border-color:#71846c;color:#fff}.field-action{display:flex;gap:7px}.field-action input{flex:1}.meter-input{display:flex}.meter-input input{border-radius:8px 0 0 8px}.meter-input span{display:grid;place-items:center;padding:0 12px;border:1px solid #d8cbbb;border-left:0;border-radius:0 8px 8px 0;background:#eee6db;color:#65584a;font-size:11px}.geo-switch{display:flex;grid-column:1/-1;align-items:center;gap:9px;padding:12px;border:1px solid #d7c7af;border-radius:10px;background:#f7efe4}.geo-switch input{width:18px;height:18px}.geo-note{display:flex!important;gap:7px!important;padding:11px;border-left:3px solid #b99155;background:#f5efe6;color:#6f655a;font-size:11px}.feedback-metrics{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin-bottom:17px}.feedback-metrics div{padding:12px;border:1px solid #ddd1c1;border-top:2px solid #b99155;border-radius:10px;background:#fffdf9}.feedback-metrics span{display:block;color:#786e63;font-size:9px;text-transform:uppercase}.feedback-metrics b{display:block;margin-top:5px;font:700 19px 'Playfair Display',serif}.feedback-card.detailed{border-top:2px solid #b99155}.feedback-card.handled{opacity:.72}.feedback-top,.feedback-card footer{display:flex;align-items:center;justify-content:space-between;gap:8px}.feedback-top>span{padding:4px 6px;border-radius:6px;background:#6d2934;color:#fff;font-size:8px;font-weight:700}.feedback-card h3{margin:10px 0 5px}.feedback-card p{min-height:40px;color:#655c53}.feedback-scores{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:10px 0}.feedback-scores span{display:flex;justify-content:space-between;padding:6px;background:#f3ece2;border-radius:6px;font-size:9px}.recommend-badge{display:inline-block;margin-bottom:10px;padding:5px 7px;border-radius:6px;font-size:9px;font-weight:700}.recommend-badge.yes{background:#e7efe5;color:#395338}.recommend-badge.no{background:#f3e1df;color:#812936}.feedback-card footer{padding-top:9px;border-top:1px solid #e6ddd2}.feedback-card footer button{margin-left:4px;padding:5px 7px;border:1px solid #d5c3a8;border-radius:6px;background:#eee5d8;color:#514335;font-size:9px;font-weight:700}@media(max-width:900px){.feedback-metrics{grid-template-columns:repeat(3,1fr)}}@media(max-width:600px){.field-action{display:grid}.feedback-metrics{grid-template-columns:1fr 1fr}.geo-note{display:grid!important}}

/* Staff access and password controls */
.staff-security-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr);gap:16px}.staff-list{display:grid;gap:8px}.staff-row{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:11px;padding:12px;border:1px solid #e0d6c9;border-radius:10px;background:#fffaf4}.staff-row.inactive{opacity:.58}.staff-avatar{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:#211e1a;color:#e7c993;font:700 17px 'Playfair Display',serif}.staff-row b,.staff-row small{display:block}.staff-row small{margin-top:3px;color:var(--muted);font-size:9px}.staff-state{padding:5px 7px;border-radius:6px;background:#e5eee2;color:#3c5538;font-size:8px;font-weight:700}.staff-row.inactive .staff-state{background:#eee5da;color:#75695c}.staff-actions{display:flex;gap:5px}.staff-actions button{padding:7px;border:1px solid #d5c4aa;border-radius:7px;background:#eee5d8;color:#514234;font-size:9px;font-weight:700}.staff-actions .danger{background:#f2dfdd;color:#812936;border-color:#e2bfbd}.security-card{border-top:3px solid #b99155}.security-card>small,.legacy-card small{color:#8d714a;font-weight:700;letter-spacing:.12em}.security-card h2,.legacy-card h2{margin:5px 0}.security-card p,.legacy-card p{color:var(--muted);font-size:11px}.security-card form{display:grid;gap:8px}.security-card input{width:100%;padding:11px;border:1px solid #d8cbbb;border-radius:8px;background:#fffdf9}.legacy-card{display:flex;align-items:center;justify-content:space-between;gap:14px}.legacy-toggle{display:flex;align-items:center;gap:7px;padding:8px 10px;border:1px solid #d4c4ad;border-radius:9px;background:#f3eadf;white-space:nowrap}.legacy-toggle input{width:18px;height:18px}.legacy-toggle b{font-size:10px}.staff-modal{max-width:470px}@media(max-width:980px){.staff-security-grid{grid-template-columns:1fr}}@media(max-width:640px){.staff-row{grid-template-columns:auto 1fr}.staff-state{grid-column:1}.staff-actions{grid-column:2}.legacy-card{display:block}.legacy-toggle{margin-top:12px;width:max-content}}

/* Sales intelligence and waiter performance */
.analytics-suite{margin-top:22px}.analytics-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:14px;padding:22px;border:1px solid #b991556a;border-radius:15px;background:radial-gradient(circle at 88% 0,#b9915536,transparent 28%),linear-gradient(120deg,#191714,#342b23 74%,#56222b);color:#fff}.analytics-head small{color:#d8b779;font-weight:700;letter-spacing:.13em}.analytics-head h2{margin:5px 0;font:700 27px 'Playfair Display',serif}.analytics-head p{margin:0;color:#cec0af;font-size:11px}.period-switch{display:flex;padding:4px;border:1px solid #b991555c;border-radius:9px;background:#ffffff0b}.period-switch button{padding:9px 13px;border-radius:6px;background:transparent;color:#d7c5ab;font-size:10px;font-weight:700}.period-switch button.active{background:#d0ab72;color:#241b14}.analytics-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-bottom:12px}.analytics-kpis div{padding:14px;border:1px solid #ddd0bf;border-top:2px solid #b99155;border-radius:10px;background:#fffdf9}.analytics-kpis span,.analytics-kpis small{display:block;color:#7c7166;font-size:9px}.analytics-kpis b{display:block;margin:5px 0;font:700 20px 'Playfair Display',serif}.analytics-grid{display:grid;grid-template-columns:1.55fr .75fr;gap:12px}.sales-bars{height:220px;display:flex;align-items:stretch;gap:5px;overflow-x:auto;padding-top:15px}.sales-bar{flex:1;min-width:28px;display:grid;grid-template-rows:1fr auto auto;gap:4px;text-align:center}.sales-bar>div{display:flex;align-items:end;justify-content:center;min-height:130px;border-bottom:1px solid #ded2c2}.sales-bar i{width:min(18px,65%);min-height:4px;border-radius:5px 5px 0 0;background:linear-gradient(#b99155,#6d2934)}.sales-bar b{font-size:8px}.sales-bar span{color:#817568;font-size:8px}.rank-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:9px;padding:9px 0;border-bottom:1px solid #eee5da}.rank-row>i{width:25px;height:25px;display:grid;place-items:center;border-radius:7px;background:#211e1a;color:#e2c18d;font-style:normal;font-size:9px}.rank-row span b,.rank-row span small{display:block}.rank-row span b{font-size:11px}.rank-row span small{color:var(--muted);font-size:9px}.rank-row strong{font-size:10px}.waiter-performance{margin-top:12px}.performance-note{padding:6px 8px;border-radius:7px;background:#eee5d8;color:#645344;font-size:8px;font-weight:700}.performance-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.performance-card{position:relative;padding:13px;border:1px solid #dfd3c4;border-radius:11px;background:#fffaf4}.performance-rank{position:absolute;right:10px;top:10px;color:#c6ad88;font:700 22px 'Playfair Display',serif}.performance-name{display:flex;align-items:center;gap:9px}.performance-name>span{width:35px;height:35px;display:grid;place-items:center;border-radius:9px;background:#211e1a;color:#e4c58f;font-weight:700}.performance-name b,.performance-name small{display:block}.performance-name small{color:var(--muted);font-size:8px}.performance-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-top:12px}.performance-stats span{padding:7px;border-radius:7px;background:#f0e8dc;color:#776a5c;font-size:8px;text-align:center}.performance-stats b{display:block;color:#372d25;font-size:16px}.analytics-loading{text-align:center;color:var(--muted)}@media(max-width:950px){.analytics-kpis{grid-template-columns:1fr 1fr}.analytics-grid{grid-template-columns:1fr}}@media(max-width:650px){.analytics-head{display:block}.period-switch{margin-top:14px;width:max-content}.analytics-kpis{grid-template-columns:1fr 1fr}.performance-grid{grid-template-columns:1fr}.sales-bars{height:190px}}

/* Final contrast guardrails for light luxury surfaces. */
.live-enable{background:#fffdf9!important;color:#171411!important;border:1px solid #b99155!important}.live-enable span{background:#168552!important}.panel,.stat,.bill-card,.qr-card,.modal,.commandbar{color:#211c18}.field label,.modal label,.bill-card,.qr-card{color:#3b3128}.field input,.field textarea,.field select,.modal input,.modal textarea,.modal select{background:#fff!important;color:#211c18!important}.btn-soft,.actions button{color:#493c30!important}.btn-primary{color:#fff5e6!important}.status.pending{color:#704a10!important}.empty{color:#756a5f}.quick-actions a{background:#eee5d8;color:#493c30!important}

.order-manage{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.order-manage select{min-height:36px;background:#fff;color:#211c18;border:1px solid #d8cbbb;border-radius:8px}.order-manage .btn{padding:8px 10px}.order-head-actions{display:flex;gap:8px}.order-edit-modal{width:min(760px,94vw)}.order-edit-fields{grid-template-columns:1fr 2fr}.order-edit-list{max-height:44vh;overflow:auto;margin:14px 0;border-block:1px solid #e2d6c7}.order-edit-list>div{display:flex;justify-content:space-between;align-items:center;padding:10px 2px;border-bottom:1px solid #eee4d8}.order-edit-list small{display:block;color:#74675a}.edit-qty{display:flex;align-items:center;gap:8px}.edit-qty button{width:34px;height:34px;border:1px solid #cab697;background:#f2e8da;color:#251f19;border-radius:8px;font-size:19px}.void-modal{width:min(500px,94vw)}.void-modal p{color:#655a50;line-height:1.5}.void-modal .field{margin-bottom:12px}.void-modal .btn-danger{width:100%;padding:12px}.void-reason{color:#8b2d3b}.audit-modal{width:min(900px,96vw);overflow:auto}.audit-modal table{min-width:680px}@media(max-width:700px){.order-edit-fields{grid-template-columns:1fr}.order-manage{min-width:190px}.order-head-actions{flex-direction:column}}

.branding-title{padding:14px 16px;background:linear-gradient(135deg,#211d19,#493a2f);color:#fff5e6;border:1px solid #b99155;border-radius:12px}.branding-title small{color:#d7b77f;font-weight:800;letter-spacing:.12em}.branding-title h2{margin:4px 0;color:#fff}.branding-title p{margin:0;color:#e2d5c2}.brand-image-editor{background:#faf3e9;border:1px solid #decdb6;border-radius:12px;padding:12px}.brand-image-editor .image-preview{object-fit:contain;background:#fff}.brand-image-editor input{color:#211c18;background:#fff}

.ops-alert-center{position:fixed;z-index:120;right:18px;top:18px;width:min(390px,calc(100vw - 28px));display:grid;gap:10px;pointer-events:none}.ops-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 #8a2d3b;border-radius:14px;background:#fffdf9;color:#211c18;box-shadow:0 22px 55px #120b0740;animation:opsAlertIn .28s ease-out}.ops-live-alert.service{background:linear-gradient(120deg,#fff7ed,#f8e3dc);border-color:#a63c48}.ops-live-alert.success{border-left-color:#168552}.ops-alert-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:#241f1a;color:#e8c68e;font-size:20px;font-weight:800}.ops-live-alert.service .ops-alert-icon{background:#8a2d3b;color:#fff}.ops-live-alert small{display:block;color:#8a2d3b;font-size:9px;font-weight:800;letter-spacing:.13em}.ops-live-alert strong{display:block;margin:2px 0 3px;font:700 18px 'Playfair Display',serif}.ops-live-alert p{margin:0;color:#55493f;font-size:13px;line-height:1.4}.ops-live-alert time{display:block;margin-top:7px;color:#8c7a68;font-size:10px}.ops-live-alert button{width:28px;height:28px;border:0;border-radius:50%;background:#eee5d8;color:#392f27;font-size:18px}.live-enable.enabled{background:#173b2f!important;color:#fff!important;border-color:#2f8b69!important}.live-enable.blocked{background:#fff4e8!important;color:#6f2d34!important;border-color:#a63c48!important}.ops-alerting .content:after{content:'';position:fixed;inset:0;z-index:110;pointer-events:none;box-shadow:inset 0 0 0 4px #b99155;animation:opsFrame 1s ease 4}@keyframes opsAlertIn{from{opacity:0;transform:translateX(24px) scale(.97)}to{opacity:1;transform:none}}@keyframes opsFrame{50%{box-shadow:inset 0 0 0 7px #8a2d3b}}@media(max-width:700px){.ops-alert-center{top:10px;right:10px}.ops-live-alert{grid-template-columns:40px 1fr 28px;padding:13px}.ops-alert-icon{width:36px;height:36px}.ops-live-alert strong{font-size:16px}}

.live-settings{position:fixed;right:22px;bottom:76px;z-index:71;width:42px;height:42px;border-radius:50%;background:#2c2925;color:#f0d8af;border:1px solid #c7a36b;box-shadow:0 12px 30px #0003}.notice-settings-bg{position:fixed;inset:0;z-index:120;background:#130f0bbb;display:grid;place-items:center;padding:20px}.notice-settings-card{width:min(480px,100%);background:#fffdf8;border-radius:22px;padding:24px;box-shadow:0 30px 90px #0005}.notice-settings-card header{display:flex;justify-content:space-between;gap:20px;align-items:start;border-bottom:1px solid #e7ddd0;padding-bottom:16px}.notice-settings-card h2{margin:4px 0;font-family:'Playfair Display',serif}.notice-settings-card header>button{width:36px;height:36px;border-radius:50%;font-size:22px}.notice-settings-card>label{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:15px 0;border-bottom:1px solid #eee5d9}.notice-settings-card label span{display:grid;gap:3px}.notice-settings-card label small{color:#776d62}.notice-settings-card input[type=checkbox]{width:22px;height:22px;accent-color:#792f3c}.notice-setting-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:18px}.notice-setting-actions button{padding:10px 14px;border-radius:10px;background:#eee7dc}.notice-setting-actions .primary{background:#2b2824;color:white}.notice-permission{font-size:12px;color:#776d62}.satisfaction-toolbar{display:flex;justify-content:space-between;gap:14px;margin-bottom:15px}.satisfaction-filters{display:flex;gap:10px;flex-wrap:wrap}.satisfaction-filters label{font-size:11px;color:#766c61;display:grid;gap:4px}.satisfaction-filters select{background:white;border:1px solid #ddd1c2;border-radius:10px;padding:9px 30px 9px 10px}.satisfaction-toolbar>button{align-self:end;background:#28241f;color:white;border-radius:10px;padding:10px 14px}.satisfaction-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:14px}.satisfaction-kpis article{background:#fff;border:1px solid #dfd5c8;border-radius:16px;padding:17px;display:grid;gap:5px}.satisfaction-kpis span,.satisfaction-kpis small{color:#766c61;font-size:12px}.satisfaction-kpis b{font:700 26px 'Playfair Display',serif}.satisfaction-kpis .danger{border-color:#c96c72;background:#fff5f4}.satisfaction-charts{display:grid;grid-template-columns:1fr 1fr;gap:14px}.rating-bars>div{display:grid;grid-template-columns:42px 1fr 30px;align-items:center;gap:9px;margin:10px 0}.rating-bars i,.criteria-grid i{height:9px;background:#eee6db;border-radius:9px;overflow:hidden}.rating-bars i b,.criteria-grid i em{display:block;height:100%;background:linear-gradient(90deg,#a67a42,#d8b678);border-radius:9px}.criteria-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.criteria-grid>div{display:grid;grid-template-columns:1fr auto;gap:8px}.criteria-grid i{grid-column:1/-1}.trend-bars{height:160px;display:flex;align-items:end;gap:7px;padding-top:12px}.trend-bars>div{flex:1;height:100%;display:flex;flex-direction:column;justify-content:end;align-items:center;gap:6px}.trend-bars i{width:75%;max-width:26px;background:linear-gradient(#8f3947,#c69a5f);border-radius:7px 7px 2px 2px;min-height:8px}.trend-bars span{font-size:9px;color:#766c61}.topic-list{display:grid;gap:8px}.topic-list div{display:flex;justify-content:space-between;background:#f4eee5;border-radius:10px;padding:10px 12px}.satisfaction-detail{margin-top:14px}.satisfaction-detail .feedback-card{margin-bottom:10px}.feedback-card.low-rating{border-left:5px solid #a62e3a}.management-note{background:#f5eee4;border-left:3px solid #b58b55;padding:10px 12px;border-radius:8px;margin:12px 0;display:grid;gap:3px}.satisfaction-note-modal textarea{width:100%;min-height:130px;margin:8px 0 16px}.system-safety-panel{margin-top:15px}.system-online{color:#25734d;font-weight:700}.system-online i,.connection-state i{display:inline-block;width:8px;height:8px;border-radius:50%;background:#35a76d;margin-right:5px}.safety-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.safety-grid article{background:#f5efe7;border-radius:12px;padding:14px}.safety-grid p{margin:5px 0 0;color:#766c61;font-size:12px}.backup-actions{display:flex;gap:9px;margin-top:13px}.connection-state{position:fixed;left:20px;bottom:18px;z-index:72;border-radius:30px;padding:8px 12px;background:#e8f4ed;color:#226744;font-size:11px;font-weight:700;box-shadow:0 8px 25px #0002}.connection-state.offline{background:#ffe9e7;color:#9c2f36}.connection-state.offline i{background:#c83f48}@media(max-width:900px){.satisfaction-kpis,.satisfaction-charts{grid-template-columns:1fr 1fr}.safety-grid{grid-template-columns:1fr}.live-settings{right:14px;bottom:72px}}@media(max-width:600px){.satisfaction-kpis,.satisfaction-charts{grid-template-columns:1fr 1fr}.satisfaction-toolbar{display:block}.satisfaction-toolbar>button{margin-top:10px}.criteria-grid{grid-template-columns:1fr}.connection-state{left:10px;bottom:10px}}
.safety-grid article.safety-warning{background:#fff0ee;border:1px solid #dc9698}
.connection-state{left:258px}
@media(max-width:820px){.connection-state{left:10px;bottom:10px}}
.category-pill.category-manage{padding:0;overflow:hidden;gap:0;border:1px solid rgba(197,162,91,.26)}.category-manage .category-edit{display:flex;align-items:center;gap:7px;padding:6px 9px;background:transparent;border:0;color:inherit;cursor:pointer}.category-manage .category-delete{align-self:stretch;min-width:34px;border:0;border-left:1px solid rgba(197,162,91,.22);background:rgba(128,36,36,.08);color:#9b3434;font-size:18px;cursor:pointer}.category-manage .category-delete:hover{background:#9b3434;color:#fff}.category-add{cursor:pointer}.receipt-powered{margin-top:14px!important;padding-top:8px;border-top:1px solid #000;font-size:9px!important;letter-spacing:.08em}.receipt-powered b{font-weight:800}
.print-qr .print-qr-code{display:block;width:300px;height:300px;object-fit:contain;margin:0 auto}.print-qr .qr-fixed-brand{position:relative;width:210px;height:70px;overflow:hidden;margin:16px auto 0;background:#d5d5d5}.print-qr .qr-fixed-brand-image{position:absolute;left:50%;top:50%;width:320px!important;height:auto!important;max-width:none!important;transform:translate(-50%,-50%);filter:contrast(1.08) saturate(1.08)}

/* 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}}
