/* Overview page: Taking orders switch, stat row, The pass, heartbeat strip, 14-day chart,
   Needs attention. Loaded before console.css, whose breakpoint rules at the end adjust these. */
.hero-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.hero-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-rest);
}
.hero-card h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
  margin: 2px 0 6px;
}
.hero-card .eyebrow {
  margin-bottom: 4px;
}
.hero-card .muted {
  font-size: 13px;
  max-width: 62ch;
}
.hero-card .button {
  margin: 10px 0 0 -10px;
}
.taking-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  grid-column: span 2;
}
.taking-card.on {
  border-color: #b8d4c4;
  background: #f6faf7;
}
.taking-card.on h2 {
  color: var(--good);
}
.taking-card.off {
  border-color: #e3b2a4;
  background: #fff6f1;
}
.taking-card.off h2 {
  color: var(--bad);
}
.switch {
  flex: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 88px;
  min-height: 44px;
  padding: 6px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
}
.switch-track {
  position: relative;
  width: 76px;
  height: 42px;
  border-radius: 21px;
  background: #b9aaa0;
  transition: background 0.22s var(--ease);
}
.switch-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fffefa;
  box-shadow: 0 1px 2px rgba(22, 13, 38, 0.2), 0 4px 10px rgba(22, 13, 38, 0.14);
  transition: transform 0.22s var(--ease);
}
.switch[aria-checked="true"] .switch-track {
  background: var(--good);
}
.switch[aria-checked="true"] .switch-thumb {
  transform: translateX(34px);
}
.switch:hover:not(:disabled) .switch-track {
  filter: brightness(0.94);
}
.switch:active:not(:disabled) .switch-thumb {
  width: 38px;
}
.switch-text {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.switch[aria-busy="true"] {
  cursor: progress;
}
.terminal-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.terminal-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.terminal-list small {
  display: block;
  color: var(--muted);
}
.bento {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 20px;
  align-items: start;
}
.bento.single {
  grid-template-columns: minmax(0, 1fr);
}
.bento.single .bento-side {
  display: none;
}
.bento-main,
.bento-side {
  min-width: 0;
}
.bento .panel {
  margin-bottom: 20px;
}
.panel-heading .button.ghost {
  min-height: 40px;
}
.live-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--muted);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 3px #d9ebe1;
}
.pass-rail {
  list-style: none;
  margin: 0 -4px;
  padding: 4px 4px 14px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 236px;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.ticket {
  scroll-snap-align: start;
  animation: ticket-in 0.3s var(--ease);
}
@keyframes ticket-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.ticket-link {
  display: flex;
  flex-direction: column;
  gap: 5px;
  height: 100%;
  padding: 14px 14px 13px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  border-radius: 6px 6px 12px 12px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}
.ticket-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  text-decoration: none;
}
.ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.ticket-number {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.ticket-age {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.ticket-restaurant {
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ticket-meta {
  font-size: 12px;
  color: var(--muted);
}
.ticket-stages {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.stage {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.stage::before {
  content: "○ ";
}
.stage.done {
  border-color: #c5dccf;
  background: #edf5f0;
  color: var(--good);
}
.stage.done::before {
  content: "✓ ";
}
.stage.current {
  border-color: #e7b9a4;
  background: var(--peach);
  color: var(--action);
  font-weight: 800;
}
.stage.current::before {
  content: "● ";
}
.ticket.alert .ticket-link {
  border-color: #dba79f;
  border-top-color: var(--bad);
}
.ticket-warning {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--bad);
  font-size: 12px;
  font-weight: 750;
}
.ticket-warning .icon {
  width: 16px;
  height: 16px;
}
.pass-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px dashed #cdbfb5;
  border-radius: 12px;
  background: var(--paper);
  color: var(--muted);
}
.pass-empty strong {
  color: var(--ink);
}
.pass-error .notice {
  margin-bottom: 12px;
}
.heartbeat {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #eee5de;
}
.heartbeat-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.heartbeat-head h3 {
  font-size: 14px;
}
.heartbeat-head p {
  font-size: 12px;
}
.heartbeat-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.beat {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
}
.beat-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--good);
}
.beat.late .beat-dot {
  background: var(--late);
  border-radius: 2px;
  transform: rotate(45deg) scale(0.86);
}
.beat.offline .beat-dot {
  background: var(--bad);
  border-radius: 2px;
}
.beat.closed .beat-dot {
  opacity: 0.4;
}
.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.chart-total {
  color: var(--muted);
  font-size: 13px;
}
.chart-total strong {
  font-size: 24px;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-right: 4px;
}
.segmented {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
}
.segmented button {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}
.segmented button[aria-pressed="true"] {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-rest);
}
.mini-chart {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
}
.mini-chart .bar {
  fill: #ddcfc6;
  transition: fill 0.16s var(--ease);
}
.mini-chart g:hover .bar {
  fill: #c9b7ab;
}
.mini-chart .bar.today {
  fill: var(--orange);
}
.mini-chart .baseline {
  fill: var(--line);
}
.mini-chart text {
  font-size: 11px;
  font-weight: 700;
  fill: var(--muted);
  text-anchor: middle;
}
.attention-list {
  list-style: none;
  margin: -6px -10px;
  padding: 0;
}
.attention-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.4;
}
.attention-item:hover {
  background: var(--soft);
  text-decoration: none;
}
.attention-label {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
}
.attention-item strong {
  font-size: 15px;
}
.attention-item > .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.attention-mark {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b9aaa0;
}
.attention-item.broken .attention-mark {
  border-radius: 2px;
  background: var(--bad);
}
.attention-item.broken strong {
  color: var(--bad);
}
.all-clear {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.all-clear > .icon {
  color: var(--good);
}
.panel-note {
  padding-top: 12px;
  font-size: 12px;
}
