/* The vessel panel identifies Dashboard; Navigation shares the rail components. */
.dashboard:has(.info-panel-c .vessel-panel) {
  --dashboard-rail-top: 100px;
  --dashboard-rail-bottom: 56px; /* 50px status bar and a 6px gutter. */
}

.dashboard:has(.info-panel-c .vessel-panel) .overlay.overlay:is(.left, .right)[data-v-1ce38f36] {
  top: var(--dashboard-rail-top) !important;
  bottom: var(--dashboard-rail-bottom) !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0;
  padding: 0 !important;
  box-sizing: border-box;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #b9d5f0 transparent;
}

/* Keep the summaries readable and give all remaining space to the charts. */
.dashboard:has(.info-panel-c .vessel-panel) .overlay.left .info-panel[data-v-ffe131f0] {
  display: grid !important;
  grid-template-rows: 30px minmax(212px, 1fr) 37px minmax(173px, .85fr) 37px minmax(218px, .95fr);
  flex: 1 0 auto;
  height: 100% !important;
  min-height: 707px;
}

.dashboard:has(.info-panel-c .vessel-panel) .overlay.left .info-panel > .panel {
  min-height: 0;
}

.dashboard:has(.info-panel-c .vessel-panel) .overlay.left .info-weather-root,
.dashboard:has(.info-panel-c .vessel-panel) .overlay.left .scroll-container[data-v-ad8e9fc2],
.dashboard:has(.info-panel-c .vessel-panel) .overlay.left .info-lock-card > .el-card__body,
.dashboard:has(.info-panel-c .vessel-panel) .overlay.left .type0-section[data-v-ee24aa7e] {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.dashboard:has(.info-panel-c .vessel-panel) .overlay.left .panel > .el-card__body,
.dashboard:has(.info-panel-c .vessel-panel) .overlay.left .scroll-container[data-v-ad8e9fc2] {
  height: 100% !important;
  box-sizing: border-box;
}

.dashboard:has(.info-panel-c .vessel-panel) .overlay.left .weather-card[data-v-fd3c2de9],
.dashboard:has(.info-panel-c .vessel-panel) .overlay.left .card-grid[data-v-ad8e9fc2],
.dashboard:has(.info-panel-c .vessel-panel) .overlay.left .header-row[data-v-ee24aa7e],
.dashboard:has(.info-panel-c .vessel-panel) .overlay.left .cards-row[data-v-ee24aa7e],
.dashboard:has(.info-panel-c .vessel-panel) .overlay.left .type0-header[data-v-ee24aa7e] {
  flex: 0 0 auto;
}

.dashboard:has(.info-panel-c .vessel-panel) .overlay.left .type0-section[data-v-ee24aa7e] {
  flex: 1 1 0;
}

.dashboard:has(.info-panel-c .vessel-panel) .overlay.left .weather-chart[data-v-fd3c2de9],
.dashboard:has(.info-panel-c .vessel-panel) .overlay.left .lobith-chart-container[data-v-ad8e9fc2],
.dashboard:has(.info-panel-c .vessel-panel) .overlay.left .chart-wrap[data-v-ee24aa7e] {
  flex: 1 1 0;
  height: auto !important;
  min-height: 90px;
  max-height: none !important;
  box-sizing: border-box;
}

/* Logistics and Notices already scroll internally; stretch their shared rail. */
.dashboard:has(.info-panel-c .vessel-panel) .overlay.right .info-panel-c {
  flex: 1 0 auto;
  height: 100% !important;
  min-height: 430px;
}

@media (max-height: 820px) {
  .dashboard:has(.info-panel-c .vessel-panel) .overlay.left .info-panel[data-v-ffe131f0] {
    grid-template-rows: 30px minmax(193px, 1fr) 37px minmax(173px, .9fr) 37px minmax(218px, 1.1fr);
    min-height: 688px;
  }

  .dashboard:has(.info-panel-c .vessel-panel) .overlay.left .weather-card .stat[data-v-fd3c2de9] {
    min-height: 40px;
  }
}
