:root {
  --paper: #ffffff;
  --white: #ffffff;
  /* Lenwich palette: navy + gold */
  --ink:   #0E2A6B;         /* Lenwich navy: body text, borders, buttons */
  --gold:  #FFC600;         /* Lenwich gold: accents and highlights only */
  --ink-soft: #4A4F5C;      /* secondary text */
  --ink-title: #0E2A6B;  /* big titles: SubRoutine, page and section headings */
  --ink-name:  #0E2A6B;  /* store names, addresses, device and item names */
  --ink-desc:  #2B2B2B;  /* descriptions, notes, timestamps */
  --muted: #4A4F5C;
  --rule: #D9DEE9;
  --highlight: var(--gold); /* "needs a look" */
  --highlight-soft: #FFF6D6;
  --down: #B3261E;          /* fully down */
  --off: #6B6F7A;
  --off-line: #BFC5D2;

  --font-body: Arial, system-ui, sans-serif;
  --font-hand: Arial, system-ui, sans-serif;

  --line: 1.5px solid var(--ink);
  --radius: 6px;
}

* { box-sizing: border-box; }

/* A home-screen app can resume a page after its sign-in has ended. */
.session-status { position:fixed; inset:0; z-index:10000; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:16px; padding:32px; background:var(--paper); color:var(--ink); text-align:center; }
.session-status p { margin:0; max-width:36ch; font-size:20px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
}

a { color: var(--ink); }
a:hover { color: var(--muted); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/*Top bar*/
.topbar {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px 40px;
  border-bottom: var(--line);
  flex-wrap: wrap;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-name { font-family: var(--font-hand); font-size: 30px; font-weight: 700; }
.brand-sub { font-size: 13px; color: var(--muted); }
.nav { display: flex; gap: 4px; flex-grow: 1; flex-wrap: wrap; }
.nav a {
  display: flex; align-items: center;
  height: 44px; padding: 0 14px;
  font-size: 16px; text-decoration: none;
}
.nav a.active {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}
.small-link { font-size: 14px; }

/*Page layout*/
.page {
  max-width: 1440px;
  padding: 28px 40px 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.page-head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.page-head .grow { display: flex; flex-direction: column; gap: 4px; flex-grow: 1; }
h1 {
  margin: 0;
  font-family: var(--font-hand);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.1;
}
h2 {
  margin: 0;
  font-family: var(--font-hand);
  font-size: 24px;
  font-weight: 700;
}
.lead { font-size: 17px; }
.note { font-size: 14px; color: var(--ink-soft); }
.meta { font-size: 13px; color: var(--muted); }

.split { display: flex; gap: 28px; align-items: flex-start; }
.split > .main { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.split > .side { width: 400px; flex-shrink: 0; display: flex; flex-direction: column; gap: 28px; }
.split > .side.wide { width: 480px; }

section { display: flex; flex-direction: column; gap: 10px; }
.section-head { display: flex; align-items: baseline; gap: 12px; }
.section-head h2 { flex-grow: 1; }

/*Boxes*/
.box {
  border: var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.box.pad { padding: 14px 16px; }
.box.dashed { border-style: dashed; }
.banner {
  padding: 14px 18px;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--highlight);
  font-size: 16px;
}

/* List rows inside a box */
.row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
}
.row:last-child { border-bottom: 0; }
.row-title { font-size: 16px; font-weight: 700; }
.row-line { display: flex; align-items: center; gap: 12px; }
.row-line .grow { flex-grow: 1; display: flex; flex-direction: column; gap: 2px; }

/*Tables*/
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  border-bottom: var(--line);
  white-space: nowrap;
}
td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}
tr:last-child td { border-bottom: 0; }
td.strong { font-weight: 700; }
td.num, th.num { text-align: right; }
td .sub { display: block; font-size: 13px; color: var(--muted); }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--highlight-soft); }
tr.selected td { background: var(--highlight); }

