/* Unified DATASHIP global header — same geometry/visual as the approved Layout de Convés.
   Only the header and redundant navigation shells are affected. Preserve forms, account,
   recovery, cargo drawer, deck drawer, maps, operation panels and their controllers. */
.ds-unified-header,.ds-unified-header *{box-sizing:border-box}
.ds-unified-header{display:block!important;width:100%;position:relative;z-index:150;background:#041c2d;color:#eff7fa;font-family:Arial,system-ui,sans-serif}
.ds-unified-topbar{display:flex!important;align-items:center!important;gap:15px;min-height:52px;height:52px;padding:0 10px 0 max(6px,calc((100vw - 1560px)/2));background:linear-gradient(90deg,#031a2a,#032038 70%,#041a2c);border-bottom:1px solid #17617a}
.ds-unified-brand{display:flex!important;align-items:center!important;justify-content:center;flex:0 0 235px;width:235px;height:52px;min-width:0;padding:0 13px 0 5px;background:#102e40;border-right:1px solid #19a7c7;text-decoration:none}
.ds-unified-brand img{display:block;width:100%;height:49px;max-height:49px;max-width:220px;object-fit:contain;object-position:center}
.ds-unified-nav{display:flex!important;align-items:center!important;flex-wrap:nowrap;gap:clamp(12px,2.15vw,34px);margin-left:4px;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
.ds-unified-nav a{display:flex!important;align-items:center;min-height:52px;flex:0 0 auto;padding:17px 1px 15px!important;text-decoration:none!important;white-space:nowrap;font:600 clamp(12px,1.03vw,15px)/1.1 Arial,system-ui,sans-serif!important;color:#d5e6ee!important;border:0!important;border-bottom:3px solid transparent!important;background:transparent!important}
.ds-unified-nav a:hover,.ds-unified-nav a:focus-visible{color:#7df0f4!important}
.ds-unified-nav a[aria-current=page]{color:white!important;font-weight:800!important;border-bottom:3px solid #29dce9!important}
.ds-unified-titleband{display:flex;align-items:center;min-height:62px;height:62px;padding:5px max(18px,calc((100vw - 1560px)/2));background:linear-gradient(90deg,#06253cef 0%,#06283fdf 43%,#0520366c 100%),url("/layout-do-conves/assets/mar-container-background-20261012.webp") right 44%/cover;border-bottom:1px solid #145168}
.ds-unified-title h1{margin:0;color:#fff;font:800 21px/1.15 Arial,system-ui,sans-serif;letter-spacing:-.025em}
.ds-unified-title p{margin:2px 0 0;color:#c2d3e2;font:11px/1.25 Arial,system-ui,sans-serif}
/* Cadastro: existing utility header keeps account and search, but not another brand/menu. */
body.ds-unified-units .global-header>.brand,body.ds-unified-units .cadastro-nav{display:none!important}
body.ds-unified-units .global-header{height:auto!important;min-height:54px!important;grid-template-columns:minmax(140px,1fr) auto!important;gap:12px!important;padding:6px 24px!important;position:relative!important;top:auto!important;background:#06263b!important}
body.ds-unified-units .global-header>.global-search{grid-column:1;min-width:0}
body.ds-unified-units .global-header>.account{grid-column:2}
body.ds-unified-units #workspace-flow>a{display:none!important}
/* Planejamento: the workflow retains its status, recovery and cloud controls, but not
   a second set of page links. The DOM remains present for old listeners. */
body:has(.ds-module-planejamento) #workspace-flow>a{display:none!important}
body:has(.ds-module-planejamento) #workspace-flow{margin-top:0!important}
/* ROTAZUL: preserve functional map/weather controls in the legacy toolbar;
   hide only its repeated ROTAZUL/DATASHIP identity. */
.ds-module-rotazul+header>div:first-child{display:none!important}
.ds-module-rotazul+header{height:auto!important;min-height:55px!important;justify-content:flex-end!important;padding:6px 20px!important;gap:12px!important}
.ds-module-rotazul+header .topbuttons{margin-right:auto}
.ds-unified-home main>header .brand-group{display:none!important}
@media(max-width:900px){
 .ds-unified-topbar{min-height:55px;height:auto;gap:5px;flex-direction:column;align-items:stretch;padding:5px 10px}
 .ds-unified-brand{flex:0 0 auto;width:100%;max-width:245px;height:48px;border-right:0;padding:0}
 .ds-unified-brand img{height:46px;max-height:46px}
 .ds-unified-nav{margin:0;gap:12px;overflow-x:auto}
 .ds-unified-nav a{font-size:13px!important;min-height:35px;padding:9px 2px 12px!important}
 .ds-unified-titleband{min-height:67px;height:auto;padding:9px 14px}
 .ds-unified-title h1{font-size:20px}
}
@media(max-width:650px){
 body.ds-unified-units .global-header{grid-template-columns:minmax(0,1fr) auto!important;gap:6px!important;padding:6px 12px!important}
 body.ds-unified-units .global-header>.global-search{display:flex!important}
 body.ds-unified-units .global-header>.account{min-width:0}
 .ds-module-rotazul+header{padding:7px 11px!important}
}
