/* /static/css/styles.css */

/* ====== DESIGN TOKENS ====== */
:root {
  --bg:      #f1f5f9;
  --header:  #1e293b;
  --accent:  #6366f1;
  --dump:    #f97316;
  --panel:   #ffffff;
  --border:  #e2e8f0;
  --text:    #0f172a;
  --muted:   #64748b;
  --radius:  10px;
  --shadow:  0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
  --panel-inset:  14px;
  --date-offset:  20px;
  --mode-color: var(--accent);
}
body.dump-mode { --mode-color: var(--dump); }

/* ====== BASE ====== */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  margin: 0;
  padding: 0;
  color: var(--text);
  -webkit-touch-callout: none;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}
h1, h2, h3 { margin: 0; }
:not(:defined) { visibility: hidden; }
.hidden { display: none !important; }

/* ====== HEADER ====== */
#appHeader {
  background: var(--header);
  padding: 10px 16px 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
#headerTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  max-width: 1020px;
  margin-left: auto;
  margin-right: auto;
}
#scanStrip {
  max-width: 1020px;
  margin-left: auto;
  margin-right: auto;
}
#headerLeft {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
#appName {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-decoration: none;
}
#modeBadgeLink { display: contents; text-decoration: none; }
.header-chip {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.mode-chip     { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.8); }
.location-chip { background: var(--accent); color: #fff; }

#headerRight {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
/* Recent scan count tile */
#recentScansCard {
  display: flex;
  align-items: baseline;
  gap: 3px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 3px 9px;
  margin-right: 2px;
}
#recentScanValue, #activeBedCount, #totalScanCount {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
#recentScanLabel {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
/* Plain icon buttons in dark header */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  height: 30px;
  padding: 0 10px;
  transition: background 0.15s;
  white-space: nowrap;
  font-family: inherit;
}
.icon-btn:hover  { background: rgba(255,255,255,0.18); }
.icon-btn:active { background: rgba(255,255,255,0.25); }
.icon-btn fa-icon, .icon-btn i, .icon-btn wa-icon { font-size: 0.9rem; }

.btn-label { /* hide text on narrow screens via mobile.css */ }

/* Sync NAV — accent-coloured icon-btn */
#navSyncButton { background: var(--accent); border-color: var(--accent); }
#navSyncButton:hover { background: color-mix(in srgb, var(--accent) 85%, black); }

/* Scan input strip inside header */
#scanStrip form { display: flex; }
#scanStrip wa-input { width: 100%; }

/* Override WA's internal brand color tokens so focus ring + border follow mode color.
   CSS custom properties inherit through shadow DOM; regular properties do not. */
body.scan-page { --wa-color-focus: var(--mode-color); }

/* ====== PAGE LAYOUT ====== */
main {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  align-items: flex-start;
}
.left-column {
  flex: 0 0 290px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.right-column {
  flex: 1 1 400px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ====== PANEL SYSTEM ====== */
.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Loading state: dim content and reveal a spinner, both delayed 0.2s so
   fetches that finish quickly never flash an indicator */
.panel.is-loading > :not(.panel-head) {
  opacity: 0.45;
  transition: opacity 0.15s ease 0.2s;
}
.panel.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  margin: -11px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: panel-spin 0.7s linear infinite, panel-spinner-reveal 0.15s ease 0.2s forwards;
}
@keyframes panel-spin { to { transform: rotate(360deg); } }
@keyframes panel-spinner-reveal { to { opacity: 1; } }
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}
.panel-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}
.panel-body { padding: 12px 14px; }
.panel-foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 8px 14px;
  border-top: 1px solid var(--border);
}

/* ====== CAPACITY BAR (shared: bed info + beds overview) ====== */
.cap-bar-wrap {
  position: relative;
  height: 24px;
  background: #a8b8cc;
  border-radius: 5px;
  overflow: hidden;
}
.cap-bar {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  border-radius: 5px;
  transition: width 0.4s ease;
}
.cap-progress { background: var(--accent); }
.cap-complete { background: #22c55e; }
.cap-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.65);
}

