/* Shared command header; existing controls keep their original handlers. */
.auris-section-picker.auris-section-mirrored{display:none!important}
#app .page .page-title.auris-title-mirrored,#page-kpi .kpi-x-title.auris-title-mirrored{display:none!important}
#auris-sidebar-logo{display:block!important;object-fit:contain!important;object-position:center!important;background-image:none!important;background-size:auto!important}
.page :is(#fire-cert-search,#ptw-search,#atex-search,#fleet-search,#tools-search,#ra-search,#swms-search,#ws-search,#moc-search,#kpi-x-search){display:none!important}
#page-workschedule.ws-gantt-active #ws-search{display:block!important}
#page-kpi .kpi-x-field:has(#kpi-x-search){display:none!important}
#page-moc>.page-header>div:first-child,#page-actions>.page-header>div:first-child,#page-chemical>.page-header>div:first-child,#page-legal>.page-header>div:first-child,#page-sop>.page-header>div:first-child,#page-tools>.page-header>div:first-child{display:none!important}
#page-moc>.page-header,#page-actions>.page-header,#page-chemical>.page-header,#page-legal>.page-header,#page-sop>.page-header,#page-tools>.page-header{justify-content:flex-end;min-height:0;padding:8px 0;margin:0}
#page-fire .auris-fire-certificates-s-73f315dd9f{display:grid;grid-template-columns:minmax(150px,1fr) repeat(3,minmax(145px,1fr));align-items:center;gap:10px}
#page-fire .auris-fire-certificates-s-73f315dd9f>span{font-weight:750}
#page-fire .auris-fire-certificates-s-73f315dd9f>select{width:100%;min-width:0}
#page-actions .auris-map-s-54bb9f1d16{padding:10px 12px;margin-bottom:8px}
#page-actions .auris-map-s-d5129e1520{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:8px}
#page-actions .auris-map-s-d5129e1520>select{width:100%;min-width:0}
#page-actions #map-list-view .ave-toolbar{margin-top:0}
@media(max-width:900px){#page-fire .auris-fire-certificates-s-73f315dd9f{grid-template-columns:repeat(2,minmax(0,1fr))}#page-fire .auris-fire-certificates-s-73f315dd9f>span{grid-column:1/-1}#page-actions .auris-map-s-d5129e1520{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){#page-fire .auris-fire-certificates-s-73f315dd9f,#page-actions .auris-map-s-d5129e1520{grid-template-columns:1fr}}
.sidebar-brand-row:before{display:none!important}
@media(min-width:769px){
  #app .topbar{min-height:64px;gap:12px;padding:8px 18px;background:linear-gradient(105deg,#102337,#18364f);color:#fff;border-bottom:3px solid #21b573}
  #app .topbar .topbar-btn{color:#f2f8fb;background:#ffffff0d;border-color:#ffffff26;min-height:38px}
  #app .topbar .topbar-btn:hover{background:#ffffff24}
  #app .topbar .topbar-btn i{color:#d7e9f1}
  #app .topbar kbd{color:#c8dce7}
  #app .topbar #auris-command-trigger{min-width:min(26vw,330px);justify-content:flex-start}
  #app .topbar #auris-command-trigger kbd{margin-left:auto}
  #app .topbar .auris-quick-create{background:#168d68;border-color:#21b573;font-weight:700}
  #app .topbar .auris-profile-trigger{border-radius:50%;width:40px;justify-content:center}
  #app .topbar #modules-trigger span,#app .topbar #dev-mode-label{display:none}
  #app .topbar #modules-trigger .ti-chevron-down{display:none}
  #app .topbar .modules-dropdown:has(#modules-trigger){position:absolute;right:0;top:64px;width:0;height:0;overflow:visible}
  #app .topbar #modules-trigger,#app .topbar #dev-mode-toggle{display:none!important}
  #app .topbar #modules-menu.open{position:fixed;right:16px;left:auto;top:70px;z-index:1005}
  #app .topbar .auris-profile-menu{position:absolute;right:16px;top:57px;z-index:1006;min-width:175px;padding:5px;border:1px solid #cbd9df;border-radius:10px;background:#fff;box-shadow:0 12px 28px #10233730}
  #app .topbar .auris-profile-menu[hidden]{display:none}
  #app .topbar .auris-profile-menu button{display:flex;align-items:center;gap:9px;width:100%;padding:9px 10px;border:0;border-radius:7px;background:transparent;color:#17344b;font:inherit;text-align:left;cursor:pointer}
  #app .topbar .auris-profile-menu button[hidden]{display:none}
  #app .topbar .auris-profile-menu button:hover,#app .topbar .auris-profile-menu button:focus-visible{background:#eaf8f1}
  #app .topbar .auris-global-brand{order:1}#app .topbar>button:first-of-type{order:2}#app .topbar #auris-command-trigger{order:3}#app .topbar #auris-global-company,#app .topbar #sa-company-switcher{order:4}#app .topbar #auris-quick-create{order:5}#app .topbar>.auris-shell-s-83725d2c6e{order:6;flex:1}#app .topbar #topbar-extras{order:7}#app .topbar #auris-profile-trigger{order:8}#app .topbar .modules-dropdown:has(#modules-trigger){order:9}#app .topbar #dev-mode-toggle{order:10}
  .auris-global-brand{display:flex;align-items:center;gap:10px;flex:none;min-width:180px;line-height:1.1}
  .auris-global-brand img{display:block;width:43px;height:43px;object-fit:cover;object-position:center 15%;border-radius:8px;background:#fff}
  .auris-global-mark{width:36px;height:36px;display:grid;place-items:center;border:3px solid #d8e2e7;border-right-color:#21b573;border-bottom-color:#ff9f32;border-radius:50%;font-size:11px;font-weight:800}
  .auris-global-brand strong{display:block;font-size:17px;letter-spacing:.4px}.auris-global-brand small{display:block;margin-top:3px;font-size:9px;letter-spacing:1.3px;color:#a8becb}
  .auris-global-company{max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:650;font-size:12px;color:#d7e9f1}
}
.auris-module-bar{display:flex;align-items:center;gap:24px;min-height:72px;padding:10px 20px;background:linear-gradient(90deg,#eaf8f1,#fff 45%);border-bottom:1px solid var(--border,#dce6ec);flex-shrink:0}
.auris-module-identity{display:flex;align-items:center;gap:12px;min-width:0}
.auris-module-identity>span:last-child{display:flex;flex-direction:column;min-width:0}
.auris-module-symbol{width:42px;height:42px;display:grid;place-items:center;flex:none;border-radius:12px;background:linear-gradient(145deg,#18a86b,#138659);color:#fff;font-size:21px}
.auris-module-identity small,.auris-module-section>span{color:#617687;font-size:10px;text-transform:uppercase;letter-spacing:1px}
.auris-module-identity strong{font-size:17px;color:#193042;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.auris-module-crumb{font-size:11px;color:#617687;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.auris-module-crumb button{padding:0;border:0;background:transparent;color:#087b64;font:inherit;font-weight:700;cursor:pointer}
.auris-module-crumb button:hover{text-decoration:underline}
.auris-module-section{margin-left:auto;min-width:220px}.auris-module-section[hidden]{display:none}.auris-module-section>span{display:block;margin-bottom:3px}
.auris-module-section select{width:100%;min-height:39px;padding:7px 11px;border:1px solid #cbd9df;border-radius:9px;background:var(--card,#fff);color:var(--text,#193042);font-weight:650}
.auris-module-quick-actions{display:flex;gap:7px;align-items:center;margin-left:auto}.auris-module-quick-actions[hidden]{display:none!important}.auris-module-quick-actions button{display:inline-flex;align-items:center;gap:5px;min-height:36px;padding:6px 10px;border:1px solid #cbd9df;border-radius:9px;background:#fff;color:#17344b;font:inherit;font-size:11px;font-weight:750;white-space:nowrap;cursor:pointer}.auris-module-quick-actions button.primary{background:#07866d;border-color:#07866d;color:#fff}.auris-module-quick-actions button[hidden]{display:none}.auris-module-quick-actions button:focus-visible{outline:2px solid #07866d;outline-offset:2px}
.auris-module-more{position:relative}.auris-module-more summary{list-style:none;cursor:pointer;padding:9px 10px;border:1px solid #cbd9df;border-radius:9px;background:#fff;color:#17344b;font-size:11px;font-weight:750}.auris-module-more summary::-webkit-details-marker{display:none}.auris-module-more>div{position:absolute;right:0;top:calc(100% + 5px);z-index:1010;display:grid;gap:4px;min-width:145px;padding:5px;border:1px solid #cbd9df;border-radius:9px;background:#fff;box-shadow:0 8px 22px #1023372b}.auris-module-more button{width:100%;justify-content:flex-start}
#page-risk.auris-module-layout>.auris-module-header{display:none!important}
#page-risk>.rax-hero{display:none!important}
#auris-module-bar:has(.auris-module-quick-actions:not([hidden])) .auris-module-section{margin-left:0}
@media(max-width:1080px) and (min-width:769px){.auris-global-brand{min-width:auto}.auris-global-brand>span:last-child{display:none}.auris-global-company{max-width:140px}}
@media(max-width:768px){.auris-global-brand,.auris-global-company{display:none}.auris-module-bar{padding:8px 14px;min-height:62px;gap:8px;flex-wrap:wrap}.auris-module-symbol{width:34px;height:34px;font-size:17px}.auris-module-identity strong{font-size:14px}.auris-module-crumb,.auris-module-identity small{display:none}.auris-module-section{min-width:130px;max-width:52%;margin-left:auto}.auris-module-section select{min-height:40px;font-size:12px}.auris-module-section>span{font-size:9px}}
@media(max-width:768px){.auris-module-quick-actions{order:3;width:100%;justify-content:flex-end}.auris-module-quick-actions button{flex:1;justify-content:center}.auris-module-section{order:2}}
@media(max-width:370px){.auris-module-section{max-width:none;width:100%;margin-left:0}}
@media print{#app .page .page-title.auris-title-mirrored,#page-kpi .kpi-x-title.auris-title-mirrored{display:block!important}.auris-module-bar{display:none!important}}
.auris-module-bar:has(.auris-module-print){flex-wrap:wrap}.auris-module-print{margin-left:auto;flex-shrink:0;white-space:nowrap;min-height:40px;font-size:13px}.auris-module-print~.auris-module-quick-actions,.auris-module-print~.auris-module-section{margin-left:0}.auris-module-print:disabled{opacity:.6;cursor:wait}@media(max-width:768px){.auris-module-print{font-size:12px;padding:8px 10px}.auris-module-print~.auris-module-section{max-width:100%}}
