/* UI172 — shared staff interface; guest pages and printed documents use their own styles. */
:root{--ui-radius:14px;--ui-gap:14px}
#shell>nav{gap:7px;padding-block:10px;scrollbar-width:thin}
#shell>nav button{border:1px solid var(--line);border-radius:10px;min-height:44px;background:var(--paper2);padding:10px 14px;line-height:1.4}
#shell>nav button.active{background:var(--soft);border-color:var(--green);color:var(--green)}
#shell>nav #sync{white-space:nowrap}
:is(#rm-page,#wf-page,#users-dialog,#rq-view,#wf-form-dialog,#rm-form-dialog,#entry-dialog,#wf-commands,#choice-dialog) :is(select,input:not([type=checkbox]):not([type=radio]):not([type=hidden]),textarea){border-radius:10px;color:var(--ink);border:1px solid var(--line);background-color:var(--paper2);font-size:14px}
:is(#rm-page,#wf-page,#users-dialog,#rq-view,#wf-form-dialog,#rm-form-dialog,#entry-dialog,#choice-dialog) select,.ux-calendar select{appearance:none;-webkit-appearance:none;min-height:48px;padding:11px 32px 11px 12px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='%23899b92' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}
[dir=rtl] :is(#rm-page,#wf-page,#users-dialog,#rq-view,#wf-form-dialog,#rm-form-dialog,#entry-dialog,#choice-dialog) select,[dir=rtl] .ux-calendar select{padding:11px 12px 11px 32px;background-position:left 12px center}
:is(#rm-page,#wf-page,#users-dialog,#rq-view,#wf-form-dialog,#rm-form-dialog,#wf-commands,#choice-dialog) button{min-height:44px}
:is(#rm-page,#wf-page,#users-dialog,#rq-view) details>summary{min-height:44px;padding:13px;border:1px solid var(--line);border-radius:10px;background:var(--paper2);font-size:13px;line-height:1.6;cursor:pointer;color:var(--ink)}
:is(#rm-page,#wf-page,#users-dialog,#rq-view) details[open]>summary{border-color:var(--gold);margin-bottom:12px}
.ux-date-field{display:block;position:relative;min-width:0;max-width:100%}
.ux-native-date{position:absolute!important;inset:0 auto auto 0!important;width:1px!important;height:1px!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;opacity:0!important;pointer-events:none!important}
.ux-date-field .ux-date-button{width:100%;min-height:48px;background:var(--paper2);color:var(--ink);font-weight:500;font-size:14px}
.ux-calendar .rm-calendar-month select{min-height:44px;height:44px;padding:8px 19px 8px 5px;background-position:right 4px center}
[dir=rtl] .ux-calendar .rm-calendar-month select{padding:8px 5px 8px 19px;background-position:left 4px center}
.ux-calendar .ux-month-only{grid-template-columns:44px 1fr 44px}
.ux-calendar .ux-month-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.ux-calendar .ux-month-grid button{min-height:54px;border-color:var(--line);font-size:13px}
.ux-calendar-note{font-size:11px;color:var(--muted);line-height:1.6;margin:10px 0 0}.ux-calendar-note:empty{display:none}
.ux-section-intro{font-size:13px;line-height:1.7;color:var(--muted);margin:0 0 18px}
.ux-toolbar,.rm-menu-toolbar,.guest-qr-tools,#rm-page .rq-filters,#rm-page .recipe-filters{padding:16px;background:var(--paper2);border:1px solid var(--line);border-radius:var(--ui-radius);gap:12px;margin-bottom:18px}
.ux-toolbar{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) auto;align-items:end}
.ux-toolbar label{display:grid;gap:7px;font-size:12px;color:var(--muted);min-width:0}
.ux-toolbar :is(input,select){width:100%;max-width:none}
.ux-toolbar>button{min-height:48px;background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.ux-list-count{font-size:12px;color:var(--muted);margin:0 0 14px}
#rm-page #rm-catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#rm-page #rm-catalog .ux-goods-card{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid var(--line);border-radius:14px;background:var(--paper2);padding:18px;margin:0;min-width:0}
.ux-goods-card>div{min-width:0}.ux-goods-card strong{display:block;font-size:14px;line-height:1.6}.ux-goods-card p{font-size:12px;color:var(--muted);margin:7px 0 0;line-height:1.6}
.ux-goods-card button{flex:none}
.ux-empty{grid-column:1/-1;padding:34px 22px;border:1px dashed var(--line);border-radius:14px;text-align:center;color:var(--muted);font-size:13px;line-height:1.8}
.ux-feature-card{border:1px solid var(--line);border-radius:16px;padding:24px;background:var(--paper2);max-width:650px}
.ux-feature-card h4{font-size:18px;margin:0 0 10px}.ux-feature-card p{font-size:13px;line-height:1.8;color:var(--muted);margin:0 0 20px}
.ux-feature-card button{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
#rm-page .prepared-printers{gap:14px}
#rm-page .prepared-printer{border-radius:15px;padding:20px;background:var(--paper2)}
#rm-page .prepared-printer h3{margin:0 0 18px;font-size:16px}
#rm-page .prepared-printer label{font-size:12px;color:var(--muted)}
#rm-page .prepared-printer input{background:var(--paper);margin-top:7px;min-height:48px}
#rm-page .recipe-stats>div,#rm-page .recipe-editor{border-radius:14px;background:var(--paper2);border-color:var(--line)}
#rm-page .recipe-list [data-recipe-item]{border-radius:12px;padding:16px}
#rm-page .recipe-list [data-recipe-item][aria-pressed=true]{border-color:var(--green);background:var(--soft)}
#rm-page .guest-qr-card,#rm-page .rq-card{border-radius:15px}
#rm-page .guest-qr-pages{border-top:1px solid var(--line);padding-top:16px}
#rm-page .ux-count-card{display:block;padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--paper2);margin-bottom:14px}
.ux-table-wrap{max-width:100%;overflow:auto;border:1px solid var(--line);border-radius:12px}
#rm-page .ux-count-card .ux-table-wrap{margin-top:12px;background:var(--paper)}
#rm-page .ux-count-card table{min-width:570px}
#rm-page .purchase-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--paper2)}
#rm-page .purchase-filters label{min-width:0;color:var(--muted);font-size:12px;display:grid;gap:8px}
#rm-page .purchase-filters :is(input,select){background-color:var(--paper);min-height:48px}
#rm-page .purchase-filters .ux-date-button{background:var(--paper)}
.ux-range-presets{display:flex;gap:8px;flex-wrap:wrap;grid-column:1/-1;margin:0 0 4px}
.ux-range-presets button{font-size:12px;padding:9px 14px}
#rm-page .purchase-filters>button{grid-column:1/-1;justify-self:end;padding-inline:26px;min-height:48px}
#rm-page .purchase-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
#rm-page .purchase-summary>div{border-radius:13px;padding:18px;min-width:0;background:var(--paper2)}
#rm-page .purchase-summary strong{font-size:20px;overflow-wrap:anywhere}
#rm-page .purchase-tools{display:flex;gap:8px;flex-wrap:wrap;padding:14px 0;margin:0}
#rm-page .purchase-tools button{flex:1;min-width:90px}
#rm-page [data-report-result]>section{margin-top:24px}
#rm-page .purchase-table-wrap{max-width:100%;border:1px solid var(--line);border-radius:12px;overflow:auto}
#rm-page .purchase-table-wrap table{min-width:520px}
#rm-page .purchase-table-wrap th{background:var(--paper2);font-size:11px}
#rm-page .purchase-table-wrap td,#rm-page .purchase-table-wrap th{padding:13px 11px}
#wf-page:not(.rp-workspace){padding:0;overflow:hidden;width:min(1320px,96vw);height:94dvh;border-radius:20px}
#wf-page:not(.rp-workspace)[open]{display:flex;flex-direction:column}
#wf-page:not(.rp-workspace)>.check-heading{flex:none;position:static;display:flex;flex-wrap:wrap;margin:0;padding:18px 22px;border-bottom:1px solid var(--line);gap:12px}
#wf-page:not(.rp-workspace)>.check-heading h2{flex:1;min-width:150px;font-size:21px}
#wf-page:not(.rp-workspace)>.check-heading>.ux-date-field{width:180px}
#wf-page:not(.rp-workspace)>.check-heading .ux-tools{order:0;flex:none;margin:0;gap:6px}
#wf-page:not(.rp-workspace)>.check-heading button{min-width:44px;min-height:44px}
#wf-page:not(.rp-workspace) #wf-page-actions{flex:none;display:flex;align-items:end;margin:0;padding:18px 22px;background:var(--paper2);border-bottom:1px solid var(--line);gap:12px;max-height:38dvh;overflow:auto}
#wf-page:not(.rp-workspace) #wf-page-actions label{display:grid;gap:7px;font-size:12px;color:var(--muted);min-width:0}
#wf-page:not(.rp-workspace) #wf-page-actions :is(input,select){min-width:0;max-width:none;width:100%;min-height:48px;background-color:var(--paper)}
#wf-page:not(.rp-workspace) #wf-content{padding:22px;overflow:auto;min-height:0;flex:1;min-width:0;overscroll-behavior:contain}
#wf-page:not(.rp-workspace) .wf-table-scroll{border:1px solid var(--line);border-radius:13px;max-height:none}
#wf-page:not(.rp-workspace) .wf-table-scroll h3{padding:0 14px}
#wf-page:not(.rp-workspace) .wf-table-scroll th{position:sticky;top:0;background:var(--paper2);z-index:1}
#wf-page:not(.rp-workspace) .wf-table-scroll table{min-width:480px}
#wf-page[data-view=archive] #wf-page-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto auto}
#wf-page[data-view=archive] .wf-archive{grid-template-columns:minmax(280px,.8fr) minmax(0,1.2fr);gap:20px}
#wf-page[data-view=archive] .wf-archive .wf-table-scroll table{min-width:0}
#wf-page[data-view=archive] .wf-archive td button{font-size:11px;margin:6px 4px 0 0}
#wf-page[data-view=stock] #wf-page-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
.ux-action-group{min-width:0}
.ux-action-group h3{font-size:11px;color:var(--muted);margin:0 0 10px;font-weight:600}
.ux-action-group>div{display:flex;gap:7px;flex-wrap:wrap}
.ux-action-group button{flex:1;min-width:100px;background:var(--paper);font-size:12px}
#wf-commands{width:min(800px,96vw);max-width:96vw;padding:22px;border-radius:18px}
#wf-command-close{display:block;margin-inline-start:auto;width:44px;font-size:23px}
#wf-command-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:16px}
#wf-command-list .ux-action-group{padding:16px;border:1px solid var(--line);border-radius:13px;background:var(--paper2)}
#wf-command-list .ux-action-group>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
#wf-command-list button{min-width:0;text-align:start;line-height:1.5;padding:12px}
#users-dialog{width:min(1100px,96vw);max-width:96vw;max-height:94dvh;padding:22px;border-radius:18px}
#users-dialog>.check-heading{margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid var(--line)}
#users-dialog .ux-users-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,1fr);gap:24px;align-items:start}
#users-dialog .ux-users-list{min-width:0}
#users-dialog .ux-users-tools{grid-template-columns:minmax(0,1fr);margin:0 0 12px}
#users-dialog #user-list{display:grid;gap:10px;max-height:62dvh;overflow:auto}
#users-dialog .user-row{display:flex;flex-wrap:wrap;gap:8px;padding:16px;margin:0;border:1px solid var(--line);border-radius:12px;background:var(--paper2)}
#users-dialog .user-row>span{flex:1 0 100%;line-height:1.7;font-size:13px}
#users-dialog .user-row button{font-size:12px}
#users-dialog #user-form{display:grid;gap:12px;padding:20px;background:var(--paper2);border:1px solid var(--line);border-radius:14px;margin:0}
#users-dialog #user-form>h3{margin:0 0 6px;font-size:16px}
#users-dialog #user-form label{font-size:12px;color:var(--muted);line-height:1.6}
#users-dialog .ux-user-field{display:grid;gap:7px}
#users-dialog .ux-user-field:has(>input[hidden]){display:none}
#users-dialog #user-form>input,#users-dialog #user-form>select{min-height:48px;background-color:var(--paper)}
#users-dialog #user-save{min-height:48px}
:is(#rm-form-dialog,#wf-form-dialog){padding:24px;border-radius:18px}
:is(#rm-form-dialog,#wf-form-dialog) h2{margin:0 0 20px}
:is(#rm-fields,#wf-fields)>label{font-size:12px;color:var(--muted);gap:8px}
:is(#rm-form-dialog,#wf-form-dialog) .dialog-actions{padding-top:18px;margin-top:18px;border-top:1px solid var(--line);gap:10px}
:is(#rm-form-dialog,#wf-form-dialog) .dialog-actions button{min-height:48px}
#rq-view .rm-tabs{display:flex;gap:10px;flex-wrap:wrap;margin-block:18px}
#rq-view .rm-tabs button{min-height:48px;flex:1;background:var(--paper2)}
#wf-page.rp-workspace .rp-toolbar{padding:4px 0}
#wf-page.rp-workspace #rp-filter-panel{padding:18px;margin-top:14px;background:var(--paper2);border:1px solid var(--line);border-radius:14px}
#wf-page.rp-workspace #rp-filters{align-items:end}
#wf-page.rp-workspace #rp-filters .ux-date-button{background:var(--paper);min-height:48px}
#wf-page.rp-workspace .rp-document{background:var(--paper);color:var(--ink);border-color:var(--line);border-radius:16px;box-shadow:var(--shadow)}
#wf-page.rp-workspace .rp-brand{background:var(--paper);color:var(--ink);border-color:var(--line)}
#wf-page.rp-workspace .rp-brand strong,#wf-page.rp-workspace .rp-brand small{color:var(--gold)}
#wf-page.rp-workspace :is(.rp-heading,.rp-section h2,.rp-notes){border-color:var(--line);color:var(--ink)}
#wf-page.rp-workspace :is(.rp-heading p,.rp-heading small,.rp-notes p,.rp-cards span){color:var(--muted)}
#wf-page.rp-workspace .rp-cards>div{border-color:var(--line);background:var(--paper2);border-radius:12px}
#wf-page.rp-workspace .rp-cards strong{color:var(--ink)}
#wf-page.rp-workspace .rp-document :is(th,td){border-color:var(--line);color:var(--ink)}
#wf-page.rp-workspace .rp-document th{background:var(--paper2)}
#wf-page.rp-workspace .rp-document tr{border-color:var(--line)}
#wf-page.rp-workspace .rp-document tr:nth-child(even) td{background:var(--paper2)}
#wf-page.rp-workspace .rp-document .rp-total td{background:var(--soft)!important;color:var(--ink);border-color:var(--gold)!important}
#wf-page.rp-workspace .rp-document td:before{color:var(--muted)}
@media(max-width:1100px){
 .ux-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.ux-toolbar>button{grid-column:1/-1}
 #rm-page #rm-catalog{grid-template-columns:minmax(0,1fr)}
 #rm-page .purchase-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 #wf-page[data-view=archive] #wf-page-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
 #wf-page[data-view=stock] #wf-page-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
 #users-dialog .ux-users-layout{grid-template-columns:minmax(0,1fr)}
 #users-dialog #user-list{max-height:38dvh}
}
@media(max-width:700px){
 #shell>nav{padding:8px 12px;gap:6px}
 #shell>nav button{padding:10px 12px;font-size:12px}
 #rm-page .rm-menu-toolbar,#rm-page .guest-qr-tools,#rm-page .recipe-filters,#rm-page .rq-filters{padding:14px}
 .ux-toolbar{grid-template-columns:minmax(0,1fr);padding:14px}
 #rm-page .purchase-filters{padding:14px;gap:12px 10px}
 #rm-page .purchase-filters>button{justify-self:stretch}
 .ux-range-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 #rm-page .purchase-summary strong{font-size:18px}
 #wf-page:not(.rp-workspace){width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}
 #wf-page:not(.rp-workspace)>.check-heading{padding:12px 16px;gap:8px}
 #wf-page:not(.rp-workspace)>.check-heading h2{font-size:18px}
 #wf-page:not(.rp-workspace)>.check-heading>.ux-date-field{width:100%;order:3}
 #wf-page:not(.rp-workspace)>.check-heading .ux-tools{order:2;flex-basis:100%}
 #wf-page:not(.rp-workspace) #wf-page-actions{padding:14px 16px;max-height:36dvh}
 #wf-page:not(.rp-workspace) #wf-content{padding:16px}
 #wf-page[data-view=archive] .wf-archive{grid-template-columns:minmax(0,1fr)}
 #wf-page[data-view=stock] #wf-page-actions{grid-template-columns:minmax(0,1fr)}
 .ux-action-group>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .ux-action-group button{min-width:0}
 #wf-command-list{grid-template-columns:minmax(0,1fr);gap:12px}
 #wf-commands,#users-dialog{padding:16px}
 #users-dialog #user-form{padding:16px}
 #users-dialog .ux-users-layout{gap:18px}
 :is(#rm-form-dialog,#wf-form-dialog){padding:18px}
 #wf-page.rp-workspace #rp-filter-panel{padding:12px}
 #wf-page.rp-workspace .rp-document{padding:14px}
}

#wf-page .ux-workflow-search{grid-column:1/-1;flex:1 0 100%}#wf-page .ux-workflow-search input{max-width:560px!important}

/* UI174: previous checks workspace. */
#wf-page[data-view=archive] #wf-date,#wf-page[data-view=archive]>.check-heading>.ux-date-field{display:none!important}
#wf-page[data-view=archive] #wf-page-actions{display:block;max-height:42dvh;padding:14px 20px}
#wf-page[data-view=archive] .archive-search{display:grid;grid-template-columns:minmax(180px,1fr) 100px auto auto auto;gap:10px;align-items:end}
#wf-page[data-view=archive] .archive-search button{min-height:48px;margin:0}
#wf-page[data-view=archive] [data-wf=archive-refresh]{background:var(--green);color:var(--paper);border-color:var(--green)}
#wf-page[data-view=archive] .archive-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
#wf-page[data-view=archive] .archive-filters[hidden]{display:none}
#wf-page[data-view=archive] #wf-content{padding:16px 20px;display:flex;flex-direction:column;min-height:0;overflow:hidden}
.archive-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:0 0 14px;color:var(--muted);font-size:13px;flex:none}
.archive-summary strong{color:var(--ink);font-size:14px}
#wf-page[data-view=archive] .wf-archive{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,400px);gap:20px;flex:1;min-height:0;overflow:hidden}
.archive-list{min-width:0;overflow:auto;overscroll-behavior:contain;padding:2px 4px 12px 2px}
.archive-card{border:1px solid var(--line);border-radius:14px;background:var(--paper);margin-bottom:10px;overflow:hidden}
.archive-card.selected{border-color:var(--gold);box-shadow:inset 3px 0 var(--gold)}
#wf-page .archive-select{display:flex;justify-content:space-between;align-items:start;gap:14px;width:100%;border:0;border-radius:0;background:transparent;color:var(--ink);text-align:start;margin:0;padding:16px 18px;min-height:76px}
.archive-select>span{min-width:0}.archive-select strong{display:block;font-size:17px;letter-spacing:.035em;unicode-bidi:isolate}
.archive-select small,.archive-payment small{display:block;color:var(--muted);font-size:12px;line-height:1.6;margin-top:5px;white-space:normal;overflow-wrap:anywhere}
.archive-amount{font-size:18px;font-weight:700;text-align:end;white-space:nowrap;font-variant-numeric:tabular-nums}
.archive-card-actions{display:flex;gap:8px;padding:0 16px 12px;flex-wrap:wrap}
#wf-page .archive-card-actions button{min-height:40px;font-size:12px;padding:8px 12px;margin:0;background:var(--paper2)}
#wf-invoice-detail{min-width:0;overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:14px;background:var(--paper2);padding:16px}
.archive-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.archive-detail-heading h3{margin:0;font-size:18px;unicode-bidi:isolate}.archive-detail-heading>span{font-size:13px;color:var(--muted)}
#wf-page [data-wf=archive-back]{display:none}
.archive-receipt{background:#fff;border-radius:10px;padding:12px 4px;color:#111;overflow:hidden}
.archive-receipt .thermal-receipt{box-sizing:border-box}
.archive-detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.archive-detail-actions>p{width:100%}
.archive-payment{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-top:1px solid var(--line);font-size:13px}.archive-payment>span{min-width:0}
.archive-empty{text-align:center;color:var(--muted);padding:36px 16px}.archive-empty h3{color:var(--ink)}
@media(max-width:1100px){
 #wf-page[data-view=archive] .wf-archive{grid-template-columns:minmax(0,1fr)}
 #wf-page[data-view=archive] .wf-archive:not(.archive-detail-open) #wf-invoice-detail{display:none}
 #wf-page[data-view=archive] .wf-archive.archive-detail-open .archive-list{display:none}
 #wf-page [data-wf=archive-back]{display:inline-flex;margin:0}
 #wf-invoice-detail{max-width:680px;width:100%;box-sizing:border-box;margin:0 auto}
 .archive-receipt{max-width:380px;margin:auto}
}
@media(max-width:600px){
 #wf-page[data-view=archive] #wf-page-actions{padding:12px;max-height:45dvh}
 #wf-page[data-view=archive] .archive-search{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 80px;gap:8px}
 #wf-page[data-view=archive] .archive-search label:first-child{grid-column:1/3}
 #wf-page[data-view=archive] .archive-search label:nth-child(2){grid-column:3;grid-row:1}
 #wf-page[data-view=archive] .archive-search button{font-size:12px;padding:8px;min-height:44px}
 #wf-page[data-view=archive] .archive-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
 #wf-page[data-view=archive] #wf-content{padding:12px}
 #wf-page .archive-select{padding:14px 12px;gap:8px}.archive-select strong{font-size:15px}.archive-amount{font-size:16px}.archive-select small{font-size:11px}
 .archive-card-actions{padding:0 12px 12px}.archive-summary{font-size:11px}.archive-summary strong{font-size:12px}
}

/* UI176: section launcher and searchable operational lists. */
#pos-sections{width:min(720px,94vw);max-height:90dvh;padding:22px;border-radius:20px;overflow:auto}
#pos-sections>.check-heading{display:flex;justify-content:space-between;gap:12px;margin-bottom:18px}#pos-sections h2{margin:0;font-size:22px}
.sections-search{display:grid;gap:8px;font-size:13px;color:var(--muted);margin-bottom:18px}.sections-search input{width:100%;min-height:48px}
#pos-section-links,#pos-section-links #wf-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#pos-section-links #wf-nav{grid-column:1/-1}#pos-section-links button{width:100%;min-height:62px;text-align:start;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--paper2);font-size:14px;white-space:normal}
#pos-section-links .section-search-hidden,#pos-section-links [hidden]{display:none!important}
#shell>nav{flex-wrap:wrap;overflow:visible}#pos-sections-open{border-color:var(--gold)!important}
.list-filter-panel{padding:16px;background:var(--paper2);border:1px solid var(--line);border-radius:14px;margin-bottom:16px}
.list-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:end}
.list-filter-panel label,.account-filter-row label{display:grid;gap:6px;min-width:0;font-size:12px;color:var(--muted)}
.list-filter-panel :is(input,select),.account-filter-row select{width:100%;min-width:0;min-height:46px;background:var(--paper)}
.list-search-row button{min-height:46px;margin:0;font-size:13px}
.list-filter-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding-top:14px;margin-top:14px;border-top:1px solid var(--line)}
.list-filter-fields[hidden]{display:none!important}.list-result-count{font-size:12px;color:var(--muted);margin:12px 0 0}
.setup-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.setup-card{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px;border:1px solid var(--line);background:var(--paper);border-radius:13px;min-width:0}
.setup-card>div{min-width:0}.setup-card strong{font-size:16px;display:block}.setup-card small{display:block;font-size:13px;color:var(--muted);margin-top:5px}.setup-card p,.setup-card span{font-size:12px;color:var(--muted);line-height:1.5;margin:7px 0}
.setup-card button{flex:none;max-width:120px;font-size:12px;min-height:44px;white-space:normal}
#wf-page[data-view=setup] #wf-page-actions{padding:10px 20px;justify-content:flex-end}
.account-filter-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:12px}
#kds-list-filters{margin:16px 22px}#kds-list-filters[hidden]{display:none}
:is(.setup-card,.prepared-printer,.kds-card,.wf-ticket,.user-row,.ux-count-card)[hidden]{display:none!important}
#rm-page .rq-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#rm-page .rq-filters>input[type=search]{grid-column:1/-1}
#rm-page .guest-qr-tools{display:flex;flex-wrap:wrap;align-items:end;gap:12px}
#rm-page .guest-qr-tools label{display:grid;gap:6px;min-width:0}
@media(max-width:1000px){.setup-list{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.list-filter-panel{padding:12px}.list-filter-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.list-search-row{grid-template-columns:1fr 1fr}.list-search-row>label{grid-column:1/-1}.account-filter-row{grid-template-columns:1fr 1fr}.setup-card{padding:12px;gap:10px}.setup-card strong{font-size:14px}.setup-card button{max-width:90px}#pos-sections{padding:16px}#pos-section-links button{min-height:58px;font-size:13px;padding:12px}}

/* Multi-selection candidate */
#selection-bar{display:flex;align-items:center;gap:8px;padding:10px 14px;border-block:1px solid var(--line);background:var(--paper2);font-size:13px}
#selected-count{margin-inline-end:auto;color:var(--gold,#d7b570);font-weight:650}
#selection-bar button{min-height:34px;padding:5px 10px;font-size:12px;background:transparent;border:1px solid var(--line);border-radius:8px;color:var(--ink)}
.line-name{display:flex;align-items:center;gap:10px}
.line-name input[data-line-select]{width:20px;height:20px;min-width:20px;accent-color:#d7b570;cursor:pointer;margin:0}
#entry-dialog{border-radius:20px;padding:26px;width:min(560px,calc(100vw - 32px));box-sizing:border-box}
#entry-dialog #entry-value{min-height:58px;font-size:22px;border-radius:12px;margin-block:12px 22px;width:100%;box-sizing:border-box}
#entry-dialog #entry-label{font-size:16px;font-weight:600;color:var(--ink)}
@media(max-width:600px){#entry-dialog{padding:20px}#entry-dialog #entry-value{font-size:18px;min-height:52px;margin-block:10px 16px}.line-name{gap:7px}}

/* UI192 — administrator guest-menu ordering workspace. */
.qr-order-board{max-width:980px;margin-inline:auto;color:var(--ink)}
.qr-order-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px;border:1px solid var(--line);border-radius:18px;background:var(--soft)}
.qr-order-intro h3{margin:0 0 8px;font-size:22px}.qr-order-intro p{margin:0;color:var(--muted);line-height:1.7;max-width:640px}
.qr-order-badge{color:var(--gold);border:1px solid var(--gold);border-radius:14px;padding:14px;font-weight:750;letter-spacing:2px}
.qr-order-section{display:grid;gap:8px;max-width:440px;margin:20px 0 12px;font-weight:650}.qr-order-section select{width:100%;min-height:48px}
.qr-order-status{min-height:24px;color:var(--muted);font-size:13px;line-height:1.6;margin:12px 0}
#qr-order-list{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.qr-order-row{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--paper)}
.qr-order-row button{display:grid;place-items:center;min-width:44px;min-height:44px;padding:8px;border-radius:10px}.qr-order-row svg{width:22px;height:22px;pointer-events:none}
.qr-order-row .qr-order-handle{touch-action:none;cursor:grab;color:var(--muted);background:transparent;border:0}.qr-order-dragging,.qr-order-dragging *{cursor:grabbing!important;user-select:none}
.qr-order-position{flex:0 0 54px;max-width:54px}.qr-order-position input{width:54px;text-align:center;padding:8px 2px;min-height:44px;color:var(--gold);font-weight:750;-moz-appearance:textfield}.qr-order-position input::-webkit-inner-spin-button{appearance:none}
.qr-order-item{flex:1;min-width:0}.qr-order-item strong{display:block;line-height:1.5;overflow-wrap:anywhere}.qr-order-item small{display:block;color:var(--muted);font-size:12px;margin-top:5px}
.qr-order-moves{display:flex;gap:6px}.qr-order-footer{position:sticky;bottom:0;z-index:3;display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:16px 0;background:var(--bg);border-top:1px solid var(--line);margin-top:18px}
.qr-order-footer>div{margin-inline-end:auto}.qr-order-footer small{display:block;color:var(--muted);margin-top:5px}.qr-order-footer button{min-height:46px}.qr-order-empty{padding:40px 20px;text-align:center;color:var(--muted)}
.qr-order-sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:600px){.qr-order-intro{padding:14px;gap:10px}.qr-order-intro h3{font-size:19px}.qr-order-intro p{font-size:13px}.qr-order-badge{padding:10px}.qr-order-row{padding:8px;gap:6px}.qr-order-row .qr-order-handle{min-width:30px;width:30px;padding:4px}.qr-order-position,.qr-order-position input{width:42px;max-width:42px;flex-basis:42px}.qr-order-item strong{font-size:14px}.qr-order-item small{font-size:11px}.qr-order-moves{flex-direction:column;gap:4px}.qr-order-footer>div{width:100%;font-size:13px}.qr-order-footer>button{flex:1}}

/* Keep the talk control at the same viewport corner; the keyboard covers it. */
:root #hmsRadio,:root #wf-page.rp-workspace #hmsRadio{bottom:calc(20px + env(safe-area-inset-bottom));inset-inline-end:20px}

#rm-page #rm-content[data-section="guest-order"]{overflow:visible}

/* UI198: read-only guest feedback dashboard. */
#rm-content .guest-reviews-board{max-width:1180px;margin:auto;min-width:0}
#rm-content .gr-intro{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:22px;border:1px solid var(--line);border-radius:20px;background:var(--card)}
#rm-content .gr-intro h3{margin:6px 0;font-size:24px}#rm-content .gr-intro p{margin:0;color:var(--muted);line-height:1.7}
.gr-eyebrow{font-size:10px;letter-spacing:2px;color:var(--gold)}.gr-zone{font-size:12px;color:var(--muted);white-space:nowrap}
#rm-content .gr-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}
#rm-content .gr-filters label{display:grid;gap:7px;font-size:13px;min-width:0}#rm-content .gr-filters input,#rm-content .gr-filters select{width:100%;min-width:0;box-sizing:border-box;min-height:44px}
.gr-filter-actions{grid-column:1/-1;display:flex;gap:10px}.gr-filter-actions button{min-width:110px}
.gr-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.gr-toolbar p{font-size:12px;color:var(--muted)}
#rm-content .gr-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}
#rm-content .gr-summary article{padding:18px;border:1px solid var(--line);background:var(--card);border-radius:16px;display:grid;gap:10px;min-width:0}
.gr-summary article>span{font-size:12px;color:var(--muted)}.gr-summary strong{font-size:30px;color:var(--gold)}.gr-summary small{font-size:13px;font-weight:400;color:var(--muted)}
.gr-distribution{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;padding:16px;border:1px solid var(--line);border-radius:16px}.gr-distribution>div{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:6px;font-size:12px}.gr-distribution span{color:var(--gold)}.gr-distribution meter{width:100%;height:9px;min-width:0;accent-color:var(--gold)}.gr-result-caption{font-size:12px;color:var(--muted)}
.gr-list{display:grid;gap:12px}#rm-content .gr-card{padding:20px;border:1px solid var(--line);border-radius:18px;background:var(--card);min-width:0}
.gr-card-top{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.gr-card-top>div{display:grid;gap:10px}.gr-table{font-size:15px;font-weight:700}.gr-stars{color:var(--gold);display:flex;gap:10px;align-items:center;direction:ltr;justify-content:flex-start}.gr-stars>span{font-size:21px;letter-spacing:2px}.gr-stars i{font-style:normal;opacity:.5}.gr-stars b{font-size:12px;color:var(--muted)}.gr-card time{display:grid;gap:5px;text-align:end;color:var(--muted);font-size:12px;white-space:nowrap}.gr-comment{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.85;margin:16px 0 0}.gr-no-comment{color:var(--muted);font-size:13px}.gr-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0;font-size:13px}.gr-pagination button{min-width:90px}.gr-empty{text-align:center;padding:34px 16px;border:1px dashed var(--line);border-radius:18px;color:var(--muted)}.gr-empty>span{font-size:42px;color:var(--gold)}
@media(max-width:700px){#rm-content .gr-intro{padding:16px;display:block}.gr-zone{display:block;margin-top:12px}#rm-content .gr-intro h3{font-size:21px}#rm-content .gr-filters{grid-template-columns:repeat(2,minmax(0,1fr))}#rm-content .gr-summary{gap:7px}#rm-content .gr-summary article{padding:12px 9px}.gr-summary strong{font-size:24px}.gr-summary article>span{font-size:11px}.gr-distribution{grid-template-columns:1fr;gap:8px}.gr-distribution>div{grid-template-columns:35px 1fr 25px}#rm-content .gr-card{padding:15px}.gr-card-top{gap:8px}.gr-card time{font-size:11px}.gr-comment{font-size:14px}.gr-pagination button{min-width:74px}}

#rm-content .gr-card{display:block!important}#rm-content .gr-card-top{width:100%}#rm-content .gr-filters [name=table]{direction:ltr;text-align:start}

/* Portrait tablet captain workspace: menu 56%, check 44%. */
@media screen and (min-width:720px) and (max-width:1100px) and (orientation:portrait){
 body[data-role=captain] #cashier-view{grid-template-columns:minmax(0,1.27fr) minmax(310px,1fr)}
 body[data-role=captain] .products{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
 body[data-role=captain] .product{min-height:112px;padding:11px}
 body[data-role=captain] .product.category-card{min-height:94px;padding:11px}
 body[data-role=captain] .product strong{font-size:14px;overflow-wrap:anywhere}
 body[data-role=captain] .lines-head,body[data-role=captain] .line{grid-template-columns:minmax(0,1fr) 92px 64px;gap:4px}
 body[data-role=captain] .line-qty button{min-width:34px;width:34px;min-height:44px}
 body[data-role=captain] .qty-value{min-width:24px;font-size:15px}
 body[data-role=captain] .line-name{font-size:15px;overflow-wrap:anywhere}
 body[data-role=captain] .line-amount{font-size:14px;white-space:nowrap}
 body[data-role=captain] .check-heading{padding:8px;gap:6px}
 body[data-role=captain] .check-heading h2{font-size:16px}
 body[data-role=captain] #line-count{font-size:12px}
}

/* Approved VILLAGGIO staff presentation167. Scoped to staff POS; state/permission colours retained. */
@media screen{
html body.p167{--p167-border:color-mix(in srgb,var(--gold) 34%,var(--line));--p167-panel:var(--paper);font-variant-numeric:tabular-nums}
html[data-theme=dark] body.p167{--bg:#0c201b;--paper:#142e26;--paper2:#19372e;--line:#365246;--muted:#b1c3b7;--accent:#d9b878;--gold:#d9b878;--ink:#f6f4ea}
html body.p167 #shell>header{padding:10px 20px;gap:12px;border-bottom:1px solid var(--p167-border)}
html body.p167 #workspace-title{font-size:15px;line-height:1.3}
html body.p167 #shell>header .brand{font-size:12px;letter-spacing:3px}
html body.p167 #shell>header .brand-logo{width:20px;height:32px}
html body.p167 #shell>nav{padding:7px 20px;gap:8px;min-height:56px;flex-wrap:nowrap;overflow-x:auto}
html body.p167 #shell>nav button{min-height:42px;padding:8px 16px;border-radius:11px;font-size:13px}
html body.p167 button:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
html body.p167 #tables-view{max-width:1600px;margin:auto}
html body.p167 .table-toolbar{padding:4px 0 20px;gap:12px}
html body.p167 .table-toolbar h1{font-size:26px;letter-spacing:-.5px}
html body.p167 .table-search-row input{border-radius:12px;min-height:46px}
html body.p167 #open-table,html body.p167 #refresh{min-height:46px;border-radius:12px}
html body.p167 .table-grid{grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:14px}
html body.p167 #tables-view .table{border-radius:18px;min-height:182px;padding:16px 18px;gap:4px;border-color:var(--p167-border);border-top:3px solid var(--gold);box-shadow:0 8px 22px #0000000b}
html body.p167 #tables-view .table>strong{font-size:40px;line-height:1.05;margin:12px 0 8px;font-weight:750;letter-spacing:-1px}
html body.p167 #tables-view .table .state{font-size:12px;font-weight:600}
html body.p167 .table-card-heading{gap:8px;align-items:start}
html body.p167 .table-card-meta{font-size:10px;gap:4px}
html body.p167 .table-card-meta b{font-size:inherit}
html body.p167 #tables-view .table .amount{font-size:20px;font-weight:700}
html body.p167 .table-qr-balance{font-size:12px}
html body.p167 .table-qr-payment{font-size:11px}
html body.p167 #captain-review-board,html body.p167 #qr-board{margin-top:24px}
html body.p167 #captain-review-board h2,html body.p167 #qr-board h2{font-size:19px}
html body.p167 #tables-view .table.captain-review-card{border-color:#aa8ac9}
html body.p167[data-view=cashier] #shell:not([hidden]){height:100dvh!important;min-height:0!important;display:flex;flex-direction:column;overflow:hidden!important}
html body.p167[data-view=cashier] main{display:flex;flex:1;min-height:0!important;padding:12px 18px;overflow:auto!important;width:100%;max-width:none}
html body.p167 #cashier-view{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(360px,1fr);grid-template-rows:44px minmax(0,1fr);gap:10px 16px;min-height:470px!important;width:100%;direction:inherit}
html body.p167 #cashier-view[hidden]{display:none}
html body.p167 #cashier-view>.heading{grid-column:1/-1;grid-row:1;min-height:44px;flex-wrap:nowrap;margin:0;gap:8px}
html body.p167 #cashier-view>.heading h1{font-size:19px}
html body.p167 #cashier-view>.heading button{min-height:40px;font-size:12px}
html body.p167 #p167-tabs{display:none;gap:5px;margin-inline-start:auto;border:1px solid var(--line);padding:3px;border-radius:12px;background:var(--paper)}
html body.p167 #p167-tabs button{min-width:85px;border:0;background:transparent;padding:7px 12px;min-height:34px}
html body.p167 #p167-tabs button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink)}
html body.p167 #p167-dock{display:none}
html body.p167 .cashier-layout{display:contents}
html body.p167 .catalog{grid-column:1;grid-row:2;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:44px 40px minmax(0,1fr);gap:8px;min-height:0;height:100%;padding:0;direction:inherit;overflow:hidden}
html body.p167 .catalog>input{grid-column:1;grid-row:1;min-height:44px;border-radius:12px;background:var(--paper);font-size:15px}
html body.p167 .catalog>.filters{grid-column:1;grid-row:2;flex-direction:row;overflow:auto;margin:0;padding:0;gap:6px}
html body.p167 .catalog>.filters button{min-height:38px;padding:8px 14px;font-size:13px}
html body.p167 #products{grid-column:1;grid-row:3;min-height:0!important;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:2px 2px 12px;overflow:auto;align-content:start}
html body.p167 .product{min-height:100px;padding:13px;gap:10px;border:1px solid var(--p167-border);border-radius:15px;background:var(--paper);position:relative;box-shadow:none}
html body.p167 .product.category-card{min-height:103px;padding:15px 13px 12px;border-top:1px solid var(--p167-border);background:linear-gradient(140deg,var(--paper2),var(--paper))}
html body.p167 .product.category-card::after{content:"›";position:absolute;inset-inline-end:12px;bottom:10px;font-size:23px;color:var(--gold);line-height:1}
html[dir=rtl] body.p167 .product.category-card::after{content:"‹"}
html body.p167 .product strong{font-size:15px;line-height:1.35;font-weight:650;letter-spacing:0}
html body.p167 .product.category-card span{font-size:11px;padding-inline-end:22px;color:var(--muted)}
html body.p167 .product .price{font-size:14px;color:var(--gold)}
html body.p167 .check{grid-column:2;grid-row:2;display:flex;flex-direction:column;height:100%;min-height:0;border-radius:17px;border:1px solid var(--p167-border);background:var(--paper);direction:inherit;overflow:hidden}
html body.p167 .check>.check-heading{order:0;min-height:44px;padding:8px 12px;gap:8px;flex-wrap:nowrap}
html body.p167 .check>.check-heading h2{font-size:16px}
html body.p167 #check-print-meta{order:0;padding:5px 12px;font-size:10px;line-height:1.4;gap:8px}
html body.p167 #selection-bar{order:0;padding:3px 12px;min-height:36px;gap:6px;font-size:11px}
html body.p167 #selection-bar button{min-height:32px;padding:5px 8px;font-size:11px}
html body.p167 #review-check{min-height:34px;padding:6px 9px}
html body.p167 .check-content{order:1;flex:1 1 0;min-height:120px!important;max-height:none;overflow:auto;scrollbar-gutter:stable;scroll-padding-block:32px}
html body.p167 .lines-head,html body.p167 .line{grid-template-columns:minmax(0,1fr) 94px 72px;gap:5px}
html body.p167 .lines-head{padding:7px 12px;font-size:10px}
html body.p167 #lines{min-height:0;padding:0 10px;overflow:visible}
html body.p167 .line{min-height:57px;padding:7px 2px;row-gap:2px;font-size:13px}
html body.p167 .line-name{font-size:13px;line-height:1.35;font-weight:600}
html body.p167 .line-name input{width:16px;height:16px;min-width:16px;margin-inline-end:6px}
html body.p167 .line-qty{gap:0}
html body.p167 .line-qty button{width:32px;min-width:32px;min-height:40px;height:40px;font-size:20px;border-radius:9px}
html body.p167 .qty-value{min-width:26px;font-size:14px}
html body.p167 .line-amount{font-size:13px;font-weight:650}
html body.p167 .line-remark{font-size:10px;line-height:1.4;white-space:normal;overflow-wrap:anywhere;margin:0}
html body.p167 .p167-rail{order:2;flex:none;display:flex;flex-direction:column;min-width:0;background:var(--paper)}
html body.p167 .order-actions{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:6px 10px}
html body.p167 .order-actions button{min-height:40px;padding:6px 4px;font-size:11px;border-radius:9px}
html body.p167 #wf-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:0 10px 8px}
html body.p167 #wf-actions[hidden]{display:none}
html body.p167 #wf-actions button{min-height:42px;font-size:12px;padding:7px;border-radius:10px}
html body.p167 #wf-actions .wf-send-stack{display:grid;gap:6px;grid-column:1/-1;grid-row:2}
html body.p167 #wf-actions .wf-send-stack button{width:100%;min-height:44px;margin:0;font-size:14px;font-weight:700;background:var(--accent);color:var(--accent-ink)}
html body.p167 .checkout{display:block;padding:10px 12px;background:var(--paper2);border-top:1px solid var(--line)}
html body.p167 .total{font-size:14px}
html body.p167 .total strong{font-size:25px}
html body.p167 .checkout #preview-note{font-size:12px;line-height:1.5;margin:6px 0}
html body.p167 .checkout .primary{min-height:48px;font-size:15px;border-radius:12px}
html body.p167 #clear-table{min-height:40px;width:100%;font-size:12px;margin-top:6px;border-radius:10px}
html body.p167 .checkout [hidden]{display:none!important}
html body.p167 #kot-delivery-status{max-height:52px!important;overflow:auto;margin:5px 18px!important;padding:7px 12px!important;font-size:12px!important;flex:none}
html body.p167 #captain-requests{max-height:140px;overflow:auto;flex:none}
/* Cashier: compact order lines on the left, unchanged settlement/actions on the right. */
html body.p167-cashier #p167-tabs{display:flex}
html body.p167-cashier[data-p167-pane=order] #cashier-view{grid-template-columns:minmax(0,1fr)}
html body.p167-cashier[data-p167-pane=order] .catalog{display:none}
html body.p167-cashier[data-p167-pane=order] .check{grid-column:1;grid-row:2;display:grid;grid-template-columns:minmax(0,1.8fr) minmax(280px,1fr);grid-template-rows:48px auto auto minmax(0,1fr)}
html body.p167-cashier[data-p167-pane=order] .check>.check-heading{grid-column:1;grid-row:1}
html body.p167-cashier[data-p167-pane=order] #check-print-meta{grid-column:1;grid-row:2}
html body.p167-cashier[data-p167-pane=order] #selection-bar{grid-column:1;grid-row:3}
html body.p167-cashier[data-p167-pane=order] .check-content{grid-column:1;grid-row:4;height:100%}
html body.p167-cashier[data-p167-pane=order] .p167-rail{grid-column:2;grid-row:1/5;border-inline-start:1px solid var(--p167-border);padding:16px;gap:12px;overflow:auto;justify-content:start}
html body.p167-cashier[data-p167-pane=order] .checkout{order:-1;border:0;border-bottom:1px solid var(--p167-border);padding:0 0 14px;background:transparent}
html body.p167-cashier[data-p167-pane=order] .checkout .total{display:flex;flex-wrap:wrap;gap:10px;padding:10px 0}
html body.p167-cashier[data-p167-pane=order] .checkout .total strong{font-size:34px}
html body.p167-cashier[data-p167-pane=order] #preview-note{display:grid;gap:10px;font-size:15px;margin:12px 0 18px}
html body.p167-cashier[data-p167-pane=order] .ph-trigger{border:1px solid var(--p167-border);border-radius:12px;padding:12px;min-height:48px}
html body.p167-cashier[data-p167-pane=order] .ph-trigger-label{display:block;margin:5px 0 0;font-size:12px;color:var(--gold)}
html body.p167-cashier[data-p167-pane=order] .ph-balance{font-size:18px;font-weight:650;padding:8px 0}
html body.p167-cashier[data-p167-pane=order] .order-actions{padding:0;grid-template-columns:repeat(2,minmax(0,1fr))}
html body.p167-cashier[data-p167-pane=order] #wf-actions{padding:0;grid-template-columns:repeat(2,minmax(0,1fr))}
html body.p167-cashier[data-p167-pane=order] #wf-actions .wf-send-stack{grid-row:auto}
@media(min-width:1200px){
 html body.p167 #products{grid-template-columns:repeat(4,minmax(0,1fr))}
 html body.p167-cashier[data-p167-pane=order] .line{min-height:58px}
}
@media(max-width:899px){
 html body.p167 #cashier-view{grid-template-columns:minmax(0,1fr) minmax(330px,1fr);gap:10px}
 html body.p167 #products{grid-template-columns:repeat(2,minmax(0,1fr))}
 html body.p167 .table-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 html body.p167-cashier[data-p167-pane=order] .check{grid-template-columns:minmax(0,1.6fr) minmax(240px,1fr)}
 html body.p167-cashier[data-p167-pane=order] .p167-rail{padding:12px}
}
@media(max-width:699px){
 html body.p167 #shell>header{display:grid;grid-template-columns:minmax(100px,1fr) minmax(100px,1fr);padding:8px 12px;gap:6px 10px}
 html body.p167 #shell>header .header-actions{display:contents}
 html body.p167 #shell>header .header-tools{display:flex;grid-column:1/-1;justify-content:flex-end;gap:6px;padding-top:5px;border-top:1px solid var(--line)}
 html body.p167 #shell>header .header-tools>*{min-height:36px;height:36px;padding:5px 10px;font-size:12px}
 html body.p167 #shell>header #shift-select{width:95px;flex:1 1 auto;max-width:160px}
 html body.p167 #shell>header #theme{width:38px;font-size:20px}
 html body.p167 #shell>header .header-session #account-name{max-width:100%;font-size:11px}
 html body.p167 #shell>header #shift-label{font-size:10px}
 html body.p167 #shell>nav{min-height:46px;padding:5px 10px;gap:5px}
 html body.p167 #shell>nav button{min-height:36px;padding:6px 10px;font-size:12px}
 html body.p167 main{padding:14px 12px}
 html body.p167 .table-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 html body.p167 #tables-view .table{padding:12px;min-height:169px;border-radius:15px}
 html body.p167 #tables-view .table>strong{font-size:36px}
 html body.p167 .table-card-heading{flex-direction:column;gap:5px}
 html body.p167 .table-card-meta{flex-direction:row;flex-wrap:wrap;text-align:start;gap:4px 8px}
 html body.p167 #tables-view .table .amount{font-size:18px}
 html body.p167 .table-toolbar h1{font-size:22px}
 html body.p167 .table-toolbar{gap:9px}
 html body.p167 .table-lookup{flex:1 0 100%;margin:0}
 html body.p167 .table-search-row input{width:0;flex:1;min-width:0}
 html body.p167[data-view=cashier] main{padding:8px 10px;overflow:hidden!important}
 html body.p167 #cashier-view,html body.p167-cashier[data-p167-pane=order] #cashier-view{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;gap:8px;min-height:0!important}
 html body.p167 #cashier-view>.heading{grid-column:1;grid-row:1;display:flex;flex-wrap:wrap;gap:6px;min-height:0}
 html body.p167 #cashier-view>.heading>div{gap:6px}
 html body.p167 #cashier-view>.heading h1{font-size:16px}
 html body.p167 #cashier-view>.heading button{min-height:36px;padding:6px 8px;font-size:11px}
 html body.p167 #p167-tabs{display:flex;gap:2px;padding:2px;border-radius:10px}
 html body.p167 #p167-tabs button{min-width:60px;min-height:32px}
 html body.p167 .catalog{grid-column:1;grid-row:2;height:100%;min-height:0;grid-template-rows:44px 36px minmax(0,1fr);gap:7px}
 html body.p167 .catalog>.filters button{min-height:34px;padding:5px 10px}
 html body.p167 #products{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding-bottom:10px}
 html body.p167 .product,html body.p167 .product.category-card{min-height:93px;padding:13px}
 html body.p167 .product strong{font-size:14px}
 html body.p167[data-p167-pane=menu] .check{display:none}
 html body.p167[data-p167-pane=order] .catalog{display:none}
 html body.p167[data-p167-pane=menu] #p167-dock{display:block;grid-row:3;grid-column:1;min-height:52px;width:100%;border-radius:14px;background:var(--accent);color:var(--accent-ink);font-size:14px;font-weight:700;margin:0 0 env(safe-area-inset-bottom);padding:10px}
 html body.p167[data-p167-pane=order] .check,html body.p167-cashier[data-p167-pane=order] .check{grid-column:1;grid-row:2/4;display:flex;flex-direction:column;height:100%;min-height:0;overflow:auto}
 html body.p167 .check>.check-heading{padding:7px 10px;min-height:38px}
 html body.p167 .check>.check-heading h2{font-size:15px}
 html body.p167 #check-print-meta{padding:4px 10px;font-size:10px}
 html body.p167 #selection-bar{padding:2px 10px;min-height:30px;font-size:10px}
 html body.p167 #selection-bar button{min-height:30px;padding:3px 6px}
 html body.p167 .check-content,html body.p167-cashier[data-p167-pane=order] .check-content{flex:1 1 180px;min-height:150px!important;height:auto;max-height:none}
 html body.p167 .lines-head,html body.p167 .line{grid-template-columns:minmax(0,1fr) 90px 66px;gap:4px}
 html body.p167 .line{min-height:56px;padding:5px 2px}
 html body.p167 .line-name{font-size:12px}
 html body.p167 .line-amount{font-size:12px}
 html body.p167 .line-qty button{width:30px;min-width:30px;min-height:40px}
 html body.p167 .line-remark{font-size:9px}
 html body.p167 .p167-rail,html body.p167-cashier[data-p167-pane=order] .p167-rail{flex:none;display:flex;padding:0;border:0;gap:0;overflow:visible}
 html body.p167 .order-actions,html body.p167-cashier[data-p167-pane=order] .order-actions{padding:5px 9px;gap:5px;grid-template-columns:repeat(4,minmax(0,1fr))}
 html body.p167 .order-actions:has(>button[hidden]):not(:has(>button:not([hidden]))){display:none}
 html body.p167 .order-actions button{min-height:36px;font-size:10px}
 html body.p167 #wf-actions,html body.p167-cashier[data-p167-pane=order] #wf-actions{grid-template-columns:repeat(3,minmax(0,1fr));padding:0 9px 7px;gap:5px}
 html body.p167 #wf-actions button{min-height:36px;padding:6px;font-size:11px}
 html body.p167 #wf-actions .wf-send-stack{gap:5px;grid-row:2}
 html body.p167 #wf-actions .wf-send-stack button{min-height:44px;font-size:13px}
 html body.p167 .checkout,html body.p167-cashier[data-p167-pane=order] .checkout{order:0;padding:7px 10px;border-top:1px solid var(--line);border-bottom:0;background:var(--paper2)}
 html body.p167 .checkout .total,html body.p167-cashier[data-p167-pane=order] .checkout .total{padding:0;font-size:13px}
 html body.p167 .checkout .total strong,html body.p167-cashier[data-p167-pane=order] .checkout .total strong{font-size:22px}
 html body.p167 .checkout #preview-note,html body.p167-cashier[data-p167-pane=order] .checkout #preview-note{display:block;font-size:11px;line-height:1.4;margin:5px 0}
 html body.p167-cashier[data-p167-pane=order] .ph-trigger{padding:3px 0;min-height:30px;border:0}
 html body.p167-cashier[data-p167-pane=order] .ph-trigger-label{display:inline;font-size:10px;margin-inline-start:7px}
 html body.p167-cashier[data-p167-pane=order] .ph-balance{display:block;font-size:12px;padding:3px 0}
 html body.p167 #clear-table{min-height:32px;margin-top:4px}
 html body.p167 #kot-delivery-status{max-height:42px!important;font-size:11px!important;margin:3px 10px!important}
}
}

@media screen{html body.p167 #wf-actions .wf-send-stack [data-wf=fire-all]{order:0;grid-row:1;grid-column:1}html body.p167 #wf-actions .wf-send-stack [data-wf=captain-handoff]{order:1;grid-row:2;grid-column:1}}

@media screen{
html body.p167 .line{box-sizing:border-box;grid-template-rows:auto auto;padding:6px 2px;min-height:54px}
html body.p167 .line-name{grid-column:1;grid-row:1}
html body.p167 .line-qty{grid-column:2;grid-row:1/3}
html body.p167 .line-amount{grid-column:3;grid-row:1/3}
html body.p167 .line-remark{grid-column:1;grid-row:2}
html body.p167-cashier[data-p167-pane=order] .p167-rail{padding:12px;gap:8px}
html body.p167-cashier[data-p167-pane=order] .checkout{padding-bottom:10px}
html body.p167-cashier[data-p167-pane=order] .checkout .total{padding:4px 0}
html body.p167-cashier[data-p167-pane=order] #preview-note{margin:8px 0 12px;gap:6px}
html body.p167-cashier[data-p167-pane=order] .ph-trigger{padding:9px;min-height:44px}
html body.p167-cashier[data-p167-pane=order] .ph-balance{padding:4px 0}
html body.p167-cashier[data-p167-pane=order] #wf-actions .wf-send-stack{grid-row:3}
html body.p167-cashier[data-p167-pane=order] #wf-actions [data-wf=prebill]{grid-column:2;grid-row:1}
html body.p167-cashier[data-p167-pane=order] #wf-actions [data-wf=more]{grid-column:1/-1;grid-row:2}
@media(max-width:699px){
html body.p167-cashier[data-p167-pane=order] .p167-rail{padding:0;gap:0}
html body.p167-cashier[data-p167-pane=order] .checkout{padding:7px 10px}
html body.p167-cashier[data-p167-pane=order] #preview-note{margin:5px 0}
html body.p167-cashier[data-p167-pane=order] .ph-trigger{padding:3px 0;min-height:30px}
html body.p167-cashier[data-p167-pane=order] #wf-actions [data-wf=more]{grid-column:3;grid-row:1}
html body.p167-cashier[data-p167-pane=order] #wf-actions .wf-send-stack{grid-row:2}
}}

/* POS168: physical right compact menu; selected-line display only. */
@media screen{
html body.p167 #selection-bar{flex-wrap:wrap;gap:6px 10px}
html body.p167 #selected-total{display:inline-flex;gap:6px;align-items:center;background:var(--soft);border:1px solid var(--p167-border);border-radius:8px;padding:5px 9px;color:var(--ink);font-size:12px;line-height:1.4;white-space:nowrap}
html body.p167 #selected-total[hidden]{display:none}
html body.p167 #selected-total strong{color:var(--gold);font-size:14px}
@media(min-width:700px){
html body.p167:not([data-role=captain]) #cashier-view,html body.p167-cashier[data-p167-pane=order] #cashier-view{grid-template-columns:minmax(0,1.9fr) minmax(260px,1fr);direction:ltr}
html body.p167:not([data-role=captain]) #cashier-view>.heading{direction:ltr}
html body.p167:not([data-role=captain]) #p167-tabs{display:none}
html body.p167:not([data-role=captain]) .catalog,html body.p167-cashier[data-p167-pane=order] .catalog{display:grid;grid-column:2;grid-row:2}
html body.p167:not([data-role=captain]) #products{grid-template-columns:repeat(2,minmax(0,1fr))}
html body.p167:not([data-role=captain]) .check,html body.p167-cashier[data-p167-pane=order] .check{display:flex;flex-direction:column;grid-column:1;grid-row:2}
html body.p167:not([data-role=captain]) .check-content,html body.p167-cashier[data-p167-pane=order] .check-content{height:auto;flex:1 1 0;min-height:180px!important}
html body.p167:not([data-role=captain]) .p167-rail,html body.p167-cashier[data-p167-pane=order] .p167-rail{display:grid;grid-template-columns:minmax(100px,.85fr) minmax(150px,1.25fr) minmax(160px,1.25fr);gap:8px;align-items:start;flex:none;border:0;border-top:1px solid var(--line);padding:10px;max-height:240px;overflow:auto}
html body.p167:not([data-role=captain]) .p167-rail .order-actions,html body.p167-cashier[data-p167-pane=order] .p167-rail .order-actions{grid-column:1;grid-row:1;display:grid;grid-template-columns:1fr;gap:5px;padding:0}
html body.p167:not([data-role=captain]) .p167-rail .order-actions button{min-height:40px;font-size:11px}
html body.p167:not([data-role=captain]) .p167-rail #wf-actions,html body.p167-cashier[data-p167-pane=order] .p167-rail #wf-actions{grid-column:2;grid-row:1;grid-template-columns:repeat(2,minmax(0,1fr));padding:0;gap:5px}
html body.p167:not([data-role=captain]) .p167-rail #wf-actions .wf-send-stack{grid-row:3}
html body.p167:not([data-role=captain]) .p167-rail #wf-actions button{min-height:40px;font-size:11px}
html body.p167:not([data-role=captain]) .p167-rail #wf-actions .wf-send-stack button{min-height:44px;font-size:12px}
html body.p167:not([data-role=captain]) .p167-rail .checkout,html body.p167-cashier[data-p167-pane=order] .p167-rail .checkout{grid-column:3;grid-row:1;order:0;padding:0 0 0 8px;border:0;border-inline-start:1px solid var(--line);background:transparent}
html body.p167:not([data-role=captain]) .p167-rail .checkout .total,html body.p167-cashier[data-p167-pane=order] .p167-rail .checkout .total{padding:0;gap:5px;flex-wrap:wrap;font-size:12px}
html body.p167:not([data-role=captain]) .p167-rail .checkout .total strong,html body.p167-cashier[data-p167-pane=order] .p167-rail .checkout .total strong{font-size:24px}
html body.p167:not([data-role=captain]) .p167-rail #preview-note,html body.p167-cashier[data-p167-pane=order] .p167-rail #preview-note{margin:5px 0 7px;gap:4px;font-size:11px}
html body.p167:not([data-role=captain]) .p167-rail .ph-trigger,html body.p167-cashier[data-p167-pane=order] .p167-rail .ph-trigger{padding:4px 0;min-height:32px;border:0}
html body.p167:not([data-role=captain]) .p167-rail .ph-trigger-label{font-size:10px;margin-top:2px}
html body.p167:not([data-role=captain]) .p167-rail .ph-balance,html body.p167-cashier[data-p167-pane=order] .p167-rail .ph-balance{padding:2px 0;font-size:13px}
html body.p167:not([data-role=captain]) .p167-rail .checkout .primary{min-height:44px;font-size:13px}
html body.p167:not([data-role=captain]) .p167-rail #clear-table{min-height:36px;font-size:11px;margin-top:5px}
html[dir=rtl] body.p167:not([data-role=captain]) .check,html[dir=rtl] body.p167:not([data-role=captain]) .catalog,html[dir=rtl] body.p167:not([data-role=captain]) #cashier-view>.heading{direction:rtl}
html body.p167:not([data-role=captain])[data-role=captain] .p167-rail{grid-template-columns:minmax(0,1.4fr) minmax(180px,1fr)}
html body.p167:not([data-role=captain])[data-role=captain] .p167-rail .order-actions{display:none}
html body.p167:not([data-role=captain])[data-role=captain] .p167-rail #wf-actions{grid-column:1}
html body.p167:not([data-role=captain])[data-role=captain] .p167-rail .checkout{grid-column:2}
}
@media(min-width:700px) and (max-width:950px){
html body.p167:not([data-role=captain]) #cashier-view,html body.p167-cashier[data-p167-pane=order] #cashier-view{grid-template-columns:minmax(0,1.7fr) minmax(230px,1fr)}
html body.p167:not([data-role=captain]) .p167-rail,html body.p167-cashier[data-p167-pane=order] .p167-rail{grid-template-columns:minmax(90px,1fr) minmax(130px,1.2fr);max-height:250px}
html body.p167:not([data-role=captain]) .p167-rail .checkout,html body.p167-cashier[data-p167-pane=order] .p167-rail .checkout{grid-column:1/-1;grid-row:2;border-inline-start:0;padding:5px 0 0}
html body.p167:not([data-role=captain])[data-role=captain] .p167-rail .checkout{grid-column:2;grid-row:1}
}

@media(orientation:landscape){
@media(min-width:700px){
html body.p167[data-role=captain] #cashier-view,html body.p167-cashier[data-p167-pane=order] #cashier-view{grid-template-columns:minmax(0,1.9fr) minmax(260px,1fr);direction:ltr}
html body.p167[data-role=captain] #cashier-view>.heading{direction:ltr}
html body.p167[data-role=captain] #p167-tabs{display:none}
html body.p167[data-role=captain] .catalog,html body.p167-cashier[data-p167-pane=order] .catalog{display:grid;grid-column:2;grid-row:2}
html body.p167[data-role=captain] #products{grid-template-columns:repeat(2,minmax(0,1fr))}
html body.p167[data-role=captain] .check,html body.p167-cashier[data-p167-pane=order] .check{display:flex;flex-direction:column;grid-column:1;grid-row:2}
html body.p167[data-role=captain] .check-content,html body.p167-cashier[data-p167-pane=order] .check-content{height:auto;flex:1 1 0;min-height:180px!important}
html body.p167[data-role=captain] .p167-rail,html body.p167-cashier[data-p167-pane=order] .p167-rail{display:grid;grid-template-columns:minmax(100px,.85fr) minmax(150px,1.25fr) minmax(160px,1.25fr);gap:8px;align-items:start;flex:none;border:0;border-top:1px solid var(--line);padding:10px;max-height:240px;overflow:auto}
html body.p167[data-role=captain] .p167-rail .order-actions,html body.p167-cashier[data-p167-pane=order] .p167-rail .order-actions{grid-column:1;grid-row:1;display:grid;grid-template-columns:1fr;gap:5px;padding:0}
html body.p167[data-role=captain] .p167-rail .order-actions button{min-height:40px;font-size:11px}
html body.p167[data-role=captain] .p167-rail #wf-actions,html body.p167-cashier[data-p167-pane=order] .p167-rail #wf-actions{grid-column:2;grid-row:1;grid-template-columns:repeat(2,minmax(0,1fr));padding:0;gap:5px}
html body.p167[data-role=captain] .p167-rail #wf-actions .wf-send-stack{grid-row:3}
html body.p167[data-role=captain] .p167-rail #wf-actions button{min-height:40px;font-size:11px}
html body.p167[data-role=captain] .p167-rail #wf-actions .wf-send-stack button{min-height:44px;font-size:12px}
html body.p167[data-role=captain] .p167-rail .checkout,html body.p167-cashier[data-p167-pane=order] .p167-rail .checkout{grid-column:3;grid-row:1;order:0;padding:0 0 0 8px;border:0;border-inline-start:1px solid var(--line);background:transparent}
html body.p167[data-role=captain] .p167-rail .checkout .total,html body.p167-cashier[data-p167-pane=order] .p167-rail .checkout .total{padding:0;gap:5px;flex-wrap:wrap;font-size:12px}
html body.p167[data-role=captain] .p167-rail .checkout .total strong,html body.p167-cashier[data-p167-pane=order] .p167-rail .checkout .total strong{font-size:24px}
html body.p167[data-role=captain] .p167-rail #preview-note,html body.p167-cashier[data-p167-pane=order] .p167-rail #preview-note{margin:5px 0 7px;gap:4px;font-size:11px}
html body.p167[data-role=captain] .p167-rail .ph-trigger,html body.p167-cashier[data-p167-pane=order] .p167-rail .ph-trigger{padding:4px 0;min-height:32px;border:0}
html body.p167[data-role=captain] .p167-rail .ph-trigger-label{font-size:10px;margin-top:2px}
html body.p167[data-role=captain] .p167-rail .ph-balance,html body.p167-cashier[data-p167-pane=order] .p167-rail .ph-balance{padding:2px 0;font-size:13px}
html body.p167[data-role=captain] .p167-rail .checkout .primary{min-height:44px;font-size:13px}
html body.p167[data-role=captain] .p167-rail #clear-table{min-height:36px;font-size:11px;margin-top:5px}
html[dir=rtl] body.p167[data-role=captain] .check,html[dir=rtl] body.p167[data-role=captain] .catalog,html[dir=rtl] body.p167[data-role=captain] #cashier-view>.heading{direction:rtl}
html body.p167[data-role=captain][data-role=captain] .p167-rail{grid-template-columns:minmax(0,1.4fr) minmax(180px,1fr)}
html body.p167[data-role=captain][data-role=captain] .p167-rail .order-actions{display:none}
html body.p167[data-role=captain][data-role=captain] .p167-rail #wf-actions{grid-column:1}
html body.p167[data-role=captain][data-role=captain] .p167-rail .checkout{grid-column:2}
}
@media(min-width:700px) and (max-width:950px){
html body.p167[data-role=captain] #cashier-view,html body.p167-cashier[data-p167-pane=order] #cashier-view{grid-template-columns:minmax(0,1.7fr) minmax(230px,1fr)}
html body.p167[data-role=captain] .p167-rail,html body.p167-cashier[data-p167-pane=order] .p167-rail{grid-template-columns:minmax(90px,1fr) minmax(130px,1.2fr);max-height:250px}
html body.p167[data-role=captain] .p167-rail .checkout,html body.p167-cashier[data-p167-pane=order] .p167-rail .checkout{grid-column:1/-1;grid-row:2;border-inline-start:0;padding:5px 0 0}
html body.p167[data-role=captain][data-role=captain] .p167-rail .checkout{grid-column:2;grid-row:1}
}

}
}

/* Header170: cashier role centered; brand on physical left. */
@media screen {
html body.p167[data-role=cashier] #shell>header{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:14px;padding:12px 20px;min-height:72px;direction:ltr}
html body.p167[data-role=cashier] #shell>header .header-brand{display:contents}
html body.p167[data-role=cashier] #shell>header .brand{grid-column:1;grid-row:1;justify-self:start;display:flex;align-items:center;gap:10px;margin:0;font-size:13px;letter-spacing:3px;white-space:nowrap;direction:ltr}
html body.p167[data-role=cashier] #shell>header .brand-logo{width:26px;height:42px;margin:0}
html body.p167[data-role=cashier] #shell>header #workspace-title{grid-column:2;grid-row:1;justify-self:center;text-align:center;font-size:20px;line-height:1.3;max-width:none;white-space:nowrap}
html body.p167[data-role=cashier] #shell>header .header-actions{grid-column:3;grid-row:1;display:flex;justify-content:flex-end;align-items:center;flex-wrap:nowrap;min-width:0;max-width:100%;gap:10px}
html body.p167[data-role=cashier] #shell>header .header-session{min-width:0;overflow:hidden;text-align:right}
html body.p167[data-role=cashier] #shell>header #account-name{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body.p167[data-role=cashier] #shell>header .header-tools{display:flex;flex:none;gap:6px;border:0;padding:0}
@media(max-width:699px){
html body.p167[data-role=cashier] #shell>header{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding:10px 12px}
html body.p167[data-role=cashier] #shell>header .brand{gap:6px;font-size:10px;letter-spacing:1.7px}
html body.p167[data-role=cashier] #shell>header .brand-logo{width:24px;height:38px}
html body.p167[data-role=cashier] #shell>header #workspace-title{position:absolute;grid-column:auto;grid-row:auto;width:max-content;left:50%;top:18px;transform:translateX(-50%);font-size:17px}
html body.p167[data-role=cashier] #shell>header .header-actions{display:contents}
html body.p167[data-role=cashier] #shell>header .header-session{grid-column:1;grid-row:2;text-align:left}
html body.p167[data-role=cashier] #shell>header .header-tools{grid-column:2;grid-row:2;justify-content:flex-end}
}
}

/*171: only cashier landscape touch-tablet mode is activated by matchMedia.*/
@media screen{
body.cashier-landscape171 #shell>header #workspace-title{align-self:center;margin-top:-12px}
body.cashier-landscape171 #cashier-status171{grid-column:2;grid-row:1;justify-self:center;align-self:center;margin-top:32px;max-width:240px;text-align:center;font-size:10px;line-height:1.2}
body.cashier-landscape171 #cashier-status171 #sync{font-size:10px;white-space:normal;display:block;margin:0}
body.cashier-landscape171 #cashier-status171 #sync::before{content:'●';color:var(--muted);margin-inline-end:5px}
body.cashier-landscape171 #cashier-status171 #sync[data-health=ok]::before{color:#90bda5}
body.cashier-landscape171 #cashier-status171 #sync[data-health=error]::before{color:#ef8b8b}
body.cashier-landscape171 #cashier-tab{display:none!important}
body.cashier-landscape171 #shell>nav{display:flex;flex-wrap:wrap;align-items:center;gap:7px;direction:ltr}
body.cashier-landscape171 #shell>nav>*{order:2}
body.cashier-landscape171 #shell>nav #tables-tab{order:0}
body.cashier-landscape171 #shell>nav #table-filters171{order:1;display:flex;align-items:center;gap:5px;max-width:100%;overflow-x:auto;scrollbar-width:thin}
body.cashier-landscape171 #shell>nav #table-filters171 button{min-height:40px;padding:8px 10px;font-size:11px;white-space:nowrap;border-radius:10px;flex:none}
body.cashier-landscape171 #shell>nav #table-filters171 button.active{background:var(--gold);border-color:var(--gold);color:#102d24}
body.cashier-landscape171 #shell>nav #pos-sections-open{order:10;margin-left:auto;min-width:100px}
body.cashier-landscape171 #shell>nav>button{min-height:40px}
body.cashier-landscape171 .table-toolbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:8px 12px;align-items:center;direction:ltr;padding-bottom:14px}
body.cashier-landscape171 .table-toolbar-title{grid-column:1;grid-row:1;justify-self:start}
body.cashier-landscape171 #stats{grid-column:1;grid-row:2;justify-self:start;margin:0}
body.cashier-landscape171 #table-assignments-open{grid-column:2;grid-row:1;justify-self:center;margin:0;min-height:42px}
body.cashier-landscape171 #refresh{grid-column:3;grid-row:1;justify-self:end;margin:0;min-width:100px;min-height:42px}
body.cashier-landscape171 #refresh[data-refresh-state=done]{color:#a8ddbc;border-color:#89bc9d;background:var(--soft)}
body.cashier-landscape171 .table-lookup{grid-column:2/4;grid-row:2;justify-self:end;margin:0;min-width:0;display:flex;gap:8px;align-items:center}
body.cashier-landscape171 .table-lookup .table-search-row{display:flex;gap:7px}
body.cashier-landscape171 .table-lookup input{max-width:120px}
body.cashier-landscape171 #table-filter-empty171{text-align:center;padding:24px;border:1px solid var(--line);border-radius:14px}
html[dir=rtl] body.cashier-landscape171 #shell>nav #table-filters171,html[dir=rtl] body.cashier-landscape171 .table-lookup{direction:rtl}
}

/*172: tablet application frame and compact captain categories. */
.category-icon172{display:none}
@media screen and (min-width:700px) and (any-pointer:coarse){
 html body.cashier-landscape171,html body.p167[data-role=captain]{position:fixed;inset:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none}
 html body.cashier-landscape171 #shell:not([hidden]),html body.p167[data-role=captain] #shell:not([hidden]){height:100dvh!important;min-height:0!important;display:flex;flex-direction:column;overflow:hidden!important}
 html body.cashier-landscape171 #shell>header,html body.cashier-landscape171 #shell>nav,html body.p167[data-role=captain] #shell>header,html body.p167[data-role=captain] #shell>nav{flex:none}
 html body.cashier-landscape171 main,html body.p167[data-role=captain] main{flex:1;min-height:0!important;margin:0;width:100%;overflow:auto!important;overscroll-behavior:contain;overflow-anchor:none;-webkit-overflow-scrolling:touch}
 html body.cashier-landscape171[data-view=cashier] main,html body.p167[data-role=captain][data-view=cashier] main{overflow:hidden!important}
 html body.cashier-landscape171 #cashier-view,html body.p167[data-role=captain] #cashier-view{min-height:0!important}
 html body.cashier-landscape171 :is(#products,.check-content,.p167-rail),html body.p167[data-role=captain] :is(#products,.check-content,.p167-rail){overscroll-behavior:contain;overflow-anchor:none}
 html body.cashier-landscape171 #tables-tab{display:none!important}
 html body.cashier-landscape171 #shell>nav{flex-wrap:nowrap;overflow-x:auto;gap:6px}
 html body.cashier-landscape171 #shell>nav #table-filters171{flex:0 1 auto;min-width:0;overflow-x:auto}
 html body.cashier-landscape171 #shell>nav #pos-sections-open{min-width:84px;padding-inline:10px}
 html body.cashier-landscape171 .table-toolbar{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);padding:4px 0 14px;gap:10px}
 html body.cashier-landscape171 .table-toolbar-title{grid-column:1/3;grid-row:1}
 html body.cashier-landscape171 #stats{grid-column:3;grid-row:1;justify-self:end}
 html body.cashier-landscape171 .table-lookup{grid-column:1;grid-row:2;justify-self:start;flex-wrap:nowrap}
 html body.cashier-landscape171 #table-assignments-open{grid-column:2;grid-row:2}
 html body.cashier-landscape171 #refresh{grid-column:3;grid-row:2}
 html body.cashier-landscape171 .table-lookup label{display:none}
 html body.p167[data-role=captain] #products.category-menu172{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(54px,1fr);align-content:stretch;gap:6px;padding:2px 2px 4px}
 html body.p167[data-role=captain] #products .category-card{display:grid;grid-template-columns:20px minmax(0,1fr);grid-template-rows:1fr auto;align-items:center;column-gap:6px;row-gap:3px;min-height:54px;padding:7px;border-radius:11px;text-align:start}
 html body.p167[data-role=captain] #products .category-card::after{display:none}
 html body.p167[data-role=captain] #products .category-card .category-icon172{display:block;width:20px;height:20px;color:var(--gold);grid-column:1;grid-row:1/3;align-self:center}
 html body.p167[data-role=captain] #products .category-card strong{grid-column:2;grid-row:1;font-size:12px;line-height:1.2;overflow-wrap:normal;word-break:normal}
 html body.p167[data-role=captain] #products .category-card span{grid-column:2;grid-row:2;font-size:10px;line-height:1.1;padding:0}
 @media(orientation:portrait){
 html body.p167[data-role=captain] #products.category-menu172{grid-template-columns:repeat(3,minmax(0,1fr))}
 }
 @media(max-width:1050px){
 html body.cashier-landscape171 #shell>nav #table-filters171 button{font-size:10px;padding-inline:7px}
 html body.p167[data-role=captain] #products .category-card{grid-template-columns:1fr;position:relative;padding:5px;row-gap:2px}
 html body.p167[data-role=captain] #products .category-card .category-icon172{width:16px;height:16px;grid-column:1;grid-row:1;align-self:start}
 html body.p167[data-role=captain] #products .category-card strong{grid-column:1;grid-row:2;font-size:11px}
 html body.p167[data-role=captain] #products .category-card span{grid-column:1;grid-row:1;justify-self:end;font-size:9px}
 }
}

@media screen and (min-width:700px) and (orientation:landscape) and (any-pointer:coarse){
 html body.p167[data-role=captain] #products.category-menu172{gap:4px;grid-auto-rows:minmax(44px,1fr)}
 html body.p167[data-role=captain] #products .category-card{grid-template-columns:16px minmax(0,1fr);grid-template-rows:1fr;min-height:44px;padding:4px;gap:4px}
 html body.p167[data-role=captain] #products .category-card .category-icon172{width:16px;height:16px;grid-row:1;grid-column:1;align-self:center}
 html body.p167[data-role=captain] #products .category-card strong{grid-row:1;grid-column:2;font-size:11.5px;line-height:1.15}
 html body.p167[data-role=captain] #products .category-card span{display:none}
}

/*173: one composed toolbar, cashier landscape touch only. */
@media screen{
 html body.cashier-landscape171 .table-toolbar{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);grid-template-rows:auto;align-items:center;gap:12px;margin:0 0 14px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--paper);min-height:70px}
 html body.cashier-landscape171 .table-toolbar-title{grid-column:1;grid-row:1;display:flex;align-items:center;gap:9px;flex-wrap:wrap;min-width:0;justify-self:start}
 html body.cashier-landscape171 .table-toolbar-title h1{font-size:21px;line-height:1.2;letter-spacing:-.4px;margin:0}
 html body.cashier-landscape171 .table-toolbar-title #stats{margin:0;line-height:1.2}
 html body.cashier-landscape171 .table-toolbar-title .wf-open-count{font-size:11px;padding:6px 9px}
 html body.cashier-landscape171 #table-assignments-open{grid-column:2;grid-row:1;min-height:44px;border-radius:10px;font-size:13px;padding:9px 13px;align-self:center}
 html body.cashier-landscape171 #table-controls173{grid-column:3;grid-row:1;display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}
 html body.cashier-landscape171 #table-controls173 .table-lookup{display:flex;flex:none;margin:0}
 html body.cashier-landscape171 #table-controls173 .table-search-row{gap:6px}
 html body.cashier-landscape171 #table-controls173 .table-search-row input{width:120px;min-height:44px;height:44px;padding:8px;font-size:13px;border-radius:10px}
 html body.cashier-landscape171 #table-controls173 :is(#open-table,#refresh){min-height:44px;height:44px;min-width:0;font-size:13px;padding:8px 11px;border-radius:10px;margin:0;white-space:nowrap;flex:none}
 html body.cashier-landscape171 #table-controls173 #refresh{min-width:88px}
 html body.cashier-landscape171 #shell>nav #table-filters171 button{font-size:12px;min-height:44px;padding:9px 12px}
 html body.cashier-landscape171 #shell>nav>button{min-height:44px;font-size:12px}
 @media(max-width:1000px){
 html body.cashier-landscape171 .table-toolbar{padding:10px;gap:8px}
 html body.cashier-landscape171 .table-toolbar-title{display:grid;gap:5px}
 html body.cashier-landscape171 .table-toolbar-title h1{font-size:18px}
 html body.cashier-landscape171 #table-controls173{gap:5px}
 html body.cashier-landscape171 #table-controls173 .table-search-row input{width:75px;font-size:12px}
 html body.cashier-landscape171 #table-controls173 :is(#open-table,#refresh){font-size:11px;padding:7px}
 html body.cashier-landscape171 #table-controls173 #refresh{min-width:72px}
 html body.cashier-landscape171 #table-assignments-open{font-size:12px;padding-inline:9px}
 html body.cashier-landscape171 #shell>nav #table-filters171 button{font-size:11px;padding-inline:8px}
 }
}

/*174: readable captain category tiles on portrait tablets. */
@media screen and (min-width:700px) and (orientation:portrait) and (any-pointer:coarse){
 html body.p167[data-role=captain] #products.category-menu172{grid-auto-rows:minmax(72px,1fr);gap:6px}
 html body.p167[data-role=captain] #products .category-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:72px;padding:4px 5px;text-align:center;position:relative}
 html body.p167[data-role=captain] #products .category-card .category-icon172{display:block;width:26px;height:26px;flex:none;align-self:center;stroke-width:1.8}
 html body.p167[data-role=captain] #products .category-card strong{font-size:16px;font-weight:700;line-height:1.1;width:100%;text-align:center;overflow-wrap:normal;word-break:normal}
 html body.p167[data-role=captain] #products .category-card span{display:none}
 @media(min-width:950px){
 html body.p167[data-role=captain] #products .category-card{gap:6px;padding:8px}
 html body.p167[data-role=captain] #products .category-card .category-icon172{width:32px;height:32px}
 html body.p167[data-role=captain] #products .category-card strong{font-size:18px;line-height:1.15}
 }
}

/* Staff POS175: one dark appearance and native, independently scrolling guide. */
:root{color-scheme:dark}
#theme,[data-ux="theme"]{display:none!important}
#pos-guide175{box-sizing:border-box;color:#edf3ee;background:#102c25;border:1px solid #bfa366;border-radius:20px;padding:0;width:min(1180px,calc(100vw - 32px));max-width:none;height:min(880px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);overflow:hidden}
#pos-guide175[open]{display:flex;flex-direction:column}
#pos-guide175::backdrop{background:rgb(3 15 12 / .76)}
#pos-guide175 *{box-sizing:border-box}
#pos-guide175 .g175-header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;gap:16px;padding:18px 24px;border-bottom:1px solid #3e5b4e;background:#12372d}
#pos-guide175 .g175-brand{font-size:12px;letter-spacing:3px;color:#d8b979}
#pos-guide175 h2{font-size:25px;line-height:1.25;margin:5px 0 0;color:#f2f4eb}
#pos-guide175 button,#pos-guide175 input,#pos-guide175 select{font:inherit;color:inherit;min-height:44px;border:1px solid #466255;border-radius:10px;background:#173b31;box-shadow:none}
#pos-guide175 button{cursor:pointer;padding:10px 12px}
#pos-guide175 button:hover{background:#244b3e}
#pos-guide175 button:focus-visible,#pos-guide175 a:focus-visible,#pos-guide175 input:focus-visible,#pos-guide175 select:focus-visible{outline:2px solid #e1c384;outline-offset:2px}
#pos-guide175 .g175-close{font-size:28px;line-height:1;width:46px;min-width:46px}
#pos-guide175 .g175-toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,.5fr);gap:16px;padding:14px 24px;border-bottom:1px solid #3e5b4e;flex-shrink:0}
#pos-guide175 label{display:flex;flex-direction:column;gap:6px;min-width:0;margin:0;font-size:13px;color:#bacbc0}
#pos-guide175 input,#pos-guide175 select{width:100%;padding:10px 12px;font-size:16px}
#pos-guide175 .g175-layout{display:grid;grid-template-columns:minmax(220px,29%) minmax(0,1fr);flex:1;min-height:0;overflow:hidden}
#pos-guide175 .g175-sidebar{display:flex;flex-direction:column;background:#0e2822;min-height:0;border-inline-end:1px solid #3e5b4e;padding:14px 12px}
#pos-guide175 .g175-count{flex-shrink:0;margin:0 8px 10px;font-size:13px;color:#b9c9c0}
#pos-guide175 .g175-contents{display:flex;flex-direction:column;gap:5px;overflow:auto;overscroll-behavior:contain;min-height:0;padding:3px;background:transparent}
#pos-guide175 .g175-contents button{display:flex;align-items:flex-start;gap:10px;flex-shrink:0;text-align:start;font-size:14px;line-height:1.4;border-color:transparent;background:transparent}
#pos-guide175 .g175-contents button span{color:#d7bc81;font-variant-numeric:tabular-nums}
#pos-guide175 .g175-contents button[aria-current]{background:#244c3e;border-color:#bfa366}
#pos-guide175 .g175-content{display:block;min-width:0;overflow:auto;overscroll-behavior:contain;padding:24px 30px;font-size:16px;line-height:1.65;outline:none}
#pos-guide175 .g175-eyebrow{color:#d7bc81;font-size:13px;margin:0 0 10px}
#pos-guide175 h3{font-size:25px;line-height:1.35;margin:0 0 16px;color:#f2f4eb}
#pos-guide175 .g175-intro{color:#c5d4cb;margin:0 0 22px}
#pos-guide175 ol{padding-inline-start:24px;margin:0 0 24px}
#pos-guide175 li{padding-inline-start:5px;margin:0 0 16px}
#pos-guide175 li::marker{color:#d7bc81;font-weight:700}
#pos-guide175 .g175-note{padding:16px;background:#1b4034;border-inline-start:3px solid #d7bc81;border-radius:8px}
#pos-guide175 .g175-note p{margin:5px 0 0;color:#c5d4cb}
#pos-guide175 .g175-next{display:flex;justify-content:space-between;gap:12px;margin-top:24px}
#pos-guide175 .g175-table-wrap{overflow-x:auto;margin:20px 0}
#pos-guide175 table{border-collapse:collapse;width:100%;font-size:14px}
#pos-guide175 th,#pos-guide175 td{text-align:start;padding:12px;border:1px solid #466255;vertical-align:top}
#pos-guide175 th{background:#244b3e}
#pos-guide175 .g175-results{display:grid;gap:12px}
#pos-guide175 .g175-results button{text-align:start;padding:16px}
#pos-guide175 .g175-results strong,#pos-guide175 .g175-results span{display:block;white-space:normal}
#pos-guide175 .g175-results span{font-size:14px;line-height:1.6;color:#bacbc0;margin-top:6px}
#pos-guide175 .g175-footer{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;gap:12px;padding:10px 24px;border-top:1px solid #3e5b4e;background:#12372d;font-size:12px;color:#bacbc0}
#pos-guide175 .g175-footer>div{display:flex;gap:12px;flex-wrap:wrap}
#pos-guide175 a{display:inline-flex;align-items:center;min-height:40px;color:#e1c384}
#pos-guide175 .g175-loading{display:flex;align-items:center;gap:12px;padding:24px 0;color:#bacbc0}
#pos-guide175 .g175-loading span{width:22px;height:22px;border:2px solid #466255;border-top-color:#e1c384;border-radius:50%;animation:g175-spin .8s linear infinite}
@keyframes g175-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){#pos-guide175 .g175-loading span{animation:none}}
@media(max-width:699px){
 #pos-guide175{width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);border-radius:14px}
 #pos-guide175 .g175-header{padding:12px 16px}
 #pos-guide175 h2{font-size:22px}
 #pos-guide175 .g175-toolbar{padding:10px 16px;gap:8px;grid-template-columns:minmax(0,1fr) minmax(0,.75fr)}
 #pos-guide175 .g175-layout{display:flex;flex-direction:column}
 #pos-guide175 .g175-sidebar{padding:6px 12px;border-inline-end:0;border-bottom:1px solid #3e5b4e;flex-shrink:0}
 #pos-guide175 .g175-count{display:none}
 #pos-guide175 .g175-contents{flex-direction:row;max-height:70px}
 #pos-guide175 .g175-contents button{max-width:230px;align-items:center;font-size:13px}
 #pos-guide175 .g175-content{flex:1;padding:18px 16px;font-size:16px}
 #pos-guide175 h3{font-size:22px}
 #pos-guide175 .g175-footer{padding:6px 16px}
 #pos-guide175 .g175-edition{display:none}
}

/* THEME232: staff surface contrast; business logic and permissions unchanged. */
html[data-theme=light]{--muted:#57685f;--gold:#80602d}
html[data-theme=light] #logout{color:#edf4f0}
html[data-theme=light] .pa181-history{color:#57685f!important}
html[data-theme=light] #rm-page,html[data-theme=light] #wf-page{--gold:#80602d;--muted:#57685f}
html[data-theme=light] #rm-page .guest-qr-card{background:#fffefa;color:#193b31}
html[data-theme=light] #rm-page .gr-intro{color:#193b31}
html[data-theme=light] .kds-top #kds-connection{color:#23704b}
html[data-theme=light] #kds-workspace[data-stale=true] #kds-connection{color:#9a491d}
#wf-page .rp-brand>span{color:inherit}
.rp-document .rp-brand>span{color:inherit}
button.primary:active,button.primary.ux-tapped{background:var(--accent);color:var(--accent-ink)}
html[data-theme=light] .wf-history-count{color:#80602d}
