/* Shared visual language for desktop, tablet and mobile; screen only. */
@media screen{
body.mobileUnified:not(.blackmode-active){--blue:#126bea;--blue2:#0958ce;--navy:#103659;--bg:#f7f9fc;--line:#d7e2ed;--shadow:0 5px 20px #0e345410;font-family:system-ui,-apple-system,'Segoe UI',sans-serif;background:var(--bg);color:#17314b}
body.mobileUnified:not(.riskPage):not(.blackmode-active) :is(.topbar,.examHeader,.q-top,.projectTop,.identityHeader){background:linear-gradient(110deg,#103a62,#0a3157);color:#fff;border:0;box-shadow:0 4px 18px #10365916}
body.mobileUnified:not(.riskPage) :is(.examHeader,.q-top,.projectTop,.identityHeader) a{color:white;text-decoration:none}
body.mobileUnified:not(.riskPage) :is(.examHeader,.q-top,.identityHeader)>a:first-child img,body.mobileUnified .brandButton>img,body.mobileUnified .brandButton>span:not(.mobileWordmark),body.mobileUnified .desktopProjectBrand{display:none}
body.mobileUnified .mobileWordmark{position:relative;display:inline-block!important;font-size:23px;font-weight:850;color:white;line-height:1.1;letter-spacing:-.5px;padding:0 0 16px;min-width:155px;text-align:left}
body.mobileUnified .mobileWordmark:after{content:'';position:absolute;left:0;bottom:9px;height:4px;width:78%;background:#f0132d}
body.mobileUnified .mobileWordmark small{position:absolute;right:0;bottom:0;color:white;font-size:10px;font-weight:700}
body.mobileUnified .brandButton{background:transparent;padding:0;color:white}
body.mobileUnified:not(.blackmode-active) .quickNav{background:#0d2d50;gap:5px;padding:5px;border-radius:14px;justify-content:flex-start}
body.mobileUnified:not(.blackmode-active) .quickNav button{background:transparent;color:#d4e1ed;border:0;border-radius:12px;flex:0 0 auto;min-width:88px;padding:9px 12px}
body.mobileUnified .quickNav button>b{white-space:nowrap}
body.mobileUnified:not(.blackmode-active) .quickNav button>span{color:inherit}
body.mobileUnified:not(.blackmode-active) .quickNav button:is(.active,:hover){background:linear-gradient(135deg,#255c8b,#1d4f7f);color:#fff}
body.mobileUnified:not(.riskPage):not(.blackmode-active) :is(.userPill,.cartButton){background:#ffffff10;color:white;border:1px solid #ffffff30;border-radius:14px}
body.mobileUnified:not(.riskPage) :is(.q-top,.examHeader,.projectTop,.identityHeader) .secondary{background:#ffffff0d;color:white;border:1px solid #ffffff40}
body.mobileUnified:not(.riskPage):not(.blackmode-active) :is(.mobileNav,.q-tabs,.examNav,#identityNavigation,.projectTabs){background:#0d2d50;color:white;border:0;border-radius:14px;padding:9px;gap:6px;overflow-x:auto}
body.mobileUnified:not(.riskPage) :is(.q-tabs,.examNav,#identityNavigation,.projectTabs)>:is(button,a){background:transparent;border:0;color:#d4e1ed;border-radius:12px;padding:12px 16px;min-height:48px;text-decoration:none;white-space:nowrap;flex-shrink:0}
body.mobileUnified:not(.riskPage) :is(.q-tabs,.examNav,#identityNavigation,.projectTabs)>.active{background:#245987;color:white}
body.mobileUnified:not(.riskPage):not(.blackmode-active) :is(.pageHead,.hero,.q-hero,.projectHero){color:white;background:linear-gradient(100deg,#0e325cf5,#164671dd),url('/static/report-field-background.png') right center/cover;border:0;border-radius:23px;padding:28px;box-shadow:var(--shadow);margin-bottom:22px;gap:18px}
body.mobileUnified:not(.riskPage):not(.blackmode-active) :is(.pageHead,.hero,.q-hero,.projectHero) :is(h1,h2){color:white;letter-spacing:-.6px;line-height:1.15;margin:0 0 8px}
body.mobileUnified:not(.riskPage):not(.blackmode-active) :is(.pageHead,.hero,.q-hero,.projectHero) :is(p,small){color:#d5e5f3;line-height:1.5}
body.mobileUnified:not(.riskPage):not(.blackmode-active) :is(.card,.identityPanel,.identityColumns>section,.q-guide,.question,.productCard,.orderGroup,.kpi,.projectKpis>div,.identityStats>div){border:1px solid #dce6ef;border-radius:20px;background:#fff;box-shadow:var(--shadow);color:#17314b;min-width:0}
body.mobileUnified:not(.riskPage):not(.blackmode-active) :is(.primary,button.primary){color:white;background:linear-gradient(110deg,#197bff,#075de1);border:0;border-radius:28px;min-height:48px;padding:12px 20px;font-weight:750;box-shadow:0 5px 12px #1263d322}
body.mobileUnified:not(.riskPage) :is(.secondary,button.secondary,.q-home){border-radius:13px;min-height:44px;padding:10px 14px}
body.mobileUnified:not(.riskPage):not(.blackmode-active) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){border:1px solid #cddae7;background:#fff;color:#16344f;border-radius:13px;min-height:48px;padding:12px;max-width:100%;min-width:0}
body.mobileUnified :is(input,select,textarea):focus-visible{outline:3px solid #146eed35;border-color:#146eed}
body.mobileUnified :is(button,a):focus-visible{outline:3px solid #3595f3;outline-offset:3px}
body.mobileUnified:not(.riskPage) :is(.tableWrap,.q-table-wrap){border:1px solid #dce6ef;border-radius:18px;overflow:auto}
body.mobileUnified:not(.riskPage):not(.blackmode-active) th{background:#edf4fb;color:#385574;padding:15px}
body.mobileUnified:not(.riskPage):not(.blackmode-active) td{border-bottom-color:#e3ebf3;padding:15px}
body.mobileUnified:not(.riskPage):not(.blackmode-active) tbody tr:hover{background:#f4f8fd}
body.mobileUnified:not(.riskPage) dialog{border:0;border-radius:22px;box-shadow:0 18px 65px #0a264650;max-width:calc(100vw - 24px)}
body.mobileUnified dialog::backdrop{background:#09274888}
body.mobileUnified .identityFilters{display:grid;grid-template-columns:minmax(0,1fr) minmax(170px,220px) minmax(170px,220px);align-items:end;gap:14px}
body.mobileUnified .identitySearchLabel{display:grid;gap:8px;min-width:0;margin:0;font-weight:700}
body.mobileUnified #identitySearch{width:100%;font-size:16px;appearance:auto;cursor:text}
body.mobileUnified .identityFilters select{width:100%;font-size:15px}
body.mobileUnified .identityTable button.name{min-height:44px;padding:8px 0;color:#0864bd}
body.mobileUnified:not(.riskPage):not(.blackmode-active) :is(.projectActions,.warehouseActionGrid,.warehouseFocus,.q-tiles)>:is(button,a){background:#eaf3ff;color:#17466e;border:1px solid #cbdff3;border-radius:18px;padding:18px;text-decoration:none}
body.mobileUnified:not(.riskPage):not(.blackmode-active) :is(.projectActions,.warehouseActionGrid,.warehouseFocus,.q-tiles)>:is(button,a):nth-child(2){background:#eaf6ed;color:#246d38;border-color:#d1e8d6}
body.mobileUnified:not(.riskPage):not(.blackmode-active) :is(.projectActions,.warehouseActionGrid,.warehouseFocus,.q-tiles)>:is(button,a):nth-child(3){background:#f0eaff;color:#67379b;border-color:#e0d5f0}
body.mobileUnified:not(.riskPage):not(.blackmode-active) :is(.projectActions,.warehouseActionGrid,.warehouseFocus,.q-tiles)>:is(button,a):nth-child(4){background:#fff5d9;color:#765715;border-color:#f0e1b4}
@media(min-width:821px){body.mobileUnified .topbar{height:auto;min-height:88px;flex-wrap:wrap;padding:12px 20px}body.mobileUnified .quickNav{flex:1;min-width:0}body.mobileUnified .topActions{margin-left:auto}body.mobileUnified .projectTop{padding:18px 24px}body.mobileUnified .projectTop>button{background:transparent;color:white;border:0;font-weight:750}body.mobileUnified .identityMain{margin-top:24px}body.mobileUnified .sidebar{background:linear-gradient(160deg,#103a62,#0b2645)}body.mobileUnified .creatorBadge{display:none}}
@media(max-width:820px){body.mobileUnified .mobileWordmark{font-size:21px;min-width:139px}body.mobileUnified:not(.riskPage) :is(.pageHead,.hero,.q-hero,.projectHero){padding:22px 20px}body.mobileUnified .identityFilters{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}body.mobileUnified .identitySearchLabel{grid-column:1/-1}body.mobileUnified:not(.riskPage) :is(.mobileNav,.q-tabs,.examNav,#identityNavigation,.projectTabs){border-radius:0}}
@media(max-width:460px){body.mobileUnified .identityFilters{grid-template-columns:minmax(0,1fr)}}
}
@media screen{
body.mobileUnified:not(.riskPage) .releaseBadge{display:none}
body.mobileUnified:not(.riskPage) .q-top .q-home,body.mobileUnified:not(.blackmode-active) .topActions .secondary{background:#ffffff0d;color:white;border:1px solid #ffffff40}
body.mobileUnified .q-top small{color:#c3d5e5}
body.mobileUnified .quickNav #riskQuickNav{min-width:164px;flex:0 0 auto}
body.mobileUnified .sidebar .projectMainEntry{margin:12px;width:calc(100% - 24px);padding:12px;background:#245987;color:white;border:1px solid #ffffff20;border-radius:13px;font-weight:700;min-height:48px}
}
@media screen{
body.mobileUnified .portalChooser{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;max-width:none}
body.mobileUnified .portalChooser .moduleCard{--module-color:#136beb;--module-tint:#e8f2ff;display:flex;flex-direction:column;align-items:flex-start;gap:18px;min-width:0;padding:24px;border:1px solid #dce6ef;border-top:4px solid var(--module-color);border-radius:23px;background:#fff;color:#17314b;text-decoration:none;box-shadow:0 5px 18px #1036590c;transition:transform .15s,box-shadow .15s}
body.mobileUnified .portalChooser .moduleCard:hover{transform:translateY(-3px);box-shadow:0 12px 28px #1036591c}
body.mobileUnified .moduleCard .moduleIcon{display:grid;place-items:center;width:64px;height:64px;background:var(--module-tint);color:var(--module-color);border-radius:19px}
body.mobileUnified .moduleIcon svg{width:34px;height:34px}
body.mobileUnified .moduleCard small{color:var(--module-color);font-size:11px;letter-spacing:.08em;text-transform:uppercase;font-weight:750}
body.mobileUnified .moduleCard h2{font-size:23px;line-height:1.2;margin:8px 0;overflow-wrap:anywhere}
body.mobileUnified .moduleCard p{font-size:15px;line-height:1.5;color:#61768c;margin:0}
body.mobileUnified .moduleCard>b{margin-top:auto;padding:10px 16px;border-radius:22px;background:var(--module-tint);color:var(--module-color);font-size:14px;min-height:42px}
body.mobileUnified .portalChooser .module-projects{--module-color:#6d42b3;--module-tint:#f0eaff}
body.mobileUnified .portalChooser .module-quality{--module-color:#198345;--module-tint:#e6f5eb}
body.mobileUnified .portalChooser .module-exam{--module-color:#a56a08;--module-tint:#fff4d9}
body.mobileUnified .portalChooser .module-risks{--module-color:#c32334;--module-tint:#fff0f2}
body.mobileUnified .portalChooser .module-meters{--module-color:#087c91;--module-tint:#e3f5f8}
@media(max-width:1200px){body.mobileUnified .portalChooser{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){body.mobileUnified .portalChooser{grid-template-columns:minmax(0,1fr);gap:14px}body.mobileUnified .portalChooser .moduleCard{padding:20px;gap:14px}}
@media(prefers-reduced-motion:reduce){body.mobileUnified .portalChooser .moduleCard{transition:none}}
}

/* Riskrapportering: tydlig ingång från mobilen. */
.riskNavIcon{width:30px;height:30px;display:block}.riskEntryIcon{width:80px;height:80px;flex-shrink:0}.riskEntryTypes{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.riskEntryTypes>span{padding:7px 12px;border-radius:9px;font-size:13px;font-weight:800;line-height:1.2}.riskEntryTypes .accident{background:#ffe0e4;color:#aa0920}.riskEntryTypes .nearMiss{background:#fff2c2;color:#795800}.riskEntryTypes .risk{background:#e0f3e5;color:#126535}
body.mobileUnified .portalChooser .module-risks{border-top:1px solid #dce6ef;border-left:7px solid #ff203a;display:grid;grid-template-columns:80px minmax(0,1fr);gap:16px;align-items:center;background:linear-gradient(135deg,#fff8fa,#fff);padding:20px}
body.mobileUnified .module-risks .moduleIcon{width:80px;height:80px;background:transparent;border-radius:50%}body.mobileUnified .module-risks .moduleIcon>svg{display:none}body.mobileUnified .module-risks .moduleIcon img{width:100%;height:100%}body.mobileUnified .module-risks h2{font-size:22px;margin:0 0 8px}body.mobileUnified .module-risks small{display:none}body.mobileUnified .module-risks>b{grid-column:1/-1;width:100%;margin:0;background:linear-gradient(120deg,#1680ff,#005ae2);color:#fff;text-align:center;padding:14px;border-radius:12px;box-sizing:border-box;font-size:17px}
body.mobileUnified .riskStartEntry{border-left:6px solid #ff203a;align-items:center}body.mobileUnified .riskStartEntry .riskEntryTypes{margin-top:10px}
@media(max-width:600px){body.mobileUnified .portalChooser .module-risks{grid-template-columns:64px minmax(0,1fr);gap:12px;padding:16px}body.mobileUnified .module-risks .moduleIcon{width:64px;height:64px}body.mobileUnified .module-risks h2{font-size:20px}body.mobileUnified .module-risks p{font-size:14px}body.mobileUnified .riskStartEntry{display:grid;grid-template-columns:60px minmax(0,1fr);gap:12px}body.mobileUnified .riskStartEntry .riskEntryIcon{width:60px;height:60px}body.mobileUnified .riskStartEntry>a{grid-column:1/-1;width:100%;text-align:center;box-sizing:border-box;border-radius:12px}.riskEntryTypes{gap:5px}.riskEntryTypes>span{padding:6px 9px;font-size:12px}}

/* IT module card */
.portalChooser .module-it{border-top:5px solid #1688ff;background:linear-gradient(135deg,#f6fbff,#fff)}.portalChooser .module-it .moduleIcon{background:linear-gradient(145deg,#1688ff,#075abf);color:#fff}.portalChooser .module-it>b{color:#0a68cf}
