.workshop-page fieldset{border:0;padding:0;margin:0;min-width:0}.workshop-card{background:var(--z-surface,#fff);border:1px solid #d9e7eb;border-radius:12px;padding:18px;margin:16px 0}.workshop-card h2{font-size:1.05rem;color:#134751;margin:0 0 14px}.workshop-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.workshop-grid label{display:flex;flex-direction:column;gap:6px;font-size:.85rem;font-weight:600}.workshop-page input,.workshop-page select,.workshop-page textarea{width:100%;min-height:40px;border:1px solid #c9dce1;border-radius:6px;padding:8px;box-sizing:border-box}.workshop-wide{grid-column:span 2}.workshop-table{overflow:auto}.workshop-table table{width:100%;border-collapse:collapse}.workshop-table th,.workshop-table td{padding:10px;text-align:left;border-bottom:1px solid #e4edef}.workshop-table th{background:#edf6f8;font-size:.8rem}.workshop-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px}.workshop-notice,.workshop-error{padding:12px;border-radius:6px;margin:10px 0}.workshop-notice{background:#e7f7f1}.workshop-error{background:#fff0ed;color:#9d291d}.workshop-print{display:none}@media(max-width:1000px){.workshop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:540px){.workshop-grid{grid-template-columns:1fr}.workshop-wide{grid-column:span 1}}@media print{body *{visibility:hidden}#workshop-print,#workshop-print *{visibility:visible}#workshop-print{display:block;position:absolute;left:0;top:0;width:100%;background:#fff;color:#111;padding:20px}.workshop-page{display:none}}
.workshop-page .workshop-card{padding:14px;margin:10px 0}.workshop-page .workshop-card h2{margin-bottom:10px}.workshop-page .workshop-grid{gap:10px}.workshop-page .workshop-card p{margin:7px 0}.workshop-page .rx-grid{max-width:720px;table-layout:fixed}.workshop-page .rx-grid th:first-child{width:95px}.workshop-page .rx-grid th,.workshop-page .rx-grid td{padding:6px}.workshop-page .rx-grid input{min-height:38px;text-align:center;padding:6px}.rx-selector{max-width:700px;border:1px solid #8fc6ce;background:#f2fafb;border-radius:8px;padding:10px;margin:8px 0}.rx-selector-head,.rx-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.rx-selector-head span{font-size:.8rem;flex:1}.rx-selector-head button{margin-left:auto}.rx-values{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}.rx-selector button{min-height:40px;min-width:48px;border:1px solid #abcfd3;border-radius:6px;background:white;color:#145d65;padding:7px;cursor:pointer}.rx-selector button:hover,.rx-selector button:focus{background:#d9f1ed;outline:2px solid #168b81}.rx-controls{margin-bottom:6px}.rx-error{color:#a52820}.workshop-availability{font-size:.85rem;color:#12685f}.workshop-advance-link{white-space:nowrap}.workshop-page .workshop-table table td{vertical-align:middle}.workshop-page input[aria-invalid=true]{border-color:#b52d26}@media(max-width:1100px){.workshop-page .workshop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:540px){.workshop-page .workshop-grid{grid-template-columns:1fr}.workshop-page .rx-grid th:first-child{width:60px}.workshop-page .rx-grid td{padding:3px}.rx-controls button{font-size:.8rem}}
.workshop-set-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.set-tab{border:1px solid #d2e4e7;border-radius:8px;background:#f7fbfc;padding:10px 14px;text-align:left;min-height:44px;color:#174f58}.set-tab small{display:block;margin-top:4px}.set-tab.active{background:#e2f6ef;border-color:#008779}.workshop-set-head,.workshop-set-progress{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:10px 0}.workshop-set-head input{max-width:320px}.workshop-set-progress{background:#f3f9fa;border-radius:8px;padding:12px}.workshop-set-progress span{color:#286571}.workshop-page .workshop-table select{min-width:150px}@media(max-width:540px){.set-tab{flex:1;min-width:140px}.workshop-set-progress{align-items:stretch;flex-direction:column}}
.workshop-product-picker{grid-column:span 2}.workshop-product-picker > [role=listbox]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-height:240px;overflow:auto}.product-choice{display:flex;gap:10px;text-align:left;background:#fff;border:1px solid #d6e5e9;border-radius:8px;padding:9px;color:#174c56;min-height:60px}.product-choice.selected{background:#e3f7f1;border-color:#008b7c}.product-choice small{display:block;font-size:.75rem;margin-top:3px}.product-choice strong{font-size:.84rem}.product-icon{font-size:26px;color:#008779}.workshop-field-label{display:block;font-size:.85rem;font-weight:600;margin-bottom:6px}.workshop-customer-card{display:flex;gap:18px;align-items:center;background:#eef8fa;border-radius:8px;padding:10px;margin-top:10px}.workshop-table input[aria-label="Line quantity"]{min-width:65px;max-width:85px}.workshop-table input[aria-label="Line discount"]{min-width:85px;max-width:110px}@media(max-width:540px){.workshop-product-picker{grid-column:auto}.workshop-product-picker > [role=listbox]{grid-template-columns:1fr}.workshop-customer-card{flex-wrap:wrap}}
/* Counter entry: compact presentation; stock, payment and posting rules remain in services. */
.workshop-counter .zn-page-head{margin-bottom:8px;padding-bottom:8px}.workshop-counter .zn-page-head .zn-eyebrow{display:none}.workshop-counter .zn-page-head h1{font-size:1.45rem}.workshop-counter .zn-page-head p{margin:3px 0}.workshop-counter-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:12px;align-items:start}.workshop-counter .workshop-card{padding:10px 12px;margin:0 0 8px}.workshop-counter .workshop-card h2{font-size:.94rem;margin:0 0 7px}.workshop-counter .workshop-grid{gap:7px;grid-template-columns:repeat(4,minmax(0,1fr))}.workshop-counter input,.workshop-counter select,.workshop-counter textarea{min-height:32px;padding:5px 7px;font-size:.82rem}.workshop-counter label{font-size:.78rem;gap:3px}.workshop-counter textarea{height:42px}.workshop-counter button,.workshop-counter a.z-btn-secondary{font-size:.82rem;min-height:32px;padding:5px 10px}.workshop-counter .workshop-actions{gap:6px;margin-top:6px}.workshop-counter .workshop-customer-card{padding:5px 8px;margin-top:5px;gap:10px;font-size:.82rem}.workshop-counter .workshop-set-tabs{gap:5px;margin-bottom:6px}.workshop-counter .set-tab{min-height:32px;padding:5px 9px;font-size:.8rem}.workshop-counter details{margin:5px 0;font-size:.8rem}.workshop-counter summary{cursor:pointer;color:#226773;font-weight:600}.workshop-counter .workshop-set-head{margin:6px 0}.workshop-counter .workshop-prescription{position:relative}.workshop-counter .rx-grid{max-width:620px}.workshop-counter .rx-grid td{position:relative;padding:3px}.workshop-counter .rx-grid th{padding:4px;font-size:.75rem}.workshop-counter .rx-grid input{min-height:30px;padding:4px 20px 4px 3px;font-size:.82rem}.workshop-counter .rx-open{position:absolute;right:5px;top:5px;min-height:24px;padding:0 3px;border:0;background:transparent;color:#23776b}.workshop-counter .rx-selector{position:absolute;z-index:20;top:100%;left:0;max-width:470px;margin:0;box-shadow:0 8px 25px #163b4933}.workshop-counter .rx-selector button{min-width:38px}.workshop-counter .workshop-table th,.workshop-counter .workshop-table td{padding:5px 6px;font-size:.8rem}.workshop-counter .workshop-product-picker{grid-column:span 2}.workshop-counter .workshop-selected-stock{font-size:.78rem;color:#17796c;align-self:center}.workshop-counter-payments{position:sticky;top:12px}.workshop-counter-payments .workshop-grid{grid-template-columns:1fr;gap:7px}.workshop-counter-payments .workshop-grid>strong{display:block;font-size:1rem;padding:7px;background:#edf8f5;border-radius:5px}.workshop-counter-payments .workshop-grid>strong:nth-child(3){color:#a33226}.workshop-counter-payments .workshop-grid>span{font-size:.78rem}.workshop-counter-payments p{font-size:.8rem}.workshop-counter-payments>.z-btn-primary{width:100%}.workshop-counter .workshop-entry-footer{position:sticky;bottom:0;background:var(--z-surface,#fff);padding:8px 0 2px;z-index:5}.workshop-counter .workshop-entry-footer strong{flex:1;font-size:.85rem}
@media(max-width:1200px){.workshop-counter-layout{grid-template-columns:minmax(0,1fr) 235px}.workshop-counter .workshop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workshop-counter-payments .workshop-grid{grid-template-columns:1fr}}
@media(max-width:800px){.workshop-counter-layout{grid-template-columns:1fr}.workshop-counter-payments{position:static}.workshop-counter .workshop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workshop-counter button,.workshop-counter input,.workshop-counter select{min-height:38px}.workshop-counter .rx-selector{max-width:calc(100vw - 140px)}}
@media(max-width:540px){.workshop-counter .workshop-grid{grid-template-columns:1fr}.workshop-counter .workshop-product-picker{grid-column:auto}}
/* Keep customer and prescription alongside each other on counter displays. */
@media(min-width:1300px){.workshop-counter-main{display:grid;grid-template-columns:1.15fr 1fr;gap:0 10px;align-items:start}.workshop-counter-main>.workshop-card:nth-of-type(3){grid-column:1/-1}.workshop-counter-main>.workshop-card:first-child .workshop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workshop-counter .rx-grid th:first-child{width:70px}.workshop-counter .rx-grid input{padding-right:17px}.workshop-counter .workshop-customer-card{flex-wrap:wrap;gap:5px}}
.workshop-counter-main>.workshop-card{min-width:0}.workshop-counter .rx-grid{width:100%}.workshop-counter .workshop-table{min-width:0}.workshop-counter .workshop-grid>*,.workshop-counter .workshop-product-picker{min-width:0}.workshop-counter .workshop-customer-card strong{overflow-wrap:anywhere}
@media(min-width:1300px){.workshop-counter-main{grid-template-columns:1.2fr 1fr}.workshop-counter-main>.workshop-card:first-child .workshop-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.workshop-counter .rx-grid{min-width:0!important;max-width:100%;width:100%;table-layout:fixed}.workshop-counter .rx-grid th:first-child{width:68px}.workshop-counter .rx-grid input{width:100%;min-width:0}.workshop-counter .workshop-prescription .workshop-table{overflow:visible}
@media(min-width:900px) and (max-width:1299px){.workshop-counter-layout{grid-template-columns:minmax(0,1fr)}.workshop-counter-main{display:grid;grid-template-columns:1.15fr 1fr;gap:0 10px;align-items:start}.workshop-counter-main>.workshop-card:nth-of-type(3){grid-column:1/-1}.workshop-counter-main>.workshop-card:first-child .workshop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workshop-counter .workshop-card:nth-of-type(3) .workshop-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.workshop-counter-payments{order:-1;position:static;display:grid;grid-template-columns:1fr auto;gap:5px 10px}.workshop-counter-payments h2{grid-column:1/-1}.workshop-counter-payments .workshop-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-column:1/-1}.workshop-counter-payments .workshop-grid>span{grid-column:1/-1}.workshop-counter-payments p{margin:0}.workshop-counter-payments>.workshop-table{grid-column:1/-1}.workshop-counter .workshop-customer-card{flex-wrap:wrap;gap:5px}}
.workshop-counter .zn-table th{position:static!important;top:auto!important;left:auto!important}

/* Familiar counter workspace: presentation only. */
.final-workspace{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(290px,1fr);gap:12px;align-items:start}.final-main,.final-side{min-width:0}.final-main fieldset{border:0;padding:0;margin:0;min-width:0}.final-workspace .workshop-card{padding:12px;margin:0 0 8px}.final-workspace h2{font-size:.95rem;margin:0 0 8px}.final-workspace label{font-size:.78rem;display:block}.final-workspace input,.final-workspace select{height:31px;width:100%;min-width:0}.final-workspace textarea{min-height:42px;width:100%}.final-fields{display:grid;grid-template-columns:1fr 1.1fr 1.1fr;gap:8px}.final-customer-search{display:grid;grid-template-columns:2fr 1fr 1fr;gap:8px;margin-top:7px}.final-input-action{display:flex;gap:4px}.final-input-action input{flex:1;width:0}.final-input-action button{flex:none}.final-selected-customer{display:block;padding:5px 0;color:#08786e}.final-prescription{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:12px}.final-prescription h2{grid-column:1/-1}.final-prescription .rx-grid{min-width:0!important;width:100%;table-layout:fixed}.final-prescription .rx-grid th:first-child{width:80px}.final-prescription .rx-grid input{width:100%}.final-four-rows{width:100%;table-layout:fixed}.final-four-rows th:first-child{width:30px}.final-four-rows th:nth-child(2){width:65px}.final-four-rows th:nth-child(4){width:110px}.final-four-rows th:last-child{width:40px}.final-four-rows td,.final-four-rows th{padding:4px!important;position:static!important}.final-four-rows input{font-size:.78rem}.final-four-rows td:nth-child(4) input{text-align:right}.final-item-footer{display:grid;grid-template-columns:1.5fr 1fr;gap:22px;margin-top:8px}.final-staff-fields label{display:grid;grid-template-columns:80px 1fr;align-items:center;margin-bottom:5px}.final-totals,.final-summary{display:grid;grid-template-columns:1fr auto;gap:3px 12px;font-size:.8rem;margin:0}.final-totals dd,.final-summary dd{margin:0;text-align:right}.final-summary dt,.final-summary dd{padding:5px;background:#f3f8fa}.final-summary .final-balance{font-size:1rem;font-weight:700;color:#b22b25;background:#fff7f0}.final-payment-fields{display:grid;grid-template-columns:1fr auto;align-items:end;gap:10px}.final-side small{font-size:.7rem}.final-side .zn-table{min-width:0;width:100%;font-size:.75rem}.final-side .zn-table th,.final-side .zn-table td{padding:5px!important;position:static!important}.final-delivery-status{display:flex;justify-content:space-between;margin-bottom:5px}.final-check{display:flex!important;align-items:center}.final-check input{width:auto;height:auto;margin-right:7px}.workshop-modal-backdrop{position:fixed;inset:0;background:#102c3a66;z-index:1100;display:flex;align-items:center;justify-content:center;padding:24px}.workshop-modal{background:var(--z-surface,#fff);border-radius:12px;box-shadow:0 18px 60px #102c3a66;padding:20px;width:850px;max-width:95vw;max-height:90vh;overflow:auto}.workshop-modal header{display:flex;justify-content:space-between}.workshop-modal .workshop-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.power-dialog{width:650px}.power-dialog .rx-grid{min-width:0}.final-workspace details{font-size:.78rem}.final-workspace .workshop-actions{gap:6px}.final-workspace button{padding:5px 10px}.final-workspace .workshop-table{overflow:auto}
@media(max-width:1000px){.final-workspace{grid-template-columns:1fr}.final-side{display:grid;grid-template-columns:1fr 1fr;gap:8px}.final-fields{grid-template-columns:repeat(3,1fr)}}

.final-customer-row{display:grid;grid-template-columns:2fr auto 1fr 1.2fr;gap:8px;align-items:end;margin-top:6px}.final-prescription{display:block}.final-rx-layout{display:grid;grid-template-columns:minmax(0,1fr) 145px;gap:12px;align-items:center}.final-rx-actions{display:flex;flex-direction:column;gap:10px}.final-rx-layout .rx-grid td{position:relative;padding:4px!important}.final-rx-layout .rx-grid th{padding:5px!important}.final-rx-layout .rx-open{display:none}.final-workspace input,.final-workspace select{min-height:var(--od-workshop-control,31px)!important;height:var(--od-workshop-control,31px)!important;padding:4px 7px!important}.final-workspace .final-staff-fields textarea{height:42px;min-height:42px}.final-workspace .final-side textarea{height:52px;min-height:52px}.final-workspace .workshop-card{padding:10px}.final-workspace .zn-table th{position:static!important}.final-workspace .final-customer-row button{font-size:.75rem;white-space:nowrap}.final-workspace .final-rx-layout .rx-grid th:first-child{width:85px}.final-workspace .final-items details{margin-top:5px}.power-dialog .rx-grid td{position:relative}.power-dialog .rx-open{position:absolute;right:2px;top:4px;padding:3px;}.power-dialog .rx-grid input{width:100%;padding-right:22px}.final-workspace .final-totals{font-size:.75rem;gap:2px 10px}

.power-options{display:flex;gap:15px;align-items:center;margin:10px 0}.power-choice-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:5px}.power-choice-grid button{padding:7px 2px;background:#f1f8fc;border:1px solid #c9e0ec;border-radius:4px;color:#075b87}.power-dialog h3{font-size:.85rem;margin:12px 0 6px}.final-side .workshop-actions{margin-top:5px}
.final-overlay{position:fixed;inset:0;z-index:1100;background:#102c3a66;display:flex;align-items:center;justify-content:center;padding:24px}.final-dialog{width:850px;max-width:95vw;max-height:90vh;overflow:auto}.final-dialog-head{display:flex;justify-content:space-between;align-items:center}.final-dialog .workshop-product-picker{grid-column:1/-1}.final-dialog .product-choice{display:flex;width:100%;padding:6px;text-align:left}.final-dialog .product-icon{display:none}.final-dialog .product-choice strong,.final-dialog .product-choice small{display:inline;margin-right:8px}.final-dialog .workshop-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.final-side .final-summary + *{margin-top:5px}.power-options input[type=radio]{width:16px!important;height:16px!important;min-height:0!important;margin-right:5px}.power-options label{display:flex;align-items:center}.power-dialog header button{height:32px;padding:4px 10px}.final-workspace button{border-radius:5px}.final-workspace .final-side .workshop-card:last-child{margin-bottom:0}

/* Premium section treatment; existing counter controls and calculations retained. */
.final-workspace .workshop-card{border-radius:8px;border:1px solid #cfe1e7;overflow:hidden;padding:10px 12px;margin-bottom:10px}.final-workspace .workshop-card>h2{display:flex;align-items:center;gap:9px;margin:-10px -12px 10px;padding:7px 10px;background:#e0f3fa;color:#093b4b;font-size:.9rem;min-height:34px}.final-workspace h2 small{font-size:.67rem;font-weight:400}.section-number{display:inline-flex;align-items:center;justify-content:center;border-radius:4px;background:#1689f6;color:white;width:24px;height:24px;font-weight:700;flex-shrink:0}.final-workspace .final-prescription{border-color:#d9c9fa}.final-workspace .final-prescription>h2{background:#ece1fa}.final-prescription .section-number{background:#934ee8}.final-workspace .final-items>h2{background:#dff6e9}.final-items .section-number{background:#02a86a}.final-workspace .final-lens-requests>h2{background:#fff0c7}.final-lens-requests .section-number{background:#f5a126}.final-workspace #workshop-payments>h2{background:#ffeddf}#workshop-payments .section-number{background:#ff7724}.final-workspace .zn-table{font-size:var(--od-body,.77rem)}.final-workspace .final-fields,.final-workspace .final-customer-row{gap:7px}.final-workspace .final-input-action button{border:1px solid #c4d7df;background:#f5fafc;color:#14536a;min-width:29px}.lens-request-table{width:100%;min-width:0!important;table-layout:fixed}.lens-request-table th:first-child{width:45%}.lens-request-table th:nth-child(2){width:20%}.lens-request-table td{padding:6px!important;vertical-align:top}.lens-request-table small{display:block;font-size:.68rem;line-height:1.4;overflow-wrap:anywhere}.lens-request-table strong{font-size:.73rem}.lens-request-table select{width:100%}.lens-request-table button{font-size:.7rem;margin-top:5px}.final-lens-requests>a{margin-top:7px}.final-lens-requests>small{font-size:.7rem}.final-workspace .final-item-footer{margin-top:9px}.final-workspace .final-totals{max-width:280px}

.final-workspace .final-item-footer{display:block}.final-workspace .final-staff-fields{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:8px}.final-workspace .final-staff-fields label{display:block}.final-workspace .final-staff-fields textarea{height:31px;min-height:31px}.final-workspace .final-side .final-totals{max-width:none;margin-bottom:5px;grid-template-columns:1fr auto}.final-workspace .final-side .final-totals dt,.final-workspace .final-side .final-totals dd{padding:2px 5px;background:#f4f8fa}.final-workspace .final-side>section>small{font-size:.66rem}.lens-request-table td{line-height:1.2}.lens-request-table strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.final-workspace .final-side .workshop-card{margin-bottom:7px;padding-top:8px;padding-bottom:8px}.final-workspace .final-side .workshop-card>h2{margin-top:-8px;margin-bottom:7px}
.power-dialog{width:820px}.power-choice-grid{max-height:230px;overflow-y:auto;padding:3px;grid-template-columns:repeat(10,1fr)}.power-choice-grid .selected-power{background:#00877e;color:white;border-color:#00685f;box-shadow:0 0 0 2px #b5e4df}.power-dialog .rx-open{display:none}.final-dialog .workshop-product-picker > [role=listbox]{display:flex!important;flex-direction:column!important;max-height:260px;overflow-y:auto;gap:2px}.final-dialog .product-choice{display:flex!important;flex:none!important;border-radius:3px;min-height:36px}.final-dialog .product-choice>span{display:grid;grid-template-columns:minmax(180px,1fr) 160px 230px;width:100%;gap:8px}.final-dialog .product-choice strong{font-size:.78rem}.final-dialog .product-choice small{font-size:.7rem}.final-dialog .workshop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.final-summary input,.final-totals input{width:100px!important;text-align:right}.power-dialog .workshop-prescription .workshop-table{overflow:visible}

.final-four-rows .counter-row-type{border:0;background:transparent;color:inherit;padding:3px!important;font-size:.78rem}.power-dialog .rx-grid{width:100%;table-layout:fixed;min-width:0!important}.final-dialog .workshop-product-picker .product-choice.selected{background:#def4ef;border-color:#07877a}.final-dialog .product-choice>.product-icon{display:none!important}.final-dialog .product-choice>span:not(.product-icon){min-width:0}.final-dialog .product-choice strong,.final-dialog .product-choice small{overflow-wrap:anywhere;margin:0;align-self:center}.final-dialog .product-choice{overflow:hidden}

/* Viewport-bound popups: only selectable results scroll; actions remain visible. */
.workshop-modal.power-dialog{width:min(1060px,calc(100vw - 32px));height:min(720px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);box-sizing:border-box;padding:16px;overflow:hidden;display:flex;flex-direction:column;gap:8px}
.power-dialog header,.power-dialog .power-toolbar,.power-dialog .power-preview,.power-dialog .popup-footer{flex:none}
.power-dialog header h2{margin:0;font-size:1.35rem}.power-toolbar p{margin:0 0 8px}.power-dialog .power-options{margin:4px 0;gap:14px}.power-dialog .power-choice-grid{flex:1;min-height:70px;max-height:none;overflow:auto;align-content:start;grid-template-columns:repeat(10,minmax(0,1fr));gap:5px}.power-dialog .power-choice-grid button{padding:7px 3px;min-height:32px}.power-dialog .power-preview h3{margin:0 0 5px;font-size:.9rem}.power-dialog .rx-grid th,.power-dialog .rx-grid td{padding:5px}.power-dialog .rx-grid input{min-height:32px}.power-dialog .popup-footer{margin:0;padding-top:8px;border-top:1px solid var(--zn-border,#d6e4e5)}
.final-overlay:has(.product-dialog){padding:16px}.final-dialog.product-dialog{width:min(1060px,calc(100vw - 32px));height:auto;max-height:calc(100dvh - 32px);box-sizing:border-box;overflow:hidden;display:flex;flex-direction:column;gap:10px;padding:16px}.product-dialog .final-dialog-head,.product-dialog .product-popup-search,.product-dialog .product-popup-footer{flex:none}.product-dialog .final-dialog-head h2{margin:0;font-size:1.25rem}.product-dialog .workshop-product-picker{flex:1;min-height:60px;display:flex;flex-direction:column}.product-dialog .workshop-product-picker > [role=listbox]{flex:1;min-height:0;max-height:none!important;overflow:auto}.product-dialog .product-choice{padding:7px 10px}.product-dialog .product-choice>span:last-child{grid-template-columns:minmax(160px,1.3fr) minmax(100px,.7fr) minmax(170px,1fr);gap:8px}.product-dialog .product-popup-footer{border-top:1px solid var(--zn-border,#d6e4e5);padding-top:10px}.product-dialog .popup-stock-status,.product-dialog .popup-location{grid-column:1/-1}.product-dialog .popup-stock-status{font-size:.88rem;color:var(--zn-text,#17383d)}.product-dialog .popup-stock-status small{display:block}.product-dialog .rx-error{margin:0 0 8px}.product-dialog .workshop-grid{gap:8px 12px}.product-dialog details{margin-top:6px}.product-dialog textarea{min-height:38px;max-height:60px}
@media(max-width:1100px){.power-dialog .power-choice-grid{grid-template-columns:repeat(8,minmax(0,1fr))}.product-dialog .product-choice>span:last-child{grid-template-columns:minmax(160px,1fr) minmax(150px,1fr)}.product-dialog .product-choice small:first-of-type{display:none}}
@media(max-height:650px){.power-dialog .power-toolbar p{display:none}.power-dialog .power-options{margin:2px 0}.power-dialog .rx-grid th,.power-dialog .rx-grid td{padding:2px}.power-dialog .power-preview h3{font-size:.8rem}.product-dialog{gap:5px!important}.product-dialog .workshop-grid{gap:4px 10px}}
@media(max-width:650px){.power-dialog .power-choice-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.power-dialog .power-options{gap:6px;font-size:.85rem}.power-dialog .rx-grid th,.power-dialog .rx-grid td{padding:2px}.power-dialog .rx-grid input{padding:3px;font-size:.85rem}.product-dialog .product-choice>span:last-child{display:flex;flex-direction:column;gap:2px}}

.workshop-page .power-dialog .rx-grid{max-width:none;width:100%}

.quick-customer-dialog{width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:18px!important}.quick-customer-dialog .workshop-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.quick-customer-dialog .customer-address{grid-column:1/-1}.quick-customer-dialog p{margin:8px 0}.quick-customer-dialog input,.quick-customer-dialog textarea{width:100%;box-sizing:border-box}.quick-customer-dialog .popup-footer{border-top:1px solid #d6e4e5;padding-top:12px}.stock-setup-notice{font-size:.85rem}.stock-setup-notice a,.stock-setup-notice button{margin:6px 6px 0 0}.quick-customer-button{margin-top:6px}.final-four-rows th:nth-child(4){width:110px}

.power-dialog .rx-grid input.rx-focused{border-color:#007c72;background:#effbf8;box-shadow:0 0 0 2px #b5e4df}

.final-side .collection-options{grid-template-columns:1fr 1fr;gap:8px;margin-top:6px}.final-side .customer-whatsapp textarea{height:96px;min-height:96px;line-height:1.35;margin-top:6px}.final-side .final-delivery-status{font-weight:700;color:#0c6b65}.final-side details{margin:6px 0}.final-side details summary{cursor:pointer}.final-side .customer-whatsapp small{display:block;margin-top:4px}

/* Customer history uses the existing modal shell; only its results scroll. */
body:has(.history-overlay){overflow:hidden}.customer-history-dialog{width:min(1180px,95vw);max-height:calc(100dvh - 48px);display:flex;flex-direction:column;overflow:hidden;padding:20px;gap:12px;outline:none}.customer-history-dialog h2,.customer-history-dialog p{margin:0}.customer-history-dialog header p{margin-top:5px}.history-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0;background:#f0f7f7;padding:12px;border-radius:6px}.history-summary dt{font-size:.85rem}.history-summary dd{margin:4px 0 0;font-weight:700;font-size:1.15rem}.history-results{overflow:auto;min-height:0;max-height:55vh}.history-results th{position:sticky;top:0;background:#eef4f4;white-space:nowrap}.history-results td{white-space:nowrap}.history-empty{padding:28px;text-align:center}.customer-history-dialog footer{border-top:1px solid #d6e4e5;padding-top:8px}@media(max-width:800px){.history-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-history-dialog{padding:14px}}
[data-workshop-money]{text-align:right!important;font-variant-numeric:tabular-nums}
/* Fill the prescription component's legacy outer grid rather than its table alone. */
.final-rx-layout{grid-template-columns:minmax(0,1fr) 145px;gap:12px;align-items:center}.final-rx-layout .workshop-prescription{display:block;width:100%;min-width:0}.final-rx-layout .workshop-table{width:100%;min-width:0;overflow:visible}.final-rx-layout .rx-grid{width:100%;table-layout:fixed}.final-rx-layout .rx-grid input{width:100%;height:31px;box-sizing:border-box}.final-rx-actions{gap:10px}.final-rx-actions button{width:100%}@media(max-width:650px){.final-rx-layout{grid-template-columns:minmax(0,1fr)}.final-rx-actions{flex-direction:row}.final-rx-layout .rx-grid th:first-child{width:68px}}

/* Workshop product choices: five compact rows, with the existing fixed-position menu. */
.product-dialog .workshop-product-picker{flex:none;min-height:0;overflow:visible}.product-dialog .workshop-product-picker>.optical-dropdown{min-width:0}.product-dialog .workshop-product-picker .zn-combobox-popover{height:228px;overflow-y:auto;z-index:1200;padding:3px;box-sizing:border-box}.product-dialog .workshop-product-picker .zn-combobox-option{display:block!important;width:100%;height:44px;min-height:44px;box-sizing:border-box;padding:5px 10px!important;white-space:pre-line;text-align:left;font-size:.78rem;line-height:17px;overflow:hidden}.product-dialog .workshop-product-picker .zn-combobox-option[aria-selected=true]{background:#def4ef;border-color:#07877a}.product-dialog .workshop-product-picker .zn-combobox-popover[data-placement=above]{height:auto;max-height:228px}
.product-dialog .product-popup-footer{margin-top:0}
.lens-confirmation{margin-top:7px;padding-top:6px;border-top:1px solid #d6e4e5}.lens-confirmation input{width:100%;min-width:0;margin-top:4px}
.history-products{min-width:180px;max-width:300px;white-space:normal!important;overflow-wrap:anywhere}.history-returning{display:inline-block;margin-left:10px;color:#08786e;font-size:.8rem}.customer-history-dialog>label input{width:100%;box-sizing:border-box}
.workshop-other-stock{flex:1;min-height:0;display:flex;flex-direction:column;gap:5px;overflow:hidden;margin-top:8px}.workshop-other-stock h3{font-size:.9rem;margin:0}.workshop-other-stock>small{font-size:.72rem}.other-stock-results{min-height:0;overflow:auto;max-height:240px}.other-stock-results table{width:100%;font-size:.72rem}.other-stock-results th{position:sticky;top:0;background:#eef4f4;z-index:1}.other-stock-results td{vertical-align:top;padding:5px}.other-stock-results td:first-child{min-width:160px;max-width:250px;overflow-wrap:anywhere}.other-stock-results td:last-child{text-align:right;white-space:nowrap}.other-stock-results small{display:block;font-size:.68rem}.product-dialog .product-popup-footer{flex-shrink:0}
.workshop-other-stock>h3,.workshop-other-stock>small{flex-shrink:0}.workshop-other-stock>h3{min-height:18px;line-height:18px}.other-stock-results{flex:1;max-height:240px}
/* Compact purchase-history product lists; full saved descriptions remain expandable. */
.history-product-preview>div{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.4;margin-bottom:5px;overflow-wrap:anywhere}.history-product-details summary{cursor:pointer;color:#08786e;font-weight:600;list-style:none;font-size:.8rem;padding:3px 0}.history-product-details summary::-webkit-details-marker{display:none}.history-product-details summary:hover{text-decoration:underline}.history-product-details summary:focus-visible{outline:2px solid #08786e;outline-offset:2px}.history-product-less{display:none}.history-product-details[open] .history-product-more{display:none}.history-product-details[open] .history-product-less{display:inline}.history-products:has(.history-product-details[open]) .history-product-preview{display:none}.history-product-details ul{margin:6px 0 0;padding-left:17px}.history-product-details li{white-space:normal;overflow-wrap:anywhere;line-height:1.4;margin:0 0 7px}.history-results td{vertical-align:top}.history-results td:nth-child(6),.history-results td:nth-child(7),.history-results td:nth-child(8){text-align:right;font-variant-numeric:tabular-nums}.history-results th:nth-child(6),.history-results th:nth-child(7),.history-results th:nth-child(8){text-align:right}
.product-dialog .product-popup-search{grid-template-columns:minmax(160px,1fr) minmax(240px,3fr)}.product-dialog .workshop-product-picker{flex:1;min-height:100px;overflow:auto}.workshop-search-results{display:flex;flex-direction:column;gap:5px;overflow:auto;min-height:70px}.workshop-search-choice{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;text-align:left;background:#fff;border:1px solid #d6e4e5;border-radius:7px;padding:8px 12px;color:#17383d;flex:none}.workshop-search-choice.selected{border-color:#07877a;background:#e4f5f1;box-shadow:inset 3px 0 #07877a}.workshop-search-choice small,.workshop-selected-product small{display:block;font-size:.78rem;margin-top:3px}.workshop-search-choice>span:last-child{text-align:right;flex-shrink:0}.workshop-selected-product{padding:8px 12px;background:#eef7f5;border-radius:6px;margin-top:6px;flex:none}.rx-return{margin:0 0 8px}@media(max-width:650px){.product-dialog .product-popup-search{grid-template-columns:1fr}.workshop-search-choice{align-items:start}.workshop-search-choice>span:last-child{max-width:35%}}
/* Prescription review: loaded here because this app does not load the isolated CSS bundle. */
.workshop-page .workshop-rx-review{display:flex;align-items:center;justify-content:space-between;gap:10px 16px;flex-wrap:wrap;margin:6px 0 12px;padding:10px 12px;border:1px solid #ecd279;border-left:3px solid #d6a221;border-radius:7px;background:#fff9e6;color:#614b16;font-size:.85rem;line-height:1.4;box-sizing:border-box}
.workshop-page .rx-review-message{flex:1 1 280px;min-width:0}.workshop-page .rx-review-message>strong{display:block;font-size:.85rem;font-weight:500}.workshop-page .rx-review-message details{margin:3px 0 0}.workshop-page .rx-review-message summary{cursor:pointer;font-size:.78rem;color:#66551f;width:fit-content}.workshop-page .rx-review-message ul{margin:6px 0 0;padding-left:18px;font-size:.8rem}.workshop-page .rx-review-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex:0 0 auto}.workshop-page label.workshop-rx-confirm{display:inline-flex;flex-direction:row;align-items:center;gap:7px;margin:0;white-space:nowrap;font-size:.8rem;font-weight:500;cursor:pointer}.workshop-page .workshop-rx-confirm input[type=checkbox]{appearance:auto;display:inline-block;flex:0 0 17px;width:17px;height:17px;min-width:17px;min-height:17px;max-width:17px;margin:0;padding:0;accent-color:#07877a;box-shadow:none}.workshop-page .rx-review-actions button{min-height:34px;padding:7px 12px;font-size:.82rem;white-space:nowrap}.workshop-page .workshop-rx-confirmed{display:flex;align-items:center;gap:12px;margin:6px 0 12px;padding:6px 12px;background:#e9f7f2;border:1px solid #b2dfd0;border-radius:6px;color:#14614f;font-size:.82rem}.workshop-page .workshop-rx-confirmed strong{font-weight:600}.workshop-page .workshop-rx-confirmed button{margin-left:auto;min-height:30px;padding:4px 10px;font-size:.78rem}.workshop-page .rx-review-message summary:focus-visible,.workshop-page .workshop-rx-confirm input:focus-visible{outline:2px solid #07877a;outline-offset:3px}
@media(max-width:700px){.workshop-page .rx-review-actions{flex:1 1 100%;justify-content:space-between}.workshop-page .workshop-rx-review{gap:8px}.workshop-page .rx-review-message{flex-basis:100%}}
/* Catalogue popup follows content height; results scroll only when they exceed the compact list. */
.workshop-page .final-dialog.product-dialog{height:auto;min-height:0;overflow-y:auto;max-height:calc(100dvh - 32px);gap:10px;margin:0}.product-dialog .workshop-product-picker{flex:none;min-height:0;overflow:visible}.product-dialog .workshop-search-results{max-height:220px;min-height:0;overflow-y:auto;flex:none}.product-dialog .workshop-other-stock{flex:none;min-height:0;overflow:visible;margin-top:0}.product-dialog .other-stock-results{flex:none;max-height:150px;overflow:auto}.product-dialog .product-popup-footer{margin-top:0}.product-dialog .product-popup-footer>.workshop-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}.product-dialog .popup-pending-note{grid-column:1/-1;font-size:.78rem;color:#66551f}.product-dialog .workshop-selected-product{margin-top:6px}.product-dialog .popup-stock-status{font-size:.8rem}@media(max-width:600px){.product-dialog .product-popup-footer>.workshop-grid{grid-template-columns:1fr}.product-dialog .workshop-search-results{max-height:180px}}/* Full-window catalogue selector: only the result list scrolls. */
.final-overlay:has(.full-window-product-search){padding:0;align-items:stretch}.workshop-page .final-dialog.full-window-product-search{width:100vw;height:100dvh;max-width:none;max-height:100dvh;min-height:0;margin:0;border:0;border-radius:0;padding:16px 20px;overflow:hidden;display:flex;flex-direction:column;box-sizing:border-box}.full-window-product-search .final-dialog-head,.full-window-product-search .product-popup-search,.full-window-product-search .catalogue-search-footer{flex:none}.full-window-product-search .workshop-product-picker{flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column}.full-window-product-search .workshop-search-results{flex:1;min-height:0;max-height:none;overflow-y:auto}.catalogue-search-footer{display:flex;align-items:center;gap:10px;padding-top:10px;border-top:1px solid #d6e4e5}.catalogue-search-footer>.z-btn-primary{margin-left:auto;min-width:150px}.workshop-search-choice:focus-visible{outline:2px solid #07877a;outline-offset:-2px}@media(max-width:700px){.workshop-page .final-dialog.full-window-product-search{padding:10px}.catalogue-search-footer{gap:6px;font-size:.8rem}.catalogue-search-footer>.z-btn-primary{min-width:100px}}
.workshop-unapplied-selection{display:block;margin:4px 0;color:#805b16;font-size:.75rem;line-height:1.35}
.workshop-customer-billing{margin-top:10px;border-top:1px solid #dbe7e6;padding-top:8px}.workshop-customer-billing>summary{cursor:pointer;color:#176b63;font-size:.82rem;font-weight:600}.customer-billing-content{padding:10px 0 0}.customer-billing-content>.workshop-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.customer-billing-content .final-staff-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px}.customer-billing-content .final-staff-fields label{display:flex;flex-direction:column;gap:5px;font-size:.8rem}.customer-billing-content input[type=checkbox]{width:17px;min-height:17px;height:17px;padding:0;align-self:flex-start}.customer-billing-content textarea{min-height:38px}.customer-billing-content>small{display:block;margin-top:6px;font-size:.75rem}@media(max-width:800px){.customer-billing-content>.workshop-grid,.customer-billing-content .final-staff-fields{grid-template-columns:1fr}}
/* Phase 1: one operational action bar; detailed existing workflows open separately. */
.workshop-operation-bar{display:flex;gap:7px;flex-wrap:wrap;margin:8px 0 12px}.workshop-operation-bar button{min-height:34px;padding:6px 12px;font-size:.82rem}.workshop-page .workshop-operation-dialog{width:min(960px,calc(100vw - 24px));max-height:calc(100dvh - 24px);height:auto;overflow:auto;margin:0;padding:14px 18px;box-sizing:border-box}.workshop-operation-dialog>.final-dialog-head{position:sticky;top:-14px;z-index:2;background:var(--z-surface,#fff);padding:10px 0;border-bottom:1px solid #d6e4e5;margin-bottom:10px}.workshop-operation-dialog .workshop-card{margin:10px 0;padding:12px}.workshop-audit-detail{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.78rem;max-height:240px;overflow:auto;background:#f2f6f5;padding:10px;border-radius:5px}.workshop-payment-notes{font-size:.78rem;margin:7px 0}.workshop-payment-notes summary{cursor:pointer;color:#176b63}.final-customer-row textarea{min-height:38px;height:38px}.workshop-operation-dialog .workshop-table{max-height:50dvh;overflow:auto}@media(max-width:700px){.workshop-operation-bar{gap:5px}.workshop-operation-bar button{flex:1 1 40%}.workshop-page .workshop-operation-dialog{width:calc(100vw - 16px);padding:10px}.workshop-operation-overlay{padding:8px!important}}
/* UAT alignment and supplier review: existing workflow, explicit saved / not-sent state. */
.final-customer-row{grid-template-columns:repeat(4,minmax(0,1fr));align-items:end}.final-customer-row>label:first-child{grid-column:span 2}.final-customer-row>button{align-self:end;min-height:31px}.final-customer-row>label{min-width:0}.final-customer-row textarea{box-sizing:border-box;width:100%;height:31px;min-height:31px;resize:vertical}.workshop-operation-dialog .lens-request-table th:first-child{width:34%}.workshop-operation-dialog .lens-request-table th:nth-child(2){width:6%}.workshop-operation-dialog .lens-request-table th:nth-child(3){width:22%}.workshop-operation-dialog .lens-request-table th:nth-child(4){width:16%}.workshop-operation-dialog .lens-request-table th:nth-child(5){width:22%}.supplier-state{display:inline-block;padding:4px 6px;background:#eef7f5;border-radius:5px;font-size:.72rem;color:#176b63}.supplier-save-note{background:#eaf6fb;border:1px solid #cde5ef;border-radius:6px;padding:9px;font-size:.8rem}.supplier-message-preview{padding:12px;background:#e7f6e4;border:1px solid #c7e4bf;border-radius:7px;margin-top:12px}.supplier-message-preview h3{font-size:.9rem;margin:0 0 8px}.supplier-message-preview pre{white-space:pre-wrap;overflow-wrap:anywhere;overflow:visible;max-height:none;min-width:0;user-select:text;font:inherit;font-size:.82rem;line-height:1.5}.supplier-message-preview>small{display:block;margin-top:6px}@media(max-width:750px){.final-customer-row{grid-template-columns:repeat(2,minmax(0,1fr))}.final-customer-row>label:first-child{grid-column:span 2}.workshop-operation-dialog .lens-request-table{min-width:700px!important}}
/* Compact header: primary actions stay visible; secondary actions occupy no extra row. */
.workshop-page .workshop-compact-header{display:flex;align-items:center;justify-content:space-between;gap:10px 16px;flex-wrap:wrap;padding:8px 0 10px;margin-bottom:10px;min-height:0}.workshop-header-identity{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}.workshop-compact-header h1{margin:0;font-size:1.45rem;line-height:1.2}.workshop-header-number{font-size:.86rem;color:#315c6c}.workshop-header-status{font-size:.72rem;padding:4px 8px;border-radius:4px;background:#fff1c7;color:#795b16;white-space:nowrap}.workshop-header-actions{display:flex;align-items:center;gap:8px}.workshop-header-actions>a,.workshop-header-actions>button,.workshop-actions-toggle{min-height:34px;padding:7px 14px;white-space:nowrap;font-size:.84rem}.workshop-actions-dropdown{position:relative}.workshop-actions-toggle{display:flex;align-items:center;justify-content:space-between;gap:18px}.workshop-actions-dismiss{position:fixed;inset:0;z-index:1090;border:0;background:transparent;cursor:default}.workshop-actions-menu{position:absolute;right:0;top:calc(100% + 5px);z-index:1100;width:215px;padding:5px;background:var(--z-surface,#fff);border:1px solid #cbdde2;border-radius:8px;box-shadow:0 8px 24px #17383d26}.workshop-actions-item{display:block;width:100%;border:0;background:transparent;text-align:left;padding:9px 12px;min-height:36px;font-size:.84rem;color:#17383d;border-radius:4px}.workshop-actions-item:hover:not(:disabled),.workshop-actions-item:focus-visible{background:#e6f4f0;outline:2px solid #07877a;outline-offset:-2px}.workshop-actions-item:disabled{opacity:.45;cursor:default}.workshop-actions-item:nth-last-child(2){border-top:1px solid #e2ebed;border-radius:0;margin-top:4px;padding-top:11px}@media(max-width:700px){.workshop-page .workshop-compact-header{gap:8px}.workshop-compact-header h1{font-size:1.2rem}.workshop-header-actions{margin-left:auto}.workshop-header-actions>a,.workshop-header-actions>button,.workshop-actions-toggle{padding:6px 10px}}

/* Compact customer rows: order dates, customer contact, then assignment. */
.final-workspace .customer-contact-row{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr) minmax(0,1fr);align-items:end}
.final-workspace .customer-assignment-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.4fr);align-items:end}
.final-workspace .customer-contact-row>label:first-child,.final-workspace .customer-assignment-row>label:first-child{grid-column:auto}
.customer-search-group{display:flex;align-items:end;gap:5px;min-width:0}
.customer-search-group>label{flex:1;min-width:0}
.customer-search-group>button{min-height:31px;padding:4px 7px;font-size:.7rem;white-space:nowrap}
.final-workspace .customer-contact-row input,.final-workspace .customer-assignment-row input{width:100%;min-width:0;box-sizing:border-box}
.workshop-payment-success{display:block;margin-top:7px;color:#176b63}
@media(max-width:600px){.final-workspace .customer-contact-row,.final-workspace .customer-assignment-row{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-search-group{grid-column:1/-1}.final-workspace .customer-assignment-row>label:last-child{grid-column:1/-1}}
/* Approved Step 1 customer and GST layout only. */
.final-customer .customer-order-top{display:grid;grid-template-columns:minmax(145px,1.2fr) minmax(110px,.8fr) minmax(110px,.8fr) minmax(180px,1.7fr);gap:8px;align-items:end}
.final-customer .customer-detail-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) minmax(0,1.3fr);gap:9px 10px;margin-top:10px;align-items:end}
.final-customer .customer-detail-grid>label{min-width:0}
.final-customer .customer-address{grid-column:3;grid-row:1/3;align-self:stretch;display:flex;flex-direction:column}
.final-customer .customer-address textarea{flex:1;width:100%;height:auto;min-height:83px;box-sizing:border-box;resize:vertical}
.final-customer .customer-search-group{display:flex;gap:5px;align-items:end;min-width:0}
.final-customer .customer-search-group>label{flex:1;min-width:0}
.final-customer .customer-icon{width:31px;min-width:31px;padding:4px;font-size:1.2rem;line-height:1}
.final-customer input{width:100%;min-width:0;box-sizing:border-box}
.final-customer .customer-gst-identifiers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.final-customer .customer-gst-state{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.3fr);gap:10px;align-items:end;margin:9px 0}
.final-customer .customer-state-confirmation label{display:flex;gap:6px;align-items:center;min-height:31px}
.final-customer .customer-state-confirmation input[type=checkbox]{width:16px!important;height:16px!important;min-height:16px!important;flex:0 0 16px}
.final-customer .workshop-customer-billing>summary{padding:8px;background:#e8f6f3;border-radius:4px;color:#08695f}
@media(max-width:1100px){.final-customer .customer-order-top{grid-template-columns:repeat(3,minmax(0,1fr))}.final-customer .customer-order-top>.customer-search-group{grid-column:1/-1}}
@media(max-width:600px){.final-customer .customer-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.final-customer .customer-address{grid-column:1/-1;grid-row:3;min-height:80px}.final-customer .customer-gst-state{grid-template-columns:repeat(2,minmax(0,1fr))}.final-customer .customer-state-confirmation{grid-column:1/-1}}
/* Customer shortcuts share the existing section header; search keeps the full cell. */
.final-customer>h2 .customer-header-icons{display:flex;align-items:center;gap:5px;margin-left:auto;flex-shrink:0}
.final-workspace .final-customer>h2 .customer-icon{display:inline-flex;align-items:center;justify-content:center;width:26px;min-width:26px;height:26px;min-height:26px;padding:0;border:1px solid #bfd7df;border-radius:4px;background:#fff;color:#176574;font-size:1rem;line-height:1}
.customer-header-icons .customer-icon:focus-visible{outline:2px solid #07877a;outline-offset:2px}
.final-customer .customer-search-group>label{width:100%}
@media(max-width:600px){.final-customer>h2 small{min-width:0;flex:1}.final-customer>h2 .customer-header-icons{gap:4px}}
.final-four-rows th:last-child,.final-four-rows .workshop-clear-cell{width:28px;padding:3px}
.workshop-clear-product{display:inline-flex;align-items:center;justify-content:center;width:25px;height:28px;padding:2px!important;border:0;background:transparent;color:#b43d3d;border-radius:4px}
.workshop-clear-product:disabled{opacity:.35;cursor:default}
.workshop-clear-product:focus-visible{outline:2px solid #078579}
.final-workspace .workshop-pricing-summary{max-width:none;grid-template-columns:minmax(0,1fr) minmax(110px,.8fr);align-items:center}
.final-workspace .workshop-pricing-summary dd{margin:0;padding:0}
.final-workspace .workshop-pricing-summary input{width:100%;height:31px;min-height:31px;text-align:right;box-sizing:border-box;font-variant-numeric:tabular-nums}
.final-workspace .workshop-pricing-summary input[readonly]{background:color-mix(in srgb,var(--z-text,#17383d) 4%,var(--z-surface,#fff))}
.final-workspace .workshop-pricing-summary .final-balance input{color:#c32020;font-weight:700}
/* Tax detail visibility is presentation-only; bindings remain mounted. */
.workshop-summary-gst{margin-top:10px;border-top:1px solid var(--z-border,#d6e4e5);padding-top:5px}
.workshop-summary-gst>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;list-style:none;padding:7px 0;cursor:pointer;font-size:.8rem;font-weight:600;color:var(--z-text,#174656)}
.workshop-summary-gst>summary::-webkit-details-marker{display:none}
.workshop-summary-gst>summary:focus-visible{outline:2px solid #078579;outline-offset:2px}
.workshop-summary-gst-chevron{display:inline-block;font-size:1rem}
.workshop-summary-gst:not([open]) .workshop-summary-gst-chevron{transform:rotate(180deg)}
.workshop-summary-gst>.workshop-pricing-summary{margin:2px 0 0}
.final-workspace .workshop-pricing-summary .final-balance{background:color-mix(in srgb,#dc2626 7%,var(--z-surface,#fff))}/* Price feedback spans the row rather than narrowing the amount cell. */
.workshop-page .final-four-rows .workshop-price-warning-row td{padding:0 8px 6px;white-space:normal;overflow-wrap:anywhere}
.workshop-page .final-four-rows .workshop-price-warning-row .rx-error{display:block;margin:0;font-size:.8rem;line-height:1.3}
.workshop-page .final-four-rows input.workshop-amount-invalid{border-color:var(--zn-danger,#c52929);outline-color:var(--zn-danger,#c52929)}
.workshop-page .final-totals .workshop-discount-warning{grid-column:1/-1;margin:0;padding:4px 6px;white-space:normal;overflow-wrap:anywhere;font-size:.8rem;line-height:1.3}

/* Keep the invalid/pending calculation state legible inside existing amount boxes. */
.final-workspace .workshop-pricing-summary input.workshop-calculation-pending{font-size:.62rem;padding-inline:4px;color:var(--z-text-muted,#536974);font-weight:400}

/* Compact Workshop catalogue; keep all viewport and scrolling rules local. */
.workshop-page .final-dialog.workshop-stock-popup{padding:8px 12px;gap:7px}
.workshop-stock-popup>.optical-popup-header{padding:10px 14px;gap:10px}
.workshop-stock-popup .optical-popup-header h2{margin:0;font-size:1.15rem}
.workshop-stock-popup .optical-popup-icon{width:36px;height:36px;flex-basis:36px}
.workshop-stock-popup .optical-popup-close{align-self:center}
.workshop-stock-popup .product-popup-search{gap:10px;margin:0}
.workshop-stock-popup .catalogue-popup-body{display:flex;flex:1;flex-direction:column;gap:7px;min-height:0;overflow:auto}
.workshop-stock-popup .catalogue-popup-body>.workshop-product-picker{flex:none;min-height:0;gap:3px}
.workshop-stock-popup .workshop-search-results{flex:none;max-height:28dvh;min-height:0;overflow:auto}
.workshop-stock-popup .workshop-search-choice{padding:6px 10px;gap:8px}
.workshop-stock-popup .workshop-search-choice small{margin-top:1px}
.workshop-stock-popup .lens-choice-controls{grid-template-columns:minmax(180px,2fr) minmax(130px,1fr) minmax(110px,1fr);gap:5px 12px;margin:0;align-items:end;flex:none}
.workshop-stock-popup .lens-choice-note{grid-column:1/-1;font-size:.76rem;line-height:1.3}
.workshop-stock-popup .lens-power-availability{display:flex;flex:1;flex-direction:column;gap:4px;min-height:110px}
.workshop-stock-popup .lens-stock-table-scroll{overflow:auto;min-height:70px;flex:1}
.workshop-stock-popup .lens-stock-table-scroll table{margin:0;width:100%}
.workshop-stock-popup .lens-stock-table-scroll th{position:sticky;top:0;z-index:1;background:var(--z-surface,#eff5f5)}
.workshop-stock-popup .lens-stock-table-scroll :is(th,td){padding:6px 9px;line-height:1.3}
.workshop-stock-popup .catalogue-search-footer{position:sticky;bottom:0;margin:0;padding:8px 10px;gap:8px;flex:none}
.workshop-stock-popup .catalogue-cancel{margin-left:auto}
.workshop-stock-popup .catalogue-search-footer>.z-btn-primary{margin-left:0}
.workshop-stock-popup .catalogue-search-footer button{min-height:34px;padding:5px 14px}
@media(max-width:700px){.workshop-page .final-dialog.workshop-stock-popup{padding:6px;gap:6px}.workshop-stock-popup .lens-choice-controls{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.workshop-stock-popup .lens-choice-controls label{min-width:0}.workshop-stock-popup .product-popup-search{grid-template-columns:1fr 2fr}.workshop-stock-popup .optical-popup-header h2{font-size:1rem}.workshop-stock-popup .catalogue-search-footer{flex-wrap:wrap;font-size:.75rem;gap:5px}.workshop-stock-popup .catalogue-search-footer button{padding:5px 8px;min-width:0}.workshop-stock-popup .lens-stock-table-scroll table{min-width:540px}}