/* ====== BED INFO PANEL CONTENT ====== */
.bed-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.bed-number-display {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}
.bed-meta {
  font-size: 0.75rem;
  color: var(--muted);
}
.bed-stats {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}
.bed-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.stat-val {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.stat-val.is-full { color: #16a34a; }
.stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ====== TABULATOR INTEGRATION ====== */
.panel .tabulator {
  border: none;
  background: transparent;
  min-height: 0;
}

/* Header — match jobs-subtable th */
.panel .tabulator .tabulator-header {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border) !important;
}
.panel .tabulator .tabulator-header .tabulator-col {
  background: transparent;
  border-right: none;
}
.panel .tabulator .tabulator-col-content { padding: 4px 6px; }
.panel .tabulator .tabulator-col-title {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

/* Rows — match jobs-subtable td */
.panel .tabulator .tabulator-tableholder { min-height: 0; }
.panel .tabulator .tabulator-tableholder .tabulator-table { min-height: 0; }
.panel .tabulator .tabulator-row-even { background-color: transparent; }
.panel .tabulator .tabulator-row:hover { background-color: #e8eeff !important; }
.panel .tabulator .tabulator-row.row-selected { background-color: #dde6ff !important; }
.panel .tabulator .tabulator-row .tabulator-cell {
  border-right: none;
  border-bottom: 1px solid #f1f5f9;
  padding: 4px 6px;
  font-size: 0.82rem;
}
.panel .tabulator .tabulator-row:last-child .tabulator-cell { border-bottom: none; }
.panel .tabulator .tabulator-col.col-first .tabulator-col-content { padding-left: var(--panel-inset); }
.panel .tabulator .tabulator-row .tabulator-cell.col-first { padding-left: var(--panel-inset); }
.panel .tabulator .tabulator-col.col-date .tabulator-col-content { padding-left: var(--panel-inset); }
.panel .tabulator .tabulator-row .tabulator-cell.col-date { padding-left: calc(var(--panel-inset) + var(--date-offset)); }

/* Job Summary: centered columns + cross-highlight from scan feed selection */
#summaryTable th,
#summaryTable td { text-align: center; }
#summaryTable tbody tr.job-highlight { background-color: #eef2ff; font-weight: 600; }

/* ====== JOBS SUB-TABLE (shared: scan summary + bed detail) ====== */
.jobs-subtable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.jobs-subtable th {
  text-align: left;
  padding: 4px 6px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
}
.jobs-subtable td {
  padding: 4px 6px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text);
}
.jobs-subtable tbody tr:last-child td { border-bottom: none; }
.jobs-subtable tfoot td {
  border-top: 1px solid var(--border);
  font-weight: 700;
  border-bottom: none;
}


/* ====== INLINE ALERTS ====== */
.inline-alert {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #f9fafb;
  color: #374151;
  font-size: 0.88rem;
}
.inline-alert.warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.inline-alert.danger  { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.inline-alert.success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }

/* ====== TOAST NOTIFICATIONS ====== */
#toastContainer {
  position: fixed;
  top: 16px; right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2000;
}
.toast {
  min-width: 220px; max-width: 380px;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #1f2937;
  font-size: 0.88rem;
  animation: slideIn 120ms ease-out;
}
.toast.success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.toast.brand   { background: #eef2ff; border-color: #c7d2fe; color: #3730a3; }
.toast.warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.toast.danger  { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.toast.neutral { background: #f9fafb; border-color: #e5e7eb; color: #1f2937; }
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ====== DELETE / SYNC ICONS ====== */
.delete-icon {
  font-size: 1rem;
  color: #c2c2c2;
  cursor: pointer;
  transition: color 0.2s ease-in-out;
}
.delete-icon:hover { color: red; }
.sync-icon-synced  { color: #16a34a; }
.sync-icon-pending { color: #16a34a; }
.sync-icon-error   { color: orange; }
.sync-indicator    { font-size: 1rem; }

/* ====== PWA INSTALL BANNER ====== */
#installBanner.install-banner {
  position: fixed; left: 50%; bottom: 16px;
  transform: translateX(-50%);
  z-index: 2100;
  background: #fff;
  color: #111827;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.install-banner-content { display: flex; align-items: center; gap: 12px; padding: 8px 12px; }
.install-banner .actions { display: flex; gap: 8px; }

/* ====== FOOTER ====== */
#appFooter {
  text-align: center;
  color: var(--muted);
  font-size: 0.7rem;
  padding: 1.5rem 0 0.75rem;
}

/* ====== SELECT MODE PAGE ====== */
.select-page {
  min-height: 100vh;
  background: var(--header);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  gap: 2.5rem;
}
.select-logo {
  text-align: center;
}
.select-logo-name {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
}
.select-logo-sub {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
  margin-top: 4px;
}
.select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: 100%;
  max-width: 380px;
}
.select-col-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  text-align: center;
  margin-bottom: 4px;
}
.mode-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 22px 16px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, border-color 0.15s;
  text-decoration: none;
  font-family: inherit;
  color: inherit;
}
.mode-tile:hover  { background: rgba(255,255,255,0.13); border-color: rgba(255,255,255,0.22); transform: translateY(-2px); }
.mode-tile:active { transform: translateY(0); }
.mode-tile-loc  { font-size: 2rem; font-weight: 700; color: #fff; line-height: 1; }
.mode-tile-mode {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
}
.mode-tile.prod .mode-tile-mode { color: #86efac; }
.mode-tile.dump .mode-tile-mode { color: #fca5a5; }

/* ====== MISC ====== */
.stack { display: flex; flex-direction: column; gap: 10px; }

@media (max-width: 768px) {
  .mobile-hidden { display: none; }
}

/* ====== SCAN PAGE: fill viewport, internal scroll ====== */
/* Scoped to .scan-page body so beds/select pages are unaffected.   */
/* Only on desktop — mobile columns stack and use natural page scroll. */
@media (min-width: 769px) {
  body.scan-page {
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  body.scan-page main {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
  }
  body.scan-page #scanFilters { flex-shrink: 0; }
  body.scan-page #scanColumns {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: stretch;
    flex-wrap: nowrap;
  }
  body.scan-page .left-column {
    min-height: 0;
    overflow: hidden;
  }
  body.scan-page #bedInfo { flex-shrink: 0; }
  body.scan-page #scanSummary {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  body.scan-page #scanSummary .panel-head { flex-shrink: 0; }
  body.scan-page #summaryTable {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
  }
  body.scan-page .right-column {
    min-height: 0;
    overflow: hidden;
  }
  body.scan-page #scanFeedCard {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  body.scan-page #scanFeedCard .panel-head { flex-shrink: 0; }
  body.scan-page #scanFeedTable {
    flex: 1 1 auto;
    min-height: 0;
  }
}

/* ====== BEDS PAGE: fill viewport, internal scroll (desktop only) ====== */
@media (min-width: 769px) {
  body.beds-page {
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  body.beds-page main {
    flex: 1 1 auto;
    min-height: 0;
    padding: 1rem;
    gap: 1rem;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    overflow: hidden;
  }
  body.beds-page #bedsFilters { flex-shrink: 0; }
  #bedsColumns {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 1rem;
    overflow: hidden;
  }
  #bedsDetailCol {
    flex: 0 0 280px;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  #bedDetailPanel {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  #bedDetailPanel .panel-head { flex-shrink: 0; }
  #bedDetailBody { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
  body.beds-page #bedsPanel {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  body.beds-page #bedsPanel .panel-head { flex-shrink: 0; }
  body.beds-page #bedsTable {
    flex: 1 1 auto;
    min-height: 0;
  }
}

/* ====== HEADER NAV ====== */
#headerNav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-group {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 2px;
  gap: 1px;
}
.nav-chip {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255,255,255,0.35);
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s;
}
.nav-chip:hover:not(.nav-chip-active) { color: rgba(255,255,255,0.65); }
.nav-chip-active { background: var(--accent); color: #fff; }
.nav-chip-active.nav-chip-dump { background: var(--dump); }

/* ====== CHIP POPOVER (scan page mode/location switcher) ====== */
#chipGroup {
  position: relative;
  display: flex;
  gap: 4px;
  align-items: center;
}
.chip-toggle {
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.chip-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--header);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 4px;
  z-index: 200;
  min-width: 120px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.chip-popover[hidden] { display: none; }
.popover-option {
  display: block;
  width: 100%;
  padding: 7px 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  font-size: 0.82rem;
  text-align: left;
  font-family: inherit;
  letter-spacing: 0.03em;
}
.popover-option:hover { background: rgba(255,255,255,0.1); }

/* ====== OVERVIEW PAGE ====== */
.overview-page #headerTop,
body.beds-page #headerTop { margin-bottom: 0; }

/* Shared filter bar */
.overview-filter-bar {
  display: flex;
  gap: 1.5rem;
  align-items: flex-end;
  flex-wrap: wrap;
}
.filter-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.filter-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}
.filter-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  margin: 0 4px;
}
.filter-scope {
  font-size: 0.58rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-left: 3px;
}
.filter-field input,
.filter-field select {
  /* Web Awesome's native styles add margin-top to `label + input`, which
     made plain inputs taller than the flatpickr fields and misaligned labels */
  margin: 0;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
  height: 30px;
}
.filter-field input[type="text"]  { width: 120px; }
.filter-field select              { width: 90px; }

