/* Shared surface and action palette. Visual only: IDs, native hidden/disabled and requests stay intact. */
:root{
 --bb-paper:#ddcdb9;--bb-ink:#49352c;--bb-muted:#6b5747;--bb-line:#cdb79c;
 --bb-depth-shadow:0 10px 26px #49311d16,0 2px 5px #49311d0b,inset 0 1px 0 #fff9;
 --bb-surface:linear-gradient(135deg,#f2e6d5f5,#dfccb3ee);
 --bb-inner:linear-gradient(140deg,#f6ebdbf5,#e9d7bfeF);
 --bb-action:linear-gradient(135deg,#674333,#493027);
 --bb-action-shadow:0 4px 10px #40241624,inset 0 1px 0 #ffffff24;
}
[data-bb-page]{
 background-color:#ddcdb9;
 background-image:radial-gradient(ellipse at 10% 0,#fff1daa6,transparent 55%),linear-gradient(135deg,#e2d3c1d9,#cdb79fd9),url('/assets/batik-kawung.svg');
 background-size:auto,auto,144px 144px;background-repeat:no-repeat,no-repeat,repeat;
 min-height:100vh;min-height:100svh;
}
/* Colored translucent panels with a small, static batik corner. No extra overlay or hit targets. */
[data-bb-page] :is(.pos-rail,.pos-header,.pos-entry,.pos-cart,.pos-catalog-tools,.pos-catalog-block,#posProductsView,#posReportsView,.account-card,.account-header,.portal-header,.po-topbar,.po-card,#intakeFormPanel,#intakeListPanel,#poInputMenu,#poStatusMenu,#poSearchPanel,#poDashboardPanel,#poTrackingPanel,#poRecordPanel,#cashApp>section,.panel){
 background-color:#e7d6be;
 background-image:linear-gradient(135deg,#f3e8d8f2,#dfc8aae8),url('/assets/batik-kawung.svg');
 background-repeat:no-repeat,no-repeat;background-position:center,right 12px top 12px;background-size:auto,132px 132px;
 border-color:#cdb79c;box-shadow:var(--bb-depth-shadow);
}
[data-bb-page] :is(.pos-rail,.pos-header,.account-header,.portal-header,.po-topbar){background-color:#e4d0b6}
[data-bb-page] :is(.pos-cart-line,.account-user,.po-listitem,.po-stat,.pos-favorite-slot,.pos-favorite-result,#cashHistory>div,#cashMovements>div,#cashRefundList>div){background:var(--bb-inner);border-color:#d3bfa4;box-shadow:0 4px 12px #49311d0c,inset 0 1px 0 #fff9}
[data-bb-page] :is(.shell.workflow,.account-shell){background:transparent}
[data-bb-page=cash] .shell.workflow,[data-bb-page=legacy] .shell{background:linear-gradient(135deg,#ecddc9ec,#d7bea0de);border-color:#cdb79c;box-shadow:var(--bb-depth-shadow)}
[data-bb-page] :is(#loginPanel,#poLoginPanel,#cashLoginPanel,#login).bb-login-card{background:var(--bb-surface);border-color:#cdb79c;box-shadow:var(--bb-depth-shadow)}
[data-bb-page] .bb-login-fields{background:var(--bb-surface);align-self:stretch;display:flex;flex-direction:column;justify-content:center}
[data-bb-page] :is(.bb-work-banner,.account-hero) :is(h1,h2){color:#fff;text-shadow:0 2px 8px #24140c66}
/* Forms remain quiet enough for long measurement entry. */
[data-bb-page] :is(#intakeFields,#poFields,.workflow fieldset,.pos-product-manager fieldset){background:linear-gradient(140deg,#ecddc8e8,#dfc8a9b8);border:1px solid #cdb79c;border-radius:16px;box-shadow:inset 0 1px 0 #fff8,0 3px 9px #49311d08}
[data-bb-page] :is(#intakeMeasures,#pantsMeasures,#poMeasurements){padding:12px;border:1px solid #d5bea0;border-radius:16px;background:#d7bd9766;box-shadow:inset 0 2px 6px #49311d0a}
[data-bb-page] :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea){background:#fbf2e4;border-color:#c7ac8b;box-shadow:inset 0 2px 4px #49311d0a,0 1px 0 #ffffff80}
[data-bb-page] :is(input,textarea)[readonly]{background:#dfccb1;color:#55412f}
[data-bb-page] label{color:#594331}
[data-bb-page] :is(.pos-dialog-content,.pos-dialog-footer,.intake-footer){background:linear-gradient(135deg,#f0e0ca,#dfc5a3);border-color:#c7ac8b}
[data-bb-page] dialog{background:#e6d1b6;border-color:#cbb08b;box-shadow:0 24px 70px #3621144d,inset 0 1px 0 #fffc}
[data-bb-page] .intake-footer{box-shadow:0 -5px 16px #49311d14,inset 0 1px 0 #fff8}
[data-bb-page] .pos-cart-total{background:#d9bd9766}
[data-bb-page] #posProductsView :is(.pos-table-scroll,table){background:#ecdbc4;border-color:#cdb79c}
[data-bb-page] #posProductsView th{background:#d7bd9b;color:#58412e}
[data-bb-page] #posProductsView tbody tr{background:#f3e6d4}
[data-bb-page] #posProductsView tbody tr:nth-child(even){background:#ead7bc}
[data-bb-page] .pos-table-product .pos-product-image{background-color:#ebdbc5}
[data-bb-page] #catalogProducts .pos-product{background:var(--bb-inner);border-color:#d3bda0;box-shadow:0 4px 10px #49311d12,inset 0 1px 0 #fff9}
[data-bb-page] .pos-favorite-result{background:var(--bb-inner)}
/* Action controls share exactly one fill, including previously white secondary buttons.
   Content/product cards keep dark readable text. Important is limited to this deliberate
   palette boundary because older page-specific IDs and PO tiles set their own fills. */
[data-bb-page] button:not(.pos-product):not(.pos-favorite-result),
[data-bb-page] :is(.pos-rail a:not(.pos-monogram),.po-topbar a,.account-action,.account-header nav a,.pos-account-menu summary,.po-account>summary){
 background:var(--bb-action)!important;color:#fff8ef!important;border-color:#795742!important;box-shadow:var(--bb-action-shadow)!important;
}
[data-bb-page] :is(.account-header nav a,.po-account>summary){display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 14px;border:1px solid #795742;border-radius:12px;text-decoration:none}
[data-bb-page] .account-header nav{gap:8px}
[data-bb-page] button:not(.pos-product):not(.pos-favorite-result) :is(strong,small){color:inherit}
[data-bb-page] :is(button[aria-pressed=true],button.active,button[aria-current],.pos-rail a[aria-current]){
 box-shadow:inset 0 0 0 2px #e5c18b,0 4px 12px #4024162b!important;text-decoration:underline;text-underline-offset:4px;
}
[data-bb-page] button:not(:disabled):not(.pos-product):not(.pos-favorite-result):hover,
[data-bb-page] :is(.pos-rail a:not(.pos-monogram),.account-header nav a,.po-topbar a):hover{filter:brightness(1.08)}
[data-bb-page] button:disabled{box-shadow:none!important}
[data-bb-page] :is(.po-listitem .po-tag,.account-badge){box-shadow:inset 0 1px 0 #fff7}
[data-bb-page] :is(.po-stat.po-late,#intakeSaveFeedback[data-state=saved],#intakeSaveFeedback[data-state=error]){box-shadow:inset 0 1px 0 #fff8,0 3px 9px #49311d0a}
@media(max-width:700px){
 [data-bb-page] #posProductsView .pos-table-scroll{background:transparent}
 [data-bb-page] #posProductsView tbody tr{background:var(--bb-inner);box-shadow:0 5px 12px #49311d12,inset 0 1px 0 #fff9}
 [data-bb-page] #posProductsView tbody td:nth-child(4){border-color:#d7c2a4}
 [data-bb-page] :is(#intakeMeasures,#pantsMeasures,#poMeasurements){padding:10px}
}
@media(prefers-reduced-motion:reduce){[data-bb-page] button:hover{filter:none}}
/* Nested account/status labels must follow the filled control foreground. */
[data-bb-page] .pos-account-menu #sessionUser{color:#fff8ef}
[data-bb-page] button:not(.pos-product):not(.pos-favorite-result) :is(strong,small,.small,.muted){color:inherit!important}
[data-bb-page] :is(#intakeNumber,#intakeCustomer){background:#dfccb1;color:#55412f}

/* PO composition: compact menu hierarchy and summaries sized for four-digit counts. */
[data-bb-page=po] .po-brand{display:flex;align-items:center;justify-content:flex-start;gap:12px;margin:12px 0;padding:14px 16px;text-align:left;border:1px solid #d3bda0;border-radius:18px;background:var(--bb-inner);box-shadow:0 4px 14px #49311d0d,inset 0 1px 0 #fff8}
[data-bb-page=po] .po-brand .po-brand-mark{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;margin:0;background:var(--bb-action);color:#fff1dd;border:1px solid #a8805b;border-radius:13px;font:32px/1 Georgia,serif;letter-spacing:0;box-shadow:0 3px 8px #49311d20}
[data-bb-page=po] .po-brand-copy strong{font:700 23px/1.15 Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;letter-spacing:-.7px;color:#49352c}
[data-bb-page=po] .po-brand-copy>span{margin:4px 0 0;font-size:10px;line-height:1.4;letter-spacing:.5px;color:#735b46}
[data-bb-page=po] .po-menu-grid{gap:10px}
[data-bb-page=po] .po-menu-grid .po-tile{display:grid;grid-template-columns:1fr auto;grid-template-rows:40px auto 1fr;align-items:start;justify-items:start;gap:7px;min-height:142px;padding:16px;border-radius:18px;text-align:left}
[data-bb-page=po] .po-menu-grid .po-tile-icon{grid-column:1;grid-row:1;display:grid;place-items:center;width:36px;height:36px;margin:0;border:1px solid #ffffff45;border-radius:11px;background:#ffffff16;color:#fff0d8}
[data-bb-page=po] .po-tile-icon svg{width:22px;height:22px}
[data-bb-page=po] .po-menu-grid .po-tile-arrow{grid-column:2;grid-row:1;width:23px;height:23px;margin:0;background:transparent;color:#ead1ac;font:18px/1 Inter,sans-serif}
[data-bb-page=po] .po-menu-grid .po-tile strong{grid-column:1/-1;font:650 18px/1.25 Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;letter-spacing:-.3px}
[data-bb-page=po] .po-menu-grid .po-tile small{grid-column:1/-1;align-self:start;margin:0;font-size:12px;line-height:1.45;font-weight:400;letter-spacing:0;color:#f0deca}
[data-bb-page=po] :is(#poInputMenu,#poStatusMenu) .po-menu-grid button{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:10px;min-height:136px;padding:16px;border-radius:17px;font-size:14px}
[data-bb-page=po] .po-service-icon{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border:1px solid #ffffff40;border-radius:9px;background:#ffffff15;color:#f4dcba}
[data-bb-page=po] .po-service-icon svg{width:20px;height:20px}
[data-bb-page=po] .po-service-copy{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:inherit}
[data-bb-page=po] .po-service-copy strong{font:650 16px/1.3 Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;letter-spacing:-.2px;text-transform:none}
[data-bb-page=po] .po-service-copy small{font-size:12px;line-height:1.45;font-weight:400;letter-spacing:0}
[data-bb-page=po] :is(#poInputMenu,#poStatusMenu) .po-menu-grid button::after{right:-28px;top:-20px;opacity:.09;width:118px;height:150px;background-size:70px 70px}
[data-bb-page=po] :is(#poInputMenu,#poStatusMenu)>p{font-size:13px;line-height:1.6;margin:8px 0 16px;max-width:650px}
[data-bb-page=po] :is(.po-card,#poInputMenu,#poStatusMenu,#intakeFormPanel,#intakeListPanel,#poSearchPanel,#poDashboardPanel,#poTrackingPanel,#poRecordPanel,#poLegacy)>h2{font-size:22px;line-height:1.25;letter-spacing:-.5px;margin:0 0 12px;font-weight:700}
[data-bb-page=po] :is(#poLegacy>section,#poDetails>section){padding:20px;margin:14px 0;border:1px solid #cdb79c;border-radius:20px;background-color:#e7d6be;background-image:linear-gradient(135deg,#f3e8d8f2,#dfc8aae8),url('/assets/batik-kawung.svg');background-repeat:no-repeat;background-position:center,right 12px top 12px;background-size:auto,132px 132px;box-shadow:var(--bb-depth-shadow)}
[data-bb-page=po] #poLegacy h2{font-size:22px;margin:0 0 12px}
[data-bb-page=po] #poLegacy :is(p,label,legend){font-size:13px;line-height:1.6}
[data-bb-page=po] #poOrders{display:grid;gap:10px;margin:14px 0}
[data-bb-page=po] #poOrders .po-order-card{display:flex;flex-direction:column;gap:9px;margin:0;padding:13px 14px;min-height:82px;border-radius:14px;text-align:left;line-height:1.4;white-space:normal;width:100%}
.po-order-heading{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:5px 10px;width:100%}
.po-order-heading strong{font-size:14px;font-weight:650;letter-spacing:.1px;overflow-wrap:anywhere}
.po-order-heading small{font-size:10px;font-weight:400;white-space:nowrap}
.po-order-meta{display:flex;flex-wrap:wrap;gap:5px}
.po-order-badge{display:inline-flex;align-items:center;gap:5px;padding:4px 7px;border:1px solid #ffffff26;border-radius:7px;background:#ffffff0f;font-size:10px;font-weight:500;line-height:1.4}
.po-order-badge::before{content:'';width:5px;height:5px;flex:0 0 5px;border-radius:50%;background:#e5be7d}
.po-order-badge.is-complete::before{background:#a8d399}
[data-bb-page=po] #poOrderId{max-width:180px;display:block}
[data-bb-page=po] .po-tabs{flex-wrap:wrap;overflow:visible;gap:6px;padding:0;margin:8px 0 14px}
[data-bb-page=po] .po-tabs button{font-size:12px;min-height:40px;padding:9px 12px;line-height:1.3;border-radius:11px}
[data-bb-page=po] .po-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
[data-bb-page=po] #poDashboardDeadlines{grid-template-columns:repeat(2,minmax(0,1fr))}
[data-bb-page=po] .po-stat{display:flex;flex-direction:column;justify-content:space-between;gap:8px;min-height:104px;padding:14px;border-radius:15px}
[data-bb-page=po] .po-stat small{font-size:12px;line-height:1.35;font-weight:500}
[data-bb-page=po] .po-stat strong{margin:0;font-size:34px;line-height:1.05;font-weight:700;letter-spacing:-1px;font-variant-numeric:tabular-nums;overflow-wrap:normal}
[data-bb-page=po] #poDashboardPanel>.po-card{padding:18px;margin:12px 0}
[data-bb-page=po] #poDashboardPanel h3{font-size:16px;line-height:1.4;letter-spacing:-.2px;margin:18px 0 10px}
[data-bb-page=po] .bb-work-banner{min-height:128px;padding:20px}
[data-bb-page=po] .bb-work-banner h2{font-size:26px}
@media(min-width:1000px){[data-bb-page=po] .po-home-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:700px){
 [data-bb-page=po] .po-brand{padding:12px 14px;gap:10px;border-radius:16px}
 [data-bb-page=po] .po-brand-copy strong{font-size:22px}
 [data-bb-page=po] .po-menu-grid .po-tile{min-height:132px;padding:14px;grid-template-rows:34px auto 1fr;gap:6px;border-radius:16px}
 [data-bb-page=po] .po-menu-grid .po-tile strong{font-size:17px}
 [data-bb-page=po] .po-menu-grid .po-tile small{font-size:11px}
 [data-bb-page=po] .po-menu-grid .po-tile-icon{width:32px;height:32px;border-radius:10px}
 [data-bb-page=po] .po-tile-icon svg{width:20px;height:20px}
 [data-bb-page=po] :is(#poInputMenu,#poStatusMenu) .po-menu-grid button{min-height:128px;padding:13px;gap:9px}
 [data-bb-page=po] .po-service-copy strong{font-size:14px}
 [data-bb-page=po] .po-service-copy small{font-size:11px}
 [data-bb-page=po] :is(#poLegacy>section,#poDetails>section){padding:14px;border-radius:18px}
 [data-bb-page=po] .po-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 [data-bb-page=po] .po-stat{min-height:96px;padding:12px;border-radius:13px}
 [data-bb-page=po] .po-stat strong{font-size:30px}
 [data-bb-page=po] .po-stat small{font-size:11px}
 [data-bb-page=po] #poDashboardPanel>.po-card{padding:12px}
 [data-bb-page=po] .bb-work-banner{min-height:116px;padding:18px}
 [data-bb-page=po] .bb-work-banner h2{font-size:21px}
}

/* Remaining cashier surfaces: custom editor, opened account menu and app-owned kind picker. */
[data-bb-page=cashier] #posItemEditor #draftForm,
[data-bb-page=cashier] .pos-account-menu>.actions{
 background-color:#e7d0af;background-image:linear-gradient(135deg,#f0dfc7f2,#d9bc97e8),url('/assets/batik-kawung.svg');
 background-repeat:no-repeat;background-position:center,right 10px top 10px;background-size:auto,120px 120px;border:1px solid #c4a57e;box-shadow:var(--bb-depth-shadow);
}
[data-bb-page=cashier] #posItemEditor #draftForm{padding:18px;border-radius:18px}
[data-bb-page=cashier] .pos-account-menu>.actions{display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:16px;min-width:190px;max-width:calc(100vw - 32px)}
[data-bb-page=cashier] .pos-account-menu>.actions button{margin:0;width:100%;text-align:left}
[data-bb-page=cashier] #posCustomKindButton {
 display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;
 min-height:48px;margin:0;padding:12px 14px;text-align:left;font-size:16px;font-weight:500;
 background:#fffbf5!important;color:#49352c!important;border-color:#c8b29a!important;box-shadow:none!important;
}
[data-bb-page=cashier] #posCustomKindButton::after {
 content:'';flex:none;width:8px;height:8px;margin:0 3px 4px 0;
 border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);
}

/* Remaining account navigation and report surfaces. */
[data-bb-page] .po-account,
[data-bb-page] #posReportsView .pos-report-metrics>div,
[data-bb-page] #posReportsView .pos-table-scroll,
[data-bb-page] #posReportsView table{
 background-color:#e7d6be;background-image:var(--bb-surface),url('/assets/batik-kawung.svg');
 background-size:auto,120px;background-repeat:no-repeat;background-position:center,right top;
 border:1px solid #cdb79c;box-shadow:var(--bb-depth-shadow);
}
[data-bb-page] #posReportsView th{background:#d9bf9c;color:#49352c}
[data-bb-page] #posReportsView td{background:#ead8bf;color:#49352c}
[data-bb-page] #posReportsView .pos-report-metrics>div{gap:12px;min-width:0}
[data-bb-page] #posReportsView .pos-report-metrics strong{overflow-wrap:anywhere}
[data-bb-page] :is(#intakeDates,#poOrderDates,#poTrackingDates) .po-tabs{display:flex;flex-wrap:wrap;gap:8px}

/* App-owned dropdown sheets, including choices inside payment/shift dialogs. */
[data-bb-page] #bbOptionDialog {
 box-sizing:border-box;position:fixed;inset:auto;margin:0;padding:0;
 top:var(--bb-picker-top);bottom:var(--bb-picker-bottom);left:var(--bb-picker-left);
 width:var(--bb-picker-width,280px);max-height:var(--bb-picker-height,75vh);
 border:1px solid #dbcab7;border-radius:14px;background:#fffaf3;color:#49352c;
 box-shadow:0 8px 28px #38251932;overflow:auto;overscroll-behavior:contain;
 font-family:system-ui,-apple-system,'Segoe UI',sans-serif;
}
[data-bb-page] #bbOptionDialog::backdrop{background:transparent}
[data-bb-page] .bb-option-head {
 display:flex;align-items:center;justify-content:space-between;gap:8px;
 position:sticky;top:0;z-index:1;padding:2px 6px 2px 13px;
 border-bottom:1px solid #e5d8c8;background:#fffaf3;
}
[data-bb-page] .bb-option-head h2{margin:0;color:inherit;font-size:16px;line-height:1.3;overflow-wrap:anywhere}
[data-bb-page] #bbOptionDialog .bb-option-close {
 flex:0 0 44px;width:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:8px;
 background:transparent!important;color:#573c30!important;box-shadow:none!important;font-size:23px;line-height:1;
}
[data-bb-page] #bbOptionDialog .bb-option-search {
 box-sizing:border-box;display:block;width:calc(100% - 20px);margin:8px 10px 2px;
 min-height:44px;font-size:16px;border-radius:8px;
}
[data-bb-page] .bb-option-choices{display:grid;padding:4px 6px}
[data-bb-page] #bbOptionDialog .bb-option-choice {
 box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:10px;
 width:100%;min-height:44px;margin:0;padding:7px 10px;border:0;border-bottom:1px solid #e5d8c8!important;
 border-radius:0;background:transparent!important;color:#49352c!important;box-shadow:none!important;
 text-align:left;text-decoration:none;white-space:normal;overflow-wrap:anywhere;font-size:15px;line-height:1.35;font-weight:500;
}
[data-bb-page] #bbOptionDialog .bb-option-choice:last-child{border-bottom-color:transparent!important}
[data-bb-page] #bbOptionDialog .bb-option-choice[aria-pressed=true] {
 border-radius:8px;border-bottom-color:transparent!important;background:#efe0cb!important;
}
[data-bb-page] #bbOptionDialog .bb-option-choice:not(:disabled):hover{background:#f4e9d9!important;filter:none}
[data-bb-page] .bb-option-check{visibility:hidden;flex-shrink:0;color:#694633;font-size:17px}
[data-bb-page] .bb-option-choice[aria-pressed=true] .bb-option-check{visibility:visible}
[data-bb-page] #bbOptionDialog button:focus-visible{outline:2px solid #8c613e;outline-offset:-2px}
[data-bb-page] .bb-option-group{margin:6px 10px 0;color:#6d5544;font-size:12px;font-weight:650}
[data-bb-page] .bb-option-empty{margin:0;padding:8px 14px 14px;font-size:14px;color:#604833}
[data-bb-page] .bb-option-footer{padding:4px 8px 8px;border-top:1px solid #e5d8c8}
[data-bb-page] #bbOptionDialog .bb-option-footer button {
 min-height:44px;margin:0;padding:6px 10px;border:0;border-radius:8px;
 background:transparent!important;color:#573c30!important;box-shadow:none!important;font-size:14px;
}
@media(max-width:639px) {
 [data-bb-page] #bbOptionDialog .bb-option-choice{min-height:48px}
}
[data-bb-page] .bb-suggestion-trigger{margin-top:6px;padding:8px 12px;min-height:44px;font-size:12px;border-radius:10px}

[data-bb-page] .bb-beta-version{margin:16px auto;padding:8px 16px;max-width:920px;text-align:center;color:#604630;font-size:12px;border-top:1px solid #bfa78a}

/* Product popup: a clear title, quiet instructions and readable size cards. */
[data-bb-page=cashier] .pos-size-dialog{box-sizing:border-box;width:min(460px,calc(100vw - 20px));max-height:calc(100dvh - 20px);border:1px solid #d9c9b8;border-radius:24px;background:#fcf8f2;box-shadow:0 24px 70px #30201940}
[data-bb-page=cashier] .pos-size-dialog::backdrop{background:#2c211d66}
[data-bb-page=cashier] .pos-size-dialog .pos-dialog-content{display:grid;grid-template-columns:128px minmax(0,1fr);column-gap:14px;padding:16px;background:linear-gradient(160deg,#fffaf4,#f4ece1);overscroll-behavior:contain;scrollbar-width:thin}
[data-bb-page=cashier] .pos-size-dialog .pos-dialog-content>.pos-product-image{display:block;position:relative;grid-column:1;grid-row:1/3;align-self:start;box-sizing:border-box;width:100%;height:152px;min-height:0;aspect-ratio:auto;margin:0 0 16px;border:1px solid #e3d8ca;border-radius:16px;overflow:hidden;background-color:#eee5da;background-size:cover}
[data-bb-page=cashier] .pos-size-dialog .pos-product-image img{display:block;width:100%;height:100%;object-fit:contain!important;object-position:center}
[data-bb-page=cashier] .pos-size-dialog .pos-dialog-content>.pos-product-placeholder{display:grid;place-items:center}
[data-bb-page=cashier] .pos-size-dialog .pos-size-product-name{grid-column:2;grid-row:1;align-self:end;margin:0;font-size:20px;font-weight:650;line-height:1.3;letter-spacing:-.4px;color:#48362c;overflow-wrap:anywhere}
[data-bb-page=cashier] .pos-size-dialog .pos-size-product-price{grid-column:2;grid-row:2;align-self:start;min-width:0;margin:8px 0 16px;font-size:21px;line-height:1.35;font-weight:650;color:#694b38;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
[data-bb-page=cashier] .pos-size-dialog .pos-size-product-price[data-state=hint]{font-size:13px;line-height:1.6;font-weight:400;letter-spacing:0;color:#81705f}
[data-bb-page=cashier] .pos-size-dialog .pos-size-heading{grid-column:1/-1;grid-row:3;margin:0 0 10px;font-size:12px;line-height:1.4;font-weight:600;letter-spacing:.04em;color:#796654}
[data-bb-page=cashier] .pos-size-dialog .pos-size-choices{grid-column:1/-1;grid-row:4;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0;align-self:start}
[data-bb-page=cashier] .pos-size-dialog .pos-size-choices>button{box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;justify-content:stretch;gap:5px 6px;min-width:0;min-height:62px;margin:0;padding:10px 12px;border:1px solid #ded1c2!important;border-radius:13px;text-align:left;text-decoration:none;background:#fffcf7!important;color:#554235!important;box-shadow:0 2px 5px #48332608!important;touch-action:manipulation}
[data-bb-page=cashier] .pos-size-dialog .pos-size-choices strong{grid-column:1;grid-row:1;font-size:16px;line-height:1.2;font-weight:650;color:inherit}
[data-bb-page=cashier] .pos-size-dialog .pos-size-choices small:not(.pos-size-price){grid-column:2;grid-row:1;font-size:11px;line-height:1.2;font-weight:400;white-space:nowrap;color:inherit;opacity:.78}
[data-bb-page=cashier] .pos-size-dialog .pos-size-choices button .pos-size-price{grid-column:1/-1;grid-row:2;min-width:0;font-size:clamp(10px,3vw,12px);font-weight:550;line-height:1.3;letter-spacing:-.1px;white-space:nowrap;overflow-wrap:normal;word-break:normal;color:inherit;opacity:1;font-variant-numeric:tabular-nums}
[data-bb-page=cashier] .pos-size-dialog .pos-size-choices>button[aria-pressed=true]{background:linear-gradient(135deg,#73513d,#51372b)!important;color:#fffaf4!important;border-color:#9b7854!important;box-shadow:inset 0 0 0 1px #efd3a080,0 3px 8px #49301e1c!important}
[data-bb-page=cashier] .pos-size-dialog .pos-size-choices>button:disabled{background:#eee8df!important;color:#8b8073!important;border-color:#e0d7cc!important;opacity:1;box-shadow:none!important}
[data-bb-page=cashier] .pos-size-dialog .pos-photo-credit{grid-column:1/-1;grid-row:5;font-size:11px;line-height:1.5;margin:10px 0 0;color:#81705f}
[data-bb-page=cashier] .pos-size-dialog .pos-dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px;padding-bottom:max(12px,env(safe-area-inset-bottom));border-top:1px solid #e1d4c4;background:#fbf5ed;box-shadow:0 -5px 16px #48332608}
[data-bb-page=cashier] .pos-size-dialog .pos-dialog-footer>p[role=status]{flex:0 0 100%;font-size:12px;line-height:1.5;font-weight:400;margin:0 0 2px;color:#796654}
[data-bb-page=cashier] .pos-size-dialog .pos-dialog-footer>button{min-width:82px;min-height:48px;margin:0;padding:12px 18px;font-size:14px;font-weight:550;border:1px solid #d6c5b3;border-radius:12px;background:#fffaf4!important;color:#604735!important;box-shadow:none!important}
[data-bb-page=cashier] .pos-size-dialog .pos-dialog-footer>.pos-quantity{display:flex;align-items:center;flex:0 0 auto;flex-wrap:nowrap;gap:0;margin:0 0 0 auto;padding:3px;border:1px solid #dfd0bf;border-radius:14px;background:#efe4d6}
[data-bb-page=cashier] .pos-size-dialog .pos-quantity>button{display:flex;align-items:center;justify-content:center;width:48px;height:48px;min-width:48px;min-height:48px;margin:0;padding:0;border-radius:10px;font-size:26px;font-weight:500;line-height:1;touch-action:manipulation}
[data-bb-page=cashier] .pos-size-dialog .pos-size-quantity-value{display:block;min-width:38px;text-align:center;color:#49352c;font-size:19px;font-weight:650;line-height:1;font-variant-numeric:tabular-nums}
@media(min-width:601px){
 [data-bb-page=cashier] .pos-size-dialog{width:min(880px,calc(100vw - 40px));max-height:calc(100dvh - 32px)}
 [data-bb-page=cashier] .pos-size-dialog .pos-dialog-content{grid-template-columns:200px minmax(0,1fr);column-gap:24px;padding:24px;align-content:start}
 [data-bb-page=cashier] .pos-size-dialog .pos-dialog-content>.pos-product-image{grid-row:1/5;height:280px;margin:0}
 [data-bb-page=cashier] .pos-size-dialog .pos-size-product-name{align-self:start;font-size:24px}
 [data-bb-page=cashier] .pos-size-dialog .pos-size-product-price{font-size:22px;margin:8px 0 20px}
 [data-bb-page=cashier] .pos-size-dialog .pos-size-product-price[data-state=hint]{font-size:14px;font-weight:400;line-height:1.6}
 [data-bb-page=cashier] .pos-size-dialog .pos-size-heading{grid-column:2;font-size:13px}
 [data-bb-page=cashier] .pos-size-dialog .pos-size-choices{grid-column:2;gap:10px}
 [data-bb-page=cashier] .pos-size-dialog .pos-size-choices>button{min-height:68px}
 [data-bb-page=cashier] .pos-size-dialog .pos-photo-credit{grid-column:1}
 [data-bb-page=cashier] .pos-size-dialog .pos-dialog-footer{padding:16px 24px}
 [data-bb-page=cashier] .pos-size-dialog .pos-dialog-footer>p[role=status]{font-size:13px}
}
@media(min-width:700px){
 [data-bb-page=cashier] .pos-size-dialog .pos-size-choices{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(min-width:1000px){
 [data-bb-page=cashier] .pos-size-dialog .pos-dialog-content{grid-template-columns:240px minmax(0,1fr);column-gap:28px}
 [data-bb-page=cashier] .pos-size-dialog .pos-dialog-content>.pos-product-image{height:320px}
 [data-bb-page=cashier] .pos-size-dialog .pos-size-product-name{font-size:26px}
}
@media(min-width:601px) and (max-width:699px){
 [data-bb-page=cashier] .pos-size-dialog .pos-dialog-content{grid-template-columns:160px minmax(0,1fr);column-gap:20px}
 [data-bb-page=cashier] .pos-size-dialog .pos-dialog-content>.pos-product-image{height:240px}
 [data-bb-page=cashier] .pos-size-dialog .pos-size-product-name{font-size:22px}
}
@media(max-width:360px){
 [data-bb-page=cashier] .pos-size-dialog .pos-dialog-content{grid-template-columns:104px minmax(0,1fr);column-gap:12px;padding:14px}
 [data-bb-page=cashier] .pos-size-dialog .pos-dialog-content>.pos-product-image{height:132px}
 [data-bb-page=cashier] .pos-size-dialog .pos-size-product-name{font-size:18px}
 [data-bb-page=cashier] .pos-size-dialog .pos-size-choices>button{padding:9px 10px}
 [data-bb-page=cashier] .pos-size-dialog .pos-dialog-footer{padding-left:14px;padding-right:14px}
}

/* Custom cart items use readable note codes in the existing photo frame. */
[data-bb-page=cashier] .pos-cart-photo.pos-cart-code{display:grid;place-items:center;border:1px solid #c4a47b;border-radius:12px;background:linear-gradient(145deg,#f5e8d3,#d9be96);color:#60412d;font-family:inherit;font-size:27px;font-weight:750;line-height:1;letter-spacing:.025em;box-shadow:inset 0 1px 0 #fff9}
[data-bb-page=cashier] .pos-cart-code:is([data-code=KEB],[data-code=REV]){font-size:22px;letter-spacing:0}
@media(max-width:600px){[data-bb-page=cashier] .pos-cart-photo.pos-cart-code{font-size:23px;border-radius:10px}[data-bb-page=cashier] .pos-cart-code:is([data-code=KEB],[data-code=REV]){font-size:18px}}

/* Regional date text stays dd/mm/yy while controllers retain canonical ISO dates. */
[data-bb-page] .bb-date-field{display:flex;align-items:stretch;width:100%;min-width:0}
[data-bb-page] .bb-date-field>input{flex:1;min-width:0;margin:0;font-variant-numeric:tabular-nums}
[data-bb-page] .bb-date-calendar{display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;min-height:46px;margin:0 0 0 6px;padding:8px;border-radius:11px}
[data-bb-page] .bb-date-calendar svg{flex:none}

/* Owner product editing: compact, touch-friendly stock rows. */
.pos-product-editor .owner-size-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,130px);gap:12px;padding:12px 0;border-bottom:1px solid var(--border,#d8c9b9)}
.pos-product-editor .owner-size-row label{min-width:0;margin:0}
.pos-product-editor .owner-size-row input{width:100%;box-sizing:border-box}
.pos-product-editor .owner-size-row small{display:block;font-size:12px;margin-top:5px;font-weight:400}
.pos-product-editor .owner-size-row button{grid-column:1/-1;justify-self:start;min-height:44px}
.pos-product-editor .owner-master-choice{display:flex;align-items:center;gap:10px}
.pos-product-editor .owner-master-choice input{width:20px;height:20px;flex:none}
.pos-product-editor .owner-master-fields{padding:12px;border:1px solid var(--border,#d8c9b9);border-radius:12px}
.pos-product-editor .owner-master-fields[hidden]{display:none}
.pos-product-editor #productEditAddSize{margin-top:12px;min-height:44px}
.pos-product-editor .owner-stock-history{padding:12px 0;border-bottom:1px solid var(--border,#d8c9b9);font-size:14px;overflow-wrap:anywhere}
.pos-product-editor .owner-stock-history p{margin:6px 0}

/* Per-size pricing keeps a readable full-width money field on phones. */
.pos-product-manager .product-size-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.pos-product-manager .product-size-price{grid-column:1/-1;min-width:0}
.pos-product-manager .product-size-row input{width:100%;min-width:0;box-sizing:border-box}
.pos-product-manager .product-size-row>button{grid-column:1/-1;justify-self:start}
@media(min-width:700px){.pos-product-manager .product-size-row,.pos-product-editor .owner-size-row{grid-template-columns:minmax(70px,.6fr) minmax(100px,.8fr) minmax(140px,1fr)}.pos-product-manager .product-size-price{grid-column:auto}}

/* Cashier filter stays beside search with the same touch target. */
.pos-shell #catalogFilterToggle{min-height:46px;max-width:100%;padding:12px 16px;margin:0;font-size:13px;line-height:1.4}
.pos-shell #catalogFilterToggle[aria-pressed=true]{outline:2px solid #ad8a59;outline-offset:2px}
.pos-shell .pos-catalog-filter{display:grid;grid-template-columns:auto minmax(160px,280px);align-items:center;gap:12px;padding:12px;margin:12px 0;border:1px solid #c7ad8c;border-radius:12px;background:#f2e4d1}
.pos-shell .pos-catalog-filter[hidden]{display:none}
.pos-shell .pos-catalog-filter label{font-size:14px;margin:0}
.pos-shell .pos-catalog-filter select{min-width:0;width:100%;min-height:46px;font-size:16px;margin:0}
@media(max-width:600px){.pos-shell .pos-catalog-tools{display:flex;flex-wrap:wrap;gap:8px}.pos-shell .pos-catalog-tools>button{flex:0 1 auto}.pos-shell #catalogFilterToggle{padding:12px}.pos-shell .pos-catalog-filter{grid-template-columns:minmax(0,1fr);gap:6px}}

/* One-tap types and a compact, dedicated material picker. */
.pos-shell .pos-catalog-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.pos-shell .pos-catalog-tools .pos-quick-type{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:46px;padding:10px 12px;margin:0;font-size:13px;line-height:1.3;white-space:nowrap}
.pos-child-badge{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border:1px solid currentColor;border-radius:50%;font-size:11px;font-weight:700;line-height:1}
.pos-shell .pos-quick-type[aria-pressed=true]{outline:2px solid #ad8a59;outline-offset:1px}
.pos-shell #catalogFilterToggle{max-width:240px;overflow-wrap:anywhere}
@media(max-width:600px){.pos-shell .pos-catalog-tools #favoriteManager{margin-left:0}.pos-shell .pos-catalog-tools .pos-quick-type{padding:10px 11px}}


/* Single-line tablet toolbar; labels determine width, not fixed-size boxes. */
.pos-shell .pos-entry .pos-catalog-tools{display:flex!important;flex-wrap:nowrap;align-items:center;gap:16px;padding:10px;position:relative}
.pos-shell .pos-catalog-tools :is(.pos-catalog-primary,.pos-catalog-utilities){display:flex;flex-wrap:nowrap;align-items:center;gap:6px;min-width:0}
.pos-shell .pos-catalog-tools .pos-catalog-primary{flex:1 1 auto}
.pos-shell .pos-catalog-tools .pos-catalog-utilities{flex:0 0 auto}
.pos-shell .pos-catalog-tools :is(.pos-catalog-primary,.pos-catalog-utilities)>button{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:0 1 auto;width:auto;min-width:44px;max-width:none;height:46px;min-height:46px;box-sizing:border-box;padding:8px 10px;margin:0;font-size:12px;line-height:1.2;font-weight:650;border-radius:11px;white-space:nowrap;overflow-wrap:normal}
.pos-shell .pos-catalog-tools :is(#favoriteManager,#catalogFilterToggle){margin:0;width:auto;min-width:44px;max-width:170px;height:46px;min-height:46px;padding:8px 10px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pos-shell .pos-catalog-tools :is(.pos-catalog-primary,.pos-catalog-utilities)>button[hidden]{display:none}
.pos-shell .pos-catalog-tools button svg{width:14px;height:14px;flex:0 0 14px}
.pos-shell .pos-catalog-tools .pos-child-badge{width:18px;height:18px;flex:0 0 18px;font-size:10px}
.pos-shell .pos-catalog-tools #catalogMoreTools{display:none}
@media(min-width:601px) and (max-width:1199px){
 .pos-shell .pos-entry .pos-catalog-tools{gap:10px;padding:8px}
 .pos-shell .pos-catalog-tools :is(.pos-catalog-primary,.pos-catalog-utilities){gap:4px}
 .pos-shell .pos-catalog-tools :is(.pos-catalog-primary,.pos-catalog-utilities)>button,.pos-shell .pos-catalog-tools :is(#favoriteManager,#catalogFilterToggle){padding:8px 7px;font-size:11px}
}
@media(max-width:600px){
 .pos-shell .pos-entry .pos-catalog-tools{gap:6px;padding:7px}
 .pos-shell .pos-catalog-tools .pos-catalog-primary{gap:4px;justify-content:space-between}
 .pos-shell .pos-catalog-tools .pos-catalog-primary>button{font-size:10px;gap:3px;min-width:0;padding:6px 4px;flex:1 1 auto;height:44px;min-height:44px}
 .pos-shell .pos-catalog-tools #refreshFavorites svg{display:none}
 .pos-shell .pos-catalog-tools .pos-child-badge{width:15px;height:15px;flex-basis:15px;font-size:9px}
 .pos-shell .pos-catalog-tools #catalogMoreTools{display:flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:44px;min-height:44px;padding:0;margin:0;font-size:22px;border-radius:10px}
 .pos-shell .pos-catalog-tools .pos-catalog-utilities{display:none;position:absolute;right:0;top:calc(100% + 6px);z-index:20;padding:8px;background:#f6ebdb;border:1px solid #c7ad8c;border-radius:12px;box-shadow:0 6px 20px #49352d22}
 .pos-shell .pos-catalog-tools[data-more-open=true] .pos-catalog-utilities{display:flex}
 .pos-shell .pos-catalog-tools .pos-catalog-utilities>button,.pos-shell .pos-catalog-tools :is(#favoriteManager,#catalogFilterToggle){font-size:11px;padding:8px;max-width:120px}
}
/* Shared compact measurement table: Input PO, Koreksi and advanced PO form. */
[data-bb-page=po] :is(#intakeMeasures,#pantsMeasures,#poMeasurements){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;padding:0;margin:10px 0 16px;border:1px solid #cdb79c;border-radius:12px;overflow:hidden;background:#f7ecdc;box-shadow:none}
[data-bb-page=po] :is(#intakeMeasures,#pantsMeasures,#poMeasurements)>label{display:grid;grid-template-columns:36px minmax(0,1fr);align-items:center;gap:6px;min-width:0;margin:0;padding:5px 7px;border-right:1px solid #ddcbb3;border-bottom:1px solid #ddcbb3;font-size:12px;font-weight:650;line-height:1.2;color:#66503c}
[data-bb-page=po] :is(#intakeMeasures,#pantsMeasures,#poMeasurements)>label:nth-child(4n+3),[data-bb-page=po] :is(#intakeMeasures,#pantsMeasures,#poMeasurements)>label:nth-child(4n+4){background:#efdfc9}
[data-bb-page=po] :is(#intakeMeasures,#pantsMeasures,#poMeasurements)>label:focus-within{background:#fff6e6}
[data-bb-page=po] :is(#intakeMeasures,#pantsMeasures,#poMeasurements) input{box-sizing:border-box;width:100%;min-width:0;min-height:44px;height:44px;margin:0;padding:6px 7px;border:1px solid #cfbda7;border-radius:7px;background:#fffcf7;box-shadow:none;font-size:16px;font-weight:500;line-height:1.2;text-align:right;font-variant-numeric:tabular-nums;appearance:textfield;-moz-appearance:textfield}
[data-bb-page=po] :is(#intakeMeasures,#pantsMeasures,#poMeasurements) input::-webkit-inner-spin-button,[data-bb-page=po] :is(#intakeMeasures,#pantsMeasures,#poMeasurements) input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
[data-bb-page=po] :is(#intakeMeasures,#pantsMeasures,#poMeasurements) input::placeholder{color:#aa9985;font-weight:400}
[data-bb-page=po] :is(#intakeMeasures,#pantsMeasures,#poMeasurements) input:focus{outline:2px solid #a57936;outline-offset:0;border-color:#a57936}
[data-bb-page=po] .bb-measure-break{margin:18px 0 8px;padding:12px 14px;border-radius:10px;box-shadow:none}
[data-bb-page=po] .bb-measure-break .bb-measure-step,[data-bb-page=po] .bb-measure-break p{display:none}
[data-bb-page=po] .bb-measure-break h3{margin:0 0 4px;font-size:16px}
[data-bb-page=po] .bb-measure-break small{font-size:12px;line-height:1.5}
[data-bb-page=po] .po-measure-grid{grid-template-columns:repeat(2,minmax(0,1fr));background:#f7ecdc}
[data-bb-page=po] .po-measure-cell{display:grid;grid-template-columns:36px minmax(0,1fr);align-items:center;gap:6px;padding:10px 9px;text-align:left}
[data-bb-page=po] .po-measure-cell>strong{text-align:right;font-variant-numeric:tabular-nums}
@media(min-width:640px){[data-bb-page=po] :is(#intakeMeasures,#pantsMeasures,#poMeasurements),[data-bb-page=po] .po-measure-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:960px){[data-bb-page=po] :is(#intakeMeasures,#pantsMeasures,#poMeasurements),[data-bb-page=po] .po-measure-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
/* Dense PO results: nota + customer, description, then payment metadata. */
[data-bb-page=po] #intakeList{gap:7px;margin-top:10px}
[data-bb-page=po] #intakeList button.po-intake-card{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);grid-template-areas:'number customer' 'description description' 'footer footer';align-items:start;gap:3px 8px;min-height:76px;padding:8px 10px;border-radius:10px;line-height:1.35;box-shadow:0 2px 5px #49311d18}
[data-bb-page=po] #intakeList .po-intake-header{grid-area:number;min-width:0;gap:0}
[data-bb-page=po] #intakeList .po-intake-number{font-size:15px;line-height:1.3;letter-spacing:0}
[data-bb-page=po] #intakeList .po-intake-arrow{display:none}
[data-bb-page=po] #intakeList .po-intake-customer{grid-area:customer;position:relative;min-width:0;justify-content:flex-end;align-items:start;gap:0}
[data-bb-page=po] #intakeList .po-intake-caption{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
[data-bb-page=po] #intakeList .po-intake-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:13.5px;line-height:1.35;text-align:right}
[data-bb-page=po] #intakeList .po-intake-description{grid-area:description;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-width:none;font-size:12.5px;line-height:1.35}
[data-bb-page=po] #intakeList .po-intake-footer{grid-area:footer;display:flex;flex-wrap:nowrap;align-items:center;gap:6px;margin:1px 0 0;padding:0;border:0}
[data-bb-page=po] #intakeList .po-intake-meta{flex:1;min-width:0;overflow-wrap:anywhere;font-size:11px;line-height:1.35}
[data-bb-page=po] #intakeList .po-intake-status{flex:0 0 auto;padding:2px 5px;font-size:10px;border-radius:5px}
@media(min-width:800px){[data-bb-page=po] #intakeList{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}}

/* Compact Cari Data and Status PO, retaining readable values and touch targets. */
[data-bb-page=po]:is([data-po-view=search],[data-po-view=status]) #bbPoBanner{min-height:0;padding:12px 16px;margin-bottom:12px;border-radius:16px}
[data-bb-page=po]:is([data-po-view=search],[data-po-view=status]) #bbPoBanner h2{font-size:18px;line-height:1.3;margin:3px 0}
[data-bb-page=po]:is([data-po-view=search],[data-po-view=status]) #bbPoBanner .bb-banner-eyebrow{font-size:10px;margin:0}
[data-bb-page=po]:is([data-po-view=search],[data-po-view=status]) #bbPoBanner .bb-banner-description{display:none}
[data-bb-page=po] :is(#poSearchPanel,#poStatusMenu){padding:12px}
[data-bb-page=po] :is(#poSearchPanel,#poStatusMenu)>h2,[data-bb-page=po] #poStageTitle{font-size:20px;line-height:1.25;margin:0 0 8px;overflow-wrap:anywhere}
[data-bb-page=po] :is(#poSearchPanel,#poStatusMenu)>p{font-size:13px;line-height:1.4;margin:5px 0 10px}
[data-bb-page=po] #poSearchPanel>.po-card{padding:10px;margin:8px 0}
[data-bb-page=po] #poSearchPanel h3{font-size:14px;margin:10px 0 6px}
[data-bb-page=po] #poSearchForm{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 6px;align-items:center}
[data-bb-page=po] #poSearchForm>label{grid-column:1/-1;font-size:12px;margin:0}
[data-bb-page=po] #poSearchForm :is(input,button){min-height:44px;margin:0;padding:9px 10px;border-radius:9px}
[data-bb-page=po] :is(#poSearchPanel,#poStatusMenu) .po-tabs{gap:4px;margin:6px 0}
[data-bb-page=po] :is(#poSearchPanel,#poStatusMenu) .po-tabs button{min-height:44px;padding:7px 9px;font-size:12px;border-radius:9px}
[data-bb-page=po] #poStatusDates{padding:8px;margin:8px 0}
[data-bb-page=po] #poSearchResults{display:grid;grid-template-columns:minmax(0,1fr);gap:7px}
[data-bb-page=po] #poSearchResults .po-search-record{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;align-items:center;padding:9px 10px;margin:0;border-radius:11px;min-width:0}
[data-bb-page=po] #poSearchResults .po-identity-summary{display:contents}
[data-bb-page=po] #poSearchResults :is(.po-summary-head,.po-summary-meta){grid-column:1/-1;display:flex;justify-content:space-between;align-items:baseline;gap:5px 12px;min-width:0;line-height:1.35}
[data-bb-page=po] #poSearchResults .po-summary-head strong{font-size:14px;color:#503c2e}
[data-bb-page=po] #poSearchResults .po-summary-head>span{font-size:13px;font-weight:600;text-align:right}
[data-bb-page=po] #poSearchResults .po-summary-meta{font-size:12px;color:#79614a}
[data-bb-page=po] #poSearchResults .po-summary-meta time{flex-shrink:0}
[data-bb-page=po] #poSearchResults .po-phone-value{font-size:12px;gap:3px 5px;min-width:0}
[data-bb-page=po] #poSearchResults .po-data-copy{min-width:44px;min-height:44px;padding:6px;font-size:11px;border-radius:8px}
[data-bb-page=po] #poSearchResults .po-search-record>button{width:auto!important;min-height:44px;max-width:112px;margin:0;padding:7px 9px;font-size:12px;line-height:1.3;border-radius:8px}
[data-bb-page=po] :is(#poStageContent,#poRecordContent)>.po-record-identity{padding:5px 10px;margin:8px 0;border-radius:11px}
[data-bb-page=po] :is(#poStageContent,#poRecordContent)>.po-record-identity :is(th,td){padding:6px 3px;line-height:1.35}
[data-bb-page=po] :is(#poStageContent,#poRecordContent)>.po-record-identity th{width:32%;font-size:12px}
[data-bb-page=po] :is(#poStageContent,#poRecordContent)>.po-record-identity td{font-size:14px}
[data-bb-page=po] :is(#poStageContent,#poRecordContent) .po-phone-value{gap:3px 7px}
[data-bb-page=po] :is(#poStageContent,#poRecordContent) .po-data-copy{min-width:72px;min-height:44px;padding:6px 8px;font-size:11px;border-radius:8px}
[data-bb-page=po] #poStageContent .po-stage-heading{padding:7px 0}
[data-bb-page=po] #poStageContent .po-stage-heading h3{font-size:18px;line-height:1.3;margin:0 0 3px}
[data-bb-page=po] #poStageContent .po-stage-heading p{font-size:13px;line-height:1.4;margin:3px 0}
[data-bb-page=po] #poStageContent>.small{font-size:12px;line-height:1.4;margin:5px 0 8px}
[data-bb-page=po] #poStageContent .po-stage-buttons{gap:5px}
[data-bb-page=po] #poStageContent .po-stage-button{min-height:56px;padding:7px 3px;gap:4px;border-radius:9px}
[data-bb-page=po] #poStageContent .po-data-section{margin:6px 0;border-radius:10px}
[data-bb-page=po] #poStageContent .po-data-section-head{padding:5px 10px;gap:7px}
[data-bb-page=po] #poStageContent .po-data-section-head h3{font-size:13px}
@media(min-width:900px){[data-bb-page=po] #poSearchResults{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Dashboard: dense summaries, daily revenue and compact monitoring cards. */
[data-bb-page=po][data-po-view=dashboard] #bbPoBanner{min-height:0;padding:12px 16px;margin-bottom:12px;border-radius:16px}
[data-bb-page=po][data-po-view=dashboard] #bbPoBanner h2{font-size:18px;margin:3px 0;line-height:1.3}
[data-bb-page=po][data-po-view=dashboard] #bbPoBanner .bb-banner-description{display:none}
[data-bb-page=po] #poDashboardPanel{padding:12px}
[data-bb-page=po] #poDashboardPanel>.po-card{padding:10px;margin:8px 0;border-radius:12px}
[data-bb-page=po] #poDashboardPanel :is(h2,h3){font-size:15px;line-height:1.35;margin:10px 0 7px}
[data-bb-page=po] #poDashboardPanel>h2{font-size:20px;margin-top:0}
[data-bb-page=po] #poDashboardPanel :is(p,.small){font-size:12px;line-height:1.45;margin:6px 0}
[data-bb-page=po] #poDashboardPanel .po-tabs{gap:4px;margin:6px 0 9px}
[data-bb-page=po] #poDashboardPanel .po-tabs button{min-height:44px;padding:7px 9px;font-size:12px;border-radius:9px}
[data-bb-page=po] #poDashboardPanel .po-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
[data-bb-page=po] #poDashboardPanel .po-stat{min-height:64px;padding:8px 10px;min-width:0;border-radius:10px;box-shadow:none;display:flex;flex-direction:column;justify-content:space-between;gap:4px}
[data-bb-page=po] #poDashboardPanel .po-stat small{font-size:12px;line-height:1.3}
[data-bb-page=po] #poDashboardPanel .po-stat strong{font-size:22px;line-height:1.15;margin:0;overflow-wrap:anywhere}
[data-bb-page=po] #poDashboardPanel #poRevenueSummary .po-stat strong{font-size:17px}
[data-bb-page=po] #poDashboardRevenue{margin:8px 0 14px;padding-bottom:10px;border-bottom:1px solid #d6c3a9}
[data-bb-page=po] .po-revenue-scroll{max-width:100%;overflow-x:auto;margin-top:8px;border:1px solid #d6c3a9;border-radius:9px}
[data-bb-page=po] .po-revenue-table{min-width:510px;table-layout:auto;font-variant-numeric:tabular-nums}
[data-bb-page=po] .po-revenue-table :is(th,td){width:auto;padding:7px 8px;font-size:12px;white-space:nowrap;text-align:right}
[data-bb-page=po] .po-revenue-table :is(th,td):first-child{text-align:left}
[data-bb-page=po] .po-revenue-table thead th{background:#eadbc5;font-weight:600}
[data-bb-page=po] .po-revenue-table caption{font-size:11px;padding:6px 8px}
[data-bb-page=po] #poDashboardPanel .po-listitem{padding:8px 10px;margin:6px 0;border-radius:10px;min-width:0}
[data-bb-page=po] #poDashboardPanel .po-list-number{font-size:14px}
[data-bb-page=po] #poDashboardPanel .po-tag{font-size:11px;padding:3px 7px}
[data-bb-page=po] #poDashboardPanel .po-listitem button{min-height:44px;width:auto!important;padding:7px 10px;margin:5px 0 0;font-size:12px;border-radius:8px}
[data-bb-page=po] #poDashboardPanel .po-pagination{gap:6px;margin:8px 0}
[data-bb-page=po] #poDashboardPanel .po-pagination button{min-height:44px;padding:7px 10px;font-size:12px}
@media(min-width:760px){
 [data-bb-page=po] #poDashboardPanel :is(#poDashboardCounts,#poDashboardServices,#poRevenueSummary){grid-template-columns:repeat(4,minmax(0,1fr))}
 [data-bb-page=po] :is(#poDashboardRecent,#poDashboardAttention){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 [data-bb-page=po] #poDashboardPanel :is(#poDashboardRecent,#poDashboardAttention) .po-listitem{margin:0}
}
[data-bb-page=po] #poRevenueBreakdown{margin-top:6px}
[data-bb-page=po] #poRevenueBreakdown>summary{min-height:44px;box-sizing:border-box;padding:12px 9px;font-size:12px;font-weight:600;cursor:pointer;border:1px solid #d6c3a9;border-radius:9px;background:#f3e7d6}


/* Keep the saved check at the right edge of the metadata row. */
[data-bb-page=po] #intakeList .is-correction .po-intake-footer{min-height:24px;align-items:flex-end;gap:12px;margin-top:5px}
[data-bb-page=po] #intakeList .po-intake-footer .po-correction-check{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;flex:0 0 auto;width:24px;height:24px;padding:0;margin-left:auto;border:0;border-radius:0;background:transparent;box-shadow:none;color:#fff8eb}
[data-bb-page=po] #intakeList .po-correction-check svg{display:block;width:24px;height:24px;pointer-events:none}
[data-bb-page=po] #intakeList .po-correction-check .po-check-disc{fill:#a87d45;stroke:#e4c792;stroke-width:1.2}
[data-bb-page=po] #intakeList .po-correction-check .po-check-mark{stroke:#bd965f;stroke-width:.7;stroke-linejoin:round}

/* Keep the complete group choice usable when the cashier toolbar gets narrow. */
.pos-shell .pos-catalog-tools #catalogGroupChoice{display:none;min-width:0;max-width:100%;height:44px;min-height:44px;margin:0;padding:8px 30px 8px 10px;border-radius:11px;font-size:12px;line-height:1.2;box-sizing:border-box;flex:1 1 auto}
.pos-shell .pos-catalog-tools[data-compact-groups=true] .pos-quick-type{display:none}
.pos-shell .pos-catalog-tools[data-compact-groups=true] #catalogGroupChoice{display:block}
.pos-shell .pos-catalog-tools[data-compact-groups=true] .pos-catalog-primary{flex:1;gap:6px}
.pos-shell .pos-catalog-tools[data-compact-groups=true] #refreshFavorites{flex:0 0 auto}