/*Status tags*/
.tag {
  display: inline-block;
  padding: 1px 8px;
  border: var(--line);
  border-radius: 4px;
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.tag.prob { background: var(--highlight); }
.tag.down { background: var(--down); border-color: var(--down); color: #FFFFFF; }
.tag.off { color: var(--off); border-color: var(--off-line); }
.tag.dashed { border-style: dashed; background: transparent; }
.mark { background: var(--highlight); padding: 0 6px; }
.bad { color: var(--down); }

/*Buttons*/
.btn {
  height: 44px;
  padding: 0 16px;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.btn:hover { background: var(--highlight-soft); }
.btn.dark { background: var(--ink); color: #FFFFFF; font-weight: 700; }
.btn.dark:hover { background: #1A3C8F; }
.btn.block { width: 100%; }
.btn.dashed { border-style: dashed; background: var(--paper); }
.link-btn {
  display: flex; align-items: center;
  height: 44px; padding: 0 14px;
  border: var(--line); border-radius: var(--radius);
  background: var(--white);
  text-decoration: none;
}
.link-btn span:first-child { flex-grow: 1; }

select {
  height: 44px;
  padding: 0 12px;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
}

/*Number cards*/
.nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.num-card { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.num-card .value { font-family: var(--font-hand); font-size: 40px; font-weight: 700; line-height: 1.1; }

/*Bars*/
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) 40px; gap: 12px; align-items: center; }
.bar { height: 16px; border: var(--line); border-radius: 3px; }
.bar > div { height: 100%; background: var(--ink); }
.bar-row .count { text-align: right; font-weight: 700; }

/*Store page*/
.path { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.path-step {
  flex: 1 1 0;
  min-width: 160px;
  padding: 12px 14px;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--white);
  display: flex; flex-direction: column; gap: 2px;
}
.path-step.down { background: var(--down); border-color: var(--down); color: #FFFFFF; }
.path-step b { font-size: 16px; }
.path-arrow { font-size: 20px; }
.backup-line { display: flex; gap: 32px; flex-wrap: wrap; padding: 12px 14px; }

.issue { border-bottom: 1px solid var(--rule); }
.issue:last-child { border-bottom: 0; }
.issue button {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  background: var(--white);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  display: flex; align-items: center; gap: 10px;
  text-align: left;
  cursor: pointer;
}
.issue button span:first-child { flex-grow: 1; }
.issue.open button, .issue .steps { background: var(--highlight-soft); }
.issue .steps { padding: 4px 16px 16px; margin: 0; padding-left: 36px; display: flex; flex-direction: column; gap: 8px; }
.issue:not(.open) .steps { display: none; }

/*Store app (phone)*/
.phone {
  max-width: 390px;
  margin: 0 auto;
  padding: 18px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.phone-top { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: var(--line); }
.phone-top .brand-name { font-size: 24px; flex-grow: 1; }
.app-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.app-controls .field, .ticket-form .field { display: flex; flex-direction: column; gap: 5px; }
.phone h1 { font-size: 30px; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice {
  min-height: 60px;
  padding: 10px 12px;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}
.choice[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; }
.segmented { display: flex; gap: 8px; }
.segmented button {
  flex: 1 1 0;
  height: 44px;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.segmented button[aria-pressed="true"] { background: var(--highlight); }
textarea {
  width: 100%;
  padding: 12px;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  resize: vertical;
}
input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
  font-size: 16px;
  color: var(--ink);
}
label.field { font-size: 15px; font-weight: 700; }
.tips ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.ticket-form { display: flex; flex-direction: column; gap: 10px; }
.review-box { overflow: hidden; }
.review-box .section-head { border-bottom: 1px solid var(--rule); }

/*Small screens*/
@media (max-width: 1000px) {
  .split { flex-direction: column; }
  .split > .side, .split > .side.wide { width: 100%; }
  .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page, .topbar { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 480px) {
  .app-controls { grid-template-columns: 1fr; }
}

/* Titles */
.brand-name, h1, h2, .num-card .value { color: var(--ink-title); }

/* Names: store addresses, devices, items, alert titles */
td.strong, a.strong, .row-title, #app-store { color: var(--ink-name); }

/* Descriptions */
.note, .meta, .lead, td .sub, .brand-sub { color: var(--ink-desc); }
/* Mockup typography is bundled locally; no font service is required. */
@font-face { font-family: 'Space Grotesk'; src: url('../fonts/space-grotesk.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }
:root { --font-body: 'Space Grotesk', Arial, sans-serif; --font-hand: var(--font-body); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.topbar { height: 72px; padding: 0 40px; background: var(--ink); color: white; border-bottom: 1.5px solid #ffffff40; flex-wrap: nowrap; }
.topbar .brand-name { color: white; font-size: 34px; letter-spacing: -.7px; white-space: nowrap; }
.brand-name > span { color: var(--gold); }
.topbar .nav { height: 100%; }
.topbar .nav a { height: 100%; padding: 0 16px; color: white; font-weight: 700; }
.topbar .nav a.active { text-decoration: none; box-shadow: inset 0 -4px 0 var(--gold); }
.topbar .nav-group { position: relative; height: 100%; display: flex; }
.topbar .nav-menu-button { display: flex; align-items: center; gap: 6px; height: 100%; padding: 0 16px; border: 0; background: none; color: white; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.topbar .nav-menu-button svg { transition: transform .15s; }
.topbar .nav-menu-button[aria-expanded="true"] svg { transform: rotate(180deg); }
.topbar .nav-menu-button:hover { color: var(--gold); }
.topbar .nav-menu-button.active { box-shadow: inset 0 -4px 0 var(--gold); }
.topbar .nav-menu { position: absolute; top: 100%; left: 0; z-index: 100; display: flex; flex-direction: column; min-width: 200px; margin-top: 6px; padding: 6px; background: white; border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 12px 28px rgb(0 0 0 / 22%); }
.topbar .nav-menu a { height: auto; padding: 11px 12px; border-radius: 6px; color: var(--ink); font-weight: 600; }
.topbar .nav-menu a:hover { background: #EEF1F7; color: var(--ink); }
.topbar .nav-menu a.active { box-shadow: none; background: var(--highlight-soft); }
.topbar .small-link { color: white; white-space: nowrap; }
.topbar a:hover { color: var(--gold); }
body[data-page="today"] { background: var(--ink); }
.store-board { min-height: calc(100vh - 72px); color: white; padding: 24px 32px 32px; }
.board-heading { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.board-heading h1 { flex-grow: 1; color: white; font-size: 44px; letter-spacing: -1.5px; }
.board-heading #network-updated { font-size: 14px; max-width: 500px; }
.board-heading #network-updated a { color: white; }
.attention-count { padding: 6px 14px; background: var(--gold); color: var(--ink); border-radius: 20px; font-weight: 700; font-size: 14px; }
.store-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 14px; margin-top: 24px; }
.store-region { margin-top: 28px; }
.store-region-heading { display: flex; align-items: center; gap: 12px; color: white; font-size: 23px; padding-bottom: 12px; border-bottom: 1px solid #5472A8; }
.region-name { padding: 7px 12px; border-radius: 5px; color: #0E2A6B; background: #FFC600; }
.region-count { margin-left: auto; color: #D2DDF4; font-size: 13px; font-weight: 400; }
.store-region .store-grid { margin-top: 16px; }
.tile-locality { font-size: 12px; margin-top: 4px; }
.store-tile { background: white; color: var(--ink); border: 0; border-radius: 14px; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; min-height: 174px; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.store-tile:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 6px 18px #0003; }
.store-tile.prob, .connection-banner.prob { background: var(--gold); }
.store-tile.down, .connection-banner.down { background: var(--down); color: white; }
.store-tile.off { background: #E5EAF4; }
.tile-status { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.off .status-dot { background: transparent; border: 2px solid currentColor; }
.tile-latency { margin-left: auto; font-weight: 400; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tile-name { font-size: 46px; font-weight: 700; letter-spacing: -2px; line-height: 1; }
.tile-address { font-size: 14px; margin-top: auto; }
.tile-contact { display: flex; flex-direction: column; font-size: 13px; }
.board-note { margin: 20px 0 0; font-size: 13px; color: #D2DDF4; }
.store-file { display: flex; min-height: calc(100vh - 72px); }
.store-sidebar { width: 340px; flex-shrink: 0; background: var(--gold); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.store-kicker { font-weight: 700; font-size: 16px; }
.store-sidebar h1 { font-size: 96px; line-height: .95; letter-spacing: -4px; overflow-wrap: anywhere; }
.store-sidebar .lead { color: var(--ink); }
.sidebar-info { border-top: var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.sidebar-info > div { display: flex; flex-direction: column; }
.sidebar-info span { font-size: 13px; }
.sidebar-info strong { font-size: 20px; }
.sample-label { width: fit-content; font-size: 11px; }
.store-content { flex: 1; min-width: 0; }
.store-tabs { display: flex; border-bottom: var(--line); padding: 0 28px; flex-wrap: wrap; }
.store-tabs button { min-height: 56px; padding: 0 18px; border: 0; background: transparent; color: var(--ink); font: 700 16px var(--font-body); cursor: pointer; }
.store-tabs button[aria-selected="true"] { box-shadow: inset 0 -4px 0 var(--gold); }
.store-panel { padding: 28px; gap: 16px; max-width: 956px; }
.store-panel p { margin: 0; }
.store-panel .row-line > span:last-child { text-align: right; overflow-wrap: anywhere; min-width: 0; }
/* A store's camera: the icon at its tile's bottom right (Dashboard > Stores), and its picture over the page (js/camera.js). */
.tile-wrap { position: relative; display: flex; min-width: 0; transition: transform .15s; }
.tile-wrap > .store-tile { flex: 1; min-width: 0; }
.tile-wrap:hover { transform: translateY(-3px); }
.tile-wrap:hover > .store-tile { transform: none; }
/* About the size of the tile's indicators (half its name's height); a larger area takes the tap. */
.tile-cam { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: var(--ink); color: #FFFFFF; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: background .15s, transform .15s; }
.tile-cam svg { width: 16px; height: 16px; }
.tile-cam::before { content: ""; position: absolute; inset: -9px; }
.tile-cam:hover { background: #1A3C8F; transform: scale(1.1); }
.tile-cam:active { transform: scale(.94); }
.tile-cam:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.store-tile.down + .tile-cam { background: #FFFFFF; color: var(--down); }
.tile-wrap .tile-address, .tile-wrap .tile-contact { padding-right: 34px; }
.camera-dialog { width: min(1280px, 94vw); max-width: none; max-height: 94vh; max-height: 94dvh; padding: 0; border: 0; border-radius: 14px; background: #0D1626; color: #FFFFFF; overflow: auto; overscroll-behavior: contain; }
.camera-dialog::backdrop { background: rgb(8 14 30 / 78%); }
body:has(.camera-dialog[open]) { overflow: hidden; }
.camera-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; padding: 12px 12px 12px 20px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.camera-dialog.dragging .camera-head { cursor: grabbing; }
.camera-dialog.dragging, .camera-dialog.resizing { box-shadow: 0 18px 50px rgb(0 0 0 / 45%); }
.camera-dialog.resizing { user-select: none; -webkit-user-select: none; }
/* The corner to resize by: three short diagonal lines. */
.camera-grip { position: absolute; right: 0; bottom: 0; width: 22px; height: 22px; cursor: nwse-resize; touch-action: none; border-bottom-right-radius: 14px;
  background: linear-gradient(135deg, transparent 0 46%, rgb(255 255 255 / 55%) 46% 52%, transparent 52% 62%, rgb(255 255 255 / 55%) 62% 68%, transparent 68% 78%, rgb(255 255 255 / 55%) 78% 84%, transparent 84%); }
.camera-grip:hover, .camera-dialog.resizing .camera-grip { background-color: rgb(255 255 255 / 12%); }
.camera-head h2 { margin: 0; color: #FFFFFF; font-size: 20px; }
.camera-meta { flex: 1; min-width: 0; margin: 0; color: #C9D3E8; font-size: 14px; }
.camera-close { order: 3; margin-left: auto; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / 12%); color: #FFFFFF; font-size: 28px; line-height: 1; cursor: pointer; }
.camera-close:hover { background: rgb(255 255 255 / 22%); }
.camera-head .camera-meta { order: 4; flex-basis: 100%; }
/* As large as fits, keeping its 16:9 shape. */
.camera-stage { position: relative; width: min(100%, calc((94dvh - 130px) * 16 / 9)); aspect-ratio: 16 / 9; margin: 0 auto; background: #000000; }
.camera-stage canvas { display: block; width: 100%; height: 100%; object-fit: contain; }
.camera-wait { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 20px; background: #000000; color: #C9D3E8; font-size: 15px; text-align: center; }
.camera-wait[hidden] { display: none; }
.camera-settings { margin: 0; padding: 12px 20px 18px; }
.camera-settings summary { font-weight: 700; cursor: pointer; color: #FFFFFF; }
.camera-settings > .note { margin: 10px 0; color: #C9D3E8; }
.camera-settings .note b { color: #FFFFFF; }
.camera-form { display: grid; grid-template-columns: repeat(2, minmax(0, 160px)); gap: 12px 16px; }
.camera-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.camera-form .camera-stream-field { grid-column: 1 / -1; }
.camera-form .camera-stream-field[hidden] { display: none; }
.camera-form-buttons { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.camera-settings .btn.dark { background: #FFFFFF; color: var(--ink); }
.camera-settings .text-button { color: #FFFFFF; }
.camera-check { margin: 12px 0 0; padding: 12px 16px; border-radius: 10px; background: #EEF2F9; color: var(--ink); white-space: pre-wrap; font-size: 13px; }
@media (max-width: 760px) {
  .tile-cam { right: 9px; bottom: 9px; width: 22px; height: 22px; }
  .tile-cam svg { width: 14px; height: 14px; }
}
/* Phones (upright or sideways): the whole screen, the picture in the middle. */
@media (max-width: 760px), (max-height: 500px) {
  .camera-dialog { width: 100vw; height: 100vh; height: 100dvh; max-height: none; margin: 0; border-radius: 0; }
  .camera-dialog[open] { display: flex; flex-direction: column; }
  .camera-head { padding: max(10px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); cursor: auto; touch-action: auto; }
  .camera-stage { flex: none; width: min(100%, calc((100dvh - 110px) * 16 / 9)); margin: auto; }
  .camera-settings { padding-bottom: max(18px, env(safe-area-inset-bottom)); }
  .camera-grip { display: none; }
}
.connection-banner { background: white; font-size: 18px; font-weight: 700; }
.connection-banner.off { background: #E5EAF4; }
#dashboard-links { max-width: 720px; }
.link-btn:hover { background: var(--highlight-soft); }
@media (max-width: 760px) {
  .topbar { height: auto; min-height: 72px; padding: 12px 20px 0; gap: 12px; flex-wrap: wrap; }
  .topbar .nav { order: 3; width: 100%; height: 48px; }
  .topbar .nav a { padding: 0 14px; }
  .topbar .nav-menu-button { padding: 0 10px; gap: 4px; font-size: 15px; }
  .topbar .nav-menu-button.has-warnings::after { right: 2px; }
  .topbar .small-link { margin-left: auto; }
  .store-board { padding: 24px 20px; }
  .board-heading { gap: 12px; }
  .board-heading #network-updated { order: 3; width: 100%; }
  .store-file { flex-direction: column; }
  .store-sidebar { width: 100%; }
  .store-sidebar h1 { font-size: 72px; }
  .store-tabs { padding: 0 12px; }
  .store-tabs button { padding: 0 12px; font-size: 14px; }
  .store-panel { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .store-tile, .tile-wrap, .tile-cam { transition: none; } }
.report-title-line { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.export-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 16px; background: var(--highlight-soft); border: var(--line); border-radius: 6px; }
.export-bar .dark { margin-left: auto; }
.export-bar > .note { width: 100%; }
.report-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 13px; }
.report-legend > span { display: flex; align-items: center; gap: 6px; }
.report-legend i, .split-label i { display: inline-block; width: 14px; height: 14px; border: 1px solid var(--ink); border-radius: 2px; }
.report-chart-row { display: grid; grid-template-columns: 90px minmax(0,1fr) 40px; gap: 12px; align-items: center; }
.report-chart-row b { text-align: right; }
.stack-bar { display: flex; height: 20px; border-radius: 3px; overflow: hidden; }
.stack-bar span { border: 1px solid #0e2a6b22; }
.peak { background: var(--gold); font-weight: 700; }
.spend-charts { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.spend-charts > div { min-width: 0; }
.monthly-chart { display: grid; grid-template-columns: repeat(9,minmax(0,1fr)); gap: 12px; height: 220px; }
.month-column { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; text-align: center; font-size: 12px; }
.month-column > div { background: var(--ink); border-radius: 3px 3px 0 0; }
.month-column > span:last-child { border-top: var(--line); padding-top: 6px; }
.purchase-split-bar { display: flex; height: 28px; gap: 2px; margin: 18px 0; border-radius: 3px; overflow: hidden; }
.purchase-split-bar span:first-child, .split-label i { background: var(--gold); }
.purchase-split-bar span:last-child, .split-label.replaced i { background: var(--ink); }
.split-label { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.split-label span { flex-grow: 1; }
@media (max-width: 760px) { .spend-charts { grid-template-columns: 1fr; } .monthly-chart { gap: 5px; } .month-column { font-size: 10px; } .export-bar .dark { margin-left: 0; } .nums { grid-template-columns: repeat(2,minmax(0,1fr)); } .num-card .value { font-size: 30px; } .section-head { flex-wrap: wrap; } }
/* Store support */
body[data-page="app"] { background: #F3F5FA; }
.help-hero { background: var(--ink); color: white; }
.help-hero-inner { max-width: 860px; margin: 0 auto; padding: 18px 28px 0; }
.help-hero .phone-top { padding: 0 0 18px; border-bottom: 1.5px solid #ffffff33; }
.help-hero .small-link { color: white; }
.help-hero .small-link:hover { color: var(--gold); }
.help-title { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 14px 24px; padding: 22px 0 18px; }
.help-title > div { flex: 1 1 280px; min-width: 0; }
.help-title h1 { margin: 0; color: white; font-size: 40px; letter-spacing: -1.2px; }
.help-store-line { margin: 6px 0 0; color: #D2DDF4; font-size: 15px; }
.help-store-line strong { color: var(--gold); }
.help-store-line a { color: #D2DDF4; }
.help-store-pick { display: flex; flex-direction: column; gap: 5px; flex: 0 1 300px; min-width: 0; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #D2DDF4; }
.help-store-pick select { width: 100%; height: 42px; padding: 0 10px; border: 0; border-radius: 8px; background: white; color: var(--ink); font: 700 15px var(--font-body); }
.help-tabs { display: flex; gap: 4px; overflow-x: auto; }
.help-tabs button { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border: 0; border-radius: 12px 12px 0 0; background: transparent; color: #D2DDF4; font: 700 15px var(--font-body); white-space: nowrap; cursor: pointer; }
.help-tabs button:hover { color: white; background: #ffffff14; }
.help-tabs button[aria-selected="true"] { background: #F3F5FA; color: var(--ink); }
/* Customer Reviews sits apart from the IT help tabs, on the right after a line. */
.help-tabs-divider { flex: none; align-self: center; width: 1px; height: 24px; margin: 0 6px 0 auto; background: #ffffff40; }
.help-tab-reviews svg { color: var(--gold); }
.help-tab-reviews[aria-selected="true"] svg { color: #C99A00; }
.help-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--gold); color: var(--ink); font-size: 12px; }
.store-app { max-width: 860px; padding: 24px 28px 48px; gap: 18px; }
#app-ticket, #app-tickets, #app-ticket-list { display: flex; flex-direction: column; gap: 18px; }
#app-ticket[hidden], #app-tickets[hidden] { display: none; }
.help-step { padding: 20px 22px 22px; border: 1px solid var(--rule); border-radius: 16px; background: white; }
.help-step h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 20px; }
.step-number { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: white; font-size: 14px; }
.help-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.store-app .help-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 120px; padding: 14px 12px; border: 1.5px solid var(--rule); border-radius: 12px; background: #FAFBFD; font-size: 15px; }
.store-app .help-tile:hover { border-color: var(--ink); background: var(--highlight-soft); }
.store-app .help-tile[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: white; }
.help-tile-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 4px; border-radius: 12px; background: #EEF1F7; color: var(--ink); }
.help-tile[aria-pressed="true"] .help-tile-icon { background: var(--gold); }
.help-tile-hint { font-size: 12px; font-weight: 400; line-height: 1.3; color: var(--ink-desc); }
.help-tile[aria-pressed="true"] .help-tile-hint { color: #D2DDF4; }
.store-app .help-step.tips { border-color: #E6D8A7; background: var(--highlight-soft); }
.store-app .help-tips { list-style: none; counter-reset: tip; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.help-tips li { counter-increment: tip; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 14px; border-radius: 10px; background: white; line-height: 1.45; }
.help-tips li::before { content: counter(tip); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--ink); font-size: 13px; font-weight: 700; }
.store-app .ticket-form { gap: 16px; }
.store-app textarea { background: #FAFBFD; margin-top: 6px; border-width: 1.5px; border-color: var(--rule); border-radius: 10px; }
.store-app textarea:focus { border-color: var(--ink); }
.store-app .btn:disabled { opacity: .6; cursor: wait; }
.store-app #ticket-submit { height: 48px; border-radius: 24px; font-size: 16px; }
#ticket-status.sent { padding: 12px 14px; border-radius: 10px; background: #E3F1E6; color: #1B6B2E; font-weight: 700; }
#ticket-status:empty { display: none; }
.help-empty { margin: 0; color: var(--ink-desc); }
.help-count-plain { margin-left: 2px; color: var(--muted); font-size: 16px; font-weight: 400; }
.help-ticket-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.help-ticket { padding: 14px 0; border-top: 1px solid #EEF1F7; }
.help-ticket:first-child { border-top: 0; padding-top: 0; }
.help-ticket-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.help-ticket-head time { margin-left: auto; font-size: 13px; color: var(--muted); }
.help-ticket-icon { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #EEF1F7; }
.help-ticket-icon svg { width: 20px; height: 20px; }
.help-ticket p { margin: 8px 0 0 42px; white-space: pre-wrap; overflow-wrap: anywhere; }
.help-ticket .help-ticket-fix { color: #1B6B2E; font-size: 14px; }
#app-reviews { gap: 18px; }
#review-store-label { margin: 6px 0 0; }
.review-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.review-summaries { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.review-origin { font-size: 12px; color: var(--muted); }
.help-section { margin-top: 16px; padding-top: 14px; border-top: 1px solid #E6D8A7; }
.help-section h3 { margin: 0 0 10px; font-size: 15px; }
.help-links { display: flex; flex-wrap: wrap; gap: 10px; }
.help-link { border-radius: 22px; background: white; text-decoration: none; }
.help-link { display: inline-flex; align-items: center; gap: 8px; height: auto; min-height: 44px; padding-top: 8px; padding-bottom: 8px; max-width: 100%; overflow-wrap: anywhere; text-align: left; }
.help-link-icon { display: inline-flex; flex: none; }
.help-link-thumb { flex: none; width: 28px; height: 28px; object-fit: cover; border-radius: 4px; background: #F5F6F9; }
.help-video { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.help-video h3 { margin: 0; }
#help-viewer { width: min(900px, 94vw); max-width: 94vw; max-height: 90vh; padding: 0; border: 1px solid var(--rule); border-radius: 12px; color: var(--ink); background: white; }
#help-viewer::backdrop { background: rgb(0 0 0 / 60%); }
.help-viewer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--rule); }
.help-viewer-head h2 { font-size: 20px; margin: 0; overflow-wrap: anywhere; }
#help-viewer-body { padding: 20px; overflow: auto; max-height: 65vh; }
.help-full-image { display: block; max-width: 100%; height: auto; margin: auto; }
.help-video a.btn { display: inline-flex; align-items: center; text-decoration: none; }
.help-video a.btn { height: auto; min-height: 44px; padding-top: 10px; padding-bottom: 10px; max-width: 100%; overflow-wrap: anywhere; }
.help-document { font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.help-document img { max-width: 100%; height: auto; }
.help-document table { border-collapse: collapse; width: 100%; }
.help-document td, .help-document th { border: 1px solid var(--rule); padding: 8px; }
.review-controls label, .review-search { display: flex; flex-direction: column; gap: 6px; }
.review-search input { padding: 12px; height: 46px; background: white; border: var(--line); border-radius: 6px; color: var(--ink); font: inherit; }
#review-results { display: flex; flex-direction: column; gap: 20px; }
.review-card { border-color: #D9DEE9; border-radius: 12px; overflow: hidden; }
.review-provider { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--rule); }
.review-provider h3 { margin: 0; font-size: 18px; }
.review-provider > a { margin-left: auto; font-size: 13px; }
.provider-icon { width: 32px; height: 32px; border: 1px solid var(--rule); border-radius: 8px; display: grid; place-items: center; font-weight: 700; }
.provider-icon.google { color: #2465CE; }
.provider-icon.yelp { color: #B3261E; }
.provider-icon.delivery { color: #1B6B2E; }
.review-score { display: flex; gap: 16px; align-items: center; padding: 20px; }
.review-score > strong { font-size: 46px; line-height: 1; }
.review-score > div { display: flex; flex-direction: column; gap: 4px; }
.review-stars { color: #946700; letter-spacing: 2px; font-size: 16px; }
.review-stars > span { color: #667085; }
.review-list-meta { padding: 0 20px 14px; font-size: 12px; color: var(--muted); }
.review-entry { padding: 18px 20px; border-top: 1px solid var(--rule); }
.review-byline { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin-bottom: 6px; }
.review-byline time { margin-left: auto; font-size: 12px; color: var(--muted); }
.review-text { font-size: 15px; color: #2B2B2B; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; margin: 10px 0 0; }
.review-empty { padding: 24px 20px; font-size: 14px; color: var(--muted); }
.review-empty strong { color: var(--ink); font-size: 16px; }
.review-empty p { margin: 8px 0 0; }
.review-empty button { margin-top: 16px; }
.review-more { margin: 0 20px 18px; }
.review-footer { border-top: 1px solid var(--rule); padding: 12px 20px; font-size: 12px; color: #5E5E5E; }
.review-footer span { white-space: nowrap; font-weight: 400; }
@media (max-width: 760px) {
  .help-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .help-hero-inner { padding: 16px 16px 0; }
  .help-title { padding: 16px 0 14px; }
  .help-title h1 { font-size: 32px; }
  .help-store-pick { flex-basis: 100%; }
  .help-tabs { flex-wrap: wrap; gap: 2px; overflow: visible; }
  .help-tabs button { gap: 6px; padding: 0 12px; }
  /* No room beside the IT tabs: Customer Reviews is a button of its own above them. */
  .help-tabs-divider { display: none; }
  .help-tabs .help-tab-reviews { order: -1; flex: 1 0 100%; justify-content: center; height: 42px; margin-bottom: 10px; border: 1.5px solid #ffffff40; border-radius: 10px; }
  .help-tabs .help-tab-reviews[aria-selected="true"] { border-color: var(--gold); }
  .store-app { padding: 18px 16px 32px; }
  .help-step { padding: 16px; }
  .help-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-tiles .help-tile:last-child:nth-child(odd) { grid-column: span 2; }
  .store-app .help-tile { min-height: 0; }
  .help-ticket p { margin-left: 0; }
  .review-provider { flex-wrap: wrap; }
  .review-byline time { margin-left: 0; }
}
.period-controls { display:flex; flex-wrap:wrap; gap:16px; align-items:end; }
.period-controls label, .purchase-form label { display:flex; flex-direction:column; gap:6px; font-size:14px; font-weight:700; }
.period-controls input, .purchase-form input { min-height:44px; border:var(--line); border-radius:6px; padding:10px 12px; background:white; color:var(--ink); font:inherit; min-width:0; width:100%; }
.store-period { padding:20px 28px; background:#F3F5FA; border-bottom:1px solid var(--rule); }
.purchase-editor { border-radius:10px; }
.purchase-editor > summary { cursor:pointer; padding:16px 20px; font-weight:700; background:var(--highlight-soft); border-radius:10px; }
.purchase-form { padding:20px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.purchase-form .full-field { grid-column:1/-1; }
.purchase-form p { margin:0; }
.product-link-row { display:flex; gap:8px; }
.product-link-row input { flex:1; }
.product-link-row button { white-space:nowrap; }
.purchase-total { display:flex; justify-content:space-between; padding:14px; background:#F3F5FA; border-radius:6px; font-weight:700; }
.purchase-total output { font-size:22px; }
.issue-group { padding:14px 16px; border-bottom:1px solid var(--rule); }
.issue-group:last-child { border:0; }
.issue-head { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.issue-head strong { min-width:110px; }
.issue-bar { flex:1 1 120px; height:8px; border-radius:4px; background:var(--rule); overflow:hidden; }
.issue-bar span { display:block; height:100%; background:var(--ink); border-radius:4px; }
.issue-group > .note { display:block; margin:6px 0 0; }
.issue-phrases { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:10px 0 0; font-size:14px; }
.issue-phrase { padding:2px 8px; border:1px solid var(--rule); border-radius:999px; background:var(--highlight-soft); }
.issue-phrase b { font-weight:700; margin-left:2px; }
.issue-group details { margin-top:10px; }
.issue-group summary { cursor:pointer; font-weight:700; font-size:14px; }
.issue-group ol { margin:8px 0 0; padding-left:20px; }
.ticket-excerpt { border-top:1px solid var(--rule); padding-top:10px; }
.ticket-excerpt time { font-size:12px; color:var(--muted); }
.ticket-excerpt p { white-space:pre-wrap; overflow-wrap:anywhere; margin:6px 0 14px; }
@media(max-width:560px){ .purchase-form {grid-template-columns:1fr;padding:16px;} .product-link-row {flex-wrap:wrap;} .period-controls>label {flex:1;min-width:140px;} .store-period {padding:16px 20px;} }

/*Page refinements: wall screens, phones and at-a-glance status*/
/* Stores board */
.board-counts { display: flex; gap: 8px; flex-wrap: wrap; }
.count-pill { padding: 6px 12px; border-radius: 20px; font-size: 14px; background: #ffffff1f; color: white; white-space: nowrap; }
.count-pill b { font-size: 16px; }
.count-pill.down { background: var(--gold); color: var(--ink); }
.count-pill.ok { background: #23883A; }
/* The board's small print (how many requests went to Revel and Deliverect today) */
.board-small { align-self: center; font-size: 13px; color: #D2DDF4; white-space: nowrap; }
#network-updated.stale { color: var(--gold); font-weight: 700; }
.store-file #network-updated.stale { color: var(--down); }

/* Long names (Hoboken, Montclair) get a smaller size so they stay inside the card. */
.store-tile .tile-name.long { font-size: 34px; letter-spacing: -1px; }

/* Store page */
.connection-banner { display: flex; align-items: center; gap: 10px; }
.connection-banner .banner-extra { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.connection-banner.ok { background: #E7F4EA; border-color: #23883A; }
.connection-banner.ok .status-dot { background: #23883A; }
.sidebar-info a { color: inherit; text-underline-offset: 3px; }

/* Reports */
.quiet-stores { margin: 4px 0 0; }
.total-row td { border-top: var(--line); font-weight: 700; }
.store-spend { padding-top: 12px; }
.store-spend .report-chart-row { grid-template-columns: 90px minmax(0,1fr) 90px; }
.export-bar { padding: 10px 14px; }
.export-bar .btn { height: 38px; font-size: 14px; }

@media (max-width: 760px) {
  /* Stores: two compact columns instead of one long list */
  .store-board .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .store-tile { min-height: 0; padding: 12px; gap: 4px; border-radius: 12px; }
  .store-tile .tile-name { font-size: 34px; letter-spacing: -1px; }
  .store-tile .tile-name.long { font-size: 26px; }
  .store-tile .tile-status { font-size: 12px; gap: 6px; }
  .store-tile .tile-address { font-size: 12px; }
  .store-tile .tile-contact { display: none; }
  .board-heading h1 { font-size: 36px; }

  /* Store: compact header so the details start on the first screen */
  .store-sidebar { padding: 18px 20px; gap: 12px; }
  .store-sidebar h1 { font-size: 56px; }
  .store-sidebar .sidebar-info { flex-direction: row; flex-wrap: wrap; gap: 8px 24px; padding-top: 10px; }
  .store-sidebar .sidebar-info strong { font-size: 17px; }
  .store-period { padding: 14px 20px; }

  /* Reports: purchases as small cards, store table keeps its first column in view */
  .stack-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .stack-table, .stack-table tbody { display: block; }
  .stack-table tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
  .stack-table tr:last-child { border-bottom: 0; }
  .stack-table td { padding: 0; border: 0; font-size: 13px; color: var(--muted); }
  .stack-table td.buy-item { order: -2; flex: 1 1 60%; font-size: 16px; font-weight: 700; color: var(--ink); }
  .stack-table td[data-label="Cost"] { order: -1; font-size: 16px; color: var(--ink); }
  .stack-table td[data-label="Qty"]::before { content: "×"; }
  .stack-table td[data-label="Why"] { flex-basis: 100%; }
  #report-store-table td:first-child, #report-store-table th:first-child { position: sticky; left: 0; background: white; z-index: 1; }
  #report-store-table td .sub { display: none; }
  .store-spend .report-chart-row { grid-template-columns: 80px minmax(0,1fr) 76px; }
}

@media (min-width: 1700px) {
  /* Stores board on a wall screen */
  .store-board { padding: 32px 48px 48px; }
  .board-heading h1 { font-size: 56px; }
  .count-pill { font-size: 17px; padding: 8px 16px; }
  .count-pill b { font-size: 20px; }
  .board-heading #network-updated { font-size: 17px; }
  .store-board .store-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
  .store-tile { min-height: 214px; padding: 18px 20px 20px; }
  .store-tile .tile-name { font-size: 62px; }
  .store-tile .tile-name.long { font-size: 44px; }
  .store-tile .tile-status { font-size: 16px; }
  .store-tile .tile-address { font-size: 17px; }
  .store-tile .tile-contact { font-size: 15px; }
  .store-region-heading { font-size: 28px; }
}

/* Shown when the server keeps its data private (site not password-protected). */
/*Sign in (login.html)*/
body[data-page="login"] { min-height: 100vh; background: var(--ink); }
.sign-in { display: flex; flex-direction: column; align-items: center; gap: 24px; max-width: 420px; margin: 0 auto; padding: max(48px, env(safe-area-inset-top)) 16px 40px; }
.sign-in-brand .brand-name { color: white; font-size: 40px; font-weight: 700; letter-spacing: -.8px; }
.sign-in-card { display: flex; flex-direction: column; gap: 16px; width: 100%; padding: 24px; border-radius: 14px; background: white; color: var(--ink); }
.sign-in-card h1 { margin: 0; font-size: 26px; }
.sign-in-card [hidden] { display: none; }
.sign-in-form { display: flex; flex-direction: column; gap: 14px; }
.sign-in-form .field { display: flex; flex-direction: column; gap: 5px; }
.sign-in-form .field .note { font-weight: 400; }
.sign-in-face { font-size: 17px; height: 52px; }
.sign-in-or { display: flex; align-items: center; gap: 10px; margin: 2px 0; font-size: 14px; color: var(--ink-desc); }
.sign-in-or::before, .sign-in-or::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }
.sign-in-lead { margin: 0 0 14px; line-height: 1.45; }
.sign-in-message { margin: 0; line-height: 1.45; }
.sign-in-message:empty { display: none; }
.sign-in-message.bad { font-weight: 600; }
.topbar .small-link + .sign-out { margin-left: 0; }
.topbar .sign-out { padding: 0; border: 0; background: none; font: inherit; text-decoration: underline; cursor: pointer; }

/* Purchase form: switch back to the store's sales tax rate. */
.tax-note .use-store-tax { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/*Revel warnings*/
body[data-page="warnings"] { background: var(--ink); }
.board-meta { font-size: 14px; color: #D2DDF4; }
.revel-action { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.revel-check { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1.5px solid #ffffff80; border-radius: 20px; background: transparent; color: white; font: 700 14px var(--font-body); cursor: pointer; white-space: nowrap; }
.revel-check:hover { background: #ffffff1f; border-color: white; }
.revel-check:disabled { cursor: wait; opacity: .85; }
.revel-check.busy svg { animation: revel-spin 1s linear infinite; }
@keyframes revel-spin { to { transform: rotate(360deg); } }
.revel-check-note { max-width: 360px; font-size: 13px; color: var(--gold); }
/* Warnings: From and To */
.warn-range { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin-top: 16px; }
.warn-range[hidden] { display: none; }
.warn-range label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #D2DDF4; }
.warn-range input { height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: white; color: var(--ink); font: 14px var(--font-body); }
.warn-range button { height: 36px; padding: 0 16px; border-radius: 20px; font: 700 14px var(--font-body); cursor: pointer; white-space: nowrap; }
.warn-range-show { border: 0; background: var(--gold); color: var(--ink); }
.warn-range-default { border: 1.5px solid #ffffff80; background: transparent; color: white; }
.warn-range-default:hover { background: #ffffff1f; border-color: white; }
.warn-range-default[aria-pressed="true"] { background: white; color: var(--ink); border-color: white; }
.warn-range-note { align-self: center; font-size: 13px; color: var(--gold); }
/* Warnings: Current or All warnings, the ones still open from earlier, and the sheet */
.warn-views { margin-top: 16px; }
.warn-empty.compact { min-height: 0; padding: 28px 24px; }
.warn-empty.compact svg { width: 64px; height: 64px; }
.warn-empty.compact h2 { font-size: 34px; }
.warn-earlier { margin-top: 28px; }
.warn-earlier > header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.warn-earlier h2 { margin: 0; font-size: 22px; color: white; }
.warn-link { margin-left: auto; padding: 0; border: 0; background: none; color: white; font: 700 14px var(--font-body); text-decoration: underline; cursor: pointer; }
.warn-log .warn-link { margin: 14px 0 0; }
.warn-sheet { margin-top: 14px; overflow-x: auto; border-radius: 14px; background: white; color: var(--ink); }
.warn-sheet table { font-size: 14px; }
.warn-sheet th { position: sticky; top: 0; background: white; }
.warn-sheet td { vertical-align: top; }
/* One line per cell (the notes wrap); a narrow screen scrolls the sheet sideways. */
.warn-sheet th, .warn-sheet td { padding: 10px 12px; white-space: nowrap; }
.warn-sheet .note-cell { min-width: 160px; max-width: 260px; white-space: normal; overflow-wrap: anywhere; }
.warn-sheet .wrap-cell { min-width: 60px; max-width: 160px; white-space: normal; overflow-wrap: break-word; }
.warn-sheet td a { font-weight: 700; color: #1A5FB4; font-variant-numeric: tabular-nums; }
.warn-sheet td .note { display: block; font-size: 12px; }
.warn-sheet tr.resolved td { color: var(--ink-desc); }
.warn-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.warn-tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 10px; background: #F4F6FA; font-size: 12px; font-weight: 700; white-space: nowrap; }
.warn-tag::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--down); }
.warn-tag.declined::before { background: #E07B00; }
.warn-tag.unpaid::before { background: var(--ink); }
.warn-tag.other::before { background: var(--off-line); }
.warn-fix { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 220px; }
.warn-fix input { flex: 1; min-width: 140px; height: 30px; padding: 0 8px; border: 1px solid var(--rule); border-radius: 6px; font: 13px var(--font-body); }
.warn-log-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin-top: 16px; }
.warn-log-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #D2DDF4; }
.warn-log-filters label.grow { flex: 1; min-width: 180px; }
/* Warnings > Gift cards: each payment on its own line; the looked-up order. */
.gift-pay { display: block; }
.gift-order { max-width: 760px; }
.gift-order th { width: 110px; text-align: left; color: var(--ink-desc); }
.gift-order td { white-space: normal; }
.gift-lookup-result .board-note.bad, .gift-period-note .board-note.bad { color: #FFD7D3; font-weight: 700; }
.gift-period-note .board-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.gift-period-note .board-note svg { width: 18px; height: 18px; flex-shrink: 0; }
.gift-period-note .warn-link { margin: 0; }
.board-note .try-again { margin: 0 0 0 6px; font-size: 13px; }
.warn-log-filters select, .warn-log-filters input { height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: white; color: var(--ink); font: 14px var(--font-body); }
.warn-csv { height: 36px; padding: 0 16px; border: 1.5px solid #ffffff80; border-radius: 20px; background: transparent; color: white; font: 700 14px var(--font-body); cursor: pointer; }
.warn-csv:hover { background: #ffffff1f; border-color: white; }
a.warn-csv { display: inline-flex; align-items: center; text-decoration: none; }
.warn-csv:disabled { opacity: .6; cursor: wait; }
/* Warnings > BOH tips (js/page-tips.js) */
.tips-week .warn-link { margin: 0 0 8px; }
.tips-email { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.tips-email svg, .tips-status .board-note svg { width: 18px; height: 18px; flex-shrink: 0; vertical-align: -3px; }
.tips-email .bad, .tips-body .bad { color: #FFD7D3; font-weight: 700; }
.tips-ready { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 14px 0; }
.tips-ready .board-note, .tips-ready .warn-link { margin: 0; }
.tips-heading { margin: 22px 0 8px; font-size: 18px; color: white; }
/* The warning icon: red on white tiles, white on red ones. */
.warn-icon { width: 1em; height: 1em; color: var(--down); flex-shrink: 0; }
.warn-icon .mark { stroke: white; }
.warn-flag { display: inline-flex; vertical-align: middle; margin-left: .18em; font-size: .5em; position: relative; top: -.08em; }
.store-tile.down .warn-icon { color: white; }
.store-tile.down .warn-icon .mark { stroke: var(--down); }
.store-sidebar .warn-flag { font-size: .42em; top: -.12em; text-decoration: none; }
/* Very busy (a flame): orange, since it's not a fault. */
.rush-flag .warn-icon { color: #E8590C; }
.store-tile.down .rush-flag .warn-icon { color: white; }
.nav-count { display: inline-block; min-width: 20px; margin-left: 6px; padding: 1px 6px; border-radius: 10px; background: var(--down); color: white; font-size: 12px; font-weight: 700; text-align: center; }
.nav-count[hidden] { display: none; }
/* A dot on the menu that holds Warnings; placed over the padding so it takes no room. */
.topbar .nav-menu-button { position: relative; }
.topbar .nav-menu-button.has-warnings::after { content: ''; position: absolute; top: calc(50% - 12px); right: 6px; width: 8px; height: 8px; border-radius: 50%; background: #FF5A4E; }
/* Warnings page */
.warn-problem { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; padding: 12px 16px; border-radius: 10px; background: #ffffff14; color: white; font-size: 14px; }
.warn-problem .warn-icon { font-size: 20px; color: var(--gold); }
.warn-problem .warn-icon .mark { stroke: var(--ink); }
.warn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-top: 24px; align-items: start; }
.warn-card { background: white; color: var(--ink); border-radius: 14px; padding: 16px 18px 18px; scroll-margin-top: 20px; border-top: 6px solid var(--down); }
.warn-card.other { border-top-color: var(--off-line); }
.warn-card.focus { box-shadow: 0 0 0 4px var(--gold); }
.warn-card > header { display: flex; align-items: flex-start; gap: 12px; }
.warn-card > header > div { flex: 1; min-width: 0; }
.warn-card h2 { margin: 0; font-size: 36px; line-height: 1; letter-spacing: -1px; }
.warn-card.other h2 { font-size: 24px; letter-spacing: 0; }
.warn-card h2 a { text-decoration: none; }
.warn-card h2 a:hover { text-decoration: underline; color: var(--ink); }
.warn-card > header > div > span { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-desc); }
.warn-count { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px; background: #FDECEA; color: var(--down); font-weight: 700; font-size: 15px; }
.warn-count .warn-icon { font-size: 16px; }
.warn-card.other .warn-count { background: #EEF1F7; color: var(--ink); }
.warn-card.other .warn-count .warn-icon { color: var(--off); }
.warn-kind { margin-top: 14px; }
.warn-kind h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 14px; }
.warn-kind h3 i { width: 10px; height: 10px; border-radius: 50%; background: var(--down); }
.warn-kind.declined h3 i { background: #E07B00; }
.warn-kind.unpaid h3 i { background: var(--ink); }
.warn-kind.other h3 i { background: var(--off-line); }
.warn-kind h3 span { margin-left: auto; font-weight: 400; color: var(--ink-desc); }
.warn-kind ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.warn-kind li { display: flex; align-items: baseline; gap: 10px; padding: 5px 8px; border-radius: 6px; background: #F4F6FA; font-size: 14px; }
.warn-kind li a { font-weight: 700; color: #1A5FB4; font-variant-numeric: tabular-nums; }
.warn-when { color: var(--ink-desc); font-size: 13px; }
.warn-today { margin-left: auto; padding: 0 6px; border-radius: 4px; background: var(--gold); font-size: 12px; font-weight: 700; }
/* Nothing to show: one panel filling the page below the heading. */
.warn-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: calc(100vh - 230px); margin-top: 24px; padding: 40px 24px; border-radius: 18px; background: white; color: var(--ink); text-align: center; }
.warn-empty svg { width: 120px; height: 120px; }
.warn-empty h2 { margin: 12px 0 0; font-size: 56px; letter-spacing: -1.5px; line-height: 1; }
.warn-empty p { margin: 0; max-width: 560px; font-size: 18px; color: var(--ink-desc); }
.warn-empty.ok { background: linear-gradient(#EAF6ED, white 70%); }
.warn-empty.ok h2 { color: #1B6B2E; }
.warn-empty .warn-empty-when { font-size: 15px; color: var(--muted); }
@media (max-width: 760px) {
  .warn-grid { grid-template-columns: 1fr; }
  .warn-empty { min-height: calc(100vh - 300px); }
  .warn-empty svg { width: 88px; height: 88px; }
  .warn-empty h2 { font-size: 40px; }
  .warn-empty p { font-size: 16px; }
  .revel-action { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .revel-check.busy svg { animation: none; } }

/*Busy Mode (store page)*/
.busy-card { border-top: var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.busy-card h2 { margin: 0; font-size: 16px; }
.busy-state { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.busy-badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-weight: 700; font-size: 18px; background: #23883A; color: white; }
.busy-badge.busy { background: #E07B00; }
.busy-badge.closed { background: var(--down); }
.busy-badge.small { padding: 1px 8px; font-size: 12px; }
.busy-until { font-size: 14px; }
.busy-where { margin: 0; font-size: 13px; }
.busy-buttons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.busy-choice { height: 40px; border: var(--line); border-radius: var(--radius); background: white; color: var(--ink); font: 700 15px var(--font-body); cursor: pointer; }
.busy-choice small { font-weight: 400; font-size: 12px; }
.busy-choice:hover { background: var(--highlight-soft); }
.busy-choice[aria-pressed="true"] { background: var(--ink); color: white; cursor: default; }
.busy-choice[aria-pressed="true"].open { background: #23883A; border-color: #23883A; }
.busy-choice[aria-pressed="true"].busy { background: #E07B00; border-color: #E07B00; }
.busy-choice[aria-pressed="true"].closed { background: var(--down); border-color: var(--down); }
.busy-choice.open { grid-column: 1 / 3; grid-row: 1; }
.busy-choice.closed { grid-column: 3 / 5; grid-row: 1; }
.busy-choice.busy { grid-row: 2; padding: 0 4px; }
.busy-choice:disabled { opacity: .6; cursor: wait; }
.busy-note { margin: 0; font-size: 13px; }
.rush-line { margin: 0; padding: 8px 12px; border-radius: 8px; background: #F4F6FA; font-size: 13px; }
.rush-line.busy { background: #FFF1E6; border-left: 4px solid #E8590C; }
.busy-channels summary { cursor: pointer; font-size: 13px; font-weight: 700; }
.busy-channels ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.busy-channels li { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }

/*Reports > Store*/
body[data-page="store-reports"] { background: var(--ink); }
.sales-board .board-heading h1 { flex-grow: 1; }
.sales-toolbar { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-top: 18px; }
.sales-periods { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 24px; background: #ffffff14; }
.sales-periods:empty { display: none; }
.sales-periods button { height: 34px; padding: 0 16px; border: 0; border-radius: 20px; background: transparent; color: #D2DDF4; font: 700 14px var(--font-body); cursor: pointer; white-space: nowrap; }
.sales-periods button:hover { color: white; background: #ffffff14; }
.sales-periods button[aria-pressed="true"] { background: white; color: var(--ink); }
.sales-toolbar .board-meta { font-size: 14px; }
.sales-basis { margin: 20px 0 0; padding: 12px 16px; border-radius: 10px; background: #ffffff14; color: #D2DDF4; font-size: 14px; line-height: 1.45; }
.sales-basis b { color: white; }
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.kpi { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 18px 20px; border-radius: 16px; background: white; color: var(--ink); }
.kpi.best { background: var(--gold); }
.kpi-label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-desc); }
.kpi.best .kpi-label { color: var(--ink); }
.kpi-label svg { width: 16px; height: 16px; }
.kpi strong { font-size: 36px; letter-spacing: -1px; line-height: 1.05; overflow-wrap: anywhere; }
.kpi strong a { text-decoration: none; }
.kpi strong a:hover { text-decoration: underline; color: var(--ink); }
.kpi-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 22px; font-size: 13px; }
.kpi.best .kpi-foot { font-weight: 700; }
.kpi-vs { color: var(--muted); }
.change { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 10px; font-size: 12px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.change.up { background: #E7F4EA; color: #1B6B2E; }
.change.down { background: #FDECEA; color: var(--down); }
.change.flat { background: #EEF1F7; color: var(--muted); }
.sales-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; margin-top: 16px; align-items: start; }
.sales-card { padding: 18px 20px 14px; border-radius: 16px; background: white; color: var(--ink); }
.sales-card > header { display: flex; align-items: center; gap: 12px; min-height: 32px; margin-bottom: 10px; }
.sales-card h2 { margin: 0; font-size: 18px; }
.sort-toggle { margin-left: auto; display: inline-flex; gap: 2px; padding: 3px; border-radius: 18px; background: #EEF1F7; }
.sort-toggle button { height: 28px; padding: 0 12px; border: 0; border-radius: 14px; background: transparent; color: var(--ink-desc); font: 700 13px var(--font-body); cursor: pointer; }
.sort-toggle button[aria-pressed="true"] { background: var(--ink); color: white; }
.rank-head, .rank-list.stores li { display: grid; grid-template-columns: 28px minmax(64px, 110px) minmax(0, 1fr) 52px 76px; column-gap: 14px; align-items: center; }
.rank-head { padding: 0 8px 6px; border-bottom: 1px solid var(--rule); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rank-head span:nth-child(n+4) { text-align: right; }
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li { padding: 8px; border-bottom: 1px solid #EEF1F7; }
.rank-list li:last-child { border-bottom: 0; }
.rank-list.products li { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1.1fr); column-gap: 14px; align-items: center; }
.rank-list li.best { background: var(--highlight-soft); border-radius: 10px; }
.rank-list li.none { color: var(--muted); }
.rank { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.rank.r1, .rank.r2, .rank.r3 { background: var(--ink); color: white; }
.rank.r1 { background: var(--gold); color: var(--ink); }
.rank-name { min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.rank-name a { text-decoration: none; }
.rank-name a:hover { text-decoration: underline; }
.rank-name small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-desc); }
.bar-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bar-track { flex: 1; min-width: 20px; height: 10px; border-radius: 5px; background: #EEF1F7; overflow: hidden; }
.bar { display: block; height: 100%; border-radius: 5px; background: var(--ink); }
/*li.best .bar { background: #C99A00; }*/
.rank-value { flex: 0 0 auto; min-width: 64px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.rank-share, .rank-change { text-align: right; font-size: 13px; color: var(--ink-desc); font-variant-numeric: tabular-nums; }
.empty-row { display: block !important; color: var(--ink-desc); }
@media (max-width: 1100px) {
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .sales-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .kpi { padding: 14px 16px; }
  .kpi strong { font-size: 24px; }
  .kpi-row { gap: 10px; }
  .rank-head { display: none; }
  .rank-list.stores li { grid-template-columns: 26px minmax(0, 1fr) auto; grid-template-areas: "rank name change" "rank bar bar"; row-gap: 6px; }
  .rank-list.stores .rank { grid-area: rank; }
  .rank-list.stores .rank-name { grid-area: name; }
  .rank-list.stores .bar-cell { grid-area: bar; }
  .rank-list.stores .rank-change { grid-area: change; }
  .rank-list.stores .rank-share { display: none; }
  .rank-list.products li { grid-template-columns: 26px minmax(0, 1fr); grid-template-areas: "rank name" "rank bar"; row-gap: 6px; }
  .rank-list.products .rank { grid-area: rank; }
  .rank-list.products .rank-name { grid-area: name; }
  .rank-list.products .bar-cell { grid-area: bar; }
}
@media (max-width: 340px) { .kpi-row { grid-template-columns: 1fr; } }

/*Cancellation tickets (store page)*/
.printer-health { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 0; font-size: 14px; }
.printer-health span:last-child { font-size: 13px; }
.printer-health.ok .status-dot { background: #23883A; }
.printer-health.down .status-dot { background: var(--down); }
.printer-health.off .status-dot { background: transparent; border: 2px solid currentColor; }
.printer-test { height: 36px; }
.printer-requests-title { margin: 12px 0 6px; font-size: 13px; }
/* A store's Revel stations */
.station-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.station-list li { display: grid; grid-template-columns: 10px 1fr; column-gap: 8px; align-items: center; }
.station-list li span:last-child { grid-column: 2; font-size: 12px; color: var(--muted); }
.station-list .ok .status-dot { background: #23883A; }
.station-list .prob .status-dot { background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); border: 2px solid var(--ink); }
.station-list .off .status-dot { background: transparent; border: 2px solid var(--off); }
/* Canopy: Restart next to a station, and the store's other devices. */
.station-list li:has(.device-restart) { grid-template-columns: 10px 1fr auto; }
.station-list .device-restart { grid-column: 3; grid-row: 1 / span 2; padding: 4px 10px; font-size: 12px; }
.ticket-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.ticket-list li { display: flex; justify-content: space-between; gap: 8px; }
.ticket-state.failed { color: var(--down); font-weight: 700; }
.printer-setup ol { margin: 8px 0; padding-left: 18px; font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.printer-setup ol li { display: list-item; }
.printer-url { display: block; margin: 4px 0; max-width: 100%; overflow-wrap: anywhere; padding: 2px 4px; background: white; border-radius: 4px; font-size: 12px; }
.copy-url { margin: 0 0 4px; padding: 1px 8px; border: 1px solid var(--ink); border-radius: 4px; background: white; color: var(--ink); font: 700 12px var(--font-body); cursor: pointer; }
/* Store report: a store's own top products. */
.product-store { height: 32px; margin-left: auto; padding: 0 28px 0 12px; border: 1px solid var(--off-line); border-radius: 16px; background: #EEF1F7; color: var(--ink); font: 700 13px var(--font-body); cursor: pointer; }
.products-card .sort-toggle { margin-left: 0; }
.rank-list.stores li.pickable { cursor: pointer; }
.rank-list.stores li.pickable:hover { background: #F4F6FA; border-radius: 10px; }
.rank-list.stores li.picked { box-shadow: inset 3px 0 0 var(--ink); background: #EEF1F7; border-radius: 10px; }
@media (max-width: 760px) { .products-card > header { flex-wrap: wrap; } .product-store { margin-left: 0; } }
/* Store report: daily sales. */
.daily-card { margin-top: 16px; }
.daily-card > header { flex-wrap: wrap; }
.daily-scope { padding: 2px 10px; border-radius: 12px; background: #EEF1F7; font-size: 13px; font-weight: 700; }
.daily-stats { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--ink-desc); }
.daily-stats b { color: var(--ink); }
.daily-chart { display: flex; gap: 4px; padding-top: 6px; }
.day { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.day:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 2px); left: 50%; transform: translateX(-50%); z-index: 2; padding: 5px 9px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; pointer-events: none; }
.day.first:hover::after { left: 0; transform: none; }
.day.last:hover::after { left: auto; right: 0; transform: none; }
.day-col { display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 150px; border-bottom: 1px solid var(--rule); }
.day-bar { width: 100%; max-width: 40px; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--ink); }
.day.best .day-bar { background: #ffc400; }
.day:hover .day-bar { background: #1A3C8F; }
.day.best:hover .day-bar { background: #fdc200; }
.day-label { margin-top: 5px; font-size: 11px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .day-col { height: 110px; } .daily-chart { gap: 2px; } .day-label { font-size: 9px; } .daily-chart.many .day:nth-child(even) .day-label { visibility: hidden; } .daily-stats { margin-left: 0; } }

/*Tickets marked fixed, and editing purchases*/
.tag.ok { background: #E3F1E6; border-color: #23883A; color: #1B6B2E; }
.text-button { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.text-button:hover { color: var(--muted); }
.row-actions { display: inline-flex; gap: 14px; margin-left: auto; }
.form-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.open-tickets { padding: 0 16px 8px; border-bottom: 1px solid var(--rule); }
.open-tickets h3 { font-size: 15px; margin: 16px 0 8px; }
.ticket-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ticket-category { font-size: 12px; font-weight: 700; }
.ticket-head .tag { margin-left: auto; }
.ticket-buttons { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 14px; }
.ticket-excerpt > .note { display: block; margin-top: 4px; }
.ticket-store { font-size: 13px; font-weight: 700; }
#open-ticket-list .ticket-excerpt { padding: 10px 16px 0; }
#open-ticket-list .ticket-excerpt:first-child { border-top: 0; }
.ticket-add { margin-bottom: 12px; border-radius: 10px; }
.ticket-add > summary { cursor: pointer; padding: 14px 20px; font-weight: 700; background: var(--highlight-soft); border-radius: 10px; }
.ticket-add > form { padding: 16px 20px 2px; }
.ticket-files { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 14px; }
.ticket-files img, .ticket-files video { display: block; height: 120px; max-width: 220px; object-fit: cover; border-radius: 8px; border: 1px solid var(--rule); background: var(--rule); }
.ticket-files video { width: 200px; }
.ticket-file-link { font-size: 14px; font-weight: 700; }
.ticket-file-pick { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px dashed #AEB7CC; border-radius: 12px; background: #FAFBFD; color: var(--ink); cursor: pointer; }
.ticket-file-pick:hover, .ticket-file-pick:focus-within { border-color: var(--ink); background: var(--highlight-soft); }
.ticket-file-pick:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.ticket-file-pick svg { flex: none; }
.ticket-file-pick span { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.ticket-file-pick small { font-size: 13px; color: var(--ink-desc); }
.ticket-file-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
#ticket-files { display: flex; flex-direction: column; gap: 8px; }
.ticket-picked { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.ticket-picked li { display: flex; gap: 12px; align-items: baseline; overflow-wrap: anywhere; }
.ticket-picked:empty { display: none; }
.ticket-keep { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.ticket-keep legend { font-size: 14px; font-weight: 700; padding: 0; margin-bottom: 4px; }
.ticket-keep label { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 400 !important; }
.open-tickets:last-child { border-bottom: 0; }
.ticket-fix { margin: -6px 0 8px; font-size: 14px; color: var(--ink-soft); overflow-wrap: anywhere; }
.fix-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.fix-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
td.row-buttons { white-space: nowrap; }
/* Bought & replaced: a date and a cost on one line (the item's long name takes the room). */
.stack-table td[data-label="Date"], .stack-table td[data-label="Cost"] { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (max-width: 760px) { .stack-table td.row-buttons { flex-basis: 100%; } }

/*Network history (a store's page)*/
.net-history {
  --net-up: #23883A; --net-loss: #E8B100; --net-dns: #EC835A; --net-down: var(--down); --net-none: #E5EAF4;
  margin-top: 12px; gap: 14px;
}
.net-history[hidden] { display: none; }
.net-history-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.net-history-head h2 { margin: 0; font-size: 20px; }
.net-ranges { display: inline-flex; gap: 4px; margin-left: auto; padding: 4px; border-radius: 20px; background: #EEF1F7; }
.net-ranges button { height: 30px; padding: 0 14px; border: 0; border-radius: 16px; background: transparent; color: var(--ink); font: 700 13px var(--font-body); cursor: pointer; white-space: nowrap; }
.net-ranges button:hover { background: #DDE3EE; }
.net-ranges button[aria-pressed="true"] { background: var(--ink); color: white; }
.net-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.net-stat { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 12px; }
.net-stat-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-desc); }
.net-stat strong { font-size: 26px; line-height: 1.1; }
.net-stat small { font-size: 12px; color: var(--muted); }
.net-chart { position: relative; padding: 10px 10px 4px; border: 1px solid var(--rule); border-radius: 12px; }
.net-chart:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.net-plot svg { display: block; max-width: 100%; height: auto; touch-action: pan-y; }
.nh-grid { stroke: #E5EAF4; stroke-width: 1; }
.nh-tick { fill: var(--muted); font: 11px var(--font-body); font-variant-numeric: tabular-nums; }
.nh-outage { fill: var(--net-down); opacity: .1; }
.nh-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.nh-area { fill: var(--ink); opacity: .08; }
.nh-dot { fill: var(--ink); stroke: white; stroke-width: 2; }
.nh-state.up { fill: var(--net-up); }
.nh-state.loss { fill: var(--net-loss); }
.nh-state.dns { fill: var(--net-dns); }
.nh-state.down { fill: var(--net-down); }
.nh-state.none { fill: var(--net-none); }
.nh-cross { stroke: var(--ink); stroke-width: 1; opacity: .5; }
.net-tip { position: absolute; top: 6px; z-index: 2; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 8px; background: var(--ink); color: white; font-size: 12px; white-space: nowrap; pointer-events: none; }
.net-tip[hidden] { display: none; }
.net-tip b { font-size: 13px; }
.net-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: -4px 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--ink-desc); }
.net-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.net-legend i.up { background: var(--net-up); }
.net-legend i.loss { background: var(--net-loss); }
.net-legend i.dns { background: var(--net-dns); }
.net-legend i.down { background: var(--net-down); }
.net-legend i.none { background: var(--net-none); }
.net-legend i.line { width: 14px; height: 2px; border-radius: 1px; background: var(--ink); vertical-align: 3px; }
.net-issues-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.net-issues-title { margin: 0; font-size: 16px; }
.net-issues { margin: 0; padding: 0; list-style: none; border: 1px solid var(--rule); border-radius: 12px; }
.net-issues li { display: grid; grid-template-columns: 12px minmax(130px, auto) 1fr; column-gap: 10px; row-gap: 2px; align-items: baseline; padding: 10px 14px; border-bottom: 1px solid var(--rule); font-size: 14px; }
.net-issues li:last-child { border-bottom: 0; }
.net-dot { width: 10px; height: 10px; border-radius: 50%; align-self: center; }
.net-issues .down .net-dot { background: var(--net-down); }
.net-issues .loss .net-dot { background: var(--net-loss); }
.net-issues .dns .net-dot { background: var(--net-dns); }
.net-issue-when { font-variant-numeric: tabular-nums; }
.net-issue-long { grid-column: 3; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) {
  .net-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .net-ranges { margin-left: 0; display: grid; grid-template-columns: repeat(5, 1fr); width: 100%; }
  .net-ranges button { padding: 0 4px; font-size: 12px; }
  .net-issues li { grid-template-columns: 12px 1fr; }
  .net-issue-when, .net-issue-long { grid-column: 2; }
}

/*Online > Menu: failed orders by problem*/
body[data-page="menu"] { background: var(--ink); }
.menu-board .warn-log-filters { margin-top: 4px; }
.menu-table .menu-problem { min-width: 260px; max-width: 420px; white-space: normal; overflow-wrap: anywhere; font-weight: 600; }
.menu-table .menu-problem .menu-kind { margin: 0 8px 4px 0; vertical-align: 1px; }
.warn-tag.menu-kind.pos::before { background: #E07B00; }
.warn-tag.menu-kind.other::before { background: var(--off-line); }
.menu-counts, .menu-orders { margin: 0; padding: 0; list-style: none; }
.menu-counts li { white-space: nowrap; }
.menu-counts b { margin-left: 6px; font-size: 12px; color: var(--ink-desc); }
.menu-table details summary { cursor: pointer; font-weight: 700; color: #1A5FB4; }
.menu-table details summary .note { font-weight: 400; color: var(--down); }
.menu-orders { margin-top: 6px; font-size: 13px; }
.menu-orders li { white-space: nowrap; }
.menu-missing { display: grid; gap: 12px; margin-top: 16px; }
.menu-missing[hidden] { display: none; }
.menu-missing-card { padding: 16px 18px; border-radius: 14px; background: white; color: var(--ink); }
.menu-missing-card h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 20px; }
.menu-missing-what { margin: 6px 0 0; font-size: 14px; color: var(--ink-desc); }

/*Customers (customers.html)*/
body[data-page="customers"] { background: var(--ink); }
.customers-board .board-meta { font-size: 14px; color: #D2DDF4; }
.customer-search { margin-top: 18px; padding: 18px 20px; border-radius: 16px; background: #ffffff14; }
.customer-fields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.customer-fields label { display: flex; flex-direction: column; gap: 5px; min-width: 0; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #D2DDF4; }
.customer-fields small { margin-left: 4px; font-size: 11px; font-weight: 400; letter-spacing: 0; text-transform: none; color: #A9B6D6; }
.customer-fields input, .customer-fields select { width: 100%; height: 40px; padding: 0 10px; border: 0; border-radius: 8px; background: white; color: var(--ink); font: 15px var(--font-body); }
.customer-fields input::placeholder { color: #9AA1B2; }
.customer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; }
.customer-actions button { height: 40px; padding: 0 20px; border-radius: 20px; font: 700 15px var(--font-body); cursor: pointer; }
.customer-find { border: 0; background: var(--gold); color: var(--ink); }
.customer-find:disabled { opacity: .7; cursor: wait; }
.customer-clear { border: 1.5px solid #ffffff80; background: transparent; color: white; }
.customer-clear:hover { background: #ffffff1f; border-color: white; }
.customer-hint { font-size: 13px; color: #D2DDF4; }
.customer-start { max-width: 640px; margin-top: 28px; }
.customer-start h2 { margin: 0 0 6px; color: white; font-size: 22px; }
.customer-start p { margin: 0; color: #D2DDF4; }
.customer-empty { margin-top: 24px; font-size: 16px; }
.customer-checking { display: flex; align-items: center; gap: 8px; width: fit-content; margin: 14px 0 0; padding: 6px 14px; border-radius: 16px; background: #ffffff1f; color: white; font-size: 14px; }
.customer-checking::before { content: ''; width: 10px; height: 10px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: revel-spin 1s linear infinite; }
@media (prefers-reduced-motion: reduce) { .customer-checking::before { animation: none; } }
.customer-partial { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--highlight-soft); color: var(--ink); font-size: 14px; }
.customer-partial p { margin: 0; }
.customer-partial ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink-desc); }
.customer-note { margin: 14px 0 0; font-size: 13px; color: var(--ink-desc); }
.customer-kpis .kpi strong { font-size: 30px; }
.customer-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.customer-sub { font-size: 13px; color: var(--ink-desc); }
.customer-orders > header .customer-sub { margin-left: auto; }
.customer-order-list { list-style: none; margin: 0; padding: 0; }
.customer-order { border-top: 1px solid #EEF1F7; }
.customer-order.open { background: #F7F9FC; border-radius: 10px; }
.customer-order-main { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 8px; }
.customer-order-when { display: flex; flex-direction: column; font-size: 13px; color: var(--ink-desc); }
.customer-order-when strong { color: var(--ink); font-size: 14px; }
.customer-order-what { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.customer-number { font-weight: 700; }
.customer-items { font-size: 13px; color: var(--ink-desc); overflow-wrap: anywhere; }
.via-badge { display: inline-block; padding: 1px 8px; border-radius: 10px; background: #EEF1F7; font-size: 12px; font-weight: 700; }
.via-badge.store { background: var(--highlight-soft); }
.customer-order-total { font-size: 17px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.customer-order-actions { display: flex; gap: 6px; }
.btn-small { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1.5px solid var(--ink); border-radius: 16px; background: white; color: var(--ink); font: 700 13px var(--font-body); text-decoration: none; cursor: pointer; }
.btn-small:hover { background: var(--highlight-soft); color: var(--ink); }
.btn-small[aria-expanded="true"] { background: var(--ink); color: white; }
.receipt-email { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; padding: 0 8px 14px 152px; }
.receipt-email label { display: flex; flex-direction: column; gap: 4px; flex: 1 1 240px; font-size: 12px; font-weight: 700; color: var(--ink-desc); }
.receipt-email input { height: 36px; padding: 0 10px; border: 1.5px solid var(--rule); border-radius: 8px; font: 15px var(--font-body); color: var(--ink); }
.receipt-email button { height: 36px; padding: 0 18px; border: 0; border-radius: 18px; background: var(--ink); color: white; font: 700 14px var(--font-body); cursor: pointer; }
.receipt-email button:disabled { opacity: .7; cursor: wait; }
.receipt-download { align-self: center; font-size: 14px; font-weight: 700; }
.receipt-email-note { flex-basis: 100%; margin: 0; font-size: 14px; }
.receipt-email-note.ok { color: #1B6B2E; }
.receipt-email-note.bad { color: var(--down); }
.customer-contact dl { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.customer-contact dt { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.customer-contact dd { margin: 2px 0 0; overflow-wrap: anywhere; font-weight: 600; }
@media (max-width: 1100px) {
  .customer-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .customer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .customer-search { padding: 14px; }
  .customer-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-order-main { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "when total" "what what" "actions actions"; gap: 8px; }
  .customer-order-when { grid-area: when; flex-direction: row; gap: 8px; align-items: baseline; }
  .customer-order-what { grid-area: what; }
  .customer-order-total { grid-area: total; }
  .customer-order-actions { grid-area: actions; }
  .receipt-email { padding-left: 8px; }
}
/* Customers: the overview */
.customer-views { margin-top: 16px; }
.customer-overview { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.customer-overview .customer-partial { margin: 0; }
/* Several people matched: one card each. */
.customer-picker > p { margin: 0 0 10px; color: #D2DDF4; }
.customer-picker > p strong { color: white; }
.customer-picker > .customer-sub { margin-top: 8px; color: #D2DDF4; }
.picker-cards { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px; }
.picker-card { flex: 0 0 230px; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 2px solid transparent; border-radius: 14px; background: #ffffff1a; color: white; font: 14px var(--font-body); text-align: left; cursor: pointer; }
.picker-card strong { font-size: 16px; overflow-wrap: anywhere; }
.picker-card span { color: #D2DDF4; overflow-wrap: anywhere; }
.picker-card small { color: #D2DDF4; font-size: 12px; }
.picker-card:hover { background: #ffffff29; }
.picker-card[aria-pressed="true"] { background: white; border-color: var(--gold); color: var(--ink); }
.picker-card[aria-pressed="true"] span, .picker-card[aria-pressed="true"] small { color: var(--ink-desc); }
/* The person. */
.profile-head { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; }
.profile-avatar { display: grid; place-items: center; flex: none; width: 60px; height: 60px; border-radius: 50%; background: var(--ink); color: var(--gold); font-size: 22px; font-weight: 700; letter-spacing: .5px; }
.profile-who { flex: 1 1 200px; min-width: 0; }
.profile-who h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.5px; overflow-wrap: anywhere; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.profile-tag { padding: 2px 10px; border-radius: 12px; background: #EEF1F7; font-size: 12px; font-weight: 700; white-space: nowrap; }
.profile-tag.good { background: #E3F1E6; color: #1B6B2E; }
.profile-tag.gold { background: var(--gold); color: var(--ink); }
.profile-tag.info { background: #E3ECFB; color: #1A3C8F; }
.profile-tag.warn { background: var(--highlight-soft); color: #7A5A00; }
.profile-tag.bad { background: #FDECEA; color: var(--down); }
.profile-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 0; font-weight: 600; }
.profile-contact a { overflow-wrap: anywhere; }
.profile-since { margin: 14px 0; padding-top: 12px; border-top: 1px solid #EEF1F7; font-size: 14px; color: var(--ink-desc); }
.profile-since b { color: var(--ink); }
.overview-facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.overview-fact { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 12px 14px; border-radius: 12px; background: #F4F6FA; }
.overview-fact span { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.overview-fact strong { font-size: 22px; letter-spacing: -.5px; overflow-wrap: anywhere; }
.overview-fact small { font-size: 12px; color: var(--ink-desc); }
.overview-fact .change { margin-right: 2px; }
/* Lists: orders with a problem, latest orders. */
.overview-problems { border-left: 6px solid var(--down); }
.overview-list { list-style: none; margin: 0; padding: 0; }
.overview-list li { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 10px 0; border-top: 1px solid #EEF1F7; font-size: 14px; }
.overview-list li:first-child { border-top: 0; padding-top: 0; }
.overview-list li > span:nth-child(2) { flex: 1 1 180px; min-width: 0; }
.overview-list-total { font-weight: 700; font-variant-numeric: tabular-nums; }
.overview-card > header .text-button { margin-left: auto; }
.status-tag { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: 700; }
.status-tag.failed { background: var(--down); color: white; }
.status-tag.canceled { background: #FDECEA; color: var(--down); }
.overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.overview-rank li { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(0, 1.3fr); column-gap: 14px; align-items: center; }
.overview-rank .rank-value { min-width: 72px; }
.overview-columns .day-col { height: 120px; }
.overview-note { margin: 10px 0 0; font-size: 12px; color: var(--ink-desc); }
@media (max-width: 1100px) { .overview-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .overview-grid { grid-template-columns: 1fr; }
  .overview-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-contact { align-items: flex-start; flex-basis: 100%; }
  .profile-avatar { width: 48px; height: 48px; font-size: 18px; }
  .profile-who h2 { font-size: 22px; }
  .overview-columns .day-col { height: 90px; }
  .picker-card { flex-basis: 200px; }
}

/*Item report (items.html)*/
.items-page > section, .items-page > .export-bar { margin-top: 20px; }
.items-table td:first-child { min-width: 180px; }
.item-toggle { text-align: left; font-size: inherit; }
.item-toggle::before { content: '▸'; display: inline-block; width: 1em; text-decoration: none; }
.item-toggle[aria-expanded="true"]::before { content: '▾'; }
.modifier-row td { padding-top: 6px; padding-bottom: 6px; font-size: 14px; color: var(--muted); background: var(--highlight-soft); }
.modifier-name { padding-left: 1em; }
.items-find { position: relative; min-width: 240px; }
.items-suggest { position: absolute; top: 100%; left: 0; right: 0; z-index: 20; margin: 4px 0 0; padding: 4px 0; list-style: none; background: var(--white); border: var(--line); border-radius: 6px; box-shadow: 0 8px 24px rgba(14, 42, 107, 0.15); max-height: 320px; overflow-y: auto; font-weight: 400; }
.items-suggest li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 12px; cursor: pointer; }
.items-suggest li[aria-selected="true"], .items-suggest li:hover { background: var(--highlight-soft); }
.items-suggest .note { white-space: nowrap; }
.items-suggest li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .period-controls > .items-find { flex-basis: 100%; } }

/* The reports dashboard (report.html), opened from a report email */
.report-ask-panel { border-top: 4px solid var(--gold); }
.report-ask-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; list-style: none; font-size: 20px; font-weight: 700; }
.report-ask-heading::-webkit-details-marker { display: none; }
.report-ask-heading::after { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); flex-shrink: 0; transition: transform .15s; }
.report-ask-panel[open] > .report-ask-heading::after { transform: rotate(45deg); }
.report-ask-heading:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
.report-ask-titles { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.report-ask-sub { font-size: 13px; font-weight: 400; color: var(--ink-soft); }
.report-ask-content { margin-top: 16px; }
/* Neoji's mark: beside the title and each of its answers. */
.neoji-mark { display: inline-grid; place-items: center; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--ink); font: 700 16px/1 var(--font-body); }
.neoji-mark::before { content: 'N'; }
.chat-answer .neoji-mark { width: 28px; height: 28px; font-size: 14px; margin-top: 2px; }

/* The conversation, top to bottom: your questions on the right, Neoji's answers on the left. */
.report-chat-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.report-chat-bar .report-tabs-label { margin: 0; }
.report-answer { display: flex; flex-direction: column; gap: 16px; margin-bottom: 18px; font-size: 16px; }
.report-thread { display: flex; flex-direction: column; gap: 16px; max-height: min(60vh, 640px); overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
.chat-turn { display: flex; flex-direction: column; gap: 10px; }
.report-question.chat-question { align-self: flex-end; max-width: min(80%, 640px); margin: 0; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: var(--ink); color: white; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-answer { display: flex; align-items: flex-start; gap: 10px; max-width: min(92%, 860px); }
.chat-answer-body { flex: 1; min-width: 0; padding: 12px 16px; border: 1px solid var(--rule); border-radius: 4px 16px 16px 16px; background: #F5F7FB; }
.report-answer-heading { margin-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.chat-answer-text, #report-answer-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; color: var(--ink-desc); }
.report-turn-answer { margin: 0; font-size: 15px; }
.chat-answer-text ul, .chat-answer-text ol { margin: 6px 0; padding-left: 22px; white-space: normal; }
.chat-answer-text li + li { margin-top: 2px; }
.chat-figure { font-weight: 700; color: var(--ink-title); font-variant-numeric: tabular-nums; }
.report-answer-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 14px; }
.report-answer-links a { overflow-wrap: anywhere; }
.report-answer-bookmark { flex-basis: 100%; margin: 4px 0 0; font-size: 13px; color: var(--muted, #667); }
.report-answer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 10px; font-size: 14px; }
.report-answer-actions:not(:has(> :not([hidden]):not(:empty))) { display: none; }
.report-answer-actions .btn { height: 36px; font-size: 14px; }
.report-answer.report-answer-working #report-answer-text { color: var(--ink-soft); }
.report-answer.report-answer-error > .chat-turn .chat-answer-body { background: #FDF3F2; border-color: #F0C9C5; }
.report-answer.report-answer-error #report-answer-text { color: var(--down); }
.report-answer.report-answer-stopped #report-answer-text { color: var(--ink-soft); }
.chat-slow { margin: 6px 0 0; font-size: 13px; }
/* Neoji at work: three dots. */
.chat-thinking { display: flex; gap: 5px; margin-top: 8px; }
.chat-thinking span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); opacity: .25; animation: neoji-dot 1.2s infinite ease-in-out; }
.chat-thinking span:nth-child(2) { animation-delay: .15s; }
.chat-thinking span:nth-child(3) { animation-delay: .3s; }
@keyframes neoji-dot { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.report-followups { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-left: 38px; }
.report-followups .note, .report-examples .note { font-size: 13px; }
.report-followups button, .report-examples button { padding: 7px 12px; border: 1px solid var(--rule); border-radius: 18px; color: var(--ink); background: white; font: inherit; font-size: 13px; cursor: pointer; }
.report-followups button:hover, .report-examples button:hover { background: var(--highlight-soft); border-color: var(--gold); }
.report-followups button:disabled { opacity: .5; cursor: default; }

/* The box to ask in, under the conversation. */
.report-ask { display: flex; gap: 12px; align-items: flex-end; }
.report-ask label { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.report-ask textarea { width: 100%; min-height: 64px; padding: 12px 14px; border: 1.5px solid var(--rule); border-radius: 12px; color: var(--ink); font: 400 16px/1.5 var(--font-body); resize: vertical; transition: border-color .15s, box-shadow .15s; }
.report-ask textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--highlight-soft); }
.report-ask-buttons { display: flex; gap: 8px; }
.report-ask .btn { min-width: 130px; height: 48px; border-radius: 12px; }
.report-ask[aria-busy="true"] .btn[type="submit"] { cursor: wait; }
.report-ask[aria-busy="true"] .btn[type="submit"]::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -1px; animation: revel-spin .8s linear infinite; }
#report-ask-stop { min-width: 0; }
.report-ask-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 6px; }
.report-ask-footer .note { font-size: 12px; }
.report-ask-count { font-variant-numeric: tabular-nums; }
.report-examples { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.report-examples .report-example-here { border-color: var(--gold); background: var(--highlight-soft); font-weight: 700; }
.report-examples .report-example-here::before { content: '✦' / ''; margin-right: 6px; color: #B88A00; }
@media (max-width: 760px) {
  .report-ask { flex-direction: column; align-items: stretch; }
  .report-ask-buttons > .btn { flex: 1; }
  .report-ask-heading { font-size: 18px; }
  .report-question.chat-question { max-width: 88%; }
  .chat-answer { max-width: 100%; }
  .chat-answer > .neoji-mark { display: none; }
  .report-followups { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .report-ask[aria-busy="true"] .btn::before, .chat-thinking span { animation: none; } .chat-thinking span { opacity: .6; } }
.report-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.report-tabs button { height: 40px; padding: 0 18px; border: var(--line); border-radius: 20px; background: var(--white); color: var(--ink); font: 700 15px var(--font-body); cursor: pointer; }
.report-tabs button:hover { background: var(--highlight-soft); }
.report-tabs button[aria-pressed="true"] { background: var(--ink); color: white; }
.report-tabs-label { align-self: center; margin: 0 2px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.report-tabs-label:first-child { margin-left: 0; }
.report-tabs button:focus-visible { outline-offset: 2px; }
/* On a phone the tabs are one strip that scrolls sideways, rather than five rows of buttons. */
@media (max-width: 760px) {
  .report-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scroll-padding: 0 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .report-tabs::-webkit-scrollbar { display: none; }
  .report-tabs button { flex: 0 0 auto; height: 38px; padding: 0 14px; font-size: 14px; white-space: nowrap; }
  .report-tabs-label { flex: 0 0 auto; }
}
/* Download for Excel: says it's being made, then that it's downloaded, or why not. */
.report-excel-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.report-excel-status { max-width: 280px; text-align: right; font-size: 13px; }
.report-excel-status:empty { display: none; }
.report-excel-status.report-excel-error { color: var(--down); font-weight: 700; }
#report-excel.busy { cursor: wait; }
#report-excel.busy::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -1px; animation: revel-spin 0.8s linear infinite; }
@media (max-width: 760px) { .report-excel-wrap { align-items: flex-start; } .report-excel-status { text-align: left; } }
.report-dash .period-controls > label { min-width: 160px; }
.report-dash .period-controls select { min-height: 44px; border: var(--line); border-radius: 6px; padding: 8px 10px; background: white; color: var(--ink); font: inherit; }
/* The stores and Ordered at's apps come with the first report: their widths set, so the filters don't move to another row when they do. */
@media (min-width: 761px) {
  .report-dash .period-controls > .report-kind { width: 300px; }
  .report-dash .period-controls > .report-store-field { width: 220px; }
  .report-dash .report-kind select, .report-dash .report-store-field select { width: 100%; }
}
/* The quarter picker: a year, then Q1 to Q4 (those not begun yet can't be picked). */
.report-quarters { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.report-quarters-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.report-quarters-row button { min-height: 44px; min-width: 48px; padding: 0 12px; border: var(--line); border-radius: 6px; background: white; color: var(--ink); font: 700 15px var(--font-body); cursor: pointer; }
.report-quarters-row button:hover:not(:disabled):not([aria-pressed="true"]) { background: var(--highlight-soft); }
.report-quarters-row button[aria-pressed="true"] { background: var(--ink); color: white; }
.report-quarters-row button:disabled { opacity: .4; cursor: not-allowed; }
.report-body { display: flex; flex-direction: column; gap: 24px; }
.report-dash #report-status:empty { display: none; }
.report-body[aria-busy="true"] { opacity: .55; transition: opacity .2s .15s; pointer-events: none; }
#report-status.report-loading { display: flex; align-items: center; gap: 8px; }
/* The report couldn't be loaded: said in red, with Try again beside it. */
#report-status.report-error { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--down); font-weight: 700; }
#report-status .report-retry { height: 38px; font-size: 14px; font-weight: 400; }
.report-overview[aria-busy="true"], .report-read[aria-busy="true"] { opacity: .55; transition: opacity .2s .15s; pointer-events: none; }
#report-status.report-loading::before { content: ''; flex: 0 0 auto; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: revel-spin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { #report-status.report-loading::before { animation: none; } }
.report-intro p { margin: 0; font-size: 17px; }
.report-intro p + p { margin-top: 4px; }
/* As wide as the screen, headings wrapping, so a wide table fits without scrolling sideways where there's room. */
.page.report-dash { max-width: none; padding-bottom: 96px; }
/* The title centred, the buttons at the right on one line (on a phone they wrap): when a long title leaves no room
   for both, it moves left of centre rather than under the buttons. Up to 1300px wide the buttons go under it. */
.report-dash > .page-head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(max-content, 1fr); align-items: center; column-gap: 24px; }
.report-dash > .page-head > .grow { grid-column: 2; text-align: center; gap: 8px; }
.report-dash > .page-head .report-excel-wrap { grid-column: 3; justify-self: end; }
@media (min-width: 761px) { .report-head-buttons .btn { white-space: nowrap; } }
/* The days line's height kept before it's filled, so nothing under it moves when it is. */
.report-dash #report-range:empty::before { content: '\00a0'; }
.report-dash .report-table th { white-space: normal; vertical-align: middle; padding: 12px 10px; background: #F5F7FB; }
.report-dash .report-table td { padding: 9px 10px; }
.report-dash .report-table th.num, .report-dash .report-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
/* A long table scrolls inside its box, its headings staying in view; the first column stays put when it scrolls sideways. */
.report-table .table-tall { max-height: min(75vh, 760px); overflow: auto; overscroll-behavior: contain; }
.report-dash .report-table thead { position: sticky; top: 0; z-index: 2; }
.report-dash .report-table thead th { box-shadow: inset 0 -1.5px 0 var(--ink); border-bottom: 0; }
.report-dash .report-table th:first-child, .report-dash .report-table td:first-child { position: sticky; left: 0; z-index: 1; background: white; box-shadow: inset -1px 0 0 var(--rule); }
.report-dash .report-table thead th:first-child { z-index: 3; background: #F5F7FB; box-shadow: inset -1px 0 0 var(--rule), inset 0 -1.5px 0 var(--ink); }
.report-dash .report-table tbody tr:hover td { background: #F8FAFD; }
.report-dash .report-table td.report-none { position: static; padding: 18px 10px; text-align: center; box-shadow: none; }
.report-table td.num.up::before, .tile-change.up::before { content: '▲' / ''; margin-right: 3px; font-size: .7em; vertical-align: 1px; }
.report-table td.num.down::before, .tile-change.down::before { content: '▼' / ''; margin-right: 3px; font-size: .7em; vertical-align: 1px; }
.report-count { font-variant-numeric: tabular-nums; }
.report-dash .report-table td.num, .report-dash .report-table td:first-child { white-space: nowrap; }
.report-table .section-head { flex-wrap: wrap; align-items: center; }
.report-table .section-head .report-count { margin-left: auto; }
.report-table .section-head .report-find { margin-left: 0; }
.report-find { min-height: 38px; border: var(--line); border-radius: 6px; padding: 6px 10px; font: inherit; color: var(--ink); width: 220px; max-width: 100%; }
.report-csv { height: 38px; font-size: 14px; }
.report-table th .text-button { display: block; width: 100%; text-align: inherit; font: inherit; color: inherit; line-height: 1.4; text-underline-offset: 3px; }
.report-table th[aria-sort="ascending"] .text-button::after { content: ' ▲'; }
.report-table th[aria-sort="descending"] .text-button::after { content: ' ▼'; }
.report-more summary { cursor: pointer; font-weight: 700; padding: 12px 16px; border: 1px dashed var(--rule); border-radius: var(--radius); }
.report-more summary:hover { background: var(--highlight-soft); border-color: var(--gold); }
.report-notes p { margin: 4px 0; }
@media (max-width: 1300px) {
  .report-dash > .page-head { grid-template-columns: minmax(0, 1fr); }
  .report-dash > .page-head > .grow, .report-dash > .page-head .report-excel-wrap { grid-column: 1; justify-self: center; }
  .report-dash > .page-head .report-excel-wrap { align-items: center; }
  .report-dash > .page-head .report-excel-status { text-align: center; }
}
@media (max-width: 760px) {
  .page.report-dash { padding: 20px 16px 96px; gap: 22px; }
  .report-dash .period-controls > label { flex: 1; min-width: 140px; }
  .report-dash .period-controls > .report-mods, .report-dash .period-controls > .report-find-all, .report-dash .period-controls > .report-item { flex-basis: 100%; }
  .report-table .section-head .report-count { margin-left: 0; }
  .report-table .section-head .report-find { flex: 1 1 160px; width: auto; }
}
/* Back up to the days and filters, from far down a long report. */
.report-to-filters { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 20; box-shadow: 0 4px 14px rgba(14, 42, 107, .25); border-radius: 22px; }
@media print { .report-to-filters, .report-ask-panel, .report-tabs, .report-views, .report-schedules, #report-controls, .report-csv, .report-find, .report-head-buttons { display: none !important; } .report-table .table-tall { max-height: none; overflow: visible; } }

/* House accounts (house.html): pick one account, then its overview */
.house-layout { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 20px; align-items: start; }
.house-picks { list-style: none; margin: 0; padding: 0; max-height: 70vh; overflow-y: auto; }
.house-picks li + li { border-top: 1px solid var(--rule); }
.house-pick { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 10px 14px; border: 0; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.house-pick:hover { background: var(--highlight-soft); }
.house-pick[aria-pressed="true"] { background: var(--ink); color: white; }
.house-pick[aria-pressed="true"] .note { color: #D2DDF4; }
.house-pick-figures { font-size: 13px; font-weight: 700; }
.house-account { display: flex; flex-direction: column; gap: 16px; }
.house-account h3 { margin: 0 0 6px; }
.house-months { display: flex; flex-direction: column; gap: 6px; }
.house-month { display: grid; grid-template-columns: 80px minmax(0, 1fr) 170px; gap: 10px; align-items: center; font-size: 14px; }
.house-month-bar { height: 10px; border-radius: 5px; background: var(--highlight-soft); overflow: hidden; }
.house-month-bar span { display: block; height: 100%; background: var(--ink); }
.report-back { margin-left: auto; color: white; }
@media (max-width: 760px) { .house-layout { grid-template-columns: 1fr; } .house-month { grid-template-columns: 64px minmax(0, 1fr) 120px; } .house-picks { max-height: 40vh; } }
.house-layout > * { min-width: 0; }
.house-page #house-status:empty { display: none; }
.house-account .export-bar a.btn { text-decoration: none; display: inline-flex; align-items: center; }

/* An order from Revel (revel-order.html): Revel's own page in a frame, under a bar. */
.page.order-page { max-width: none; padding: 16px 24px 32px; gap: 14px; }
.order-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.order-heading { display: flex; flex-direction: column; gap: 2px; margin-right: auto; min-width: 0; }
.order-heading h1 { font-size: 24px; }
.order-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.order-actions .btn, .order-back { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 14px; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.order-actions .btn svg, .order-back svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.order-receipt-group { display: inline-flex; }
.order-receipt-group .btn:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.order-receipt-group .btn:last-child { border-radius: 0 var(--radius) var(--radius) 0; border-left: 0; }
.order-back { padding: 0 12px 0 8px; }
.order-find { display: flex; gap: 8px; }
.order-find input { height: 36px; width: 190px; padding: 0 10px; border: 1.5px solid var(--rule); border-radius: 8px; font: 14px var(--font-body); color: var(--ink); }
.order-find .btn { height: 36px; padding: 0 14px; font-size: 14px; }
/* Revel's page is about 1000px wide: on a narrower screen it keeps that width and pans sideways, rather than being cut off. */
.order-frame-wrap { overflow: hidden; border: 1.5px solid var(--rule); border-radius: 6px; background: white; }
.order-frame-wrap:has(> [hidden]) { display: none; }
.order-frame { display: block; width: 100%; min-height: 200px; border: 0; background: white; transform-origin: top left; }
/* A finger on the order scrolls the page: Revel's links don't work here anyway. */
@media (pointer: coarse) { .order-frame { pointer-events: none; } }
@media (max-width: 760px) {
  .page.order-page { padding: 12px; }
  .order-heading { flex-basis: 0; flex-grow: 1; }
  .order-actions { flex-basis: 100%; flex-wrap: nowrap; }
  .order-receipt-group { flex: 1; }
  .order-receipt-group .btn { flex: 1; height: 46px; font-size: 15px; }
  /* Reload as its icon beside the receipt, not a row of its own. */
  .order-actions > .btn { flex: none; width: 46px; height: 46px; padding: 0; }
  .order-actions > .btn span { display: none; }
  .order-find { flex-grow: 1; } .order-find input { flex-grow: 1; width: auto; }
}

/* The reports' modifier filters: a list typed, with a picker to add a group or modifier. */
.report-mods-box { display: flex; gap: 4px; }
.report-mods-box input { flex: 1 1 180px; min-width: 0; }
.report-mods-box .report-pick { flex: 0 0 auto; width: 84px; }

/* The reports page: what a report is for, the filters in force, names that narrow the report, find in every table. */
.report-about { margin: -14px 0 0; }
.report-about:empty { display: none; }
.report-head-buttons { display: flex; gap: 8px; }
.report-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: -14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border: 1px solid var(--rule); border-radius: 16px; background: white; font-size: 13px; }
.chip-clear { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #F4F6FA; color: var(--ink); font: 700 15px/1 var(--font-body); cursor: pointer; }
.chip-clear:hover { background: var(--highlight-soft); }
.cell-link { padding: 0; border: 0; background: none; color: var(--ink-name); font: inherit; text-align: left; cursor: pointer; }
.cell-link:hover { text-decoration: underline; color: var(--muted); }
.report-find-all input { min-width: 180px; }

/* Several stores: a card under the store box, a store a line. */
.report-store-field { position: relative; display: flex; flex-direction: column; min-width: 160px; }
.report-store-field > label { flex: 1; }
.report-stores-pick { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; width: 280px; max-width: calc(100vw - 32px); padding: 8px; border: 1px solid var(--rule); border-radius: 10px; background: white; box-shadow: 0 10px 28px rgba(14, 42, 107, .18); }
.period-controls .report-stores-find { width: 100%; height: 36px; min-height: 0; margin-bottom: 6px; padding: 6px 10px; border: 1px solid var(--rule); border-radius: 6px; color: var(--ink); font: 14px var(--font-body); }
.report-stores-list { max-height: 264px; overflow-y: auto; overscroll-behavior: contain; }
.report-dash .report-stores-list label.report-store-row { display: flex; flex-direction: row; align-items: center; gap: 10px; min-width: 0; min-height: 0; padding: 7px 8px; border-radius: 6px; font-size: 14px; font-weight: 400; cursor: pointer; }
.report-store-row:hover { background: #F5F7FB; }
.period-controls .report-store-row input { flex: 0 0 auto; width: 16px; height: 16px; min-height: 0; margin: 0; padding: 0; border: 0; accent-color: var(--ink); }
.report-store-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-stores-buttons { display: flex; align-items: center; gap: 14px; margin-top: 6px; padding: 8px 4px 0; border-top: 1px solid var(--rule); font-size: 13px; }
.report-stores-buttons .btn { height: 34px; min-width: 0; margin-left: auto; padding: 0 16px; font-size: 14px; }
@media (max-width: 760px) { .report-store-field { flex: 1; min-width: 140px; } .report-stores-pick { width: min(320px, calc(100vw - 32px)); } }

/* A table's filters: a line to add one (a column, how, an amount), and each one added as a chip. */
.report-filter-toggle { height: 38px; font-size: 14px; }
.report-filter-toggle[aria-expanded="true"] { background: var(--ink); color: white; }
.report-filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px; background: #F5F7FB; font-size: 14px; }
.report-filter-say { font-weight: 700; }
.report-filter-bar select, .report-filter-bar input { height: 36px; padding: 0 10px; border: 1px solid var(--rule); border-radius: 6px; background: white; color: var(--ink); font: 14px var(--font-body); }
.report-filter-bar input { width: 120px; }
.report-filter-bar select:focus, .report-filter-bar input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--highlight-soft); }
.report-filter-bar .btn { height: 36px; padding: 0 14px; font-size: 14px; }
.report-filter-error:empty { display: none; }
.report-filter-error { color: var(--down); }
.report-filter-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
@media (max-width: 760px) { .report-filter-bar select, .report-filter-bar input { flex: 1 1 120px; } .report-filter-say { flex-basis: 100%; } .report-filter-bar .btn { flex-basis: 100%; } }

/* The reports page's overview: today so far, the period's figures against the comparison (a tile opens its report), the top items, up to which day is read. */
.report-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: stretch; }
.tile-top { grid-column: span 2; }
@media (max-width: 560px) { .report-overview { grid-template-columns: 1fr 1fr; } .report-overview .tile-today { grid-column: 1 / -1; } }
.report-overview:empty { display: none; }
.tile { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 14px; border: var(--line); border-radius: 10px; background: white; color: var(--ink); font: inherit; text-align: left; }
button.tile { cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
button.tile:hover { background: var(--highlight-soft); border-color: var(--gold); transform: translateY(-2px); }
button.tile:active { transform: none; }
@media (prefers-reduced-motion: reduce) { button.tile, button.tile:hover { transition: none; transform: none; } }
.tile-label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
/* The figure sized to its tile, so a long one ($55,496.50) fits on one line. */
.report-overview .tile { container-type: inline-size; }
.tile-value { font-size: 22px; font-size: clamp(16px, min(17cqi, calc(165cqi / var(--chars, 10))), 28px); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile-foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 13px; color: var(--ink-soft); }
.tile-change { font-weight: 700; color: var(--ink-soft); }
.tile-change.up, td.num.up { color: var(--up, #1E7B3A); }
.tile-change.down, td.num.down { color: var(--down); }
.tile-vs, .tile-was { font-size: 12px; }
.tile-top ol { margin: 2px 0 0; padding-left: 20px; font-size: 14px; }
.tile-top li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.tile-top li::marker { color: var(--ink-soft); }
.tile-top-figures { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.tile-today { background: #F5F7FB; }
.report-read { margin: -14px 0 0; }
.report-read:empty { display: none; }
/* Days not in yet, above the totals they're missing from. */
.report-gaps { margin: 0; padding: 10px 14px; border: 1px solid var(--gold); border-radius: var(--radius); background: var(--highlight-soft); color: var(--ink-desc); font-size: 15px; }
/* The item sales tile with its trend: the figures are the button (they open the report), the trend under them isn't. */
.tile-with-spark { padding: 0; transition: background .15s, border-color .15s, transform .15s; }
.tile-open { display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 0; border: 0; border-radius: 10px 10px 0 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.tile-with-spark .tile-spark { padding: 10px 14px 14px; }
.tile-with-spark:has(.tile-open:hover) { background: var(--highlight-soft); border-color: var(--gold); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .tile-with-spark, .tile-with-spark:has(.tile-open:hover) { transition: none; transform: none; } }
/* The pivot's controls and the stores-across toggle. */
.report-check { justify-content: flex-end; }
.report-check-box { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 400; font-size: 14px; }
.report-check-box input { width: 18px; height: 18px; min-height: 0; }
/* Saved views: a chip each (shared ones outlined), and a small form to save the view shown. */
/* Shown from the start, a chip's height (36px) kept, so nothing under it moves when the views come. */
.report-views { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 36px; margin-top: -14px; }
.report-views-list { display: contents; }
.chip-view { padding-left: 0; }
.chip-open { padding: 4px 4px 4px 12px; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.chip-open:hover { text-decoration: underline; }
.chip-shared { border-style: dashed; }
.report-view-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.report-view-form input[type="text"] { min-height: 38px; width: 220px; border: var(--line); border-radius: 6px; padding: 6px 10px; font: inherit; }
.report-view-form .btn { height: 38px; font-size: 14px; }
.report-view-shared { display: flex; align-items: center; gap: 6px; font-size: 14px; }
#report-views-status:empty { display: none; }
/* Reports emailed on a schedule: a small form, then a card each (stacked on a phone, nothing wider than the screen). */
.report-schedules { display: flex; flex-direction: column; gap: 12px; }
.report-schedules-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.report-schedules-head h2 { font-size: 20px; margin: 0; }
.report-schedules h3 { font-size: 16px; margin: 6px 0 0; }
.report-schedules .note { margin: 0; }
#report-schedules-status:empty { display: none; }
.report-schedule-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 14px; align-items: end; }
.report-schedule-form label { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-weight: 600; font-size: 14px; }
.report-schedule-form :is(input, select) { width: 100%; min-width: 0; min-height: 44px; padding: 0 10px; border: 1.5px solid var(--rule); border-radius: 8px; background: var(--white); font: 15px var(--font-body); color: var(--ink); }
.report-schedule-wide { grid-column: 1 / -1; }
.report-schedule-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.report-schedule-buttons .btn { height: 44px; }
.report-schedules-list { display: flex; flex-direction: column; gap: 10px; }
.report-schedule { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; padding: 12px 14px; border: 1.5px solid var(--rule); border-radius: 8px; }
.report-schedule-paused { border-style: dashed; }
.report-schedule-main { display: flex; flex-direction: column; gap: 3px; flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
.report-schedule-name { font-size: 16px; color: var(--ink-name); }
.report-schedule-badge { align-self: flex-start; padding: 2px 10px; border-radius: 20px; background: #EEF1F7; font-weight: 700; font-size: 13px; color: var(--ink); }
.report-schedule-problem { background: #FDE8E6; color: var(--down); }
.report-schedule-error { color: var(--down); font-size: 14px; }
.report-schedule-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.report-schedule-actions .btn { height: 38px; font-size: 14px; }
@media (max-width: 600px) {
  .report-schedule-actions { width: 100%; }
  .report-schedule-actions .btn { flex: 1 1 auto; height: 44px; white-space: nowrap; }
}

/* Reports: the Order lookup tab (the report's filters, overview and views step aside). */
:is(.report-lookup-open, .report-tips-open) :is(#report-overview, #report-gaps, #report-read, #report-views, #report-schedules, #report-about, #report-controls, #report-chips, #report-card, #report-status, #report-body, #report-to-filters, .report-head-buttons) { display: none !important; }
.report-lookup { display: flex; flex-direction: column; gap: 12px; }
.report-card { margin-bottom: 14px; }
.report-card .report-lookup-form label { max-width: 420px; }
.report-tips-ready { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.report-tips-problem { padding: 12px 14px; border-radius: 8px; background: #FFF4D6; color: var(--ink); }
.report-tips .bad { color: #A4262C; }
.report-lookup-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.report-lookup-form label { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 220px; font-weight: 600; font-size: 14px; }
.report-lookup-form input { height: 44px; padding: 0 12px; border: 1.5px solid var(--rule); border-radius: 8px; font: 15px var(--font-body); color: var(--ink); }
.report-lookup-order { display: flex; flex-direction: column; gap: 14px; }
.report-lookup-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.report-lookup-head h2 { font-size: 22px; }
.report-lookup-status { padding: 5px 12px; border-radius: 20px; font-weight: 700; font-size: 14px; white-space: nowrap; background: #EEF1F7; color: var(--ink); }
.report-lookup-status.open { background: var(--gold); color: var(--ink); }
.report-lookup-status.closed { background: #E3F4EA; color: #17663A; }
.report-lookup-said { margin: 0; font-weight: 600; }
.report-lookup-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.report-lookup-actions .btn { display: inline-flex; align-items: center; text-decoration: none; font-weight: 600; }
.report-lookup-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 18px; margin: 0; }
.report-lookup-facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #5A6478); }
.report-lookup-facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.report-lookup-table h3 { font-size: 16px; margin-bottom: 6px; }
.report-lookup-table .table-wrap { overflow-x: auto; }
.report-lookup-table td.num, .report-lookup-table th.num { text-align: right; white-space: nowrap; }
@media (max-width: 760px) {
  .report-lookup-actions .btn { flex: 1; justify-content: center; height: 46px; white-space: nowrap; }
  .report-lookup-actions .btn.dark { flex-basis: 100%; }
  .report-lookup-facts { grid-template-columns: 1fr 1fr; }
  .report-lookup-head h2 { font-size: 19px; }
}


/* The reports' charts (report-charts.js): one look on every tab. Thin marks, hairline grid,
   the comparison in gray; those grays are below 3:1, so every value is also in the tip and in
   the table under the chart. A channel keeps its color on every tab: In store, Uber Eats,
   DoorDash, Grubhub, Other apps, our own online ordering (validated in that order); anything
   else is the gray. The blue ramp is for amounts (the busiest times, the pivot's grid). */
:root { --up: #1E7B3A; --chart-now: var(--ink); --chart-was: #9AA5BC; --chart-was-fill: #C5CCDA; --chart-grid: #E6E9F0; --chart-axis: var(--off-line); --chart-empty: #F5F7FB;
  --seq-100: #cde2fb; --seq-200: #9ec5f4; --seq-300: #6da7ec; --seq-400: #3987e5; --seq-500: #256abf; --seq-600: #184f95; --seq-700: #0d366b;
  --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --series-4: #eda100; --series-5: #e87ba4; --series-7: #6250d6; --series-other: #6B6F7A; }
.report-chart { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.report-chart figcaption { flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.chart-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 13px; font-weight: 400; color: var(--ink-desc); }
.chart-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.chart-key-rect, .chart-key-line, .chart-key-tick, .chart-key-avg { flex: 0 0 auto; display: inline-block; }
.chart-key-rect { width: 10px; height: 10px; border-radius: 2px; background: var(--key); }
.chart-key-line { width: 14px; height: 0; border-top: 2px solid var(--key); }
.chart-key-tick { width: 2px; height: 12px; background: var(--key); }
.chart-key-avg { width: 0; height: 12px; border-left: 1px solid var(--key); }
.chart-box { position: relative; min-width: 0; container-type: inline-size; border-radius: 4px; }
.chart-box:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; }
.chart-change { font-weight: 700; }
.chart-change.up { color: var(--up); }
.chart-change.down { color: var(--down); }
/* Ranked bars: the name, the bar (16px, rounded at its end), the figure; the comparison a gray tick. */
.chart-bars { display: grid; grid-template-columns: minmax(80px, 28%) minmax(0, 1fr) max-content; column-gap: 12px; font-size: 14px; }
.cb-row { display: contents; cursor: default; }
.cb-name { align-self: center; padding: 3px 0; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.cb-note { font-size: 12px; font-weight: 400; color: var(--ink-soft); }
.cb-track { position: relative; display: flex; align-items: center; min-height: 28px; }
.cb-bar { display: flex; gap: 2px; height: 16px; min-width: 2px; border-radius: 0 4px 4px 0; overflow: hidden; }
.cb-bar i { flex-basis: 0; min-width: 0; }
.cb-was { position: absolute; top: 4px; bottom: 4px; width: 2px; margin-left: -1px; background: var(--chart-was); }
.cb-avg { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--ink-soft); }
.cb-value { align-self: center; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink-desc); }
.cb-other .cb-name { font-weight: 400; color: var(--ink-soft); }
.cb-row.is-on .cb-bar { filter: brightness(1.25); }
.cb-row.is-on .cb-name { text-decoration: underline; }
@container (max-width: 520px) {
  .chart-bars { grid-template-columns: minmax(0, 1fr) max-content; }
  .cb-name { grid-column: 1 / -1; padding: 6px 0 0; font-size: 13px; }
  .cb-track { min-height: 22px; }
}
/* Columns, a line: drawn in SVG at the box's width. */
.chart-svg { display: block; max-width: 100%; height: auto; overflow: visible; }
.chart-grid { stroke: var(--chart-grid); stroke-width: 1; }
.chart-axis { stroke: var(--chart-axis); stroke-width: 1; }
.chart-tick { font-size: 11px; fill: var(--ink-soft); font-variant-numeric: tabular-nums; }
.chart-label { font-size: 12px; font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: white; stroke-width: 3px; }
.chart-col { fill: var(--chart-now); }
.chart-was-col { fill: var(--chart-was-fill); }
.chart-hit { fill: transparent; }
.chart-hit.is-on { fill: rgba(14, 42, 107, .06); }
.chart-now, .chart-was { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.chart-now { stroke: var(--chart-now); stroke-width: 2; }
.chart-was { stroke: var(--chart-was); stroke-width: 1.5; }
.chart-area { fill: var(--chart-now); opacity: .1; }
.chart-end, .chart-at, .chart-dot { fill: var(--chart-now); stroke: white; stroke-width: 2; }
.chart-hair { stroke: var(--chart-axis); stroke-width: 1; }
/* Stacked bars: a column a period (in store at the bottom), or a row each on a phone or past 6 periods. */
.chart-stack { font-size: 13px; }
.cs-bar { display: flex; gap: 2px; overflow: hidden; }
.cs-bar i { flex-basis: 0; min-width: 0; min-height: 0; }
.cs-item.is-on .cs-bar { filter: brightness(1.15); }
.cs-cap { font-weight: 700; color: var(--ink); white-space: nowrap; }
.cs-label { color: var(--ink-desc); white-space: nowrap; }
.cs-cols { display: flex; gap: 16px; height: 240px; }
.cs-cols .cs-item { flex: 1; min-width: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "cap" "track" "label"; text-align: center; }
.cs-cols .cs-cap { grid-area: cap; padding-bottom: 4px; font-size: 12px; }
.cs-cols .cs-label { grid-area: label; padding-top: 6px; }
.cs-cols .cs-track { grid-area: track; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--chart-axis); }
.cs-cols .cs-bar { width: 24px; flex-direction: column-reverse; border-radius: 4px 4px 0 0; }
.cs-rows { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; gap: 4px 10px; align-items: center; }
.cs-rows .cs-item { display: contents; }
.cs-rows .cs-track { display: flex; align-items: center; min-height: 24px; }
.cs-rows .cs-bar { height: 16px; border-radius: 0 4px 4px 0; }
.cs-rows .cs-cap { font-size: 12px; }
/* Two bars a row (Channels' share of orders and of sales), each with its figure at its end. */
.chart-pairs { display: grid; grid-template-columns: minmax(90px, max-content) minmax(0, 1fr); column-gap: 16px; row-gap: 12px; font-size: 14px; }
.cp-row { display: contents; cursor: default; }
.cp-name { align-self: center; display: flex; flex-direction: column; gap: 2px; font-weight: 700; color: var(--ink); }
.cp-note { font-size: 12px; font-weight: 400; color: var(--ink-soft); }
.cp-track { display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.cp-line { display: flex; align-items: center; gap: 6px; min-height: 16px; }
.cp-bar { flex: 0 0 auto; height: 12px; min-width: 2px; border-radius: 0 3px 3px 0; }
.cp-value { font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink-desc); }
.cp-row.is-on .cp-name { text-decoration: underline; }
/* Darker when pointed at, never lighter (the sales bar stays above 3:1 on white). */
.cp-row.is-on .cp-bar { filter: brightness(.82); }
@container (max-width: 520px) {
  .chart-pairs { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
  .cp-name { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding-top: 8px; font-size: 13px; }
}
/* A grid of cells, darker for more; only the busiest is labelled. */
.chart-heat { display: grid; gap: 2px; font-size: 11px; }
.ch-col { text-align: center; white-space: nowrap; color: var(--ink-soft); }
.ch-row { align-self: center; padding-right: 6px; white-space: nowrap; color: var(--ink-soft); }
.ch-cell { display: grid; place-items: center; min-height: 24px; border-radius: 3px; font-weight: 700; color: var(--ink); }
.ch-cell.ch-dark { color: white; }
.ch-cell.is-on { outline: 2px solid var(--ink); outline-offset: 1px; }
.ch-scale { display: flex; align-items: center; gap: 2px; margin-top: 10px; font-size: 12px; color: var(--ink-soft); }
.ch-scale i { width: 20px; height: 10px; }
.ch-scale span:first-child { margin-right: 6px; }
.ch-scale span:last-child { margin-left: 6px; }
/* The one tip: the value strong, what it is after it, a short key for a series. */
.chart-tip { position: absolute; z-index: 60; display: flex; flex-direction: column; gap: 2px; max-width: 280px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 8px; background: white; box-shadow: 0 6px 18px rgba(14, 42, 107, .16); font-size: 12px; color: var(--ink-soft); pointer-events: none; }
.chart-tip-title { font-size: 13px; font-weight: 700; color: var(--ink); }
.chart-tip-row { display: flex; align-items: center; gap: 6px; }
.chart-tip-row b { font-size: 13px; color: var(--ink-title); font-variant-numeric: tabular-nums; }
/* A thin bar in a table cell (Top builds' shares). */
.segbar { display: inline-flex; gap: 2px; width: 120px; height: 8px; border-radius: 4px; overflow: hidden; background: var(--chart-grid); vertical-align: middle; }
.segbar i { flex-basis: 0; min-width: 0; }
.segbar:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.report-dash .report-table .section-head .chart-legend { font-size: 12px; }
/* The item sales tile's trend: these days a navy line ending in a dot, the comparison a thinner gray one. */
.tile-spark { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 10px; }
.spark-plot { display: block; height: 40px; }
.tile-spark .chart-legend { gap: 2px 12px; font-size: 11px; color: var(--ink-soft); }

/* The reports page, tidied: the overview off the tabs it isn't for, a row that scrolls on a phone. */
.report-overview-off { display: none !important; }
@media (max-width: 560px) {
  .report-overview { display: flex; flex-direction: row; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; gap: 10px; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
  .report-overview::-webkit-scrollbar { display: none; }
  .report-overview { align-items: flex-start; }
  .report-overview > .tile { flex: 0 0 min(72%, 260px); scroll-snap-align: start; }
  .report-overview .tile-spark { margin-top: 0; }
  .report-overview .tile-top { display: none; }
}
/* The filters: the ones used less behind More filters; on a phone, folded to one line. */
#report-controls:not(.report-more-open) .report-extra { display: none; }
.report-more-toggle { align-self: flex-end; min-height: 44px; font-weight: 700; }
.report-form-summary { display: none; }
.report-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.report-wide[aria-pressed="true"] { background: var(--ink); color: white; }
@media (max-width: 760px) {
  .report-form-summary { display: flex; flex-basis: 100%; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; padding: 0; border: 0; background: none; color: var(--ink); font: 700 15px/1.3 var(--font-body); text-align: left; cursor: pointer; }
  .report-form-change { flex: 0 0 auto; padding: 6px 14px; border: var(--line); border-radius: 18px; font-size: 14px; }
  #report-controls.report-folded { padding-top: 12px; padding-bottom: 12px; }
  #report-controls.report-folded > :not(.report-form-summary) { display: none !important; }
  .report-dash #report-title { font-size: 28px; }
  .report-tools { flex-basis: 100%; }
  .report-tools .report-find { flex: 1 1 140px; min-width: 0; width: auto; }
  .report-tools .btn { flex: 0 0 auto; padding: 0 12px; }
}
/* The tabs: Order lookup at the end of the row. */
.report-tabs .report-tab-lookup { margin-left: auto; }
/* A table with nothing in these days: one line. The notes fold into About these figures. */
.report-empty { margin: 0; padding: 10px 14px; border: 1px dashed var(--rule); border-radius: var(--radius); font-size: 15px; color: var(--ink-desc); }
/* A line under a table (Gift cards: the cards left out and why). */
.report-table-foot { margin: 8px 0 0; font-size: 15px; color: var(--ink-desc); }
.report-notes summary { font-weight: 700; color: var(--ink); cursor: pointer; }
.report-notes[open] summary { margin-bottom: 6px; }
/* Saved views: a view's × shows on hover or focus (always on a touch screen). */
.chip-view .chip-clear { opacity: 0; transition: opacity .15s; }
.chip-view:hover .chip-clear, .chip-view:focus-within .chip-clear { opacity: 1; }
@media (hover: none) { .chip-view .chip-clear { opacity: 1; } }
/* Reports on a schedule: a panel beside the report (the whole screen on a phone). */
.report-schedules:not([hidden]) { position: fixed; top: 0; right: 0; bottom: 0; z-index: 40; width: min(560px, 100vw); overflow-y: auto; overscroll-behavior: contain; border-radius: 0; box-shadow: -8px 0 28px rgba(14, 42, 107, .2); }
#report-schedule-when:empty { display: none; }

/* Reports > Grubhub delivery fees (grubhub-fees.html). */
.fees-page #fees-status:empty { display: none; }
.fees-body { display: flex; flex-direction: column; gap: 22px; }
.fees-body td.num, .fees-body th.num { text-align: right; white-space: nowrap; }
.fees-lost .value { color: #B3261E; }
.fees-notes { font-size: 14px; }
.fees-notes ul { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.fees-page .page-head a.btn { text-decoration: none; display: inline-flex; align-items: center; }
.report-more { margin-left: auto; }
