:root{color-scheme:dark;--accent:#e9b77b;--bg:#171411;--surface:#24201b;--line:#3c332a;--text:#fbf0df;--muted:#c9baaa;font-family:system-ui,sans-serif;background:var(--bg);color:var(--text)}*{box-sizing:border-box}body{margin:0;padding-bottom:95px}header,main,footer{padding-inline:max(5vw,calc((100vw - 1120px)/2))}header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-block:16px;border-bottom:1px solid var(--line)}.brand{font-weight:800;letter-spacing:.11em;text-decoration:none;color:inherit;font-size:.85rem}.brand b{display:inline-grid;place-items:center;background:var(--accent);color:#19120c;width:32px;height:32px;border-radius:9px;margin-right:7px}.brand span{color:var(--muted)}.hero{padding:64px 30px;margin-top:24px;border-radius:24px;background:radial-gradient(ellipse at 85% 0%,#563724,transparent 70%),#251d17;border:1px solid var(--line)}h1,h2{font-family:Georgia,serif;font-weight:normal;margin:.2em 0}h1{font-size:clamp(2.7rem,8vw,6rem);line-height:1;overflow-wrap:anywhere}h2{font-size:2rem}.eyebrow{font-size:.7rem;font-weight:800;letter-spacing:.19em;color:var(--accent)}.hero>p:last-child,.muted,small{color:var(--muted)}.menu{margin-top:30px}.heading,footer,.stepper,.cart-row{display:flex;align-items:center;justify-content:space-between;gap:12px}nav{display:flex;gap:8px;overflow:auto;padding:14px 0}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(225px,1fr));gap:12px}.card{border:1px solid var(--line);border-radius:16px;background:var(--surface);padding:16px;overflow:hidden}.card img{width:100%;height:130px;object-fit:cover;border-radius:10px}.card h3{margin:.45em 0}.stepper{justify-content:flex-start;margin-top:12px}.stepper button{min-width:44px}button,input,select,textarea{font:inherit;border-radius:10px;padding:10px 13px}button{background:var(--accent);border:1px solid transparent;color:#18110b;font-weight:750;cursor:pointer;min-height:44px}button:disabled{opacity:.4;cursor:default}.outline{background:transparent;border-color:var(--line);color:var(--text)}input,select,textarea,dialog{background:var(--surface);border:1px solid var(--line);color:var(--text)}footer{position:fixed;inset:auto 0 0;background:#191613;border-top:1px solid var(--line);padding-block:12px}dialog{width:min(550px,94vw);max-height:88vh;border-radius:18px;padding:22px}dialog::backdrop{background:#000a}.close{float:right}#config label{display:grid;gap:4px;margin:12px 0}#error{color:#ffb19d}.cart-row{border-bottom:1px solid var(--line);padding:10px 0}.sr{position:absolute;clip-path:inset(50%)}@media(max-width:550px){.heading{align-items:stretch;flex-direction:column}.heading input{width:100%}.hero{padding:38px 20px}}

.header-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}#orders-list .card{margin-top:12px}#orders-list button{margin-right:8px}#orders-error{color:#ffb19d}#orders-signin label{display:block;margin-bottom:8px}

#shift-review-form, #shift-review-form label { display:grid; gap:.5rem; }
#shift-review-form { gap:.75rem; margin-block:1rem; }
#shift-review-form button { justify-self:start; }
#shift-review-list article { border-top:1px solid currentColor; padding-block:.75rem; }

.staff-nav { display:flex; flex-wrap:wrap; gap:.5rem; margin-block:.75rem; }
#staff-tools label { display:grid; gap:.4rem; margin-block:.6rem; }
#staff-tools input, #staff-tools select, #staff-tools textarea { width:100%; min-width:0; box-sizing:border-box; }
#staff-tools form { margin-block:1rem; }
#staff-tools article { padding:1rem; margin-block:.75rem; border:1px solid var(--border,#4b4034); border-radius:1rem; }

.eon-section { margin-block:1.25rem; }
.eon-section fieldset { min-width:0; padding:1rem; border:1px solid var(--line); border-radius:12px; margin-block:.75rem; }
.eon-section legend { padding-inline:.4rem; }
.eon-totals { padding:1rem; border:1px solid var(--line); border-radius:12px; line-height:1.6; }

#table-picker, #staff-picker, #complaint-form label { display:grid; gap:.5rem; margin-block:.8rem; }
#customer-records article { margin-block:1rem; }
#staff-panels fieldset { min-width:0; border:1px solid var(--line); border-radius:12px; margin-block:.8rem; }

.staff-primary { display:flex; flex-wrap:wrap; gap:.5rem; margin-block:.7rem; }
dialog>label { display:grid; gap:.5rem; margin-block:.8rem; }
dialog .staff-primary button { flex:1 1 auto; }

