/* Compact left navigation, shared by portrait and landscape layouts. */
body.ce-shell{--ce-rail:64px;--ce-nav-width:var(--ce-rail);background:#f4f7fb}
body.ce-shell.ce-nav-expanded{--ce-nav-width:248px}
body.ce-shell>aside{position:fixed;inset:0 auto 0 0;width:var(--ce-nav-width);padding:12px 6px max(10px,env(safe-area-inset-bottom));background:#f7f9fb;color:#294c64;border-right:1px solid #dce5ec;z-index:70;display:flex;flex-direction:column;height:100vh;height:100dvh;gap:0}
body.ce-shell>aside .brand{margin:0 0 12px;padding:0;flex:0 0 44px;display:flex;align-items:center;overflow:hidden;border-radius:8px;background:#fff;box-shadow:inset 0 0 0 1px #e6edf3}
body.ce-shell>aside .brand .ce-nav-brand-clip{display:block;width:40px;overflow:hidden;margin:0 0 0 calc((var(--ce-rail) - 52px)/2)}
body.ce-shell.ce-nav-expanded>aside .brand .ce-nav-brand-clip{width:154px}
.ce-nav-logo{display:block;width:154px;max-width:none;height:auto;margin-left:-7px}
body.ce-shell>aside>small{display:none}
body.ce-shell>aside nav{display:block;flex:1;overflow-y:auto;overflow-x:hidden;min-height:0;margin:8px 0 0;padding:0 0 8px;scrollbar-width:none}
body.ce-shell>aside nav::-webkit-scrollbar{display:none}
body.ce-shell .ce-menu-toggle,body.ce-shell nav .ce-nav-direct,body.ce-shell .ce-nav-group>summary{position:relative;display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:46px;padding:10px;margin:0 0 3px;border:0;border-radius:8px;background:transparent;color:#456377;font-size:13px;font-weight:550;text-align:left;cursor:pointer;line-height:1.3;flex-shrink:0;list-style:none}
.ce-nav-label{display:none}.ce-group-icon{display:block;width:23px;height:23px;min-width:23px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
body.ce-shell .ce-menu-toggle{min-height:44px;color:#446173}
body.ce-shell .ce-nav-group{margin:0;border:0}
.ce-nav-group>summary::-webkit-details-marker{display:none}
body.ce-shell .ce-nav-group>summary:hover,body.ce-shell .ce-menu-toggle:hover,body.ce-shell nav .ce-nav-direct:hover{background:#e9f0f5;filter:none}
body.ce-shell nav .ce-nav-direct[aria-current=page],body.ce-shell .ce-nav-group.ce-current-group>summary,body.ce-shell .ce-nav-group[open]>summary{background:#e4f0f8;color:#135e8f}
.ce-nav-group.ce-current-group>summary:before,.ce-nav-direct[aria-current=page]:before{content:'';position:absolute;left:0;top:11px;bottom:11px;width:3px;border-radius:2px;background:#147ec0}
body.ce-shell>aside .ce-nav-children{position:fixed;left:var(--ce-rail);top:var(--ce-flyout-top,80px);display:grid;gap:3px;width:276px;max-width:calc(100vw - var(--ce-rail) - 8px);max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);overflow-y:auto;overscroll-behavior:contain;padding:8px;margin:0;border:1px solid #d7e2ea;border-radius:0 12px 12px 0;background:#fff;box-shadow:6px 8px 25px #163b5921;color:#244a63}
body.ce-shell .ce-nav-group:not([open])>.ce-nav-children{display:none}
.ce-flyout-title{font-size:13px;line-height:1.4;font-weight:700;margin:0 0 4px;padding:12px 10px;color:#193f5c;border-bottom:1px solid #e7edf2;letter-spacing:0}
body.ce-shell>aside nav .ce-nav-children>button,body.ce-shell>aside nav .ce-nav-children>a{display:block;width:100%;min-height:44px;padding:11px 12px;margin:0;color:#456277;font-size:13px;text-align:left;text-decoration:none;border:0;border-radius:7px;background:transparent;white-space:normal;line-height:1.4;overflow-wrap:anywhere}
body.ce-shell>aside nav .ce-nav-children>button:hover,body.ce-shell>aside nav .ce-nav-children>a:hover{background:#f0f5f9;filter:none}
body.ce-shell>aside nav .ce-nav-children>.active,body.ce-shell>aside nav .ce-nav-children>[aria-current=page]{background:#e5f1fa;color:#125d8f;font-weight:650;box-shadow:inset 3px 0 #167eb9}
body.ce-shell.ce-nav-expanded .ce-nav-label{display:block;min-width:0}
body.ce-shell.ce-nav-expanded .ce-menu-toggle,body.ce-shell.ce-nav-expanded nav .ce-nav-direct,body.ce-shell.ce-nav-expanded .ce-nav-group>summary{justify-content:flex-start;padding-left:14px}
.ce-nav-expanded .ce-nav-group>summary:after{content:'⌄';margin-left:auto}.ce-nav-expanded .ce-nav-group[open]>summary:after{transform:rotate(180deg)}
body.ce-shell.ce-nav-expanded>aside .ce-nav-children{position:static;width:auto;max-width:none;max-height:none;margin:0 0 7px 24px;padding:2px 0 3px 10px;box-shadow:none;background:transparent;border:0;border-left:1px solid #d6e2eb;border-radius:0;overflow:visible}
.ce-nav-expanded .ce-flyout-title{display:none}
body.ce-shell>main{margin-left:var(--ce-nav-width);padding:0 28px 36px;max-width:none;min-width:0}
body.ce-shell>main:has(#platformCompanies:not([hidden])){max-width:none}
body.ce-shell>main>header{position:sticky;top:0;z-index:50;background:#f4f7fb;min-height:56px;gap:12px;padding:14px 0}.ce-breadcrumb{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;color:#446379;font-size:13px;min-width:0;overflow-wrap:anywhere}
.ce-breadcrumb a{color:#135e8f;font-weight:650;text-underline-offset:3px}
.ce-breadcrumb a[aria-current=page]{color:inherit;text-decoration:none}
.ce-breadcrumb-location::before{content:'/';margin-right:8px;color:#667e90}
.ce-breadcrumb-location[hidden]{display:none}.ce-menu-toggle:focus-visible,.ce-shell summary:focus-visible,.ce-shell a:focus-visible{outline:3px solid #64b8f0;outline-offset:-3px}
.ce-header-actions{display:flex;align-items:center;gap:12px;flex:none;margin-left:auto}
.ce-release{display:grid;justify-items:end;gap:3px;text-align:right;color:#446379}
.ce-release small{font-size:12px;line-height:1.2;font-variant-numeric:tabular-nums}
.ce-company-logo{display:grid;place-items:center;width:160px;height:48px;padding:4px 8px;border:1px dashed #b5c8d5;border-radius:8px;color:#526d80;font-size:11px;line-height:1.2}
.ce-company-logo img{display:block;width:100%;height:100%;object-fit:contain}
body.ce-shell .ce-logout{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:44px;padding:8px 12px;border:1px solid #dce5ec;border-radius:8px;background:#fff;color:#294c64;font-size:13px;font-weight:600;white-space:nowrap}
body.ce-shell .ce-logout:hover{background:#edf6fc;border-color:#7fafd1}
body.ce-shell .ce-logout:focus-visible{outline:3px solid #64b8f0;outline-offset:2px}
.ce-nav-backdrop,.ce-tablet-bar{display:none}
body.ce-shell .intro{padding:22px 0 14px}body.ce-shell .intro h1{font-size:32px;line-height:1.15}
.ce-cockpit-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:12px 0 32px}.ce-stat{background:white;border:1px solid #dbe5ed;border-radius:14px;text-align:left;padding:20px;display:flex;flex-direction:column;gap:8px;box-shadow:0 3px 10px #143d5804}.ce-stat>span{font-size:13px;color:#587184}.ce-stat strong{font-size:34px;color:#173f5b}.ce-stat small{color:#2671a3;font-size:12px}
.ce-cockpit-headline{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:12px 0 22px}
.ce-cockpit-headline-card{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0;padding:16px;background:#fff;border:1px solid #dbe5ed;border-radius:12px}
.ce-cockpit-headline-card h2{margin:0;color:#446379;font-size:13px}
.ce-cockpit-headline-value{color:#173f5b;font-size:clamp(15px,2vw,22px);font-weight:700;line-height:1.3}
.ce-cockpit-headline-card small{color:#526d80;line-height:1.4}
.ce-cockpit-headline-card button{margin-top:auto}
.ce-headline-alert{border-color:#df9b92;background:#fffbfa}
.ce-headline-alert .ce-cockpit-headline-value{color:#a12626}
.ce-inspection-plans{width:min(760px,calc(100% - 24px));max-height:88vh;padding:20px;overflow:auto;color:#173f5b;background:#fff;border:1px solid #dbe5ed;border-radius:12px}
.ce-inspection-plans::backdrop{background:#153d5980}
.ce-inspection-plans form h4{margin:0}
@media(max-width:1050px){.ce-cockpit-headline{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:400px){.ce-cockpit-headline{grid-template-columns:minmax(0,1fr)}}
.ce-cockpit-quality{margin-bottom:28px}
.ce-cockpit-quality-header{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.ce-cockpit-quality-header h2{margin:0 0 5px}
.ce-cockpit-quality-header .note{margin:0}
.ce-cockpit-quality-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,165px),1fr));gap:10px}
.ce-cockpit-quality-card{display:grid;gap:7px;padding:12px;border:1px solid #dbe5ed;border-radius:10px;background:#f8fbfd}
.ce-cockpit-quality-card h3{font-size:14px;margin:0}
.ce-cockpit-quality-card small{color:#526d80}
.ce-cockpit-quality-card .ce-cockpit-critical{color:#a12626;font-weight:650}
.ce-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.ce-shortcut{text-align:left;padding:24px;background:white;border:1px solid #dbe5ed;border-radius:14px;display:flex;flex-direction:column;gap:9px;min-height:150px}.ce-shortcut strong{font-size:17px}.ce-shortcut>span{font-size:14px;color:#60778a;line-height:1.5}.ce-shortcut small{color:#2671a3;margin-top:auto}.ce-shortcut:hover,.ce-stat:hover{border-color:#7fafd1;background:#f9fcff}

@media(max-width:900px){body.ce-shell{--ce-rail:56px}body.ce-shell.ce-nav-expanded{--ce-nav-width:min(280px,calc(100vw - 32px))}body.ce-shell>main{margin-left:var(--ce-rail);padding:0 18px calc(24px + env(safe-area-inset-bottom))}body.ce-shell>main>header{min-height:52px;padding:12px 0}.ce-shell>main>header .ce-release .badge{font-size:10px}body.ce-shell.ce-nav-overlay{overflow:hidden}.ce-shell.ce-nav-overlay .ce-nav-backdrop{display:block;position:fixed;inset:0;z-index:60;background:#19394f45;border:0;border-radius:0;padding:0}.ce-cockpit-stats,.ce-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}body.ce-shell .intro h1{font-size:28px;letter-spacing:-.7px}}
@media(max-width:540px){body.ce-shell>main>header{flex-wrap:wrap}.ce-header-actions{gap:8px}.ce-company-logo{width:110px;height:40px;padding-inline:4px}body.ce-shell .ce-logout{padding:8px}.ce-logout>span{display:none}body.ce-shell>main{padding-left:14px;padding-right:14px}.ce-cockpit-stats,.ce-shortcuts{grid-template-columns:1fr}.ce-cockpit-stats{gap:10px}.ce-stat{padding:13px;min-width:0}.ce-stat strong{font-size:26px}.ce-stat>span{font-size:12px}.ce-shortcut{padding:18px}body.ce-shell .intro h1{font-size:26px}}
@media(max-height:500px){body.ce-shell>aside{padding-top:6px;padding-bottom:4px}body.ce-shell>aside .brand{flex-basis:38px;margin-bottom:5px}body.ce-shell>aside nav{margin-top:4px}.ce-cockpit-stats{margin-bottom:20px}}
@media print{body.ce-shell>aside,.ce-tablet-bar,.ce-nav-backdrop,.ce-menu-toggle,#cockpit{display:none!important}body.ce-shell>main{margin:0;padding:0}}

.ce-object-heading,.ce-object-tabs{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 14px}
.ce-object-tabs{padding-bottom:12px;border-bottom:1px solid #dce5ec}
.ce-object-tabs button{background:#fff;color:#153d59;border:1px solid #adc2d2;border-radius:8px;padding:10px 14px}
.ce-object-tabs button:hover{background:#eaf3f9}
.ce-object-tabs button[aria-current=page]{background:#153d59;color:#fff;border-color:#153d59}
.ce-object-panel{min-width:0}
.ce-object-panel .ce-object-embedded{margin-top:0}
.ce-object-panel #lv>.sf-tabs{display:none}
.ce-object-panel .card{padding:16px;margin:12px 0;background:#fff;border:1px solid #dbe5ed;border-radius:12px}
.ce-object-panel .card form{display:grid;gap:10px}
.ce-object-panel .card form label{display:grid;gap:4px}
.ce-object-facts{display:grid;grid-template-columns:minmax(100px,auto) minmax(0,1fr);gap:8px 16px}
.ce-object-facts dt{font-weight:650}
.ce-object-facts dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}
.ce-object-panel [hidden]{display:none!important}
.ce-orders-page{padding:0!important;overflow:hidden}
.ce-orders-frame{display:block;width:100%;min-height:calc(100dvh - 112px);border:0;background:#f4f7fb}

.ce-stat[hidden],.ce-cockpit-headline[hidden]{display:none}

@media(max-width:540px){.ce-header-actions{flex-wrap:wrap;max-width:100%}}

.ce-company-logo.has-logo{border-style:solid;border-color:#e2eaf0;background:#fff}

.ce-support-banner{position:sticky;top:0;z-index:40;display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:12px 18px;background:#e0f2fe;border:1px solid #0284c7;border-radius:10px;color:#0c4a6e;margin-bottom:16px}.ce-support-banner strong{flex:1}
/* Company artwork stays within the header, including very wide imported logos. */
.ce-company-logo{overflow:hidden;flex:0 0 auto;min-width:0;min-height:0;box-sizing:border-box}
.ce-company-logo img{max-width:100%;max-height:100%;min-width:0;min-height:0;width:100%;height:100%;object-fit:contain}
body.ce-shell>main>header,.ce-support-banner{position:static}

/* Keep compact portrait company marks and their subtitle readable. */
.ce-company-logo{width:180px;height:70px}
@media(max-width:540px){.ce-company-logo{width:130px;height:64px}}

/* Shared four-column cockpit cards and compact agenda. */
.ce-cockpit-actions,.ce-agenda-grid,.ce-cockpit-quality .ce-cockpit-headline{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 20px}
.ce-cockpit-actions button{padding:14px;font-weight:600;background:#fff}
.ce-agenda-card,.ce-cockpit-quality .ce-cockpit-headline-card{display:flex;flex-direction:column;min-width:0;padding:18px;background:#fff;border:1px solid #dbe5ed;border-radius:14px;gap:0;min-height:0}
.ce-agenda-card h3,.ce-cockpit-quality h3{margin:0 0 12px;font-size:15px;color:#153d59}
.ce-agenda-count,.ce-cockpit-headline-value{font-size:23px;line-height:1.3;font-weight:700}
.ce-cockpit-quality .ce-cockpit-headline-card>small{margin:10px 0 14px;line-height:1.5;color:#526d80}
.ce-agenda-section{width:100%;max-width:none;margin:26px 0 0}.ce-agenda-card .note{margin:8px 0;font-size:12px}.ce-agenda-list{margin-bottom:12px}
.ce-agenda-item{display:flex;flex-direction:column;gap:4px;padding:9px 0;border-top:1px solid #dbe5ed;color:#153d59;text-decoration:none;font-size:13px}.ce-agenda-item:hover strong{text-decoration:underline}.ce-agenda-item small{color:#526d80;overflow-wrap:anywhere}
.ce-agenda-card>button,.ce-cockpit-quality .ce-cockpit-headline-card>button{margin-top:auto;align-self:start}.ce-agenda-card>button{font-size:12px;padding:8px 12px}
.ce-cockpit-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto}.ce-cockpit-meta button{display:flex;gap:6px;align-items:center;padding:8px;font-size:13px;background:#f5f8fb}
.ce-cockpit-quality{margin-bottom:26px}.ce-cockpit-quality-header{margin-bottom:14px}.ce-cockpit-quality-header h2{margin:0 0 6px}.ce-cockpit-quality>.note{margin:0;font-size:12px}
.ce-agenda-card.ce-headline-alert,.ce-cockpit-quality .ce-headline-alert{border-color:#d99393;background:#fffafa}
@media(max-width:1100px){.ce-agenda-grid,.ce-cockpit-actions,.ce-cockpit-quality .ce-cockpit-headline{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.ce-agenda-grid,.ce-cockpit-actions,.ce-cockpit-quality .ce-cockpit-headline{grid-template-columns:1fr}}

/* Background sync stays quiet; actionable states live beside notifications. */
.ce-sync-indicator{position:relative;flex:none}.ce-sync-indicator[hidden]{display:none!important}.ce-sync-indicator>summary{list-style:none;display:grid;place-items:center;width:30px;height:30px;border:1px solid #c79a42;border-radius:50%;background:#fff8e8;color:#77500b;font-weight:700;cursor:pointer}.ce-sync-indicator>summary::-webkit-details-marker{display:none}.ce-sync-detail{position:absolute;right:0;top:38px;z-index:100;width:min(320px,75vw);padding:14px;border:1px solid #d6e0e8;border-radius:10px;background:white;color:#19394f;box-shadow:0 8px 24px #19394f22;font-size:13px}.ce-sync-detail button{display:block;margin-top:10px}.ce-sync-detail button[hidden]{display:none}


html:has(body.ce-shell){scrollbar-gutter:stable}
body.ce-shell nav .ce-nav-direct[data-page="tasks"][aria-current="page"]{box-shadow:none}
