/* Shared mobile visual language. Screen only: desktop and print layouts retain their existing rules. */
.mobileWordmark{display:none}
@media screen and (max-width:820px){
body.mobileUnified{--blue:#146eed;--blue2:#0c58ce;--navy:#103659;--bg:#f7f9fc;--line:#d7e2ed;--shadow:0 5px 16px #0e345414;font-family:system-ui,-apple-system,'Segoe UI',sans-serif;background:#f7f9fc;color:#17314b}
body.mobileUnified :is(button,a,input,select,textarea){touch-action:manipulation}body.mobileUnified :is(button,a):focus-visible{outline:3px solid #3595f3;outline-offset:3px}
body.mobileUnified:not(.riskPage) :is(.topbar,.examHeader,.q-top,.projectTop,.identityHeader){background:linear-gradient(110deg,#103a62,#0a3157);color:#fff;border:0;box-shadow:none;gap:10px;padding:13px 12px;min-height:70px;height:auto;flex-wrap:wrap;align-items:center}
body.mobileUnified:not(.riskPage) :is(.examHeader,.q-top,.projectTop,.identityHeader) a{color:white;text-decoration:none}
body.mobileUnified .mobileWordmark{position:relative;display:inline-block!important;font-size:21px;font-weight:850;color:white;line-height:1.1;letter-spacing:-.5px;border:0!important;padding:0 0 15px!important;min-width:139px;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!important;font-size:10px;font-weight:700;letter-spacing:0}
body.mobileUnified:not(.riskPage) :is(.examHeader,.q-top,.identityHeader)>a:first-child img{display:none}
body.mobileUnified .brandButton>img,body.mobileUnified .brandButton>span:not(.mobileWordmark){display:none}
body.mobileUnified .brandButton{padding:0;background:transparent;color:white;gap:0}
body.mobileUnified .topActions{gap:6px;flex-wrap:wrap;margin-left:auto}.mobileUnified .creatorBadge{display:none}
body.mobileUnified .userPill{border:0;background:#ffffff0d;color:white;padding:6px 8px;border-radius:14px;font-size:12px;gap:6px}
body.mobileUnified .userPill #userName{display:inline;max-width:92px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.mobileUnified .userPill>span:first-child{background:linear-gradient(135deg,#09a4fa,#0079d3);color:white;width:29px;height:29px}
body.mobileUnified .cartButton{border:1px solid #ffffff32;background:#ffffff10;color:#fff;border-radius:12px;padding:8px;font-size:12px;min-height:42px}
body.mobileUnified :is(.examHeader,.q-top) :is(small,b,strong){color:inherit}body.mobileUnified :is(.examHeader,.q-top) small{color:#c3d5e5}
body.mobileUnified :is(.identityHeader,.projectTop)>b{font-size:14px}body.mobileUnified .identityHeader>a:last-child{font-size:12px}
body.mobileUnified .q-home,body.mobileUnified .projectTop .secondary,body.mobileUnified .examHeader .secondary{border:1px solid #ffffff40;background:#ffffff0d;color:white;border-radius:12px;padding:8px 10px;font-size:12px}
body.mobileUnified :is(.q-top,.examHeader)>div{flex:1;min-width:90px}body.mobileUnified .projectTop>button{font-size:15px;text-align:left;flex:1;min-width:150px;border:0;font-weight:700}body.mobileUnified .projectTop>div{font-size:12px;gap:10px}
body.mobileUnified :is(.mobileNav,.q-tabs,.examNav,#identityNavigation,.projectTabs){background:#0d2d50;border:0;color:white;gap:6px;padding:7px 10px;margin:0;flex-wrap:nowrap;overflow-x:auto;max-width:100%;scrollbar-width:thin}
body.mobileUnified :is(.q-tabs,.examNav,#identityNavigation,.projectTabs)>:is(button,a){background:transparent;border:0;color:#d4e1ed;border-radius:13px;min-height:55px;padding:10px 13px;white-space:nowrap;font-size:13px;font-weight:650;flex-shrink:0;text-decoration:none}
body.mobileUnified :is(.q-tabs,.examNav,#identityNavigation,.projectTabs)>.active{background:linear-gradient(135deg,#255c8b,#1d4f7f);color:white}
body.mobileUnified .mobileNav button{background:#245987;border-radius:11px;min-height:42px}.mobileUnified .mobileNav{position:sticky;color:#d6e4f0}
body.mobileUnified .sidebar{border:0;background:linear-gradient(160deg,#103a62,#0b2645);box-shadow:6px 0 24px #102b4a22}.mobileUnified .sidebar button{border-radius:12px;min-height:48px}.mobileUnified .sidebar button.active{background:#255c8b}
body.mobileUnified .warehouseMobileDock{background:#0d2d50;border:0;padding:9px 8px calc(9px + env(safe-area-inset-bottom,0px));box-shadow:0 -4px 15px #06213a22}.mobileUnified .warehouseMobileDock button{border-radius:12px;color:#d7e6f2;min-height:53px}.mobileUnified .warehouseMobileDock button.active{background:#245c8d;color:white}
body.mobileUnified:not(.riskPage) :is(main,.identityMain,.projectsApp main){padding:15px 12px 70px;margin:0 auto;min-width:0;max-width:100%}.mobileUnified .workspace>#content{padding:15px 12px 85px;min-width:0}.mobileUnified .workspace{min-width:0}
body.mobileUnified:not(.blackmode-active):not(.riskPage) :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:20px;padding:22px 20px;box-shadow:0 5px 16px #092b481a;margin:0 0 17px;gap:14px}
body.mobileUnified:not(.blackmode-active):not(.riskPage) :is(.pageHead,.hero,.q-hero,.projectHero) :is(h1,h2){color:white;font-size:27px;line-height:1.15;letter-spacing:-.5px;margin:0 0 8px}
body.mobileUnified:not(.blackmode-active):not(.riskPage) :is(.pageHead,.hero,.q-hero,.projectHero) :is(p,small){color:#d5e5f3;font-size:14px;line-height:1.45}
body.mobileUnified:not(.riskPage) :is(.card,.identityPanel,.identityColumns>section,.q-guide,.question,.productCard,.orderGroup,.kpi,.projectKpis>div,.identityStats>div){border:1px solid #dce6ef;border-radius:19px;background:white;box-shadow:0 4px 13px #1538560c;padding:18px;color:#17314b;min-width:0;overflow-wrap:anywhere}
body.mobileUnified .productCard{padding:0;overflow:hidden}.mobileUnified .productImage{background:#eaf2fb}.mobileUnified .productBody{padding:14px}
body.mobileUnified:not(.riskPage) :is(.primary,button.primary,.q-tiles a.primary){color:white;background:linear-gradient(110deg,#197bff,#075de1);border:0;border-radius:28px;min-height:50px;padding:12px 19px;font-weight:750;box-shadow:0 5px 12px #1263d322}
body.mobileUnified:not(.riskPage) :is(.secondary,button.secondary,.q-home){border-radius:13px;min-height:45px;padding:10px 13px}
body.mobileUnified :is(.danger,.identityDanger){border-radius:14px;min-height:45px}
body.mobileUnified:not(.riskPage) input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),body.mobileUnified:not(.riskPage) :is(select,textarea){font-size:16px;font-weight:400;border:1px solid #cddae7;background:white;color:#16344f;border-radius:13px;min-height:49px;padding:12px;max-width:100%}
body.mobileUnified:not(.riskPage) input[type=file]{max-width:100%;font-size:14px;border-radius:13px;background:#edf4ff;padding:12px;color:#0c568a}
body.mobileUnified:not(.riskPage) input:is([type=radio],[type=checkbox]){accent-color:#116beb;flex-shrink:0}
body.mobileUnified:not(.riskPage) label{font-size:14px;font-weight:650;overflow-wrap:anywhere}.mobileUnified textarea{resize:vertical}
body.mobileUnified:not(.riskPage) :is(.projectActions,.warehouseActionGrid,.warehouseFocus,.q-tiles){gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}
body.mobileUnified:not(.riskPage) :is(.projectActions,.warehouseActionGrid,.warehouseFocus,.q-tiles)>:is(button,a){background:linear-gradient(135deg,#e4f0ff,#f1f7ff);color:#153d65;border:1px solid #cbdff3;border-radius:18px;padding:17px 14px;min-height:112px;box-shadow:0 4px 12px #1538560b;text-decoration:none;font-size:15px}
body.mobileUnified:not(.riskPage) :is(.projectActions,.warehouseActionGrid,.warehouseFocus,.q-tiles)>:is(button,a):nth-child(2){background:linear-gradient(135deg,#e7f5e9,#f4fbf5);color:#246d38;border-color:#d1e8d6}
body.mobileUnified:not(.riskPage) :is(.projectActions,.warehouseActionGrid,.warehouseFocus,.q-tiles)>:is(button,a):nth-child(3){background:linear-gradient(135deg,#eee7ff,#f6f2ff);color:#67379b;border-color:#e0d5f0}
body.mobileUnified:not(.riskPage) :is(.projectActions,.warehouseActionGrid,.warehouseFocus,.q-tiles)>:is(button,a):nth-child(4){background:linear-gradient(135deg,#fff4d5,#fff9e9);color:#765715;border-color:#f0e1b4}
body.mobileUnified .warehouseFocus .primaryTask{grid-column:1/-1;background:linear-gradient(115deg,#196ee8,#0b55c2)!important;color:white!important}
body.mobileUnified :is(.projectMediaCapture,.q-images){gap:12px}.mobileUnified .projectMediaCapture label{background:#e6f0ff;border:1px solid #ccdef1;border-radius:16px}
body.mobileUnified :is(.projectKpis,.identityStats,.grid4){grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.mobileUnified :is(.identityForm,.identityColumns,.projectForm,.projectMeta){grid-template-columns:minmax(0,1fr);gap:15px}
body.mobileUnified :is(.identityFilters,.projectSearch,.row,.riskButtons){flex-wrap:wrap;gap:10px;min-width:0}.mobileUnified .identityFilters>*{min-width:0;max-width:100%}
body.mobileUnified :is(.tableWrap,.q-table-wrap){overflow-x:auto;max-width:100%;border-radius:16px}.mobileUnified .identityTable{font-size:13px}.mobileUnified .identityTable :is(td,th){padding:12px 10px}.mobileUnified .identityIdentity{gap:12px;flex-wrap:wrap}.mobileUnified dl{grid-template-columns:minmax(95px,.4fr) minmax(0,1fr);gap:10px}
body.mobileUnified dialog{border:0;border-radius:21px;max-width:calc(100% - 22px);width:calc(100% - 22px);max-height:90dvh;padding:18px;box-shadow:0 16px 60px #0a264650}.mobileUnified dialog::backdrop{background:#09274888}.mobileUnified :is(.modalCard,.q-dialog){border-radius:20px;max-width:100%}
body.mobileUnified .loginPage{padding:22px 14px;background:linear-gradient(135deg,#103a62,#0b2c50);gap:22px}.mobileUnified .loginCard{border-radius:24px;padding:25px;box-shadow:0 15px 45px #041d3880}.mobileUnified .loginBrand img{border-radius:19px}.mobileUnified .loginCard :is(input,select){border-radius:14px;min-height:50px}.mobileUnified .loginCard .primary{width:100%}
body.mobileUnified :is(.toast,.q-notice,.examNotice,#identityMessage){border-radius:15px;background:#123b62;color:white;box-shadow:0 6px 20px #0a244133}
body.mobileUnified .releaseBadge{font-size:10px;border-radius:8px;bottom:calc(82px + env(safe-area-inset-bottom,0px))}
body.mobileUnified img,body.mobileUnified video{max-width:100%}
}
@media screen and (max-width:380px){body.mobileUnified .mobileWordmark{font-size:18px;min-width:120px}.mobileUnified .userPill #userName{max-width:64px}.mobileUnified .topActions{gap:4px}.mobileUnified :is(.identityStats,.projectKpis){gap:8px}.mobileUnified .identityFilters{flex-direction:column}.mobileUnified .projectSearch input{min-width:0}.mobileUnified .projectTop{gap:7px}}
@media(prefers-reduced-motion:reduce){body.mobileUnified *,body.mobileUnified *:before,body.mobileUnified *:after{scroll-behavior:auto!important}}
@media screen and (max-width:820px){.mobileUnified .desktopProjectBrand{display:none}}
@media screen and (max-width:820px){body.mobileUnified:not(.riskPage) .releaseBadge{display:none}body.mobileUnified:not(.riskPage) :is(.q-top,.examHeader,.identityHeader,.projectTop) .secondary{background:#ffffff0d;color:white;border:1px solid #ffffff40}body.mobileUnified:not(.riskPage) :is(.q-top,.examHeader,.identityHeader)>div strong{font-size:14px}body.mobileUnified:not(.riskPage) :is(.q-top,.examHeader,.identityHeader)>div b{font-size:14px}}
@media screen and (max-width:820px){
body.mobileUnified:not(.riskPage) :is(.q-tabs,.examNav,#identityNavigation,.projectTabs)>:is(button,a){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:66px}
body.mobileUnified:not(.riskPage) :is(.q-tabs,.examNav,#identityNavigation,.projectTabs)>:is(button,a):before{content:'';width:23px;height:23px;flex-shrink:0;background:currentColor;mask:var(--mobile-nav-icon,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H4v20h16V8l-6-6Zm0 0v6h6M8 12h8m-8 4h6'/%3E%3C/g%3E%3C/svg%3E")) center/contain no-repeat}
body.mobileUnified:not(.riskPage) :is(.q-tabs,.examNav,#identityNavigation,.projectTabs)>:is(button,a):nth-child(2){--mobile-nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8'%3E%3Crect x='5' y='4' width='14' height='18' rx='1'/%3E%3Cpath d='M9 2h6v4H9Zm0 8h6m-6 4h6m-6 4h4'/%3E%3C/g%3E%3C/svg%3E")}
body.mobileUnified:not(.riskPage) .q-tabs button[data-tab=overview]{--mobile-nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 22V12h4v10m2 0V6h4v16m2 0V2h4v20' fill='none' stroke='black' stroke-width='1.8'/%3E%3C/svg%3E")}
}
@media screen and (max-width:820px){
body.mobileUnified .quickNav{order:3;flex:1 0 100%;width:100%;justify-content:flex-start;background:#0d2d50;border-radius:0;padding:6px;gap:5px}
body.mobileUnified .quickNav button{flex:0 0 auto;min-width:86px;min-height:72px;padding:9px 12px;border:0;border-radius:13px;background:transparent;color:#d4e1ed}
body.mobileUnified .quickNav button>b{font-size:12px;white-space:nowrap}
body.mobileUnified .quickNav button>span{font-size:25px;color:inherit}
body.mobileUnified .quickNav button.active{background:linear-gradient(135deg,#255c8b,#1d4f7f);color:white}
body.mobileUnified .quickNav button.active>span{color:white}
body.mobileUnified .userPill{width:auto;height:auto;min-height:42px;border-radius:14px}
body.mobileUnified .topActions .secondary{background:#ffffff0d;color:white;border:1px solid #ffffff40}
body.mobileUnified .searchBar{position:relative;top:auto}
}
@media screen and (max-width:820px){body.mobileUnified .quickNav button.riskModuleEntry{min-width:156px}body.mobileUnified .quickNav button>b{overflow:visible}}

/* 3.0.43 – compact universal mobile header. Desktop remains unchanged. */
@media screen and (max-width:820px){
  /* Main Basordning shell: reduce the entire top area by roughly one third. */
  body.mobileUnified:not(.riskPage) .topbar{
    padding:8px 10px 7px;
    gap:6px 8px;
    min-height:0;
    height:auto;
    align-items:center;
  }
  body.mobileUnified .mobileWordmark{
    font-size:18px;
    min-width:118px;
    padding-bottom:12px!important;
    letter-spacing:-.35px;
  }
  body.mobileUnified .mobileWordmark:after{
    bottom:7px;
    height:3px;
    width:76%;
  }
  body.mobileUnified .mobileWordmark small{
    font-size:9px;
    bottom:0;
  }
  body.mobileUnified .topActions{
    gap:5px;
    flex-wrap:nowrap;
    margin-left:auto;
    min-width:0;
  }
  body.mobileUnified .topActions>.secondary{
    min-height:36px;
    height:36px;
    padding:6px 10px;
    border-radius:11px;
    font-size:12px;
    line-height:1;
    white-space:nowrap;
  }
  body.mobileUnified .userPill{
    min-height:36px;
    height:36px;
    max-width:170px;
    padding:4px 8px 4px 5px;
    border-radius:11px;
    font-size:11px;
    gap:5px;
    min-width:0;
  }
  body.mobileUnified .userPill>span:first-child{
    width:27px;
    height:27px;
    flex:0 0 27px;
    font-size:12px;
  }
  body.mobileUnified .userPill #userName{
    display:inline;
    max-width:104px;
    font-size:11px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  body.mobileUnified .quickNav{
    order:3;
    flex:1 0 100%;
    width:100%;
    min-height:0;
    padding:4px 5px;
    gap:3px;
    border-radius:0;
  }
  body.mobileUnified .quickNav button{
    min-width:73px;
    min-height:52px;
    padding:5px 8px;
    gap:3px;
    border-radius:10px;
  }
  body.mobileUnified .quickNav button>span{
    font-size:20px;
    line-height:1;
  }
  body.mobileUnified .quickNav button>b{
    font-size:10px;
    line-height:1.15;
  }
  body.mobileUnified .quickNav button.riskModuleEntry{
    min-width:136px;
  }
  body.mobileUnified .quickNav .riskNavIcon{
    width:23px;
    height:23px;
  }
  body.mobileUnified .quickMore{min-width:58px!important}

  /* Stand-alone Basordning modules use the same compact visual height. */
  body.mobileUnified:not(.riskPage) :is(.examHeader,.q-top,.projectTop,.identityHeader){
    min-height:52px;
    padding:8px 10px;
    gap:6px;
    flex-wrap:nowrap;
  }
  body.mobileUnified:not(.riskPage) :is(.examHeader,.q-top,.projectTop,.identityHeader) .mobileWordmark{
    font-size:17px;
    min-width:112px;
  }
  body.mobileUnified:not(.riskPage) :is(.q-top,.examHeader,.identityHeader)>div{
    min-width:0;
  }
  body.mobileUnified:not(.riskPage) :is(.q-top,.examHeader,.identityHeader)>div :is(strong,b){
    font-size:12px;
    line-height:1.15;
  }
  body.mobileUnified:not(.riskPage) :is(.q-top,.examHeader,.identityHeader)>div small{
    font-size:10px;
  }
  body.mobileUnified:not(.riskPage) :is(.q-top,.examHeader,.projectTop,.identityHeader) :is(.secondary,.q-home){
    min-height:34px;
    padding:6px 8px;
    font-size:10px;
    border-radius:10px;
  }
  body.mobileUnified:not(.riskPage) :is(.q-tabs,.examNav,#identityNavigation,.projectTabs)>:is(button,a){
    min-height:52px;
    padding:6px 10px;
    gap:4px;
    font-size:11px;
  }
  body.mobileUnified:not(.riskPage) :is(.q-tabs,.examNav,#identityNavigation,.projectTabs)>:is(button,a):before{
    width:19px;
    height:19px;
  }

  /* Risk reporting already has its own header markup; compress it to the same feel. */
  body.mobileUnified.riskPage .examHeader{
    min-height:52px;
    padding:8px 10px;
    gap:8px;
    flex-wrap:nowrap;
  }
  body.mobileUnified.riskPage .reportMenu summary{
    width:24px;
    height:30px;
  }
  body.mobileUnified.riskPage .reportMenu svg{width:20px;height:20px}
  body.mobileUnified.riskPage .reportBrand{
    font-size:17px;
    width:118px;
    padding-bottom:11px;
    border-bottom-width:3px;
  }
  body.mobileUnified.riskPage .reportBrand span{font-size:9px}
  body.mobileUnified.riskPage .reportAccount{
    min-width:0;
    max-width:160px;
    gap:5px;
    font-size:11px;
  }
  body.mobileUnified.riskPage .reportAvatar{
    width:27px;
    height:27px;
    flex:0 0 27px;
  }
  body.mobileUnified.riskPage .reportAccount>span:nth-child(2){
    min-width:0;
  }
  body.mobileUnified.riskPage .reportAccount b,
  body.mobileUnified.riskPage .reportAccount small{
    display:block;
    max-width:92px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:10px;
    line-height:1.2;
  }
  body.mobileUnified.riskPage .examNav{
    padding:3px 6px;
    gap:2px;
  }
  body.mobileUnified.riskPage .examNav>button,
  body.mobileUnified.riskPage .reportMore summary{
    min-height:49px;
    padding:5px 7px;
    gap:4px;
    font-size:10px;
  }
  body.mobileUnified.riskPage .examNav svg{width:20px;height:20px}
}

@media screen and (max-width:380px){
  body.mobileUnified .mobileWordmark{font-size:17px;min-width:108px}
  body.mobileUnified .topActions>.secondary{padding:6px 8px;font-size:11px}
  body.mobileUnified .userPill{max-width:145px}
  body.mobileUnified .userPill #userName{max-width:78px}
  body.mobileUnified .quickNav button{min-width:68px;padding-inline:6px}
  body.mobileUnified .quickNav button.riskModuleEntry{min-width:128px}
}
