/* Wallboard mode uses the existing dashboard cards and renderers. */
html.monitor-mode .dashboard { width: min(100% - 32px, 1900px); max-width: none; padding: 12px 0 20px; }
html.monitor-mode .hero { display: none !important; }
html.monitor-mode .monitor-status { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; padding: 14px 24px 17px; margin-bottom: 12px; overflow: hidden; background: #10191e; border: 1px solid #263037; border-radius: 18px; }
html.monitor-mode .monitor-status-point { display: grid; min-width: 230px; }
html.monitor-mode .monitor-status-details span { color: #91aebd; font-size: 12px; font-weight: 500; }
html.monitor-mode .monitor-status-point strong { color: #fff; font-size: clamp(38px, 3.3vw, 52px); line-height: 1.1; font-weight: 800; }
html.monitor-mode .monitor-status-details { display: flex; align-items: center; justify-content: flex-end; gap: clamp(20px, 2.5vw, 48px); flex-wrap: wrap; margin-left: auto; }
html.monitor-mode .monitor-status-details > div { display: grid; gap: 5px; }
html.monitor-mode .monitor-status-details strong { color: #eef6f9; font-size: clamp(14px, 1.2vw, 18px); line-height: 1.3; font-weight: 700; white-space: nowrap; }
html.monitor-mode .monitor-status-details > div:last-child strong { color: #88e5ae; }
html.monitor-mode .monitor-fullscreen { flex: 0 0 auto; padding: 10px 14px; color: #eef6f9; font-family: inherit; font-size: 13px; font-weight: 600; background: #192831; border: 1px solid #38515d; border-radius: 12px; cursor: pointer; }
html.monitor-mode .monitor-fullscreen:hover { background: #263b47; }
html.monitor-mode .monitor-fullscreen:focus-visible { outline: 2px solid #88e5ae; outline-offset: 3px; }
html.monitor-mode .monitor-switch-track { position: absolute; inset: auto 0 0; height: 3px; background: #263037; }
html.monitor-mode .monitor-switch-track i { display: block; height: 100%; background: #6ad732; transition: width 1s linear; }
html.monitor-mode .point-switcher .point-tab:not(.location-tab),
html.monitor-mode .profile-actions,
html.monitor-mode #dashboardView > :not(.dashboard-layout),
html.monitor-mode #dashboardView .dashboard-finance-row,
html.monitor-mode #dashboardView .recommendations-panel,
html.monitor-mode #dashboardView .kiosk-panel,
html.monitor-mode #dashboardView .records-panel,
html.monitor-mode #dashboardView .history-section,
html.monitor-mode #dashboardView .kitchen-dishes-section,
html.monitor-mode #dashboardView .team-load-chart,
html.monitor-mode #dashboardView .network-ranking { display: none !important; }
html.monitor-mode #dashboardView .loyalty-segments { display: none !important; }

html.monitor-mode #dashboardView {
  position: relative;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) 38%;
  grid-auto-rows: max-content;
  gap: 12px;
  align-items: stretch;
}
html.monitor-mode #dashboardView .dashboard-layout,
html.monitor-mode #dashboardView .dashboard-tiles,
html.monitor-mode #dashboardView .metric-comparisons,
html.monitor-mode #dashboardView .loyalty-recommendations-row,
html.monitor-mode #dashboardView .loyalty-row,
html.monitor-mode #dashboardView .support-panels,
html.monitor-mode #dashboardView .checks-kiosk-stack { display: contents !important; }

html.monitor-mode #dashboardView .metric-comparisons > .revenue-pair { grid-column: 1; grid-row: 1; }
html.monitor-mode #dashboardView .metric-comparisons > .metric-pair:nth-child(2) { grid-column: 2; grid-row: 1; }
html.monitor-mode #dashboardView .metric-comparisons > #kitchenRevenuePanel { grid-column: 1; grid-row: 2; }
html.monitor-mode #dashboardView .metric-comparisons > .metric-pair:nth-child(4) { grid-column: 1; grid-row: 4; }
html.monitor-mode #dashboardView .loyalty-panel { grid-column: 1; grid-row: 3; height: 100%; }
html.monitor-mode #dashboardView .hourly-checks-panel { grid-column: 2; grid-row: 2 / 5; }
html.monitor-mode #dashboardView .baristas-panel { position: absolute; grid-column: 3; grid-row: 1 / 5; top: 0; left: 0; right: 0; width: auto; max-height: calc(100vh - 120px); overflow-y: auto; }
html.monitor-mode #dashboardView .baristas-panel .baristas-chart { min-width: 0; }
html.monitor-mode #dashboardView .metric-comparisons > .metric-pair,
html.monitor-mode #dashboardView .loyalty-panel,
html.monitor-mode #dashboardView .hourly-checks-panel { align-self: stretch; margin: 0; width: 100%; }
html.monitor-mode #dashboardView .baristas-panel { align-self: stretch; margin: 0; }
html.monitor-mode #dashboardView:has(#kitchenRevenuePanel[hidden]) .dashboard-tiles .loyalty-panel { grid-column: 1; grid-row: 2; height: auto; align-self: stretch; }
html.monitor-mode #dashboardView:has(#kitchenRevenuePanel[hidden]) .metric-comparisons > .metric-pair:nth-child(4) { grid-column: 1; grid-row: 3; }
html.monitor-mode #dashboardView:has(#kitchenRevenuePanel[hidden]) .hourly-checks-panel { grid-column: 2; grid-row: 2 / 4; }
html.monitor-mode [hidden] { display: none !important; }


/* Keep supporting figures legible at viewing distance without changing regular dashboard cards. */
html.monitor-mode #dashboardView .metric .metric-plan,
html.monitor-mode #dashboardView .metric .metric-history-line,
html.monitor-mode #dashboardView .metric .revenue-forecast-label,
html.monitor-mode #dashboardView .metric .loyalty-detail,
html.monitor-mode #dashboardView .metric .loyalty-previous {
  font-size: clamp(14px, .9vw, 16px);
  line-height: 1.35;
  white-space: normal;
}
html.monitor-mode #dashboardView .metric .revenue-forecast-label .revenue-forecast-value {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

/* Motion is confined to the automatic change of coffee shop. */
html.monitor-mode #dashboardView .metric-pair,
html.monitor-mode #dashboardView .loyalty-panel,
html.monitor-mode #dashboardView .hourly-checks-panel,
html.monitor-mode #dashboardView .baristas-panel {
  transition: opacity 2000ms ease, transform 2200ms cubic-bezier(.2,.8,.2,1);
}
html.monitor-mode #dashboardView .metric-comparisons > .metric-pair:nth-child(2) { transition-delay: 200ms; }
html.monitor-mode #dashboardView .metric-comparisons > #kitchenRevenuePanel,
html.monitor-mode #dashboardView .loyalty-panel { transition-delay: 400ms; }
html.monitor-mode #dashboardView .hourly-checks-panel { transition-delay: 600ms; }
html.monitor-mode #dashboardView .metric-comparisons > .metric-pair:nth-child(4),
html.monitor-mode #dashboardView .baristas-panel { transition-delay: 800ms; }
html.monitor-mode #dashboardView.monitor-leaving .metric-pair,
html.monitor-mode #dashboardView.monitor-leaving .loyalty-panel,
html.monitor-mode #dashboardView.monitor-leaving .hourly-checks-panel,
html.monitor-mode #dashboardView.monitor-leaving .baristas-panel {
  opacity: 0;
  transform: translateY(8px) scale(.99);
  transition-duration: 800ms;
  transition-delay: 0ms;
}
/* Show the original GARDEN intro between automatic point changes. */
html.monitor-mode .monitor-switch-splash {
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease;
}
html.monitor-mode .monitor-switch-splash.is-visible { opacity: 1; }
html.monitor-mode .monitor-switch-splash .auth-loading-motto {
  font-size: clamp(20px, 2vw, 26px);
}
html.monitor-mode .monitor-switch-splash .auth-loading-location {
  font-size: clamp(29px, 3vw, 38px);
}

html.monitor-mode #monitorPointName span { display: inline-block; }
html.monitor-mode #monitorPointName.is-animating span {
  animation: monitor-letter-arrive 1300ms cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(var(--letter-index) * 90ms);
}
@keyframes monitor-letter-arrive {
  from { opacity: 0; transform: translateY(14px) rotate(-5deg); filter: blur(3px); }
  to { opacity: 1; transform: translateY(0) rotate(0); filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  html.monitor-mode #dashboardView .metric-pair,
  html.monitor-mode #dashboardView .loyalty-panel,
  html.monitor-mode #dashboardView .hourly-checks-panel,
  html.monitor-mode #dashboardView .baristas-panel { transition: none !important; }
  html.monitor-mode #monitorPointName.is-animating span { animation: none !important; }
}

@media (max-width: 1199px) {
  html.monitor-mode #dashboardView { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.monitor-mode #dashboardView .baristas-panel { position: static; grid-column: 1 / -1; grid-row: 5; width: 100%; max-height: none; overflow: visible; }
  html.monitor-mode #dashboardView:has(#kitchenRevenuePanel[hidden]) .baristas-panel { grid-row: 4; }
}
@media (max-width: 700px) {
  html.monitor-mode .monitor-status { align-items: flex-start; flex-direction: column; gap: 12px; padding: 14px 16px 18px; }
  html.monitor-mode .monitor-status-details { justify-content: flex-start; gap: 12px 24px; margin-left: 0; }
  html.monitor-mode .monitor-status-details strong { white-space: normal; }
  html.monitor-mode #dashboardView { grid-template-columns: minmax(0, 1fr); }
  html.monitor-mode #dashboardView .metric-comparisons > .revenue-pair { grid-column: 1; grid-row: 1; }
  html.monitor-mode #dashboardView .metric-comparisons > .metric-pair:nth-child(2) { grid-column: 1; grid-row: 2; }
  html.monitor-mode #dashboardView .metric-comparisons > #kitchenRevenuePanel { grid-column: 1; grid-row: 3; }
  html.monitor-mode #dashboardView .hourly-checks-panel { grid-column: 1; grid-row: 4; }
  html.monitor-mode #dashboardView .loyalty-panel { grid-column: 1; grid-row: 5; }
  html.monitor-mode #dashboardView .metric-comparisons > .metric-pair:nth-child(4) { grid-column: 1; grid-row: 6; }
  html.monitor-mode #dashboardView .baristas-panel { grid-column: 1; grid-row: 7; }
  html.monitor-mode #dashboardView:has(#kitchenRevenuePanel[hidden]) .hourly-checks-panel { grid-column: 1; grid-row: 3; }
  html.monitor-mode #dashboardView:has(#kitchenRevenuePanel[hidden]) .loyalty-panel { grid-column: 1; grid-row: 4; }
  html.monitor-mode #dashboardView:has(#kitchenRevenuePanel[hidden]) .metric-comparisons > .metric-pair:nth-child(4) { grid-column: 1; grid-row: 5; }
  html.monitor-mode #dashboardView:has(#kitchenRevenuePanel[hidden]) .baristas-panel { grid-row: 6; }
}
