.cart-line-price>*{margin-right:6px}#how-order{display:flex;align-items:center;padding:11px 16px;font:14px arial,sans-serif;color:#183c45;text-decoration:none}@media(max-width:850px){body #b24-cart-dialog .cart-line{grid-template-columns:minmax(0,1fr) 40px}body #b24-cart-dialog .cart-line>.cart-quantity{grid-column:1;grid-row:2;width:auto;justify-self:start}}@media(max-width:850px){body #b24-cart-dialog .cart-line>.cart-remove{grid-column:2;grid-row:1}body #b24-cart-dialog .cart-line>.cart-line-price{grid-row:3}}:root{font-family:system-ui,sans-serif;color:#182b37;background:#f1f4f5;font-size:15px}*{box-sizing:border-box}body{margin:0}header{background:#132d3b;color:white;padding:22px 4%;display:flex;align-items:center;gap:24px}header strong{font-size:26px;letter-spacing:2px}small{font-size:11px;color:#91d8c6}header span{margin-left:auto}main{max-width:1500px;margin:auto;padding:24px 4%}h1{font-size:32px;letter-spacing:-1px;margin:8px 0 24px}h2{font-size:21px}.notice{background:#fff0ce;padding:14px 18px;border-left:4px solid #bd791c;font-size:13px}#message{min-height:22px;color:#93421a}#login{background:white;padding:36px;max-width:500px;margin:40px auto;border-radius:12px}label{display:block;font-weight:600}input{display:block;width:100%;border:1px solid #bbcbd1;border-radius:6px;padding:13px;margin:8px 0 18px;font:inherit}input:focus{outline:2px solid #16816c}button{border:1px solid #bfcfd3;background:white;color:#183c45;padding:11px 16px;border-radius:6px;cursor:pointer;font:inherit;font-weight:600}button:hover{background:#e0efeb}button:disabled{opacity:.5;cursor:wait}#login button,#submit{background:#13765f;color:white;border:0}.heading{display:flex;justify-content:space-between;align-items:center;margin-top:28px}.eyebrow{font-size:11px;letter-spacing:2px;color:#647c84}nav{display:flex;gap:8px;margin:0 0 26px;flex-wrap:wrap}.layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px}.cart{background:white;border-radius:10px;padding:24px;align-self:start;position:sticky;top:20px}.cart button{width:100%;margin-top:12px}.muted{color:#687e86;font-size:12px}.table-wrap{overflow:auto;background:white;border-radius:8px}table{border-collapse:collapse;width:100%}th{text-align:left;color:#647981;font-size:12px;background:#e6edef;padding:14px}td{border-bottom:1px solid #e9eef0;padding:13px}td input{width:95px;margin:0;padding:10px}td small{display:block;color:#758891;letter-spacing:1px;margin-bottom:5px}td button{padding:7px 10px}#cart p{border-bottom:1px solid #e5ecef;padding-bottom:12px;font-size:13px}.pager{display:flex;align-items:center;justify-content:space-between;margin-top:18px}#history-list article{background:white;padding:18px;margin:12px 0;border-radius:8px}#history-list button{margin:8px} [hidden]{display:none!important}@media(max-width:950px){.layout{grid-template-columns:1fr}.cart{position:static}.heading{align-items:start;gap:12px}h1{font-size:26px}main{padding:18px}.cart{margin-top:8px}}

