/* Customer auth: pending staff notices belong exclusively to the business flow. */
#approval-wait[hidden]{display:none!important}
/* A third action occupies its own row instead of the narrow detail-button column. */
.product-actions>.alternative-button{grid-column:1/-1;width:100%;min-width:0;height:auto!important;min-height:36px;padding:7px 8px;font-size:12px!important;line-height:1.25;white-space:normal;overflow-wrap:anywhere;display:flex;align-items:center;justify-content:center;text-align:center}
[data-ops-panel="cash-sales"]{color:#182b43;max-width:1100px;margin:auto;--cash-line:#dce3e9}
.cash-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:20px}.cash-heading h2{margin:5px 0;font-size:28px}.cash-heading p{color:#697587;margin:6px 0}.cash-tabs,.cash-review-actions{display:flex;gap:10px;flex-wrap:wrap}.cash-review-actions{margin:20px 0}.cash-tabs button,.cash-review-actions button,.cash-filter button,[data-cash-add],.cash-line button,.cash-bottom button{border:1px solid #cfd9e1;border-radius:10px;min-height:44px;padding:10px 16px;background:#fff;color:#193750;font:inherit;font-weight:700;cursor:pointer}.cash-primary{background:#16344f!important;color:#fff!important;border-color:#16344f!important}#cash-status{font-size:15px;line-height:1.5;color:#7c3b21;margin:10px 0}#cash-status:empty{display:none}#cash-sale-form{display:grid;gap:18px}#cash-work input,#cash-work select{width:100%;min-width:0;box-sizing:border-box;border:1px solid #cdd8e2;background:#fff;color:#17243b;border-radius:10px;padding:12px;font:inherit;font-size:16px;min-height:46px}#cash-work label{display:grid;gap:7px;font-size:14px;font-weight:600}.cash-product-results{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-height:260px;overflow:auto;overscroll-behavior:contain}.cash-product-results button{display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;padding:12px}.cash-product-results small,.cash-line small{display:block;color:#687889;font-size:12px;font-weight:400;margin-top:5px}.cash-product-results b{color:#246445;font-size:13px}.cash-line{background:#fff;border:1px solid var(--cash-line);border-radius:15px;padding:16px;margin-bottom:12px}.cash-line-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.cash-line-title>div{min-width:0}.cash-line-title button{font-size:12px;padding:6px 10px;color:#944736;flex-shrink:0}.cash-line-fields{display:grid;grid-template-columns:1fr 1fr 1.3fr 1.3fr;gap:12px;align-items:end}.cash-line-amount{padding-bottom:12px;text-align:right;overflow-wrap:anywhere}.cash-line-amount strong{font-size:18px}.cash-bottom{display:flex;justify-content:space-between;align-items:center;gap:14px;position:sticky;bottom:12px;background:#fff;border:1px solid var(--cash-line);box-shadow:0 5px 25px #17324818;border-radius:14px;padding:16px;z-index:2}.cash-bottom small{display:block;color:#69788a}.cash-bottom strong{font-size:24px}.cash-note{font-size:13px;line-height:1.5;color:#66768b}.cash-empty{background:#f6f8fa;border:1px dashed #cbd6e0;border-radius:14px;padding:24px;text-align:center;color:#657488}.cash-paper{background:#fff;border:1px solid var(--cash-line);border-radius:16px;padding:28px;box-shadow:0 8px 26px #18304708}.cash-paper-head{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap;border-bottom:2px solid #1a3654;padding-bottom:18px}.cash-paper-head span{font-weight:800;letter-spacing:.13em;font-size:13px;color:#93752d}.cash-paper-head h2{font-size:26px;margin:10px 0}.cash-paper-head p{margin:0;color:#6b7786;font-size:13px}.cash-paper-meta{display:flex;gap:28px;flex-wrap:wrap;margin:15px 0}.cash-paper-meta p{font-size:14px;margin:6px 0;overflow-wrap:anywhere}.cash-paper small{display:block;font-size:12px;color:#6a7788;margin-bottom:4px}.cash-table-wrap{overflow-x:auto}.cash-paper table{width:100%;border-collapse:collapse;font-size:14px}.cash-paper th{background:#f0f4f6;font-size:12px}.cash-paper td,.cash-paper th{text-align:left;padding:12px 8px;border-bottom:1px solid #e1e7ec}.cash-paper td:nth-last-child(-n+2),.cash-paper th:nth-last-child(-n+2){text-align:right;white-space:nowrap}.cash-paper td:nth-child(2){min-width:160px}.cash-paper-total{display:flex;justify-content:flex-end;align-items:center;gap:45px;margin-top:18px;padding:16px;background:#eef5f0;font-size:19px;border-radius:10px}.cash-paper-total strong{font-size:25px}.cash-paper-foot{font-size:12px;color:#647387;text-align:center;margin:24px 0 0}.cash-filter{display:grid;grid-template-columns:1fr 1fr 2fr auto;gap:12px;align-items:end;margin-bottom:20px}.cash-summary{display:flex;gap:30px;background:#eef3f7;padding:18px;border-radius:12px;margin-bottom:18px}.cash-summary small{display:block;color:#607086;font-size:12px}.cash-summary b{display:block;font-size:23px;margin-top:5px}.cash-history-list{display:grid;gap:10px}.cash-history-list .cash-history-open{display:flex;justify-content:space-between;gap:12px;align-items:center;width:100%;text-align:left;border:1px solid var(--cash-line);border-radius:12px;padding:17px;background:#fff;color:#17243b;cursor:pointer}.cash-history-list small{display:block;color:#69788a;font-size:12px;margin-top:8px}.cash-history-list b{white-space:nowrap}.cash-history-list strong{overflow-wrap:anywhere}#cash-work button:active,.cash-tabs button:active{transform:scale(.97)}#cash-work button:disabled{opacity:.6;cursor:wait}#cash-work button:focus-visible,#cash-work input:focus-visible,#cash-work select:focus-visible{outline:3px solid #ba9a49;outline-offset:2px}
@media(max-width:650px){.cash-heading h2{font-size:24px}.cash-product-results{grid-template-columns:1fr;max-height:240px}.cash-line{padding:12px}.cash-line-fields{grid-template-columns:1fr 1fr;gap:10px}.cash-paper{padding:16px 12px}.cash-paper-head h2{font-size:22px}.cash-paper-meta{gap:15px}.cash-filter{grid-template-columns:1fr 1fr}.cash-filter label:nth-child(3){grid-column:1/-1}.cash-filter button{grid-column:1/-1}.cash-history-list .cash-history-open{align-items:flex-start;flex-direction:column}.cash-bottom{bottom:8px;padding:12px}.cash-bottom strong{font-size:22px}.cash-review-actions button{flex:1 1 40%}.cash-summary{gap:18px;flex-wrap:wrap}.cash-summary b{font-size:21px}}

/* Complete, image-led catalogue with stable rows while adding items. */
.cash-product-count{margin:0;color:#617186;font-size:13px;line-height:1.4}
.cash-product-results{max-height:min(52dvh,520px);align-content:start;scrollbar-gutter:stable;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;touch-action:pan-y;overflow-anchor:none}
.cash-product-results button{min-height:96px;content-visibility:auto;contain-intrinsic-size:auto 96px}
.cash-product-results button>img{width:64px;height:64px;flex:0 0 64px;object-fit:contain;border-radius:9px;background:#f5f7f9}
.cash-product-results button>span{flex:1;min-width:0;overflow-wrap:anywhere}
.cash-product-results button>b{min-width:52px;text-align:center;flex-shrink:0}
.cash-product-results button.cash-added{background:#edf7f0;border-color:#91bda0}
.cash-back{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin:0 0 16px;padding:10px 15px;border:1px solid #cfd9e1;border-radius:10px;background:#fff;color:#193750;font:inherit;font-size:15px;font-weight:700;cursor:pointer}
.cash-back span{font-size:26px;line-height:20px}
@media(max-width:650px){.cash-product-results{max-height:min(50dvh,430px)}.cash-product-results button{padding:10px}.cash-product-results button>img{width:58px;height:58px;flex-basis:58px}}
@media(prefers-reduced-motion:reduce){.cash-product-results{scroll-behavior:auto}}
.cash-report-title h3{font-size:25px;margin:0 0 6px}.cash-report-title p{font-size:14px;color:#63748a;margin:0 0 20px}.cash-report-filter{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-bottom:20px}.cash-report-filter label{flex:1;min-width:145px}.cash-report-filter button,.cash-report-transactions button,[data-cash-report-retry]{min-height:44px;border:1px solid #cfd9e1;border-radius:10px;padding:10px 15px;font:inherit;font-weight:700;color:#193750;background:#fff;cursor:pointer}.cash-report-filter [hidden]{display:none!important}.cash-report-picker{border:1px solid #dce3e9;border-radius:14px;background:#fff;padding:0 16px;margin-bottom:20px}.cash-report-picker summary{padding:15px 0;font-weight:700;cursor:pointer;min-height:44px;box-sizing:border-box}.cash-report-picker label{margin-bottom:12px}.cash-report-picker .cash-product-results{margin-bottom:16px}.cash-report-picker .cash-product-results b{max-width:58px;font-size:12px}.cash-report-selected{display:flex;align-items:center;gap:16px;margin:20px 0}.cash-report-selected img{object-fit:contain;background:#fff;border-radius:12px}.cash-report-selected h3{margin:0 0 5px;font-size:22px}.cash-report-selected p{margin:0;font-size:14px;color:#63748a}.cash-report-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:24px}.cash-report-metrics>div{padding:18px;background:#eef3f7;border-radius:13px}.cash-report-metrics small{display:block;color:#607086;font-size:13px}.cash-report-metrics strong{display:block;font-size:24px;margin-top:8px;overflow-wrap:anywhere}.cash-report-metrics span{display:block;font-size:16px;margin-top:5px}.cash-report-section{margin:22px 0}.cash-report-section h3{font-size:20px;margin:0 0 12px}.cash-report-section table{width:100%;background:#fff;border-collapse:collapse;font-size:15px}.cash-report-section td,.cash-report-section th{padding:13px 12px;border-bottom:1px solid #e0e6eb;text-align:left;white-space:nowrap}.cash-report-section th{background:#eef3f7;font-size:13px}.cash-report-transactions{display:grid;gap:12px}.cash-report-transactions article{background:#fff;border:1px solid #dce3e9;border-radius:14px;padding:16px}.cash-report-sale-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:16px}.cash-report-sale-head strong,.cash-report-sale-head small{display:block}.cash-report-sale-head time{font-size:13px;color:#61748a}.cash-report-sale-head strong{margin:6px 0;font-size:16px}.cash-report-sale-head small{font-size:12px;color:#61748a}.cash-report-sale-head button{font-size:13px;flex-shrink:0}.cash-report-sale-values{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding-top:12px;border-top:1px solid #edf0f3}.cash-report-sale-values small{display:block;font-size:12px;color:#61748a;margin-bottom:5px}.cash-report-sale-values b{font-size:16px;overflow-wrap:anywhere}
@media(max-width:650px){.cash-report-metrics{grid-template-columns:1fr 1fr}.cash-report-metrics>div:last-child{grid-column:1/-1}.cash-report-metrics strong{font-size:22px}.cash-report-sale-head{align-items:flex-start;flex-direction:column}.cash-report-filter button{width:100%}.cash-report-selected h3{font-size:20px}.cash-report-sale-values{gap:8px}.cash-report-sale-values b{font-size:14px}}

/* Guided item entry: preserve the existing billing layout. */
.cash-line{scroll-margin-block:110px}.cash-next-item{margin-top:16px;width:100%;min-height:48px;background:#edf5fa!important;color:#142e4e!important;border:1px solid #bdd0df!important;font-weight:700}.cash-next-item:active{transform:scale(.98)}.cash-product-results button.cash-added:disabled{opacity:1;background:#eef7f2;border-color:#9fcab4;cursor:default}.cash-product-results button.cash-added b{color:#246247}.cash-line:focus-within{border-color:#527b9f;box-shadow:0 0 0 2px #527b9f22}

.cash-order-source{padding:14px;border:1px solid #cfd9e1;border-radius:12px;background:#f6f8fa}.cash-customer-details{display:flex;flex-wrap:wrap;gap:12px 24px}.cash-customer-details p{margin:6px 0;overflow-wrap:anywhere}.cash-customer-details small{display:block;color:#63748a;font-size:12px;margin-bottom:4px}.cash-order-source .cash-note{margin:8px 0 0}

.cash-history-row{display:grid;grid-template-columns:30px minmax(0,1fr);gap:10px;align-items:center}.cash-history-row>input[data-cash-select]{width:24px!important;height:24px;min-height:24px!important;padding:0!important;margin:0;justify-self:center;accent-color:#193750;cursor:pointer}.cash-selection-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 16px;padding:14px;border:1px solid #cfd9e1;border-radius:12px;background:#f6f8fa}.cash-selection-bar[hidden]{display:none}.cash-selection-bar button{min-height:44px;padding:10px 14px;border:1px solid #cfd9e1;border-radius:10px;background:#fff;color:#193750;font:inherit;font-weight:700;cursor:pointer}.cash-selection-bar>span{font-weight:700}.cash-selection-bar small{flex-basis:100%;color:#63748a;line-height:1.4}.cash-delete-button{color:#9b2424!important;border-color:#d7a4a4!important}

/* Date-first estimate browsing. */
.cash-today{margin-top:32px;padding-top:24px;border-top:1px solid #cfd9e1}.cash-today h3,.cash-history-picker h3{margin:0 0 8px;font-size:21px}.cash-calendar{width:100%;max-width:420px;margin:20px 0;border:1px solid #cfd9e1;border-radius:14px;padding:14px;background:#fff;box-sizing:border-box}.cash-calendar-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.cash-calendar-heading button,.cash-calendar-grid button{min-width:0;min-height:44px;border:1px solid #dce3e9;border-radius:9px;background:#fff;color:#193750;font:inherit;font-weight:700;cursor:pointer}.cash-calendar-heading button{width:44px;font-size:24px}.cash-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;text-align:center}.cash-calendar-grid small{font-size:11px;padding:5px 0;color:#63748a}.cash-calendar-grid button[aria-current="date"]{background:#193750;color:#fff;border-color:#193750}.cash-calendar-grid button:hover{background:#edf5fa;color:#193750}.cash-calendar button:focus-visible{outline:3px solid #527b9f;outline-offset:2px}.cash-history-picker .cash-filter{max-width:520px}.cash-today .cash-history-open{width:100%}