[hidden]{display:none!important}
.staff-nav button.selected{background:var(--accent);color:#18110b;border-color:var(--accent)}
#staff-summary:empty,#staff-panels:empty,#orders-error:empty{display:none}
#waitress-access>summary,#complaint-inbox>summary{font-weight:750;margin-block:.75rem}
#business-logo{width:90px;height:90px;object-fit:contain;border-radius:16px;background:#fff;margin-bottom:18px}.hero{background-size:cover;background-position:center}.business-list #items{grid-template-columns:1fr}.business-list .card{display:grid;grid-template-columns:90px 1fr;gap:10px}.business-list .card img{width:90px;height:90px;grid-row:span 3}.business-light{--bg:#f6f2eb;--surface:#fff;--line:#d8ccbc;--text:#251b12;--muted:#66594c;background:var(--bg);color:var(--text)}.business-light .hero{background-color:#e8dccb;background-image:none}.business-light footer{background:#fff}.business-light .hero[style*="url"]{color:#fff}.business-light .hero[style*="url"] .muted{color:#fff}#payment-details{margin:16px 0;padding:16px;border:1px solid var(--line);border-radius:12px}#staff-panels label{display:grid;gap:6px;margin:12px 0}#staff-panels input[type=checkbox]{width:auto;justify-self:start}

.stock-table-scroll{max-width:100%;overflow-x:auto;margin:16px 0;border:1px solid var(--line);border-radius:12px}.stock-movement-table{border-collapse:collapse;width:100%;min-width:850px;text-align:left;font-size:15px}.stock-movement-table th,.stock-movement-table td{padding:12px 10px;border-bottom:1px solid var(--line);vertical-align:top}.stock-movement-table thead th{background:var(--surface);font-weight:750}.stock-movement-table td{text-align:right;font-variant-numeric:tabular-nums}.stock-movement-table tbody th{min-width:145px}.stock-text-summary{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.6}#staff-panels section{min-width:0}

.stock-movement-table tr>:first-child{position:sticky;left:0;background:var(--surface);z-index:1;box-shadow:1px 0 var(--line)}

.current-stock-table{min-width:0;table-layout:fixed;font-size:14px}.current-stock-table th,.current-stock-table td{padding:12px 7px;overflow-wrap:anywhere}.current-stock-table tr>:first-child{width:30%;min-width:0}.current-stock-table tbody th{min-width:0}@media(max-width:540px){.current-stock-table{min-width:560px}}

/* Shared computers: keep the authenticated identity prominent while scrolling. */
.staff-session-strip{position:sticky;top:0;z-index:25;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:14px 20px;background:var(--accent);color:#18110b;border-bottom:2px solid #18110b;font-size:clamp(1rem,2.5vw,1.3rem);font-weight:900;overflow-wrap:anywhere}
.staff-session-strip[hidden]{display:none}.staff-session-strip .outline{color:#18110b;border-color:#18110b;flex-shrink:0;font-size:.85rem}
dialog>.staff-session-strip{top:-22px;margin:-22px -22px 18px;padding-top:16px;padding-bottom:16px}
#staff-identity{font-size:1.25rem;font-weight:850}
@media(max-width:550px){#page-staff-session{align-items:stretch;flex-direction:column;gap:8px;padding:12px 16px}}

#event-pricing-editor,#registration-event-pricing{border:1px solid var(--line);padding:16px;border-radius:14px;margin:20px 0}#event-pricing-editor fieldset,#registration-event-pricing fieldset{border:1px solid var(--line);border-radius:12px;margin:16px 0;padding:16px;min-width:0}#event-pricing-editor input,#event-pricing-editor textarea,#event-pricing-editor select{max-width:100%}
:root:has(body.salesops-workspace){background:#fffdf8;color-scheme:light}
/* Operational screens share the light welcome palette; guest menu design remains owner-controlled. */
.salesops-workspace{color-scheme:light;--bg:#fffdf8!important;--surface:#fff!important;--line:#d5e2d9!important;--border:#d5e2d9!important;--text:#203d33!important;--muted:#52695c!important;background:var(--bg);color:var(--text);line-height:1.55}
.salesops-workspace header{background:#fffdf8}.salesops-workspace .brand b{background:#e9b77b;color:#241e16}.salesops-workspace a{color:#19634b}.salesops-workspace .brand{color:#203d33}
.salesops-workspace h1,.salesops-workspace h2{font-family:system-ui,sans-serif;font-weight:750;letter-spacing:-.035em}.salesops-workspace h1{font-size:clamp(2.1rem,5vw,4rem);line-height:1.13}.salesops-workspace h2{font-size:1.7rem}
.salesops-workspace .hero{background:#e4f2e9!important;padding:40px 30px;color:#203d33!important}.salesops-workspace .hero .muted,.salesops-workspace .hero>p:last-child{color:#52695c!important}.salesops-workspace .eyebrow{color:#19634b}
.salesops-workspace button{background:#19634b;color:#fff}.salesops-workspace button:disabled{opacity:.55}.salesops-workspace button.outline{background:#fff;color:#19634b;border-color:#b4ccbd}.salesops-workspace .staff-nav button.selected{background:#19634b;color:#fff;border-color:#19634b}
.salesops-workspace input,.salesops-workspace select,.salesops-workspace textarea{background:#fff;color:#203d33;border-color:#b6c5bb;accent-color:#19634b;max-width:100%}.salesops-workspace input::placeholder,.salesops-workspace textarea::placeholder{color:#687a70}
.salesops-workspace .card,.salesops-workspace #staff-tools article{background:#fff;box-shadow:0 4px 18px #203d3305}.salesops-workspace #staff-panels>article:nth-child(3n+1){background:#eaf5ef}.salesops-workspace #staff-panels>article:nth-child(3n+2){background:#f1ecfa}.salesops-workspace #staff-panels>article:nth-child(3n){background:#fff0e5}
.salesops-workspace dialog{background:#fffdf8;box-shadow:0 18px 70px #203d3333}.salesops-workspace dialog::backdrop{background:#17382b73}.salesops-workspace footer{background:#fffdf8}.salesops-workspace .staff-session-strip{background:#e4f2e9;color:#203d33;border-color:#b4ccbd}.salesops-workspace .staff-session-strip .outline{background:white;color:#19634b;border-color:#b4ccbd}
.salesops-workspace #error,.salesops-workspace #orders-error,.salesops-workspace .error{color:#a2332d}.salesops-workspace :focus-visible{outline:3px solid #976ae3;outline-offset:3px}.salesops-workspace .stock-movement-table thead th{background:#e4f2e9}.salesops-workspace .stock-movement-table tr>:first-child{background:#f4f8f4}
.salesops-workspace .billing-plans{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-block:20px}.salesops-workspace .billing-plans article{padding:16px;border:1px solid var(--line);border-radius:16px;background:#e4f2e9}.salesops-workspace .billing-plans article:nth-child(2){background:#ede7f8}.salesops-workspace .billing-plans article:nth-child(3){background:#fbe9dd}.salesops-workspace .billing-plans strong{display:block;font-size:1.25rem}@media(max-width:600px){.salesops-workspace .hero{padding:28px 20px}.salesops-workspace .billing-plans{grid-template-columns:1fr}.salesops-workspace header{align-items:flex-start;flex-wrap:wrap}}

/* Keep the full navigation and popup controls reachable on phones and short displays. */
dialog{max-height:88vh;max-height:88dvh;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;overflow-wrap:anywhere}
#orders-dialog{width:min(1100px,96vw);max-width:96vw}
#orders-dialog .staff-nav{overflow:visible;align-items:stretch;min-width:0}
#orders-dialog .staff-nav button{flex:0 1 auto;max-width:100%;white-space:normal;overflow-wrap:anywhere}
dialog.staff-alert{position:fixed;inset:auto 14px 14px auto;margin:0;width:min(440px,calc(100vw - 28px));max-height:65vh;max-height:65dvh;z-index:60;box-shadow:0 8px 36px #0004;border:2px solid var(--line)}
.staff-alert-dismiss{display:block;margin-left:auto;margin-bottom:8px;position:sticky;top:0;z-index:2}
@media(max-width:600px){#orders-dialog{padding:16px;width:96vw}#orders-dialog .staff-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}#orders-dialog .staff-nav button{width:100%;font-size:.9rem;text-align:left}dialog.staff-alert{max-height:55vh;max-height:55dvh}#orders-dialog>.staff-session-strip{top:-16px;margin:-16px -16px 16px}}

/* Compact operational dashboard; customer menu and other dialogs keep their sizes. */
#orders-dialog{width:min(800px,94vw);max-width:94vw;padding:16px;border-radius:14px;font-size:14px;line-height:1.4}
#orders-dialog h2{font-size:22px;line-height:1.2;margin:8px 0}
#orders-dialog h3{font-size:17px;line-height:1.3;margin:10px 0}
#orders-dialog p{margin-block:8px}
#orders-dialog button,#orders-dialog input,#orders-dialog select,#orders-dialog textarea{font-size:inherit}
#orders-dialog button{padding:7px 10px;min-height:36px;border-radius:8px}
#orders-dialog>.staff-session-strip{font-size:14px;line-height:1.4;padding:10px 16px;top:-16px;margin:-16px -16px 12px}
#orders-dialog #staff-identity{display:none}
#orders-dialog .staff-primary{gap:6px;margin:10px 0}
#orders-dialog .staff-primary>button{flex:0 1 auto}
#orders-dialog .staff-nav{gap:6px;padding:8px 0;margin:8px 0}
#orders-dialog #staff-tools article{padding:12px;margin-block:10px;border-radius:10px}
#orders-dialog .close{min-width:36px}
@media(max-width:600px){
 #orders-dialog{width:94vw;padding:14px}
 #orders-dialog>.staff-session-strip{top:-14px;margin:-14px -14px 10px;padding:10px 14px}
 #orders-dialog h2{font-size:20px}
 #orders-dialog .staff-nav button{font-size:13px;min-height:44px;padding:8px}
 #orders-dialog .staff-primary>button,#orders-dialog input,#orders-dialog select{min-height:44px}
 #orders-dialog .staff-alert button{min-height:44px}
}
