/* Opt-in light variant. Scope beats the existing dark rules, including their !important declarations. */
@media screen{
html[data-bo-theme=light] body{--navy:#102a43;--blue:#126bdd;--blue2:#0b54bb;--bg:#f3f7fc;--card:#fff;--panel:#fff;--panel2:#edf4ff;--line:#6b9dcc;--text:#111827;--muted:#374151;--shadow:0 6px 22px #23518412;background:#f3f7fc!important;color:#111827!important;color-scheme:light}
html[data-bo-theme=light] body :is(h1,h2,h3,h4,p,small,span,b,strong,label,legend,dt,dd,li,summary,td,th,pre,code){color:#111827!important}
html[data-bo-theme=light] body :is(.topbar,.sidebar,.examHeader,.q-top,.projectTop,.identityHeader,.itHeader,.itSide,.boLocalSide,.mobileNav,.mobilebar,.woTop,.woShell,.tpShell,.tpTop,.otPage,.osSecurityNav){background:#f3f7fc!important;color:#111827!important;border-color:#6b9dcc!important}
html[data-bo-theme=light] body :is(.card,.identityPanel,.identityColumns>section,.q-guide,.question,.productCard,.orderGroup,.kpi,.projectKpis>div,.identityStats>div,.modalCard,.userMenu,.examCard,.q-card,.riskCard,.installPanel,.loginCard,.loginCreator,.creatorBadge,.woPanel,.woKpi,.woIncoming,.woIncomingItem,.woOrderCard,.tpPanel,.tpLine,.tpOrder,.otCard,.otPanel,.osDialog,.brCard,.boScanSettings,.boCameraTools){background:#fff!important;color:#111827!important;border:1px solid #6b9dcc!important;box-shadow:var(--shadow)}
html[data-bo-theme=light] body :is(.pageHead,.hero,.q-hero,.projectHero,.reportWriting,.reportForm,.warehouseStatusStrip article){background:#fff!important;color:#111827!important;border-color:#6b9dcc!important}
html[data-bo-theme=light] body :is(table,.miniCard,.orderGroupHead,.supplierBlock,.adminNote,.mobileKpis>div,.vehicleProductRow,.inventorySearch,.receivingOrder,.warehouseOrderCard,.warehouseOrderFacts span,.pickLine,.stickyPickActions,.warehouseMobileDock,.regionCard,.outsideInflowRow,.warehouseMoreFunctions,.toolbar,.field-editor,.identityEnrol,.riskAction,.riskMailRow,.reportLocation,.reportVideo,.reportTypeGuide,.reportEmergency details,.reportMenu>div,.reportMore>div,.productBody,.w2Fulfillment,.w2ZoneGrid article,.cpCable,.cpStats span,.cpStatGrid article,.identityUE,.cableStock,.cableAvailable,.cableInventoryRow,.cpStats,.cpRows,.cpRow,.meterCard,.meterListItem,.meterStockCard,.meterCameraPanel,.meterScanDiag,.scanResult,.woMovement,.otRow,.tpActive){background:#fff!important;color:#111827!important;border-color:#6b9dcc!important}
html[data-bo-theme=light] body.mobileUnified .portalChooser .moduleCard{background:#fff!important;color:#111827!important;border-color:#6b9dcc!important;border-top-color:#126bdd!important}
html[data-bo-theme=light] body.mobileUnified .portalChooser .moduleCard :is(h2,p,small){color:#111827!important}
html[data-bo-theme=light] body.mobileUnified .portalChooser .moduleCard .moduleIcon{background:#edf4ff!important;color:#126bdd!important}
html[data-bo-theme=light] body :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){background:#fff!important;color:#111827!important;border:1px solid #3177ad!important;accent-color:#126bdd}
html[data-bo-theme=light] body :is(input,textarea)::placeholder{color:#4b5563!important;opacity:1}
html[data-bo-theme=light] body :is(th,thead){background:#e7f1ff!important;color:#111827!important}
html[data-bo-theme=light] body td{border-color:#a4c2df!important}
html[data-bo-theme=light] body tbody tr:hover{background:#edf4ff!important}
html[data-bo-theme=light] body a{color:#075ea8!important}
html[data-bo-theme=light] body :is(button,.secondary,.q-home,.userPill,.cartButton,.userMenu button,.boWindowNav button,.woShell button,.tpShell button,.otPage button,.osDialog button,.brPasskey,.brCancel,.boCameraTools button,.categoryTabs button,.pickStageBar button,.destinationChoice button,.warehouseSimpleActions button,.warehouseHomeActions button,.portalChooser>button,.richardJobGrid>button,.w2TerminalModes button,.w2TerminalOrders button){background:#fff!important;color:#111827!important;border-color:#3177ad!important}
html[data-bo-theme=light] body .boNavGroup>summary{background:#e7f1ff!important;color:#111827!important}
html[data-bo-theme=light] body :is(.sidebar,.boLocalSide,.itSideNav) .boNavGroup :is(button,a){background:transparent!important;color:#111827!important}
html[data-bo-theme=light] body :is(.sidebar,.boLocalSide,.itSideNav) .boNavGroup :is(button,a):hover,html[data-bo-theme=light] body .boNavGroup .active{background:#d9eaff!important;color:#111827!important}
html[data-bo-theme=light] body :is(.primary,button.primary,.woPrimary,.tpPrimary,.btn,.brPrimary,.reportSubmit){background:linear-gradient(110deg,#126bdd,#0b54bb)!important;color:#fff!important;border-color:#0b54bb!important}
html[data-bo-theme=light] body :is(.primary,.woPrimary,.tpPrimary,.btn,.brPrimary,.reportSubmit) :is(span,b,strong,small){color:#fff!important}
html[data-bo-theme=light] body.mobileUnified .portalChooser .moduleCard>b{background:linear-gradient(110deg,#126bdd,#0b54bb)!important;color:#fff!important}
html[data-bo-theme=light] body.mobileUnified .portalChooser .moduleCard>b span{color:#fff!important}
html[data-bo-theme=light] body :is(.notice,.pill,.status,.woBadge,.otBadge,.tpBadge){background:#edf4ff!important;color:#111827!important;border-color:#3177ad!important}
html[data-bo-theme=light] body :is(.warn,.notice.warn,.stockBadge.low,.status.DELLEVERERAD,.scanResult.warn,.riskType.YELLOW,.woBadge.warn){background:#fff3c4!important;color:#603e00!important;border-color:#aa7a13!important}
html[data-bo-theme=light] body :is(.danger,button.danger,.error,.status.AVBRUTEN,.scanResult.error,.riskType.RED,.woBadge.danger,.otAlert,.reportEmergency,.reportTypeGuide aside){background:#fff0f2!important;color:#8f1730!important;border-color:#b44e64!important}
html[data-bo-theme=light] body :is(.success,.riskType.GREEN,.stockBadge:not(.low),.scanResult.success,.tpScanNotice,.woBadge.success){background:#e4f8ec!important;color:#155a32!important;border-color:#459565!important}
html[data-bo-theme=light] body :is(.riskHint,.riskTimeline small,.muted,.sub,.small,.help,.hint,.fieldHelp,.identityMuted,.cpStatHint,.woScopeNote,.woUpdated,.woLead,.tpMuted,.otMuted,.boCameraStatus,.createdBySignature,footer){color:#374151!important}
html[data-bo-theme=light] body :is(.itTerminal,.terminal,.blackTerminal){background:#fff!important;color:#111827!important;border:1px solid #3177ad!important}
html[data-bo-theme=light] body :is(.shopProductImage,.productImage,.shopImagePlaceholder,.w2WarehouseStock,.identityAvatar,.userAvatar,.moduleIcon){background:#edf4ff!important;color:#126bdd!important}
html[data-bo-theme=light] body :is(.boHome,.brandButton,.osBrand,.osEditWarning,.osSecurityNav .osReportButton,.priceHistoryLink,.identityTable button.name){color:#075ea8!important}
html[data-bo-theme=light] body :is(.reportHazard,.reportAccident){background:#a92235!important;color:#fff!important}
html[data-bo-theme=light] body :is(.reportObservation){background:#156c3e!important;color:#fff!important}
html[data-bo-theme=light] body :is(.reportHazard,.reportAccident,.reportObservation) :is(span,b,strong,small,p){color:#fff!important}
html[data-bo-theme=light] body #accidentBanner,html[data-bo-theme=light] body #accidentBanner :is(h2,h3,p,span,b,strong,small,a){color:#fff!important}
html[data-bo-theme=light] body #basordningReauth{background:rgba(235,242,250,.85)!important}
html[data-bo-theme=light] body #basordningReauth .brCard{background:#fff!important;color:#111827!important}
html[data-bo-theme=light] body .boFieldError{color:#8f1730!important}
html[data-bo-theme=light] body :is(.tpScanField,.tpScanField input,.tpQty,.otTimeline,.otStep,.woStats,.woFlow,.tpDelivery){color:#111827!important;border-color:#6b9dcc!important}
html[data-bo-theme=light] body :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #075ea8;outline-offset:3px}
}
@media screen{
html[data-bo-theme=light] body :is(.wiMetric,.woIncoming article,.woLoading,.itCard,.itCardHead,.itCardBody,.itSideFooter,.itOnline,.itTabs,.itForm,.itStat,.itTableWrap,.itTerminalTools,.itCommand,.itConnectPanel,.itDeviceCode,.opsHero,.opsToolbar,.opsStats .itStat,.opsTag,.opsCommandResult,.otOrder,.otNotice,.otOrderList button,.otAvatar,.tpPage,.tpCompact,.tpActiveRow,.tpHistory,.tpDelivery,.tpWarehouse,.tpCheck){background:#fff!important;color:#111827!important;border-color:#6b9dcc!important}
html[data-bo-theme=light] body.wo-active .woShell :is(table,thead,tbody,tr,th,td){background:#fff!important;color:#111827!important;border-color:#a4c2df!important}
html[data-bo-theme=light] body.wo-active .woShell th{background:#e7f1ff!important;color:#111827!important}
html[data-bo-theme=light] body :is(.identityWarning,.itDangerBox,.otShortage){background:#fff3c4!important;color:#603e00!important;border-color:#aa7a13!important}
html[data-bo-theme=light] body :is(.woError,.otError,.tpError,.opsLive.error,.itToast.error){background:#fff0f2!important;color:#8f1730!important;border-color:#b44e64!important}
html[data-bo-theme=light] body :is(.opsLive,.otNotice.good){background:#e4f8ec!important;color:#155a32!important;border-color:#459565!important}
html[data-bo-theme=light] body :is(.riskLive,.otStatus,.otStepIcon){background:#e7f1ff!important;color:#111827!important}
html[data-bo-theme=light] body .itUser>span{background:#e7f1ff!important;color:#111827!important}
}
@media screen{
html[data-bo-theme=light] body :is(.blackDashboard,.blackHero,.blackKpis>div,.blackPanel,.blackGaugePanel,.blackGauge,.blackFlowCard,.blackFeed,.blackUsers,.blackEmpty,.blackBoot,.terminalPanel,.terminalTop){background:#fff!important;color:#111827!important;border-color:#6b9dcc!important}
html[data-bo-theme=light] body :is(.blackSignal,.blackControlRow,.blackCommandGrid button){background:#edf4ff!important;color:#111827!important;border-color:#3177ad!important}
html[data-bo-theme=light] body .riskBroadcastAudioRow{background:#f3f7fc!important;border-color:#6b9dcc!important}
html[data-bo-theme=light] body .riskBroadcastBox{background:#edf4ff!important;color:#111827!important;border-color:#3177ad!important}
html[data-bo-theme=light] body .riskBroadcastBox.accident{background:#fff0f2!important;border-color:#b42338!important}
html[data-bo-theme=light] body .riskBroadcastBox.near{background:#fff3c4!important;border-color:#aa7a13!important}
html[data-bo-theme=light] body svg text{fill:#111827!important}
}
@media screen{
html[data-bo-theme=light] body :is(.blackKpis article,.blackPanelTitle,.blackUsers>div,.blackStock>div,.blackLowStock button,.blackPriceChanges>div,.blackSupplierSummary span,.orderFeedbackCard,.orderFeedbackFacts span){background:#fff!important;color:#111827!important;border-color:#6b9dcc!important}
html[data-bo-theme=light] body .blackGaugeDial{background:conic-gradient(from -90deg,var(--gauge-color) var(--gauge-angle),#e0ecfa 0)!important}
html[data-bo-theme=light] body .blackGaugeDial:before{background:#fff!important;border-color:#6b9dcc!important}
html[data-bo-theme=light] body .blackTerminal{background:#fff!important;color:#111827!important;text-shadow:none}
}
@media screen{
html[data-bo-theme=light]{background:#f3f7fc!important;color-scheme:light}
html[data-bo-theme=light] body dialog:not(#basordningReauth){background:#fff!important;color:#111827!important;border-color:#6b9dcc!important}
html[data-bo-theme=light] body .tpComplete .tpCheck,html[data-bo-theme=light] body .otFlow .done .otStepIcon{background:#c5f2d6!important;color:#155a32!important}
html[data-bo-theme=light] body .tpActiveRow .tpCheck,html[data-bo-theme=light] body .otFlow .current .otStepIcon{background:#d9eaff!important;color:#075ea8!important}
}
@media screen{
html[data-bo-theme=light] body :is(.itSecretNote,.itConnectProgress,.itToast,.meter,.userAvatar,.orderFeedbackIcon,.orderFeedbackOk){background:#edf4ff!important;color:#111827!important;border-color:#6b9dcc!important}
html[data-bo-theme=light] body .itTable tr:hover td{background:#edf4ff!important;color:#111827!important}
html[data-bo-theme=light] body :is(.pill.INFO,.pill.ACCEPTED,.pill.DELIVERED,.pill.OK){background:#e4f8ec!important;color:#155a32!important;border-color:#459565!important}
html[data-bo-theme=light] body :is(.pill.WARNING,.pill.QUEUED,.pill.SENDING,.reportNearMiss,.reportRisk){background:#fff3c4!important;color:#603e00!important;border-color:#aa7a13!important}
html[data-bo-theme=light] body :is(.pill.ERROR,.pill.FAILED,.pill.CANCELLED){background:#fff0f2!important;color:#8f1730!important;border-color:#b44e64!important}
html[data-bo-theme=light] body .boNavGroup>summary{border:1px solid #6b9dcc}
}


/* 3.1.39: components that previously kept dark surfaces or pale text after switching. */
@media screen{
html[data-bo-theme=light] body :is(.supplierTag,.supplierTag.rexel,.supplierTag.oneco,.supplierTag.telia,.itButton,.shopProductCategory,.step,.moduleChecks,.warehouseChecks,.moduleUserGrid article,.warehouseActionGrid>button,.w2WarehouseStock,.w2WarehouseCard,.w2LocationCard,.w2ProductPlaces,.dsPanel,.dsPreview,.dsStep,.dsPlaceCard){background:#edf4ff!important;color:#111827!important;border-color:#6b9dcc!important}
html[data-bo-theme=light] body :is(time,.otLive,.otMeta,.woUpdated,.tpMuted,.itConnectHint,.shopProductCategory){color:#374151!important}
html[data-bo-theme=light] body :is(#userInitial,.cartButton>span,.cartCount,.cartBadge){background:#0754ac!important;color:#fff!important}
html[data-bo-theme=light] body :is(#userInitial,.cartButton>span,.cartCount,.cartBadge) *{color:#fff!important}
html[data-bo-theme=light] body :is(.q-dialog,.modalBody,.modalFooter,.modalHead,.boScanPanel,.boScanDiag,.meterScanLog,.meterDocumentFields,.meterInventoryMeta){background:#fff!important;color:#111827!important;border-color:#6b9dcc!important}
html[data-bo-theme=light] body footer{background:#e7f1ff!important;color:#111827!important}
html[data-bo-theme=light] body footer :is(b,strong,span,a){color:#111827!important}
html[data-bo-theme=light] body :is(.primary,.woPrimary,.tpPrimary,.brPrimary,.reportSubmit,.btn):is(a,button){color:#fff!important}
html[data-bo-theme=light] body :is(input,select,textarea):focus{outline:3px solid #126bdd;outline-offset:2px}
html[data-bo-theme=light] body :is(input,select,textarea):disabled{color:#374151!important;background:#e7edf5!important;opacity:1}
}


@media screen{
html[data-bo-theme=light] body.mobileUnified .mobileWordmark,
html[data-bo-theme=light] body.mobileUnified .mobileWordmark small{color:#111827!important}
}
@media screen{
html[data-bo-theme=light] body .installWarning{background:#fff3c4!important;color:#603e00!important;border-color:#aa7a13!important}
html[data-bo-theme=light] body .compactTitle>span:not(.statusDot){color:#075ea8!important}
html[data-bo-theme=light] body .statusDot.online{color:#155a32!important}
html[data-bo-theme=light] body .w2TerminalModern{background:#f3f7fc!important;color:#111827!important}
html[data-bo-theme=light] body .w2TerminalModern :is(.w2ActiveWarehouse,.w2ScannerPanel,#w2ScanResult,.w2MovementList article){background:#fff!important;color:#111827!important;border-color:#6b9dcc!important}
html[data-bo-theme=light] body .w2TerminalModern #w2ScanResult.ok{background:#e4f8ec!important;color:#155a32!important}
html[data-bo-theme=light] body .w2TerminalModern #w2ScanResult.error{background:#fff0f2!important;color:#8f1730!important}
}
