/* Reference order layout, using Taro POS's shared palette rather than MaXS colors. */
.cashier-payment-history{flex:none;padding:0 16px;background:#fff;min-width:0}
.cashier-payment-record{padding:13px 0;border-bottom:1px solid var(--brand-line);overflow-wrap:anywhere}
.cashier-payment-record-main{display:flex;justify-content:space-between;align-items:baseline;gap:12px;color:var(--brand-ink);font-size:14px;line-height:1.4}
.cashier-payment-record-main strong{min-width:0}.cashier-payment-record-main strong>span{font-weight:500;color:var(--brand-muted)}
.cashier-payment-amount{flex:none;color:var(--brand-primary);font-size:16px;white-space:nowrap;font-variant-numeric:tabular-nums}
.cashier-payment-record-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:5px;color:var(--brand-muted);font-size:12px}
.cashier-payment-record-meta em{font-style:normal;border-radius:4px;padding:2px 6px;background:var(--brand-soft);color:var(--brand-primary-dark);font-weight:700}
.cashier-payment-record:is([data-payment-state="refunded"],[data-payment-state="void"]) .cashier-payment-record-meta em{background:#fff0ef;color:#b13c36}
.cashier-payment-record:is([data-payment-state="refunded"],[data-payment-state="void"]) .cashier-payment-amount{color:var(--brand-muted)}
.cashier-payment-record[data-payment-state="pending"] .cashier-payment-record-meta em{background:#fff5df;color:#805d0c}
.cashier-payment-record>small{display:block;margin-top:5px;color:var(--brand-muted);font-size:12px;line-height:1.4}
.cashier-payment-empty{margin:0;padding:14px 0;color:var(--brand-muted);font-size:13px}
.cashier-payment-history-total{display:flex;justify-content:space-between;gap:12px;padding:13px 0;color:var(--brand-ink);font-size:14px}
.cashier-payment-history-total strong{color:var(--brand-primary);font-variant-numeric:tabular-nums}
.cashier-orders-reference{
  --orders-canvas:var(--brand-canvas);
  --orders-rail:#fff;
  --orders-side:var(--brand-soft);
  grid-template-columns:120px minmax(0,1fr);
  background:var(--orders-canvas);
  color:var(--brand-ink);
}
.cashier-orders-reference .cashier-rail{background:var(--orders-rail);border:0;border-right:1px solid var(--brand-line);box-shadow:none}
.cashier-orders-reference .cashier-rail-brand{height:100px}
.cashier-orders-reference .cashier-rail-brand img{width:84px;height:52px;background:transparent;filter:none}
.cashier-orders-reference .cashier-rail-brand span{color:var(--brand-primary);font-size:10px}
.cashier-orders-reference .cashier-rail-brand i{background:var(--brand-primary);box-shadow:none}
.cashier-orders-reference .cashier-rail nav a,.cashier-orders-reference .cashier-rail nav button{min-height:86px;color:var(--brand-muted);font-size:14px;font-weight:400}
.cashier-orders-reference .cashier-rail nav .control-icon{width:27px;height:27px}
.cashier-orders-reference .cashier-rail nav :is(a:hover,button:hover,.active){background:var(--brand-soft);color:var(--brand-primary)}
.cashier-orders-reference .cashier-rail-user{min-height:82px;display:flex;flex-direction:column;justify-content:center;gap:2px;padding:6px 4px;border:0;background:var(--brand-primary);color:#fff;text-align:center}
.cashier-orders-reference .cashier-rail-user>span{width:58px;height:58px;grid-row:auto;margin:-45px auto 1px;border:2px solid #fff;background:var(--brand-primary-dark);font-size:14px}
.cashier-orders-reference .cashier-rail-user strong{font-size:12px}.cashier-orders-reference .cashier-rail-user small{display:none}
.cashier-orders-reference .cashier-stage{display:block;min-height:0;overflow:hidden;background:var(--orders-canvas)}
.cashier-orders-reference .cashier-orders-layout{height:100%;grid-template-columns:minmax(470px,33.333%) minmax(520px,1fr) 190px;background:var(--orders-canvas)}
.cashier-orders-reference .cashier-order-detail{position:relative;display:block;min-height:0;padding:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;touch-action:pan-y;-webkit-overflow-scrolling:touch;background:#fff;color:var(--brand-ink)}
.cashier-reference-receipt{width:100%;min-height:100%;display:flex;flex-direction:column;overflow:visible;background:#fff}
.cashier-orders-reference .cashier-order-detail .cashier-receipt-identity{min-height:101px;display:grid;grid-template-columns:42px minmax(0,1fr) 28px;align-content:center;align-items:center;gap:0 10px;padding:12px 16px;border-bottom:1px solid var(--brand-line);background:#fff}
.cashier-receipt-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:3px;background:var(--brand-primary);color:#fff;font-size:18px}
.cashier-receipt-identity>span:nth-child(2){display:grid;gap:2px}.cashier-receipt-identity strong{font-size:18px;line-height:1.25}.cashier-receipt-identity small{color:var(--brand-muted);font-size:10px;font-weight:500}.cashier-receipt-identity>b{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--brand-primary);color:#fff;font-size:25px;font-weight:400;line-height:1}
.cashier-receipt-tags{grid-column:1/-1;display:flex;gap:9px;margin-top:9px}.cashier-receipt-tags em{display:inline-flex;align-items:center;gap:5px;padding:3px 7px;background:var(--brand-soft);color:var(--brand-primary-dark);font-size:12px;font-style:normal;font-weight:750}.cashier-receipt-tags .control-icon{width:18px;height:18px}
.cashier-reference-receipt>h3{flex:none;margin:0;padding:17px 16px;background:var(--brand-soft);color:var(--brand-ink);font-size:15px;font-weight:800}
.cashier-reference-details,.cashier-reference-bill{flex:none;display:grid;grid-template-columns:1fr auto;gap:0;margin:0;padding:6px 16px;background:#fff}
.cashier-order-member{flex:none;min-width:0}.cashier-order-member>h3{margin:0;padding:17px 16px;background:var(--brand-soft);color:var(--brand-ink);font-size:15px;font-weight:800}.cashier-order-member .cashier-reference-details{grid-template-columns:minmax(95px,.8fr) minmax(0,1.2fr);column-gap:10px}.cashier-order-member dd{overflow-wrap:anywhere;font-weight:700}.cashier-order-member [data-order-member-number]{font-variant-numeric:tabular-nums}
.cashier-reference-details dt,.cashier-reference-details dd,.cashier-reference-bill dt,.cashier-reference-bill dd{margin:0;padding:7px 0;font-size:13px;line-height:1.25}.cashier-reference-details dd,.cashier-reference-bill dd{text-align:right}.cashier-reference-bill>dt:first-child,.cashier-reference-bill>dd:first-of-type{color:var(--brand-primary);font-weight:800}.cashier-reference-bill .discount{color:#c83f3f}.cashier-reference-bill .sub{padding:2px 0 6px 12px;color:var(--brand-muted);font-size:10px}.cashier-reference-bill .total{margin-top:2px;border-bottom:1px solid var(--brand-line);color:var(--brand-primary);font-size:14px;font-weight:850}
.cashier-cancellation-reason{flex:none;min-height:52px;margin:0;padding:16px;font-size:12px}
.cashier-reference-products{flex:none;overflow:visible;background:#fff}
.cashier-receipt-line{display:grid;grid-template-columns:18px minmax(0,1fr) 38px auto;align-items:start;gap:6px;min-height:76px;padding:14px 16px;border-bottom:1px solid var(--brand-line)}.cashier-receipt-check{color:var(--brand-primary);font-size:21px;font-weight:900}.cashier-receipt-line>span:nth-child(2){min-width:0}.cashier-receipt-line strong,.cashier-receipt-line small{display:block}.cashier-receipt-line>span strong{font-size:16px}.cashier-receipt-line small{margin-top:5px;color:var(--brand-muted);font-size:11px}.cashier-receipt-line em{display:inline-block;margin-top:5px;padding:2px 5px;border-radius:3px;background:#ff9800;color:#fff;font-size:9px;font-style:normal}.cashier-receipt-line>b{justify-self:center;padding:7px 12px;border-radius:4px;background:var(--brand-soft);font-size:14px}.cashier-receipt-line>strong{padding-top:7px;color:var(--brand-primary);font-size:15px;white-space:nowrap}
.cashier-receipt-combo-line{display:grid;grid-template-columns:1fr 38px;align-items:start;gap:8px;margin:0 8px 0 36px;padding:10px 16px;border-radius:8px;background:var(--brand-canvas);color:var(--brand-ink);font-size:13px}.cashier-receipt-combo-line small{display:block;margin:4px 0 0 19px;color:var(--brand-muted)}.cashier-receipt-combo-line>b{justify-self:center;padding:7px 12px;border-radius:4px;background:var(--brand-soft)}
.cashier-reference-actions{flex:none;display:flex;justify-content:flex-end;gap:10px;min-height:92px;padding:14px 18px;background:#fff}.cashier-reference-actions button{width:70px;min-height:64px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:0;background:#fff;color:var(--brand-primary)}.cashier-reference-actions button.pay{border-radius:7px;background:var(--brand-primary);color:#fff}.cashier-reference-actions .control-icon{width:31px;height:31px}.cashier-reference-actions span{font-size:11px}
.cashier-orders-reference .cashier-orders-board{position:relative;display:grid;grid-template-rows:104px minmax(0,1fr) 70px;padding:0;background:var(--orders-canvas);color:var(--brand-ink);overflow:hidden}
.cashier-orders-reference .cashier-orders-board>header{position:relative;display:flex;align-items:center;gap:16px;height:104px;margin:0;padding:0 16px;border:0}
.cashier-orders-reference .cashier-orders-board>header select{width:165px;min-height:64px;padding:0 40px 0 16px;border:2px solid var(--brand-line);border-radius:4px;background:#fff;color:var(--brand-ink);font-size:15px;box-shadow:none}.cashier-orders-reference .cashier-orders-board>header select option{background:#fff;color:var(--brand-ink)}.cashier-orders-reference .cashier-orders-board>header select:nth-of-type(2){width:150px}.cashier-orders-reference .cashier-orders-board>header select:nth-of-type(3){width:134px}.cashier-orders-reference .cashier-orders-board>header select:nth-of-type(4){width:130px}
.cashier-orders-alert{position:absolute;z-index:2;left:177px;top:0;display:grid;place-items:center;width:80px;height:62px;border-radius:0 0 40px 40px;background:#ff414b;color:#fff}.cashier-orders-alert .control-icon{width:27px;height:27px;fill:#fff}
.cashier-orders-alert>div{position:absolute;inset:0}.cashier-orders-alert details.section-card{width:100%;height:100%;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}.cashier-orders-alert details.section-card>summary{position:absolute;inset:0;display:block;overflow:hidden;font-size:0;cursor:pointer;list-style:none}.cashier-orders-alert details.section-card>summary::-webkit-details-marker{display:none}.cashier-orders-alert details.section-card[open]{position:fixed;z-index:20;left:50%;top:72px;width:min(620px,calc(100vw - 32px));height:auto;max-height:calc(100vh - 96px);padding:20px!important;overflow:auto;transform:translateX(-50%);border-radius:12px!important;background:#fff!important;color:var(--brand-ink)!important;box-shadow:0 24px 70px rgb(9 105 181 / 18%)!important}.cashier-orders-alert details.section-card[open]>summary{position:static;display:block;margin-bottom:14px;font-size:16px;list-style:revert}
.cashier-orders-alert details:not([open]) [data-qr-count]{position:absolute;right:0;top:0;min-width:18px;min-height:18px;padding:2px;border-radius:50%;font-size:11px;line-height:14px;background:#fff;color:#bd1826}
.cashier-orders-alert details:not([open])>summary{overflow:visible}
.cashier-orders-alert details:not([open])>summary>strong{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.cashier-orders-reference #cashier-order-list{min-height:0;display:flex;flex-direction:column;gap:16px;overflow:auto;padding:0 16px 12px;scrollbar-width:thin}
.cashier-orders-reference #cashier-order-list>button{position:relative;display:grid;grid-template-columns:48px minmax(230px,1fr) auto auto auto;align-items:center;gap:12px;min-height:80px;padding:12px 16px;border:2px solid var(--brand-line);border-radius:16px;background:#fff;color:var(--brand-ink);text-align:left;box-shadow:none}.cashier-orders-reference #cashier-order-list>button.active{border-color:var(--brand-primary);background:var(--brand-soft);box-shadow:none}.cashier-orders-reference #cashier-order-list>button:focus-visible{outline:3px solid var(--brand-primary);outline-offset:2px}.cashier-orders-reference #cashier-order-list>button[hidden]{display:none}
.cashier-order-status-mark{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;color:#fff;font-size:38px;font-weight:300;line-height:1}.cashier-orders-reference .cashier-orders-board #cashier-order-list>button>.cashier-order-status-mark.cancelled{background:#e4482f}.cashier-orders-reference .cashier-orders-board #cashier-order-list>button>.cashier-order-status-mark.paid{background:#00a940;font-size:24px}.cashier-orders-reference .cashier-orders-board #cashier-order-list>button>.cashier-order-status-mark.open{background:var(--brand-primary);font-size:32px}
.cashier-orders-reference #cashier-order-list>button>strong{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cashier-orders-reference #cashier-order-list>button>strong em{margin-left:6px;font-style:normal}.cashier-orders-reference #cashier-order-list>button>small{color:var(--brand-muted);font-size:14px;white-space:nowrap}.cashier-orders-reference #cashier-order-list>button>time{color:var(--brand-primary-dark);font-size:13px;white-space:nowrap}.cashier-orders-reference #cashier-order-list>button>b{color:var(--brand-primary);font-size:16px;white-space:nowrap}
.cashier-order-pagination{display:flex;align-items:center;justify-content:center;gap:48px;padding:8px 16px 14px}.cashier-order-pagination button{display:grid;place-items:center;width:28px;height:28px;border:1px solid var(--brand-line);border-radius:50%;background:#fff;color:var(--brand-primary);font-size:30px;line-height:1}.cashier-order-pagination button:disabled{opacity:.35}.cashier-order-pagination strong{font-size:18px}
/* Keep every filter reachable on landscape cashier tablets. Fixed select widths
   previously wrapped the payment selector outside the clipped header. */
.cashier-orders-reference .cashier-orders-board{grid-template-columns:minmax(0,1fr)}
.cashier-orders-reference .cashier-orders-board>header{flex-wrap:nowrap;gap:8px;min-width:0}
.cashier-orders-reference .cashier-orders-board>header select{flex:1 1 0;width:auto!important;min-width:0;max-width:165px;min-height:44px;padding-right:24px}
.cashier-orders-reference .cashier-orders-alert{position:relative;left:auto;top:auto;flex:0 0 36px;width:36px;height:44px;border-radius:8px}
.cashier-order-pagination button{width:40px;height:40px}
.cashier-orders-reference .cashier-filter-rail{display:block;min-height:0;padding:0 0 24px;background:var(--orders-side);overflow:auto;color:var(--brand-ink)}
.cashier-orders-reference .cashier-filter-rail>header{height:104px;display:flex;align-items:center;padding:0 10px;background:var(--orders-canvas)}.cashier-orders-reference .cashier-filter-rail>header label{display:grid;grid-template-columns:1fr 28px;align-items:center;width:94px;height:48px;margin-left:auto;padding:0 12px;border:1px solid var(--brand-line);border-radius:28px;background:#fff;color:var(--brand-primary)}.cashier-orders-reference .cashier-filter-rail>header input{grid-column:1;grid-row:1;width:100%;min-width:0;padding:0;border:0;background:transparent;color:var(--brand-ink);font-size:15px;box-shadow:none}.cashier-orders-reference .cashier-filter-rail>header input::placeholder{color:var(--brand-muted)}.cashier-orders-reference .cashier-filter-rail>header .control-icon{grid-column:2;grid-row:1;width:24px;height:24px}
.cashier-orders-reference .cashier-filter-rail button{width:100%;min-height:0;margin:0;padding:18px 8px;border:0;border-radius:0;background:transparent;color:var(--brand-ink);font-size:17px;font-weight:750;text-align:left}.cashier-orders-reference .cashier-filter-rail button.active{border:0;background:var(--brand-primary);color:#fff}.cashier-orders-reference .cashier-filter-rail>button.cashier-filter-all{min-height:76px;padding-left:8px}.cashier-orders-reference .cashier-filter-rail section{padding:10px 0}.cashier-orders-reference .cashier-filter-rail .cashier-filter-child{padding:17px 8px;font-size:16px}
@media(max-width:1500px){.cashier-orders-reference{grid-template-columns:88px minmax(0,1fr)}.cashier-orders-reference .cashier-orders-layout{grid-template-columns:minmax(330px,33.333%) minmax(440px,1fr) 136px}.cashier-orders-reference .cashier-rail nav a,.cashier-orders-reference .cashier-rail nav button{min-height:64px;font-size:9px}.cashier-orders-reference .cashier-rail-user>span{width:44px;height:44px;margin:-32px auto 0}.cashier-orders-reference .cashier-orders-board>header{gap:10px;padding:0 12px}.cashier-orders-reference .cashier-orders-board>header select{width:120px;min-height:54px;padding-left:10px;font-size:12px}.cashier-orders-reference .cashier-orders-board>header select:nth-of-type(2){width:120px}.cashier-orders-reference .cashier-orders-board>header select:nth-of-type(3),.cashier-orders-reference .cashier-orders-board>header select:nth-of-type(4){width:112px}.cashier-orders-alert{left:132px;width:64px;height:53px}.cashier-orders-reference #cashier-order-list{gap:10px;padding:0 12px 10px}.cashier-orders-reference #cashier-order-list>button{grid-template-columns:38px minmax(180px,1fr) auto;grid-template-rows:auto auto;min-height:68px;border-radius:12px;padding:9px 12px}.cashier-order-status-mark{grid-row:1/3;width:38px;height:38px;font-size:30px}.cashier-orders-reference #cashier-order-list>button>strong{font-size:12px}.cashier-orders-reference #cashier-order-list>button>small{font-size:10px}.cashier-orders-reference #cashier-order-list>button>time{grid-column:3;font-size:10px}.cashier-orders-reference #cashier-order-list>button>b{display:none}.cashier-orders-reference .cashier-filter-rail button{font-size:13px}.cashier-orders-reference .cashier-filter-rail .cashier-filter-child{font-size:12px}.cashier-orders-reference .cashier-filter-rail>header label{width:105px}.cashier-receipt-identity strong{font-size:14px}.cashier-receipt-line>span strong{font-size:13px}}
@media(max-width:900px){.cashier-orders-reference{display:grid;grid-template-columns:76px minmax(0,1fr);min-height:100vh}.cashier-orders-reference .cashier-rail{position:sticky}.cashier-orders-reference .cashier-orders-layout{display:grid;grid-template-columns:1fr;overflow:visible}.cashier-orders-reference .cashier-order-detail{min-height:620px}.cashier-orders-reference .cashier-orders-board{min-height:680px}.cashier-orders-reference .cashier-filter-rail{display:flex}.cashier-orders-reference .cashier-filter-rail>header{height:auto;min-width:150px}.cashier-orders-reference .cashier-filter-rail>button,.cashier-orders-reference .cashier-filter-rail section{min-width:130px}.cashier-orders-reference .cashier-filter-rail section{display:flex}.cashier-orders-reference .cashier-filter-rail button{min-width:125px;text-align:center}}
