*{box-sizing:border-box}body{margin:0;background:#f3f5ef;color:#22372b;font:15px/1.5 system-ui,sans-serif}header{background:#183d2b;color:white;display:flex;align-items:center;gap:24px;padding:20px 4%;}.brand{font-size:20px;letter-spacing:3px;font-weight:750;color:white;text-decoration:none}.brand span{display:block;font-size:10px;letter-spacing:5px}.tag{font-size:11px;letter-spacing:2px;color:#cbd9c8}header button{margin-left:auto}main{max-width:1480px;margin:36px auto;padding:0 28px}h1{font-size:clamp(26px,3vw,38px);letter-spacing:-1px;margin:0}h2{font-size:22px;margin:0 0 12px}h3{font-size:17px}.heading,.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.heading>div>p:last-child{color:#667265;margin-top:7px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:750;color:#7d806b;margin:0 0 8px}.panel{background:white;border:1px solid #dee5d8;border-radius:12px;padding:24px;box-shadow:0 3px 14px #20352105}#login{max-width:540px;margin:30px auto}label{display:block;font-size:12px;font-weight:650;margin:0 0 14px}input,select,textarea{display:block;width:100%;margin-top:6px;padding:11px 12px;border:1px solid #cbd5c6;border-radius:6px;font:14px system-ui;color:#22372b;background:white}input[readonly]{background:#f4f6f1;color:#697365}button{font:600 13px system-ui;padding:11px 16px;border:1px solid #cbd5c6;border-radius:6px;background:#fff;color:#294b35;cursor:pointer}button:disabled{opacity:.45;cursor:default}.primary{background:#254b36;color:white;border-color:#254b36}a{color:#2b6040}.filters{padding:18px 24px;margin:22px 0}.filters form{display:flex;gap:16px;align-items:flex-end}.filters label{margin:0}.filters label:first-child{flex:1}.check{display:flex;align-items:center;gap:7px;padding-bottom:12px}.check input{width:auto;margin:0}.work-grid{display:grid;grid-template-columns:355px minmax(0,1fr);gap:22px}.order-list{padding:20px 14px}.order-list .section-head{padding:0 8px}.order-card{display:block;text-align:left;width:100%;padding:16px;margin:8px 0;background:#fafbf8}.order-card.active{outline:2px solid #22372b;outline-offset:2px;box-shadow:0 0 0 3px #fff}.order-card strong,.order-card span{display:block}.order-card .name{font-size:16px;margin:6px 0}.badge{display:inline-block!important;background:#e8eddf;padding:4px 8px;border-radius:20px;font-size:11px;margin:6px 0}.muted,#updated{color:#72796c;font-size:12px}.two{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.progress{display:flex;flex-wrap:wrap;gap:6px;margin:16px 0 24px}.progress span{padding:5px 9px;border-radius:18px;background:#f1f3ed;color:#828978;font-size:10px}.progress .done{background:#e2ecd9;color:#305738}.progress .current{background:#294f38;color:white}.item{display:grid;grid-template-columns:1fr 76px 70px;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #e8ece2}.item p{margin:0}.item input{margin:0}.item small{color:#757d6e;display:block}.item button{padding:8px}.add-row{display:flex;align-items:end;gap:12px;margin:18px 0 0}.add-row label{flex:1;margin:0}.actions,.documents{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.documents a{padding:10px 12px;border:1px solid #d3dec9;border-radius:6px;font-size:12px;text-decoration:none}.pagination{display:flex;align-items:center;justify-content:space-between;margin-top:18px;font-size:12px}.pagination button{font-size:11px;padding:8px}#notice:not(:empty){padding:14px 18px;border-radius:8px;background:#e3eddc}#notice.error{background:#fff0e7;color:#8a3a21}details{border-top:1px solid #e2e8dc;padding-top:18px;font-size:13px}summary{cursor:pointer;font-weight:650}footer{text-align:center;font-size:12px;color:#737e6a;padding:30px}[hidden]{display:none!important}:focus-visible{outline:3px solid #abbf68;outline-offset:2px}@media(max-width:1000px){.work-grid{grid-template-columns:280px minmax(0,1fr)}main{padding:0 16px}.panel{padding:18px}.filters form{flex-wrap:wrap}}@media(max-width:760px){.work-grid{grid-template-columns:1fr}.two{grid-template-columns:1fr}.heading{display:block}.tag{display:none}.filters form{display:block}.filters label,.filters button{margin-bottom:12px}.check{padding:10px 0}.order-list{max-height:450px;overflow:auto}.section-head{align-items:flex-start}.item{grid-template-columns:1fr 65px 65px}.brand{font-size:16px}header{padding:16px}.actions button{flex:1}.documents a{flex:1}#updated{max-width:110px}}

/* Order operations search and long date/name identifiers. */
#search-form{display:grid;grid-template-columns:minmax(0,1fr) 220px auto;gap:16px;align-items:end}
#search-form>label:first-child{grid-column:1/-1;font-size:14px}
#search{min-height:52px;font-size:17px;padding:14px 16px}
#search-form>.check{justify-self:end;padding-bottom:12px}
#search-form>button{min-height:44px;min-width:110px}
.order-card strong,#reference{overflow-wrap:anywhere;word-break:normal}
.item{grid-template-columns:64px minmax(0,1fr) 76px 70px}.product-thumb{width:64px;height:64px;object-fit:contain;border:1px solid #e2e8dc;border-radius:8px;background:#fff;display:block}.product-match{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:14px;align-items:center;padding:12px 0;border-bottom:1px solid #e8ece2}.product-match strong,.product-match small,.product-match span{display:block}.product-match small{color:#657360;font-size:12px;margin:4px 0}.product-preview{display:flex;align-items:center;gap:14px;margin-top:12px}.product-preview:empty{display:none}
@media(max-width:760px){#search-form{grid-template-columns:minmax(0,1fr) auto}#search-form>.check{grid-column:1/-1;justify-self:start}#search-form>label:first-child{width:100%}#search{font-size:16px}#search-form label,#search-form button{margin-bottom:0}}
@media(max-width:500px){.item{grid-template-columns:52px minmax(0,1fr) 60px}.item .product-thumb{width:52px;height:52px}.item>button{grid-column:2/-1;justify-self:end}.product-match{grid-template-columns:52px minmax(0,1fr) auto}.product-match .product-thumb{width:52px;height:52px}}

.discount-panel{margin:20px 0;padding:18px;border:1px solid #cddacf;border-radius:12px;background:#f3f7f0}.discount-panel legend{font-weight:700;padding:0 7px}.discount-panel small{display:block;color:#59685c;font-size:12px;margin-top:5px}#discount-preview{font-weight:600;line-height:1.6;margin-bottom:0}

.prescription-panel{margin:22px 0;padding:18px;border:1px solid #b9cab7;border-left:4px solid #254b36;border-radius:10px;background:#f3f7ef}.prescription-panel h3{margin-top:0}.prescription-actions{display:flex;flex-wrap:wrap;gap:10px}.prescription-actions a{display:inline-block;padding:10px 16px;border:1px solid #254b36;border-radius:6px;background:white;color:#254b36;font-weight:600;text-decoration:none}.prescription-actions a[hidden]{display:none}.rx-badge{background:#e8f0dc;color:#254b36}

.round-off-panel{margin:20px 0;padding:20px;border:2px solid #d4ae55;border-radius:12px;background:#fff9e9}.round-off-panel.applied{border-color:#2d7750;background:#edf8f0}.round-off-panel label{display:flex;align-items:center;gap:14px;font-size:16px;cursor:pointer;margin-bottom:10px}.round-off-panel input{flex:0 0 24px;width:24px;height:24px;accent-color:#254b36;margin:0}.round-off-panel small{display:block;font-size:12px;margin-top:4px;color:#666a5c}.round-off-panel p{font-size:13px;margin:8px 0 0}.round-off-panel #round-off-preview{font-size:15px;font-weight:750;line-height:1.6}

/* Mobile workflow audit: readable touch controls and containment. */
@media(max-width:760px){input,select,textarea{font-size:16px!important;min-height:44px}button,.documents a{min-height:44px}main,.panel,.nv-wrap,.nv-fields>div{min-width:0}#who,#reference,.order-card strong{overflow-wrap:anywhere}#edit-form{scroll-margin-top:16px}.actions{gap:10px}.actions .primary{flex-basis:100%}.documents a{text-align:center}#nv-search-input,#product-search{font-size:17px!important;min-height:50px}}

/* Bill totals use the same delivery-inclusive basis; savings remain easy to scan. */
#discount-preview .team-bill-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:8px 0;padding:12px 14px;background:#fff;border:1px solid #d9e3d3;border-radius:8px;font-size:14px}
#discount-preview .team-bill-row strong{font-size:18px;white-space:nowrap;text-align:right}
#discount-preview .team-bill-after{border-color:#8caf91;background:#f6fbf4}
#discount-preview .team-bill-saving{background:#205c39;color:#fff;border-color:#205c39;font-size:16px;font-weight:800;box-shadow:0 3px 10px #205c3918}
#discount-preview .team-bill-saving strong{font-size:25px}
#discount-preview .team-bill-note{display:block;font-size:12px;font-weight:400;line-height:1.5;color:#536851;margin-top:7px}
#total{font-weight:700;text-align:right;overflow-wrap:anywhere}
@media(max-width:500px){#discount-preview .team-bill-row{align-items:flex-start;gap:8px;padding:11px}#discount-preview .team-bill-row>span{max-width:60%}#discount-preview .team-bill-row strong{font-size:17px}#discount-preview .team-bill-saving strong{font-size:23px}#total{font-size:13px}}

/* Team-only supporting photos remain usable on a small phone screen. */
.team-photo-panel{padding:16px;margin:16px 0 22px;border:1px solid #d9e2d2;border-radius:9px;background:#fafcf7}
.team-photo-panel h3{margin:0 0 8px}.team-photo-panel>.muted{margin:0 0 12px;line-height:1.6}
.team-photo-actions{display:flex;gap:8px;flex-wrap:wrap}.team-photo-actions button{min-height:44px}
.team-photo-status{font-size:13px;margin:10px 0}.team-photo-status.error{color:#963e20}
.team-photo-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:12px;margin-top:12px}
.team-photo-card{min-width:0;padding:10px;border:1px solid #dce5d5;border-radius:7px;background:white}
.team-photo-card img{width:100%;height:128px;object-fit:contain;background:#f1f5ed;border-radius:4px;display:block}
.team-photo-card p{font-size:12px;overflow-wrap:anywhere;margin:8px 0}.team-photo-card small{display:block;color:#626f5d;font-size:11px;line-height:1.5}
.team-photo-card a{display:inline-block;margin:6px 8px 0 0;font-size:12px;min-height:32px;padding-top:5px}
@media(max-width:420px){.team-photo-panel{padding:12px}.team-photo-actions button{flex:1 1 120px}.team-photo-list{grid-template-columns:repeat(2,minmax(0,1fr))}.team-photo-card img{height:105px}}

.city-field{min-width:0}.city-field label{margin:0}.city-field p{margin:8px 0;font-size:.82rem;line-height:1.5}.city-field button{font-size:.8rem;padding:7px 10px}.city-field input{width:100%}

/* Status text accompanies every color; selecting an order keeps its status tint. */
.status-pending{--status-stripe:#d1251b;--status-tint:#fff0e7;--status-badge:#ffe1d9;--status-text:#9b2118}
.status-paid{--status-stripe:#187343;--status-tint:#effaf2;--status-badge:#d6f0de;--status-text:#155f36}
.status-dispatched{--status-stripe:#2368b5;--status-tint:#eef6ff;--status-badge:#dcecff;--status-text:#164f91}
.status-delivered{--status-stripe:#4c28a8;--status-tint:#e9e5ff;--status-badge:#4c28a8;--status-text:#ffffff}
.status-neutral{--status-stripe:#717780;--status-tint:#f5f6f7;--status-badge:#e7eaec;--status-text:#4e555b}
.order-card{border-left:5px solid var(--status-stripe,#717780);background:var(--status-tint,#fafbf8)}
.order-card .status-badge,.order-status-summary .status-badge{background:var(--status-badge);color:var(--status-text);font-size:12px;font-weight:750;line-height:1.5;max-width:100%;white-space:normal;overflow-wrap:anywhere;margin:5px 5px 0 0}
.order-card .payment-pending-badge,.order-status-summary .payment-pending-badge{border:1px solid var(--status-stripe)}
.status-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;padding:10px 8px;margin:0 0 12px;list-style:none;font-size:11px;line-height:1.4;color:#4c5d50}
.status-legend li{display:flex;align-items:center;gap:7px;min-width:0}.status-legend li::before{content:'';width:10px;height:10px;border-radius:50%;background:var(--status-stripe);flex:0 0 10px}
.order-status-summary{display:flex;flex-wrap:wrap;gap:2px;margin:10px 0}
.progress .done{background:#edf0eb;color:#5c695d}.progress .current{background:var(--status-stripe,#717780);color:#fff}
.payment-method-field{min-width:0}.payment-method-field label{margin-bottom:0}.payment-method-field p{margin:8px 0 14px;line-height:1.5}

.order-card .muted{color:#596452}

.status-badge.status-pending::before{content:'! ';font-weight:900}.status-badge.status-delivered::before{content:'✓ ';font-weight:900}
.payment-method-error{color:#9b2118;font-weight:700}.payment-method-field select[aria-invalid="true"]{border:2px solid #d1251b;outline-color:#d1251b}
.order-card .payment-method-required-badge,.order-status-summary .payment-method-required-badge{border:1px solid var(--status-stripe)}

.payment-split{grid-column:1/-1;margin:4px 0 12px;padding:14px;border:1px solid #96a9b8;border-radius:10px;background:#f4f8fb;min-width:0}.payment-split[hidden]{display:none}.payment-split legend{font-weight:700;padding:0 6px}.payment-split-total{font-weight:700}.payment-split p{margin:4px 0 10px}.payment-split input[aria-invalid="true"]{border-color:#a33712}

/* Separate desktop order browsing from the selected order's editable fields.
   The page remains scrollable for filters, owner tools and short/zoomed windows.
   team.js may set --team-workspace-height after measuring the available space. */
.round-off-panel label[for="rounding-mode"],.round-off-panel label:has(#rounding-mode){display:block;cursor:auto}
.round-off-panel #rounding-mode{display:block;width:100%;min-width:0;min-height:44px;margin-top:8px;font-size:16px}
@media (min-width:761px){
 body:has(#workspace:not([hidden]))>header{padding-block:12px}
 body:has(#workspace:not([hidden]))>main{margin-block:18px}
 body:has(#workspace:not([hidden])) .heading h1{font-size:30px;line-height:1.2}
 body:has(#workspace:not([hidden])) .heading p{margin-block:6px}
 body:has(#workspace:not([hidden])) .heading .eyebrow{margin-top:0}
 #workspace>.filters{margin-block:16px;padding:12px 18px}
 #search-form{grid-template-columns:minmax(200px,1fr) minmax(140px,160px) minmax(150px,200px) auto auto;gap:12px}
 #search-form:not(:has(#order-type-filter)){grid-template-columns:minmax(200px,1fr) minmax(140px,200px) auto auto}
 #search-form>label:first-child{grid-column:auto}
 #search-form>label{min-width:0;margin-bottom:0}
 #search-form>.check{padding-bottom:0;min-height:46px;align-self:end}
 #search{min-height:46px;font-size:16px;padding:11px 12px}
 .work-grid{height:max(20rem,var(--team-workspace-height,calc(100dvh - 26rem)));min-height:0;align-items:stretch}
 .work-grid>.order-list,.work-grid>#detail{min-width:0;min-height:0}
 .work-grid>.order-list{display:flex;flex-direction:column;overflow:hidden}
 .order-list>.section-head,.order-list>.status-legend,.order-list>.pagination{flex:0 0 auto}
 .order-list>#orders{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-gutter:stable;padding:4px 8px 8px;margin:0 -6px;scroll-padding-block:8px}
 .order-list>#orders>.order-card{scroll-margin-block:8px}
 .order-list>.pagination{gap:8px;margin-top:12px}
 #detail{--order-pane-padding:24px;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-gutter:stable;scroll-padding-top:7rem;scroll-padding-bottom:24px}
 #detail>#edit-form{min-width:0}
 #edit-form>.section-head:first-child{position:sticky;top:calc(-1 * var(--order-pane-padding));z-index:3;margin:calc(-1 * var(--order-pane-padding)) calc(-1 * var(--order-pane-padding)) 14px;padding:16px var(--order-pane-padding);background:#fff;border-bottom:1px solid #dee5d8;box-shadow:0 3px 6px #22372b08}
 #edit-form>.section-head:first-child>div{min-width:0}
 #edit-form>.section-head:first-child #reference{margin-bottom:0}
 #detail :is(input,select,textarea,button,a,summary){scroll-margin-block:7rem 24px}
 #orders:focus-visible,#detail:focus-visible{outline-offset:-3px}
 #detail .two>*{min-width:0}
}
@media (min-width:761px) and (max-width:1000px){
 #search-form,#search-form:not(:has(#order-type-filter)){grid-template-columns:minmax(120px,1fr) minmax(140px,1fr) auto auto;gap:10px}
 #search-form>label:first-child{grid-column:1/-1}
 #search-form>.check{grid-column:auto;min-height:46px;margin:0}
 #detail{--order-pane-padding:18px}
 .order-list>.pagination{gap:4px}
 .order-list>.pagination button{padding:9px 10px}
}
@media print{
 .work-grid{height:auto;display:block}
 .work-grid>.order-list,.work-grid>#detail,.order-list>#orders{height:auto;max-height:none;overflow:visible}
 #edit-form>.section-head:first-child{position:static}
}

#detail-notice:not(:empty){padding:12px 14px;border-radius:8px;background:#e3eddc;font-size:13px;line-height:1.5}#detail-notice.error{background:#fff0e7;color:#8a3a21}
#discount-preview .team-bill-adjustment{background:#fff9e9;border-color:#d4ae55}

@media(max-width:760px){#search-form{grid-template-columns:minmax(0,1fr)}#search-form>label:first-child,#search-form>.check{grid-column:auto}#search-form>button{width:100%}}
.closing-panel button{min-height:44px}
.closing-evidence{margin:18px 0;padding:16px;border:2px solid #7b5b28;border-radius:12px;background:#fffaf0}.closing-evidence h3{margin-top:0}.closing-upload-label{display:block;font-size:12px;font-weight:650;margin-bottom:6px}.closing-photo-actions{display:flex;gap:10px;flex-wrap:wrap}.closing-photo-actions button{flex:1 1 150px}.closing-evidence-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;margin-top:12px}.closing-evidence-card{display:grid;grid-template-columns:84px minmax(0,1fr);gap:10px;align-items:center;border:1px solid #d8cba8;border-radius:10px;padding:9px;background:#fff}.closing-evidence-card img{width:84px;height:84px;object-fit:cover;border-radius:7px;background:#eee}.closing-evidence-card strong,.closing-evidence-card small,.closing-evidence-card a{display:block;overflow-wrap:anywhere}.closing-evidence-card small{margin:4px 0;color:#687066}#closing-evidence-status{padding:10px;border-radius:8px}#closing-evidence-status:empty{display:none}#closing-evidence-status.success{background:#e8f5e7;color:#25452b}#closing-evidence-status.error{background:#ffe8e6;color:#8a211b}@media(max-width:500px){.closing-evidence{padding:12px}.closing-evidence-list{grid-template-columns:1fr}.closing-evidence-card{grid-template-columns:72px minmax(0,1fr)}.closing-evidence-card img{width:72px;height:72px}}

.mobile-orders-rail,.mobile-orders-toolbar,.mobile-order-back{display:none}
body:has(#workspace[hidden]) .mobile-orders-rail{display:none!important}
@media(max-width:760px){
 body:has(#workspace:not([hidden])){padding-left:64px}
 body:has(#workspace:not([hidden]))>header{position:sticky;top:0;z-index:38;padding:14px 12px;min-height:64px}
 body:has(#workspace:not([hidden]))>main{margin:16px auto;padding:0 12px}
 body:has(#workspace:not([hidden]))>footer{padding-inline:12px}
 body:has(#workspace:not([hidden])) .heading h1{font-size:28px;line-height:1.1}
 body:has(#workspace:not([hidden])) .filters{margin:14px 0;padding:14px}
 .mobile-orders-rail{position:fixed;display:flex;left:0;top:0;bottom:0;z-index:45;width:64px;min-height:100dvh;padding:12px 8px;border:0;border-radius:0;background:#183d2b;color:#fff;align-items:center;justify-content:center;flex-direction:column;gap:14px;box-shadow:4px 0 18px #102b1e30}
 .mobile-orders-rail span{font-size:17px;line-height:1;font-weight:800;letter-spacing:.03em;writing-mode:vertical-rl;transform:rotate(180deg)}
 .mobile-orders-rail strong{display:grid;place-items:center;min-width:40px;min-height:40px;padding:4px;border-radius:999px;background:#fff;color:#183d2b;font-size:15px}
 .mobile-orders-rail[aria-expanded="true"]{background:#b9cc6a;color:#183d2b}.mobile-orders-rail[aria-expanded="true"] strong{background:#183d2b;color:#fff}
 .mobile-orders-toolbar{display:flex;position:sticky;top:0;z-index:3;align-items:center;justify-content:space-between;gap:10px;margin:-14px -14px 12px;padding:12px 14px;background:#183d2b;color:#fff;box-shadow:0 3px 8px #102b1e28}
 .mobile-orders-toolbar div{min-width:0}.mobile-orders-toolbar strong,.mobile-orders-toolbar span{display:block}.mobile-orders-toolbar strong{font-size:22px}.mobile-orders-toolbar span{font-size:12px;color:#dbe8df}
 .mobile-orders-toolbar button{flex:0 0 auto;min-height:44px;padding:9px 11px;border-color:#fff;background:#fff;color:#183d2b}
 .mobile-order-back{display:flex;position:sticky;top:64px;z-index:8;width:calc(100% + 28px);min-height:52px;margin:-14px -14px 16px;padding:11px 14px;border:0;border-radius:0;background:#e6eed1;color:#183d2b;align-items:center;gap:6px;justify-content:flex-start;font-size:17px;box-shadow:0 3px 8px #102b1e18}
 .mobile-order-back strong{display:inline-grid;place-items:center;min-width:34px;min-height:30px;margin-left:4px;padding:2px 7px;border-radius:999px;background:#183d2b;color:#fff;font-size:13px}
 .work-grid{display:block;height:auto}.work-grid>#detail{min-width:0;padding:14px}.work-grid>.order-list{display:none}
 body.mobile-orders-open{overflow:hidden}
 body.mobile-orders-open .work-grid>.order-list{position:fixed;display:flex;inset:0 0 0 64px;z-index:44;width:auto;height:100dvh;max-height:none;margin:0;padding:14px;border:0;border-radius:0;overflow:hidden;flex-direction:column;background:#f7f9f3;box-shadow:none}
 body.mobile-orders-open .order-list>.section-head,body.mobile-orders-open .order-list>.status-legend,body.mobile-orders-open .order-list>.pagination{flex:0 0 auto}
 body.mobile-orders-open .order-list>#orders{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain;padding:4px 3px 28px}
 body.mobile-orders-open .order-card{min-height:108px;padding:16px 14px;margin:10px 0;border:1px solid #c9d3c4;border-left-width:8px;font-size:15px}
 body.mobile-orders-open .order-card .name{font-size:18px}.order-list .section-head h2{font-size:24px}
 #detail input,#detail select,#detail textarea{min-height:48px;font-size:16px}#detail textarea{min-height:86px}
 #detail button,#detail a{min-height:44px}.actions{display:grid;grid-template-columns:1fr}.actions button{width:100%}
 .closing-evidence{padding:14px}.closing-photo-actions{display:grid;grid-template-columns:1fr}.closing-photo-actions button{width:100%}
}

/* Desktop Orders follow-up: primary navigation stays visible at all times. */
.team-task-nav{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0;position:sticky;top:0;z-index:12;background:#f7f9f3;padding:12px;border:2px solid #b9cc6a;border-radius:12px}.team-task-nav button{font-size:18px;font-weight:750;min-height:52px;padding:12px 20px;background:#183d2b;color:#fff}.mobile-orders-rail small{font-size:13px;line-height:1.3}.mobile-orders-open .mobile-orders-toolbar{display:flex}
@media(min-width:761px){
 body:has(#workspace:not([hidden])){--orders-sidebar:360px;padding-left:calc(var(--orders-sidebar) + 32px)}
 body:has(#workspace:not([hidden]))>main{width:auto;max-width:none;margin:18px 20px;padding:0}
 body:has(#workspace:not([hidden]))>header{padding-inline:20px}
 .mobile-orders-rail{display:flex;position:fixed;top:12px;left:12px;width:var(--orders-sidebar);height:72px;align-items:center;justify-content:space-around;background:#183d2b;color:white;z-index:45;border:0;border-radius:12px;font-size:24px;font-weight:800}
 .mobile-orders-rail strong{font-size:25px;background:#b9cc6a;color:#183d2b;border-radius:99px;padding:8px 14px}.mobile-orders-rail small{max-width:90px;font-size:16px}
 .work-grid{display:block;height:auto}.work-grid>.order-list{position:fixed;left:12px;top:96px;bottom:12px;width:var(--orders-sidebar);height:auto;display:flex;flex-direction:column;overflow:hidden;padding:18px;z-index:30;background:#f7f9f3}
 .order-list .section-head h2{font-size:28px}.order-list .status-legend{font-size:14px}.order-list .order-card{font-size:17px;line-height:1.5;padding:18px 14px;min-height:120px}.order-list .order-card .name{font-size:21px}.order-card .status-badge{font-size:14px}.order-list .pagination button{font-size:16px;min-height:48px}
 #detail{overflow:visible;max-height:none}body.mobile-orders-open{overflow:hidden}
 body.mobile-orders-open .work-grid>.order-list{inset:12px;z-index:60;width:auto;height:calc(100dvh - 24px);border:2px solid #183d2b;border-radius:14px;padding:22px}
 .mobile-orders-toolbar{align-items:center;justify-content:space-between;gap:18px;background:#183d2b;color:white;padding:16px;margin:-22px -22px 18px}.mobile-orders-toolbar strong{display:block;font-size:30px}.mobile-orders-toolbar span{font-size:16px}.mobile-orders-toolbar button{min-height:50px;background:white;color:#183d2b;font-size:18px}
 body.mobile-orders-open #orders{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));align-content:start;gap:12px}body.mobile-orders-open .order-card{margin:0}
}
@media(min-width:761px) and (max-width:1100px){body:has(#workspace:not([hidden])){--orders-sidebar:300px}.two{grid-template-columns:1fr}.team-task-nav button{flex:1 1 170px}}
@media(max-width:760px){.mobile-orders-rail small{display:none}.team-task-nav{position:static;display:grid;grid-template-columns:1fr}.team-task-nav button{font-size:17px}}
@media(min-width:761px){body.mobile-orders-open #orders{grid-auto-rows:max-content}.order-list .order-card{min-height:180px;height:auto}.order-list .order-card .muted{font-size:15px}}

/* Search stays inside the order browser in sidebar and expanded views. */
.orders-inline-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;flex:0 0 auto;margin:8px 0 12px}
.orders-inline-search label{grid-column:1/-1;font-size:16px;font-weight:700;margin:0}
.orders-inline-search input{width:100%;min-width:0;min-height:46px;font-size:16px;margin-top:5px}
.orders-inline-search button{min-height:44px;font-size:16px;padding:8px 14px}
.order-list>#orders{min-height:0;flex:1 1 auto;overflow-y:auto}
@media(min-width:761px){body.mobile-orders-open .orders-inline-search{grid-template-columns:minmax(0,1fr) auto auto;align-items:end}body.mobile-orders-open .orders-inline-search label{grid-column:auto}}
@media(max-height:650px){.mobile-orders-open .mobile-orders-toolbar span{display:none}.mobile-orders-open .order-list>.status-legend{display:none}}

/* Two independently searchable, scrollable payment queues. */
.payment-queues{display:flex;flex-direction:column;gap:16px;min-height:0;flex:1;overflow-y:auto}
.payment-queue{display:flex;flex-direction:column;min-height:330px;flex:1 0 370px;border:1px solid #b5cbbd;border-radius:10px;padding:10px;min-width:0}
.payment-queue h3{font-size:18px;margin:0 0 4px;line-height:1.4}
.payment-queue .orders-inline-search{margin:4px 0 8px}
.payment-queue #orders,.payment-queue #unpaid-orders{display:block;min-height:110px;height:190px;flex:1;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.payment-queue .pagination{flex:none;gap:5px;flex-wrap:wrap;margin-top:6px}
.payment-queue .pagination button{padding:7px 9px;min-height:40px}
.unpaid-queue{border-color:#b94e4e;background:#fff6f5}.unpaid-queue h3{color:#9d2424}
.unpaid-queue .order-card{border-color:#b94e4e;background:#fff1f0;color:#8c2020}
.queue-payment-time,.queue-payment-info{display:block;font-size:13px;overflow-wrap:anywhere;line-height:1.45}
.payment-queue .order-card strong{overflow-wrap:anywhere}
body.mobile-orders-open .payment-queues{display:grid;grid-template-columns:1fr 1fr;overflow:hidden}
body.mobile-orders-open .payment-queue{min-height:0;height:100%;overflow:hidden}
body.mobile-orders-open .payment-queue #orders,body.mobile-orders-open .payment-queue #unpaid-orders{display:block;height:100%;overflow-y:auto}
@media(max-width:760px){body.mobile-orders-open .payment-queues{display:flex;overflow-y:auto}body.mobile-orders-open .payment-queue{min-height:360px;flex:0 0 420px;height:420px}.payment-queue .orders-inline-search{grid-template-columns:1fr auto}.payment-queue .orders-inline-search label{grid-column:1/-1}}

.medicine-discount{margin:0 0 18px;border:1px solid #328168;background:#f1faf6;padding:14px;min-width:0}.medicine-discount legend{font-weight:700}.medicine-discount-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.medicine-discount-options .check{display:flex;gap:8px;align-items:flex-start;font-size:14px}.medicine-discount-options input{flex:0 0 auto;width:18px;height:18px;margin-top:2px}.medicine-discount-status{font-weight:700;overflow-wrap:anywhere}@media(max-width:600px){.medicine-discount-options{grid-template-columns:1fr}}

.medicine-discount{padding:20px;border:2px solid #328168}.medicine-discount legend{font-size:20px;line-height:1.4;padding:0 6px}.medicine-discount-options{gap:12px}.medicine-discount-options .check{font-size:18px;line-height:1.45;min-height:48px;padding:10px;background:#fff;border:1px solid #c7dcd1;border-radius:8px;cursor:pointer}.medicine-discount-options input{width:24px;height:24px;margin:2px 4px 0 0;accent-color:#175b42}.medicine-discount-status{font-size:18px;line-height:1.5}.medicine-discount .discount-clear{font-size:16px;min-height:44px;margin-top:12px}.medicine-discount .discount-saved-note{font-size:16px}@media(max-width:600px){.medicine-discount{padding:14px}.medicine-discount-options .check{font-size:18px}}

.ordinary-discounts{border:2px solid #328168;background:#f0f9f5;padding:20px}.ordinary-discounts legend{font-size:20px;font-weight:700}.ordinary-discount-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:14px}.ordinary-discount-options .check{display:flex;align-items:center;gap:10px;font-size:18px;line-height:1.45;min-height:52px;padding:12px;background:white;border:1px solid #c7dcd1;border-radius:8px}.ordinary-discount-options input{width:24px;height:24px;flex-shrink:0;accent-color:#175b42}.ordinary-line-status{display:block;color:#175b42;font-weight:600}#ordinary-discount-status{font-weight:600;font-size:17px}

/* Common discount choices first; colour indicates frequency, never automatic selection. */
.medicine-discount-options .discount-common{background:#e8f5e9;color:#14532d;border-color:#579b6b}.medicine-discount-options .discount-common input{accent-color:#166534}.medicine-discount-options .discount-other{background:#fff0ef;color:#8b2222;border-color:#aa4f4f}.medicine-discount-options .discount-other input{accent-color:#a12626}.medicine-discount-options .check:focus-within{outline:3px solid #254b36;outline-offset:2px}

/* Pending requests take no queue space until explicitly opened. */
#toggle-pending{flex:none;align-self:flex-start;margin:8px 0;color:#8c2020;background:#fff4f2;border:1px solid #b94e4e;font-weight:700;min-height:44px}.unpaid-queue[hidden]{display:none!important}.payment-queues.pending-hidden{overflow:hidden}.payment-queues.pending-hidden .paid-queue{flex:1 1 auto;min-height:0;height:100%}body.mobile-orders-open .payment-queues.pending-hidden{display:flex;grid-template-columns:1fr}.payment-queues.pending-hidden #orders{flex:1 1 auto;min-height:110px;height:auto}.discount-quantity-note{font-weight:700;color:#175b42}

.discount-share{display:block;margin-top:12px;font-size:17px;min-height:48px}.payment-email-notice{padding:12px 16px;border:1px solid #99b9a5;border-radius:8px;background:#eff8f1;font-size:16px}.payment-email-notice[data-state="failed"],.payment-email-notice[data-state="cancelled"],.payment-email-notice[data-state="unknown"]{background:#fff1f0;border-color:#ba5555}.payment-email-notice[data-state="queued"]{background:#fff8df;border-color:#b59643}

/* One active order queue, with a dense grid in the expanded Orders view. */
.order-queue-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.order-queue-tabs button{min-height:44px;flex:1;padding:10px;font-weight:700}.order-queue-tabs button[aria-pressed=true]{background:#174b39;color:white;border-color:#174b39}.payment-queue[hidden]{display:none!important}.payment-queues,.payment-queues.pending-hidden{display:flex;flex-direction:column;min-height:0;overflow:hidden;flex:1}.payment-queues>.payment-queue{flex:1;min-height:0;overflow:hidden}.payment-queue #orders,.payment-queue #unpaid-orders{min-height:0;overflow-y:auto;flex:1}.order-queue-tabs #toggle-pending{margin:0}
body.mobile-orders-open .payment-queues,body.mobile-orders-open .payment-queues.pending-hidden{display:flex;flex-direction:column;min-height:0;overflow:hidden}body.mobile-orders-open .payment-queues>.payment-queue{min-height:0;flex:1}body.mobile-orders-open .payment-queue #orders,body.mobile-orders-open .payment-queue #unpaid-orders{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(175px,1fr));grid-auto-rows:max-content;align-content:start;gap:8px;padding:4px;overflow-y:auto;min-height:0;height:auto;flex:1}body.mobile-orders-open .payment-queue .order-card{margin:0;padding:9px;min-width:0;min-height:145px;font-size:13px;line-height:1.35;overflow-wrap:anywhere}body.mobile-orders-open .payment-queue .order-card strong{font-size:13px}body.mobile-orders-open .payment-queue .order-card small{font-size:11px}body.mobile-orders-open .payment-queue .order-card .order-status{font-size:11px}body.mobile-orders-open .order-queue-tabs{flex-shrink:0}body.mobile-orders-open .payment-queue h3{margin:5px 0;font-size:16px}@media(max-width:600px){body.mobile-orders-open .payment-queue #orders,body.mobile-orders-open .payment-queue #unpaid-orders{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}body.mobile-orders-open .payment-queue .order-card{font-size:13px;padding:8px}body.mobile-orders-open .payment-queue .order-card strong{font-size:12px}.order-queue-tabs button{font-size:14px}}

body.mobile-orders-open .payment-queue .order-card .name{font-size:15px;line-height:1.25}body.mobile-orders-open .payment-queue .order-card .muted{font-size:12px;line-height:1.25}body.mobile-orders-open .payment-queue .order-card .queue-payment-time{font-size:11px;line-height:1.25}body.mobile-orders-open .payment-queue .order-card .badge{font-size:11px;padding:3px 5px}body.mobile-orders-open .mobile-orders-toolbar{padding:12px 16px;min-height:70px}body.mobile-orders-open .order-list>.section-head h2{font-size:20px;margin:8px 0}body.mobile-orders-open .order-list>.status-legend{margin:6px 0}.order-queue-tabs #toggle-pending{flex:1;align-self:stretch}@media(max-width:760px){body.mobile-orders-open .mobile-orders-rail{display:none}body.mobile-orders-open .work-grid>.order-list{inset:0;z-index:60;height:100dvh;padding:10px}body.mobile-orders-open .mobile-orders-toolbar{margin:0 0 6px;padding:10px}body.mobile-orders-open .mobile-orders-toolbar h2{font-size:21px}}

.paid-items-note{padding:12px;background:#eef6f0;border-left:4px solid #286246}.order-returns-link{display:inline-block;min-height:44px;padding:12px 18px;margin:8px 0 20px;text-align:center;text-decoration:none;border-radius:8px}.order-returns-link[hidden],#order-product-editor[hidden],.paid-items-note[hidden]{display:none!important}.locked-item-quantity{white-space:nowrap;padding:10px;font-size:1rem}

#inventory[data-workspace-mode="returns"]>:not(#returns-workspace):not(#inventory-status){display:none!important}.item.item-locked{grid-template-columns:64px minmax(0,1fr) auto}.item-locked p{min-width:0;overflow-wrap:anywhere}@media(max-width:600px){.item.item-locked{grid-template-columns:48px minmax(0,1fr)}.item-locked .locked-item-quantity{grid-column:2;padding:0 0 10px;white-space:normal}.item-locked .product-photo{width:48px}}
