/* Shared text wrapping: a button label must never become a column of letters. */
@media screen{
html body :is(button,.itButton,.btn,.otTrackLink){writing-mode:horizontal-tb;word-break:normal;overflow-wrap:normal;line-height:1.3}
html body :is(.row,.otActions,.otPageHead,.boWindowNav){flex-wrap:wrap;gap:8px}
html body :is(.row,.otActions,.boWindowNav)>:is(button,a.itButton,a.primary,a.secondary),html body :is(td,.itFilter) button{flex-shrink:0;width:auto;min-width:min-content;min-height:36px;padding:7px 11px;font-size:14px;border-radius:10px;white-space:normal}
html body :is(button,.itButton,.btn):focus-visible{outline:3px solid #4b9fff;outline-offset:3px}
/* Stock: space for actions on desktop, cards with a full action row on mobile. */
html body .lxStockResponsive table{table-layout:auto}
html body .lxStockIdentity{min-width:180px}.lxStockIdentity>div{display:inline-block;vertical-align:top;max-width:calc(100% - 50px)}
html body .lxStockIdentity small{display:block;overflow-wrap:anywhere}
html body .lxStockActionCell{min-width:224px}
html body .lxStockActions{display:grid;grid-template-columns:repeat(2,minmax(max-content,1fr));gap:8px;align-items:start}
html body .lxStockActions button{width:100%;white-space:nowrap;word-break:normal;overflow-wrap:normal;min-width:max-content;margin:0;padding:7px 10px;font-size:14px;min-height:36px;border-radius:10px}
/* The ordered products precede the workflow, delivery and warehouse handling. */
html body .otMaterialPanel{margin:20px 0}
html body .otColumns{display:block}
html body .otRight{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
html body .otRight>button{width:auto;justify-self:start;min-height:36px;padding:8px 12px}
html body .otOrderHeader h2{font-size:clamp(23px,3vw,30px)}
html body .otStockDetails{margin:12px 0;border-top:1px solid var(--line);padding-top:10px}
html body .otStockDetails summary{cursor:pointer;font-size:14px;font-weight:650;min-height:36px;display:list-item;align-content:center;padding:6px 0}
html body .otItem{padding:15px 0}
html body .otItemHead{align-items:start}
html body .otLineProgress{margin:10px 0}
html body .orderDeliverySummary{margin:18px 0}
html body .boCheckout{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
html body .boCartItems{order:0}
html body .boCheckout .cartSummary{order:1}
html body .boCartItems .tableWrap{overflow-x:auto}
html body .boCartItems table{min-width:480px}
html body .boCartItems input[type=number]{min-width:70px}
}
@media screen and (max-width:820px){
 html body :is(.row,.otActions,.boWindowNav)>:is(button,a.itButton,a.primary,a.secondary),html body :is(td,.itFilter) button{min-height:44px}
 html body .mobileNav{gap:8px;padding:8px 12px}
 html body .mobileNav button{padding:8px 12px;min-height:44px;white-space:nowrap}
 html body .lxStockResponsive{overflow:visible;border-radius:0}
 html body .lxStockResponsive table,html body .lxStockResponsive tbody{display:block;width:100%}
 html body .lxStockResponsive thead{display:none}
 html body .lxStockResponsive tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px;border:1px solid var(--line);border-radius:12px;padding:12px;margin:12px 0}
 html body .lxStockResponsive td{display:block;min-width:0;padding:9px 0;border:0;overflow-wrap:anywhere}
 html body .lxStockResponsive td[data-label]:not(.lxStockIdentity)::before{content:attr(data-label);display:block;font-size:12px;font-weight:650;margin-bottom:4px;opacity:.85}
 html body .lxStockResponsive .lxStockIdentity{grid-column:1/-1;display:flex;gap:10px;align-items:center;min-width:0;border-bottom:1px solid var(--line);padding-bottom:12px}
 html body .lxStockIdentity>div{display:block;min-width:0;max-width:none}
 html body .lxStockIdentity :is(img,.productThumb){flex-shrink:0}
 html body .lxStockActionCell{grid-column:1/-1;min-width:0!important;border-top:1px solid var(--line)!important;padding:12px 0 0!important}
 html body .lxStockActions{grid-template-columns:repeat(2,minmax(0,1fr))}
 html body .lxStockActions button{min-height:44px;max-width:none;min-width:max-content;font-size:14px}
 html body .otRight{grid-template-columns:minmax(0,1fr)}
 html body .otActions{display:flex;gap:8px}
 html body .otActions button{width:auto;min-height:44px;padding:9px 12px;margin:0;font-size:14px}
 html body .otPanel button{max-width:100%;width:auto;min-height:44px;font-size:14px;padding:9px 12px}
 html body .otRight>button{min-height:44px}
}

@media screen and (max-width:820px){
 html body .boCartItems .tableWrap{overflow:visible}
 html body .boCartItems table,html body .boCartItems tbody{display:block;width:100%;min-width:0}
 html body .boCartItems thead{display:none}
 html body .boCartItems tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
 html body .boCartItems td{display:block;min-width:0;border:0;padding:0}
 html body .boCartItems td[data-label]::before{content:attr(data-label);display:block;font-size:12px;font-weight:650;margin-bottom:5px}
 html body .boCartItems .boCartProduct,html body .boCartItems .boCartQty{grid-column:1/-1}
 html body .boCartItems .boCartProduct{overflow-wrap:anywhere}
}
/* Material design shared by stock, catalogue, shop, vehicle and order material. */
html body .boMaterialPage{max-width:1300px;margin:auto}
html body :is(.boMaterialScope,.boMaterialListHead){display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:18px 0}
html body .boMaterialScope label{min-width:200px;flex:1;max-width:480px}
html body .boMaterialScope span{color:var(--muted);font-size:13px}
html body .boMaterialKpis{display:grid;grid-template-columns:2fr 1fr 1fr;gap:14px;margin:20px 0}
html body .boMaterialKpis section{display:flex;gap:16px;align-items:center;padding:22px;background:var(--card);border:1px solid var(--line);border-radius:18px;min-width:0}
html body .boMaterialKpis strong{display:block;font-size:clamp(22px,3vw,32px);line-height:1.2;color:var(--text)}
html body .boMaterialKpis small{display:block;color:var(--muted);margin:4px 0}
html body .boMaterialIcon{display:grid;place-items:center;flex-shrink:0;width:48px;height:48px;border-radius:50%;font-size:28px;color:#0860cd;background:#eaf2ff}
html body .boMaterialIcon.warning{color:#805000;background:#fff2d5}
html body .boMaterialSearch{display:flex;align-items:stretch;gap:12px;margin:20px 0}
html body .boMaterialSearch input{flex:1;min-width:0;margin:0;min-height:52px;font-size:16px;border-radius:14px}
html body .boMaterialSearch button{width:60px;min-width:52px;min-height:52px;margin:0;border-radius:14px;font-size:24px}
html body .boMaterialQuick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0 28px}
html body .boMaterialQuick button{padding:16px 12px;min-height:60px;border-radius:15px;white-space:normal;text-align:left;font-weight:700;font-size:16px;min-width:0;background:var(--card);color:var(--text);border:1px solid var(--line)}
html body .boMaterialListHead h2{margin:0}
html body .boMaterialFilters{display:flex;gap:8px;flex-wrap:wrap}
html body .boMaterialFilters button{border-radius:24px;padding:9px 14px;min-height:44px;font-size:14px;width:auto;margin:0;color:var(--text);background:var(--card);border:1px solid var(--line)}
html body .boMaterialFilters button[aria-pressed=true]{background:#dbeafe!important;color:#092f73!important;border-color:#82b2f3!important;font-weight:750}
html body :is(.boMaterialGrid,#prodTable.boMaterialGrid){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
html body .boMaterialCard{min-width:0;position:relative;padding:18px;border:1px solid var(--line);border-radius:18px;background:var(--card);color:var(--text);box-shadow:0 2px 8px #00000005}
html body .boMaterialCard>header{display:flex;gap:14px;align-items:flex-start;min-width:0;margin-bottom:18px}
html body .boMaterialCard>header>div{flex:1;min-width:0}
html body .boMaterialCard h3{font-size:18px;line-height:1.35;margin:2px 0 5px;overflow-wrap:anywhere;color:var(--text)}
html body .boMaterialCard small{color:var(--muted);font-size:13px;overflow-wrap:anywhere}
html body .boMaterialCard .productThumb{width:76px;height:76px;object-fit:contain;border-radius:10px;flex-shrink:0;background:var(--panel2);margin:0;display:grid;place-items:center;font-size:32px}
html body .boMaterialNumbers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:16px 0;gap:8px}
html body .boMaterialNumbers>div{min-width:0;border-right:1px solid var(--line);padding-right:6px}
html body .boMaterialNumbers>div:last-child{border:0}
html body .boMaterialNumbers dt{color:var(--muted);font-size:13px;margin-bottom:6px}
html body .boMaterialNumbers dd{margin:0;font-weight:750;font-size:22px;line-height:1.25;overflow-wrap:anywhere}
html body .boMaterialNumbers dd small{display:block;font-weight:400;font-size:12px}
html body .boMaterialBadge{display:inline-block;background:#fff0cf;color:#754000;font-size:12px;font-weight:700;padding:5px 9px;border-radius:9px;margin-top:8px}
html body .boMaterialMenu{position:relative;flex-shrink:0;margin:0;padding:0;border:0}
html body .boMaterialMenu>summary{display:grid;place-items:center;list-style:none;cursor:pointer;width:36px;height:44px;font-size:25px;color:var(--text);border-radius:9px}
html body .boMaterialMenu>summary::-webkit-details-marker{display:none}
html body .boMaterialMenu[open]>.lxStockActions{position:absolute;right:0;top:44px;width:210px;padding:10px;z-index:20;background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 25px #0003;display:grid;grid-template-columns:1fr}
html body .boMaterialDetail{border:0;margin:0;padding:0}
html body .boMaterialDetail>summary,html body .boMaterialView{display:flex;justify-content:space-between;align-items:center;gap:12px;list-style:none;cursor:pointer;background:var(--panel2);color:var(--text);border-radius:11px;padding:13px 16px;font-size:15px;font-weight:750;min-height:44px;box-sizing:border-box;width:100%;border:0;margin:0}
html body .boMaterialDetail>summary::-webkit-details-marker{display:none}
html body .boMaterialDetail>div{padding:12px 0 0;line-height:1.6}
html body .boMaterialDetail .lxStockActions{grid-template-columns:repeat(2,minmax(0,1fr))}
html body .boMaterialDetail p{overflow-wrap:anywhere}
html body .boMaterialFoot{font-size:12px;color:var(--muted);line-height:1.8;margin:22px 0}
html body .boMaterialFoot button{font-size:13px;min-height:44px;padding:6px 12px}
html body .boMaterialEmpty{grid-column:1/-1;padding:24px;text-align:center}
html body .boMaterialCatalogue dl{display:grid;grid-template-columns:1fr 1fr;gap:12px}
html body .boMaterialCatalogue dd{margin:4px 0}
html body .boMaterialCatalogue dt{font-size:12px;color:var(--muted)}
/* Existing workflow controls keep their handlers and data; use the same card surfaces. */
html body :is(.shopProductCard,.lxMobileProduct,.vehicleProductRow,.otItem,.receiptLine){border:1px solid var(--line);border-radius:16px;background:var(--card);color:var(--text);padding:16px;min-width:0}
html body .otItem{margin-bottom:12px}
html body :is(.shopProductCard,.vehicleProductRow,.receiptLine) h3{color:var(--text)}
html body .shopProductCard{box-shadow:none;overflow:hidden}
html body .shopProductImage{height:120px;background:var(--panel2);border-radius:10px}
html body .shopProductImage img{object-fit:contain;max-height:120px}
html body .shopProductBody{padding:14px 0 0}
html body .shopProductOrder{min-width:0}
html body .shopOrderControls{display:flex;flex-wrap:wrap;gap:10px;align-items:end}
html body .shopOrderControls button{font-size:14px;padding:10px 14px;min-height:44px;flex:1;white-space:normal}
html body .shopOrderControls label{flex:0 1 90px;min-width:75px}
html body .w2WarehouseStock{border-radius:10px;background:var(--panel2);padding:10px;margin:8px 0;color:var(--text)}
@media(max-width:820px){
 html body .boMaterialKpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 html body .boMaterialKpis section:first-child{grid-column:1/-1}
 html body .boMaterialKpis section{padding:16px;gap:12px}
 html body .boMaterialKpis strong{font-size:25px}
 html body .boMaterialQuick{grid-template-columns:repeat(2,minmax(0,1fr))}
 html body :is(.boMaterialGrid,#prodTable.boMaterialGrid){grid-template-columns:minmax(0,1fr)}
 html body .boMaterialCard{padding:15px}
 html body .boMaterialCard .productThumb{width:64px;height:64px}
 html body .boMaterialCard h3{font-size:17px}
 html body .boMaterialListHead{align-items:start;gap:14px}
 html body .boMaterialFilters{width:100%}
 html body .boMaterialFilters button{padding:8px 12px;font-size:13px}
 html body .boMaterialIcon{width:36px;height:36px;font-size:23px}
 html body .boMaterialNumbers dt{font-size:12px}
 html body .boMaterialNumbers dd{font-size:21px}
 html body .boMaterialCard>header{gap:10px}
 html body .boMaterialMenu>summary{width:30px}
 html body .shopProductCard{display:grid;grid-template-columns:75px minmax(0,1fr);gap:12px}
 html body .shopProductImage{height:80px;width:75px}
 html body .shopProductImage img{max-height:80px}
 html body .shopProductBody{padding:0;min-width:0}
 html body .shopProductDescription{font-size:13px}
 html body .lxMobileProduct{flex-wrap:wrap;gap:12px}
 html body .quickUseButtons{display:flex;flex-wrap:wrap;gap:8px}
 html body .quickUseButtons button{min-height:44px;min-width:44px;margin:0;font-size:14px;padding:9px 12px}
}
html[data-bo-theme=light] body :is(.boMaterialQuick button,.boMaterialFilters button,.boMaterialCard,.boMaterialKpis section){background:#fff!important;color:#10213e!important;border-color:#d7e0ec!important}
html[data-bo-theme=light] body :is(.boMaterialDetail>summary,.boMaterialView){background:#e7f0ff!important;color:#073a8c!important}
html[data-bo-theme=dark] body :is(.boMaterialQuick button,.boMaterialFilters button,.boMaterialCard,.boMaterialKpis section){background:#122c46!important;color:#f1f6ff!important;border-color:#537497!important}
html[data-bo-theme=dark] body :is(.boMaterialDetail>summary,.boMaterialView){background:#1c426a!important;color:#f2f7ff!important}
html body .srOnly{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
html body .boMaterialCatalogue header b{display:block;font-size:18px;line-height:1.35;margin-bottom:5px}
html body .boMaterialCatalogue header small{display:block}
html body :is(.cableStock,.cableOffcutManage,.cpLevelCard){border-radius:16px;border:1px solid var(--line);background:var(--card);color:var(--text);padding:16px;min-width:0}
html body .cableStock h3{color:var(--text)}
@media(max-width:820px){html body .boMaterialCatalogue .lxStockActions{grid-template-columns:1fr}html body .boMaterialCatalogue .lxStockActions button{white-space:normal;min-width:0}}
html body .boMaterialQuick button{display:flex;align-items:center;gap:12px}
html body .boMaterialQuick svg{flex-shrink:0;color:#1668cf}
html[data-bo-theme=dark] body .boMaterialQuick svg{color:#8bc5ff}
html body .boMaterialMore{margin:12px 0;padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:var(--card)}
html body .boMaterialMore>summary{cursor:pointer;font-weight:650;min-height:30px;align-content:center}
html body .boMaterialMore .lxNav{margin-top:12px}
html body .boMaterialHeading .pageHead{margin-bottom:16px}
html body .boMaterialCard :is(summary,button):focus-visible{outline:3px solid #3985ef;outline-offset:3px}
/* 3.1.60: less empty space around all existing material workflows. */
html body .boMaterialGrid{gap:12px}
html body .boMaterialCard{padding:13px;border-radius:15px}
html body .boMaterialCard>header{gap:10px;margin-bottom:10px}
html body .boMaterialCard .productThumb{width:60px;height:60px;border-radius:9px}
html body .boMaterialCard h3{font-size:17px;line-height:1.3;margin:0 0 4px}
html body .boMaterialNumbers{margin:10px 0;gap:8px}
html body .boMaterialNumbers dt{margin-bottom:3px;font-size:12px}
html body .boMaterialNumbers dd{font-size:20px;line-height:1.3}
html body .boMaterialNumbers dd small{display:inline;font-size:12px;font-weight:400}
html body .boMaterialDetail>summary{padding:10px 12px;min-height:44px;font-size:14px}
html body .boMaterialDetail>div{padding-top:8px}
html body .boMaterialBadge{margin-top:4px;padding:4px 7px;font-size:11px}
html body :is(.lxMobileProduct,.vehicleProductRow,.otItem,.receiptLine,.cableStock,.cableOffcutManage){padding:12px;margin-bottom:10px;border-radius:14px;gap:10px}
html body .otItemHead{gap:10px}
html body .otLineProgress{margin:7px 0;gap:8px}
html body .otStockDetails{margin:7px 0;padding-top:6px}
html body .boCartItems{padding:14px}
html body .boMaterialCatalogue dl{gap:8px;margin:8px 0}
html body .boMaterialCatalogue header b{font-size:17px;margin-bottom:3px}
@media(max-width:820px){
 html body .boMaterialCard{padding:12px}
 html body .boMaterialCard .productThumb{width:58px;height:58px}
 html body .boMaterialCard h3{font-size:16px}
 html body .boMaterialNumbers dt{font-size:11px}
 html body .boMaterialNumbers dd{font-size:19px}
 html body .boMaterialNumbers dd small{font-size:11px}
 html body .boCartItems tr{grid-template-columns:1fr 1fr 1fr;gap:10px;padding:12px 0}
 html body .boCartItems .boCartProduct{grid-column:1/-1}
 html body .boCartItems .boCartProduct::before{display:none}
 html body .boCartItems .boCartQty{grid-column:auto}
 html body .boCartItems .boCartQty input{width:62px!important;min-width:0;min-height:44px;margin:0;padding:8px}
 html body .boCartItems td[data-label]::before{font-size:11px;margin-bottom:4px}
 html body .boCartItems .boCartQty .row{gap:4px}
 html body .boCartItems :is(td,b,small){overflow-wrap:anywhere}
}
@media(max-width:820px){
 html body .boCartItems tbody td{padding:0!important;line-height:1.35;align-self:start}
 html body .boCartItems .boCartProduct::before{display:none!important}
 html body .boCartItems .boCartQty .row{display:flex;flex-wrap:nowrap;gap:4px;align-items:center}
 html body .boCartItems .boCartQty input{width:56px!important;flex:0 1 56px}
}
html body .boSpeechSettings{margin:10px 0 14px;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--text);font-size:14px}
html body .boSpeechSettings>summary{cursor:pointer;font-weight:650;min-height:36px;align-content:center}
html body .boSpeechOptions{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:6px 16px;margin:10px 0}
html body .boSpeechOptions label{display:flex;align-items:center;gap:10px;min-height:44px;font-size:14px;margin:0;cursor:pointer}
html body .boSpeechOptions input[type=checkbox]{width:22px;height:22px;min-height:22px;flex:0 0 22px;margin:0;accent-color:#126bdd}
html body .boSpeechSettings button{width:auto;min-height:44px;padding:8px 12px;font-size:14px;margin:4px 8px 4px 0}
html body .boSpeechStatus{font-size:12px;line-height:1.5;color:var(--muted);margin:8px 0 2px}
