:root{--brand-orange:#ff6500;--accent-soft:#fff1e7;--accent:#c2410c;--accent-dark:#9a3412;--chart-secondary:#454545;--ink:#242424;--muted:#737373;--border:#dedbd8;--line:#ece9e6;--panel-gray:#fff1e7;--dark:#242424}
*{box-sizing:border-box}body{margin:0;background:#fff;color:var(--ink);font:14px 'Bricolage Grotesque',Arial,Helvetica,sans-serif}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.topbar{height:45px;background:var(--dark);color:white;position:fixed;top:0;left:0;right:0;z-index:20;display:flex;align-items:center;justify-content:space-between;padding:0 10px 0 13px}.top-brand,.top-right{display:flex;align-items:center;gap:16px}.brand-name{font-weight:700;font-size:14px}.icon-button{border:0;background:none;color:#fff;font-size:18px;width:33px}.top-branch{border:1px solid #c4c7ce;padding:9px 12px;width:275px;height:37px;font-size:13px}.avatar{border:2px solid var(--brand-orange);border-radius:50%;background:#fff;color:var(--accent);font-size:22px;font-weight:bold;width:35px;height:35px}.sidebar{position:fixed;top:45px;bottom:0;left:0;width:51px;background:var(--dark);display:flex;flex-direction:column;align-items:center;justify-content:space-between;z-index:19;padding:11px 0 8px}.sidebar nav{display:flex;flex-direction:column;align-items:center;gap:5px;width:100%;overflow-y:auto;scrollbar-width:none}.nav-icon{border:0;background:transparent;color:white;width:37px;height:35px;border-radius:6px;font-size:23px;display:grid;place-items:center;flex-shrink:0}.nav-icon:hover,.nav-icon.active,.logout{background:var(--accent)}.main-content{margin-left:51px;padding-top:45px;min-height:100vh}.security-banner{height:44px;background:#fffbea;border-bottom:1px solid #f0b34b;display:flex;align-items:center;justify-content:center;gap:15px;position:relative;color:#25190d}.small-purple,.print-button{background:var(--accent);border:0;color:#fff;border-radius:5px;padding:7px 12px;font-weight:600}.small-purple:hover,.print-button:hover{background:var(--accent-dark)}.banner-close{position:absolute;right:16px;top:6px;border:0;background:transparent;color:#c05e08;font-size:25px}.dashboard-content{padding:22px 29px 20px 36px}.filters{display:flex;gap:11px;align-items:flex-end;margin:0 0 18px 10px;flex-wrap:wrap}.field{display:flex;flex-direction:column;position:relative;width:220px}.date-field{width:265px}.search-field{width:178px}.field-caption{font-size:11px;color:#151515;background:#fff;align-self:flex-start;padding:0 3px;position:absolute;top:-6px;left:8px;z-index:1}.field input,.field select{height:38px;border:1px solid #d8d3ce;border-radius:3px;background:white;padding:0 10px;width:100%;color:var(--ink)}.search-field .field-caption{display:none}.search-field input::placeholder{color:var(--muted)}.print-button{height:31px;margin-bottom:4px;min-width:76px}.dashboard-grid{display:grid;grid-template-columns:1.15fr 1.15fr 1fr;grid-template-rows:135px 324px minmax(196px,auto);gap:7px;align-items:stretch}.metric-card,.panel{border:1px solid var(--border);border-radius:8px;background:#fff;overflow:hidden;min-width:0}.metric-card{padding:22px}.metric-heading{display:flex;align-items:center;gap:10px;color:#626262;font-size:15px}.metric-icon{background:var(--accent);border-radius:3px;color:white;font-size:25px;display:grid;place-items:center;width:37px;height:37px}.metric-number{font-size:28px;margin-top:14px;color:#050505;font-weight:500}.chart-card{grid-column:3;grid-row:1/span 2;padding:18px 15px}.panel h2{font-size:16px;line-height:1.2;font-weight:600;margin:0;text-align:center;padding:15px 6px 13px}.chart-card h2{text-align:left;padding:0}.chart-container{position:relative;width:min(100%,350px);aspect-ratio:1;margin:16px auto 0}.chart-container canvas{display:block;width:100%;height:100%}.empty-chart{position:absolute;inset:0;display:grid;place-items:center;text-align:center;color:#7d8190;padding:40px}.empty-chart[hidden]{display:none}.chart-legend{display:flex;justify-content:center;gap:23px;color:#626262;font-size:12px;margin-top:5px}.chart-legend span{display:flex;align-items:center;gap:5px}.dot{display:inline-block;width:10px;height:10px;border-radius:50%}.card-dot{background:var(--accent)}.cash-dot{background:var(--chart-secondary)}.panel-summary{background:var(--panel-gray);height:44px;display:flex;align-items:center;justify-content:center;gap:4px;color:var(--accent);font-weight:600;white-space:nowrap}.data-row{border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;padding:7px 11px;font-size:13px}.data-row span:last-child{min-width:36%;text-align:left}.report-panel{display:flex;flex-direction:column}.report-rows{flex:1;overflow:auto;min-height:0}.outline-button{border:1px solid var(--accent);background:white;border-radius:5px;color:#151515;padding:6px;margin:10px 14px;font-size:12px}.outline-button:hover{background:var(--accent-soft)}.orders-panel{grid-column:1;grid-row:3}.discount-panel{grid-column:2;grid-row:3}.summary-gap{margin-left:16px}table{border-collapse:collapse;width:100%;font-size:13px;text-align:left}th,td{padding:12px;border-bottom:1px solid var(--line)}th{font-weight:600}td{padding-top:7px;padding-bottom:7px}.muted-row{text-align:center;color:#8b91a0}.demo-note{color:#858b9a;font-size:12px;margin:20px 0 0}.details-dialog{border:1px solid #ddd;border-radius:12px;padding:0;width:min(470px,calc(100vw - 32px));box-shadow:0 15px 80px #0004}.details-dialog::backdrop{background:#0007}.dialog-header,.dialog-footer{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #eee}.dialog-header h2{font-size:18px;margin:0}.dialog-header button{border:none;background:none;font-size:24px}.dialog-footer{justify-content:flex-end;border-top:1px solid #eee;border-bottom:0}.dialog-body{padding:12px 20px}.dialog-body .data-row{padding:10px 0}.toast{position:fixed;bottom:20px;right:20px;background:#242424;color:#fff;padding:12px 18px;border-radius:8px;box-shadow:0 6px 30px #0003;opacity:0;transform:translateY(12px);pointer-events:none;transition:.2s;z-index:50}.toast.show{opacity:1;transform:translateY(0)}.sidebar.compact{transform:translateX(-100%)}.main-content.expanded{margin-left:0}
@media(max-width:1200px){.dashboard-grid{grid-template-columns:1fr 1fr;grid-template-rows:135px 315px auto auto}.chart-card{grid-column:1/-1;grid-row:4}.orders-panel{grid-row:3}.discount-panel{grid-row:3}.dashboard-content{padding:20px}.filters{margin-left:0}}
@media(max-width:680px){.top-branch{display:none}.brand-name{font-size:12px}.sidebar{width:51px;transform:translateX(-100%);transition:transform .2s}.sidebar.mobile-open{transform:translateX(0)}.main-content{margin-left:0}.security-banner{height:auto;min-height:49px;padding:10px 40px 10px 10px;justify-content:flex-start;gap:6px;flex-wrap:wrap;font-size:12px}.dashboard-content{padding:16px 10px}.filters{gap:10px}.field,.date-field,.search-field{width:calc(50% - 5px)}.print-button{width:calc(50% - 5px);margin-bottom:3px;height:38px}.dashboard-grid{grid-template-columns:1fr 1fr;grid-template-rows:auto auto auto auto;gap:9px}.metric-card{padding:15px 10px;min-height:105px}.metric-heading{font-size:12px}.metric-icon{width:30px;height:30px;font-size:20px}.metric-number{font-size:21px;margin-top:12px}.customers-panel,.report-panel,.orders-panel,.discount-panel,.chart-card{grid-column:1/-1;grid-row:auto}.customers-panel{min-height:170px}.report-panel{min-height:320px}.orders-panel,.discount-panel{min-height:180px}.chart-card{min-height:340px}.chart-container{max-width:290px}.panel-summary{font-size:12px;white-space:normal}.summary-gap{margin-left:8px}.demo-note{line-height:1.5}}
@media print{.topbar,.sidebar,.security-banner,.filters,.demo-note,.outline-button,.toast{display:none!important}.main-content{margin:0;padding:0}.dashboard-content{padding:0}.dashboard-grid{grid-template-columns:1fr 1fr 1fr;grid-template-rows:135px 324px 200px}.chart-card{grid-column:3;grid-row:1/span 2}.orders-panel{grid-column:1;grid-row:3}.discount-panel{grid-column:2;grid-row:3}body{print-color-adjust:exact;-webkit-print-color-adjust:exact}}

/* Consistent outline sidebar icons. */
.nav-icon svg{width:20px;height:20px;display:block;flex-shrink:0}.sidebar nav{gap:4px}.nav-icon{height:36px}.nav-icon.active{box-shadow:0 2px 5px #0003}

/* Sliding sidebar: a persistent icon rail expands to reveal menu labels. */
.sidebar{padding-top:0;transition:width .24s ease;overflow:hidden;justify-content:flex-start}
.sidebar-toggle{height:34px;min-height:34px;width:100%;border:0;border-bottom:1px solid #ffffff10;background:transparent;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;margin-bottom:7px}
.sidebar-toggle:hover{background:#ffffff0c}
.sidebar-toggle svg{width:17px;height:17px;transition:transform .24s ease}
.sidebar nav{flex:1;min-height:0;align-items:stretch;padding:0 7px;overflow-x:hidden}
.sidebar .nav-icon{width:37px;min-height:36px;display:flex;align-items:center;justify-content:flex-start;padding:0 8px;gap:15px;overflow:hidden;text-align:left}
.nav-label{white-space:nowrap;font-size:13px;opacity:0;transition:opacity .16s ease}
.sidebar .logout{margin:8px 7px 0;flex-shrink:0}
.sidebar.is-expanded{width:220px}
.sidebar.is-expanded .nav-icon{width:206px}
.sidebar.is-expanded .nav-label{opacity:1}
.sidebar.is-expanded .sidebar-toggle svg{transform:rotate(180deg)}
.main-content{transition:margin-left .24s ease}
.main-content.sidebar-expanded{margin-left:220px}
@media(max-width:680px){.sidebar{transform:none}.main-content,.main-content.sidebar-expanded{margin-left:51px}.sidebar.is-expanded{box-shadow:8px 0 24px #0003}}
@media(prefers-reduced-motion:reduce){.sidebar,.main-content,.sidebar-toggle svg,.nav-label{transition:none}}

/* Company branding remains visible in both sidebar sizes. */
.sidebar-brand{width:100%;height:38px;min-height:38px;padding:3px 4px 8px;display:flex;align-items:center;justify-content:center;transition:height .24s ease,min-height .24s ease}
.sidebar-brand img{display:block;width:100%;height:100%;object-fit:contain}
.sidebar.is-expanded .sidebar-brand{height:104px;min-height:104px;padding:8px 12px 16px}
@media(prefers-reduced-motion:reduce){.sidebar-brand{transition:none}}

/* Expanded panel header: company logo and close control. */
.sidebar-brand{display:none}
.sidebar.is-expanded{padding-top:62px}
.sidebar.is-expanded .sidebar-brand{display:flex;position:absolute;top:0;left:0;width:174px;height:62px;min-height:62px;padding:8px 10px}
.sidebar.is-expanded .sidebar-toggle{position:absolute;top:0;right:0;width:40px;height:62px;min-height:62px;margin:0;border-bottom:0}
.sidebar.is-expanded .sidebar-toggle svg{transform:none}
.sidebar-close-icon{display:none}
.sidebar.is-expanded .sidebar-open-icon{display:none}
.sidebar.is-expanded .sidebar-close-icon{display:block}
.sidebar.is-expanded nav{border-top:1px solid #ffffff10;padding-top:10px}

/* Header and page move together beside the full-height sidebar. */
.topbar{left:51px;transition:left .24s ease}
.topbar.sidebar-expanded{left:220px}
.sidebar{top:0;z-index:21}
@media(max-width:680px){.topbar,.topbar.sidebar-expanded{left:51px}}
@media(prefers-reduced-motion:reduce){.topbar{transition:none}}
@media(max-width:680px){.topbar.sidebar-expanded{left:220px}.main-content.sidebar-expanded{margin-left:220px}}
/* Keep the sidebar header divider level with the page header. */
.sidebar-toggle{height:45px;min-height:45px;margin-bottom:0}
.sidebar nav{padding-top:10px}
.sidebar.is-expanded{padding-top:45px}
.sidebar.is-expanded .sidebar-brand{height:45px;min-height:45px;padding:4px 10px}
.sidebar.is-expanded .sidebar-toggle{height:45px;min-height:45px}
.sidebar.is-expanded nav{border-top:0}
.sidebar::after{content:"";position:absolute;top:44px;left:0;right:0;height:1px;background:#ffffff10;pointer-events:none}
.sidebar-toggle{border-bottom:0}

/* Typography matched to the supplied dashboard reference. */
body{font-family:'Bricolage Grotesque',Arial,Helvetica,sans-serif}
button,input,select{font-family:inherit}
.panel h2,.dialog-header h2,.brand-name{font-weight:700}

.sidebar .nav-label{font-weight:700}

/* Codex Technologies: orange accents, charcoal navigation, white surfaces. */
body{background:#f7f6f4}
.topbar{border-bottom:1px solid #ffffff10}
.brand-name{letter-spacing:.4px}
.sidebar .nav-icon:hover{background:#ffffff10;color:#ff8c40}
.sidebar .nav-icon.active{background:var(--brand-orange);color:#242424;box-shadow:0 2px 8px #0002}
.sidebar .logout{background:transparent;color:#fff}
.sidebar .logout:hover{background:var(--accent);color:#fff}
.metric-card,.panel{box-shadow:0 2px 6px #24242405}
.metric-icon{background:var(--accent-soft);color:var(--accent)}
.metric-number{color:var(--ink);font-weight:700}
.panel-summary{color:var(--accent-dark)}
.field-caption{background:#f7f6f4;color:#525252}
.field input:focus,.field select:focus{border-color:var(--accent)}
.outline-button{color:var(--accent-dark);font-weight:700}
.avatar{background:#fff7f0;color:var(--accent-dark)}
.chart-legend,.empty-chart,.muted-row{color:#737373}

/* Softer corners on dashboard filters and print action. */
.field input,.field select,.print-button{border-radius:10px}

.metric-icon svg{width:23px;height:23px;display:block}.print-button{display:inline-flex;align-items:center;justify-content:center;gap:6px}.print-button svg{width:16px;height:16px;flex-shrink:0}

/* Settings overview follows the reference's five-card layout. */
[hidden]{display:none!important}
.settings-page{padding:28px 36px;min-height:calc(100vh - 45px);background:#fff}
.settings-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:28px}
.settings-card{min-height:145px;padding:24px 12px;border:1px solid var(--accent);border-radius:10px;background:#fff;color:var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;font-weight:700;line-height:1.4;transition:background .15s,box-shadow .15s}
.settings-card svg{width:28px;height:28px;color:var(--accent)}
.settings-card:hover,.settings-card:focus-visible{background:var(--accent-soft);box-shadow:0 3px 12px #c2410c12}
.settings-detail{max-width:760px;border:1px solid var(--border);border-radius:12px;padding:24px;background:#fff}
.settings-detail .outline-button{margin:0 0 20px;padding:8px 12px}
.settings-detail h1{font-size:22px;margin:0 0 12px}
.settings-detail p{color:var(--muted);line-height:1.6;margin:0}
@media(max-width:1100px){.settings-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}}
@media(max-width:680px){.settings-page{padding:20px 12px}.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.settings-card{min-height:130px}}
@media(max-width:380px){.settings-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.settings-card{transition:none}}

/* POS workspace: product catalog and persistent checkout panel. */
.pos-page{display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,30%);gap:12px;padding:12px;height:calc(100vh - 45px);min-height:650px}
.pos-catalog,.pos-order{background:#fff;border:1px solid var(--border);border-radius:12px;min-width:0;overflow:hidden}
.pos-catalog{display:flex;flex-direction:column;padding:14px}
.pos-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pos-title{margin-right:auto;min-width:120px}.pos-title h1{font-size:20px;margin:0 0 4px}.pos-title>span{font-size:12px;color:var(--muted)}
.pos-toolbar input,.order-fields select,.order-fields input{height:40px;border:1px solid var(--border);border-radius:9px;padding:0 10px;background:#fff;color:var(--ink);min-width:0;width:100%}
.pos-toolbar input{width:210px}.pos-toolbar .outline-button{margin:0;padding:8px 10px;white-space:nowrap;height:34px}.queue-count{margin-left:5px}
.pos-category-strip{display:flex;align-items:center;gap:6px;flex-shrink:0;margin-top:18px;border-bottom:1px solid var(--line)}
.pos-categories{display:flex;gap:16px;flex:1;min-width:0;scrollbar-width:none}
.pos-categories::-webkit-scrollbar{display:none}
.pos-category-scroll{display:grid;place-items:center;flex:none;width:32px;height:32px;padding:0;border:1px solid var(--border);border-radius:8px;background:#fff;color:var(--accent)}
.pos-category-scroll svg{width:16px;height:16px}
.pos-category-scroll:not(:disabled):hover{background:var(--accent-soft)}
.pos-category-scroll:disabled{opacity:.4;cursor:default}
.pos-category{border:0;border-bottom:2px solid var(--accent);background:transparent;color:var(--accent);font-weight:700;padding:10px 4px}
.pos-products{flex:1;overflow:auto;display:grid;place-items:center;min-height:220px}.pos-empty{text-align:center;color:var(--muted);padding:30px}.pos-empty svg{width:48px;height:48px;color:var(--accent);opacity:.65}.pos-empty h2{font-size:17px;color:var(--ink);margin:16px 0 8px}.pos-empty p{line-height:1.6;font-size:13px}
.pos-order{display:flex;flex-direction:column;padding:12px;background:#fdfcfb;overflow:auto}
.order-modes{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.order-modes button{border:1px solid var(--border);border-radius:9px;background:#fff;padding:10px 3px;font-size:10px;text-transform:uppercase;letter-spacing:.4px;font-weight:700;color:var(--ink)}.order-modes button.active{background:var(--accent);border-color:var(--accent);color:#fff}
.order-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.order-fields select{font-size:13px}.order-fields label{font-size:12px;color:var(--muted)}.order-fields label input,.order-fields label select{display:block;margin-top:5px;color:var(--ink)}
.cart-head{display:grid;grid-template-columns:1fr 60px 60px;font-size:10px;text-transform:uppercase;border-top:1px solid var(--line);margin-top:20px;padding:12px 6px;color:var(--muted)}
.pos-cart{flex:1;min-height:150px;display:grid;place-items:center;color:var(--muted);font-size:13px}
.order-subtotal{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:var(--muted);padding:10px 3px}.order-subtotal strong{color:var(--accent);font-weight:400}.order-total{display:flex;justify-content:space-between;background:var(--accent);color:white;border-radius:9px;padding:12px;font-size:14px}
.payment-status{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap;font-size:11px;padding:10px 2px;color:var(--muted)}.payment-status b{font-weight:400}.payment-status .outline-button{margin:0;padding:6px 10px}
#posNote{width:100%;min-height:65px;resize:vertical;border:1px solid var(--border);border-radius:8px;padding:10px;font:inherit;margin-bottom:10px}
.order-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.order-actions button{padding:11px 4px;border:1px solid var(--border);border-radius:8px;font-size:10px;font-weight:700;text-transform:uppercase}.order-actions button:disabled{background:#f0eeeb;color:#99938d;cursor:not-allowed}
@media(max-width:1050px){.pos-page{grid-template-columns:minmax(0,1fr) 340px}.pos-toolbar input{width:100%}}
@media(max-width:780px){.pos-page{height:auto;grid-template-columns:1fr}.pos-catalog{min-height:400px}.pos-order{min-height:620px}.pos-toolbar input{width:100%}}
@media print{.pos-page{height:auto;min-height:0}}

/* Bottom logout action mirrors the reference in the brand palette. */
.sidebar-footer{width:100%;border-top:1px solid #ffffff14;padding:12px 7px 4px;flex-shrink:0}
.sidebar .sidebar-footer .logout{margin:0;width:37px;height:34px;min-height:34px;background:var(--accent);color:#fff;border-radius:7px;justify-content:center;padding:0;gap:10px;box-shadow:0 2px 5px #0003}
.sidebar .sidebar-footer .logout:hover{background:var(--accent-dark);color:#fff}
.sidebar.is-expanded .sidebar-footer .logout{width:206px}
.sidebar-footer .logout svg{width:18px;height:18px}
.sidebar:not(.is-expanded) .sidebar-footer .nav-label{display:none}

/* Branded sign-in screen. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.is-logged-out>.topbar,.is-logged-out>.sidebar,.is-logged-out>.main-content{display:none}
.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:90px 20px 40px;position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 15% 20%,#bc541c66,transparent 45%),radial-gradient(ellipse at 90% 65%,#ff650040,transparent 50%),linear-gradient(135deg,#191919,#403027 55%,#191919)}
.login-page:before,.login-page:after{content:"";position:absolute;z-index:-1;width:140vw;height:140vw;border:1px solid #ffffff12;border-radius:50%;left:-20vw;top:35vh;pointer-events:none}
.login-page:after{width:120vw;height:120vw;left:-10vw;top:45vh}
.login-logo{position:absolute;left:26px;top:16px;width:155px;height:76px;object-fit:contain}
.login-card{width:468px;max-width:100%;background:#fff;border-radius:14px;padding:40px 48px 28px;box-shadow:0 24px 80px #0004;text-align:center}
.login-symbol{width:50px;height:50px;display:grid;place-items:center;margin:0 auto 18px;border-radius:10px;background:var(--accent-soft);color:var(--accent);box-shadow:0 2px 6px #0001}.login-symbol svg{width:26px;height:26px}
.login-card h1{font-size:25px;margin:0 0 16px;font-weight:700}.login-intro{color:var(--muted);font-size:14px;line-height:1.5;margin:0 0 18px}
.login-field{display:flex;align-items:center;gap:10px;background:#faf7f4;border:1px solid var(--border);border-radius:9px;padding:0 12px;margin-bottom:14px;height:45px;color:#8c7e74}.login-field:focus-within{border-color:var(--accent);outline:2px solid #c2410c18}.login-field>svg{width:19px;height:19px;flex-shrink:0}.login-field input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--ink);height:100%;font-size:14px}.login-field input:focus-visible{outline:none}.login-field button{display:grid;place-items:center;border:0;background:none;color:#84766c;padding:4px}.login-field button svg{width:19px;height:19px}
.login-help{text-align:right;margin:-3px 0 18px}.login-help button{border:0;background:none;font-size:12px;color:var(--accent-dark);padding:0}.login-submit{width:100%;border:0;border-radius:8px;background:var(--accent);color:#fff;font-weight:700;padding:11px}.login-submit:hover{background:var(--accent-dark)}
.login-error{font-size:12px;line-height:1.5;color:#a52b15;text-align:left;background:#fff1e7;border-radius:6px;padding:10px}
.demo-credentials{margin-top:22px;padding:14px;border:1px dashed #e5c5b2;border-radius:9px;background:#fffaf6;display:flex;flex-direction:column;gap:7px;font-size:12px;color:#6f6158}.demo-credentials>strong{color:var(--ink);font-size:13px}.demo-credentials b{font-weight:400}.demo-credentials button{border:0;background:none;color:var(--accent-dark);font-size:12px;font-weight:700;margin-top:4px;text-decoration:underline}
.login-caption{font-size:11px;color:var(--muted);margin:22px 0 0}
@media(max-width:500px){.login-page{padding:110px 16px 24px;align-items:flex-start}.login-card{padding:30px 24px}.login-logo{width:130px;left:20px;top:14px}.login-card h1{font-size:23px}}
/* Restaurant photo beneath the branded login overlay. */
.login-page{background:linear-gradient(125deg,rgba(24,18,14,.86),rgba(115,48,12,.64) 55%,rgba(24,18,14,.8));background-color:#242424}

.social-divider{display:flex;align-items:center;gap:20px;margin:24px 0 12px;font-size:13px;color:var(--ink)}
.social-divider:before,.social-divider:after{content:"";height:1px;background:var(--line);flex:1}
.social-divider span{white-space:nowrap}
.social-login{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.social-login button{height:38px;display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid var(--border);border-radius:6px;box-shadow:0 1px 2px #00000008;color:#111}
.social-login button:hover{background:var(--accent-soft);border-color:var(--accent)}
.social-login svg{width:22px;height:22px}

/* Rounded dashboard cards and report panels. */
.dashboard-grid .metric-card,.dashboard-grid .panel{border-radius:16px}

.top-branch{border-radius:10px;display:flex;align-items:center;gap:9px;border-color:#ffffff40;background:#ffffff06}.top-branch svg{width:18px;height:18px;flex-shrink:0;color:#ff8c40}.top-branch span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:680px){.top-branch{display:none}}

.avatar{display:flex;align-items:center;justify-content:center;padding:5px;overflow:hidden}.avatar img{display:block;width:100%;height:100%;object-fit:contain}

/* Additional dashboard summaries. */
.tables-panel{grid-column:1;grid-row:4;min-height:260px}
.item-sales-panel{grid-column:2;grid-row:4;min-height:260px}
@media(max-width:1200px) and (min-width:681px){.tables-panel,.item-sales-panel{grid-row:5}}
@media(max-width:680px){.tables-panel,.item-sales-panel{grid-column:1/-1;grid-row:auto;min-height:220px}}
@media print{.tables-panel,.item-sales-panel{grid-row:4;break-inside:avoid}}

.sidebar .nav-icon.active,.sidebar .nav-icon.active:hover{color:#fff}

/* Transaction and order summaries below Orders and Discounts. */
.cash-transactions-panel,.payment-modes-panel,.order-types-panel,.order-channels-panel{min-height:300px}
.cash-transactions-panel{grid-column:1;grid-row:4}
.payment-modes-panel{grid-column:2;grid-row:4}
.order-types-panel{grid-column:1;grid-row:5}
.order-channels-panel{grid-column:2;grid-row:5}
.tables-panel,.item-sales-panel{grid-row:6}
@media(max-width:1200px) and (min-width:681px){
  .chart-card{grid-row:7}
  .tables-panel,.item-sales-panel{grid-row:6}
}
@media(max-width:680px){
  .cash-transactions-panel,.payment-modes-panel,.order-types-panel,.order-channels-panel,.tables-panel,.item-sales-panel{grid-column:1/-1;grid-row:auto;min-height:240px}
}
@media print{
  .cash-transactions-panel,.payment-modes-panel{grid-row:4;break-inside:avoid}
  .order-types-panel,.order-channels-panel{grid-row:5;break-inside:avoid}
  .tables-panel,.item-sales-panel{grid-row:6}
}

/* Solid brand background for sales metric icons. */
.metric-icon{background:var(--accent);color:#fff}

.pos-categories{overflow-x:auto}.pos-category{white-space:nowrap;color:var(--muted);border-bottom-color:transparent}.pos-category.active{color:var(--accent);border-bottom-color:var(--accent)}
.pos-products.has-products{display:grid;grid-template-columns:repeat(auto-fill,minmax(135px,1fr));align-content:start;align-items:stretch;justify-items:stretch;gap:10px;padding:14px 0}
.product-card{min-height:145px;border:1px solid var(--border);border-radius:12px;background:#fff;display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:14px;gap:12px;color:var(--ink)}.product-card:hover{border-color:var(--accent);background:var(--accent-soft)}.product-category{font-size:10px;color:var(--muted);text-transform:uppercase}.product-card strong{font-size:13px;line-height:1.4}.product-price{margin-top:auto;background:var(--accent-soft);color:var(--accent-dark);padding:4px 6px;border-radius:5px;font-size:12px;font-weight:700}
.pos-cart.has-items{display:block;overflow:auto}.cart-item{display:grid;grid-template-columns:1fr auto;gap:8px;padding:12px 3px;border-bottom:1px solid var(--line);font-size:12px}.cart-item>span{color:var(--accent)}.cart-quantity{display:flex;align-items:center;gap:8px}.cart-quantity button{border:1px solid var(--border);background:#fff;border-radius:5px;color:var(--accent);width:26px;height:26px}.cart-quantity span{min-width:14px;text-align:center}
#menuDescription{white-space:pre-line}

.product-card{padding:0 0 12px;gap:9px;overflow:hidden;min-height:220px}
.product-photo{width:100%;aspect-ratio:1;object-fit:contain;display:block;background:#f3eee9;border-bottom:1px solid var(--line)}
.product-card>.product-category,.product-card>strong,.product-card>.product-price{margin-left:10px;margin-right:10px}
.product-card>.product-price{margin-top:auto}
.product-card.photo-unavailable{padding-top:16px}

/* Compact added-item cards, matching the supplied checkout reference. */
.cart-head{grid-template-columns:1fr 82px 80px;gap:8px;padding:12px 8px 8px}
.cart-item{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid var(--border);border-radius:9px;padding:9px 8px;margin-bottom:7px;background:#fff}
.cart-item-info{display:flex;flex-direction:column;gap:4px;min-width:70px;flex:1}.cart-item-info strong{font-size:12px;line-height:1.35}.cart-unit-price{font-size:10px;color:var(--muted)}.cart-item-note{font-size:11px;color:var(--accent);overflow-wrap:anywhere}.cart-item-note:empty{display:none}
.cart-item-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}.cart-line-total{color:var(--accent);font-weight:700;font-size:12px;white-space:nowrap}
.cart-quantity{border:1px solid var(--border);border-radius:7px;gap:0;overflow:hidden;height:25px}.cart-quantity button{border:0;border-radius:0;width:23px;height:23px;font-size:14px;color:var(--muted)}.cart-quantity span{min-width:25px;font-size:11px}.cart-quantity button:hover{background:var(--accent-soft);color:var(--accent)}
.cart-discount{width:43px;height:25px;border:1px solid var(--border);border-radius:7px;background:#fff;text-align:center;color:var(--ink);font-size:11px;padding:2px;appearance:textfield}.cart-discount::-webkit-inner-spin-button,.cart-discount::-webkit-outer-spin-button{appearance:none;margin:0}
.cart-icon-button{width:25px;height:25px;border:1px solid var(--border);border-radius:7px;display:grid;place-items:center;background:#fff;color:var(--muted);padding:4px}.cart-icon-button svg{width:14px;height:14px}.cart-remove{color:#e34d42}.cart-icon-button:hover{background:var(--accent-soft)}
.pos-cart.has-items{padding-top:2px}
/* Reset empty-cart centering when item cards are present. */
.pos-cart.has-items{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;place-items:normal;gap:0;width:100%}
.pos-cart.has-items .cart-item{width:100%;flex-shrink:0;box-sizing:border-box}

.product-card{position:relative}
.product-cart-count{position:absolute;top:6px;right:6px;min-width:23px;height:23px;padding:0 6px;border:2px solid #fff;border-radius:999px;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;box-shadow:0 1px 4px #0002;z-index:1}
.product-card.in-cart{border-color:var(--accent)}

/* Use the sidebar typeface consistently throughout the application. */
:root{--font-ui:'Bricolage Grotesque',Arial,Helvetica,sans-serif}
html,body{font-family:var(--font-ui)}
body *,body *::before,body *::after{font-family:inherit}
input,select,textarea,button{font-family:var(--font-ui)}

.product-cart-count{border:0;box-shadow:none}
/* Category management table. */
#menuDetail.category-detail{max-width:none;border:0;padding:0}
.category-toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:20px}
.category-toolbar h1{font-size:20px;margin:0 5px 0 0}
.category-toolbar input,.category-toolbar select{height:39px;border:1px solid var(--border);border-radius:8px;padding:0 10px;background:white;color:var(--ink)}
.category-toolbar input{width:225px}.category-pagination{margin-left:auto;display:flex;align-items:center;gap:9px;font-size:12px;color:var(--muted)}.category-pagination select{height:31px;width:62px}.category-pagination button{border:0;background:transparent;color:var(--accent);font-size:24px;padding:0 5px}.category-pagination button:disabled{color:#d7d2cd;cursor:default}
.category-table-wrap{border:1px solid var(--border);border-radius:12px;overflow:auto}.category-table{min-width:650px}.category-table th{background:#f4efea;color:var(--ink);padding:17px 12px}.category-table td{padding:15px 12px;color:var(--muted)}.category-table tr:last-child td{border-bottom:0}.category-table th:first-child{width:12%}.category-table th:nth-child(2){width:26%}.category-table th:nth-child(3){width:26%}.category-row-action{border:0;background:transparent;color:var(--ink);font-size:24px;line-height:1;padding:0 10px}.category-footnote{font-size:11px;color:var(--muted);margin-top:15px}
.category-form-body{padding:20px;display:flex;flex-direction:column;gap:16px}.category-form-body label{display:flex;flex-direction:column;gap:7px;font-size:13px}.category-form-body input{height:40px;border:1px solid var(--border);border-radius:8px;padding:0 10px}#categoryError{font-size:12px;color:#b22b15;margin:0}.category-dialog .outline-button{margin:0 10px 0 0}
@media(max-width:900px){.category-pagination{margin-left:0}.category-toolbar h1{width:100%}}

.top-brand{min-width:0}.brand-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.top-right{flex-shrink:0}
.receipt-modal{width:440px;max-width:calc(100vw - 24px);max-height:90vh;border:0;border-radius:14px;padding:20px;background:#faf9f7;box-shadow:0 20px 80px #0004}.receipt-modal::backdrop{background:#18202a80}.receipt-toolbar{display:flex;justify-content:center;gap:8px;margin-bottom:15px}.receipt-toolbar button{border:1px solid var(--accent);border-radius:6px;background:white;color:var(--accent);padding:7px 12px}.receipt-toolbar button.active{background:var(--accent);color:white}#receiptClose{margin-left:auto;border:0;background:none;font-size:23px;color:#222}.receipt-sheet{width:305px;max-width:100%;margin:0 auto 18px;padding:16px 12px;background:#fff;color:#111;box-shadow:0 2px 6px #0001;border-radius:8px;font-size:11px}.receipt-sheet h2{text-align:center;font-size:16px;margin:8px 0}.receipt-sheet h3{text-align:center;font-size:16px;margin:16px 0}.receipt-center{text-align:center}.receipt-meta{display:flex;justify-content:space-between;gap:10px;padding:6px 0}.receipt-sheet table{font-size:10px;margin:12px 0;border-bottom:1px dashed #222}.receipt-sheet th,.receipt-sheet td{padding:6px 2px;color:#111}.receipt-sheet td:not(:first-child),.receipt-sheet th:not(:first-child){text-align:right}.receipt-sheet small{display:block;margin-top:4px}.receipt-grand{border-top:1px dashed #222;border-bottom:1px solid #222}.receipt-sheet footer{text-align:center;font-size:10px;border-top:1px solid #eee;padding-top:12px;margin-top:15px;font-weight:700}.receipt-print-action{display:block;margin:0 auto}.queue-modal{width:700px}#queueOrders{padding:16px}.queue-order{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}.queue-order p{font-size:12px;color:var(--muted)}
@media print{body.printing-receipt>*{display:none!important}body.printing-receipt>.receipt-modal{display:block!important;position:static;width:80mm;max-width:none;max-height:none;padding:0;overflow:visible;background:#fff;box-shadow:none;margin:0;border:0}body.printing-receipt .receipt-toolbar,body.printing-receipt .receipt-print-action{display:none!important}.receipt-sheet{width:100%;box-shadow:none;border-radius:0;break-inside:avoid;margin-bottom:12mm}}

.receipt-logo{display:block;width:220px;max-width:100%;height:auto;max-height:85px;object-fit:contain;margin:4px auto 12px}

.main-content{position:relative}
.section-loader{position:absolute;inset:45px 0 0;z-index:30;background:#ffffffbf;display:flex;justify-content:center;align-items:flex-start;padding-top:min(32vh,240px);pointer-events:auto}
.section-spinner{width:34px;height:34px;border:3px solid #eadfd7;border-top-color:var(--accent);border-radius:50%;animation:section-spin .65s linear infinite}
@keyframes section-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.section-spinner{animation:none}}
#chargesButton{background:#fff;border:1px solid var(--border);border-radius:999px;color:var(--accent);font-size:11px;padding:3px 10px}.charges-dialog{padding:0;width:770px;max-width:calc(100vw - 24px);border:0;border-radius:12px;box-shadow:0 20px 80px #0004}.charges-dialog::backdrop{background:#18283f70}.charges-body{padding:24px 20px}.charges-grand{display:flex;justify-content:space-between;background:#eefbf5;border:1px solid #a9e5c9;border-radius:12px;padding:14px 16px;color:#185a43;font-size:13px;margin-bottom:16px}.charges-grand>strong:first-child{font-size:11px;letter-spacing:.6px}.charges-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.charge-card{border:1px solid var(--border);border-radius:12px;padding:14px}.charge-heading{display:flex;justify-content:space-between;align-items:center;font-size:13px;margin-bottom:14px}.charge-switch{display:flex;background:#f1ede9;border-radius:7px;padding:2px}.charge-switch button{border:0;background:none;border-radius:5px;font-size:10px;padding:4px 10px;color:var(--muted)}.charge-switch button.active{background:var(--accent);color:#fff}.charge-values{display:grid;grid-template-columns:1fr 1fr;gap:8px}.charge-values label{position:relative}.charge-values label>span{position:absolute;top:-6px;left:8px;background:white;padding:0 3px;font-size:10px;color:var(--muted)}.charge-values input{height:38px;width:100%;border:1px solid var(--border);border-radius:7px;padding:0 10px;font:inherit}.charge-current{background:var(--accent-soft);border:1px solid #f1cfb8;border-radius:7px;padding:6px 10px;position:relative;font-size:12px;color:var(--accent-dark)}.charge-current>span{position:absolute;top:-7px;background:#fff;font-size:8px;letter-spacing:.6px;padding:0 3px}.charge-help{font-size:11px;color:var(--muted);margin-top:16px}.charges-footer{display:flex;justify-content:flex-end;margin-top:16px}@media(max-width:550px){.charges-grid{grid-template-columns:1fr}.charges-body{padding:18px 14px}}

.charge-current{display:flex;align-items:center;min-height:38px}

.queue-modal{width:1100px;max-width:calc(100vw - 30px)}.queue-table-wrap{overflow:auto;border:1px solid var(--border);border-radius:10px}.queue-table{min-width:950px}.queue-table th{background:#f4efea;padding:15px 12px}.queue-table td{padding:14px 12px}.queue-actions{display:flex;gap:7px;white-space:nowrap}.queue-actions button{margin:0;font-size:11px;padding:6px 9px}.queue-actions button:disabled{opacity:.4;cursor:not-allowed}.queue-action-form{padding:20px}.queue-action-form h2{font-size:18px;margin:0 0 18px}.queue-action-form label{display:flex;flex-direction:column;gap:8px;margin:16px 0;font-size:13px}.queue-action-form input,.queue-action-form textarea{border:1px solid var(--border);border-radius:8px;padding:10px;font:inherit}.queue-action-form .dialog-footer{padding:14px 0 0}

.queue-modal{width:1500px;max-height:92vh}.queue-filters{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:26px 28px;border-bottom:1px solid var(--line)}.queue-filters>input,.queue-filters select,.queue-filters label input{height:40px;border:1px solid var(--border);border-radius:8px;padding:0 10px;background:#fff;color:var(--ink);font:inherit}.queue-filters>input{width:190px}.queue-filters label{position:relative;font-size:11px}.queue-filters label input{display:block;width:155px;margin-top:3px}.queue-filters .outline-button{margin:0}.queue-table{min-width:1550px}.queue-table th{white-space:nowrap}.queue-table td{font-size:12px}.queue-modal #queueOrders{padding:10px 20px 20px}

/* Shared website typeface, including dialogs and printed receipts. */
html{font-optical-sizing:auto}
/* Keep text fields clean on focus without an extra outer stroke. */
input:focus,input:focus-visible,select:focus,select:focus-visible,textarea:focus,textarea:focus-visible{outline:none;box-shadow:none}
.login-field:focus-within{outline:none;box-shadow:none}
/* Align order queue filters while keeping date labels above their fields. */
.queue-filters{align-items:center}
.queue-filters label{position:relative}
.queue-filters label>input{margin-top:0;height:40px}
.queue-filters label{font-size:0}
.queue-filters label::before{position:absolute;top:-15px;left:0;font-size:11px;line-height:12px;color:var(--ink)}
.queue-filters label:has(#queueFrom)::before{content:"From Date"}
.queue-filters label:has(#queueTo)::before{content:"To Date"}
.queue-filters label>input{font-size:14px}
.queue-filters .outline-button{height:40px;display:flex;align-items:center;justify-content:center}
.custom-calendar{width:620px;max-width:calc(100vw - 24px);padding:18px;border:1px solid var(--border);border-radius:16px;box-shadow:0 15px 60px #0003;color:var(--ink)}.custom-calendar::backdrop{background:#18202a30}.calendar-navigation{display:flex;justify-content:space-between;height:28px}.calendar-navigation button{border:0;background:none;color:var(--muted);font-size:23px;padding:0 10px}.calendar-months{display:grid;grid-template-columns:1fr 1fr;gap:24px}.calendar-months h3{text-align:center;font-size:14px;margin:0 0 20px}.calendar-days{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;text-align:center}.calendar-weekday{font-size:10px;color:var(--muted);font-weight:700;padding:5px 0}.calendar-days button{width:100%;aspect-ratio:1;border:0;border-radius:50%;background:none;color:var(--ink);font-size:13px}.calendar-days button:hover{background:var(--accent-soft);color:var(--accent)}.calendar-days button.selected{background:var(--accent);color:white;font-weight:700}.calendar-days button.in-range{background:var(--accent-soft);border-radius:6px}.calendar-today{text-decoration:underline;text-underline-offset:4px}.calendar-footer{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--line);margin-top:20px;padding-top:15px;font-size:11px;color:var(--muted)}.calendar-footer strong{color:var(--accent-dark)}.custom-date-input{cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23737373' stroke-width='1.5'%3E%3Crect x='2' y='3' width='12' height='11' rx='2'/%3E%3Cpath d='M5 1v4m6-4v4M2 7h12'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 10px center!important;padding-right:32px!important}@media(max-width:480px){.calendar-months{gap:8px}.custom-calendar{padding:12px}.calendar-days{gap:1px}.calendar-days button{font-size:11px}}

.calendar-days button.range-preview{background:var(--accent-soft);border-radius:6px;color:var(--ink)}
.calendar-days button.range-preview-end,.calendar-days button.range-preview-start{background:var(--accent);color:#fff;border-radius:50%;font-weight:700}
.account-dropdown{position:absolute;right:12px;top:53px;width:295px;max-width:calc(100vw - 30px);border:1px solid var(--border);border-radius:16px;background:#fff;color:var(--ink);box-shadow:0 16px 45px #0003;overflow:hidden;transform-origin:top right;animation:account-reveal .2s ease-out;z-index:50}.account-summary{padding:20px;display:flex;flex-direction:column;gap:8px;background:linear-gradient(130deg,#fff7f0,#fff)}.account-eyebrow{font-size:9px;letter-spacing:1.3px;font-weight:700;color:var(--accent)}.account-summary>strong{font-size:17px;overflow-wrap:anywhere}.account-summary>span:not(.account-eyebrow){font-size:13px;color:var(--muted)}.account-summary small{font-size:10px;color:var(--muted)}.account-actions{padding:8px;border-top:1px solid var(--line)}.account-actions button{width:100%;display:flex;align-items:center;gap:12px;padding:12px;border:0;border-radius:9px;background:none;text-align:left;font-size:13px;color:var(--ink);font-weight:600}.account-actions button:hover{background:var(--accent-soft);color:var(--accent)}.account-actions svg{width:19px;height:19px;flex-shrink:0}.account-arrow{margin-left:auto;font-size:20px;color:var(--muted)}#accountLogout{color:var(--accent-dark)}.profile-demo-note{font-size:12px;color:var(--muted);line-height:1.5}@keyframes account-reveal{from{opacity:0;transform:translateY(-8px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}@media(prefers-reduced-motion:reduce){.account-dropdown{animation:none}}

.profile-page{padding:28px 36px;max-width:1150px;margin:auto}.profile-page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.profile-page h1{font-size:24px;margin:0 0 8px}.profile-page-heading p{font-size:13px;color:var(--muted);margin:0}.profile-card{background:#fff;border:1px solid var(--border);border-radius:16px;padding:24px;margin-bottom:20px}.profile-card h2{font-size:16px;margin:0 0 22px}.profile-fields{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.profile-fields label{display:flex;flex-direction:column;gap:9px;font-size:13px;font-weight:600}.profile-fields input{min-width:0;width:100%;height:43px;border:1px solid var(--border);border-radius:10px;padding:0 12px;background:#fff;color:var(--ink)}.profile-rights{display:grid;grid-template-columns:1fr 1fr;gap:0 30px}.profile-right{display:flex;align-items:center;gap:12px;position:relative;padding:18px 0;border-bottom:1px solid var(--line);font-size:13px;cursor:pointer}.profile-right>span:first-child{flex:1}.profile-right input{position:absolute;right:0;opacity:0;width:40px;height:23px;cursor:pointer}.profile-switch{width:40px;height:23px;background:#d9d5d1;border-radius:20px;position:relative;transition:background .2s;flex-shrink:0}.profile-switch:after{content:"";position:absolute;width:17px;height:17px;left:3px;top:3px;background:#fff;border-radius:50%;box-shadow:0 1px 3px #0002;transition:transform .2s}.profile-right input:checked+.profile-switch{background:var(--accent)}.profile-right input:checked+.profile-switch:after{transform:translateX(17px)}.profile-right input:focus-visible+.profile-switch{outline:2px solid var(--accent);outline-offset:3px}.profile-save{display:flex;align-items:center;justify-content:flex-end;gap:18px}.profile-save>span{font-size:12px;color:var(--accent-dark)}.profile-save button{padding:11px 20px;border-radius:9px}@media(max-width:780px){.profile-fields,.profile-rights{grid-template-columns:1fr}.profile-page{padding:20px 14px}.profile-page-heading{align-items:flex-start;flex-wrap:wrap}}
/* Shared custom selection menus and scrollbars. */
.native-select-replaced{display:none!important}.custom-select-wrapper{display:inline-block;position:relative;width:100%;min-width:0}.custom-select-trigger{width:100%;min-height:40px;display:block;text-align:left;padding:9px 32px 9px 11px;border:1px solid var(--border);border-radius:10px;background:#fff;color:var(--ink);font:inherit;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;position:relative}.custom-select-trigger::after{content:"";position:absolute;right:12px;top:calc(50% - 4px);width:6px;height:6px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(45deg);color:var(--muted)}.custom-select-trigger:hover{border-color:var(--accent)}.custom-select-trigger:disabled{opacity:.5;cursor:default}.custom-dropdown-popup{position:fixed;margin:0;padding:5px;border:1px solid var(--border);border-radius:12px;box-shadow:0 12px 35px #0003;background:#fff;overflow:auto;color:var(--ink);animation:account-reveal .15s ease-out}.custom-dropdown-popup::backdrop{background:transparent}.custom-dropdown-options{display:flex;flex-direction:column;gap:3px}.custom-dropdown-option{text-align:left;width:100%;padding:10px 12px;border:0;border-radius:8px;background:#fff;color:var(--ink);font-size:13px;line-height:1.4}.custom-dropdown-option:hover,.custom-dropdown-option:focus{background:var(--accent-soft);outline:none}.custom-dropdown-option.selected{background:var(--accent);color:#fff}.custom-dropdown-option:disabled{opacity:.5;cursor:default}.category-pagination .custom-select-wrapper{width:65px}.category-pagination .custom-select-trigger{min-height:31px;padding-top:5px;padding-bottom:5px}.queue-filters>.custom-select-wrapper{width:205px}.order-fields .custom-select-trigger{font-size:13px}.payment-fields .custom-select-wrapper{margin-top:5px}
*{scrollbar-width:thin;scrollbar-color:#bd9d87 #f3eeea}::-webkit-scrollbar{width:7px;height:7px}::-webkit-scrollbar-track{background:#f3eeea;border-radius:10px}::-webkit-scrollbar-thumb{background:#bd9d87;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:var(--accent)}
@media(prefers-reduced-motion:reduce){.custom-dropdown-popup{animation:none}}
/* Refined menu shortcuts. */
.settings-grid{gap:22px}
.settings-grid .settings-card{position:relative;min-height:168px;border:1px solid #e9e2db;border-radius:18px;background:linear-gradient(150deg,#fff 60%,#fff8f2);box-shadow:0 4px 14px #30201606;gap:16px;padding:24px 18px;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease,background .2s ease}
.settings-grid .settings-card svg{box-sizing:content-box;width:27px;height:27px;padding:14px;background:#fff0e4;border-radius:16px;color:var(--accent);transition:background .2s ease,color .2s ease,transform .2s ease}
.settings-grid .settings-card>span{font-size:14px;letter-spacing:.1px}
.settings-grid .settings-card::after{content:'↗';position:absolute;top:16px;right:18px;color:#b9a99d;font-size:17px;transition:color .2s ease,transform .2s ease}
.settings-grid .settings-card:hover,.settings-grid .settings-card:focus-visible{transform:translateY(-4px);border-color:#edab7e;box-shadow:0 12px 26px #8b421014;background:#fffaf6}
.settings-grid .settings-card:hover svg,.settings-grid .settings-card:focus-visible svg{background:var(--accent);color:#fff;transform:scale(1.04)}
.settings-grid .settings-card:hover::after{color:var(--accent);transform:translate(2px,-2px)}
.settings-grid .settings-card:active{transform:translateY(-1px)}
@media(prefers-reduced-motion:reduce){.settings-grid .settings-card,.settings-grid .settings-card svg,.settings-grid .settings-card::after{transition:none;transform:none}}

.sidebar.is-expanded .sidebar-brand{justify-content:flex-start;padding-left:12px}.sidebar-brand img{object-position:left center}
.history-page{padding:24px;background:#fff;min-height:calc(100vh - 45px)}.history-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:20px}.history-toolbar h1{font-size:19px;margin:0 8px 0 0}.history-toolbar input{height:37px;border:1px solid var(--border);border-radius:9px;padding:0 12px;width:200px}.history-toolbar .outline-button{margin:0;padding:8px 10px}.history-toolbar #historyCount{margin-left:auto;font-size:12px;color:var(--muted)}.history-table-wrap{overflow:auto;border:1px solid var(--border);border-radius:12px}.history-table{min-width:2050px;font-size:12px}.history-table th{background:#f3efeb;padding:16px 10px;white-space:nowrap}.history-table td{padding:14px 10px;font-size:11px;color:var(--muted)}#historyFilterBar{display:flex;align-items:end;gap:14px;padding:0 0 18px}#historyFilterBar label{font-size:12px;display:flex;flex-direction:column;gap:7px;min-width:200px}
.reports-chevron{margin-left:auto;font-size:15px;opacity:0;transition:transform .2s}.sidebar.is-expanded .reports-chevron{opacity:1}[data-section="Reports"][aria-expanded="false"] .reports-chevron{transform:rotate(180deg)}.reports-submenu{display:flex;flex-direction:column;gap:4px;padding:5px 0 6px 13px}.report-subitem{display:flex;align-items:center;gap:12px;width:100%;border:0;border-radius:8px;background:none;color:#eee;min-height:36px;padding:8px 10px;font-size:12px;text-align:left;white-space:nowrap}.report-subitem svg{width:18px;height:18px;flex-shrink:0}.report-subitem:hover{background:#ffffff0d;color:#ff8c40}.report-subitem.active{background:var(--accent);color:#fff}.sidebar:not(.is-expanded) .reports-submenu{display:none}

/* Animated report submenu and aligned chevron. */
.sidebar .nav-icon .reports-chevron{width:14px;height:14px;margin-left:auto;padding:0;flex-shrink:0;transform:rotate(0deg);transition:transform .24s ease,opacity .2s ease}
.sidebar [data-section="Reports"][aria-expanded="false"] .reports-chevron{transform:rotate(0deg)}
.sidebar [data-section="Reports"][aria-expanded="true"] .reports-chevron{transform:rotate(180deg)}
.reports-submenu{display:grid;grid-template-rows:0fr;padding:0;opacity:0;transition:grid-template-rows .28s ease,opacity .2s ease;flex-shrink:0}
.reports-submenu-inner{min-height:0;overflow:hidden;display:flex;flex-direction:column;gap:4px;padding-left:13px}
.reports-submenu.is-open{grid-template-rows:1fr;opacity:1}
.reports-submenu .report-subitem{flex-shrink:0}
@media(prefers-reduced-motion:reduce){.reports-submenu,.sidebar .nav-icon .reports-chevron{transition:none}}
.reservations-page{padding:22px;background:#fff;min-height:calc(100vh - 45px)}.reservation-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.reservation-summary{border:1px solid #e8edf0;border-radius:15px;padding:18px 20px;min-height:195px}.reservation-summary.today{background:#f0f6ff;--summary-color:#377cd8}.reservation-summary.upcoming{background:#effbf4;--summary-color:#15964b}.reservation-summary.pending{background:#fffbed;--summary-color:#bf8100}.reservation-summary.customers{background:#effcfd;--summary-color:#0996ab}.reservation-card-top{display:flex;justify-content:space-between;align-items:center}.reservation-card-top>strong{font-size:34px;font-weight:500;color:#4c5e6c}.reservation-icon{display:grid;place-items:center;width:48px;height:48px;background:var(--summary-color);border-radius:50%;color:#fff;opacity:.8}.reservation-icon svg{width:27px;height:27px}.reservation-summary h2{font-size:10px;text-transform:uppercase;letter-spacing:1.2px;color:#718096;margin:12px 0}.reservation-breakdown{display:flex;gap:14px}.reservation-breakdown>div{display:flex;flex-direction:column;align-items:center;gap:7px}.reservation-breakdown span{font-size:8px;text-transform:uppercase;border-radius:999px;background:#ffffffb0;padding:4px 7px;color:var(--summary-color)}.reservation-breakdown strong{font-size:12px;font-weight:400}.reservation-summary>button{margin-top:14px;background:#ffffff9c;border:1px solid #0000000b;border-radius:999px;padding:5px 11px;color:var(--summary-color);font-size:10px;font-weight:700}.reservation-list{padding:26px 12px}.reservation-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:20px}.reservation-toolbar h1{font-size:21px;margin:0 8px 0 0}.reservation-toolbar input{height:36px;border:1px solid var(--border);border-radius:9px;padding:0 10px}.reservation-toolbar .outline-button{margin:0;padding:8px 12px}.reservation-toolbar>span{margin-left:auto;font-size:12px;color:var(--muted)}.reservation-table-wrap{border:1px solid var(--border);border-radius:10px;overflow:auto}.reservation-table-wrap table{min-width:800px}.reservation-table-wrap th{padding:17px 12px;background:#f0f3f6}.reservation-table-wrap .muted-row{padding:35px}.reservation-filters{display:flex;gap:16px;align-items:end;margin-bottom:20px}.reservation-filters label{display:flex;flex-direction:column;gap:8px;font-size:12px;min-width:190px}@media(max-width:1050px){.reservation-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:550px){.reservation-summary-grid{grid-template-columns:1fr}.reservations-page{padding:14px}.reservation-list{padding:24px 0}}

.settings-grid .settings-card::after{content:none;display:none}
.branch-settings-detail{max-width:none;border:0;background:transparent;padding:0}.branch-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:15px;margin-bottom:20px}.branch-toolbar h1{font-size:21px;margin:0}.branch-toolbar input{height:40px;width:225px;border:1px solid var(--border);border-radius:10px;padding:0 12px}.branch-toolbar>span{margin-left:auto;color:var(--muted);font-size:12px}.branch-toolbar .outline-button{margin:0}.category-table td.branch-active{color:#16834a;font-weight:600}.category-table td.branch-disabled{color:#b65b24}.branch-config-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:22px}.branch-config-detail{border:1px solid var(--border);border-radius:14px;padding:24px;background:white}.branch-config-detail h2{font-size:17px;margin:0 0 20px}.branch-config-detail p{font-size:13px;color:var(--muted)}.branch-basic-form{display:grid;grid-template-columns:1fr 1fr;gap:18px}.branch-basic-form label{font-size:13px;display:flex;flex-direction:column;gap:8px}.branch-basic-form input{height:42px;border:1px solid var(--border);border-radius:9px;padding:0 11px}.branch-basic-form button{justify-self:start;align-self:end;height:42px;border-radius:9px}@media(max-width:900px){.branch-config-grid{grid-template-columns:1fr 1fr}}@media(max-width:550px){.branch-basic-form{grid-template-columns:1fr}}
/* Branch heading cleanup and consistent list actions. */
.branch-settings-detail>#settingsBack{display:none}
#branchRows .queue-actions,#usersRows .queue-actions{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}
#branchRows .queue-actions button,#usersRows .queue-actions button{height:34px;min-height:34px;display:inline-flex;align-items:center;justify-content:center;padding:0 14px;margin:0;line-height:1;font-size:12px;border-radius:7px;box-sizing:border-box}

.pos-page{position:relative}.branch-pos-block{position:absolute;inset:0;z-index:25;display:flex;align-items:center;justify-content:center;background:#f7f6f4ed;backdrop-filter:blur(3px);padding:24px}.branch-pos-message{max-width:420px;text-align:center;background:#fff;border:1px solid var(--border);border-radius:20px;padding:32px;box-shadow:0 12px 36px #0000000c}.branch-pos-message svg{width:42px;height:42px;color:var(--accent)}.branch-pos-message h2{font-size:21px;margin:16px 0 10px}.branch-pos-message p{font-size:13px;line-height:1.7;color:var(--muted);margin-bottom:22px}.branch-pos-message button{border-radius:9px;padding:11px 16px}
.branch-info-form{display:flex;flex-direction:column;gap:22px}.branch-info-group{border:1px solid var(--line);border-radius:14px;padding:20px;background:#fff}.branch-info-group h3{font-size:15px;margin:0 0 18px}.branch-info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.branch-info-grid label{display:flex;flex-direction:column;gap:8px;font-size:12px;color:var(--ink);font-weight:600;min-width:0}.branch-info-grid input:not([type=checkbox]),.branch-info-grid textarea{width:100%;min-width:0;min-height:42px;border:1px solid var(--border);border-radius:9px;padding:10px 12px;background:#fff;color:var(--ink);font:inherit}.branch-info-grid textarea{resize:vertical;line-height:1.6}.branch-wide-field{grid-column:1/-1}.branch-info-grid .branch-toggle-field{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:15px;padding:13px;background:#faf8f6;border-radius:10px;font-weight:400}.branch-toggle-field input{appearance:none;width:38px;height:22px;flex-shrink:0;border:0;border-radius:99px;background:#d7d2ce;position:relative;cursor:pointer}.branch-toggle-field input:before{content:'';position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:transform .2s}.branch-toggle-field input:checked{background:var(--accent)}.branch-toggle-field input:checked:before{transform:translateX(16px)}.branch-config-help{font-size:12px;color:var(--muted);margin:0;line-height:1.6}.branch-form-footer{display:flex;justify-content:flex-end;align-items:center;gap:18px}.branch-form-footer span{font-size:12px;color:var(--accent)}.branch-form-footer button{padding:12px 20px;border-radius:9px}@media(max-width:1000px){.branch-info-grid{grid-template-columns:1fr 1fr}}@media(max-width:600px){.branch-info-grid{grid-template-columns:1fr}.branch-info-group{padding:15px}}

.branch-options-back{margin:0 0 20px;padding:8px 12px}.branch-config-detail{min-height:300px}
/* Shared top notification with slide-down entry and status blinker. */
.toast{top:60px;bottom:auto;right:20px;left:auto;inset-inline-start:auto;margin:0;max-width:min(420px,calc(100vw - 32px));display:flex;align-items:center;gap:12px;border:1px solid #e8ddd3;border-bottom:3px solid var(--accent);background:#fff;color:var(--ink);padding:15px 16px;border-radius:12px;box-shadow:0 10px 35px #0002;transform:translateY(-20px);transition:opacity .2s,transform .2s;z-index:1000;font-size:13px;line-height:1.5}
.toast.show{opacity:1;transform:translateY(0);pointer-events:auto;animation:notification-slide .28s ease-out}
.toast>span:nth-child(2){flex:1}.toast>button{border:0;background:none;color:var(--muted);font-size:20px;padding:0 2px;align-self:flex-start}.notification-blinker{width:9px;height:9px;border-radius:50%;background:var(--accent);flex-shrink:0;animation:notification-blink 1.2s ease-in-out infinite}
@keyframes notification-slide{from{opacity:0;transform:translateY(-24px)}to{opacity:1;transform:translateY(0)}}
@keyframes notification-blink{0%,100%{opacity:1;box-shadow:0 0 0 0 #c2410c30}50%{opacity:.45;box-shadow:0 0 0 5px #c2410c08}}
@media(prefers-reduced-motion:reduce){.toast,.toast.show,.notification-blinker{animation:none;transition:none}}
.toast{left:50%;right:auto;transform:translate(-50%,-20px)}
.toast.show{transform:translate(-50%,0);animation:notification-slide .28s ease-out}
.notification-blinker{background:#22a55b}
@keyframes notification-slide{from{opacity:0;transform:translate(-50%,-24px)}to{opacity:1;transform:translate(-50%,0)}}
@keyframes notification-blink{0%,100%{opacity:1;box-shadow:0 0 0 0 #22a55b30}50%{opacity:.45;box-shadow:0 0 0 5px #22a55b08}}
@media(prefers-reduced-motion:reduce){.toast.show{animation:none}}

.toast{border-bottom:1px solid #e8ddd3}

.toast.notification-unchanged .notification-blinker{background:#e5ad16;animation-name:notification-yellow-blink}
@keyframes notification-yellow-blink{0%,100%{opacity:1;box-shadow:0 0 0 0 #e5ad1630}50%{opacity:.45;box-shadow:0 0 0 5px #e5ad1608}}
#dashboardPrintReport{display:none}
@media print{
 @page{size:A4;margin:14mm}
 body.printing-dashboard>*{display:none!important}
 body.printing-dashboard>#dashboardPrintReport{display:block!important;color:#222;background:white;font-size:11px}
 #dashboardPrintReport>header{border-bottom:2px solid #c2410c;padding-bottom:12px;margin-bottom:18px}
 #dashboardPrintReport h1{font-size:24px;margin:0 0 8px}#dashboardPrintReport header h2{font-size:15px;margin:0 0 10px}#dashboardPrintReport header p{font-size:10px;margin:6px 0;color:#555}
 .print-sales-summary{display:flex;gap:15px;margin-bottom:20px}.print-sales-summary>div{flex:1;border:1px solid #ddd;border-radius:9px;padding:14px;display:flex;justify-content:space-between}.print-sales-summary span{font-size:18px;font-weight:700}
 .print-report-section{break-inside:avoid;border:1px solid #ddd;border-radius:9px;margin-bottom:15px;overflow:hidden;padding:12px}.print-report-section h2{font-size:14px;margin:0 0 12px}.print-report-section img{display:block;width:65mm;height:65mm;margin:auto}.print-report-section .panel-summary{height:auto;min-height:32px;padding:8px;font-size:11px;white-space:normal}.print-report-section table{font-size:10px}.print-report-section th,.print-report-section td{padding:8px}.print-report-section .data-row{font-size:11px}
}

.sidebar:not(.is-expanded) .nav-icon{justify-content:center;padding-left:0;padding-right:0;gap:0}.sidebar:not(.is-expanded) .nav-icon .nav-label,.sidebar:not(.is-expanded) .reports-chevron{display:none}
/* Keep POS scrolling unobtrusive and product cards responsive. */
.pos-page,.pos-page *{scrollbar-width:none}
.pos-page::-webkit-scrollbar,.pos-page *::-webkit-scrollbar{display:none;width:0;height:0}
.product-card{transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease,background .2s ease}
@media(hover:hover){.product-card:hover{transform:translateY(-4px);box-shadow:0 9px 20px #7a38151c;z-index:2}}
.product-card:active{transform:translateY(-1px)}
@media(prefers-reduced-motion:reduce){.product-card{transition:none}.product-card:hover,.product-card:active{transform:none}}
/* A welcoming, branded entry to the workspace. */
.login-page{display:grid;grid-template-columns:minmax(0,1fr) minmax(380px,460px);gap:8vw;padding:120px max(6vw,24px) 70px;align-items:center;background:linear-gradient(100deg,rgba(15,14,13,.93) 0%,rgba(30,20,13,.72) 48%,rgba(23,17,12,.46));background-color:#211b17}
.login-page:before{border-color:#ffffff08;top:65vh}.login-page:after{border-color:#ffffff08;top:74vh}
.login-logo{left:6vw;top:25px;width:150px;height:65px}
.login-story{max-width:620px;color:#fff;animation:login-arrive .65s ease-out}
.login-product-tag{display:inline-flex;align-items:center;gap:9px;padding:8px 12px;border:1px solid #ffffff25;border-radius:999px;background:#ffffff08;color:#e8ddd3;letter-spacing:2px;font-size:10px;font-weight:600;backdrop-filter:blur(8px)}.login-product-tag>span{width:6px;height:6px;border-radius:50%;background:#ff8a3d;box-shadow:0 0 12px #ff650060}
.login-story h2{font-size:clamp(42px,4.5vw,76px);line-height:1.07;letter-spacing:-2.5px;font-weight:600;margin:28px 0 25px}.login-story h2 em{font-style:normal;color:#ff8c40}.login-story>p{font-size:16px;line-height:1.8;color:#d1c5bb;margin:0}.login-story-footer{margin-top:52px;padding-top:24px;border-top:1px solid #ffffff20;max-width:350px}.login-story-footer>span{font-size:9px;letter-spacing:2px;color:#b2a59a}.login-story-footer>div{font-size:14px;color:#eee4dc;margin-top:10px}
.login-card{width:100%;padding:34px 36px 26px;border:1px solid #ffffffb0;border-radius:25px;text-align:left;background:#fffdfb;box-shadow:0 28px 90px #0004;animation:login-arrive .55s ease-out;position:relative}
.login-symbol{margin:0 0 23px;width:47px;height:47px;border:1px solid #f5dfcd;border-radius:14px;box-shadow:none;background:#fff0e4}
.login-welcome-label{font-size:9px;font-weight:700;letter-spacing:1.8px;color:var(--accent)}.login-card h1{font-size:34px;letter-spacing:-1.1px;margin:10px 0 10px}.login-intro{font-size:13px;margin-bottom:25px;line-height:1.6;color:#887c72}
.login-field{height:49px;border-color:#e8dfd7;background:#fff;border-radius:11px;margin-bottom:14px;padding:0 14px;transition:border-color .2s,background .2s}.login-field:focus-within{border-color:#d88e60;background:#fffaf6}.login-field input{font-size:13px}.login-field>svg{color:#a08d7f}.login-help{margin:0 0 24px}.login-help button{font-size:11px;font-weight:500}
.login-submit{height:47px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-radius:11px;background:var(--accent);box-shadow:0 5px 14px #c2410c20;font-size:13px;transition:background .2s,transform .2s,box-shadow .2s}.login-submit svg{width:18px;height:18px;transition:transform .2s}.login-submit:hover{box-shadow:0 7px 19px #c2410c30;transform:translateY(-1px)}.login-submit:hover svg{transform:translateX(3px)}
.social-divider{font-size:11px;color:#9a8d82;margin-top:25px;gap:15px}.social-login{gap:10px}.social-login button{height:43px;border-radius:10px;background:#fff;box-shadow:none;border-color:#e8dfd7}.social-login svg{width:20px;height:20px}.login-caption{text-align:center;font-size:9px;color:#a09286;border-top:1px solid #eee5dd;padding-top:20px;margin-top:23px;line-height:1.6}
@keyframes login-arrive{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:900px){.login-page{gap:35px;padding-left:30px;padding-right:30px;grid-template-columns:1fr 400px}.login-story h2{font-size:43px}.login-story>p{font-size:13px}.login-logo{left:30px}.login-card{padding:30px}}
@media(max-width:720px){.login-page{display:flex;flex-direction:column;gap:28px;padding:110px 20px 35px}.login-story{width:100%;max-width:440px}.login-story h2{font-size:37px;letter-spacing:-1px;margin:16px 0}.login-story h2 br{display:none}.login-story h2 em:before{content:' '}.login-story>p,.login-story-footer{display:none}.login-card{max-width:440px;padding:28px}.login-logo{left:22px;top:18px;width:130px}.login-product-tag{font-size:9px}.login-card h1{font-size:30px}}
@media(prefers-reduced-motion:reduce){.login-story,.login-card{animation:none}.login-submit,.login-submit svg,.login-field{transition:none}.login-submit:hover,.login-submit:hover svg{transform:none}}
/* Consistent alignment and spacing inside the login card. */
.login-card{padding:34px 34px 25px}
.login-card .login-symbol{margin:0 0 24px}
.login-card h1{font-size:clamp(23px,2.1vw,29px);line-height:1.2;letter-spacing:-.65px;margin:0 0 12px}
.login-card .login-intro{margin:0 0 26px;line-height:1.6;font-size:12px}
.login-field{height:49px;margin-bottom:14px;align-items:center}
.login-field input{padding:0;height:100%;line-height:normal;border-radius:0}
.login-field input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #fff inset;-webkit-text-fill-color:var(--ink)}
.login-field:focus-within input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #fffaf6 inset}
.login-field button{flex-shrink:0;padding:0;display:grid;place-items:center;width:22px;height:24px}
.login-help{margin:3px 0 23px;line-height:1.5}
.login-submit{height:47px;align-items:center}
.login-card .social-divider{margin:24px 0 13px}
.login-card .login-caption{margin:23px 0 0;padding-top:20px}
@media(max-width:500px){.login-card{padding:28px 24px}.login-card h1{font-size:25px}}

.password-eye-slash{display:none}#togglePassword[aria-pressed="true"] .password-eye-slash{display:block}

.chart-legend{flex-wrap:wrap;row-gap:9px;column-gap:15px}
/* Local Spice Garden artwork for the login background. */

.order-payment-body{padding:20px 24px;display:flex;flex-direction:column;gap:15px}.order-payment-row{display:grid;grid-template-columns:140px minmax(0,1fr);gap:16px;align-items:center;font-size:13px}.order-payment-row>strong{font-weight:600}.order-payment-row>span{color:var(--muted)}.order-payment-row.payment-highlight{padding:12px;border-radius:10px;background:var(--accent-soft)}.payment-highlight>span{color:var(--accent-dark);font-weight:700}.order-payment-row input{min-width:0;width:100%;height:42px;padding:0 11px;border:1px solid var(--border);border-radius:9px;background:#fff;color:var(--ink)}.payment-form-error{font-size:12px;color:#b22b15;margin:0}@media(max-width:450px){.order-payment-row{grid-template-columns:115px 1fr;gap:10px}.order-payment-body{padding:18px}}
/* Spacious order queue with a focused empty state. */
.queue-modal{width:min(1536px,calc(100vw - 80px));height:90vh;max-height:90vh;max-width:calc(100vw - 32px);border:0;border-radius:17px;box-shadow:0 24px 80px #0004;background:#fff;overflow:auto}
.queue-modal::backdrop{background:#14141466;backdrop-filter:blur(3px)}
.queue-modal>.dialog-header{height:57px;padding:16px 22px;position:sticky;top:0;background:#fff;z-index:2;border-bottom:1px solid var(--line)}
.queue-modal>.dialog-header h2{font-size:16px}.queue-modal #queueClose{color:#9babbc;font-size:23px;line-height:1;padding:0 4px}
.queue-modal .queue-filters{padding:28px 4.4%;gap:12px;min-height:96px;background:#fff}
.queue-modal #queueOrders{padding:20px 24px;min-height:calc(90vh - 160px)}
.queue-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:92px 20px 40px;text-align:center;color:#7c8b9e}
.queue-empty-state svg{width:44px;height:44px;margin-bottom:18px;color:#c7d0da}
.queue-empty-state strong{font-size:14px;font-weight:600}.queue-empty-state p{font-size:12px;color:#9babbc;margin:8px 0 0}
@media(max-width:700px){.queue-modal{width:calc(100vw - 20px);max-width:calc(100vw - 20px);height:94vh;max-height:94vh}.queue-modal .queue-filters{padding:25px 16px;gap:18px 10px}.queue-modal #queueOrders{padding:14px}.queue-empty-state{padding-top:55px}}

.item-sales-panel{height:300px;min-height:0;display:flex;flex-direction:column}
.item-sales-panel>h2,.item-sales-panel>.panel-summary{flex-shrink:0}
.item-sales-scroll{flex:1;min-height:0;overflow:auto;scrollbar-width:thin}
.item-sales-scroll thead th{position:sticky;top:0;background:#fff;z-index:1}
@media print{.item-sales-panel{height:auto}.item-sales-scroll{overflow:visible}.item-sales-scroll thead th{position:static}}

#accountToggle{background:var(--dark);padding:5px}#accountToggle img{object-fit:contain}

.sidebar.is-expanded .sidebar-brand{justify-content:center;padding-left:10px;padding-right:10px}.sidebar-brand img{object-position:center}
.users-settings-detail{max-width:none;border:0;background:transparent;padding:0}.users-settings-detail #usersCount{margin-left:auto;font-size:12px;color:var(--muted)}.user-active-field{flex-direction:row!important;align-items:center}.user-active-field input{height:auto!important;width:16px;accent-color:var(--accent)}#managedUserError{font-size:12px;color:#b22b15;margin:0}
.managed-user-dialog{width:1100px;max-width:calc(100vw - 30px);max-height:92vh}.managed-user-body{display:grid;grid-template-columns:1fr 1fr;padding:24px;gap:20px;background:#faf9f7}.managed-user-card{background:#fff;border:1px solid var(--border);border-radius:15px;padding:22px;display:flex;flex-direction:column;gap:14px}.managed-user-card h3{font-size:15px;margin:0 0 6px;padding-bottom:16px;border-bottom:1px solid var(--line)}.managed-user-card label{font-size:12px}.managed-user-limits{display:grid;grid-template-columns:1fr 1fr;gap:12px}.managed-user-rights{display:grid;grid-template-columns:1fr 1fr;gap:18px 14px;margin-top:10px}.managed-user-rights label,.managed-assigned-branches label{display:flex;flex-direction:row;align-items:center;gap:9px;font-size:12px;line-height:1.5}.managed-user-rights input,.managed-assigned-branches input{width:15px;height:15px;accent-color:var(--accent);margin:0;flex-shrink:0}.managed-assigned-branches{display:flex;flex-wrap:wrap;gap:12px;padding:12px;border:1px solid var(--border);border-radius:9px}.managed-password-wrap{display:flex;align-items:center;border:1px solid var(--border);border-radius:8px;overflow:hidden}.managed-password-wrap input{flex:1;width:100%;min-width:0;border:0!important}.managed-password-wrap button{background:none;border:0;color:var(--muted);padding:8px 12px}.managed-password-wrap svg{width:19px;height:19px}#managedPasswordToggle[aria-pressed=true] .password-eye-slash{display:block}@media(max-width:750px){.managed-user-body{grid-template-columns:1fr;padding:14px}.managed-user-rights{grid-template-columns:1fr}}
/* Branded enable/disable switches throughout the user form. */
.managed-user-rights label,.managed-assigned-branches label{justify-content:space-between;position:relative}
.managed-user-rights input[type=checkbox],.managed-assigned-branches input[type=checkbox],.managed-user-card .user-active-field input[type=checkbox]{appearance:none!important;-webkit-appearance:none!important;position:relative;order:2;width:38px!important;height:22px!important;min-width:38px;margin:0;border:0;border-radius:99px;background:#d7d2ce;cursor:pointer;flex-shrink:0;transition:background .2s}
.managed-user-rights input[type=checkbox]::before,.managed-assigned-branches input[type=checkbox]::before,.managed-user-card .user-active-field input[type=checkbox]::before{content:'';position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002;transition:transform .2s}
.managed-user-rights input[type=checkbox]:checked,.managed-assigned-branches input[type=checkbox]:checked,.managed-user-card .user-active-field input[type=checkbox]:checked{background:var(--accent)}
.managed-user-rights input[type=checkbox]:checked::before,.managed-assigned-branches input[type=checkbox]:checked::before,.managed-user-card .user-active-field input[type=checkbox]:checked::before{transform:translateX(16px)}
.managed-assigned-branches{flex-direction:column}.managed-user-card .user-active-field{justify-content:space-between}
@media(prefers-reduced-motion:reduce){.managed-user-card input[type=checkbox],.managed-user-card input[type=checkbox]::before{transition:none}}

#menuDetail.category-detail>#menuBack{display:none}

/* Keep Order History full height, with horizontal scrolling on narrow screens. */
#orderHistoryPage {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 45px);
}
#orderHistoryPage .history-table-wrap {
  flex: 1;
  min-width: 0;
}
#orderHistoryPage .history-table {
  table-layout: fixed;
  min-width: 76rem;
}
#orderHistoryPage .history-table th,
#orderHistoryPage .history-table td {
  padding-inline: 7px;
  white-space: normal;
  overflow-wrap: anywhere;
}
#orderHistoryPage .queue-actions {
  flex-wrap: wrap;
}
#orderHistoryPage .queue-actions button {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.category-actions-menu{position:fixed;margin:0;width:170px;padding:6px;border:1px solid var(--border);border-radius:11px;background:#fff;box-shadow:0 10px 30px #0002}.category-actions-menu::backdrop{background:transparent}.category-actions-menu button{display:block;width:100%;border:0;border-radius:7px;background:none;text-align:left;padding:10px;font-size:12px;color:var(--ink)}.category-actions-menu button:hover{background:var(--accent-soft)}.category-actions-menu .category-delete-action{color:#b52c23}

#menuDetail.products-detail{max-width:none;border:0;padding:0;background:transparent}
.product-admin-actions{display:flex;flex-wrap:wrap;gap:8px;margin-left:auto}
.product-admin-filters .custom-select-wrapper{width:185px}
.product-admin-filters .category-pagination .custom-select-wrapper{width:70px}
.products-admin-table{min-width:950px}
.products-admin-table th{background:#f4efea;padding:15px 12px}
.products-admin-table td{padding:12px;color:var(--muted)}
.products-admin-table td .outline-button{margin:0;padding:6px 12px}
.product-editor-prices{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:12px}
.product-editor-prices input{min-width:0;width:100%}
.product-editor-error:empty{display:none}
.product-editor-error{color:#b22b15;margin:0}
.category-form-body input[type=file] { height:auto; padding:8px; }
#productImageHelp { color:var(--muted); margin-top:-9px; }
.product-image-preview { display:flex; align-items:center; gap:12px; }
.product-image-preview img { width:80px; height:64px; object-fit:cover; border-radius:8px; }
.product-image-preview .outline-button { margin:0; }
.category-form-body .product-formulated-option{flex-direction:row;align-items:center;justify-content:space-between}
.product-formulated-option input{appearance:none;width:38px;height:22px;padding:0;border:0;border-radius:999px;background:#d7d2ce;cursor:pointer;position:relative}
.product-formulated-option input::before{content:'';position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff}
.product-formulated-option input:checked{background:var(--accent)}
.product-formulated-option input:checked::before{transform:translateX(16px)}
.product-formulated-option input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* Browser history handles navigation between POS sections. */
button:is(#settingsBack, #menuBack, #filtersBack, #inventoryBack, #recipeBack,
  #expensesBack, #onlineOrdersBack, #profileBack, [data-branch-back]) {
  display: none;
}

/* Centered sign-in with animated point-of-sale artwork. */
.login-page {
  display: grid;
  grid-template-columns: minmax(0, 440px);
  place-content: center;
  gap: 0;
  min-height: 100vh;
  min-height: 100svh;
  padding: 24px;
  background:
    radial-gradient(ellipse at 14% 8%, #602919 0%, transparent 45%),
    radial-gradient(ellipse at 88% 85%, #51281a 0%, transparent 45%),
    #1b1716;
}
.login-page::before,
.login-page::after { content: none; }
.login-illustration {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.login-signal-paths {
  opacity: .7;
  stroke-dasharray: 12 228;
  animation: login-signal 16s linear infinite;
}
.login-illustration-node {
  color: #ffae7e;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.login-node-tile {
  fill: #312019;
  stroke-opacity: .42;
}
.login-node-symbol {
  stroke-width: 1.35;
  stroke-opacity: .86;
  animation: login-node-float 8s ease-in-out infinite;
}
.login-node-receipt .login-node-symbol { animation-delay: -2s; }
.login-node-sales .login-node-symbol { animation-delay: -5s; }
.login-node-bag .login-node-symbol { animation-delay: -3s; }
.login-page .login-card {
  z-index: 1;
  max-width: 440px;
  width: 100%;
  padding: clamp(24px, 5vw, 40px);
  border-radius: 24px;
  box-shadow: 0 24px 85px #10080599;
}
.login-brand {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: #27211f;
  border: 1px solid #4f3326;
}
.login-brand img { width: 34px; height: 34px; object-fit: contain; }
.login-page .login-card h1 { margin: 0 0 25px; font-size: 29px; text-align: center; }
.login-page .login-submit { position: relative; justify-content: center; }
.login-page .login-submit svg { position: absolute; right: 16px; }
@keyframes login-signal { to { stroke-dashoffset: -480; } }
@keyframes login-node-float { 50% { translate: 0 -5px; } }
@media (max-width: 500px) {
  .login-page { padding: 16px; }
  .login-illustration-node { opacity: .65; }
}
@media (prefers-reduced-motion: reduce) {
  .login-signal-paths, .login-node-symbol { animation: none; }
}

.pos-empty svg{width:54px;height:54px;color:#8b8885;opacity:.7}
.pos-empty h2{margin:14px 0 6px}
.pos-empty p{margin:0}

/* Confirm successful sign-in while the next screen opens. */
.login-card.login-success {
  animation: login-confirm .3s ease-out both;
}
.login-card.login-success .login-submit {
  background: #16754b;
  box-shadow: 0 5px 14px #16754b35;
  opacity: 1;
}
@keyframes login-confirm {
  from { transform: translateY(0) scale(1); }
  45% { transform: translateY(-5px) scale(1.015); }
  to { transform: translateY(-3px) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .login-card.login-success { animation: none; }
}

/* Phone layouts keep navigation and checkout within the viewport. */
.mobile-nav-scrim,.pos-mobile-switcher{display:none}

@media screen and (max-width:780px), screen and (max-width:950px) and (pointer:coarse) {
  :root{--mobile-header-height:54px}
  html{scroll-padding-top:var(--mobile-header-height)}
  .topbar,.topbar.sidebar-expanded{
    left:51px;
    height:var(--mobile-header-height);
    padding:0 10px;
    gap:8px;
    transition:none;
  }
  .top-brand{min-width:0;overflow:hidden}
  .brand-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .top-right{gap:6px}
  .topbar .top-branch{display:none}
  #accountToggle{width:40px;height:40px}
  .account-dropdown{top:calc(var(--mobile-header-height) + 4px);right:8px}
  .main-content,.main-content.sidebar-expanded{
    margin-left:0;
    padding-top:var(--mobile-header-height);
    min-width:0;
    transition:none;
  }
  .sidebar:not(.is-expanded){height:var(--mobile-header-height);bottom:auto;padding:0}
  .sidebar:not(.is-expanded) :is(nav,.sidebar-footer){display:none}
  .sidebar.is-expanded{width:min(240px,calc(100vw - 40px));padding-top:var(--mobile-header-height)}
  .sidebar::after{top:calc(var(--mobile-header-height) - 1px)}
  .sidebar .sidebar-toggle,.sidebar.is-expanded .sidebar-brand{
    height:var(--mobile-header-height);
    min-height:var(--mobile-header-height);
  }
  .sidebar.is-expanded .sidebar-toggle{width:48px}
  .sidebar.is-expanded .nav-icon,.sidebar.is-expanded .sidebar-footer .logout{
    width:100%;
    min-height:44px;
  }
  .sidebar.is-expanded .sidebar-footer .logout{margin:0}
  .sidebar.is-expanded .report-subitem{min-height:44px}
  .mobile-nav-scrim:not([hidden]){
    position:fixed;
    inset:0;
    z-index:20;
    display:block;
    border:0;
    background:#0008;
  }
  .is-logged-out .mobile-nav-scrim{display:none}
  .section-loader{top:var(--mobile-header-height)}

  .dashboard-content,.history-page,.settings-page,.reservations-page,.profile-page{padding:12px}
  #orderHistoryPage{min-height:calc(100dvh - var(--mobile-header-height))}
  .dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-grid .panel,.dashboard-grid .chart-card{grid-column:1/-1;grid-row:auto;min-width:0}
  .dashboard-grid .metric-card{min-width:0}
  .dashboard-content .filters{margin-left:0}
  .dashboard-content .filters .field{min-width:0;flex:1 1 135px;width:auto}
  .dashboard-content .filters .print-button{min-height:44px;flex:1 1 100px}
  .dashboard-grid th,.dashboard-grid td{padding-inline:7px;overflow-wrap:anywhere}
  .dashboard-grid .report-panel{min-height:310px}
  .settings-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .settings-grid .settings-card{min-height:124px;padding:12px 8px}
  .settings-grid .settings-card svg{width:22px;height:22px;padding:10px}
  .settings-grid .settings-card>span{font-size:13px;overflow-wrap:anywhere}
  .settings-detail,.branch-config-detail,.profile-card,.branch-info-group{padding:14px}
  .profile-fields,.profile-rights,.branch-info-grid{grid-template-columns:minmax(0,1fr)}
  .profile-page-heading,.branch-form-footer,.profile-save{flex-wrap:wrap}
  .branch-toolbar,.category-toolbar,.history-toolbar,.reservation-toolbar{gap:8px}
  :is(.branch-toolbar,.category-toolbar,.history-toolbar,.reservation-toolbar) h1{
    flex:1 1 100%;
    margin:0;
  }
  :is(.branch-toolbar,.category-toolbar,.history-toolbar,.reservation-toolbar) input[type=search]{
    width:100%;
    min-width:0;
  }
  .product-admin-actions{width:100%;margin:0}
  .category-pagination{margin-left:0;max-width:100%;flex-wrap:wrap}
  .product-admin-filters>.custom-select-wrapper{flex:1 1 140px;width:auto}
  #historyFilterBar,.reservation-filters{flex-wrap:wrap;max-width:100%}
  :is(.category-table-wrap,.history-table-wrap,.queue-table-wrap,.reservation-table-wrap){
    max-width:100%;
    min-width:0;
    overflow-x:auto;
    overscroll-behavior-inline:contain;
  }

  .pos-page{
    grid-template-columns:minmax(0,1fr);
    align-content:start;
    height:auto;
    min-height:calc(100dvh - var(--mobile-header-height));
    padding:10px;
    gap:10px;
  }
  .pos-mobile-switcher{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    position:sticky;
    top:var(--mobile-header-height);
    z-index:4;
    padding:4px;
    gap:4px;
    background:#f4eeea;
    border:1px solid var(--border);
    border-radius:12px;
  }
  .pos-mobile-switcher button{
    min-height:44px;
    border:0;
    border-radius:8px;
    color:var(--ink);
    background:transparent;
    font-weight:700;
  }
  .pos-mobile-switcher button[aria-pressed=true]{background:var(--accent);color:#fff}
  #posMobileCartCount{margin-inline-start:5px}
  .pos-page[data-mobile-view=products] .pos-order,
  .pos-page[data-mobile-view=cart] .pos-catalog{display:none}
  .pos-catalog{min-height:0;padding:10px}
  .pos-toolbar{gap:6px}
  .pos-toolbar .pos-title,.pos-toolbar input{flex:1 1 100%;min-width:0}
  .pos-toolbar .outline-button{flex:1 1 85px;height:auto;min-height:44px;padding:7px 5px;white-space:normal}
  .pos-categories{overscroll-behavior-inline:contain}
  .pos-category{min-height:44px}
  .pos-products{min-height:220px;overflow:visible}
  .pos-products.has-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .product-card{min-width:0;min-height:165px}
  .product-card strong{overflow-wrap:anywhere}
  .pos-order{min-height:0;overflow:visible;padding:10px}
  .pos-cart{min-height:140px}
  .order-modes{grid-template-columns:repeat(2,minmax(0,1fr))}
  .order-modes button,.order-actions button{min-height:44px}
  .order-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
  .order-fields label{min-width:0}
  .cart-item{align-items:flex-start;flex-direction:column}
  .cart-item-info{min-width:0;overflow-wrap:anywhere}
  .cart-item-actions{justify-content:flex-start}
  .cart-item-actions :is(button,input){min-height:32px}
  .cart-quantity{height:auto}
  .branch-pos-block{z-index:5}

  :is(.details-dialog,.receipt-modal,.charges-dialog,.custom-calendar,.queue-modal){
    max-width:calc(100vw - 16px);
    max-height:calc(100dvh - 16px);
    overflow:auto;
  }
  .dialog-header,.dialog-footer{flex-wrap:wrap;gap:8px;padding:12px}
  .queue-modal .queue-filters{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    padding:20px 12px;
    gap:18px 8px;
  }
  .queue-modal .queue-filters :is(input,.custom-select-wrapper){width:100%;min-width:0}
  .queue-modal .queue-filters .outline-button{width:100%}
  :is(input,select,textarea){font-size:16px}
  .login-field input,.category-toolbar input,.history-toolbar input,
  .branch-toolbar input,.queue-filters label>input{font-size:16px}
}

@media screen and (max-width:360px) {
  .settings-grid{grid-template-columns:minmax(0,1fr)}
  .dashboard-content,.history-page,.settings-page,.reservations-page,.profile-page{padding:8px}
  .order-fields{grid-template-columns:minmax(0,1fr)}
  .order-actions{grid-template-columns:minmax(0,1fr)}
}

/* Use the app’s own interaction states on touch screens. */
html {
  -webkit-tap-highlight-color: transparent;
}

/* Size the notification to its message rather than the space right of center. */
.toast {
  width: max-content;
}
.toast > button {
  flex-shrink: 0;
  align-self: center;
}
@media screen and (max-width: 780px) {
  .toast {
    max-width: calc(100vw - 16px);
    gap: 8px;
    padding: 10px 12px;
    font-size: 12px;
  }
}

.sidebar-menu-icon { display: none; }
@media screen and (max-width:780px), screen and (max-width:950px) and (pointer:coarse) {
  .topbar .brand-name { font-size: 17px; }
  .sidebar:not(.is-expanded) .sidebar-open-icon { display: none; }
  .sidebar:not(.is-expanded) .sidebar-menu-icon { display: inline; }
  .sidebar .sidebar-toggle svg { width: 22px; height: 22px; }
}