/* Flatpickr range input — wide enough for "Mmm d, YYYY to Mmm d, YYYY" */
.filter-field input.date-range-input { width: 235px; cursor: pointer; }

/* Flatpickr calendar: emphasize weekday headers and day numbers.
   Selectors need .flatpickr-calendar prefix to outrank flatpickr's own CSS
   (it loads after styles.css) while still losing to its state classes
   (selected, prev/next-month dimming, week-number column). */
.flatpickr-calendar span.flatpickr-weekday {
  color: var(--accent);
  font-weight: 700;
}
.flatpickr-calendar .flatpickr-day {
  color: var(--text);
  font-weight: 600;
}
/* Weekends stay de-emphasized — Sunday-first layout puts them in columns
   1 and 7 (also catches the "Wk" week-number header). Update these if
   firstDayOfWeek is ever changed. */
span.flatpickr-weekday:first-child,
span.flatpickr-weekday:last-child {
  color: var(--muted);
  font-weight: 400;
}
.flatpickr-day:nth-child(7n),
.flatpickr-day:nth-child(7n + 1) {
  color: #393939;
  font-weight: 400;
}
.date-range-wrap { display: flex; align-items: center; gap: 2px; }
.date-clear {
  border: none;
  background: none;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  /* Web Awesome's native styles give plain <button> a 48px height, which
     stretches .date-range-wrap and pushes the input out of line */
  height: 30px;
  min-height: 0;
}
.date-clear:hover { color: var(--text); }

@media (min-width: 769px) {
  body.overview-page {
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  body.overview-page main {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
  }
  body.overview-page #overviewFilters { flex-shrink: 0; }
  body.overview-page #overviewTables {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    overflow: hidden;
    align-items: stretch;
  }
  body.overview-page .left-column,
  body.overview-page .right-column {
    flex: 0 0 auto;
    min-height: 0;
    overflow: hidden;
  }
  body.overview-page #overviewTables { overflow-x: auto; }
  body.overview-page #prodPanel,
  body.overview-page #dumpPanel {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  body.overview-page #prodPanel .panel-head,
  body.overview-page #dumpPanel .panel-head { flex-shrink: 0; }
  body.overview-page #prodFeedTable,
  body.overview-page #dumpFeedTable {
    flex: 1 1 auto;
    min-height: 0;
  }
}
