/* Preserve existing Purchase11 controls in the compact legacy working hierarchy. */
#purchase-panel11>.purchase-top11:first-child{position:sticky;top:0;z-index:4;background:#f4f6f2;padding:8px;border-bottom:1px solid #cbd4cb;gap:8px}
#purchase-panel11>.purchase-top11:first-child h2{margin:4px auto 4px 0}
#purchase-panel11 form>fieldset{border:0;padding:8px 0;min-width:0}
#purchase-panel11 .invoice-lines11{grid-column:1/-1;min-width:0}
#purchase-panel11 .invoice-line11{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;padding:10px;margin:8px 0;border:1px solid #cbd4cb;background:#fff;border-radius:4px}
#purchase-panel11 .invoice-line11[hidden]{display:none}
#purchase-panel11 .invoice-line11>.purchase-top11{grid-column:1/-1;margin:0;gap:6px}
#purchase-panel11 .invoice-line11>.purchase-top11 strong{margin-right:auto}
#purchase-panel11 .invoice-line11>.writer-grid9{grid-column:span 2;display:flex;align-items:end;gap:6px}
#purchase-panel11 .invoice-line11>.writer-grid9>label{min-width:0;flex:1}
#purchase-panel11 .invoice-line11>label:has([name=lineDescription]){grid-column:span 2}
#purchase-panel11 .invoice-line11>label:has([name=lineReason]){grid-column:span 2}
#purchase-panel11 .invoice-line11>.picker10{min-width:0}
#purchase-panel11 .invoice-line11 input,#purchase-panel11 .invoice-line11 select{width:100%;min-width:0;box-sizing:border-box}
#purchase-panel11 .invoice-line11 [name=lineQuantity],#purchase-panel11 .invoice-line11 [name=lineUnitPrice],#purchase-panel11 .invoice-line11 [name=lineNet],#purchase-panel11 .invoice-line11 [name=lineTax]{text-align:right;font-variant-numeric:tabular-nums}
#purchase-panel11 .invoice-line11 button{min-height:36px;padding:6px 10px}
@media(max-width:900px){#purchase-panel11 .invoice-line11{grid-template-columns:repeat(2,minmax(0,1fr))}#purchase-panel11 .invoice-line11>.writer-grid9{grid-column:1/-1}}
@media(max-width:450px){#purchase-panel11 .invoice-line11{grid-template-columns:1fr}#purchase-panel11 .invoice-line11>*{grid-column:1!important}}

/* Keep primary invoice values in a single scan-friendly row. */
#purchase-panel11 .invoice-line11.compact-edit18{grid-template-columns:1.5fr 2fr .7fr 1fr 1fr .8fr;gap:8px;padding:8px;margin:0;border-radius:0;border-width:0 0 1px}
#purchase-panel11 .compact-edit18>.writer-grid9,#purchase-panel11 .compact-edit18>label:has([name=lineDescription]){grid-column:auto}
#purchase-panel11 .compact-edit18>.writer-grid9{align-items:end;gap:3px}
#purchase-panel11 .compact-edit18>.writer-grid9 button{font-size:12px;padding:4px;min-height:34px}
#purchase-panel11 .compact-edit18>label{font-size:12px}
#purchase-panel11 .line-options18{grid-column:1/-1;font-size:12px}
#purchase-panel11 .line-options18>summary{cursor:pointer;color:#53684d;padding:3px 0}
#purchase-panel11 .line-options18[open]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#purchase-panel11 .line-options18>summary,#purchase-panel11 .line-options18>.purchase-top11{grid-column:1/-1}
#purchase-panel11 .line-options18>.purchase-top11{display:flex;gap:8px;align-items:center}
#purchase-panel11 .line-options18>.purchase-top11 strong{margin-right:auto}
@media(max-width:1000px){#purchase-panel11 .invoice-line11.compact-edit18{grid-template-columns:repeat(3,minmax(0,1fr))}#purchase-panel11 .compact-edit18>.writer-grid9{grid-column:auto}}
@media(max-width:550px){#purchase-panel11 .invoice-line11.compact-edit18{grid-template-columns:repeat(2,minmax(0,1fr))}#purchase-panel11 .compact-edit18>.writer-grid9,#purchase-panel11 .compact-edit18>label:has([name=lineDescription]){grid-column:1/-1}#purchase-panel11 .line-options18[open]{grid-template-columns:1fr}}

#results{overflow:auto}.stock-table18{width:100%;border-collapse:collapse;text-align:left;font-size:14px}.stock-table18 th{background:#e9eee3;color:#53634f;padding:9px 8px}.stock-table18 td{padding:5px 8px;border-bottom:1px solid #e5eae2}.stock-table18 tr:nth-child(even){background:#f4f6f2}.stock-table18 .stock-open18{border:0;background:transparent;color:inherit;font-weight:700;padding:4px 0;min-height:36px;text-align:left}.stock-table18 .stock-open18:focus-visible{outline:3px solid #2d75a2;outline-offset:2px}.stock-table18 td:nth-child(2){width:45%;min-width:160px}.stock-table18 td:nth-child(3){overflow-wrap:anywhere}
#card>.writer-actions9{position:sticky;top:0;z-index:3;background:#f4f6f2;padding:8px;border-bottom:1px solid #cbd4cb}
#card .i13-card{padding:16px;border:1px solid #cbd4cb;border-radius:4px;background:#fff}#card .i13-card h2{font-size:21px;margin-bottom:12px}#card .i13-card dl{max-width:none;grid-template-columns:minmax(110px,1fr) minmax(0,2fr) minmax(110px,1fr) minmax(0,2fr);gap:8px 16px}#card .i13-card dt,#card .i13-card dd{padding:5px 0;border-bottom:1px solid #edf0e9}
@media(max-width:900px){#card .i13-card dl{grid-template-columns:minmax(110px,1fr) minmax(0,2fr)}}
@media(max-width:550px){.stock-table18{font-size:12px}.stock-table18 th,.stock-table18 td{padding:6px 4px}.stock-table18 td:nth-child(2){min-width:120px}#results{max-width:100%}}

/* Same Sales13 line model; visible prices and controls in compact rows. */
#sale-lines13 .sale-line18{display:grid;grid-template-columns:minmax(180px,1fr) 85px minmax(220px,.75fr);gap:6px 12px;margin:0;padding:10px 12px;border-radius:0;border-width:0 0 1px;align-items:center}
#sale-lines13 .sale-line18>strong{min-width:0;overflow-wrap:anywhere}
#sale-lines13 .sale-line18>input{width:100%;min-width:0;text-align:right;box-sizing:border-box}
.sale-line18>.sale-amounts18{grid-column:3;grid-row:1;display:flex;justify-content:space-between;gap:12px;text-align:right;font-variant-numeric:tabular-nums}
.sale-amounts18>span{display:flex;flex-direction:column;gap:3px}.sale-amounts18 small{font-size:11px;color:inherit;opacity:.8}.sale-amounts18 b{white-space:nowrap}
.sale-line18>.sale-actions18{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.sale-actions18 button{padding:5px 9px;min-height:36px}
#sale-lines13 .sale-line18>p,#sale-lines13 .sale-line18>small{grid-column:1/-1;margin:0;font-size:12px}
#sale-total13{text-align:right;font-size:22px;font-weight:700;margin:12px 0}
#sales13:not(.pos15) #sale-note13{width:min(520px,65vw)}
@media(max-width:650px){#sale-lines13 .sale-line18{grid-template-columns:minmax(0,1fr) 75px}.sale-line18>.sale-amounts18{grid-column:1/-1;grid-row:auto}.sale-actions18 button{min-height:42px}.sale-line18>.sale-actions18{justify-content:flex-start}}
#scanner18{width:min(800px,94vw);max-height:90vh;overflow:auto;box-sizing:border-box}#scanner18 header{position:sticky;top:0;background:#f4f6f2;z-index:2}#scanner18 input[type=file]{max-width:100%;font-size:12px}#scan-pages18{display:flex;gap:8px;overflow:auto;margin:10px 0}#scan-pages18 button{flex:none;width:90px}#scan-pages18 img{display:block;width:64px;height:80px;object-fit:contain}#scan-pages18 [aria-pressed=true]{outline:2px solid #5a843d}#scan-stage18{position:relative;max-width:400px;margin:auto}#scan-photo18{display:block;width:100%;height:auto}#scan-corners18{position:absolute;inset:0;width:100%;height:100%;touch-action:none}#scan-corners18 circle{fill:#fff;stroke:#598538;stroke-width:6;cursor:move}#scan-note18{display:block;width:100%;box-sizing:border-box}#scanner18 small{display:block;margin-top:12px}#scanner18 button{min-height:44px}
#scanner18 header{color:#26332b}#scanner18 header h2{color:inherit}#scanner18 .purchase-top11>label{display:block;width:100%;min-width:0}#scanner18 input[type=file]{display:block;width:100%;box-sizing:border-box;min-width:0}
#receipt-confirm18{width:min(850px,94vw);max-height:90vh;overflow:auto;box-sizing:border-box;border:1px solid #b6c7ad;border-top:5px solid #a3d55c;border-radius:6px;color:#26332b;background:#fff}#receipt-confirm18>.purchase-top11{position:sticky;top:0;background:#f4f6f2;padding:8px;gap:10px}#receipt-confirm18 h2{font-size:21px;margin-right:auto}.receipt-totals18{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:16px 0;border-block:1px solid #d4ddcc;margin:12px 0}#receipt-confirm18>label{display:flex;flex-direction:row-reverse;justify-content:flex-end;gap:10px;padding:15px;background:#f4f8ee;border:1px solid #c3d3b6;border-radius:4px}#receipt-confirm18 input[type=checkbox]{flex:none;width:20px;height:20px}#receipt-confirm18 small{display:block;margin:10px 0}

.price-choice18{width:min(620px,92vw);max-height:85vh;border:1px solid var(--line,#cdd6ce);border-top:5px solid var(--accent,#9bcf50);border-radius:8px;padding:18px}.price-choice18 header{justify-content:space-between}.price-choices18{display:grid;gap:8px;margin:12px 0}.price-choices18 button{text-align:left;min-height:48px}.price-choices18 small{display:block;font-weight:normal;margin-top:4px}
.customer-actions18{position:sticky;top:0;z-index:1;background:var(--panel,#fff);padding:10px 0;flex-wrap:wrap;border-bottom:1px solid #d2dbd2}.customer-tabs18{display:flex;gap:4px;padding:12px 0}.customer-tabs18 button[aria-selected=true]{background:#e8efdf;font-weight:bold;border-bottom:3px solid #789f45}.customer-fields18:not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:1000px}.customer-fields18>label{display:flex;flex-direction:column;align-items:stretch;text-align:left;gap:4px}.customer-fields18 label:has(input[type=checkbox]){flex-direction:row;align-items:center}.customer-fields18 fieldset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px;border:1px solid #d2dbd2;margin:0 0 12px}.customer-fields18 fieldset label{display:grid;text-align:left;justify-items:stretch;gap:4px}.customer-fields18>#customer-contacts13,.customer-fields18>#customer-addresses13{grid-column:1/-1}.customer-fields18>button{justify-self:start}@media(max-width:600px){.customer-fields18:not([hidden]),.customer-fields18 fieldset{grid-template-columns:1fr}.customer-tabs18{flex-wrap:wrap}.customer-actions18{position:static}}

#sales13:not(.pos15){padding:0;border:0;background:transparent}
#sales13:not(.pos15) #sale-status13:empty{display:none}
#sales13:not(.pos15) #hybrid15>.pilot-search{margin:0 0 8px;align-items:center}
#sales13:not(.pos15) #sales-history-toggle17{margin:0 0 0 auto}
/* DOM parity: phase2.css sale-layout/customer-panel/sale-main. Existing PG actions retain IDs. */
#sales13:not(.pos15) #sale-edit13.sale-layout{display:grid;grid-template-columns:310px minmax(0,1fr);gap:16px;align-items:stretch;border:0;padding:0;background:transparent;border-radius:0}
#sales13 #sale-edit13[hidden]{display:none}
#sales13:not(.pos15) .sale-layout>.customer-panel{background:#e3e5e2;border:1px solid #cdd2cc;border-radius:7px;padding:10px;margin:0;min-width:0}
#sales13:not(.pos15) .sale-layout>.sale-main{display:flex;flex-direction:column;gap:8px;margin:0;padding:10px;min-width:0;border:1px solid #cdd2cc;border-radius:7px;background:#fff;min-height:calc(100dvh - 285px)}
#sales13 .customer-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}
#sales13 .customer-panel-heading h3{margin:0}
#sales13 .customer-live-fields{display:grid;gap:5px}
#sales13 .customer-live-fields .customer-detail{display:grid;gap:2px;margin:0}
#sales13 .customer-detail>span{font-size:11px;color:#53634f}
#sales13 .customer-detail>output{display:block;min-height:29px;padding:5px 7px;background:#fff;border:1px solid #bbc5bd;border-radius:3px;overflow-wrap:anywhere}
#sales13 .customer-panel18 small{display:block;margin-top:14px;color:#62715f}
#sales13:not(.pos15) .sale-main>.actions{position:sticky;top:0;z-index:4;background:#f4f6f2;display:flex;gap:6px;flex-wrap:wrap;padding:6px 0;margin:0;border-bottom:1px solid #cdd2cc}
#sales13:not(.pos15) .sale-main>.actions button{padding:6px 9px;min-height:32px}
#sales13:not(.pos15) .sale-main>.toolbar{display:flex;gap:8px;align-items:center;margin:0}
#sales13:not(.pos15) .sale-main>.toolbar input{flex:1;min-width:0}
#sales13:not(.pos15) .sale-main>.totals{margin-top:5px;padding:5px 10px;gap:24px;align-items:center;background:#eef3e8;border-radius:4px;font-size:11px;display:flex;justify-content:flex-end;flex-wrap:wrap}
#sales13:not(.pos15) .sale-main>.totals>p{margin:0;padding:0;background:transparent}
#sales13:not(.pos15) #sale-lines13{flex:1}
#sales13.pos15 .sale-main{display:contents}
#sales13:not(.pos15) #sale-title13{font-size:21px;margin:0}
#sales13:not(.pos15) #sale-note13{width:100%;box-sizing:border-box}
#sales13:not(.pos15) #sale-lines13{border:0;overflow-x:auto;min-width:0}
#sales13:not(.pos15) .sale-columns18,#sales13:not(.pos15) #sale-lines13 .sale-line18{display:grid;grid-template-columns:100px minmax(170px,1fr) 65px 50px 100px 105px 110px minmax(150px,.7fr);gap:5px 8px;align-items:center;min-width:920px}
#sales13:not(.pos15) .sale-columns18{background:#e9eee3;color:#53634f;padding:9px 8px;font-size:13px}
#sales13:not(.pos15) #sale-lines13 .sale-line18{padding:7px 8px;border:0;border-bottom:1px solid #e4e9e1;background:#fff}
#sales13:not(.pos15) #sale-lines13 .sale-line18:nth-child(odd){background:#f3f6f0}
.sale-line18>strong{font-weight:400}.sale-sku18{display:inline-block;min-width:95px;margin-right:8px;font-weight:600}
#sales13:not(.pos15) .sale-line18>.sale-amounts18{display:contents}
#sales13:not(.pos15) .sale-amounts18>span{grid-row:1;text-align:right;display:block}
#sales13:not(.pos15) .sale-amounts18>span:first-child{grid-column:5}
#sales13:not(.pos15) .sale-amounts18>span:last-child{grid-column:7}
#sales13:not(.pos15) .sale-amounts18 small{display:none}
#sales13:not(.pos15) .sale-amounts18 b{font-weight:400}
#sales13:not(.pos15) .sale-line18>.sale-actions18{grid-column:8;grid-row:1/3;gap:4px;justify-content:flex-end}
#sales13:not(.pos15) .sale-actions18 button{font-size:12px;padding:4px 6px;min-height:32px;border-radius:3px}
#sales13:not(.pos15) .sale-line18>p,#sales13:not(.pos15) .sale-line18>small{grid-column:2/8;margin:0;font-size:12px}
#sales13:not(.pos15) .sale-line18>.sale-adjustment18[hidden]{display:none}
#sales13.pos15 .sale-columns18,#sales13.pos15 .customer-panel18{display:none}
@media(max-width:1100px){#sales13:not(.pos15) #sale-edit13.sale-layout{grid-template-columns:240px minmax(0,1fr)}}
@media(max-width:850px){#sales13:not(.pos15) #sale-edit13.sale-layout{grid-template-columns:minmax(0,1fr)}#sales13:not(.pos15) .customer-live-fields{grid-template-columns:repeat(2,minmax(0,1fr))}#sales13:not(.pos15) .sale-main{min-height:450px}}
@media(max-width:550px){#sales13:not(.pos15) .customer-live-fields{grid-template-columns:1fr}#sales13:not(.pos15) .sale-actions18 button{min-height:44px}#sales13:not(.pos15) .sale-main>.actions{position:static}#sales13:not(.pos15) .sale-main>.toolbar{flex-wrap:wrap}}
/* Varekort: existing Product10 fields and writers, explicit compact tabs. */
#card .card-name18{font-weight:700;margin:4px 0 14px}
#card .card-tabs18{display:flex;gap:4px;flex-wrap:wrap;border-bottom:1px solid #cbd4cb;margin-bottom:14px}
#card .card-tabs18 button{border-radius:4px 4px 0 0;border:1px solid #cbd4cb;border-bottom:0;min-height:40px;padding:8px 16px}
#card .card-tabs18 button[aria-selected=true]{background:#e9f1de;font-weight:700;box-shadow:inset 0 3px 0 var(--accent16,#a4cf58)}
#card [role=tabpanel][hidden]{display:none!important}
#card [role=tabpanel]{min-height:220px}
#card .card-tabs18 button:focus-visible{outline:3px solid #2d75a2;outline-offset:-3px}
/* Keep the legacy fixed shell; only the workspace scrolls vertically. */
body:has(#mainnav18:not([hidden])){height:100dvh;display:flex;flex-direction:column;overflow:hidden}
body:has(#mainnav18:not([hidden]))>.pilot-top,body:has(#mainnav18:not([hidden]))>nav{flex:none}
body:has(#mainnav18:not([hidden]))>.pilot-top{min-height:62px;padding:8px 20px;box-sizing:border-box}
body:has(#mainnav18:not([hidden]))>.pilot-top .brand16{height:42px;width:210px}
body:has(#mainnav18:not([hidden]))>main{flex:1;min-height:0;overflow:auto;padding:10px 16px}
body[data-module18] main>.panel{min-height:100%;box-sizing:border-box}
#mainnav18 button{min-height:44px;padding:10px 24px}#subnav18{padding:6px 16px}#subnav18 button{min-height:36px;padding:6px 16px}
#sales13:has(#sale-edit13:not([hidden]))>h1{display:none}
#sales13:not(.pos15) #pos-settings15,#sales13:not(.pos15) #pos-shift15,#sales13:not(.pos15) #pos-report15,#sales13:not(.pos15) #pos-cash15,#sales13:not(.pos15) #pos-status15{display:none}
#sales13:not(.pos15) #hybrid15>.pilot-search{gap:6px;margin-bottom:8px}
#sales13:not(.pos15) #hybrid15>.pilot-search>button{min-height:36px;padding:6px 12px;border-radius:4px}
#sales13:not(.pos15) #sale-lines13{min-height:300px;background:#fff}
#sales13:not(.pos15) #sale-total13{font-size:21px;font-weight:700;white-space:nowrap}
#sales13[data-theme16=dark]:not(.pos15) #sale-edit13,#sales13[data-theme16=dark]:not(.pos15) #sale-lines13 .sale-line18{background:#293746;color:#e9f1f8}
#sales13[data-theme16=dark]:not(.pos15) .sale-columns18,#sales13[data-theme16=dark]:not(.pos15) #sale-total13,#sales13[data-theme16=dark]:not(.pos15) #sale-edit13>.pilot-search:first-of-type{background:#344657;color:#e9f1f8}
@media(max-width:650px){body:has(#mainnav18:not([hidden]))>.pilot-top{padding:6px 10px;min-height:54px}.pilot-top>span{font-size:11px}body:has(#mainnav18:not([hidden]))>.pilot-top .brand16{width:150px;height:36px}#mainnav18 button{padding:8px 10px;min-height:40px}#sales13:not(.pos15) #sale-lines13{min-height:200px}}
/* Reuse trade.css receiving metadata hierarchy and a real header/body table. */
#purchase-panel11 .receiving-metadata125{display:grid;grid-template-columns:minmax(280px,1fr) minmax(460px,1fr);gap:12px;align-items:start;margin-bottom:8px}
#purchase-panel11 .supplier-area125{display:grid;gap:4px;padding:8px 10px;min-width:0}
#purchase-panel11 .receiving-invoice-head{display:grid;grid-template-columns:minmax(130px,1fr) 155px 160px;gap:8px;padding:8px 0}
#purchase-panel11 .receiving-field18{display:grid;gap:4px;min-width:0}
#purchase-panel11 .receiving-field18 output{padding:7px;border:1px solid #bbc5bd;border-radius:3px;background:#fff;overflow-wrap:anywhere}
#purchase-panel11 .receiving-totals125{display:flex;gap:8px;justify-content:flex-end;align-items:baseline;padding:6px 0}
#purchase-panel11 .receiving-tabs124{display:flex;flex-wrap:wrap;gap:4px;background:transparent;border-bottom:1px solid #cbd4cb;padding:4px 0;margin-bottom:6px}
#purchase-panel11 .receiving-tabs124 button{background:#f5f7f2;color:#26302c;border:1px solid #c5ccc6;border-radius:4px;min-height:34px;padding:6px 10px}
#purchase-panel11 .receipt-table18{max-width:100%;overflow-x:auto;border:1px solid #cbd4cb;min-height:300px;background:#fff;display:block}
#purchase-panel11 .receiving-table{width:100%;border-collapse:collapse;min-width:850px;text-align:left}
#purchase-panel11 .receiving-table th{background:#e9eee3;color:#53634f;padding:9px 8px;font-size:13px}
#purchase-panel11 .receiving-table td{padding:7px 8px;border-bottom:1px solid #e2e8df;font-size:14px}
#purchase-panel11 .receiving-table .invoice-summary11{display:table-row;margin:0;padding:0;border:0;border-radius:0}
#purchase-panel11 .receiving-table tbody tr:nth-child(even){background:#f3f6f0}
#purchase-panel11 .receiving-table td:nth-child(2){width:35%}
#purchase-panel11 .receiving-table td:nth-child(5),#purchase-panel11 .receiving-table td:nth-child(6){text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
#purchase-panel11 .receiving-table button{min-height:36px;padding:6px 8px}
#purchase-panel11 .receiving-line-note18 p{margin:2px 0;font-size:12px}
#purchase-panel11 input[name=invoiceNo]{width:22ch;max-width:100%}
#purchase-panel11 .purchase-top11 button{border-radius:4px}
@media(max-width:1100px){#purchase-panel11 .receiving-metadata125{grid-template-columns:1fr}}
@media(max-width:600px){#purchase-panel11 .receiving-invoice-head{grid-template-columns:1fr 1fr}#purchase-panel11 .receiving-tabs124 button{min-height:44px}}

/* Generic dark-header nav styling must not hide secondary tabs. */
#subnav18 button{color:#233c4d;background:#fff;border:1px solid #c5cec7;border-radius:4px}
#subnav18 button.active{color:#203117;background:#e9f2db;border-color:#9eb982}
#subnav18 button:hover{background:#f0f4ed;color:#203117}

.batch-line18{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;border:1px solid #d4dcd2;padding:10px}.batch-line18 legend{font-weight:600}.batch-line18 label:last-child{grid-column:1/-1}@media(max-width:600px){.batch-line18{grid-template-columns:1fr}}
body[data-screen18=inventory] main>.panel:not(#stock-overview18){display:none!important}.stock-table-wrap18{max-width:100%;overflow-x:auto}#stock-location-list18{display:flex;gap:6px;flex-wrap:wrap}#stock-location-list18 button{min-height:42px}

#sales13:not(.pos15) .sale-line18>.sale-sku18{grid-column:1;grid-row:1;min-width:0;margin:0;overflow-wrap:anywhere}
#sales13:not(.pos15) .sale-line18>strong{grid-column:2;grid-row:1}
#sales13:not(.pos15) .sale-line18>input{grid-column:3;grid-row:1}
#sales13:not(.pos15) .sale-line18>.sale-unit18{grid-column:4;grid-row:1}
#sales13:not(.pos15) .sale-line18>.sale-discount18{grid-column:6;grid-row:1;min-height:32px;padding:4px;font-size:12px}
#sales13:not(.pos15) .sale-pos-sku18{display:none}
#sales13.pos15 .sale-line18>.sale-sku18{display:none}.sale-pos-sku18{font-weight:600;margin-right:8px}
#sales13.pos15 .sale-unit18{grid-column:2;font-size:12px}.sale-line18>.media17-thumb{grid-column:2;grid-row:2}
.count-fields18{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px;margin:12px 0}.count-fields18 label{display:grid;gap:5px}.count-fields18 label:last-child{grid-column:1/-1;display:flex;align-items:center;gap:8px}.count-fields18 input[type=checkbox]{width:auto}@media(max-width:700px){.count-fields18{grid-template-columns:1fr 1fr}.count-fields18 label:first-child{grid-column:1/-1}}

#customer-form13 .customer-fields18 input:not([type=checkbox]),#customer-form13 .customer-fields18 select{width:100%;max-width:none;box-sizing:border-box}
#customer-form13>.customer-fields18{max-width:1000px;justify-self:start}

/* Keep designer dark mode legible after restoring legacy panel hierarchy. */
#sales13[data-theme16=dark]:not(.pos15) .sale-layout>.customer-panel,#sales13[data-theme16=dark]:not(.pos15) .sale-layout>.sale-main{background:#293746;color:#e9f1f8;border-color:#667887}
#sales13[data-theme16=dark] .customer-detail>output{background:#202d39;color:#e9f1f8;border-color:#667887}
#sales13[data-theme16=dark] .customer-detail>span,#sales13[data-theme16=dark] .customer-panel-heading{color:#d4e1ec}
#sales13[data-theme16=dark]:not(.pos15) .totals,#sales13[data-theme16=dark]:not(.pos15) .sale-main>.actions{background:#344657;color:#e9f1f8}

/* Original phase2 customer-detail/customer-post-city/customer-save-bar structure. */
#sales13 .customer-detail input{min-height:29px;width:100%;padding:5px 7px;border-radius:3px;font-size:14px}
#sales13 .customer-detail input[type=checkbox]{width:18px;min-height:18px}
#sales13 .customer-post-city{display:grid;grid-template-columns:75px minmax(0,1fr);gap:8px}
#sales13 .customer-save-bar{display:flex;flex-wrap:wrap;gap:6px;border-top:1px solid #cdd2cc;padding-top:8px}
#customer-inline-status18{flex-basis:100%;font-size:12px}

.document-preview18{width:min(1100px,96vw);max-height:90dvh;padding:0;border:1px solid #a7b59f;border-top:5px solid #a5d657;border-radius:7px;color:#26302c;background:#fff}
.document-preview18>header{display:flex;align-items:center;gap:8px;padding:12px 18px;border-bottom:1px solid #cbd4cb;background:#f4f6f1;position:sticky;top:0}
.document-preview18 h2{margin:0 auto 0 0}.document-preview-body18{padding:18px;overflow-x:auto}.document-preview18::backdrop{background:#26302c66}
@media print{body:has(#sale-preview-dialog18[open])>*:not(#sale-preview-dialog18){display:none!important}#sale-preview-dialog18[open]{position:static;width:100%;max-width:none;max-height:none;border:0;overflow:visible}#sale-preview-dialog18 button{display:none}#sale-preview-dialog18 .document-preview-body18{overflow:visible}#sale-preview-dialog18 table{width:100%}}

/* Original phase2.css: horizontal customer rail, original inline panel icon.
   Namespaced to the PostgreSQL order view; the original responsive single-column
   expanded view is retained at tablet width. No data/control replacement. */
#sales13:not(.pos15) #sale-edit13.sale-layout.customer-collapsed{grid-template-columns:38px minmax(0,1fr)}
#sales13 .customer-panel-heading h3{flex:1}
#sales13 .customer-panel .customer-collapse-toggle{display:inline-flex;align-items:center;justify-content:center;width:32px;min-width:32px;height:32px;padding:0;flex-shrink:0;border-radius:6px;background:linear-gradient(145deg,#b3df75,#9bd04e);border:1px solid #80ac43;color:#30432b;box-shadow:inset 0 1px 0 #ffffff55,0 1px 2px #20311712}
#sales13 .customer-panel .customer-collapse-toggle:hover{background:#b4e177;color:#203117;border-color:#689532}
#sales13 .customer-panel .customer-collapse-toggle:focus-visible{outline:2px solid #3a7437;outline-offset:2px}
#sales13 .customer-collapse-toggle svg{display:block;width:24px;height:24px;pointer-events:none}
#sales13 .customer-collapse-toggle[aria-expanded="false"] svg{transform:rotate(180deg)}
#sales13:not(.pos15) .customer-collapsed>.customer-panel{padding:7px 2px;overflow:hidden!important}
#sales13 .customer-collapsed>.customer-panel>:not(.customer-panel-heading),#sales13 .customer-collapsed .customer-panel-heading>:not(.customer-collapse-toggle){display:none}
#sales13 .customer-collapsed .customer-panel-heading{justify-content:center;margin:0;gap:0}

/* Original product-search.js/phase2.css heading and scroll-table structure. */
#product-search-dialog.product-search18{width:calc(100vw - 24px);max-width:none;height:calc(100dvh - 24px);max-height:none;padding:14px;border:1px solid #cdd2cc;border-top:6px solid #a3d55c;border-radius:8px;color:#263329;background:#fff}
#product-search-dialog.product-search18[open]{display:flex;flex-direction:column}
#product-search-dialog .product-picker-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none;margin-bottom:8px}
#product-search-dialog .product-picker-heading h2{margin:0;padding:0}
#product-search-dialog form{display:flex;align-items:end;gap:8px}
#product-search-dialog form label{flex:1;min-width:0}
#product-search-dialog #product-picker-query{width:100%}
#product-search-dialog>.product-picker-scroll{flex:1 1 0;min-height:0;overflow:auto}
#product-search-dialog .product-picker-scroll table{width:100%;table-layout:fixed}
#product-search-dialog .product-picker-scroll thead{position:sticky;top:0;background:#edf2e8;z-index:1}
#product-search-dialog .product-picker-scroll td{padding:7px;overflow-wrap:anywhere}
#product-search-dialog .product-picker-scroll th:nth-child(1){width:18%}
#product-search-dialog .product-picker-scroll th:nth-child(2){width:44%}
#product-search-dialog .product-picker-scroll th:nth-child(3){width:14%}
#product-search-dialog .product-picker-scroll th:nth-child(4){width:24%}
#product-search-dialog .product-picker-scroll .picker-active td{background:#e6f3d1}
#product-search-dialog .product-picker-scroll [data-result]{cursor:pointer}
#product-search-dialog .product-picker-scroll [data-result]:hover td{background:#dcedc4}
#product-search-dialog .product-picker-scroll [data-result]:focus-visible{outline:3px solid #628d34;outline-offset:-3px}
#product-search-dialog::backdrop{background:#18231c66}

/* Legacy phase2 pointer/landing feedback; adapted selectors, no domain logic. */
#sales13:not(.pos15) .sale-line18{position:relative}
#sales13:not(.pos15) .sale-line18>.sale-sku18{padding-left:28px;box-sizing:border-box}
.linehandle18{position:absolute;left:4px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;font-size:23px;line-height:1;color:#666;opacity:.25;cursor:grab;touch-action:none;user-select:none;transition:opacity .12s ease}
.sale-line18:hover>.linehandle18,.sale-line18:focus-within>.linehandle18{opacity:.55}
.linehandle18:focus-visible{outline:none!important;box-shadow:none!important;color:#555;text-decoration:underline;text-decoration-color:#999;text-underline-offset:3px}
.linehandle18[aria-disabled=true],#sales13.pos15 .linehandle18{display:none}
body.line-move-active18,body.line-move-active18 *{cursor:none!important}
body.line-move-active18 #sale-lines13 .sale-line18:not(.line-moving18){opacity:.72}
body.line-move-active18 #sale-lines13>.line-moving18{opacity:.18;background:#e6efdb!important}
#line-floating18{position:fixed;left:0;top:0;z-index:24;pointer-events:none;transform-origin:center;border:0;background:transparent;border-radius:0;overflow:visible;box-shadow:none;clip-path:inset(-20px -35px -35px 36px);will-change:transform}
#line-floating18::after{content:'';position:absolute;inset:0 0 0 36px;border:1px solid #88ad58;border-radius:6px;pointer-events:none}
#line-floating18>.sale-line18{display:grid;gap:5px 8px;align-items:center;padding:7px 8px;border:0;margin:0;background:white;box-shadow:0 10px 24px #18320f30}
#line-floating18 .linehandle18,.line-moving18 .linehandle18{visibility:hidden}
#line-floating18 .sale-sku18{grid-column:1;grid-row:1;padding-left:28px;box-sizing:border-box}
#line-floating18 strong{grid-column:2;grid-row:1}#line-floating18 .sale-pos-sku18{display:none}
#line-floating18 input{grid-column:3;grid-row:1;min-width:0;width:100%}
#line-floating18 .sale-unit18{grid-column:4;grid-row:1}#line-floating18 .sale-discount18{grid-column:6;grid-row:1}
#line-floating18 .sale-amounts18{display:contents}#line-floating18 .sale-amounts18 small{display:none}
#line-floating18 .sale-amounts18>span{grid-row:1;text-align:right}#line-floating18 .sale-amounts18>span:first-child{grid-column:5}#line-floating18 .sale-amounts18>span:last-child{grid-column:7}
#line-floating18 .sale-actions18{grid-column:8;grid-row:1/3;gap:4px;justify-content:flex-end}#line-floating18 p,#line-floating18 small{grid-column:2/8;margin:0}
#line-drop-marker18{position:fixed;z-index:26;height:10px;width:12px;background:#628d34;border:0;border-radius:0;box-shadow:none;clip-path:polygon(0 0,100% 50%,0 100%);pointer-events:none}
@media(prefers-reduced-motion:reduce){.linehandle18{transition:none}}
/* Keep the lifted SKU/name inside their original grid columns, including long identifiers. */
#line-floating18 .sale-sku18{min-width:0;margin:0;overflow-wrap:anywhere}
#line-floating18 strong{min-width:0;overflow-wrap:anywhere;font-weight:400}

/* Existing phase2 text/blank presentation; no stock or amount controls. */
#sale-lines13 .sale-presentation18>.textline,#sale-lines13 .sale-presentation18>.blankline-space18{grid-column:2/6;min-width:0;width:100%;min-height:32px}
#sale-lines13 .sale-presentation18 .text-format-tools{grid-column:6/8;display:flex;gap:4px;justify-content:flex-end}
#sale-lines13 .sale-presentation18>.sale-remove18{grid-column:8;justify-self:end}
#sale-lines13 .sale-presentation18 .textline{font-family:inherit;font-size:inherit}
#sale-lines13 .sale-presentation18 .text-format-tools button{min-width:30px}

/* phase2.css:166,173–199: description-aligned text and selected-row formatting. */
#sales13:not(.pos15) #sale-lines13 .sale-presentation18>.textline,
#line-floating18 .sale-presentation18>.textline{grid-column:2;grid-row:1;min-width:0;width:100%;max-width:none;height:30px;min-height:30px;font-size:15px;text-align:left}
#sales13:not(.pos15) #sale-lines13 .sale-presentation18>.blankline-space18{grid-column:2;grid-row:1;height:30px;min-height:30px}
#sales13:not(.pos15) #sale-lines13 .sale-presentation18>.text-format-tools,
#line-floating18 .sale-presentation18>.text-format-tools{grid-column:3/8;grid-row:1;justify-content:flex-start;align-items:center;gap:4px}
#sales13 #sale-lines13 .sale-presentation18 .text-format-tools button{display:none;height:24px;min-height:24px;min-width:0;padding:2px 7px;border-color:transparent}
#sales13 #sale-lines13 .sale-presentation18.formatting-visible .text-format-tools button{display:inline-flex;align-items:center;justify-content:center}
#sales13 #sale-lines13 .sale-presentation18 .text-format-tools button.active,
#line-floating18 .sale-presentation18 .text-format-tools button.active{background:#666666!important;border-color:#666666!important;color:#ffffff!important}
#sales13.pos15 #sale-lines13 .sale-presentation18>.textline,
#sales13.pos15 #sale-lines13 .sale-presentation18>.blankline-space18{grid-column:1/3;grid-row:1;text-align:left;min-width:0;width:100%;height:30px;min-height:30px}
#sales13.pos15 #sale-lines13 .sale-presentation18>.text-format-tools{grid-column:1/3;grid-row:2;justify-content:flex-start}
#sales13.pos15 #sale-lines13 .sale-presentation18>.sale-remove18{grid-column:3;grid-row:1}
/* Direct field rules from C phase2.css; retain the current responsive container. */
#sales13:not(.pos15) #sale-lines13 .sale-presentation18>.textline,
#line-floating18 .sale-presentation18>.textline{padding:3px 5px;line-height:1.15;border:1px solid transparent;background:transparent;border-radius:3px;text-align:start}
#sales13:not(.pos15) #sale-lines13 .sale-presentation18>.textline:hover{border-color:#d3ddcd;background:#fff;color:#27312d}
#sales13:not(.pos15) #sale-lines13 .sale-presentation18>.textline:focus{border-color:#628d34;background:#fff;color:#27312d}
#line-floating18 .sale-presentation18 .text-format-tools button{display:none;height:24px;min-height:24px;padding:2px 7px;border-color:transparent}
#line-floating18 .sale-presentation18.formatting-visible .text-format-tools button{display:inline-flex;align-items:center;justify-content:center}

/* C phase2.css:122,163,167,169–172: compact presentation rows and original remove control. */
#sales13:not(.pos15) #sale-lines13 .sale-presentation18,
#line-floating18>.sale-presentation18{height:34px;min-height:34px;box-sizing:border-box;padding:1px 6px;border-bottom:0;row-gap:0}
#sales13:not(.pos15) #sale-lines13 .sale-presentation18.blankline,
#line-floating18>.sale-presentation18.blankline{height:30px;min-height:30px}
#sales13:not(.pos15) #sale-lines13 .sale-presentation18.blankline>.blankline-space18,
#line-floating18>.sale-presentation18.blankline>.blankline-space18{height:28px;min-height:28px}
#sales13:not(.pos15) #sale-lines13 .sale-presentation18>.sale-remove18,
#line-floating18>.sale-presentation18>.sale-remove18{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;min-width:28px;min-height:28px;padding:0;font-size:25px;line-height:1;color:#666;border-color:transparent;background:transparent}
#sales13:not(.pos15) #sale-lines13 .sale-presentation18>.sale-remove18:hover{color:#9c2727;background:#f6e5e3}

/* Reference C phase2.css table and colspans; bound controls/writers remain unchanged. */
#sales13:not(.pos15) .sale-table18{width:100%;table-layout:fixed;border-collapse:collapse;font-size:15px}
#sales13:not(.pos15) .sale-table18 .sale-columns18{display:table-row;min-width:0}
#sales13:not(.pos15) .sale-table18 .sale-line18{display:table-row!important;min-width:0;padding:0;border:0}
#sales13:not(.pos15) .sale-table18 th{padding:5px 6px;font-size:11px;background:#e9eee6;text-align:left}
#sales13:not(.pos15) .sale-table18 th:nth-child(2){width:44px}
#sales13:not(.pos15) .sale-table18 th:nth-child(3){width:64px}
#sales13:not(.pos15) .sale-table18 th:nth-child(4){width:105px}
#sales13:not(.pos15) .sale-table18 th:nth-child(5){width:95px}
#sales13:not(.pos15) .sale-table18 th:nth-child(6){width:120px}
#sales13:not(.pos15) .sale-table18 th:nth-child(7){width:34px}
#sales13:not(.pos15) .sale-table18 td{height:34px;padding:1px 6px;border:0;line-height:1.15;vertical-align:middle}
#sales13:not(.pos15) .sale-table18 .sale-desc-cell18{position:relative;padding-left:36px}
#sales13:not(.pos15) .sale-table18 .compact-item{display:flex;align-items:center;gap:5px;min-width:0}
#sales13:not(.pos15) .sale-table18 .line-sku-space,#sales13:not(.pos15) .sale-table18 .sale-sku18{width:150px;min-width:150px;flex:0 0 150px;margin:0;padding:0}
#sales13:not(.pos15) .sale-table18 .textline{flex:1;width:0;min-width:0;max-width:none;box-sizing:border-box}
#sales13:not(.pos15) .sale-table18 .text-format-tools{justify-content:flex-start}
#sales13:not(.pos15) .sale-table18 .line-controls{text-align:right;padding-right:4px}
#sales13:not(.pos15) .sale-table18 .sale-remove18{height:28px;width:28px;min-width:28px;min-height:28px;padding:0;background:transparent;border-color:transparent;color:#666;font-size:25px}
#sales13:not(.pos15) .sale-table18 .blankline td{height:30px}
#sales13:not(.pos15) .sale-table18 .quantity-cell18 input{width:100%;min-width:0}
#sales13:not(.pos15) .sale-table18 .sale-amounts18{display:block}
#sales13:not(.pos15) .sale-table18 .sale-amounts18 small,#sales13:not(.pos15) .sale-table18 .total-cell18 small{display:none}
#sales13:not(.pos15) .sale-table18 .sale-actions18{justify-content:flex-start;flex-wrap:wrap}
#sales13:not(.pos15) .sale-table18 tbody tr:nth-child(even){background:#f6f8f4}
#sales13:not(.pos15) .sale-table18 tbody tr:hover{background:#edf3e7}
#sales13.pos15 .sale-table18,#sales13.pos15 .sale-table18 tbody{display:block;width:100%}
#sales13.pos15 .sale-table18 thead{display:none}
#sales13:not(.pos15) .sale-main{container-type:inline-size}
@container(max-width:1000px){#sales13:not(.pos15) .sale-table18 th:nth-child(2){width:40px}#sales13:not(.pos15) .sale-table18 th:nth-child(3){width:54px}#sales13:not(.pos15) .sale-table18 th:nth-child(4){width:88px}#sales13:not(.pos15) .sale-table18 th:nth-child(5){width:80px}#sales13:not(.pos15) .sale-table18 th:nth-child(6){width:100px}#sales13:not(.pos15) .sale-table18 th:nth-child(7){width:30px}}
#sales13:not(.pos15) .sale-table18 .textline{height:30px;min-height:30px;padding:3px 5px;line-height:1.15;border:1px solid transparent;background:transparent;border-radius:3px;font-size:15px;text-align:start}
#sales13:not(.pos15) .sale-table18 .textline:hover{border-color:#d3ddcd;background:#fff;color:#27312d}
#sales13:not(.pos15) .sale-table18 .textline:focus{border-color:#628d34;background:#fff;color:#27312d}

@container(max-width:1000px){#sales13:not(.pos15) .sale-table18 .line-sku-space,#sales13:not(.pos15) .sale-table18 .sale-sku18{width:120px;min-width:120px;flex-basis:120px}}

#sales13:not(.pos15) #sale-lines13 .sale-table18 tbody tr:nth-child(odd){background:#fff}
#sales13:not(.pos15) #sale-lines13 .sale-table18 tbody tr:nth-child(even){background:#f6f8f4}
#sales13:not(.pos15) #sale-lines13 .sale-table18 tbody tr:hover{background:#edf3e7}
#sales13:not(.pos15) .sale-table18 .sale-line18:hover .linehandle18,#sales13:not(.pos15) .sale-table18 .sale-line18:focus-within .linehandle18{opacity:.55}

/* Preserve the existing Designer dark profile on the native table. */
#sales13[data-theme16=dark]:not(.pos15) #sale-lines13 .sale-table18 tbody tr{background:#293746;color:#e9f1f8}
#sales13[data-theme16=dark]:not(.pos15) #sale-lines13 .sale-table18 th{background:#344657;color:#e9f1f8}
#sales13[data-theme16=dark]:not(.pos15) #sale-lines13 .sale-table18 .textline:not(:hover):not(:focus){color:#e9f1f8}

/* phase2.css floating table and monetary alignment, retained with native cells. */
#line-floating18>table{background:#fff;box-shadow:0 10px 24px #18320f30}
body.line-move-active18 #sale-lines13 .line-moving18{opacity:.18;background:#e6efdb!important}
#sales13:not(.pos15) .sale-table18 th:nth-child(3),#sales13:not(.pos15) .sale-table18 .quantity-cell18,#sales13:not(.pos15) .sale-table18 .quantity-cell18 input{text-align:center}
#sales13:not(.pos15) .sale-table18 th:nth-child(4),#sales13:not(.pos15) .sale-table18 th:nth-child(5),#sales13:not(.pos15) .sale-table18 th:nth-child(6),#sales13:not(.pos15) .sale-table18 .unit-price-cell18,#sales13:not(.pos15) .sale-table18 .discount-cell18,#sales13:not(.pos15) .sale-table18 .total-cell18{text-align:right}
#sales13:not(.pos15) .sale-table18 th:nth-child(4),#sales13:not(.pos15) .sale-table18 th:nth-child(5){padding-right:12px}
#sales13:not(.pos15) .sale-table18 th:nth-child(6){padding-right:8px}

/* C: phase2.css .sale-main.panel and revision12.css context/header placement. */
#sales13 .sale-context-frame18[hidden]{display:none!important}
#sales13:not(.pos15) .sale-context-frame18{display:flex;align-items:center;gap:16px;min-width:0}
#sales13:not(.pos15) .sale-context-frame18>.sale-customer-context{font-size:18px;font-weight:700;color:#354437;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:0 1 auto}
#sales13:not(.pos15) .sale-context-frame18>label{display:flex;align-items:center;gap:8px;flex:1;min-width:100px;margin:0;font-size:12px;white-space:nowrap}
#sales13:not(.pos15) .sale-context-frame18>label input{width:100%;min-width:0;flex:1;height:28px;padding:3px 6px;font-size:15px;font-weight:400;background:transparent;border:1px solid transparent;outline:none;box-shadow:none}
#sales13:not(.pos15) .sale-context-frame18>label input:hover{background:#f5f7f3;border-color:#cbd3c9}
#sales13:not(.pos15) .sale-context-frame18>label input:focus{background:white;border-color:#3a7437}
#sales13:not(.pos15) .sale-context-frame18 #sale-title13{font-size:18px;line-height:24px;margin:0;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#sales13:not(.pos15) .sale-footer-frame18{flex:none;margin-top:6px;display:flex;flex-direction:column;gap:6px}
#sales13:not(.pos15) .sale-footer-frame18>.pilot-search{display:flex;gap:6px;flex-wrap:wrap;margin:0;padding:0;position:static;border:0;background:transparent}
#sales13:not(.pos15) .sale-footer-frame18 button{min-height:34px;padding:6px 9px;border-radius:4px}
@media(min-width:1101px){
 body[data-module18=SALG]:has(#sales13:not(.pos15) #sale-edit13:not([hidden]))>main{overflow:hidden}
 #sales13:not(.pos15):has(#sale-edit13:not([hidden])){height:100%;min-height:0;display:flex;flex-direction:column}
 #sales13:not(.pos15) #sale-edit13.sale-layout{flex:1;min-height:0;grid-template-rows:28px minmax(0,1fr);row-gap:8px}
 #sales13:not(.pos15) .sale-layout>.customer-panel{grid-column:1;grid-row:1/3;overflow:auto}
 #sales13:not(.pos15) .sale-context-frame18{grid-column:2;grid-row:1}
 #sales13:not(.pos15) .sale-layout>.sale-main{grid-column:2;grid-row:2;min-height:0;overflow:hidden;padding:9px 10px;gap:0}
 #sales13:not(.pos15) .sale-main>.toolbar{margin:5px 0;gap:6px;flex:none}
 #sales13:not(.pos15) .sale-main>.toolbar>input,#sales13:not(.pos15) .sale-main>.toolbar>button{min-height:32px;height:32px;padding:5px 9px;border-radius:4px}
 #sales13:not(.pos15) #sale-lines13{flex:1;min-height:70px;overflow:auto}
 #sales13:not(.pos15) .sale-main>.totals{margin-top:6px;padding:8px 12px;flex:none}
 #sales13:not(.pos15) .sale-main>p.muted:last-of-type{margin:3px 0;font-size:11px;flex:none}
}
#sales13[data-theme16=dark]:not(.pos15) .sale-context-frame18>.sale-customer-context{color:#e9f1f8}
@media(max-width:1100px){#sales13:not(.pos15) .sale-context-frame18{flex-wrap:wrap;grid-column:1/-1}#sales13:not(.pos15) .sale-context-frame18 #sale-title13{max-width:100%}}

/* Designer wrapper remains in the shared order-height chain. */
@media(min-width:1101px){#sales13:not(.pos15):has(#sale-edit13:not([hidden]))>#workspace16{display:flex;flex-direction:column;flex:1;min-height:0}}

/* Reference C phase2.css: native table line-height and main-panel chrome. */
#sales13:not(.pos15) .sale-layout>.sale-main{font-size:15px;line-height:1.35;border-color:#d1d8d1;border-radius:5px}
#sales13:not(.pos15) .sale-main>.totals{margin-top:5px;padding:5px 10px;font-size:11px;gap:24px}
#sales13:not(.pos15) .sale-table18 th:first-child{padding-left:36px}
#sales13:not(.pos15) .sale-table18 .sale-heading-item18{display:flex;align-items:center;gap:5px;min-width:0}
#sales13:not(.pos15) .sale-table18 .sale-heading-item18>span:first-child{width:150px;min-width:150px;flex:0 0 150px}
@container(max-width:1000px){#sales13:not(.pos15) .sale-table18 .sale-heading-item18>span:first-child{width:120px;min-width:120px;flex-basis:120px}}
/* Reference C desktop shell: 64px identity, 44px navigation, 47px subtabs.
   Keep the new FaktumONE identity and existing navigation handlers. */
@media(min-width:1101px){
 body:has(#mainnav18:not([hidden]))>.pilot-top{min-height:64px;padding:9px 18px}
 #mainnav18{border:0;padding:0 18px}
 #subnav18 button{min-height:34px}
}

/* Original order title remains separate from the newer document note. */
#sales13:not(.pos15) .sale-footer-frame18>label{display:flex;align-items:center;gap:8px;font-size:12px;margin:0;min-width:0}
#sales13:not(.pos15) .sale-footer-frame18>label input{flex:1;min-width:0;height:28px;padding:3px 6px}

/* Original phase2 description field; POS retains its compact name presentation. */
#sales13:not(.pos15) .sale-description18{display:block;width:100%;min-width:0;max-width:none;font-weight:400}
.sale-description18{display:none}
#sales13:not(.pos15) .sale-desc-cell18 .compact-item>strong{flex:1;min-width:0;max-width:none}
#sales13:not(.pos15) .sale-desc-cell18 .compact-item>strong>span:not(.sale-pos-sku18){display:none}

#sales13:not(.pos15) .sale-description18{height:30px;min-height:30px;font-size:15px;padding:3px 5px;border:1px solid transparent;border-radius:3px;background:transparent;box-shadow:none;color:#000}
#sales13:not(.pos15) .sale-description18:hover{border-color:#d3ddcd;background:#fff}
#sales13:not(.pos15) .sale-description18:focus{border-color:#628d34;background:#fff;outline:none}

#sales13:not(.pos15) .sale-table18 .sale-sku18{overflow:hidden;white-space:nowrap}
#sales13[data-theme16=dark]:not(.pos15) .sale-description18:not(:hover):not(:focus){color:#e9f1f8}

/* Original sales3 discount row, scoped to the integrated order table. */
#sale-lines13 .s3-discount{color:#4b762a}#sale-lines13 .s3-discount td:last-child{white-space:nowrap}#sale-lines13 .s3-discount td:last-child button{min-width:28px;padding:5px 6px;margin-right:3px;font-size:12px}#sale-lines13 .s3-discount .num{text-align:right}#sale-lines13:has(.s3-discount) th:nth-child(7){width:124px}

/* Measured C sales3/phase2 discount geometry, 1440px desktop. */
#sales13:not(.pos15) #sale-lines13 .sale-table18 tr.s3-discount{padding:0;margin:0;border:0;border-radius:0;box-shadow:none;background:transparent;height:34px}
#sales13:not(.pos15) #sale-lines13:has(.s3-discount) .sale-table18 th:nth-child(7){width:124px}
#sales13:not(.pos15) #sale-lines13 .sale-table18 tr.s3-discount td{padding:1px 6px;height:34px;border:0;line-height:1.15}
#sales13:not(.pos15) #sale-lines13 .sale-table18 tr.s3-discount td:first-child{padding-left:36px}
#sales13:not(.pos15) #sale-lines13 .sale-table18 tr.s3-discount td.num{padding-right:8px;text-align:center}
#sales13:not(.pos15) #sale-lines13 .sale-table18 tr.s3-discount button{min-height:0;height:auto;border:1px solid #c5ccc6;border-radius:4px;background:#fff;color:#26302c;box-shadow:none;line-height:1.15;font-weight:400}
#sales13:not(.pos15) #sale-lines13 .sale-table18 tr.s3-discount .discount-title18{padding:4px;font-size:11px;margin:0}
#sales13:not(.pos15) #sale-lines13 .sale-table18 tr.s3-discount .discount-actions18 button{padding:5px 6px;font-size:12px;margin:0 3px 0 0;min-width:28px}
#sales13:not(.pos15) #sale-lines13 .sale-table18 tr.s3-discount button:hover{background:#eaf4dc}
#sales13[data-theme16=dark]:not(.pos15) #sale-lines13 .sale-table18 tr.s3-discount{color:#b4d7a4;background:#293746}

#sales13:not(.pos15) #sale-lines13 .sale-table18 tr.s3-discount:nth-child(n){background:transparent}
#sales13:not(.pos15) #sale-lines13 .sale-table18 tr.s3-discount:hover{background:#edf3e7}
#sales13:not(.pos15) #sale-lines13 .sale-table18 tr.s3-discount td.line-controls{text-align:left}
#sales13[data-theme16=dark]:not(.pos15) #sale-lines13 .sale-table18 tr.s3-discount:nth-child(n){background:#293746}

/* Reference C phase2 first-cell clipping and table-row computed layout. */
#sales13:not(.pos15) #sale-lines13 .sale-table18 tr.s3-discount{position:static;inset:auto;min-width:0;grid-template-columns:none;align-items:normal;gap:normal}
#sales13:not(.pos15) #sale-lines13 .sale-table18 tr.s3-discount td:first-child{align-items:center;gap:5px;overflow:hidden;text-align:left;white-space:nowrap}

/* Package presentation: reference C sales3.css / phase2.css, scoped to PostgreSQL controls. */
#package-dialog18 .s3-entry{padding:12px 0;border-bottom:1px solid #d3ddcb}
#package-dialog18 .s3-entry button{margin-left:8px}
#package-dialog18 .s3-part{display:flex;gap:10px;align-items:end;margin:12px 0}
#package-dialog18 .s3-part input{width:120px}
#sales13:not(.pos15) .sale-table18:has(.s3-package) th:nth-child(7){width:124px}
#sales13:not(.pos15) #sale-lines13 .sale-table18 tr.s3-package{position:static;inset:auto;padding:0;margin:0;border:0;border-radius:0;box-shadow:none;height:34px;grid-template-columns:none;align-items:normal;gap:normal}
#sales13:not(.pos15) #sale-lines13 .sale-table18 tr.s3-package td{height:34px;padding:1px 6px;border:0;line-height:1.15;white-space:nowrap;overflow:hidden}
#sales13:not(.pos15) #sale-lines13 .sale-table18 tr.s3-package td:first-child{padding-left:36px;text-align:left}
#sales13:not(.pos15) #sale-lines13 .sale-table18 tr.s3-package td.num{text-align:center;padding-right:8px}
#sales13:not(.pos15) #sale-lines13 .sale-table18 tr.s3-package button{min-height:0;height:auto;border:1px solid #c5ccc6;border-radius:4px;background:#fff;color:#4b762a;box-shadow:none;line-height:1.15;font-weight:bold;font-size:13px;padding:5px 7px;margin:0}
#sales13:not(.pos15) #sale-lines13 .sale-table18 tr.s3-package td:first-child>button{font-size:11px;padding:4px}
#sales13:not(.pos15) #sale-lines13 .sale-table18 tr.s3-package button:hover{background:#eaf4dc}
#sales13.pos15 .s3-package{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
#sales13.pos15 .s3-package>td{display:flex;gap:4px}
@media(max-width:768px){#package-dialog18 .s3-part{flex-wrap:wrap}#package-dialog18 .s3-entry button{margin:5px}}

/* Reference C button interaction policy; inherited custom theme variables are intentionally not copied. */
#package-dialog18 button,#sales13 .s3-package button{user-select:none}

/* Original app.js modal hierarchy; app.css + revision12.css + trade.css final rules. */
#package-dialog18{box-sizing:border-box;display:none;width:min(960px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:92dvh;padding:0;overflow:hidden;border:1px solid #cbd3c9;border-top:5px solid #a3d55c;border-radius:7px;background:white;color:#26302c;box-shadow:0 20px 80px #14201940;font:14px 'Segoe UI',Arial,sans-serif}
#package-dialog18[open]{display:flex;flex-direction:column}
#package-dialog18::backdrop{background:#202b2459}
#package-dialog18>.ca-dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap;flex:none;margin:0;padding:16px 20px;border-bottom:1px solid #d1d8d1;background:#f5f7f3}
#package-dialog18 .ca-dialog-heading h2{padding:0;margin:0;min-width:0;font-size:20px;line-height:1.25}
#package-dialog18 .ca-dialog-top-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-left:auto}
#package-dialog18>.ca-dialog-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px 20px}
#package-dialog18 label{display:flex;gap:6px;align-items:center;margin:7px 0}
#package-dialog18 input,#package-dialog18 select{font:inherit;border:1px solid #bbc5bd;border-radius:3px;padding:7px;background:white;min-width:0;min-height:0}
#package-dialog18 button{font:inherit;cursor:pointer;border:1px solid #454d47;border-radius:4px;background:#454d47;padding:8px 12px;color:white;font-weight:600;box-shadow:0 1px 2px #00000014;min-height:0}
#package-dialog18 button[data-package-close18],#package-dialog18 button[data-package-close18]:hover{background:#edf0ec;color:#354139;border-color:#a4b0a3;font-weight:600;box-shadow:none}
#package-dialog18 button:not([data-package-close18]):hover{background:#454d47;color:white}
#package-dialog18 button:disabled{opacity:.5;cursor:default}
#package-dialog18 :focus-visible{outline:3px solid #3a7437;outline-offset:0}
#package-dialog18 .package-status18:empty{display:none}
#package-dialog18 .package-status18:not(:empty){padding:10px;margin:8px 0;white-space:pre-wrap}
@media(max-width:700px){#package-dialog18>.ca-dialog-heading,#package-dialog18>.ca-dialog-scroll{padding:10px}}

/* Reference C input focus: app.css uses border, not an extra outline. */
#package-dialog18 input:focus,#package-dialog18 select:focus{border-color:#3a7437;outline:none;outline-color:black}

/* Match final reference C computed minimum sizing and modal text-selection policy. */
#package-dialog18 button,#package-dialog18 input,#package-dialog18 select{min-height:auto}
#package-dialog18 button{user-select:text}

/* Calendar: phase2.css original declarations, scoped to PostgreSQL component. */
#calendar18.cal-workbench{height:100%;display:flex;flex-direction:column;min-height:0}
#calendar18 .cal-toolbar{flex:none}
#calendar18 .calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(100px,1fr));gap:1px;background:#cbd3c6;overflow:auto;flex:1;min-height:0;border:1px solid #cbd3c6}
#calendar18 .calendar-grid.day{grid-template-columns:1fr}
#calendar18 .calendar-day{background:white;min-height:100px;padding:7px}
#calendar18 .calendar-day h3{margin:0 0 8px;font-size:13px}
#calendar18 .calendar-day button.event{display:block;width:100%;text-align:left;margin:5px 0;border-left:4px solid #78a745;font-size:12px;padding:6px;white-space:normal}
#calendar18 .calendar-day button.event.private{border-left-color:#8b79b2}
#calendar18 .calendar-day .absence{background:#fbeee8;padding:5px;font-size:12px}
:is(#booking-dialog18,#case-history-dialog18) .bookingform{display:grid;grid-template-columns:1fr 1fr;gap:8px}
:is(#booking-dialog18,#case-history-dialog18) .bookingform label{display:grid}
:is(#booking-dialog18,#case-history-dialog18) .bookingform .wide{grid-column:1/-1}
:is(#booking-dialog18,#case-history-dialog18) .bookingform select{max-width:100%}
:is(#booking-dialog18,#case-history-dialog18) .bookingform textarea{min-height:65px}
body[data-screen18=calendar] main>section:not(#calendar18){display:none!important}#calendar18{height:100%;min-height:0}#calendar18 .row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}#calendar18 .between{justify-content:space-between}:is(#booking-dialog18,#case-history-dialog18){width:min(720px,94vw);max-height:90vh;overflow:auto}:is(#booking-dialog18,#case-history-dialog18) .ca-dialog-heading{display:flex;justify-content:space-between;align-items:center}:is(#booking-dialog18,#case-history-dialog18) .actions{display:flex;gap:8px;margin-top:12px}#booking-customer-results18{display:flex;flex-wrap:wrap;gap:4px}

/* Original app.js modal hierarchy; app.css + revision12.css + trade.css final rules. */
:is(#booking-dialog18,#case-history-dialog18){box-sizing:border-box;display:none;width:min(960px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:92dvh;padding:0;overflow:hidden;border:1px solid #cbd3c9;border-top:5px solid #a3d55c;border-radius:7px;background:white;color:#26302c;box-shadow:0 20px 80px #14201940;font:14px 'Segoe UI',Arial,sans-serif}
:is(#booking-dialog18,#case-history-dialog18)[open]{display:flex;flex-direction:column}
:is(#booking-dialog18,#case-history-dialog18)::backdrop{background:#202b2459}
:is(#booking-dialog18,#case-history-dialog18)>.ca-dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap;flex:none;margin:0;padding:16px 20px;border-bottom:1px solid #d1d8d1;background:#f5f7f3}
:is(#booking-dialog18,#case-history-dialog18) .ca-dialog-heading h2{padding:0;margin:0;min-width:0;font-size:20px;line-height:1.25}
:is(#booking-dialog18,#case-history-dialog18) .ca-dialog-top-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-left:auto}
:is(#booking-dialog18,#case-history-dialog18)>.ca-dialog-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px 20px}
:is(#booking-dialog18,#case-history-dialog18) label{display:flex;gap:6px;align-items:center;margin:7px 0}
:is(#booking-dialog18,#case-history-dialog18) input,:is(#booking-dialog18,#case-history-dialog18) select{font:inherit;border:1px solid #bbc5bd;border-radius:3px;padding:7px;background:white;min-width:0;min-height:0}
:is(#booking-dialog18,#case-history-dialog18) button{font:inherit;cursor:pointer;border:1px solid #454d47;border-radius:4px;background:#454d47;padding:8px 12px;color:white;font-weight:600;box-shadow:0 1px 2px #00000014;min-height:0}
:is(#booking-dialog18,#case-history-dialog18) button[data-calendar-close18],:is(#booking-dialog18,#case-history-dialog18) button[data-calendar-close18]:hover{background:#edf0ec;color:#354139;border-color:#a4b0a3;font-weight:600;box-shadow:none}
:is(#booking-dialog18,#case-history-dialog18) button:not([data-calendar-close18]):hover{background:#454d47;color:white}
:is(#booking-dialog18,#case-history-dialog18) button:disabled{opacity:.5;cursor:default}
:is(#booking-dialog18,#case-history-dialog18) :focus-visible{outline:3px solid #3a7437;outline-offset:0}
:is(#booking-dialog18,#case-history-dialog18) [role=status]:empty{display:none}
:is(#booking-dialog18,#case-history-dialog18) [role=status]:not(:empty){padding:10px;margin:8px 0;white-space:pre-wrap}
@media(max-width:700px){:is(#booking-dialog18,#case-history-dialog18)>.ca-dialog-heading,:is(#booking-dialog18,#case-history-dialog18)>.ca-dialog-scroll{padding:10px}}

/* Reference C input focus: app.css uses border, not an extra outline. */
:is(#booking-dialog18,#case-history-dialog18) input:focus,:is(#booking-dialog18,#case-history-dialog18) select:focus,:is(#booking-dialog18,#case-history-dialog18) textarea:focus{border-color:#3a7437;outline:none;outline-color:black}

/* Match final reference C computed minimum sizing and modal text-selection policy. */
:is(#booking-dialog18,#case-history-dialog18) button,:is(#booking-dialog18,#case-history-dialog18) input,:is(#booking-dialog18,#case-history-dialog18) select{min-height:auto}
:is(#booking-dialog18,#case-history-dialog18) button{user-select:text}


:is(#booking-dialog18,#case-history-dialog18) .bookingform label{display:grid;gap:6px;margin:7px 0}:is(#booking-dialog18,#case-history-dialog18) textarea{font:inherit;border:1px solid #bbc5bd;border-radius:3px;padding:7px;background:white;min-width:0;min-height:65px}:is(#booking-dialog18,#case-history-dialog18) button.primary{background:#a3d55c;color:#263916;border-color:#7b9c43;font-weight:700}:is(#booking-dialog18,#case-history-dialog18) .bookingform input,:is(#booking-dialog18,#case-history-dialog18) .bookingform select{width:100%;box-sizing:border-box}:is(#booking-dialog18,#case-history-dialog18) #booking-customer-find18{padding:3px 7px;justify-self:start}body[data-screen18=calendar]>main{display:flex;flex-direction:column;overflow:hidden}body[data-screen18=calendar] main>:not(#calendar18){display:none!important}#calendar18.cal-workbench{flex:1;height:auto;min-height:0}#calendar18 .cal-toolbar{padding:12px;margin-bottom:10px}#calendar-status18:empty{display:none}#calendar18 input,#calendar18 select{font:inherit;padding:7px;min-height:0}#calendar18 button{font:inherit;min-height:0;padding:8px 12px;font-weight:600}#calendar18 h1{font-size:20px;margin:0 0 8px}

:is(#booking-dialog18,#case-history-dialog18) label:has(#bcustomer){position:relative}:is(#booking-dialog18,#case-history-dialog18) #bcustomer{padding-right:90px;height:34px}:is(#booking-dialog18,#case-history-dialog18) #booking-customer-find18{position:absolute;right:0;bottom:0;height:34px;padding:7px;border-radius:0 3px 3px 0}:is(#booking-dialog18,#case-history-dialog18)>.ca-dialog-scroll>.muted{font-size:13px;color:#6b7b6b}
/* Match original select row heights and app.css .muted typography. */
:is(#booking-dialog18,#case-history-dialog18) #border,:is(#booking-dialog18,#case-history-dialog18) #binvoice{height:34px}:is(#booking-dialog18,#case-history-dialog18)>.ca-dialog-scroll>.muted{font-size:12px;color:#657269}

:is(#booking-dialog18,#case-history-dialog18) label:has(#border),:is(#booking-dialog18,#case-history-dialog18) label:has(#binvoice){position:relative}:is(#booking-dialog18,#case-history-dialog18) #booking-sale-find18,:is(#booking-dialog18,#case-history-dialog18) #booking-invoice-find18{position:absolute;right:0;bottom:0;height:34px;padding:7px;border-radius:0 3px 3px 0}:is(#booking-dialog18,#case-history-dialog18) #binvoice{padding-right:120px}:is(#booking-dialog18,#case-history-dialog18) #border:not([readonly]){padding-right:80px}#booking-related-results18{display:flex;gap:4px;flex-wrap:wrap}

/* Original app.css reminder label.stack and textarea sizing, separate from compact booking note. */
:is(#booking-dialog18,#case-history-dialog18).reminder-dialog18 label.stack{display:grid;gap:5px}:is(#booking-dialog18,#case-history-dialog18).reminder-dialog18 textarea{width:100%;min-height:120px}

/* Original case-flow.js stack fields; no new design. */
:is(#booking-dialog18,#case-history-dialog18).case-dialog18 label.stack{display:grid;gap:5px}:is(#booking-dialog18,#case-history-dialog18).case-dialog18 textarea{width:100%;min-height:120px}

/* Reference C revision12.css:19-24,81; scoped reuse for original case history. */
#case-history-dialog18 table{font-size:15px;border-collapse:collapse;width:100%;line-height:1.35}
#case-history-dialog18 th{height:30px;padding:6px 8px;background:#e9eee4;font-size:12px;font-weight:600;color:#526056;border:0;text-align:left;vertical-align:middle}
#case-history-dialog18 td{height:34px;padding:4px 8px;border:0;vertical-align:middle}
#case-history-dialog18 tbody>tr:nth-child(even){background:#f5f7f3}
#case-history-dialog18 tbody>tr:hover{background:#eef3e7}
#case-history-dialog18 tr.selected{background:#e7f2d6}

body[data-screen18=labels] main>.panel:not(#labels18){display:none!important}#labels18 label{display:inline-flex;gap:5px;align-items:center;margin:5px}#labels18 input[type=number]{width:80px}#labels18 .label-canvas18{position:relative;background:white;color:black;border:1px solid #aaa;overflow:hidden;margin:12px;flex-shrink:0}#labels18 dialog{max-width:95vw;max-height:90vh;overflow:auto}#labels18 table input{max-width:80px}

/* Bounded stock control fits the existing narrow stock column; no overlap with quantity. */
#sale-lines13 .stock-cell18 .sale-stock-button18{box-sizing:border-box;width:100%;max-width:40px;min-width:0;min-height:30px;padding:2px;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}

/* Shared work-area navigation; page tools continue to belong to their own work area. */
body:has(#mainnav18:not([hidden])) > .pilot-top {
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto auto;
  align-items:center;
  gap:14px;
  min-height:60px;
  padding:6px clamp(12px,1.6vw,26px);
  background:#1f2c39;
  color:#f4f7f3;
}
body:has(#mainnav18:not([hidden])) > .pilot-top .brand16 {
  content:url('/brand16/dark-79d854381955.png');
  width:145px;
  height:48px;
  object-fit:contain;
}
.pilot-top #mainnav18 {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:3px;
  padding:0 0 0 14px;
  border:0;
  border-left:1px solid #57655b;
  background:transparent;
}
.pilot-top #mainnav18 button {
  display:inline-flex;
  gap:7px;
  align-items:center;
  justify-content:center;
  margin:0;
  min-height:38px;
  padding:7px clamp(7px,.75vw,14px);
  border:1px solid transparent;
  border-radius:5px;
  color:#e9efe9;
  background:transparent;
  font-family:inherit;
  font-weight:600;
  font-size:13px;
  line-height:1.25;
}
.pilot-top #mainnav18 button svg {
  width:17px;height:17px;fill:none;stroke:currentColor;
  stroke-linecap:round;stroke-linejoin:round;stroke-width:1.65;
  pointer-events:none;flex:none;
}
.pilot-top #mainnav18 button:hover {background:#3c4a41}
.pilot-top #mainnav18 button.active {
  background:#b4d878;color:#203117;border-color:#badf84;
  box-shadow:inset 0 -1px 0 #92b55f;
}
body[data-module18] .environment18 {color:#d6dfd5;font-size:12px;white-space:nowrap}
body[data-module18] .environment-code18 {border:1px solid #637167;border-radius:4px;padding:3px 6px;letter-spacing:.06em}
body[data-module18] .environment-detail18 {position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
body[data-module18] .pilot-top #logout {
  margin:0;padding:8px 12px;min-height:36px;background:transparent;
  border:1px solid #77847b;border-radius:5px;color:#f4f7f3;font-size:13px;
}
body[data-module18] .pilot-top #logout:hover {background:#415047}
body[data-module18] #subnav18 {
  gap:2px 4px;padding:5px clamp(12px,1.6vw,26px);
  background:#f8faf7;border-bottom:1px solid #c6d0c6;
}
body[data-module18] #subnav18 button {
  padding:6px 11px;min-height:34px;border:1px solid transparent;border-radius:5px;
  background:transparent;color:#37473c;box-shadow:none;font-size:14px;font-weight:500;
}
body[data-module18] #subnav18 button:hover {background:#e8eee6}
body[data-module18] #subnav18 button[aria-current=page] {
  color:#294023!important;background:#e3eed9!important;border-color:#bacdaf;font-weight:650;
}
.pilot-top #mainnav18 button:focus-visible,body[data-module18] .pilot-top #logout:focus-visible {
  outline:2px solid #fff;outline-offset:-3px;
}
body[data-module18] #subnav18 button:focus-visible {outline:2px solid #395c49;outline-offset:-2px}
@media(max-width:1199px) {
  body:has(#mainnav18:not([hidden])) > .pilot-top {
    grid-template-columns:1fr auto auto;gap:2px 12px;padding-block:4px 7px;
  }
  body:has(#mainnav18:not([hidden])) > .pilot-top .brand16 {grid-column:1;grid-row:1;height:38px}
  .pilot-top #mainnav18 {grid-column:1/-1;grid-row:2;border:0;padding:0}
  body[data-module18] .environment18 {grid-column:2;grid-row:1}
  body[data-module18] .pilot-top #logout {grid-column:3;grid-row:1}
}
@media(min-width:720px) and (max-width:800px) {
  .pilot-top #mainnav18 {gap:2px}
  .pilot-top #mainnav18 button {gap:4px;padding-inline:5px}
}
