/* V8: a single server-rendered shell, no visible legacy navigation. */
html body[data-tv8-shell]:not([data-tv8-map]){padding-top:72px!important;scroll-padding-top:88px!important}
html body#prtmxPortalHome[data-tv8-shell]:not([data-tv8-map]){padding-top:72px!important}
html body[data-tv8-shell] > header,html body[data-tv8-shell] > .header,html body[data-tv8-shell] #tv6-fallback-nav,html body[data-tv8-shell] #prtmx-v59-initial-header,html body[data-tv8-shell] #prtmx-ui-v52-header,html body[data-tv8-shell] .prtmx-ui-header,html body[data-tv8-shell] .tv7-header,html body[data-tv8-shell] .prtmx-ui-dock,html body[data-tv8-shell] #prtmx-v59-initial-dock,html body[data-tv8-shell] .prtmx-ui-sheet,html body[data-tv8-shell] .bottom-nav,html body[data-tv8-shell] .v2-bottom-nav,html body[data-tv8-shell] .board-bottom-nav,html body[data-tv8-shell] > .bottom,html body[data-tv8-shell] [data-tv8-legacy]{display:none!important;visibility:hidden!important}
html body[data-tv8-shell][data-tv8-map] :is(#prtmx-v511-mapbar,#prtmx-v510-mapbar,#prtmx-v59u-mapbar,#prtmx-v515-topbar,#prtmx-route-v3-topbar,.prtmx-v510-mapbar){display:none!important;visibility:hidden!important}
html body[data-tv8-shell] #tv8-header{display:block!important;visibility:visible!important;position:fixed!important;top:0!important;left:0!important;right:0!important;height:72px!important;z-index:2800!important;background:#f8fbfe!important;border-bottom:1px solid #d1e2ee!important;box-shadow:0 2px 9px #29496209!important;color:#193e5b!important;font:600 13px/1.3 system-ui,-apple-system,'Segoe UI',sans-serif!important;box-sizing:border-box!important;overflow:visible!important}
#tv8-header *{box-sizing:border-box!important}
#tv8-header .tv8-inner{max-width:1420px;height:100%;margin:auto;padding:0 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
#tv8-header .tv8-branding{display:flex;align-items:center;gap:8px;min-width:0;flex-shrink:0}
#tv8-header .tv8-brand{display:flex;align-items:center;flex:none;text-decoration:none!important}
#tv8-header .tv8-brand img{display:block!important;width:174px!important;height:54px!important;max-width:none!important;object-fit:contain!important}
#tv8-header .tv8-company,#tv8-header .tv8-unified{display:inline-flex!important;align-items:center;justify-content:center;gap:3px;white-space:nowrap;min-height:32px;padding:5px 8px;border:1px solid #d2e3ef;border-radius:8px;color:#376080!important;background:#eaf3fa;font:650 11px/1.2 system-ui,sans-serif!important;text-decoration:none!important;box-shadow:none!important}
#tv8-header .tv8-unified{background:#e3f2fc;color:#1767a2!important}
#tv8-header .tv8-desktop{display:flex;gap:6px;align-items:center;justify-content:flex-end;min-width:0}
#tv8-header .tv8-link{appearance:none;display:inline-flex!important;align-items:center;justify-content:center;gap:5px;height:36px!important;min-height:36px!important;padding:0 9px!important;border:1px solid #c9ddeb!important;border-radius:8px!important;background:#fff!important;color:#285778!important;font:650 12px/1.2 system-ui,sans-serif!important;white-space:nowrap;text-decoration:none!important;box-shadow:0 2px 0 #dce8f1!important;cursor:pointer;margin:0!important;list-style:none!important;letter-spacing:normal!important}
#tv8-header .tv8-link:hover,#tv8-header .tv8-link:focus-visible{background:#e8f4fc!important;color:#1767a2!important}
#tv8-header .tv8-link.tv8-active{background:#176bb2!important;border-color:#176bb2!important;color:#fff!important;box-shadow:0 2px 0 #12588f!important}
#tv8-header .tv8-icon{width:20px!important;height:20px!important;object-fit:contain!important;flex:0 0 20px!important;margin:0!important;display:block!important}
#tv8-header .tv8-desktop>.tv8-link .tv8-icon,#tv8-header .tv8-desktop>.tv8-guides>summary>.tv8-icon{display:none!important}
#tv8-header details{position:relative;margin:0!important;padding:0!important;overflow:visible!important}
#tv8-header summary::-webkit-details-marker{display:none}
#tv8-header summary::marker{content:''}
#tv8-header .tv8-caret{display:inline-block;width:6px;height:6px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(45deg);margin:0 2px 3px 4px;flex:none}
#tv8-header .tv8-guide-menu{position:absolute;right:0;top:calc(100% + 8px);min-width:210px;padding:6px;display:grid;gap:4px;background:#fff;border:1px solid #cbdfee;border-radius:12px;box-shadow:0 10px 24px #204a7026;z-index:5}
#tv8-header .tv8-guide-menu .tv8-link{justify-content:flex-start!important;height:40px!important;border:0!important;box-shadow:none!important;white-space:normal!important}
#tv8-header .tv8-guides:not([open])>.tv8-guide-menu{display:none!important}
#tv8-header .tv8-mobile{display:none;flex:none}
#tv8-header .tv8-mobile>summary{display:flex;align-items:center;justify-content:center;gap:8px;height:40px;padding:0 12px;border:1px solid #c9ddeb;border-radius:10px;background:#eaf4fb;color:#235a84;cursor:pointer;list-style:none}
#tv8-header .tv8-hamburger{width:18px;height:14px;border-top:2px solid currentColor;border-bottom:2px solid currentColor;position:relative;display:block}
#tv8-header .tv8-hamburger:after{content:'';position:absolute;top:4px;left:0;right:0;border-top:2px solid currentColor}
#tv8-header .tv8-mobile-menu{position:absolute;top:calc(100% + 9px);right:0;width:min(330px,calc(100vw - 24px));display:grid;gap:6px;padding:10px;background:#fff;border:1px solid #cbdfee;border-radius:14px;box-shadow:0 8px 26px #173f6230;max-height:calc(100dvh - 90px);overflow-y:auto;overscroll-behavior:contain}
#tv8-header .tv8-mobile-menu .tv8-link{justify-content:flex-start!important;height:auto!important;min-height:42px!important;white-space:normal!important;font-size:14px!important;padding:8px 10px!important;box-shadow:none!important}
#tv8-header .tv8-mobile-menu .tv8-guide-menu{position:static;min-width:0;margin-top:5px;box-shadow:none;border:0;background:#f1f7fc}
#tv8-header .tv8-mobile-menu .tv8-guide-menu .tv8-link{padding-left:14px!important}
#tv8-header .tv8-mobile:not([open])>.tv8-mobile-menu{display:none!important}
@media(max-width:1250px){#tv8-header .tv8-desktop{display:none!important}#tv8-header .tv8-mobile{display:block!important}}
@media(max-width:600px){html body[data-tv8-shell]:not([data-tv8-map]),html body#prtmxPortalHome[data-tv8-shell]:not([data-tv8-map]){padding-top:66px!important}html body[data-tv8-shell] #tv8-header{height:66px!important}#tv8-header .tv8-inner{padding:0 10px;gap:5px}#tv8-header .tv8-branding{gap:4px;flex:1;min-width:0;flex-shrink:1;flex-wrap:wrap}#tv8-header .tv8-brand img{width:130px!important;height:40px!important}#tv8-header .tv8-company,#tv8-header .tv8-unified{font-size:10px!important;min-height:24px;padding:3px 6px}#tv8-header .tv8-branding:has(.tv8-unified) .tv8-brand img{width:110px!important;height:34px!important}#tv8-header .tv8-unified{gap:2px}#tv8-header .tv8-menu-word{display:none}#tv8-header .tv8-mobile>summary{padding:0 11px;min-width:42px}}
@media(max-width:390px){#tv8-header .tv8-branding:has(.tv8-unified){display:grid;grid-template-columns:112px minmax(0,1fr);gap:2px 4px}#tv8-header .tv8-branding:has(.tv8-unified) .tv8-brand{grid-row:span 2}#tv8-header .tv8-company,#tv8-header .tv8-unified{min-height:20px;font-size:9px!important;padding:2px 4px;justify-self:start}}
/* Floating map menu does not cover the full map or change the map geometry. */
html body[data-tv8-shell][data-tv8-map] #tv8-header{left:50%!important;right:auto!important;transform:translateX(-50%)!important;top:calc(8px + env(safe-area-inset-top,0px))!important;width:min(420px,calc(100vw - 20px))!important;height:54px!important;border-radius:15px!important;border:1px solid #d0e2ef!important;box-shadow:0 6px 22px #193d5830!important;z-index:2147483000!important}
#tv8-header .tv8-inner:has(.tv8-mobile){overflow:visible}
body[data-tv8-map] #tv8-header .tv8-inner{padding:0 9px;gap:5px}
body[data-tv8-map] #tv8-header .tv8-desktop{display:none!important}
body[data-tv8-map] #tv8-header .tv8-mobile{display:block!important}
body[data-tv8-map] #tv8-header .tv8-brand img{width:130px!important;height:40px!important}
body[data-tv8-map] #tv8-header .tv8-all{display:none!important}
body[data-tv8-map] #tv8-header .tv8-company,body[data-tv8-map] #tv8-header .tv8-unified{font-size:10px!important;padding:3px 5px;min-height:22px}
body[data-tv8-map] #tv8-header .tv8-branding:has(.tv8-unified) .tv8-brand img{width:100px!important;height:32px!important}
/* Catalog: keep native filters and selection events; only simplify the presentation. */
html body[data-tv8-shell] #prtmxCatalogTools .teplo-catalog-section-links{display:none!important}
html body[data-tv8-shell] #prtmxCatalogTools .prtmx-company-filters{display:none!important;visibility:hidden!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important}
html body[data-tv8-shell][data-tv8-company]:not([data-tv8-company=""]) #prtmxCatalogTools .tv6-company-label{display:none!important}
html body[data-tv8-shell] .fleet-selector-title{display:flex!important;align-items:center;gap:9px;font-size:clamp(17px,2.1vw,22px)!important;line-height:1.3;color:#193e5b!important}
html body[data-tv8-shell] .fleet-selector-title:before{content:'';display:block;flex:0 0 36px;width:36px;height:36px;background:url('/static/tv7-icons/calendar.svg') center/contain no-repeat}
html body[data-tv8-shell] #prtmxCatalogTools{padding:15px!important;background:linear-gradient(150deg,#edf6fd,#fff)!important;border:1px solid #d4e5f0!important;border-radius:14px!important;box-shadow:none!important}
html body[data-tv8-shell] #prtmxCatalogTools input[type=search]{background:#fff url('/static/tv7-icons/info.svg') 10px center/22px no-repeat!important;padding-left:40px!important;min-height:42px!important}
html body[data-tv8-shell] #prtmxCatalogTools .prtmx-catalog-count{margin-top:8px!important;color:#57778e!important}
html body[data-tv8-shell] #shipFleet .ship-fleet-item{border-radius:14px!important;border:1px solid #d4e4ef!important;background:#fff!important;box-shadow:0 2px 6px #193c5810!important;transition:border-color .15s,background .15s}
html body[data-tv8-shell] #shipFleet .ship-fleet-item:hover{background:#f5fbff!important;border-color:#9fc8e5!important}
html body[data-tv8-shell] #shipFleet .ship-fleet-icon-wrap{background:#eaf4fb!important;border-radius:10px!important;padding:5px!important}
html body[data-tv8-shell] #shipFleet .ship-fleet-name{color:#193e5b!important;line-height:1.25!important}
html body[data-tv8-shell] #shipFleet .ship-fleet-city{color:#356582!important;font-weight:600!important}
html body[data-tv8-shell] #shipFleet .ship-fleet-status{color:#56778f!important}
html body[data-tv8-shell] #shipFleet .ship-fleet-status.is-stay{color:#168167!important}
html body[data-tv8-shell] #shipFleet .ship-fleet-status.is-route{color:#1767a2!important}
@media(max-width:600px){html body[data-tv8-shell] #prtmxCatalogTools{padding:12px!important}html body[data-tv8-shell] .fleet-selector-title:before{width:28px;height:28px;flex-basis:28px}}
/* Same board look for the unified calendar and the company calendar. */
body[data-tv8-company]:not([data-tv8-company=""]) :is(label:has(#fleetCompany),label:has(#stopCompany)){display:none!important}
body[data-tv8-shell] #ships .card h2:before,body[data-tv8-shell] #stops .tf-stop-place h2:before{content:'';display:inline-block;width:27px;height:27px;vertical-align:middle;margin-right:8px;background:url('/static/tv7-icons/ship.svg') center/contain no-repeat}
body[data-tv8-shell] #stops .tf-stop-place h2:before{background-image:url('/static/tv7-icons/port.svg')}
body[data-tv8-shell] .tv8-fleet-company{display:flex;align-items:flex-end;gap:8px;margin-bottom:12px;flex-wrap:wrap}
body[data-tv8-shell] .tv8-fleet-company label{flex:1;min-width:160px}
body[data-tv8-shell] .tv8-fleet-company button{min-height:44px}

/* R11: the old navigation is never rendered over the unified public shell. */
html body[data-tv8-shell] > header,html body[data-tv8-shell] > .header,html body[data-tv8-shell] [data-tv8-legacy="1"]{display:none!important;visibility:hidden!important}