#bulk-panel{margin:1rem 0;padding:1rem;border:1px solid #A7AFB7;border-radius:8px;background:#fff}#bulk-panel summary{cursor:pointer;font-weight:bold}#bulk-input{display:block;width:100%;box-sizing:border-box;font:inherit;padding:.75rem;margin:.5rem 0;resize:vertical}#bulk-result{max-height:18rem;overflow:auto}#bulk-result p{padding:.3rem 0;border-bottom:1px solid #eee}
/* Shared GAZIS application shell */
header{min-height:88px;box-shadow:0 4px 20px #132d3b12}main{max-width:1600px}#workspace nav{padding:8px;background:#e5edef;border-radius:14px;gap:6px}#workspace nav button{border:0;background:transparent;font-size:14px}#workspace nav button[aria-current=page]{background:white;box-shadow:0 2px 8px #132d3b10;color:#13765f}.overview-panel{display:grid;grid-template-columns:1.4fr 1fr;gap:26px;padding:30px;background:#132d3b;color:white;border-radius:18px;margin:24px 0}.overview-panel h2{font-size:28px;margin:8px 0}.overview-panel p{line-height:1.7}.overview-panel .eyebrow{color:#91d8c6}.shortcuts{display:grid;gap:10px;align-content:center}.shortcuts button{text-align:left;background:#214351;color:white;border-color:#3b5964}.cart{border:1px solid #dfE8e8;border-radius:18px;box-shadow:0 8px 24px #132d3b06}.cart h2{display:flex;justify-content:space-between}#count{background:#e1f2eb;color:#13765f;padding:4px 10px;border-radius:20px;font-size:15px}.totals{font-size:13px}.totals div{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #e5ecef}.totals dd{margin:0;color:#647981;text-align:right}.totals .grand{font-weight:700;font-size:15px}#information-panel{background:white;border:1px solid #dde7e7;padding:24px;border-radius:14px;margin:22px 0}#login{border:1px solid #dde7e7;box-shadow:0 12px 40px #132d3b08;border-radius:20px}#login button{width:100%;min-height:50px}.table-wrap{border:1px solid #dde7e7;border-radius:14px}tbody tr:hover{background:#f4faf7}@media(max-width:800px){.overview-panel{grid-template-columns:1fr;padding:22px}.overview-panel h2{font-size:23px}header{flex-wrap:wrap;padding:18px}.totals{font-size:12px}#workspace nav{flex-wrap:nowrap;overflow-x:auto}#workspace nav button{white-space:nowrap}}

#category-filter,#company-filter{display:block;width:100%;padding:12px;margin:8px 0 18px;border:1px solid #bbcbd1;border-radius:8px;background:white;font:inherit;color:#183c45}#category-filter:disabled{color:#647981;background:#edf1f2}
/* Corporate website brand, confirmed in11Oct handoff */
:root{font-family:Arial,sans-serif;color:#172332;background:#F5F4F0;--brand-navy:#172332;--brand-slate:#465868;--brand-accent:#D84A22;--brand-amber:#F3A21B}header{background:#fff;color:#172332;border-bottom:1px solid #e4e3df;box-shadow:none;padding:20px 4%}.brand-link{display:block;flex-shrink:0}.brand-link img{display:block;width:240px;height:auto}.portal-label{color:#465868;font-weight:bold;letter-spacing:2px}header #identity{color:#465868}header button{color:#172332;border-color:#A7AFB7}.overview-panel{background:#172332;border-radius:5px;padding:38px}.overview-panel h2{font-size:32px;letter-spacing:-.6px}.overview-panel .eyebrow{color:#F3A21B}.shortcuts button{background:#D84A22;border-color:#D84A22;color:white;border-radius:4px}.shortcuts button:hover{background:#b83b17}button,input,#category-filter{border-radius:4px}button:hover{background:#f6e8e1}input:focus{outline-color:#D84A22}#workspace nav{background:#eae9e4;border-radius:5px}#workspace nav button[aria-current=page]{color:#D84A22}#login{border-radius:6px;border-top:4px solid #D84A22}#login button,#submit{background:#D84A22;color:#fff}#login button:hover,#submit:hover{background:#b83b17}.cart,.table-wrap,#information-panel{border-radius:6px}.cart{border-top:3px solid #D84A22}#count{background:#f8e7dd;color:#9d3217}.muted,.eyebrow{color:#465868}tbody tr:hover{background:#faf5ee}.notice{background:#fff4dc;border-left-color:#F3A21B}#submission-receipt{margin:24px 0;padding:24px;background:#fff;border:1px solid #dedbd5;border-top:4px solid #D84A22;border-radius:6px}#submission-receipt article{padding:12px 0;border-top:1px solid #e4e3df}@media(max-width:650px){.brand-link img{width:180px}.portal-label{font-size:10px}.overview-panel{padding:24px}.overview-panel h2{font-size:26px}}

/* Compact ordering density preserves readable text and touch controls. */
.catalog-display{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0;font-size:13px;color:var(--brand-slate)}
.catalog-display button{min-height:44px}
.catalog-compact td{padding:7px 10px}
.catalog-compact th{padding:10px}
.catalog-compact td input{min-height:44px;padding:8px;width:90px}
.catalog-compact td button{min-height:44px;min-width:44px}
button:focus-visible,summary:focus-visible{outline:3px solid var(--brand-accent);outline-offset:3px}
@media(max-width:650px){header{padding:12px 18px;gap:12px;min-height:68px}.brand-link img{width:150px}.catalog-display{flex-wrap:wrap}.catalog-compact td{padding:7px}.table-wrap{scroll-margin-top:12px}}

.environment-details{font-size:12px;color:var(--brand-slate);margin:8px 0}.environment-details summary{cursor:pointer;padding:8px 0}.heading{margin-top:12px}.heading h1{margin-bottom:14px}.overview-panel{padding:20px}.overview-panel h2{font-size:25px}header{padding-top:12px;padding-bottom:12px}.brand-link img{width:180px}#workspace nav{margin-bottom:16px}.catalog-compact td:nth-child(2){overflow-wrap:anywhere}td input{font-variant-numeric:tabular-nums}

.quantity-entry{display:flex;align-items:center;border:1px solid #bbcbd1;border-radius:4px;background:white;min-width:190px;width:max-content}.quantity-entry input{border:0!important;width:110px!important;min-height:48px;padding:8px!important;margin:0!important;font-variant-numeric:tabular-nums}.quantity-entry button{border:0;min-height:48px;min-width:44px;padding:8px}.quantity-entry+button{min-height:44px;margin-top:6px}td>small[role=status]{max-width:220px;color:#9d3217;letter-spacing:0}td:nth-child(2){overflow-wrap:anywhere}.quantity-entry input[aria-invalid=true]{box-shadow:inset 0 -2px #9d3217}

dialog{max-width:min(90vw,720px);border:0;border-radius:16px;padding:24px}dialog::backdrop{background:#17233299}dialog img{max-width:100%;max-height:70vh;object-fit:contain}
.finance-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin:16px 0}.finance-summary article{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:16px}.finance-summary h3{font-size:.9rem;margin:0 0 10px;color:#53616c}.finance-summary strong{font-size:1.4rem;font-variant-numeric:tabular-nums}#finance-panel{padding:18px;background:#f7f7f4;border-radius:16px}#finance-panel td{font-variant-numeric:tabular-nums}#finance-company{max-width:320px;margin:8px 0}

.staff-queue-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px}.staff-queue-card{background:#fff;border:1px solid #e4e6e8;border-radius:16px;padding:20px;display:flex;flex-direction:column;gap:10px}.staff-queue-card h2,.staff-queue-card h3,.staff-queue-card p{margin:0}.staff-queue-card ul{margin:0;padding-left:20px;overflow-wrap:anywhere}.staff-queue-card a{display:inline-block;padding:12px 0;margin-top:auto}.staff-queue-card small{color:#526173}

/* Compact cart: company grouping appears only for mixed-company baskets. */
.cart-line{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.85rem 0;border-bottom:1px solid #e3e6e9}.cart-line>div{display:grid;gap:.25rem;min-width:0;overflow-wrap:anywhere}.cart-line small{color:#596573}.cart-line button{min-height:48px;flex-shrink:0}@media(max-width:420px){.cart-line{align-items:flex-start;gap:.5rem}.cart-line button{padding:.5rem}}

/* Cart item actions must not inherit full-width sidebar buttons. */
.cart-line{display:grid;grid-template-columns:minmax(0,1fr);gap:.5rem;align-items:start}.cart-line>div{width:100%;min-width:0}.cart .cart-line>button{width:auto;max-width:100%;margin:0;justify-self:end;min-height:48px}


/* B2B inline approved product photos: same-origin authenticated media only. */
.catalog-photo-trigger{display:inline-flex;align-items:center;justify-content:center;width:90px;height:90px;max-width:100%;padding:3px;border:1px solid #cdd6dd;border-radius:9px;background:#fff;color:#465868;overflow:hidden;vertical-align:middle;cursor:zoom-in}
.catalog-photo-trigger:focus-visible{outline:3px solid var(--brand-accent);outline-offset:2px}
.catalog-photo-thumb{display:block;width:84px;height:84px;object-fit:contain;object-position:center;background:#fff;border-radius:6px}
.catalog-photo-trigger.catalog-photo-unavailable{width:90px;min-height:60px;height:auto;font-size:12px;line-height:1.2;overflow-wrap:break-word;cursor:default}
.catalog-photo-trigger:disabled{opacity:.7}
@media (max-width:650px){.catalog-photo-trigger{width:76px;height:76px}.catalog-photo-thumb{width:70px;height:70px}.catalog-photo-trigger.catalog-photo-unavailable{width:76px}}

/* Catalog rows: keep the photo, title and details together at every width. */
.catalog-product{display:grid;grid-template-columns:56px minmax(0,1fr);gap:12px;align-items:center}
.catalog-product-details{display:grid;gap:3px;min-width:0;overflow-wrap:break-word}
.catalog-product-title{line-height:1.25}
.catalog-product-details small{color:#526173}
.catalog-product .catalog-photo-trigger{width:56px;height:56px;padding:3px}
.catalog-product .catalog-photo-thumb{width:48px;height:48px}
.catalog-product .catalog-photo-unavailable{min-height:0;height:56px;font-size:10px}
#products .catalog-quantity-cell{white-space:normal}
#products .quantity-entry{min-width:0}
#products .quantity-entry input{width:72px!important}
@media(max-width:650px){
  .table-wrap table:has(>#products),#products{display:block}
  .table-wrap table:has(>#products)>thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  #products tr{display:grid;grid-template-columns:36px minmax(0,1fr);align-items:center;padding:6px;border-bottom:1px solid #e4e9ec}
  #products td{display:block;border:0;padding:5px}
  #products .catalog-quantity-cell,#products .catalog-unit-cell{grid-column:2}
  #products .catalog-unit-cell{font-size:12px;color:#526173}
  #products .catalog-product{grid-template-columns:48px minmax(0,1fr);gap:8px}
  #products .catalog-photo-trigger{width:48px;height:48px}
  #products .catalog-photo-thumb{width:40px;height:40px}
}


/* gazis-vm103-mobile-ux-20261110: additive responsive and accessibility only */
/* GAZIS VM103 B2B — additive, source-only responsive/a11y candidate; not deployed. */
:root{color-scheme:light}
html{overflow-x:clip;-webkit-text-size-adjust:100%}
body{min-width:0}
main,main>*,#workspace,.layout,.layout>section,.layout>.cart,.overview-panel,.overview-panel>*{min-width:0;max-width:100%}
header{gap:clamp(8px,2vw,20px)}
header #identity{overflow-wrap:anywhere;min-width:0}
button,input,select,textarea{font:inherit}
button{min-height:44px;touch-action:manipulation}
input,select,textarea{max-width:100%;min-height:44px}
input[type=search],input[type=password],#username{width:100%;min-width:0}
:where(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #b33b13;outline-offset:3px}
:where(button,a,input,select,textarea):disabled{cursor:not-allowed}
.table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.table-wrap table{min-width:550px}
.table-wrap th,.table-wrap td{overflow-wrap:anywhere}
.cart{min-width:0;overflow-wrap:anywhere}
#workspace nav{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
#workspace nav button{flex:0 0 auto;white-space:nowrap}
#message,#bulk-result,#quote-summary,#submission-receipt{overflow-wrap:anywhere}
#bulk-input{width:100%;max-width:100%;resize:vertical}
@media(max-width:800px){
 .layout{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}
 .layout>.cart{position:static;max-width:100%;width:100%}
 .overview-panel{grid-template-columns:minmax(0,1fr)}
 #workspace nav{display:flex;gap:6px}
}
@media(max-width:480px){
 header{padding:12px 4%;flex-wrap:wrap;gap:8px 12px}
 .brand-link img{width:min(172px,46vw);height:auto}
 header #identity{margin-left:0;flex-basis:100%;font-size:13px}
 main{padding:16px 3.5%}
 h1{font-size:clamp(23px,7vw,30px);letter-spacing:-.4px}
 .overview-panel{padding:18px}
 .overview-panel h2{font-size:22px}
 .shortcuts{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
 .shortcuts button{white-space:normal;min-width:0}
 #login{max-width:100%;padding:18px}
 #workspace nav{margin-inline:-2px;padding:5px}
 #workspace nav button{min-height:44px}
 .cart{padding:16px}
 .pager{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
 .pager button{flex:1 1 110px}
 .notice{overflow-wrap:anywhere}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* INBOX-036 B: login page — inline small checkbox, password visibility toggle, help text, short test banner */
.test-banner{margin:0 0 12px;font-size:14px;font-weight:600}
#login .password-field{position:relative;margin:8px 0 18px}
#login .password-field input{margin:0;padding-right:56px}
#login .password-field button{position:absolute;top:0;right:0;width:48px;min-height:0;height:100%;padding:0;background:transparent;color:#465868;border:0;border-left:1px solid #bbcbd1;border-radius:0 4px 4px 0;font-size:18px;line-height:1}
#login .password-field button:hover{background:#f6e8e1}
#login .password-field button[aria-pressed=true]{color:#D84A22}
#login .remember-row{display:flex;align-items:center;gap:10px;font-weight:400;font-size:14px;margin:0 0 24px;cursor:pointer}
#login .remember-row input{display:inline-block;flex:0 0 auto;width:18px;height:18px;margin:0;padding:0;accent-color:#D84A22}
#login .login-help{margin:16px 0 0;font-size:13px;color:#465868;text-align:center}
@media(max-width:420px){#login h1{font-size:24px}#login .remember-row{font-size:13px}}


/* INBOX-046: a useful basket column; one compact row per product. */
@media(min-width:951px){.layout{grid-template-columns:minmax(0,1fr) minmax(400px,480px)}}
.cart{padding:16px}.cart-line{display:grid;grid-template-columns:minmax(0,1fr) 102px 90px 28px;gap:8px;align-items:center;padding:10px 0}
.cart-line>.cart-product{display:grid;gap:3px;overflow:hidden}.cart-product strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}.cart-product small{font-size:11px;color:#465868}
.cart-line>.cart-quantity{display:flex;align-items:center;gap:0;width:102px}.cart .cart-quantity button{width:28px;min-width:28px;min-height:34px;height:34px;padding:0;margin:0;flex-shrink:0}.cart-quantity input{width:46px;min-width:0;text-align:center;margin:0;padding:6px 2px;font-size:13px}
.cart-line>.cart-line-price{display:grid;text-align:right;gap:3px;font-size:12px}.cart-line-price small{font-size:10px;color:#465868}.cart .cart-line>.cart-remove{width:28px;height:34px;min-height:34px;margin:0;padding:0;font-size:21px;align-self:center}
@media(max-width:500px){.cart-line{grid-template-columns:minmax(0,1fr) 102px 28px;gap:6px}.cart-line>.cart-line-price{grid-column:1;grid-row:2;text-align:left;display:flex;gap:6px}.cart-line>.cart-remove{grid-column:3;grid-row:1 / span 2}.cart-line>.cart-quantity{grid-column:2;grid-row:1 / span 2}.cart-product strong{font-size:12px}}
.cart .company-total{display:flex;justify-content:space-between;gap:8px;padding:8px 0;font-size:13px;border-top:1px solid #c9d3da}.cart h3{margin:14px 0 4px;font-size:15px}

/* Owner §2β: focus ring belongs INSIDE the middle quantity cell, with no layout shift. */
.quantity-entry{overflow:hidden;align-items:stretch;isolation:isolate}
.quantity-entry input{height:48px;min-height:48px;box-sizing:border-box;border-radius:0!important;flex:0 0 auto}
.quantity-entry input:focus,.quantity-entry input:focus-visible{outline:none!important;outline-offset:0!important;border-radius:0!important;box-shadow:inset 0 0 0 2px #b33b13!important}
.quantity-entry:focus-within{border-color:#b33b13}

/* List B / B5, B8: profile form and route notice. */
.route-notice{background:#fff4ef;border:1px solid #D84A22;border-radius:8px;padding:12px 16px;margin:0 0 12px;font-weight:bold}
.profile-form{display:grid;gap:12px;max-width:640px}
.profile-form label{display:grid;gap:4px}
.profile-form input,.profile-form textarea{font:inherit;padding:8px;box-sizing:border-box;width:100%}
.profile-form .profile-switch{display:flex;align-items:center;gap:10px}
.profile-form .profile-switch input{width:auto}
.profile-branch{display:grid;gap:8px;padding:10px;border:1px solid #A7AFB7;border-radius:8px;background:#fff}
/* List B / B3: catalog filters — big search, company tabs, category rail, selection chips. */
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.state-select{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.search-big{display:flex;align-items:center;gap:10px;width:100%;box-sizing:border-box;background:#fff;border:2px solid #A7AFB7;border-radius:12px;padding:0 14px;margin:0 0 12px}
.search-big:focus-within{border-color:#D84A22}
.search-big .search-icon{font-size:20px}
.search-big input{flex:1 1 auto;min-width:0;border:0;outline:none;background:transparent;font:inherit;font-size:18px;padding:14px 0;margin:0}
.company-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.company-tab{border:1px solid #A7AFB7;background:#fff;color:#172332;border-radius:999px;padding:9px 18px;font:inherit;font-weight:bold;cursor:pointer}
.company-tab.active{background:#D84A22;border-color:#D84A22;color:#fff}
.active-filters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px}
.active-filters:empty{display:none}
.filter-chip{border:1px solid #D84A22;background:#fff4ef;color:#8f2f12;border-radius:999px;padding:6px 14px;font:inherit;cursor:pointer}
.catalog-body{display:grid;grid-template-columns:230px minmax(0,1fr);gap:18px;align-items:start}
.category-rail{display:flex;flex-direction:column;gap:4px;position:sticky;top:8px;max-height:80vh;overflow:auto;background:#fff;border-radius:8px;padding:8px}
.category-main,.category-sub{display:flex;justify-content:space-between;align-items:center;gap:8px;width:100%;text-align:left;border:0;background:transparent;color:#172332;font:inherit;padding:9px 10px;border-radius:6px;cursor:pointer}
.category-main.active,.category-sub.active{background:#D84A22;color:#fff}
.category-count{font-size:12px;opacity:.75}
.category-subs{display:flex;flex-direction:column;gap:2px;margin:0 0 6px 14px;border-left:3px solid #D84A22;padding-left:6px}
.category-sub{font-size:14px;padding:7px 8px}
@media(max-width:800px){
.catalog-body{grid-template-columns:minmax(0,1fr)}
.category-rail{flex-direction:row;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;position:static;max-height:none;-webkit-overflow-scrolling:touch}
.category-main,.category-sub{width:auto;flex:0 0 auto;white-space:nowrap;border:1px solid #A7AFB7}
.category-subs{flex-direction:row;margin:0;border-left:0;padding-left:0;flex:0 0 auto}
}

/* K17: independent cart item list scrolling. The rest of the page scrolls normally;
   summary, VAT totals and Submit remain OUTSIDE the scrollable item list. */
#cart {
  min-height: 0;
  max-height: min(42dvh, 440px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  padding-inline-end: 4px;
  border-block: 1px solid #e5e7eb;
}
#cart:focus-visible {
  outline: 2px solid var(--brand-accent, #D84A22);
  outline-offset: 2px;
}
@media (min-width: 951px) {
  .layout > .cart {
    position: sticky;
    top: 12px;
    align-self: start;
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh - 24px);
  }
  .layout > .cart > #cart {
    flex: 1 1 auto;
    max-height: min(42dvh, 440px);
  }
  .layout > .cart > :not(#cart) {
    flex-shrink: 0;
  }
}
@media (max-width: 950px) {
  #cart { max-height: min(36dvh, 320px); }
}
@media (max-height: 650px) and (min-width: 951px) {
  .layout > .cart { position: static; max-height: none; }
  #cart { max-height: 34dvh; }
}

/* B19 beta: on mobile ONE category dropdown, not duplicated rail.
   The same select is still used for server-scoped category filtering. */
@media (max-width:800px){
 #category-rail{display:none!important}
 #category-filter.state-select{position:static!important;display:block!important;
  width:100%!important;height:auto!important;opacity:1!important;pointer-events:auto!important;
  clip-path:none!important;overflow:visible!important;white-space:normal!important;
  padding:12px!important;margin:8px 0 14px!important;border:1px solid #bbcbd1!important;
  background:white!important;color:#173349!important;}
}

/* B24 – owner-tested Android layout: sticky summary, single compact catalog view. */
#b24-cart-dialog:not([open]){display:none!important}
.b24-cart-bar{position:sticky;top:0;z-index:55;display:flex;align-items:center;gap:8px;background:#fff;
  border:1px solid #d9dfdf;border-top:3px solid var(--brand-accent,#D84A22);border-radius:6px;
  padding:6px 8px;margin:6px 0 10px;box-shadow:0 5px 14px #17233220;min-height:56px}
#b24-cart-open{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:1 1 0;min-width:0;border:0;
  background:transparent;text-align:left;padding:6px 5px;font-size:13px;min-height:44px}
#b24-cart-open strong{font-weight:750;white-space:nowrap}
#b24-cart-total{display:block;text-align:right;overflow-wrap:anywhere;color:#263b46;font-variant-numeric:tabular-nums;font-size:12px}
#b24-submit-top{background:#D84A22;color:#fff;border-color:#D84A22;min-height:44px;flex:0 0 auto;padding:8px 13px}
#b24-submit-top:disabled{background:#b4b4b4;border-color:#b4b4b4;color:white}
#b24-cart-dialog{width:min(96vw,750px);height:min(90dvh,830px);max-width:unset;max-height:unset;
  margin:auto;padding:12px;border:1px solid #cbd5dc;border-radius:12px;overflow:auto;background:#f9faf8;overscroll-behavior:contain}
#b24-cart-dialog::backdrop{background:#14232ccc}
.b24-cart-dialog-head{position:sticky;top:-12px;z-index:2;display:flex;align-items:center;justify-content:space-between;
  gap:12px;background:#fff;padding:8px 12px;margin:-12px -12px 10px;border-bottom:1px solid #dfe6e8}
.b24-cart-dialog-head>button{min-height:44px}
#b24-cart-dialog>.cart{width:100%;max-width:none;box-shadow:none;background:#fff;padding:10px 14px}
#b24-cart-dialog #cart{max-height:none;overflow:visible}
#b24-cart-dialog .cart-line{grid-template-columns:minmax(0,1fr) 102px 90px 28px}
#b24-cart-dialog .cart h2{display:none}
.b24-feedback-dialog{width:min(92vw,520px);max-width:none}
.b24-feedback-dialog textarea{display:block;width:100%;resize:vertical;padding:12px;margin:12px 0}
/* Dense desktop/table view as well; no layout toggle. */
#products td{padding:6px 7px}
#products .catalog-product-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;max-height:2.6em;
  overflow:hidden;white-space:normal;overflow-wrap:anywhere;line-height:1.3;font-size:13px}
#products .catalog-product-details{gap:2px}
#products .catalog-product-details small{font-size:10.5px;line-height:1.2}
#products .catalog-quantity-cell .quantity-entry+small[role=status]{display:block;font-size:10px}
#products .catalog-quantity-cell .quantity-entry input{font-variant-numeric:tabular-nums;text-align:center}
#products .b24-product-price{font-size:12px;line-height:1.15;min-width:0}
#products .b24-product-price strong{font-size:12px}
/* 3-column mobile compact row: [favorite] [image/name/code/price] [inline -qty+]. */
@media(max-width:850px){
  .table-wrap{overflow-x:hidden}
  .table-wrap table{display:block;min-width:0!important;width:100%;border-collapse:collapse}
  .table-wrap table>thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  #products{display:block;width:100%}
  #products tr{display:grid!important;grid-template-columns:26px minmax(0,1fr) 120px!important;align-items:center;
    gap:3px;min-height:75px;padding:4px 1px;border-bottom:1px solid #e2e8eb}
  #products td{display:block!important;grid-column:auto!important;grid-row:auto!important;min-width:0;width:auto;
    padding:1px 2px;border:0;overflow-wrap:anywhere}
  #products td:nth-child(1){grid-column:1!important}
  #products td:nth-child(2){grid-column:2!important}
  #products td:nth-child(3){display:none!important}
  #products td:nth-child(4){grid-column:3!important}
  #products .catalog-product{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:6px}
  #products .catalog-product .catalog-photo-trigger{width:42px;height:42px;min-height:42px;padding:2px}
  #products .catalog-product .catalog-photo-thumb{width:36px;height:36px}
  #products .catalog-product .catalog-photo-unavailable{width:42px;height:42px;font-size:8px}
  #products .catalog-product-details{gap:2px;min-width:0}
  #products .catalog-product-details>small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #products .catalog-product-details>small:nth-of-type(n+3){display:none}
  #products .quantity-entry{min-width:0!important;width:116px!important;max-width:100%;margin:0;display:flex;align-items:center}
  #products .quantity-entry button{min-width:36px!important;width:36px!important;height:42px;min-height:42px!important;padding:0!important;font-size:21px;flex:0 0 36px}
  #products .quantity-entry input{min-width:0!important;width:40px!important;flex:1 1 0!important;height:42px;min-height:42px!important;
    padding:4px 1px!important;margin:0!important;font-size:13px}
  #products td:nth-child(1) button{min-width:25px;min-height:42px;padding:2px;font-size:16px}
  #products .b24-product-price{font-size:11px}
  #products .b24-product-price strong{font-size:11px}
  #workspace .heading h1{margin-top:6px;margin-bottom:10px}
  #b24-cart-dialog .cart-line{grid-template-columns:minmax(0,1fr) 102px 26px;gap:4px}
  #b24-cart-dialog .cart-line>.cart-line-price{grid-column:1;grid-row:2;text-align:left}
  #b24-cart-dialog .cart-line>.cart-remove{grid-column:3;grid-row:1/span 2}
  #b24-cart-dialog .cart-line>.cart-quantity{grid-column:2;grid-row:1/span 2}
  #b24-cart-dialog .cart-product strong{white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
}
@media(max-width:390px){
  #products tr{grid-template-columns:23px minmax(0,1fr) 113px!important}
  #products .catalog-product{grid-template-columns:38px minmax(0,1fr);gap:4px}
  #products .catalog-product .catalog-photo-trigger{width:38px;height:38px;min-height:38px}
  #products .catalog-product .catalog-photo-thumb{width:32px;height:32px}
  #products .quantity-entry{width:110px!important}
  #products .quantity-entry button{min-width:35px!important;flex-basis:35px;width:35px!important}
  #b24-cart-open{gap:5px;font-size:12px}
  #b24-cart-total{font-size:11px}
  #b24-submit-top{padding-inline:10px}
}
/* Keep the minimum/case-size small line readable even when names need two lines. */
#products .b24-product-pack{font-size:10px!important;color:#526173}
@media(max-width:850px){#products .catalog-product-details>.b24-product-pack{display:block!important;white-space:normal;line-height:1.1;max-height:2.2em;overflow:hidden}}


/* B25: mandatory full basket review before either Submit button can send. */
#b25-confirm-dialog{width:min(95vw,760px);height:min(90dvh,880px);max-height:90dvh;max-width:760px;
 margin:auto;padding:0;background:#fff;border:1px solid #cbd5dc;border-radius:12px;overscroll-behavior:contain;
 box-shadow:0 24px 70px #09172450}
#b25-confirm-dialog::backdrop{background:#112432ba}
#b25-confirm-dialog[open]{display:flex;flex-direction:column}
.b25-dialog-header{padding:13px 14px 7px;background:#fff}
.b25-dialog-header h2{font-size:19px;margin:0 0 5px}
.b25-dialog-header p{font-size:12px;line-height:1.5;margin:0}
#b25-confirm-status{padding:5px 14px;color:#526173;font-size:12px;font-weight:600}
.b25-confirm-lines{overflow-y:auto;overflow-x:hidden;flex:1 1 auto;padding:5px 10px;min-height:40px}
.b25-company-group{border:1px solid #e2e8eb;border-radius:7px;margin:6px 0 11px;overflow:hidden}
.b25-company-group h3{padding:7px 10px;margin:0;background:#f4f6f8;font-size:13px}
.b25-review-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 12px;padding:7px 10px;
 border-top:1px solid #e7ecef;align-items:center;font-size:13px}
.b25-review-item{min-width:0;overflow-wrap:anywhere}
.b25-review-item strong{font-size:13px;line-height:1.3;font-weight:700;display:block}
.b25-review-item small{display:block;font-size:11px;color:#657481}
.b25-review-qty{white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:750;text-align:right}
.b25-review-price{grid-column:1/-1;color:#526173;font-size:11px}
.b25-confirm-totals{padding:6px 14px 8px;border-top:1px solid #e2e8eb;background:#fafbfc}
.b25-confirm-totals h3{font-size:13px;margin:3px 0 5px}
.b25-confirm-totals>small{display:block;font-size:10px;color:#657481;margin-top:5px}
.b25-total-list{display:grid;gap:3px}
.b25-total-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:12px}
.b25-total-row strong{white-space:nowrap;font-variant-numeric:tabular-nums}
.b25-total-grand{font-weight:800;color:#1e3b46;border-top:1px solid #dbe2e5;margin-top:4px;padding-top:4px}
.b25-confirm-actions{position:sticky;bottom:0;display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;
 padding:10px 14px;background:#fff;border-top:1px solid #d7e0e5;z-index:2}
#b25-confirm-back,#b25-confirm-send{min-height:44px;font-weight:700}
#b25-confirm-send{background:#d84a22;color:#fff;border-color:#d84a22}
#b25-confirm-send:disabled{background:#a1a8b0;color:#fff;border-color:#a1a8b0}
@media(max-width:520px){
 #b25-confirm-dialog{width:96vw;height:92dvh;max-height:92dvh}
 .b25-dialog-header{padding:12px}
 .b25-review-line{grid-template-columns:minmax(0,1fr) 92px;gap:3px 6px;padding:6px 8px}
 .b25-review-item strong{font-size:12px}
 .b25-review-qty{font-size:12px;white-space:normal}
 .b25-confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:9px 10px}
 #b25-confirm-back,#b25-confirm-send{padding:7px;font-size:12px;line-height:1.15}
}

/* B42: full-width mobile basket estimate; menu feedback never overlays the sticky bar. */
#b24-cart-dialog .cart-line-price>strong{white-space:nowrap;overflow-wrap:normal;word-break:normal;font-variant-numeric:tabular-nums;margin:0}
#b24-cart-dialog .cart-line-price>small{overflow-wrap:normal;word-break:normal;min-width:0;margin:0}
@media(max-width:850px){
 #b24-cart-dialog .cart-line{grid-template-columns:minmax(0,1fr) 102px 28px;gap:6px;align-items:center}
 #b24-cart-dialog .cart-line>.cart-product{grid-column:1;grid-row:1}
 #b24-cart-dialog .cart-line>.cart-quantity{grid-column:2;grid-row:1}
 #b24-cart-dialog .cart-line>.cart-remove{grid-column:3;grid-row:1}
 #b24-cart-dialog .cart-line>.cart-line-price{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;text-align:left;width:100%;min-width:0;align-items:baseline}
 #b24-cart-dialog .cart-line-price>strong{grid-column:2;grid-row:1;justify-self:end;font-size:14px}
 #b24-cart-dialog .cart-line-price>small:first-child{grid-column:1;grid-row:1}
 #b24-cart-dialog .cart-line-price>small:nth-of-type(n+2){grid-column:1/-1;text-align:right;line-height:1.35}
 .b24-cart-bar{isolation:isolate}
 #b24-submit-top{white-space:nowrap;flex-shrink:0}
}

/* b47a: full-width desktop rows, fixed columns and immutable thumbnail display. */
@media(min-width:1000px){
  main{max-width:1920px;width:100%}
  .layout{grid-template-columns:minmax(0,1fr)}
  .layout>section,.catalog-body,.catalog-main,.table-wrap{min-width:0;width:100%;max-width:none}
  .catalog-body{grid-template-columns:230px minmax(0,1fr)}
  .table-wrap table{width:100%;min-width:0;table-layout:auto}
  #products .catalog-product{grid-template-columns:128px minmax(0,1fr);gap:14px}
  #products .catalog-product .catalog-photo-trigger{width:120px;height:120px;min-height:120px}
  #products .catalog-product .catalog-photo-thumb{width:112px;height:112px}
  #products .catalog-unit-cell{white-space:nowrap;min-width:90px}
  #products .catalog-quantity-cell{white-space:nowrap;min-width:230px}
  #products td:nth-child(2){min-width:360px}
}
@media(max-width:850px){
  #products .catalog-product{grid-template-columns:80px minmax(0,1fr);gap:8px}
  #products .catalog-product .catalog-photo-trigger{width:80px;height:80px;min-height:80px}
  #products .catalog-product .catalog-photo-thumb{width:72px;height:72px}
}

/* b47b: the mandatory review is the single editable cart screen. */
#b25-confirm-dialog .b47b-cart{position:static;display:flex;flex:1 1 auto;flex-direction:column;min-height:0;overflow:hidden;padding:6px 14px 10px;border-radius:0}
#b25-confirm-dialog .b47b-cart h2{font-size:14px;margin:0 0 4px}
#b25-confirm-dialog #cart{flex:1 1 auto;min-height:56px;max-height:none;overflow:auto;overscroll-behavior:contain}
#b25-confirm-dialog #cart .cart-line{grid-template-columns:minmax(0,1fr) 102px minmax(100px,160px) 28px}
#b25-confirm-dialog #cart-totals{flex:0 0 auto;max-height:24vh;overflow:auto;margin:7px 0 0}
#b25-confirm-dialog #cart-price-note{flex:0 0 auto;margin:4px 0 0;font-size:10px}
#b25-confirm-dialog #quote-summary{flex:0 0 auto;max-height:44px;overflow:auto}
#b25-confirm-dialog .b25-confirm-actions{flex:0 0 auto}
@media(max-width:850px){
 #b25-confirm-dialog .b47b-cart{padding:4px 9px 7px}
 #b25-confirm-dialog #cart .cart-line{grid-template-columns:minmax(0,1fr) 102px 28px;gap:5px}
 #b25-confirm-dialog #cart .cart-line>.cart-product{grid-column:1;grid-row:1}
 #b25-confirm-dialog #cart .cart-line>.cart-quantity{grid-column:2;grid-row:1}
 #b25-confirm-dialog #cart .cart-line>.cart-remove{grid-column:3;grid-row:1}
 #b25-confirm-dialog #cart .cart-line>.cart-line-price{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;text-align:left;width:100%;min-width:0;align-items:baseline}
 #b25-confirm-dialog #cart .cart-line-price>strong{grid-column:2;grid-row:1;justify-self:end;font-size:14px}
 #b25-confirm-dialog #cart .cart-line-price>small:first-child{grid-column:1;grid-row:1}
 #b25-confirm-dialog #cart .cart-line-price>small:nth-of-type(n+2){grid-column:1/-1;text-align:right;line-height:1.35}
}

/* b47f: keep the order-review action visible as the customer scrolls. */
.b24-cart-bar {
  justify-content: flex-end;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
#b24-cart-open {
  justify-content: flex-start;
  gap: 12px;
  flex: 0 1 auto;
  min-height: 48px;
  padding: 9px 16px;
  border-radius: 10px;
  background: #D84A22;
  color: #fff;
  box-shadow: 0 4px 12px #9f2e243b;
}
#b24-cart-open:not(:disabled):hover { background: #ba3a17; }
#b24-cart-open:not(:disabled):active { background: #9f3013; box-shadow: 0 2px 5px #9f2e243b; }
#b24-cart-open:focus-visible { outline: 2px solid var(--brand-navy); outline-offset: 3px; }
#b24-cart-open:disabled { color: #4c5965; background: #e6e8ea; box-shadow: none; cursor: default; opacity: 1; }
.b24-cart-icon, .b24-cart-arrow { flex: none; }
.b24-cart-label { display: grid; gap: 2px; min-width: 0; line-height: 1.25; }
.b24-cart-title { font-weight: 700; font-size: 15px; }
.b24-cart-summary { font-size: 12px; }
.b24-cart-arrow { margin-inline-start: auto; }
#workspace:not([hidden]) { padding-bottom: 12px; }
@media (max-width: 850px) {
  #workspace:not([hidden]) { padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
  .b24-cart-bar {
    position: fixed;
    inset: auto 0 0;
    margin: 0;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #dee1e4;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 -4px 16px #17233217;
  }
  #b24-cart-open { flex: 1 1 100%; width: 100%; }
}

/* b47f: profile cards use the existing Brand v2 palette. */
.profile-page { max-width: 1150px; margin: 18px auto 0; }
.profile-page > h2 { margin: 0 0 18px; line-height: 1.25; }
.profile-page .profile-form { max-width: none; }
.profile-page .profile-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.profile-page .profile-card {
  align-content: start;
  min-width: 0;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #dedfdf;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 10px #1723320a;
}
.profile-page .profile-card:not(form) { margin: 0; }
.profile-page .profile-security { margin: 16px 0 0; }
.profile-page .profile-card h3 { color: var(--brand-navy); margin: 0; font-size: 18px; }
.profile-page .profile-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; }
.profile-page .profile-fields > label { min-width: 0; }
.profile-page .profile-fields > label:has(textarea) { grid-column: 1 / -1; }
.profile-page .profile-fields > div { min-width: 0; }
.profile-page .profile-fields dt, .profile-page label > span { font-size: 13px; font-weight: bold; color: var(--brand-slate); }
.profile-page dl, .profile-page dd { margin: 0; }
.profile-page dd { padding-top: 4px; overflow-wrap: anywhere; }
.profile-page .profile-card :is(input:not([type=checkbox]), textarea) { border: 1px solid #aeb6be; border-radius: 6px; min-height: 42px; }
.profile-page .profile-card :is(input, textarea):focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 1px; }
.profile-page .profile-branches, .profile-page .profile-verified-branches { display: grid; gap: 8px; min-width: 0; }
.profile-page .profile-verified-branches { margin: 0; padding-inline-start: 20px; overflow-wrap: anywhere; }
.profile-page .profile-card .profile-switch { display: flex; min-height: 44px; align-items: center; }
.profile-page .profile-switch input { accent-color: #D84A22; width: 22px; height: 22px; flex: none; }
.profile-page .profile-switch input:focus-visible { outline-offset: 3px; }
.profile-page .profile-card button:not([hidden]) { justify-self: start; min-height: 44px; }
.profile-page .profile-card .profile-save { background: #af3a1a; border-color: #af3a1a; color: #fff; }
.profile-page .profile-card .profile-save:not(:disabled):hover { background: #8e2d14; }
.profile-page .profile-card [role="status"] { margin: 0; }
.profile-page .profile-card [role="status"]:empty { display: none; }

@media (max-width: 760px) {
  .profile-page .profile-layout, .profile-page .profile-fields { grid-template-columns: minmax(0, 1fr); }
  .profile-page .profile-card { padding: 15px; }
}

/* B47H: session check placeholder, company name and branch selector in the header. */
#session-state { padding: 32px 18px; text-align: center; color: #465868; }
header #identity { display: grid; gap: 2px; line-height: 1.3; }
header #identity strong { font-size: 17px; letter-spacing: 0; color: #172332; }
header #identity small { font-size: 12px; color: #465868; }
header #price-branch-wrap { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: #172332; }
header #price-branch-wrap span { margin-left: 0; }
header #price-branch-select { min-width: 0; max-width: min(360px, 100%); }
@media (max-width: 480px) {
  header #price-branch-wrap { flex-basis: 100%; }
  header #price-branch-select { flex: 1 1 0; max-width: 100%; }
}

/* B47G: clearer home, previous-purchase, finance and category views. */
.overview-panel{position:relative;overflow:hidden;box-shadow:0 14px 32px #17233220}
.overview-panel::after{content:"";position:absolute;right:-68px;top:-88px;width:240px;height:240px;border:1px solid #ffffff26;border-radius:50%;pointer-events:none}
.overview-panel>div:first-child{position:relative;z-index:1;max-width:760px}
.overview-panel .shortcuts{position:relative;z-index:1;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));align-items:stretch}
.overview-panel .shortcuts button{min-height:58px;padding:14px 16px;border:1px solid #ffffff32;border-radius:7px;text-align:left;font-weight:700;box-shadow:0 4px 12px #09172420}
.overview-panel .shortcuts button:hover{background:#b83b17;border-color:#b83b17}
#history-list article{margin:0;padding:18px 20px;border:1px solid #dedbd5;border-left:4px solid #c8d3d7;border-radius:8px;background:#fff;box-shadow:0 4px 16px #17233208}
#history-list article h3{margin:0 0 8px;color:var(--brand-navy);font-size:16px;line-height:1.4}
#history-list article p{color:var(--brand-slate);line-height:1.5;margin:6px 0}
#finance-panel{padding:22px;background:#faf9f6;border:1px solid #e5e2dc;border-radius:8px}
#finance-panel>h2{margin:0 0 16px;color:var(--brand-navy);font-size:25px}
#finance-panel>label{color:var(--brand-slate);margin:0 0 6px}
#finance-company{max-width:420px;min-height:46px;border:1px solid #c7cdd1;border-radius:6px;background:#fff;padding:10px 12px;color:var(--brand-navy);font:inherit}
.finance-summary{grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:14px;margin:18px 0}
.finance-summary article{min-width:0;padding:18px 20px;border:1px solid #e1ded8;border-radius:8px;background:#fff;box-shadow:0 4px 14px #17233207}
.finance-summary h3{color:var(--brand-slate);font-size:13px;line-height:1.4;margin:0 0 12px}
.finance-summary strong{display:block;color:var(--brand-navy);font-size:clamp(20px,2.3vw,28px);overflow-wrap:anywhere}
#finance-content>p{color:var(--brand-slate);line-height:1.6}
#finance-content .table-wrap{margin:14px 0;border-radius:7px}
#finance-content table{min-width:720px}
#finance-content th{background:#e8edef;color:var(--brand-slate);font-size:12px}
#finance-content td{font-variant-numeric:tabular-nums;vertical-align:top}
#finance-content td:last-child,#finance-content td:nth-last-child(2),#finance-content td:nth-last-child(3){text-align:right;white-space:nowrap}
.finance-stale-warning{padding:12px 14px;border-left:4px solid #d38b19;background:#fff4dc;color:#6d4810;border-radius:4px}
#category-rail{border:1px solid #e5e2dc;box-shadow:0 4px 14px #17233208}
.category-main,.category-sub{line-height:1.35;min-height:42px}
.category-main:hover,.category-sub:hover{background:#fff4ef;color:#8f2f12}
.category-main.active,.category-sub.active{background:var(--brand-accent);color:#fff}
.category-count{flex:0 0 auto;min-width:22px;text-align:center;padding:2px 6px;border-radius:999px;background:#f1f2f1;color:var(--brand-slate);font-variant-numeric:tabular-nums}
.category-main.active .category-count,.category-sub.active .category-count{background:#ffffff2e;color:#fff}
.category-subs{border-color:#e7c2b3}
#category-filter.state-select{min-height:48px;border-color:#c7cdd1;border-radius:7px;background-color:#fff;color:var(--brand-navy)}
@media(max-width:800px){
 .overview-panel{gap:16px;padding:22px}
 .overview-panel .shortcuts{grid-template-columns:minmax(0,1fr)}
 .overview-panel .shortcuts button{min-height:50px}
 #finance-panel{padding:16px}
 .finance-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .finance-summary article{padding:14px}
 .finance-summary h3{font-size:12px}
 #finance-content .table-wrap{margin-inline:-8px;width:calc(100% + 16px)}
 #category-filter.state-select{margin-top:0}
}
@media(max-width:430px){
 .finance-summary{grid-template-columns:minmax(0,1fr)}
 .finance-summary strong{font-size:23px}
 .overview-panel .shortcuts{gap:8px}
}

/* State-only selects must stay inside the viewport when the tab/rail UI is visible. */
#company-filter.state-select {
  inset-inline-start: 0;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
}
@media (min-width: 801px) {
  #category-filter.state-select {
    inset-inline-start: 0;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    clip-path: inset(50%);
  }
}

.category-branch{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px;align-items:stretch}
.category-toggle{padding:0 9px;min-width:36px;color:var(--brand-navy)}
#history-list .purchase-quantity{margin-top:8px;flex-wrap:wrap}
#history-list .purchase-quantity button{margin:0}
.purchase-quantity output{min-width:3ch;text-align:center;font-variant-numeric:tabular-nums}
.purchase-quantity small{color:var(--brand-slate)}

/* Finance statement: aligned monetary headings and values, including mobile. */
#finance-content .table-wrap{overflow-x:auto}
#finance-content .table-wrap table{display:table;width:100%;min-width:650px!important;table-layout:fixed}
#finance-content .table-wrap thead{display:table-header-group;position:static;width:auto;height:auto;overflow:visible;clip-path:none;white-space:normal}
#finance-content th,#finance-content td{padding:10px 12px;vertical-align:middle}
#finance-content th:nth-child(1){width:17%}
#finance-content th:nth-child(2){width:23%}
#finance-content th:nth-child(n+3){width:20%;text-align:right;white-space:nowrap}
#finance-content td:nth-child(2){overflow-wrap:anywhere}
#finance-content td:nth-child(n+3){text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
