/* Native BackOffice resources: UI_BRUSHES.xaml and MainWindow.xaml. */
body.office-mode{--bg:#FBF9EF;--panel:#fff;--raised:#F2EFE0;--rail:#fff;--basket:#fff;--line:#E8E4D6;--text:#0A0A0A;--muted:#5A5A5A;--accent:#5BFB7A;--ink:#000;--danger:#EF4444;background:var(--bg)}
.office-mode.in-workspace #workspace{grid-template-columns:256px minmax(0,1fr)}
.office-mode .terminal-rail{display:none}
#officeRail{grid-column:1;grid-row:1/3;background:var(--panel);border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0}
.office-brand{padding:24px 18px}.office-brand strong{font-size:20px}.office-brand p{font-size:13px;color:var(--muted);margin-top:4px}
#officeNav{overflow:auto;padding:0 14px 16px;flex:1;min-height:0}#officeNav>p{font-size:11px;color:#6F6F6F;margin:22px 12px 6px}#officeNav button{display:block;width:100%;min-height:42px;margin-bottom:4px;text-align:left;padding:10px 12px;background:transparent;font-size:14px;font-weight:600;border:0}#officeNav [aria-current=page]{background:var(--accent);color:#000}
.office-footer{border-top:1px solid var(--line);padding:12px 18px;font-size:12px}.office-footer p{color:var(--muted);margin-bottom:10px}.office-footer button{display:block;width:100%;margin-bottom:10px}.office-footer a{color:var(--muted)}
#officeView{grid-column:2;grid-row:1;overflow:auto;min-width:0}.office-head{display:flex;justify-content:space-between;align-items:center;gap:20px;background:var(--panel);padding:20px 18px;border-bottom:1px solid var(--line)}.office-head h1{font-size:26px;line-height:1.2;margin:0 0 12px}.office-head p{font-size:16px;color:var(--muted);margin-bottom:12px}.office-head small{font-size:13px;color:var(--muted)}.office-head>div:last-child{display:flex;gap:10px}.office-head>div:first-child{display:block}.office-mode button:not(.primary){border:1px solid var(--line);background:var(--panel)}
.office-content{padding:18px}.office-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.office-kpis article,.office-charts>article{padding:18px;background:var(--panel);border:1px solid var(--line);border-radius:8px}.office-kpis article>strong{display:block;font-size:30px;margin:18px 0 4px;font-variant-numeric:tabular-nums}.office-kpis p{color:var(--muted);font-size:15px}.office-kpis small{display:block;margin-top:8px;color:var(--muted);font-size:13px}.office-kpi-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;font-size:24px}.icon-0{background:#E9FBEF}.icon-1{background:#E8ECFF}.icon-2{background:#F1E9FF}.icon-3{background:#FFF4E6}
.office-charts{display:grid;grid-template-columns:1.4fr 1fr;gap:18px}.office-charts h2{font-size:20px;margin-bottom:24px}.office-bar{display:grid;grid-template-columns:75px minmax(20px,1fr) 80px;align-items:center;gap:14px;font-size:14px;margin-bottom:18px}.office-bar span{overflow-wrap:anywhere}.office-bar>div{height:8px;background:var(--raised)}.office-bar i{height:8px;display:block;background:var(--accent)}.office-bar strong{text-align:right;font-size:13px}
.office-report-filter{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin-bottom:14px}.office-report-filter label{margin:0}.office-report-table{width:100%;border-collapse:collapse;margin-bottom:18px}.office-report-table th,.office-report-table td{padding:10px 0;text-align:left;border-bottom:1px solid var(--line)}.office-report-table th:last-child,.office-report-table td:last-child{text-align:right}#officeReportResults{margin-top:18px}
.office-mode #serviceDialog[open]{position:fixed;inset:0 0 36px 256px;margin:0;width:auto;height:auto;max-width:none;max-height:none;border:0;border-radius:0;padding:0;display:flex;flex-direction:column;z-index:5;background:var(--bg)}.office-mode #serviceDialog .dialog-head{padding:20px 18px;background:var(--panel);margin:0;border-bottom:1px solid var(--line)}.office-mode #serviceContent{flex:1;min-height:0;overflow:auto;padding:18px}.office-mode #officeRail{position:relative;z-index:6}.office-mode #serviceContent>form{max-width:760px}.office-mode .managed-row{background:var(--panel);padding:16px;border:1px solid var(--line);margin-bottom:8px;border-radius:8px}
@media(max-width:1050px){.office-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.office-charts{grid-template-columns:1fr}.office-head{align-items:flex-start;flex-wrap:wrap}}
@media(max-width:760px){.office-mode.in-workspace #workspace{grid-template-columns:1fr}#officeRail{grid-column:1;grid-row:1}.office-brand{padding:14px 16px}.office-brand p{display:inline;margin-left:10px}#officeNav{display:flex;overflow:auto;gap:6px;padding:0 12px 10px;flex:none}#officeNav>p{display:none}#officeNav button{width:auto;white-space:nowrap;flex-shrink:0}.office-footer{display:flex;align-items:center;gap:10px;padding:8px 12px}.office-footer p{display:none}.office-footer button{width:auto;margin:0}.office-footer a{margin-left:auto}#officeView{grid-column:1;grid-row:2}.office-mode #serviceDialog[open]{inset:0 0 38px;z-index:8}.office-mode .device-status{grid-row:3}.office-content{padding:12px}.office-kpis{gap:8px}.office-kpis article{padding:12px}.office-kpis article>strong{font-size:25px}.office-head h1{font-size:24px}.office-bar{grid-template-columns:65px minmax(20px,1fr) 75px;gap:8px}}

#officeRail,#officeNav{min-width:0}.office-bar progress{width:100%;height:8px;border:0;border-radius:0;background:var(--raised);appearance:none}.office-bar progress::-webkit-progress-bar{background:var(--raised)}.office-bar progress::-webkit-progress-value{background:var(--accent)}.office-bar progress::-moz-progress-bar{background:var(--accent)}

.sales-group-scroll{max-width:100%;overflow-x:auto}.sales-group-scroll table{min-width:580px}

#reportPrintDialog{width:min(96vw,1000px);max-height:90dvh;overflow:auto}#reportPrintContent{overflow-wrap:anywhere}#reportPrintContent table{width:100%;border-collapse:collapse}#reportPrintContent th,#reportPrintContent td{padding:6px;border-bottom:1px solid #aaa;text-align:left}#reportPrintContent .office-bar{display:flex;justify-content:space-between;gap:12px}#reportPrintContent .office-kpi-icon{display:none}
@media print{body.printing-report>*:not(#reportPrintDialog){display:none!important}body.printing-report>#reportPrintDialog{display:block!important;position:static;width:100%;max-width:none;max-height:none;height:auto;overflow:visible;margin:0;padding:0;border:0;background:white;color:black}body.printing-report #reportPrintDialog::backdrop{display:none}body.printing-report #reportPrintContent{font-size:10pt}body.printing-report #reportPrintContent *{color:black!important;background:white!important;box-shadow:none!important}body.printing-report #reportPrintContent .office-charts,body.printing-report #reportPrintContent .office-kpis{display:block}body.printing-report #reportPrintContent .sales-group-scroll{overflow:visible}body.printing-report #reportPrintContent table{min-width:0;table-layout:fixed;font-size:9pt}body.printing-report #reportPrintContent tr{break-inside:avoid}body.printing-report #reportPrintContent thead{display:table-header-group}body.printing-report #reportPrintContent h2{break-after:avoid}body.printing-report #reportPrintContent article{margin:8mm 0;padding:0;border:0}body.printing-report #reportPrintContent h1{font-size:20pt}body.printing-report #reportPrintContent h2{font-size:14pt}}

/* Front till appearance: choices preview independently until Save is selected. */
.appearance-form{max-width:1160px}.appearance-summary{font-weight:600;margin-bottom:24px}
.appearance-form fieldset{border:0;padding:0;margin:0 0 24px;min-width:0}.appearance-form legend{font-size:18px;font-weight:600;margin-bottom:14px}
.design-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.design-choice{position:relative;margin:0;cursor:pointer;color:var(--text)}.design-choice>input{position:absolute;opacity:0;width:1px;height:1px;min-height:0}
.design-card{height:100%;padding:12px;border:2px solid var(--line);border-radius:12px;background:var(--panel)}
.design-card>strong{display:block;font-size:18px;margin:14px 0 6px}.design-card>p{font-size:13px;line-height:1.5;color:var(--muted)}
.design-choice:has(input:checked) .design-card{border-color:#267D3E;background:#E8FFE9}.design-choice:has(input:focus-visible) .design-card{outline:3px solid #176BBA;outline-offset:3px}
.theme-choices{display:flex;gap:14px;flex-wrap:wrap}.theme-choices label{display:flex;align-items:center;gap:10px;border:2px solid var(--line);background:white;border-radius:10px;padding:12px 18px;margin:0;cursor:pointer;color:var(--text)}
.theme-choices label:has(input:checked){border-color:#267D3E}.theme-choices input{width:18px;min-height:18px;margin:0;accent-color:#267D3E}.theme-swatch{display:block;width:26px;height:26px;border:1px solid #aaa;border-radius:6px}.swatch-light{background:#FBF9EF}.swatch-dark{background:#1A1D1F}
.appearance-form>h2{font-size:18px;margin:10px 0}.appearance-actions{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0 10px}#layoutFeedback{margin-bottom:10px}
.till-design-preview{--pv-bg:#0F1214;--pv-panel:#1A1D1F;--pv-raised:#232628;--pv-text:#E8EAED;--pv-muted:#B9BEC6;--pv-accent:#00FF9D;display:grid;aspect-ratio:2.12;gap:3px;padding:5px;background:var(--pv-bg);color:var(--pv-text);border-radius:7px;overflow:hidden;font-size:clamp(6px,.7vw,11px);grid-template-columns:32% 16% minmax(0,1fr);grid-template-rows:10% minmax(0,1fr) 10%;text-align:left}
.till-design-preview[data-preview-theme=light]{--pv-bg:#FBF9EF;--pv-panel:#FFFFFF;--pv-raised:#F2EFE0;--pv-text:#0A0A0A;--pv-muted:#5A5A5A;--pv-accent:#5BFB7A}
.till-design-preview *{min-width:0}.preview-search{grid-column:1/-1;background:var(--pv-panel);padding:2px 5px;overflow:hidden;white-space:nowrap;display:flex;align-items:center;gap:10px}.preview-search span{color:var(--pv-muted);font-size:.8em}
.preview-ticket{grid-column:1;grid-row:2;display:flex;flex-direction:column;gap:6px;background:var(--pv-panel);padding:7px}.preview-ticket>b{font-size:1.1em;margin-bottom:7px}.preview-ticket>span{background:var(--pv-raised);padding:5px}.preview-ticket em{float:right;font-style:normal}.preview-ticket>strong{margin-top:auto;background:var(--pv-accent);color:black;padding:7px}
.preview-categories{grid-column:2;grid-row:2;display:grid;gap:4px;align-content:start}.preview-categories i{font-style:normal;background:#32586B;color:white;padding:7px 2px;text-align:center;border-radius:3px}.preview-categories i:nth-child(2){background:#784740}.preview-categories i:nth-child(3){background:#654C74}.preview-categories i:nth-child(4){background:#416758}
.preview-products{grid-column:3;grid-row:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;align-content:start;align-items:stretch}.preview-products>span{display:flex;flex-direction:column;gap:5px;background:var(--pv-panel);padding:7px;min-height:45px;border-radius:3px}.preview-products small{color:var(--pv-muted);font-size:.8em}.preview-photo{height:20px;background:var(--pv-raised);display:block;border-radius:3px}
.preview-nav{grid-column:1/-1;grid-row:3;background:var(--pv-panel);padding:3px 6px;text-align:center;overflow:hidden;white-space:nowrap}.preview-rail{display:none}
.preview-Classic{grid-template-columns:13% minmax(0,1fr) 32%;grid-template-rows:10% 12% minmax(0,1fr)}.preview-Classic .preview-ticket{grid-column:3;grid-row:2/4}.preview-Classic .preview-categories{grid-column:2;grid-row:2;display:flex;gap:3px;overflow:hidden}.preview-Classic .preview-categories i{background:var(--pv-raised);color:var(--pv-text);padding:3px;flex:1}.preview-Classic .preview-products{grid-column:2;grid-row:3;grid-template-columns:repeat(3,minmax(0,1fr))}.preview-Classic .preview-nav{display:none}.preview-Classic .preview-rail{display:flex;flex-direction:column;gap:6px;grid-column:1;grid-row:2/4;background:var(--pv-panel);padding:5px 2px}.preview-rail i{font-style:normal;font-size:.8em;padding:5px 0;background:var(--pv-raised)}
.preview-QuickServe{grid-template-columns:32% minmax(0,1fr);grid-template-rows:10% 12% minmax(0,1fr) 10%}.preview-QuickServe .preview-ticket{grid-row:2/4}.preview-QuickServe .preview-categories{grid-column:2;grid-row:2;display:flex}.preview-QuickServe .preview-categories i{background:var(--pv-raised);color:var(--pv-text);padding:3px;flex:1}.preview-QuickServe .preview-products{grid-column:2;grid-row:3;grid-template-columns:repeat(4,minmax(0,1fr))}.preview-QuickServe .preview-nav{grid-row:4}
#appearanceLivePreview{max-width:880px;border:1px solid var(--line);border-radius:12px;padding:10px;background:white;margin-bottom:10px}#appearanceLivePreview .till-design-preview{font-size:clamp(8px,1.1vw,13px)}#appearanceLivePreview .preview-products>span{padding:12px;min-height:75px}#appearanceLivePreview .preview-photo{height:38px}
@media(max-width:1100px){.design-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.design-choices{grid-template-columns:minmax(0,1fr)}.design-card{display:grid;grid-template-columns:42% minmax(0,1fr);gap:0 12px}.design-card>[data-design-preview]{grid-row:1/3;align-self:center}.design-card>strong{font-size:16px;margin:0 0 6px}.design-card>p{font-size:12px}.till-design-preview{font-size:6px}#appearanceLivePreview .till-design-preview{font-size:7px}#appearanceLivePreview .preview-products>span{padding:5px;min-height:35px}#appearanceLivePreview .preview-photo{height:12px}}

.custom-support-badge,.standard-design-note{display:inline-block;margin-top:12px;font-size:12px;font-weight:650}.custom-support-badge{background:#E9E5FF;color:#4B3682;padding:6px 9px;border-radius:6px}.standard-design-note{color:#5A5A5A}
.custom-designer{padding:20px;border:1px solid #D5C9F2;border-radius:12px;background:#FFF;margin:0 0 24px}.custom-designer>h2{font-size:20px;margin-bottom:8px}.custom-designer>p{font-size:14px}.custom-position-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.custom-position-controls label{font-size:14px;color:#333;margin:18px 0}.custom-position-controls select{font-size:14px;background:#FBF9EF;color:#0A0A0A}.custom-support-status{border-radius:8px;background:#F5F0FF;padding:14px;margin:0 0 12px}.custom-support-status>p{font-size:14px;margin-bottom:12px}.custom-support-status>div{display:flex;flex-wrap:wrap;gap:10px}
.preview-Custom{--pv-left:32%;--pv-right:minmax(0,1fr);--pv-rail:0%;--pv-cat:17%;--pv-bottom:10%;grid-template-columns:var(--pv-rail) var(--pv-left) var(--pv-cat) var(--pv-right);grid-template-rows:10% 12% minmax(0,1fr) var(--pv-bottom)}
.preview-Custom .preview-ticket{grid-column:2;grid-row:2/4}.preview-Custom .preview-categories{grid-column:3;grid-row:2/4}.preview-Custom .preview-products{grid-column:4;grid-row:2/4;grid-template-columns:repeat(var(--pv-columns,2),minmax(0,1fr))}.preview-Custom .preview-nav{grid-column:2/5;grid-row:4}.preview-Custom .preview-rail{grid-column:1;grid-row:2/5}
.preview-Custom[data-pv-ticket=Right]{--pv-left:minmax(0,1fr);--pv-right:32%}.preview-Custom[data-pv-ticket=Right] .preview-ticket{grid-column:4}.preview-Custom[data-pv-ticket=Right] .preview-products{grid-column:2}
.preview-Custom[data-pv-categories=Top]{--pv-cat:0%}.preview-Custom[data-pv-categories=Top] .preview-categories{grid-column:4;grid-row:2;display:flex;overflow:hidden}.preview-Custom[data-pv-categories=Top] .preview-categories i{background:var(--pv-raised);color:var(--pv-text);padding:3px;flex:1}.preview-Custom[data-pv-categories=Top] .preview-products{grid-row:3}.preview-Custom[data-pv-categories=Top][data-pv-ticket=Right] .preview-categories{grid-column:2}
.preview-Custom[data-pv-navigation=Sidebar]{--pv-rail:12%;--pv-bottom:0%}.preview-Custom[data-pv-navigation=Sidebar] .preview-rail{display:flex;flex-direction:column;gap:6px;background:var(--pv-panel);padding:4px}.preview-Custom[data-pv-navigation=Sidebar] .preview-nav{display:none}
@media(max-width:1050px){.custom-position-controls{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:500px){.custom-position-controls{grid-template-columns:minmax(0,1fr)}.custom-position-controls label{margin:8px 0}.design-card .custom-support-badge,.design-card .standard-design-note{grid-column:2}}

/* Custom design is an assisted support request, with no self-service editor. */
.custom-request-panel{padding:24px}.custom-request-panel>h2{font-size:24px;margin-bottom:12px}.custom-request-panel>p{font-size:16px;line-height:1.65;max-width:860px}.custom-request-actions{display:flex;flex-wrap:wrap;gap:12px;margin:22px 0}.custom-request-actions .request-call{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:11px 16px;background:white;color:#0A0A0A;border:1px solid #D4CFC0;border-radius:9px;font-size:16px;font-weight:600}
.custom-request-panel>label{font-size:16px;color:#0A0A0A;margin:20px 0 8px}.custom-request-panel textarea{display:block;width:100%;min-height:120px;resize:vertical;border:1px solid #D4CFC0;border-radius:9px;padding:14px;background:#FBF9EF;color:#0A0A0A;font:inherit;font-size:16px;line-height:1.5}.custom-request-panel textarea:focus-visible{outline:3px solid #267D3E;outline-offset:2px}.custom-request-panel .request-email{margin:16px 0 8px}.custom-request-panel .request-email-help,.custom-request-panel>p.small{font-size:13px}.custom-request-mode #standardAppearanceOptions{display:none!important}#customRequestFeedback:empty{display:none}.custom-request-panel .custom-request-actions button{font-size:16px}

.appearance-coming-soon{max-width:840px;padding:24px;border:1px solid var(--line,#E8E4D6);border-radius:12px;background:var(--panel,#fff)}.appearance-coming-soon>span{display:block;color:#267D3E;font-size:14px;font-weight:600;margin-bottom:12px}.appearance-coming-soon h2{font-size:23px;line-height:1.3;margin:0 0 12px}.appearance-coming-soon p{font-size:16px;line-height:1.6;margin:0}
