/* New retail operations wallboard */
.rw-section {
  padding-block: clamp(46px, 5.3vw, 94px);
  background: #fff;
  color: var(--ai-ink);
}
#rw-report { margin-top: 16px; }
.rw-board {
  --rw-surface: #102e40;
  --rw-panel: #173849;
  --rw-text: #eff7f5;
  --rw-muted: #b6ccd0;
  --rw-rule: #395667;
  --rw-accent: #79dec9;
  --rw-secondary: #83b6ce;
  --rw-warning: #f7c383;
  --rw-padding: clamp(22px, 2.4vw, 42px);
  padding: var(--rw-padding);
  color: var(--rw-text);
  background: linear-gradient(120deg, #163d48 0%, var(--rw-surface) 38%, #102838 100%);
  font-variant-numeric: tabular-nums;
  color-scheme: dark;
}
.rw-toolbar, .wall-panel-head, .wall-channel-label, .wall-stock-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
}
.rw-toolbar { gap: 16px 32px; flex-wrap: wrap; }
.rw-identity h3 { font-size: clamp(1.35rem, 1.85vw, 2.15rem); font-weight: 600; }
.rw-identity p { margin-top: 6px; color: var(--rw-muted); font-size: .9rem; }
.rw-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.rw-controls label { font-size: .88rem; color: var(--rw-muted); }
.rw-controls :is(select, button) {
  min-height: 42px;
  max-width: 100%;
  padding: 7px 12px;
  color: var(--rw-text);
  border: 1px solid #67848e;
  border-radius: 3px;
  background: #163748;
  font-size: .9rem;
  cursor: pointer;
}
.rw-controls select { padding-right: 4px; }
.rw-controls button { color: #ddfbf5; background: #254e56; border-color: #6a9c9e; }
.rw-controls :is(button, select):hover { background: #2a5260; border-color: var(--rw-accent); }
.rw-board :focus-visible { outline: 3px solid #a4f0e2; outline-offset: 3px; }

.wall-kpis {
  margin-block: clamp(20px, 2.15vw, 38px);
  padding-block: clamp(16px, 1.7vw, 27px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--rw-rule);
}
.wall-kpi { min-width: 0; padding-right: 12px; }
.wall-kpi + .wall-kpi { border-left: 1px solid var(--rw-rule); padding-left: clamp(12px, 2.2vw, 36px); }
.wall-kpi dt { font-size: clamp(.9rem, 1.06vw, 1.15rem); font-weight: 500; }
.wall-kpi-value {
  margin-block: 5px;
  font-size: clamp(1.65rem, 2.75vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -.035em;
  font-weight: 600;
}
.wall-kpi:first-child .wall-kpi-value { color: var(--rw-accent); }
.wall-kpi-value small { margin-left: .25em; font-size: .43em; font-weight: 500; letter-spacing: normal; }
.wall-kpi-delta { color: var(--rw-muted); font-size: clamp(.78rem, .92vw, .98rem); }
.wall-kpi-delta span { display: inline-block; }
.wall-kpi-delta[data-direction="up"] span { color: var(--rw-accent); }
.wall-kpi-delta[data-direction="down"] span { color: var(--rw-warning); }

.wall-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .84fr);
  gap: clamp(12px, 1.2vw, 22px);
}
.wall-panel {
  min-width: 0;
  margin: 0;
  background: var(--rw-panel);
  padding: clamp(15px, 1.55vw, 28px);
}
.wall-panel-head { flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.wall-panel-head h4 { margin: 0; color: var(--rw-text); font-size: clamp(1.05rem, 1.3vw, 1.5rem); line-height: 1.45; font-weight: 600; }
.wall-unit, .wall-legend, .wall-note, .wall-stock-list small { color: var(--rw-muted); font-size: clamp(.78rem, .84vw, .94rem); }
.wall-note, .wall-reading { margin-top: 16px; line-height: 1.55; }
.wall-reading { color: var(--rw-text); }
.wall-stock-list, .wall-channel-list, .wall-trend-days { margin: 0; padding: 0; list-style: none; }
.wall-trend { position: relative; }
.wall-trend-plot {
  --rw-chart-height: clamp(130px, 10vw, 201px);
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  margin-top: 14px;
}
.wall-trend-scale { position: relative; height: var(--rw-chart-height); width: 4.15em; color: var(--rw-muted); font-size: .77rem; }
.wall-trend-scale span { position: absolute; right: 0; transform: translateY(-50%); white-space: nowrap; }
.wall-sparkline { display: block; width: 100%; height: var(--rw-chart-height); overflow: visible; }
.wall-gridline { fill: none; stroke: var(--rw-rule); stroke-width: 1; }
.wall-area { fill: #52bea7; fill-opacity: .14; }
.wall-line { fill: none; stroke: var(--rw-accent); stroke-width: 2.75; stroke-linecap: round; stroke-linejoin: round; }
.wall-marker, .wall-selected-rule { stroke: var(--rw-accent); stroke-width: 1; stroke-dasharray: 3 4; opacity: .7; }
.wall-point { fill: var(--rw-panel); stroke: var(--rw-accent); stroke-width: 1.7; }
.wall-point-selected { fill: #defdf5; stroke: var(--rw-accent); stroke-width: 2.5; }
.wall-trend-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); color: var(--rw-muted); text-align: center; font-size: .77rem; }
.wall-trend-days :is([aria-current="date"], .is-selected) { color: var(--rw-accent); font-weight: 650; }
.wall-legend { display: flex; flex-wrap: wrap; gap: 3px 17px; margin-top: 12px; }
.wall-legend span { display: inline-flex; align-items: center; gap: 6px; }
.wall-legend span::before { content: ""; width: 9px; height: 9px; background: var(--rw-accent); }
.wall-legend .wall-key-repeat::before, .wall-repeat-bar { background: var(--rw-secondary); }
.wall-first-bar { background: var(--rw-accent); }
.wall-channel-list { display: grid; gap: 12px; margin-top: 14px; }
.wall-channel-label { align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin-bottom: 5px; font-size: .94rem; line-height: 1.5; }
.wall-channel-label strong { font-weight: 550; }
.wall-track { display: flex; height: 8px; overflow: hidden; background: #294a5b; }
.wall-track i { display: block; height: 100%; }
.wall-stock-list { margin-top: 12px; }
.wall-stock-list li { border-bottom: 1px solid var(--rw-rule); padding-block: 12px; }
.wall-stock-list li:first-child { padding-top: 0; }
.wall-stock-list strong, .wall-stock-list small { display: block; }
.wall-stock-list small { margin-top: 2px; }
.wall-stock-days { color: var(--rw-warning); font-size: 1.15rem; font-weight: 600; white-space: nowrap; }
.wall-sr-only { position: absolute; top: 0; left: 0; width: 1px; height: 1px; padding: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }

#rw-stage[open] { inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: #102838; }
html:has(#rw-stage[open]) { overflow: hidden; }
.rw-board:is(:fullscreen, .rw-expanded) { width: 100%; height: 100%; overflow: auto; padding: clamp(20px, 3.3vmin, 56px); }
@media (min-width: 1100px) and (min-height: 650px) {
  .rw-board:is(:fullscreen, .rw-expanded) {
    display: flex;
    flex-direction: column;
    justify-content: safe center;
  }
  .rw-board:is(:fullscreen, .rw-expanded) .rw-identity h3 { font-size: clamp(1.8rem, 2.4vw, 3rem); }
  .rw-board:is(:fullscreen, .rw-expanded) .wall-kpi-value { font-size: clamp(2.8rem, 4.1vw, 5.5rem); }
  .rw-board:is(:fullscreen, .rw-expanded) .wall-panel-head h4 { font-size: clamp(1.35rem, 1.65vw, 2rem); }
  .rw-board:is(:fullscreen, .rw-expanded) :is(.wall-trend-scale, .wall-trend-days, .wall-unit, .wall-legend, .wall-stock-list small, .wall-note, .wall-kpi-delta) { font-size: clamp(.86rem, .96vw, 1.28rem); }
  .rw-board:is(:fullscreen, .rw-expanded) .wall-trend-plot { --rw-chart-height: clamp(160px, 24vh, 390px); }
  .rw-board:is(:fullscreen, .rw-expanded) :is(.wall-channel-label, .wall-stock-list strong, .wall-stock-days) { font-size: clamp(1.05rem, 1.18vw, 1.55rem); }
  .rw-board:is(:fullscreen, .rw-expanded) .wall-channel-list { gap: clamp(12px, 1.35vh, 23px); }
}
@media (max-width: 1130px) {
  .wall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wall-trend { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .rw-board { --rw-padding: 17px; }
  .wall-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .wall-kpi:nth-child(3) { border-left: 0; padding-left: 0; }
  .wall-grid { grid-template-columns: minmax(0, 1fr); }
  .wall-trend-scale, .wall-trend-days { font-size: .7rem; }
  .rw-controls { gap: 7px; }
  .rw-controls :is(select, button) { min-height: 44px; }
}
@media (max-width: 395px) {
  .rw-board { --rw-padding: 12px; }
  .wall-panel { padding: 12px; }
  .wall-trend-plot { column-gap: 3px; }
  .wall-kpi-value { font-size: 1.42rem; }
  .rw-controls { column-gap: 6px; }
  .rw-controls :is(select, button) { padding-inline: 6px; }
}
