/* The desktop language control sits above the existing footer divider and avatar. */
.dt-language-switch{box-sizing:border-box;display:flex;flex-direction:row;gap:2px;width:60px;padding:3px;border:1px solid var(--dt-rail-line,#d8e7f2);border-radius:12px;background:var(--dt-rail-track,#e5eef6);color:var(--dt-rail-ink,#56748c);z-index:3500}
#app .sidebar-container>.dt-language-switch{position:absolute;left:calc(var(--dt-rail-center,36px) - 30px);bottom:calc(236px + env(safe-area-inset-bottom,0px))}
.dt-language-switch button{box-sizing:border-box;display:grid;place-items:center;flex:1;width:25px;min-height:32px;padding:4px 0;border:0;border-radius:8px;font:700 11px/1.2 system-ui,sans-serif;letter-spacing:.04em;background:transparent;color:inherit;cursor:pointer}
.dt-language-switch button:hover{background:#cddfee}
.dt-language-switch button[aria-pressed=true]{background:#fff;color:#146cba;box-shadow:0 1px 4px #173a621a}
.dt-language-switch button:focus-visible{outline:2px solid #2388f8;outline-offset:1px}
body.dark-water-theme .dt-language-switch{background:#0c2235;border-color:#2a4861;color:#b9d4e7}
body.dark-water-theme .dt-language-switch button:hover{background:#203f59}
body.dark-water-theme .dt-language-switch button[aria-pressed=true]{background:#244c6b;color:#9bddff}
#app .sidebar-container:has(>.dt-language-switch) .el-scrollbar{height:calc(100% - 298px - env(safe-area-inset-bottom,0px))!important}
#app .sidebar-container.has-logo:has(>.dt-language-switch) .el-scrollbar{height:calc(100% - 370px - env(safe-area-inset-bottom,0px))!important}
.dt-language-switch.dt-language-floating{position:fixed;left:calc(14px + env(safe-area-inset-left,0px));bottom:calc(16px + env(safe-area-inset-bottom,0px));flex-direction:row;width:auto}
.dt-language-floating button{width:40px;min-height:38px}
body:is(.dt-mobile-shell,.dt-mobile-navigation)>.dt-language-floating{bottom:calc(80px + env(safe-area-inset-bottom,0px))}
.dt-language-switch.dt-language-menu{position:static;flex-direction:row;grid-column:1/-1;width:max-content;margin:8px auto 2px}
.dt-language-menu button{width:40px!important;min-height:38px!important;padding:4px!important;border:0!important}
.dt-language-menu button[aria-pressed=true]{background:#fff!important;color:#146cba!important}
body.dark-water-theme .dt-language-menu button[aria-pressed=true]{background:#244c6b!important;color:#9bddff!important}
.ma-plan-tool-list>.dt-language-menu{margin:4px 0;width:100%}
.ma-plan-tool-list>.dt-language-menu button{flex:1}
html[lang=nl] .dt-about-nav{flex-wrap:wrap}
html[lang=nl] :is(.layer-switcher-wrapper .el-tabs__item,.dt-map-search){min-width:0}
/* Long Dutch labels need their own line; keep values and units fully visible. */
html[lang=nl] body .rp .rp-operating{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
html[lang=nl] body .rp .rp-operating label.rp-operating-field{grid-template-columns:minmax(0,1fr) max-content;grid-template-rows:auto auto;gap:2px 4px;height:auto;min-height:50px;padding:5px 7px;white-space:normal}
html[lang=nl] body .rp .rp-operating .rp-operating-field>span:first-child{grid-column:1/-1;min-width:0;line-height:1.3;overflow-wrap:anywhere;hyphens:auto}
html[lang=nl] body .rp .rp-operating .rp-operating-field input{grid-column:1;grid-row:2;width:100%;height:24px;text-align:left}
html[lang=nl] body .rp .rp-operating .rp-operating-field .rp-operating-unit{grid-column:2;grid-row:2;white-space:nowrap}
html[lang=nl] body:not(.dt-mobile-navigation) .rp .rp-vessels{grid-template-columns:minmax(54px,1.5fr) repeat(8,minmax(0,1fr)) minmax(36px,1.05fr)}
html[lang=nl] body .rp .rp-vessels button span{white-space:normal;overflow-wrap:anywhere}
html[lang=nl] body .rp .rp-vessel-settings{flex-wrap:wrap}
html[lang=nl] body .rp .rp-starter{max-width:100%;white-space:normal;text-align:right}
html[lang=nl] body .rp .rp-planning-row .rp-field>label{white-space:normal;overflow-wrap:anywhere;hyphens:auto}
/* Dutch validation text can wrap; reserve real space instead of overlaying the next field. */
.form-float-panel .el-form-item__content{flex-wrap:wrap}
.form-float-panel .el-form-item__error{position:static;flex-basis:100%;padding-top:4px;line-height:1.3;overflow-wrap:anywhere}
@media(max-width:992px){#app .sidebar-container>.dt-language-switch{width:48px;left:calc(var(--dt-rail-center,28px) - 24px)}#app .sidebar-container>.dt-language-switch button{width:19px;font-size:10px}#app .sidebar-container.has-logo:has(>.dt-language-switch) .el-scrollbar{height:calc(100% - 362px - env(safe-area-inset-bottom,0px))!important}}

html[lang=nl] body.dt-mobile-navigation .rp .rp-vessels button[data-vpreset=auto]{flex-basis:80px;min-width:80px}
html[lang=nl] body.dt-mobile-navigation .rp .rp-operating label.rp-operating-field{grid-template-rows:minmax(2.6em,auto) auto}
html[lang=nl] body.dt-mobile-navigation .rp .rp-operating .rp-operating-field>span:first-child{align-self:start}
/* The shared touch-button minimum must not force a seven-day calendar wider. */
body.dt-mobile-shell .dt-en-date-dialog .dt-en-date-grid{grid-template-columns:repeat(7,minmax(0,1fr))}
body.dt-mobile-shell .dt-en-date-dialog .dt-en-date-day{min-width:0;width:100%;padding-inline:0}
body.dt-mobile-shell .dt-en-date-dialog .dt-en-date-time{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:6px 4px}
body.dt-mobile-shell .dt-en-date-dialog .dt-en-date-time>b:first-child{grid-column:1/-1}
body.dt-mobile-shell .dt-en-date-dialog .dt-en-date-step{min-width:0;justify-content:space-between;gap:2px}
body.dt-mobile-shell .dt-en-date-dialog .dt-en-date-step button{flex:0 0 32px;width:32px;min-width:0;padding-inline:0}
body.dt-mobile-shell .dt-en-date-dialog .dt-en-date-step output{min-width:2ch;font-size:16px}
/* Match the English summary row: flow, route, then status at the right edge. */
html[lang=nl] body .demo-logistics-record .record-line{display:flex;gap:4px}
html[lang=nl] body .demo-logistics-record .demo-logistics-badge{flex:0 0 auto;margin-left:auto;white-space:nowrap}
