/* DATASHIP ROTAZUL — SAP GUI classic layout, visual-only.
   Preserves Leaflet map, AIS, ECMWF, position provenance, existing interactions.
   No operational values are synthesized here. */
body.rotazul-sap-ready{--sap-blue-1:#eef6fd;--sap-blue-2:#cbdff0;--sap-blue-3:#88b3d3;--sap-blue-4:#286797;--sap-navy:#143b5d;--sap-text:#183c59;--sap-border:#9ebed6}
body.rotazul-sap-ready{background:#dce9f4!important;color:var(--sap-text);font-family:Arial,Helvetica,sans-serif}
body.rotazul-sap-ready>header{height:auto;min-height:43px;padding:5px 12px;gap:10px;background:linear-gradient(180deg,#f2f8fe,#c6dcee)!important;color:var(--sap-text);border-bottom:1px solid #91b7d1}
body.rotazul-sap-ready>header>.topbuttons{flex:1;gap:5px;display:flex;align-items:center;flex-wrap:wrap}
body.rotazul-sap-ready>header>.brand,body.rotazul-sap-ready>header>div:first-child,body.rotazul-sap-ready>header>.status{display:none!important}
body.rotazul-sap-ready .rotazul-sap-action{min-height:31px;padding:6px 11px;border-radius:4px;font-size:12px;font-weight:700;background:linear-gradient(#fff,#d2e2f2);color:#184466;border:1px solid #8daec8;box-shadow:inset 0 1px #fff;white-space:nowrap}
body.rotazul-sap-ready .rotazul-sap-action[aria-current="true"]{background:linear-gradient(#3281b7,#1b6397);color:#fff;border-color:#1b628e}
body.rotazul-sap-ready .rotazul-sap-action:focus-visible{outline:3px solid #e9ac28;outline-offset:1px}
body.rotazul-sap-ready>main{grid-template-columns:minmax(0,1fr) clamp(370px,29vw,510px)!important;gap:6px;padding:6px;background:#dce9f4;min-height:0}
body.rotazul-sap-ready>main>.mapwrap{min-width:0;min-height:0;border:1px solid #96b8d4;border-radius:5px;overflow:hidden;background:#042a43}
body.rotazul-sap-ready #map{height:100%;width:100%}
body.rotazul-sap-ready>main>aside{background:#dce9f4!important;color:var(--sap-text)!important;border:0!important;padding:0!important;min-height:0;overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:6px}
body.rotazul-sap-ready .rotazul-sap-stack{display:flex;flex-direction:column;gap:6px;min-width:0}
body.rotazul-sap-ready .rotazul-sap-section,body.rotazul-sap-ready .rotazul-sap-advanced{border:1px solid #94b7d2;border-radius:5px;background:#edf5fc;color:#193e60;box-shadow:0 1px 3px #16385018;overflow:hidden;margin:0}
body.rotazul-sap-ready .rotazul-sap-title{background:linear-gradient(#e7f3fd,#bad5e9);border-bottom:1px solid #99bbd5;padding:7px 10px;margin:0;font-size:13px;font-weight:700;color:#123b5d;line-height:1.3}
body.rotazul-sap-ready .rotazul-sap-inner{padding:8px 10px;min-width:0}
body.rotazul-sap-ready .rotazul-sap-section .manifest-vessels{margin:0;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;color:#1a4261}
body.rotazul-sap-ready .rotazul-sap-section .manifest-vessels>h2{display:none}
body.rotazul-sap-ready .rotazul-sap-section .manifest-vessels p,body.rotazul-sap-ready .rotazul-sap-section .manifest-vessels label{color:#325c77;font-size:11px;line-height:1.4}
body.rotazul-sap-ready .rotazul-sap-section .manifest-vessels>button{display:inline-flex;width:auto;margin:2px 4px 5px 0;min-height:29px;font-size:11px}
body.rotazul-sap-ready .rotazul-sap-section button{border-radius:4px;padding:6px 10px;font-size:11px;min-height:30px;background:linear-gradient(#fff,#d7e8f5);color:#194d73;border:1px solid #9bbbd4;box-shadow:inset 0 1px #fff}
body.rotazul-sap-ready .rotazul-sap-section button:hover{background:#c4e1f6}
body.rotazul-sap-ready .rotazul-sap-section button:disabled{opacity:.55;cursor:default}
body.rotazul-sap-ready .rotazul-sap-section input:not([type="checkbox"]),body.rotazul-sap-ready .rotazul-sap-section select{background:#fff;color:#183b5b;border:1px solid #a5bfd3;border-radius:3px;padding:6px 8px;margin:4px 0 8px;min-height:30px;font-size:12px}
body.rotazul-sap-ready .rotazul-sap-section .manifest-vessels form{border-top:1px solid #c4d6e5;padding:8px 0 0;margin:6px 0}
body.rotazul-sap-ready .rotazul-sap-section .manifest-vessel-list{max-height:240px;margin:4px 0;overflow:auto}
body.rotazul-sap-ready .rotazul-sap-section .manifest-vessel-list article{border-top:1px solid #c7d9e9;padding:6px 3px;color:#173b58;font-size:11px}
body.rotazul-sap-ready .rotazul-sap-section .manifest-vessel-list article:nth-child(even){background:#e1edf8}
body.rotazul-sap-ready .rotazul-sap-section .manifest-vessel-list button{min-height:28px;margin:4px 4px 0 0}
body.rotazul-sap-ready .rotazul-sap-section .ais-historical{color:#a64b14;font-weight:700}
body.rotazul-sap-ready .rotazul-sap-section .ais-recent{color:#16664c;font-weight:700}
body.rotazul-sap-ready .rotazul-sap-section a{color:#075d9a}
body.rotazul-sap-ready .rotazul-sap-section .p77{margin:0;padding:8px 0;background:transparent;border:0;box-shadow:none;color:#1d4361}
body.rotazul-sap-ready .rotazul-sap-section .p77 .meta{color:#496a7e}
body.rotazul-sap-ready .rotazul-sap-section .p77 h2{font-size:15px;color:#17466b}
body.rotazul-sap-ready .rotazul-sap-section .p77 .metric{background:#e1edf7;border:1px solid #abc7da;color:#305c79}
body.rotazul-sap-ready .rotazul-sap-section .p77 .metric strong{color:#183b5c}
body.rotazul-sap-ready .rotazul-sap-section .p77 .p77-status{background:#d6e8f2;color:#275c6d;border-radius:4px}
body.rotazul-sap-ready .rotazul-sap-section .p77 .scroll{background:#fff}
body.rotazul-sap-ready .rotazul-sap-section .p77 th,body.rotazul-sap-ready .rotazul-sap-section .p77 td{color:#193e5d;border-bottom:1px solid #c3d6e5}
body.rotazul-sap-ready .rotazul-sap-section .p77 th{background:#c9deed}
body.rotazul-sap-ready .rotazul-sap-section .manual{margin:0;padding:0;border:0}
body.rotazul-sap-ready .rotazul-sap-section .manual>h2{display:none}
body.rotazul-sap-ready .rotazul-sap-section .manual label{color:#305875}
body.rotazul-sap-ready .rotazul-sap-section .manual input,body.rotazul-sap-ready .rotazul-sap-section .manual select{width:100%;max-width:100%}
body.rotazul-sap-ready .rotazul-sap-advanced>summary{cursor:pointer;padding:8px 10px;font-size:12px;font-weight:700;background:linear-gradient(#e4f1fa,#c5dced);color:#184664}
body.rotazul-sap-ready .rotazul-sap-advanced-content{padding:8px 10px;color:#214963}
body.rotazul-sap-ready .rotazul-sap-advanced-content h2,body.rotazul-sap-ready .rotazul-sap-advanced-content strong{color:#17496d}
body.rotazul-sap-ready .rotazul-sap-advanced-content .muted,body.rotazul-sap-ready .rotazul-sap-advanced-content .source{color:#47667d}
body.rotazul-sap-ready .rotazul-sap-advanced-content .rulerCard,body.rotazul-sap-ready .rotazul-sap-advanced-content .portCard,body.rotazul-sap-ready .rotazul-sap-advanced-content .meteoCard{background:#e7f1fa;color:#204664;border-color:#a3bfd6}
body.rotazul-sap-ready .rotazul-sap-advanced-content input,body.rotazul-sap-ready .rotazul-sap-advanced-content select{color:#1a405e;background:#fff;border:1px solid #9db9d0}
body.rotazul-sap-ready .rotazul-sap-advanced-content a{color:#12679d}
body.rotazul-sap-ready .basins{top:12px;gap:4px}
body.rotazul-sap-ready .basins button{min-height:29px;padding:6px 9px;font-size:11px}
body.rotazul-sap-ready .maptag{padding:6px 8px}
body.rotazul-sap-ready .maplabel{font-size:10px;max-width:60%}
@media(max-width:920px){
 body.rotazul-sap-ready{overflow:auto!important}
 body.rotazul-sap-ready>main{display:flex!important;flex-direction:column;height:auto!important;min-height:0!important}
 body.rotazul-sap-ready>main>.mapwrap{height:60vh;min-height:370px;flex:none}
 body.rotazul-sap-ready>main>aside{overflow:visible;flex:none;width:100%}
 body.rotazul-sap-ready>header>.topbuttons{overflow-x:auto;flex-wrap:nowrap;padding-bottom:3px}
}
@media(max-width:600px){body.rotazul-sap-ready>main>.mapwrap{height:52vh;min-height:330px}body.rotazul-sap-ready .basins{left:8px;right:8px;top:72px}body.rotazul-sap-ready .basinNote{top:116px}}


body.rotazul-sap-ready .ds-module-rotazul .ds-unified-titleband {
  height: auto;
  min-height: 46px;
  background: linear-gradient(#eef6fd, #cbdff0) !important;
  border-color: var(--sap-border);
}
body.rotazul-sap-ready .ds-module-rotazul .ds-unified-title h1,
body.rotazul-sap-ready .ds-module-rotazul .ds-unified-title p,
body.rotazul-sap-ready aside .muted,
body.rotazul-sap-ready aside small,
body.rotazul-sap-ready aside .tag,
body.rotazul-sap-ready aside .result {
  color: var(--sap-text);
}
body.rotazul-sap-ready .rotazul-sap-section input[type="checkbox"],
body.rotazul-sap-ready .rotazul-sap-advanced-content input[type="checkbox"] {
  width: auto;
  accent-color: var(--sap-blue-4);
}
body.rotazul-sap-ready #rotazul-sap-weather .manifest-weather > h2 {
  display: block;
  font-size: 14px;
}
body.rotazul-sap-ready #rotazul-sap-weather .manifest-weather {
  overflow-wrap: anywhere;
}
body.rotazul-sap-ready aside :is(.warning, .source, .tag, #rulerResult) {
  background: #e7f1fa;
  color: var(--sap-text);
  border-color: var(--sap-border);
}

/* UI-01.02 REV02: compact rows and one scroll region in floating panel. */
body.rotazul-sap-ready .ui01-vessels-floating .manifest-vessel-list{max-height:none;overflow:visible;min-width:0}
body.rotazul-sap-ready .ui01-vessels-floating .rota01-stops{max-height:none;overflow:visible;overflow-wrap:anywhere}
body.rotazul-sap-ready :is(.ui01-route-info,.ui01-search-tools){border:1px solid #b8cddd;border-radius:4px;padding:7px;margin:8px 0;overflow-wrap:anywhere}
body.rotazul-sap-ready :is(.ui01-route-info,.ui01-search-tools) summary{cursor:pointer;font-weight:700;color:#164a76}
body.rotazul-sap-ready .manifest-vessel-list article{background:#f3f8fc;border:1px solid #b8cddd;border-radius:4px;padding:7px;margin:5px 0;overflow-wrap:anywhere}
body.rotazul-sap-ready .manifest-vessel-list .ui01-unit-name{display:block;width:100%;text-align:left;font-weight:700;white-space:normal;overflow-wrap:anywhere;margin:0 0 4px}
body.rotazul-sap-ready .manifest-vessel-list .ais-historical{color:#94420d;font-weight:700}
body.rotazul-sap-ready .manifest-vessel-list .ais-recent{color:#195b4b;font-weight:700}
body.rotazul-sap-ready .ui01-vessels-floating .rotazul-sap-section{border:0;border-radius:0;box-shadow:none}
body.rotazul-sap-ready .ui01-vessels-floating .rotazul-sap-inner{padding:8px}

/* UI-01 REV03 */
.ui01-tool-floating{width:min(360px,calc(100vw - 16px));height:auto;max-height:calc(100dvh - 16px);z-index:1298}
.ui01-tool-floating .weather-floating-content{padding:10px;overflow-wrap:anywhere}
.ui01-tool-floating :is(.manual,.rulerCard,.rotazul-sap-section){background:#eaf2fa;color:#142d44;border:0;margin:0;padding:5px}
.ui01-tool-floating :is(h2,label,p,small,.muted,#rulerResult,#rulerResult strong){color:#142d44;overflow-wrap:anywhere}
.ui01-tool-floating #rulerResult{background:#f3f8fc}
.ui01-distance label{display:block;margin:8px 0}.ui01-distance select{display:block;width:100%;margin:5px 0}.ui01-distance button{margin:4px}.ui01-distance details{margin:10px 0}
.ui01-platform-group input{width:100%}.ui01-tool-floating .rotazul-sap-title{display:none}

/* REV04: hide the operational dock, never remove its live nodes. */
body.rotazul-map-only>main{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr);gap:0}
body.rotazul-map-only>main>#rotazul-ui01-dock[hidden]{display:none!important}
body.rotazul-map-only>main>.mapwrap{width:100%;height:100%;min-height:0;min-width:0}
@media(max-width:920px){body.rotazul-map-only{display:flex;flex-direction:column;height:100dvh;overflow:hidden!important}body.rotazul-map-only>.ds-unified-header,body.rotazul-map-only>header{flex:0 0 auto}body.rotazul-map-only>main{flex:1 1 0;height:0!important;min-height:0!important}body.rotazul-map-only>main>.mapwrap{height:100%;min-height:0}}
.ui01-map-info{position:absolute;z-index:650;right:8px;bottom:30px;max-width:min(300px,80%);background:#eaf2fa;color:#142d44;border:1px solid #7397b6;border-radius:5px;padding:5px 8px;font-size:11px}
.ui01-map-info summary{cursor:pointer}.ui01-map-info .warning{background:transparent;color:#142d44;border:0;padding:4px;margin:0}
.ui01-weather-extras,.ui01-weather-extras>details{margin:8px 0;max-width:100%;overflow-wrap:anywhere}
.ui01-weather-extras :is(.meteoCard,.p77,#route-corridor),.ui01-tool-floating .portCard{background:#f3f8fc;color:#142d44;border:1px solid #b8cddd;margin:6px 0;padding:8px}
.ui01-weather-extras :is(h2,p,small,label,.meta,.muted),.ui01-tool-floating .portCard :is(h2,p,small,.muted){color:#142d44}
.ui01-weather-extras input:not([type=checkbox]),.ui01-weather-extras select{max-width:100%}
.ui01-weather-extras a,.ui01-tool-floating .portCard a,.ui01-tool-floating .source a{color:#164a76}
.ui01-tool-floating .source,.ui01-tool-floating .tag{color:#142d44;background:#e7f1fa;border-color:#7397b6;overflow-wrap:anywhere}
