:root {
  --canvas: #f4f6f8;
  --surface: #ffffff;
  --surface-subtle: #f9fafb;
  --border: #cfd6df;
  --border-soft: #dfe5ec;
  --text: #111827;
  --muted: #4b5563;
  --faint: #6b7280;
  --green: #58bd37;
  --green-ink: #197546;
  --green-bg: #ddf7e7;
  --red: #d52832;
  --red-bg: #ffe0e2;
  --orange: #ff7618;
  --blue: #2f6fae;
  --shadow: 0 1px 3px rgba(20, 30, 45, 0.08);
  --audit-primary: #111827;
  --audit-meta: #64748b;
  --audit-subtle: #94a3b8;
  --audit-label-size: 12px;
  --audit-body-size: 15px;
  --audit-value-size: 17px;
  --audit-title-size: 20px;
  --ui-primary: #465365;
  --ui-secondary: #344255;
  --ui-meta: #56677d;
  --ui-border: #ccd6e2;
  --overview-border: var(--ui-border);
  --ui-divider: #d9e1ea;
  --ui-shadow-soft: 0 1px 2px rgba(20, 30, 45, 0.05);
  --ui-danger-pill-size: 12px;
  --ui-danger-pill-weight: 700;
  --ui-danger-pill-line: 18px;
  --ui-danger-pill-padding-x: 6px;
  --ui-compact-row-height: 42px;
  --ui-row-primary-size: 15px;
  --ui-row-meta-size: 13px;
  --ui-secondary-row-weight: 700;
  --ui-overview-signon-row-height: 34px;
  --ui-overview-audit-row-height: 40px;
  --ui-table-header-height: 46px;
  --ui-hover-bg: #f8fafc;
  --ui-panel-gray: #f7f9fc;
  --ui-section-label-color: var(--ui-meta);
  --ui-section-label-size: 11px;
  --ui-section-label-weight: 850;
  --ui-section-label-spacing: 0.8px;
  --ui-type-primary-size: 13px;
  --ui-type-primary-weight: 800;
  --ui-type-meta-size: 13px;
  --ui-type-meta-weight: 700;
  --ui-type-value-size: 12px;
  --ui-type-value-weight: 650;
  --ui-type-button-size: 13px;
  --ui-type-button-weight: 700;
  --ui-type-critical-size: 13px;
  --ui-type-critical-weight: 900;
  --sample-nav-height: 57px;
  --app-header-height: 46px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus,
button:focus-visible,
a:focus,
a:focus-visible,
input:focus,
input:focus-visible,
select:focus,
select:focus-visible,
textarea:focus,
textarea:focus-visible,
[tabindex]:focus,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: none;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr);
  background: var(--canvas);
}

.workspace {
  min-width: 0;
  max-width: 880px;
  width: calc(100% - 44px);
  margin: 0 auto;
  padding: 28px 0 76px;
}

.topbar {
  height: 22px;
  display: flex;
  align-items: center;
}

.breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #526174;
  font-size: 13px;
  font-weight: 600;
}

.breadcrumbs strong {
  color: #202936;
  font-weight: 600;
}

.home-icon {
  width: 13px;
  height: 13px;
  display: inline-block;
  border: 1.5px solid #a0a8b5;
  border-top: 0;
  border-radius: 2px;
  position: relative;
  transform: translateY(2px);
}

.home-icon::before {
  content: "";
  position: absolute;
  left: 1px;
  top: -4px;
  width: 8px;
  height: 8px;
  border-left: 1.5px solid #a0a8b5;
  border-top: 1.5px solid #a0a8b5;
  transform: rotate(45deg);
}

.game-card,
.audit-card {
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.game-card {
  min-height: 92px;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 14px 16px;
}

.ticket-art {
  width: 66px;
  height: 66px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  border-radius: 5px;
  border: 3px solid #079b87;
  background: linear-gradient(135deg, #fa1b40 0 50%, #0d315f 50%);
  padding: 4px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.ticket-art span {
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ffe66e 0 30%, #f27f20 32% 55%, #124a7f 57%);
}

.queen-card .ticket-art {
  display: block;
  border: 0;
  border-radius: 5px;
  background: #ed1b80;
  object-fit: cover;
  object-position: top center;
  padding: 0;
}

.game-copy h1 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.queen-card h1 {
  font-size: 29px;
  line-height: 1;
  text-transform: uppercase;
}

.queen-card h1 span {
  color: #4b5563;
  font-size: 14px;
  font-weight: 800;
  text-transform: none;
}

.game-copy p {
  margin: 7px 0 0;
  color: #374151;
  font-size: 14px;
  font-weight: 800;
}

.export-button,
.date-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  color: #111827;
  font-size: 13px;
  font-weight: 800;
}

.export-button {
  min-width: 82px;
  min-height: 32px;
  border-color: var(--overview-border);
  border-radius: 8px;
  color: #223047;
  font-size: 13px;
  font-weight: 700;
  box-shadow: none;
  padding: 0 12px;
}

.export-icon {
  width: 12px;
  height: 12px;
  border: 1.5px solid #a8b0bc;
  border-radius: 2px;
  position: relative;
}

.export-icon::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -4px;
  width: 6px;
  height: 6px;
  border-top: 1.5px solid #a8b0bc;
  border-right: 1.5px solid #a8b0bc;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 24px;
}

.timeline-page .timeline-filter-controls {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  grid-column: 1 / -1;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin: 0;
  border-top: 0;
  background: transparent;
  padding: 12px 16px;
}

.timeline-page .timeline-filter-controls::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  border-top: 1px solid var(--overview-divider);
}

.timeline-filter-label {
  color: var(--ui-section-label-color);
  font-size: var(--ui-section-label-size);
  font-weight: var(--ui-section-label-weight);
  letter-spacing: var(--ui-section-label-spacing);
  line-height: 1.2;
  text-transform: uppercase;
}

.segments {
  display: inline-flex;
  gap: 17px;
  align-items: center;
}

.segments button {
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 12px;
}

.segments .selected {
  background: #f1faec;
  color: #3b9e22;
}

.display-controls .segments {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--ui-panel-gray);
  padding: 2px;
}

.display-controls .segments button {
  min-width: 72px;
  border-radius: 8px;
  color: #4b5563;
  font-size: var(--ui-type-button-size);
  font-weight: var(--ui-type-button-weight);
  line-height: 26px;
  padding: 0 12px;
}

.display-controls .segments .selected {
  background: #fff;
  color: #111827;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
}

.timeline-page .timeline-export-menu {
  margin-left: auto;
}

.timeline-page .timeline-filter-controls .segments {
  background: #e8edf3;
  padding: 3px;
}

.timeline-page .timeline-filter-controls .segments .selected {
  border: 1px solid #c5d1df;
  box-shadow: 0 1px 2px rgba(20, 30, 45, 0.08);
  line-height: 28px;
}

.date-button {
  min-height: 34px;
  padding: 0 12px;
  white-space: nowrap;
}

.calendar-icon {
  width: 12px;
  height: 12px;
  border: 1.5px solid #8f99a7;
  border-radius: 2px;
  position: relative;
}

.calendar-icon::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  right: 0;
  border-top: 1.5px solid #8f99a7;
}

.chevron-down {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #7d8795;
  border-bottom: 1.5px solid #7d8795;
  transform: rotate(45deg) translateY(-2px);
}

.timeline {
  display: grid;
  gap: 8px;
}

.timeline-with-rail {
  position: relative;
  gap: 6px;
  padding-left: 0;
}

.timeline > h2 {
  margin: 18px 0 6px;
  color: #111827;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
}

.timeline-v2 .timeline > h2 {
  position: static;
  width: 116px;
  margin: 14px 0 4px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #40516a;
  font-size: 16px;
  font-weight: 850;
  line-height: 1;
  padding: 8px 0 6px;
  text-align: right;
}

.timeline-v3 .timeline-current-day {
  position: relative;
  z-index: 30;
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 101px 28px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 10px;
  min-height: 38px;
  margin: 12px 0 0;
  background: var(--page-bg);
  color: var(--timeline-primary);
  padding: 0 0 8px;
}

.timeline-v3 .timeline-current-day::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 30px;
  border-bottom: 1px solid var(--ui-border);
}

.timeline-v3 {
  height: calc(100vh - var(--sample-nav-height));
  overflow: hidden;
}

.timeline-v3 .workspace {
  display: flex;
  min-height: 0;
  height: calc(100vh - var(--sample-nav-height) - var(--app-header-height));
  flex-direction: column;
  padding-bottom: 18px;
}

.timeline-v3 .timeline-with-rail {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: scroll;
  overscroll-behavior: contain;
  margin-top: 0;
  padding-bottom: 0;
  scrollbar-width: none;
}

.timeline-v3 .timeline-with-rail::-webkit-scrollbar {
  display: none;
}

.timeline-v3 .timeline-current-day strong {
  color: var(--timeline-primary);
  font-size: 16px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
  text-align: right;
}

.timeline-v3 .timeline-current-day-spacer {
  display: block;
}

.timeline-v3 .timeline-load-more {
  grid-column: 3;
  justify-self: center;
  min-height: 32px;
  gap: 8px;
  border-radius: 8px;
  font-size: var(--ui-type-button-size);
  font-weight: var(--ui-type-button-weight);
  padding: 0 12px;
}

.timeline-v3 .timeline-current-export {
  position: relative;
  grid-column: 4;
  justify-self: end;
  z-index: 80;
  margin-left: 0;
}

.timeline-v3 .timeline-current-export .export-menu-panel {
  z-index: 120;
}

.timeline-v3 .timeline-load-more::before {
  width: 6px;
  height: 6px;
  border-top: 1.5px solid #8da1b5;
  border-left: 1.5px solid #8da1b5;
  content: "";
  transform: rotate(45deg) translateY(1px);
}

.timeline-v3 .timeline > h2 {
  position: relative;
  width: 100%;
  padding-right: calc(100% - 101px);
  z-index: 0;
}

.timeline-v3 .timeline > h2::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 30px;
  border-bottom: 1px solid var(--ui-border);
  z-index: -1;
}

.timeline-v3 .timeline > h2 + .timeline-event {
  margin-top: 10px;
}

.timeline-v3 .timeline > .timeline-event:first-child {
  margin-top: 10px;
}

.timeline-v3 .timeline-event {
  grid-template-columns: 101px 28px minmax(0, 1fr);
  isolation: isolate;
  z-index: 1;
}

.timeline-v3 .timeline-event::before {
  left: 122px;
}

.show-more {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  justify-self: start;
  border: 1px solid var(--overview-border);
  border-radius: 8px;
  background: #fff;
  color: #223047;
  font-size: var(--ui-type-button-size);
  font-weight: var(--ui-type-button-weight);
  line-height: 1;
  box-shadow: none;
  padding: 0 12px;
}

.show-more::before {
  width: 6px;
  height: 6px;
  border-top: 1.5px solid #8da1b5;
  border-left: 1.5px solid #8da1b5;
  content: "";
  transform: rotate(45deg) translateY(1px);
}

.audit-card {
  min-height: 56px;
  padding: 0;
}

.display-audit {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.audit-card-main {
  min-height: 55px;
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
}

.display-audit .audit-card-main {
  grid-template-columns: 30px minmax(0, 1fr) 118px;
  align-items: start;
  min-height: 48px;
  padding: 12px 14px 4px;
}

.audit-copy {
  min-width: 0;
}

.audit-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.audit-title-row h3 {
  margin: 0;
  overflow: hidden;
  color: #111827;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-chip {
  max-width: 210px;
  overflow: hidden;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  line-height: 22px;
  padding: 0 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-chip.bad {
  background: var(--red-bg);
  color: var(--red);
}

.status-chip.good {
  background: var(--green-bg);
  color: var(--green-ink);
}

.display-audit .status-chip.good {
  background: transparent;
  color: #138f5f;
  font-size: 18px;
  line-height: 18px;
  padding: 0;
}

.edit-pencil {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  fill: none;
  stroke: #64748b;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.edit-pencil-button {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  padding: 0;
  cursor: pointer;
}

.edit-pencil-button:hover .edit-pencil {
  stroke: #334155;
}

.audit-copy p,
.audit-meta {
  margin: 4px 0 0;
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
}

.audit-card time {
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.audit-expanded {
  margin: -3px 13px 13px 30px;
}

.display-audit .audit-expanded {
  margin: 0 14px 14px 58px;
}

.audit-table-only {
  border-top: 1px dashed #cdd6e2;
  padding-top: 4px;
}

.audit-expanded details {
  margin-top: 9px;
}

details summary {
  cursor: pointer;
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

.audit-expanded summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #1d73e8;
  font-size: 10px;
  font-weight: 800;
}

.audit-expanded summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-135deg) translateY(-1px);
}

details:not([open]) summary::after {
  transform: rotate(45deg) translateY(-2px);
}

.inline-event {
  min-height: 44px;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 14px 8px 7px;
  box-shadow: var(--shadow);
}

.inline-event time {
  color: #5b6b82;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.pack-activation {
  grid-template-columns: 84px 26px minmax(0, 1fr);
  color: #111827;
  font-weight: 800;
}

.pack-activation a {
  color: #006bff;
}

.pack-token {
  width: 34px;
  height: 34px;
  display: block;
  border: 2px solid #d4dbe4;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  padding: 4px;
  box-shadow: 0 0 0 3px #fff;
}

.sales-stack {
  display: grid;
  gap: 7px;
}

.sales-group {
  display: grid;
  gap: 7px;
}

.sales-card {
  min-height: 74px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 112px;
  align-items: center;
  gap: 12px;
  border: 1px solid #cfd6df;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  padding: 13px 14px;
  box-shadow: var(--shadow);
}

.sale-event:not(.sales-summary-event) .sales-card {
  min-height: 48px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px 14px;
}

.sales-group-summary {
  width: 100%;
  grid-template-columns: 28px minmax(0, 1fr) 146px 24px;
  cursor: pointer;
  text-align: left;
}

.sales-group-summary:hover {
  border-color: #9ca8b6;
  background: #fbfcfd;
}

.sales-group.is-expanded .sales-group-summary {
  min-height: 56px;
  border-color: #c4ccd7;
  border-style: dashed;
  background: #f7f9fb;
  box-shadow: none;
  padding-top: 10px;
  padding-bottom: 10px;
}

.sales-group.is-expanded .sales-summary-event .event-time {
  color: #6b7280;
}

.sales-group.is-expanded .sales-summary-event .sales-dot {
  background: #bbf7d0;
}

.sales-group.is-expanded .sales-group-summary .sales-copy {
  gap: 4px;
}

.sales-group.is-expanded .sales-group-summary .sales-copy strong {
  color: #374151;
  font-size: 15px;
}

.sales-group.is-expanded .sales-group-summary .sales-copy span {
  color: #5f6b7a;
  font-size: 13px;
}

.sales-group-summary:focus-visible {
  outline: none;
}

.sales-dot {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #dff6e7;
  box-shadow: 0 0 0 2px #d4dbe4;
}

.sales-dot::before {
  content: "$";
  color: #197546;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.sales-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.sales-copy strong {
  color: #111827;
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
}

.sales-copy span {
  overflow: hidden;
  color: #4b5563;
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-meta {
  color: #4b5563;
  font-size: 14px;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.sale-event:not(.sales-summary-event) .sales-copy {
  display: block;
}

.sale-event:not(.sales-summary-event) .sales-copy strong {
  font-size: 16px;
}

.sales-card time {
  color: #5b6b82;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.group-chevron {
  width: 8px;
  height: 8px;
  justify-self: center;
  border-right: 1.75px solid #4b5563;
  border-bottom: 1.75px solid #4b5563;
  transform: rotate(45deg) translateY(-2px);
}

.sales-group.is-expanded .group-chevron {
  transform: rotate(-135deg) translateY(-1px);
}

.timeline-event {
  position: relative;
  display: grid;
  grid-template-columns: 76px 28px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.timeline-page .audit-event + .employee-event,
.timeline-page .audit-event + .activation-event,
.timeline-page .activation-event + .sales-group,
.timeline-page .employee-event + .sales-group,
.timeline-page .employee-event + .audit-event,
.timeline-page .activation-event + .audit-event {
  margin-top: 4px;
}

.timeline-event::before {
  content: "";
  position: absolute;
  top: -9px;
  bottom: -12px;
  left: 97px;
  border-left: 2px solid #aeb8c5;
  z-index: 0;
}

.timeline-event:first-of-type::before {
  top: 18px;
}

.event-time {
  color: #4a5c74;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.22;
  padding-top: 18px;
  text-align: left;
  white-space: nowrap;
}

.time-range {
  display: grid;
  gap: 2px;
  justify-items: start;
  line-height: 1.05;
}

.time-range span {
  font-size: 12px;
  white-space: nowrap;
}

.time-range .time-range-separator {
  justify-self: center;
  color: var(--ui-meta);
  font-size: 12px;
  font-weight: 800;
}

.sales-summary-event .event-time {
  padding-top: 14px;
}

.event-marker {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 15px;
}

.event-content {
  min-width: 0;
}

.rail-dot {
  width: 12px;
  height: 12px;
  display: block;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #6f7d8e;
  box-shadow: 0 0 0 2px #d4dbe4;
}

.timeline-audit-dot {
  width: 16px;
  height: 16px;
  display: block;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #d4dbe4;
}

.timeline-audit-dot.display {
  background: var(--teal);
}

.pack-token,
.sales-dot {
  position: relative;
  z-index: 1;
}

.employee-event .event-marker,
.activation-event .event-marker {
  padding-top: 16px;
}

.pack-token {
  width: 24px;
  height: 24px;
  display: block;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #fff7dc;
  box-shadow: 0 0 0 2px #d4dbe4;
  object-fit: cover;
  object-position: center;
}

.display-audit .audit-card-main {
  grid-template-columns: minmax(0, 1fr);
  min-height: 48px;
  padding: 14px 16px 5px;
}

.display-audit .audit-expanded {
  margin: 0 16px 8px;
}

.inline-event {
  grid-template-columns: minmax(0, 1fr);
  min-height: 50px;
  padding: 12px 16px;
}

.pack-activation {
  grid-template-columns: minmax(0, 1fr);
}

.sales-card {
  grid-template-columns: minmax(0, 1fr);
  min-height: 72px;
}

.sale-event:not(.sales-summary-event) .sales-card {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 48px;
}

.sales-group-summary {
  grid-template-columns: minmax(0, 1fr) 24px;
}

@media (max-width: 820px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .workspace {
    width: min(100% - 24px, 760px);
    padding-top: 16px;
  }

}

@media (max-width: 560px) {
  .game-card {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .ticket-art {
    width: 58px;
    height: 58px;
  }

  .queen-card h1 {
    font-size: 22px;
    line-height: 1.08;
  }

  .export-button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .controls {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .segments {
    justify-content: space-between;
  }

  .date-button {
    align-self: flex-start;
  }

  .timeline-event {
    grid-template-columns: 64px 30px minmax(0, 1fr);
    gap: 7px;
  }

  .timeline-event::before {
    left: 86px;
  }

  .event-time {
    font-size: 11px;
    padding-top: 16px;
  }

  .event-marker {
    padding-top: 13px;
  }

  .audit-card-main,
  .display-audit .audit-card-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .audit-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .status-chip {
    max-width: 100%;
  }

  .audit-expanded {
    margin-left: 22px;
  }

  .display-audit .audit-expanded {
    margin-left: 14px;
  }

  .inline-event,
  .pack-activation {
    grid-template-columns: minmax(0, 1fr);
  }

  .pack-token {
    display: block;
    width: 30px;
    height: 30px;
    padding: 4px;
  }

  .sales-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .sales-group-summary {
    grid-template-columns: minmax(0, 1fr) 24px;
  }

  .sales-group-summary .group-chevron {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

}

/* Comparison audit overview styles */

:root {
  --canvas: #f4f6f8;
  --surface: #ffffff;
  --surface-subtle: #f9fafb;
  --border: #cfd6df;
  --border-soft: #e2e7ee;
  --text: #111827;
  --muted: #4b5563;
  --faint: #6b7280;
  --green: #159163;
  --green-bg: #ddf7e7;
  --red: #c7242d;
  --red-bg: #ffe0e2;
  --yellow: #ffc91f;
  --yellow-border: #dca500;
  --teal: #2563eb;
  --orange: #f97316;
  --vending: #7c3aed;
  --blue: #2f6fae;
  --shadow: 0 1px 3px rgba(20, 30, 45, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.audit-page {
  min-height: 100vh;
  background: var(--canvas);
  --audit-sales-col: 128px;
  --audit-variance-col: 152px;
}

.app-topbar {
  position: sticky;
  top: var(--sample-nav-height);
  z-index: 40;
  height: var(--app-header-height);
  min-height: var(--app-header-height);
  flex: 0 0 var(--app-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.94);
  padding: 0 28px;
}

.crumbs,
.top-actions,
.toolbar-actions {
  display: flex;
  align-items: center;
}

.crumbs {
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  gap: 8px;
  color: #8fa0b5;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  overflow: hidden;
  white-space: nowrap;
}

.crumbs strong {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.crumbs a,
.crumbs span,
.crumbs button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.icon-button,
.pill-button,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--audit-primary);
  font-weight: 800;
  box-shadow: var(--shadow);
}

.icon-button {
  width: 20px;
  height: 20px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.menu-button {
  margin-right: 10px;
}

.pill-button {
  min-height: 40px;
  gap: 9px;
  border-radius: 999px;
  font-size: var(--audit-body-size);
  padding: 0 15px;
}

.top-actions {
  gap: 10px;
}

.ui-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  display: inline-block;
  position: relative;
}

.ui-icon-menu,
.ui-icon-menu::before,
.ui-icon-menu::after {
  height: 2px;
  border-radius: 999px;
  background: var(--faint);
}

.ui-icon-menu {
  width: 20px;
}

.ui-icon-menu::before,
.ui-icon-menu::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
}

.ui-icon-menu::before {
  top: -6px;
}

.ui-icon-menu::after {
  top: 6px;
}

.ui-icon-calendar {
  border: 2px solid #7d8da3;
  border-radius: 3px;
}

.ui-icon-calendar::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  border-top: 2px solid #7d8da3;
}

.ui-icon-tools::before,
.ui-icon-tools::after {
  content: "";
  position: absolute;
  left: 7px;
  top: -1px;
  width: 3px;
  height: 19px;
  border-radius: 999px;
  background: #53627a;
}

.ui-icon-tools::before {
  transform: rotate(45deg);
}

.ui-icon-tools::after {
  transform: rotate(-45deg);
}

.ui-icon-download {
  border-bottom: 3px solid var(--text);
}

.ui-icon-download::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  width: 3px;
  height: 11px;
  background: var(--text);
}

.ui-icon-download::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-right: 3px solid var(--text);
  border-bottom: 3px solid var(--text);
  transform: rotate(45deg);
}

.ui-icon-qr {
  background:
    linear-gradient(#53627a 0 0) 0 0 / 5px 5px,
    linear-gradient(#53627a 0 0) 8px 0 / 4px 4px,
    linear-gradient(#53627a 0 0) 13px 0 / 4px 4px,
    linear-gradient(#53627a 0 0) 0 8px / 4px 4px,
    linear-gradient(#53627a 0 0) 8px 8px / 5px 5px,
    linear-gradient(#53627a 0 0) 14px 10px / 3px 3px,
    linear-gradient(#53627a 0 0) 0 14px / 5px 5px,
    linear-gradient(#53627a 0 0) 11px 15px / 4px 4px;
  background-repeat: no-repeat;
}

.audits-card {
  width: min(100% - 56px, 1240px);
  margin: 8px auto 64px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.audit-page-title {
  width: min(100% - 56px, 1240px);
  margin: 26px auto 0;
  color: var(--overview-primary);
  font-size: 22px;
  font-weight: 750;
  letter-spacing: 0;
}

.audit-summary-card {
  width: min(100% - 56px, 1240px);
  margin: 14px auto 12px;
  border: 1px solid var(--overview-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--overview-shadow-soft);
  padding: 12px 16px;
}

.audit-summary-card h1 {
  margin: 0;
  color: var(--overview-primary);
  font-size: 26px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.12;
}

.audit-summary-card p {
  margin: 2px 0 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}

.card-toolbar {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  border-bottom: 1px solid var(--border-soft);
  background: #fff;
  padding: 0 20px;
}

.card-toolbar h1 {
  margin: 0;
  color: var(--audit-primary);
  font-size: var(--audit-label-size);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.toolbar-actions {
  gap: 10px;
}

.outline-button {
  min-height: 32px;
  gap: 8px;
  flex: 0 0 auto;
  border: 1px solid var(--overview-border);
  border-radius: 8px;
  color: #223047;
  font-size: var(--ui-type-button-size);
  font-weight: var(--ui-type-button-weight);
  box-shadow: none;
  padding: 0 12px;
  white-space: nowrap;
}

.export-action {
  min-width: 88px;
  flex-wrap: nowrap;
}

.ui-svg-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  flex: 0 0 auto;
  fill: #53627a;
}

.tiny-caret {
  width: 0;
  height: 0;
  display: inline-block;
  flex: 0 0 auto;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--faint);
}

.export-menu {
  position: relative;
  display: inline-flex;
}

.export-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  display: none;
  min-width: 220px;
  border: 1px solid var(--overview-border, var(--border));
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  padding: 12px;
}

.export-menu:focus-within .export-menu-panel {
  display: grid;
}

.export-menu > button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.export-menu-heading {
  display: block;
  margin: 0 0 8px;
  color: #7b8ca4;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 1px;
  line-height: 1.2;
  text-transform: uppercase;
}

.export-menu-panel button {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--overview-primary, #111827);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
  padding: 0 8px;
  text-align: left;
}

.export-menu-panel button:hover {
  background: var(--ui-panel-gray, #f5f7fa);
}

.row-caret {
  border-top-color: #64748b;
  flex: 0 0 auto;
  margin-left: 2px;
  transform-origin: 50% 45%;
  transition: transform 160ms ease;
}

.audit-day.is-expanded .row-caret {
  transform: rotate(180deg);
}

.audit-header,
.audit-row,
.total-row {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) var(--audit-sales-col) repeat(3, var(--audit-variance-col));
  align-items: center;
}

.audit-header {
  min-height: 54px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--audit-meta);
  font-size: var(--audit-label-size);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0 20px;
}

.audit-header span:nth-child(n + 3) {
  display: flex;
  justify-content: center;
}

.audit-day {
  border-bottom: 1px solid var(--border-soft);
}

.audit-day:last-child {
  border-bottom: 0;
}

.audit-row {
  width: 100%;
  min-height: 48px;
  border: 0;
  background: #fff;
  color: var(--audit-primary);
  padding: 0 20px;
  text-align: left;
  transition:
    background 160ms ease,
    box-shadow 160ms ease;
}

.audit-day.is-expanded .audit-row {
  background: #fbfcfd;
}

.audit-day.is-expanded .audit-row {
  box-shadow: inset 0 -1px 0 #cbd8e5;
}

.audit-row:hover {
  background: #edf5fc;
  box-shadow: inset 0 0 0 1px rgba(139, 166, 195, 0.45);
}

.audit-row:hover .row-caret {
  border-top-color: #334155;
}

.date-cell {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.date-cell > strong {
  color: var(--audit-primary);
  font-size: var(--audit-title-size);
  font-weight: 800;
  white-space: nowrap;
}

.scope-list {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.scope-list > span:not(.tiny-caret) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef2f6;
  color: var(--audit-meta);
  font-size: 13px;
  font-weight: 700;
  line-height: 24px;
  padding: 0 10px;
}

.sales-cell {
  color: var(--audit-primary);
  font-size: var(--audit-value-size);
  font-weight: 800;
}

.variance-cell {
  display: flex;
  align-items: center;
  justify-content: center;
}

.variance-empty {
  color: var(--overview-meta);
  font-size: var(--overview-body);
  font-weight: 800;
}

.variance-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--ui-danger-pill-line);
  border-radius: 9px;
  color: #fff;
  font-size: var(--ui-danger-pill-size);
  font-weight: var(--ui-danger-pill-weight);
  line-height: 1;
  padding: 0 var(--ui-danger-pill-padding-x);
}

.variance-pill.bad {
  background: var(--red);
}

.variance-pill.warn {
  border: 2px solid var(--yellow-border);
  background: var(--yellow);
  color: var(--audit-primary);
}

.status-check {
  width: 22px;
  height: 14px;
  display: inline-block;
  border-left: 5px solid var(--green);
  border-bottom: 5px solid var(--green);
  transform: rotate(-45deg);
}

.day-details {
  display: grid;
  gap: 2px;
  border-top: 1px solid var(--border-soft);
  background: #f3f8fc;
  padding: 10px 20px 12px;
}

.day-event {
  min-height: 46px;
  display: grid;
  grid-template-columns: 86px 32px minmax(0, 1fr) var(--audit-sales-col) repeat(3, var(--audit-variance-col));
  align-items: center;
  column-gap: 8px;
  position: relative;
}

.day-event::before {
  content: "";
  position: absolute;
  top: -12px;
  bottom: -12px;
  left: 109px;
  border-left: 2px solid #d4dbe4;
}

.day-event:first-child::before {
  top: 20px;
}

.day-event:last-child::before {
  bottom: 20px;
}

.day-rail {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-time {
  color: var(--overview-meta);
  font-size: var(--overview-body);
  font-weight: 700;
  text-align: left;
  line-height: 1.2;
  white-space: nowrap;
}

.event-dot {
  width: 12px;
  height: 12px;
  display: block;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #6f7d8e;
  box-shadow: 0 0 0 2px #d4dbe4;
}

.event-dot.audit {
  width: 16px;
  height: 16px;
  border-width: 3px;
}

.event-dot.backstock {
  background: var(--orange);
}

.event-dot.display {
  background: var(--teal);
}

.event-dot.vending {
  background: var(--vending);
}

.event-line {
  min-width: 0;
  min-height: 46px;
  display: grid;
  grid-column: 3 / -1;
  grid-template-columns: minmax(0, 1fr) var(--audit-sales-col) repeat(3, var(--audit-variance-col));
  align-items: center;
  column-gap: 0;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: #fff;
  color: #263445;
  font-size: var(--audit-body-size);
  font-weight: 700;
  padding: 0 0 0 14px;
  box-shadow: var(--shadow);
}

.audit-event .event-line {
  border-color: #d4e2ee;
  background: #fff;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.audit-event .event-line strong {
  color: var(--audit-primary);
}

.audit-event .event-line:hover {
  border-color: #9db7d4;
  background: #f8fbff;
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px #c7d7e8;
}

.audit-event .event-line:hover .row-chevron {
  border-color: #64748b;
}

.event-main {
  min-width: 0;
  display: flex;
  grid-column: 1 / span 2;
  align-items: center;
  gap: 8px;
}

.event-line strong {
  color: var(--audit-primary);
  font-weight: 800;
}

.event-time {
  color: var(--audit-meta);
  font-size: var(--audit-body-size);
  font-weight: 700;
  white-space: nowrap;
}

.scope-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: var(--ui-danger-pill-line);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 0 10px;
}

.scope-badge.backstock {
  border: 1.5px solid #cbd6e2;
  background: #fff;
  color: var(--overview-secondary);
}

.scope-badge.display {
  border: 1.5px solid #cbd6e2;
  background: #fff;
  color: var(--overview-secondary);
}

.scope-badge.vending {
  border: 1.5px solid #cbd6e2;
  background: #fff;
  color: var(--overview-secondary);
}

.scope-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
}

.scope-badge.backstock::before {
  background: var(--orange);
}

.scope-badge.display::before {
  background: var(--teal);
}

.scope-badge.vending::before {
  background: var(--vending);
}

.row-chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid #c7d0dc;
  border-bottom: 2px solid #c7d0dc;
  transform: rotate(-45deg);
}

.event-variance {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
}

.event-variance.display {
  grid-column: 3;
}

.event-variance.backstock {
  grid-column: 4;
}

.event-variance.vending {
  grid-column: 5;
}

.opened-event {
  min-height: 54px;
  margin-top: 0;
}

.opened-event::before {
  display: none;
}

.opened-event .event-line {
  min-height: 54px;
  border-color: var(--border-soft);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 0 0 0 14px;
}

.opened-time {
  color: var(--audit-meta);
  display: grid;
  gap: 2px;
  justify-items: start;
}

.sun-icon {
  width: 22px;
  height: 22px;
  display: block;
  border: 4px solid #ffecaf;
  border-radius: 50%;
  background: #d99a00;
  box-shadow: 0 0 0 4px #fff7dc;
}

.total-row {
  min-height: 58px;
  border-top: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--audit-primary);
  font-size: var(--audit-value-size);
  font-weight: 800;
  padding: 0 20px;
}

.total-row strong:nth-child(n + 3) {
  display: flex;
  justify-content: center;
}

.chat-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #6ec945;
  box-shadow: 0 12px 26px rgba(31, 45, 64, 0.22);
}

.chat-button span {
  width: 30px;
  height: 22px;
  display: block;
  border: 3px solid #fff;
  border-radius: 6px;
  position: relative;
}

.chat-button span::before {
  content: "";
  position: absolute;
  right: -8px;
  top: -8px;
  width: 20px;
  height: 15px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  border-radius: 4px;
}

.chat-button span::after {
  content: "";
  position: absolute;
  left: 5px;
  bottom: -9px;
  width: 9px;
  height: 9px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: skew(-20deg);
}

@media (max-width: 980px) {
  .audit-page {
    --audit-sales-col: 120px;
    --audit-variance-col: 118px;
  }

  .app-topbar {
    align-items: flex-start;
    flex-direction: column;
    height: auto;
    flex-basis: auto;
    padding: 8px 20px;
  }

  .top-actions,
  .toolbar-actions {
    flex-wrap: wrap;
  }

  .audits-card {
    width: calc(100% - 24px);
    margin-top: 8px;
  }

  .card-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 20px;
  }

  .audit-header,
  .audit-row,
  .total-row {
    grid-template-columns: minmax(260px, 1fr) var(--audit-sales-col) repeat(3, var(--audit-variance-col));
  }
}

@media (max-width: 700px) {
  .overview-3-page .card-toolbar .toolbar-actions {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .overview-3-page .card-toolbar .outline-button {
    justify-content: flex-start;
  }

  .audit-header {
    display: none;
  }

  .audit-row,
  .total-row {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: auto;
    padding: 16px;
  }

  .date-cell {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .sales-cell,
  .variance-cell,
  .total-row strong:nth-child(n + 3) {
    justify-content: flex-start;
  }

  .day-details {
    padding: 14px 14px 16px;
  }

  .day-event {
    grid-template-columns: 72px 28px minmax(0, 1fr);
    column-gap: 7px;
  }

  .day-event::before {
    left: 86px;
  }

  .detail-time {
    font-size: 12px;
  }

  .event-line {
    align-items: center;
    grid-column: 3;
    grid-template-columns: minmax(0, 1fr);
    padding: 10px 12px;
  }

  .event-main,
  .event-variance {
    grid-column: 1;
  }

  .event-variance {
    justify-content: flex-start;
    padding-top: 4px;
  }
}

.compare-tabs {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--sample-nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-bottom: 1px solid #020617;
  background: #111827;
  padding: 10px 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.22);
}

.compare-tabs a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 800;
  padding: 0 18px;
}

.compare-tabs a.active {
  border-color: #f8fafc;
  background: #fff;
  color: #111827;
  box-shadow: none;
}

/* Reversible Timeline/Overview visual matching pass. */
.timeline-page.shell {
  grid-template-columns: minmax(0, 1fr);
}

.timeline-page {
  --timeline-primary: var(--ui-primary);
  --overview-divider: var(--ui-divider);
  --overview-shadow-soft: var(--ui-shadow-soft);
  color: var(--timeline-primary);
}

.timeline-page .app-topbar {
  top: 0;
  height: var(--app-header-height);
  min-height: var(--app-header-height);
  flex: 0 0 var(--app-header-height);
  flex-direction: row;
  align-items: center;
  padding: 0 28px;
}

.timeline-page .workspace {
  margin-top: 0;
  padding: 8px 0 76px;
}

.timeline-page .game-card {
  border-color: var(--ui-border);
  margin-top: 0;
  box-shadow: var(--ui-shadow-soft);
}

.timeline-page .timeline-game-panel {
  width: 100%;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--ui-shadow-soft);
  padding: 0;
}

.timeline-page .queen-card {
  display: flex;
  min-height: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.timeline-page .timeline-game-summary {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 66px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
}

.timeline-page .audit-card,
.timeline-page .inline-event,
.timeline-page .sales-card {
  border: 1px solid var(--ui-border);
  box-shadow: var(--ui-shadow-soft);
}

.timeline-page .audit-card {
  background: #fff;
}

.timeline-page .audit-title-row {
  gap: 9px;
}

.timeline-page .audit-title-row h3,
.timeline-page .sales-copy strong,
.timeline-page .pack-activation strong,
.timeline-page .inline-event span {
  color: var(--timeline-primary);
  font-size: 15px;
  font-weight: 800;
}

.timeline-page .inline-event {
  color: var(--timeline-primary);
  font-size: 15px;
  font-weight: 800;
}

.timeline-page .employee-event .inline-event span {
  color: var(--ui-meta);
  font-size: var(--ui-type-primary-size);
  font-weight: var(--ui-type-primary-weight);
}

.timeline-page .employee-event .inline-event {
  min-height: 30px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.timeline-page .employee-event .event-time,
.timeline-page .employee-event .event-marker {
  padding-top: 0;
}

.timeline-page .employee-event {
  align-items: center;
}

.timeline-page .employee-event .rail-dot {
  display: none;
}

.timeline-page .activation-event .inline-event {
  min-height: 30px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.timeline-page .activation-event .pack-activation strong {
  color: var(--ui-meta);
  font-size: var(--ui-type-primary-size);
  font-weight: var(--ui-type-primary-weight);
}

.timeline-page .breadcrumbs strong,
.timeline-page .game-copy h1,
.timeline-page .game-copy p,
.timeline-page .segments button,
.timeline-page .export-button,
.timeline-page .date-button,
.timeline-page .timeline > h2 {
  color: var(--timeline-primary);
}

.timeline-page .sales-meta,
.timeline-page .sales-copy span {
  color: var(--ui-meta);
  font-size: var(--ui-type-meta-size);
  font-weight: var(--ui-type-meta-weight);
}

.timeline-page .sale-event:not(.sales-summary-event) .sales-copy strong {
  color: var(--ui-primary);
  font-size: var(--ui-type-primary-size);
  font-weight: var(--ui-type-primary-weight);
}

.timeline-page .sale-event:not(.sales-summary-event) .sales-meta {
  color: var(--ui-meta);
  font-size: var(--ui-type-meta-size);
  font-weight: var(--ui-type-meta-weight);
}

.timeline-page .status-chip {
  font-weight: var(--ui-danger-pill-weight);
}

.timeline-page .event-time {
  font-size: 13px;
}

.timeline-page .time-range span:not(.time-range-separator) {
  font-size: 12px;
}

.timeline-page .status-chip {
  font-size: var(--ui-danger-pill-size);
  line-height: 20px;
}

.timeline-page .status-chip.bad {
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: var(--ui-danger-pill-size);
  font-weight: var(--ui-danger-pill-weight);
  line-height: 18px;
  padding: 0 10px;
}

.timeline-page .sale-event:not(.sales-summary-event) .sales-card {
  border-color: #cfd6df;
}

.timeline-page .scope-badge {
  gap: 0;
  border: 1px solid #d7e0ea;
  box-shadow: none;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  padding-right: 10px;
  padding-left: 10px;
}

.timeline-page .scope-badge::before {
  display: none;
}

.timeline-page .display-audit .status-chip.good {
  color: #159163;
}

.timeline-page .display-audit .audit-expanded {
  border-top-color: #d4e2ee;
  margin-bottom: 0;
}

/* Timeline event-card family refinement. */
.timeline-page .audit-card,
.timeline-page .sales-card {
  border-color: var(--ui-border);
  border-radius: 8px;
  box-shadow: var(--ui-shadow-soft);
}

.timeline-page .display-audit .audit-card-main,
.timeline-page .sales-card {
  padding-right: 16px;
  padding-left: 16px;
}

.timeline-page .display-audit .audit-card-main {
  min-height: 40px;
  padding-top: 9px;
  padding-bottom: 2px;
}

.timeline-page .sales-card {
  min-height: 56px;
  padding-top: 7px;
  padding-bottom: 7px;
}

.resolve-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.18);
  padding: 24px;
}

.resolve-modal {
  width: min(380px, 100%);
  overflow: hidden;
  border: 1.5px solid #b8c6d5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(20, 30, 45, 0.08);
  color: var(--ui-secondary);
}

.resolve-modal-header {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #b9c8d7;
  background: #d4e1ee;
  padding: 0 20px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.resolve-modal.is-dragging .resolve-modal-header {
  cursor: grabbing;
}

.resolve-modal-header h2 {
  margin: 0;
  color: var(--ui-primary);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
}

.resolve-modal-close {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.resolve-modal-close:hover {
  color: #334155;
}

.resolve-modal-body {
  display: grid;
  gap: 12px;
  padding: 18px 20px 16px;
}

.resolve-detail-grid {
  display: grid;
  gap: 11px;
  margin: 0;
}

.resolve-detail-grid div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
}

.resolve-detail-grid dt,
.resolve-field > span {
  margin: 0;
  color: #5b6b81;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 1.1px;
  line-height: 1.2;
  text-transform: uppercase;
}

.resolve-detail-grid dd {
  margin: 0;
  color: #182235;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
}

@media (max-width: 460px) {
  .resolve-detail-grid {
    gap: 11px;
  }

  .resolve-detail-grid div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.resolve-divider {
  height: 1px;
  background: #d1dbe7;
}

.resolve-toggle-row {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: #182235;
  cursor: pointer;
}

.resolve-toggle-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.resolve-toggle-row > span {
  position: relative;
  width: 32px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--blue);
}

.resolve-toggle-row > span::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
}

.resolve-toggle-row strong {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.45px;
  line-height: 1;
  text-transform: uppercase;
}

.resolve-field {
  display: grid;
  gap: 8px;
}

.resolve-field select,
.resolve-field textarea {
  width: 100%;
  border: 1px solid #c7d3e1;
  border-radius: 6px;
  background: #fff;
  color: #182235;
  font: inherit;
  font-size: 14px;
  line-height: 1.3;
}

.resolve-field select {
  height: 36px;
  padding: 0 12px;
}

.resolve-field textarea {
  min-height: 72px;
  resize: vertical;
  padding: 10px 12px;
}

.resolve-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #ccd6e2;
  background: #f7f9fc;
  padding: 12px 20px;
}

.resolve-button {
  min-height: 32px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 750;
  padding: 0 14px;
  cursor: pointer;
}

.resolve-button-neutral {
  border: 1px solid #ccd6e2;
  background: #fff;
  color: var(--ui-primary);
}

.resolve-button-neutral:hover {
  background: #f8fafc;
}

.resolve-button-primary {
  border: 1px solid #bccbd9;
  background: #d4e1ee;
  color: var(--ui-primary);
}

.resolve-button-primary:hover {
  border-color: #b2c1d0;
  background: #c8d4e0;
}

.timeline-page .sale-event:not(.sales-summary-event) .sales-card {
  min-height: 38px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.timeline-page .audit-event .event-marker {
  padding-top: 16px;
}

.timeline-page .activation-event .event-marker {
  padding-top: 0;
}

.timeline-page .activation-event .event-time {
  padding-top: 0;
}

.timeline-page .activation-event {
  align-items: center;
}

.timeline-page .sale-event:not(.sales-summary-event) .event-marker {
  padding-top: 9px;
}

.timeline-page .sale-event:not(.sales-summary-event) .event-time {
  padding-top: 13px;
}

.timeline-page .sales-summary-event .event-marker {
  padding-top: 16px;
}

.timeline-page .sales-summary-event::before {
  top: -48px;
}

.timeline-page .sales-summary-event .event-time {
  padding-top: 14px;
}

.timeline-page .sales-summary-event .sales-copy {
  gap: 2px;
}

.timeline-page .sales-summary-event .sales-copy strong,
.timeline-page .sales-summary-event .sales-copy span {
  line-height: 1.15;
}

.timeline-page .audit-table-only {
  border-top: 1px solid #d9e1ea;
  padding-top: 5px;
  padding-bottom: 5px;
}

.timeline-page .audit-detail-list {
  display: grid;
  gap: 0;
}

.timeline-page .audit-detail-row {
  min-height: 20px;
  display: grid;
  grid-template-columns: max-content max-content;
  align-items: center;
  gap: 22px;
  border-top: 1px solid #e2e8f0;
  padding: 1px 0;
}

.timeline-page .audit-detail-row:first-child {
  border-top: 0;
}

.timeline-page .audit-detail-list:has(.audit-detail-row + .audit-detail-row) .audit-detail-row {
  min-height: 24px;
  padding-top: 2px;
  padding-bottom: 2px;
  border-top: 0;
}

.timeline-page .audit-detail-list:has(.audit-detail-row + .audit-detail-row) {
  gap: 1px;
}

.timeline-page .audit-detail-field {
  min-width: 0;
  display: grid;
  grid-template-columns: max-content max-content;
  align-items: center;
  gap: 6px;
}

.timeline-page .audit-detail-label {
  color: var(--ui-meta);
  font-size: var(--ui-type-primary-size);
  font-weight: var(--ui-type-primary-weight);
  white-space: nowrap;
}

.timeline-page .audit-detail-field a,
.timeline-page .audit-detail-field > span:last-child {
  color: var(--timeline-primary);
  font-size: var(--ui-type-primary-size);
  font-weight: var(--ui-type-primary-weight);
  line-height: 1.2;
  white-space: nowrap;
}

.timeline-page .audit-detail-field a {
  color: #1d73e8;
}

.timeline-page .audit-detail-field .abnormal-cell {
  color: var(--red);
  font-weight: 900;
}

.timeline-page .status-chip.bad {
  letter-spacing: 0;
}

.timeline-page .sales-group-summary {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 28px;
  padding-right: 12px;
}

.timeline-page .sales-group.is-expanded .sales-group-summary {
  min-height: 50px;
  padding-top: 7px;
  padding-bottom: 7px;
}

.timeline-page .sales-group-summary .group-chevron {
  justify-self: end;
}

.timeline-v2 .timeline-event {
  grid-template-columns: 116px 28px minmax(0, 1fr);
}

.timeline-v2 .timeline-event::before {
  left: 137px;
}

.timeline-page.timeline-v3 .timeline-event {
  grid-template-columns: 101px 28px minmax(0, 1fr);
}

.timeline-page.timeline-v3 .timeline-event::before {
  left: 122px;
}

.timeline-page.timeline-v3 .sales-summary-event::before {
  top: -12px;
}

.timeline-v2 .event-time {
  padding-top: 15px;
  text-align: right;
  white-space: normal;
}

.timeline-v2 .event-stamp {
  display: block;
  color: var(--ui-meta);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.18;
  text-align: right;
  white-space: nowrap;
}

.timeline-v2 .event-stamp-with-date {
  display: block;
}

.timeline-v2 .time-range-times {
  letter-spacing: 0;
}

.timeline-v2 .sales-group {
  position: relative;
}

.timeline-v2 .sales-group-card {
  display: block;
  overflow: hidden;
  min-height: 0;
  padding: 0;
}

.timeline-v2 .sales-group-card .sales-group-summary {
  width: 100%;
  min-height: 50px;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 7px 12px 7px 14px;
  text-align: left;
}

.timeline-v2 .sales-group-card .sales-group-summary:hover {
  background: #fbfcfd;
}

.timeline-v2 .sales-group.is-expanded .sales-group-summary {
  border-radius: 8px 8px 0 0;
}

.timeline-v2 .sales-group.is-expanded .sales-group-card {
  border-style: solid;
  background: #fff;
}

.timeline-v2 .sales-group.is-expanded .sales-group-summary {
  min-height: 50px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding-top: 7px;
  padding-bottom: 7px;
}

.timeline-v2 .sale-event:not(.sales-summary-event) .sales-copy strong .voided-label {
  margin-left: 8px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.timeline-v2 .sales-summary-event .summary-voided-label {
  margin-left: 8px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.timeline-v2 .sales-summary-event .event-time {
  padding-top: 17px;
}

.timeline-v2 .sales-summary-event .event-marker {
  padding-top: 14px;
}

.timeline-v2 .audit-event .event-time {
  padding-top: 17px;
}

.timeline-v2 .audit-event .event-marker {
  padding-top: 15px;
}

.timeline-v2 .sales-transaction-card {
  display: grid;
  overflow: hidden;
  margin: 0 26px 10px;
  border: 0;
  border-top: 1px solid #d8e2ee;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.timeline-v2 .sales-transaction-head,
.timeline-v2 .sales-transaction-row {
  display: grid;
  grid-template-columns: 110px 128px 94px minmax(150px, 1fr);
  align-items: center;
  column-gap: 16px;
  padding: 6px 0;
}

.timeline-v2 .sales-transaction-head {
  border-bottom: 1px solid #d8e2ee;
  color: var(--ui-meta);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.timeline-v2 .sales-transaction-row {
  color: var(--timeline-primary);
  font-size: var(--ui-type-primary-size);
  font-weight: var(--ui-type-primary-weight);
  line-height: 1.2;
}

.timeline-v2 .sales-transaction-row + .sales-transaction-row {
  border-top: 1px solid #edf1f5;
}

.timeline-v2 .sales-transaction-row span {
  min-width: 0;
  white-space: nowrap;
}

.timeline-v2 .sales-transaction-qty {
  display: inline-flex;
  align-items: baseline;
}

.timeline-v2 .transaction-voided-label {
  display: inline;
  margin-left: 6px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

/* Audit overview typography reset: keep the page on a tight, readable scale. */
.audit-page {
  --overview-label: 11px;
  --overview-body: 14px;
  --overview-primary: var(--ui-primary);
  --overview-secondary: var(--ui-secondary);
  --overview-meta: var(--ui-meta);
  --overview-soft: #94a3b8;
}

.audit-page .crumbs,
.audit-page .pill-button,
.audit-page .outline-button,
.audit-page .audit-row,
.audit-page .event-line,
.audit-page .total-row {
  letter-spacing: 0;
}

.audit-page .crumbs,
.audit-page .crumbs strong,
.audit-page .pill-button,
.audit-page .outline-button {
  font-size: var(--overview-body);
  font-weight: 700;
}

.audit-page .crumbs {
  color: var(--overview-meta);
}

.audit-page .crumbs strong,
.audit-page .pill-button,
.audit-page .outline-button {
  color: var(--overview-primary);
}

.audit-page .card-toolbar h1,
.audit-page .audit-header {
  color: var(--overview-meta);
  font-size: var(--overview-label);
  font-weight: 800;
  letter-spacing: 1px;
}

.audit-page .date-cell > strong,
.audit-page .sales-cell,
.audit-page .total-row {
  color: var(--overview-primary);
  font-size: var(--ui-row-primary-size);
  font-weight: 650;
}

.audit-page .scope-list {
  gap: 10px;
}

.audit-page .scope-list > span:not(.tiny-caret) {
  background: transparent;
  color: var(--overview-meta);
  font-size: var(--ui-row-meta-size);
  font-weight: 800;
  line-height: 1;
  padding: 0;
}

.audit-page .scope-list > span:not(.tiny-caret) + span:not(.tiny-caret)::before {
  content: "/";
  color: var(--overview-soft);
  margin-right: 10px;
}

.audit-page .event-line,
.audit-page .detail-time,
.audit-page .scope-badge {
  font-size: var(--overview-body);
}

.audit-page .event-line {
  color: var(--overview-secondary);
  font-weight: var(--ui-type-primary-weight);
}

.audit-page .event-line strong {
  color: var(--overview-primary);
  font-size: var(--ui-type-primary-size);
  font-weight: var(--ui-type-primary-weight);
}

.audit-page .audit-event .event-line strong {
  color: var(--overview-primary);
}

.audit-page .detail-time {
  color: var(--overview-meta);
  font-weight: 800;
}

.audit-page .scope-badge {
  gap: 0;
  border: 1px solid #d7e0ea;
  box-shadow: none;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  padding-right: 10px;
  padding-left: 10px;
}

.audit-page .scope-badge::before {
  display: none;
}

.audit-page .variance-pill {
  font-size: var(--ui-danger-pill-size);
  font-weight: var(--ui-danger-pill-weight);
  line-height: 1;
  padding-right: var(--ui-danger-pill-padding-x);
  padding-left: var(--ui-danger-pill-padding-x);
}

.audit-page .status-check {
  width: 16px;
  height: 10px;
  border-left-width: 4px;
  border-bottom-width: 4px;
}

/* Overview experiment: compact table-style expanded events. */
.audit-page .day-details {
  display: block;
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: #f3f8fc;
  box-shadow: none;
  padding: 10px 20px 12px;
}

.audit-page .day-event {
  min-height: 46px;
  height: 46px;
  grid-template-columns: 72px 32px minmax(0, 1fr) var(--audit-sales-col) repeat(3, var(--audit-variance-col));
}

.audit-page .day-event::before {
  left: 95px;
}

.audit-page .day-event:first-child::before {
  top: -6px;
}

.audit-page .day-rail {
  height: 100%;
  align-self: stretch;
}

.audit-page .day-event::after {
  display: none;
}

.audit-page .day-event:last-child::after {
  display: none;
}

.audit-page .event-line {
  position: relative;
  min-height: 46px;
  height: 46px;
  border: 1px solid var(--border-soft);
  border-top: 0;
  border-bottom: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  padding-left: 12px;
}

.audit-page .day-event:first-child .event-line {
  border-top: 1px solid var(--border-soft);
  border-radius: 8px 8px 0 0;
  box-shadow: var(--shadow);
}

.audit-page .event-line::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  border-bottom: 1px solid rgba(203, 216, 229, 0.76);
}

.audit-page .day-event:last-child .event-line {
  border-bottom: 1px solid var(--border-soft);
  border-radius: 0 0 8px 8px;
}

.audit-page .day-event:last-child .event-line::after {
  display: none;
}

.audit-page .audit-event .event-line {
  background: #fff;
}

.audit-page .audit-event .event-line:hover {
  background: #eaf4ff;
  box-shadow: none;
}

.audit-page .opened-event {
  min-height: 50px;
  height: 50px;
}

.audit-page .opened-event .event-line {
  min-height: 50px;
  height: 50px;
  background: #fff;
  box-shadow: none;
}

.audit-page .event-variance {
  min-height: 28px;
}

/* Reversible overview/timeline cohesion pass. Remove this block to revert. */
.audit-page {
  --overview-primary: var(--ui-primary);
  --overview-secondary: var(--ui-secondary);
  --overview-meta: var(--ui-meta);
  --overview-border: var(--ui-border);
  --overview-divider: var(--ui-divider);
  --overview-shadow-soft: var(--ui-shadow-soft);
}

.audit-page .audits-card,
.audit-page .audit-row,
.audit-page .event-line {
  border-color: var(--overview-border);
}

.audit-page .audits-card {
  box-shadow: var(--overview-shadow-soft);
}

.audit-page .audit-row {
  min-height: var(--ui-compact-row-height);
}

.audit-page .date-cell > strong,
.audit-page .sales-cell,
.audit-page .total-row,
.audit-page .event-line strong,
.audit-page .pill-button,
.audit-page .outline-button {
  color: var(--overview-primary);
}

.audit-page .date-cell > strong,
.audit-page .sales-cell {
  font-size: var(--ui-row-primary-size);
  font-weight: 600;
}

.audit-page .sales-cell {
  font-size: 14px;
}

.audit-page .scope-list > span:not(.tiny-caret) {
  font-size: var(--ui-row-meta-size);
  font-weight: 800;
}

.audit-page .event-line {
  color: var(--overview-secondary);
  font-weight: 800;
}

.audit-page .detail-time,
.audit-page .scope-list > span:not(.tiny-caret) {
  color: var(--overview-meta);
}

.audit-page .detail-time {
  font-size: var(--ui-row-meta-size);
  font-weight: var(--ui-secondary-row-weight);
}

.audit-page .day-details {
  gap: 0;
  padding-top: 6px;
  padding-bottom: 7px;
}

.audit-page .day-event {
  height: var(--ui-overview-signon-row-height);
  min-height: var(--ui-overview-signon-row-height);
}

.audit-page .event-line {
  height: var(--ui-overview-signon-row-height);
  min-height: var(--ui-overview-signon-row-height);
  border-color: var(--overview-divider);
  box-shadow: none;
}

.audit-page .audit-event,
.audit-page .audit-event .event-line {
  height: var(--ui-overview-audit-row-height);
  min-height: var(--ui-overview-audit-row-height);
}

.audit-page .opened-event,
.audit-page .opened-event .event-line {
  height: var(--ui-overview-audit-row-height);
  min-height: var(--ui-overview-audit-row-height);
}

.audit-page .event-line::after {
  border-bottom-color: var(--overview-divider);
}

.audit-page .event-variance {
  min-height: 24px;
}

.audit-page .variance-pill {
  border: 0;
  box-shadow: none;
}

.audit-page .variance-pill.warn {
  border-width: 0;
  color: var(--audit-primary);
}

.audit-page .audit-row:hover,
.audit-page .audit-event .event-line:hover {
  border-color: var(--overview-border);
  background: var(--ui-hover-bg);
  box-shadow: none;
}

.audit-page .audit-day.is-expanded .audit-row:hover {
  box-shadow: inset 0 -1px 0 var(--overview-divider);
}

.overview-2-page .overview2-details {
  position: relative;
  display: grid;
  padding: 12px 20px 10px 32px;
  border-top: 1px solid #c9d8e8;
  background: #edf5fd;
}

.overview-2-page .overview2-details::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 20px;
  width: 2px;
  border-radius: 999px;
  background: #2f78d8;
}

.overview-2-page .overview2-details::after {
  content: none;
  position: absolute;
  top: 9px;
  left: 44px;
  color: #51657c;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.overview-2-page .overview2-detail-row {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) var(--audit-sales-col) repeat(3, var(--audit-variance-col));
  min-height: 34px;
  align-items: center;
}

.overview-2-page .overview2-detail-card {
  display: contents;
}

.overview-2-page .overview2-event-main,
.overview-2-page .overview2-sales-spacer,
.overview-2-page .overview2-detail-row .event-variance {
  min-height: 34px;
  align-self: stretch;
  border-top: 1px solid #d4e1ee;
  background: #f4f9fe;
}

.overview-2-page .overview2-event-main {
  grid-column: 1;
  border-left: 1px solid #d4e1ee;
  padding-left: 12px;
}

.overview-2-page .overview2-sales-spacer {
  grid-column: 2;
}

.overview-2-page .overview2-detail-row .event-variance.display {
  grid-column: 3;
}

.overview-2-page .overview2-detail-row .event-variance.backstock {
  grid-column: 4;
}

.overview-2-page .overview2-detail-row .event-variance.vending {
  grid-column: 5;
  border-right: 1px solid #d4e1ee;
}

.overview-2-page .overview2-detail-row:first-child .overview2-event-main {
  border-top: 1px solid #d4e1ee;
  border-top-left-radius: 7px;
}

.overview-2-page .overview2-detail-row:first-child .event-variance.vending {
  border-top-right-radius: 7px;
}

.overview-2-page .overview2-detail-row:last-child .overview2-event-main,
.overview-2-page .overview2-detail-row:last-child .overview2-sales-spacer,
.overview-2-page .overview2-detail-row:last-child .event-variance {
  border-bottom: 1px solid #d4e1ee;
}

.overview-2-page .overview2-detail-row:last-child .overview2-event-main {
  border-bottom-left-radius: 7px;
}

.overview-2-page .overview2-detail-row:last-child .event-variance.vending {
  border-bottom-right-radius: 7px;
}

.overview-2-page .overview2-detail-time {
  display: inline-flex;
  color: var(--overview-primary);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.overview-2-page .overview2-time-separator {
  color: #8da1b5;
  font-weight: 800;
}

.overview-2-page .opened-detail {
  min-height: 44px;
}

.overview-2-page .opened-detail .overview2-event-main,
.overview-2-page .opened-detail .overview2-sales-spacer,
.overview-2-page .opened-detail .event-variance {
  min-height: 44px;
}

.overview-2-page .overview2-event-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: var(--overview-primary);
  font-size: 13px;
  font-weight: 800;
}

.overview-2-page .overview2-event-main span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.overview-2-page .overview2-event-main strong {
  color: var(--overview-primary);
  font-size: 13px;
  font-weight: 800;
}

.overview-2-page .audit-detail .overview2-event-main strong {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.overview-2-page .audit-detail .scope-badge {
  gap: 0;
  font-size: 12px;
  font-weight: var(--ui-danger-pill-weight);
  line-height: 1;
  padding-right: var(--ui-danger-pill-padding-x);
  padding-left: var(--ui-danger-pill-padding-x);
}

.overview-2-page .audit-detail .scope-badge::before {
  display: none;
}

.overview-2-page .audit-detail .audit-link-chevron {
  width: 7px;
  height: 7px;
  border-right-width: 1.75px;
  border-bottom-width: 1.75px;
  border-color: #94a3b8;
}

.overview-2-page .signon-detail .overview2-event-main strong {
  color: var(--overview-primary);
  font-size: var(--ui-type-primary-size);
  font-weight: var(--ui-type-primary-weight);
}

.overview-2-page .audit-detail {
  cursor: pointer;
}

.overview-2-page .audit-detail:hover .overview2-event-main,
.overview-2-page .audit-detail:hover .overview2-sales-spacer,
.overview-2-page .audit-detail:hover .event-variance {
  background: var(--ui-hover-bg);
}

.overview-3-page .overview2-details {
  padding: 0;
  border-top: 1px solid var(--overview-divider);
  border-bottom: 0;
  background: transparent;
  box-shadow: none;
}

.overview-3-page .overview2-details::before,
.overview-3-page .overview2-details::after {
  content: none;
}

.overview-3-page .audit-day.is-expanded .audit-row {
  box-shadow: none;
}

.overview-3-page .overview2-details::before {
  content: none;
}

.overview-3-page .overview2-detail-row {
  min-height: 34px;
  border-top: 1px solid #d4e1ee;
  background: #edf5fd;
  padding: 0;
}

.overview-3-page .overview2-event-main,
.overview-3-page .overview2-sales-spacer,
.overview-3-page .overview2-detail-row .event-variance {
  min-height: 34px;
  border-top: 0;
  background: transparent;
}

.overview-3-page .overview2-event-main {
  border-left: 0;
  padding-left: 44px;
  padding-right: 10px;
}

.overview-3-page .overview2-sales-spacer,
.overview-3-page .overview2-detail-row .event-variance {
  padding-right: 10px;
  padding-left: 10px;
}

.overview-3-page .overview2-detail-row .event-variance.vending {
  border-right: 0;
}

.overview-3-page .overview2-detail-row:first-child .overview2-event-main,
.overview-3-page .overview2-detail-row:first-child .overview2-sales-spacer,
.overview-3-page .overview2-detail-row:first-child .event-variance,
.overview-3-page .overview2-detail-row:first-child .event-variance.vending {
  border-top: 0;
  border-radius: 0;
}

.overview-3-page .overview2-detail-row:first-child {
  border-top: 0;
}

.overview-3-page .overview2-detail-row:last-child .overview2-event-main,
.overview-3-page .overview2-detail-row:last-child .overview2-sales-spacer,
.overview-3-page .overview2-detail-row:last-child .event-variance {
  border-bottom: 0;
}

.overview-3-page .opened-detail .overview2-event-main,
.overview-3-page .opened-detail .overview2-sales-spacer,
.overview-3-page .opened-detail .event-variance {
  min-height: 40px;
}

.overview-3-page .opened-detail .overview2-detail-time {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.05;
}

.overview-3-page .total-row strong {
  color: var(--ui-type-row-color);
  font-size: 14px;
  font-weight: 800;
}

.overview-3-page .total-row strong:first-child {
  padding-left: 20px;
  text-align: left;
}

.overview-3-page .audit-detail:hover .overview2-event-main,
.overview-3-page .audit-detail:hover .overview2-sales-spacer,
.overview-3-page .audit-detail:hover .event-variance {
  background: var(--ui-hover-bg);
}

.managers-page {
  min-height: 100vh;
  background: var(--overview-bg);
}

.manager-card {
  width: min(1680px, calc(100vw - 56px));
  margin: 14px auto 48px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.manager-dashboard-card {
  display: grid;
  min-height: 0;
  border: 1px solid var(--overview-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--overview-shadow-soft);
  padding: 12px 16px;
}

.manager-dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.manager-dashboard-header > div:first-child {
  min-width: 220px;
  margin-right: auto;
}

.manager-dashboard-main {
  display: grid;
  justify-items: start;
}

.manager-dashboard-controls {
  display: contents;
}

.manager-dashboard-card h1 {
  margin: 0;
  color: var(--overview-primary);
  font-size: 26px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.12;
}

.manager-dashboard-card p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}

.manager-inline-add-store {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  padding: 0;
}

.manager-inline-add-store:hover {
  color: #0f6fe5;
}

.manager-dashboard-selector-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 0;
}

.manager-top-account::after {
  content: "⌄";
  margin-left: 10px;
  color: #8da1b5;
}

.managers-page .manager-top-account,
.managers-page .date-range,
.overview-2-page .top-actions .pill-button,
.timeline-page .date-button {
  min-height: 30px;
  height: 30px;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: #223047;
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 0 12px;
  white-space: nowrap;
}

.timeline-page .date-button {
  justify-content: center;
}

.app-topbar .crumbs {
  color: #8fa0b5;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.app-topbar .crumbs strong {
  color: #111827;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.overview-2-page .card-toolbar,
.overview-2-page .audit-header {
  background: var(--ui-panel-gray);
}

.overview-2-page {
  --overview-table-min-width: 960px;
  --audit-sales-col: 116px;
  --audit-variance-col: 132px;
  --overview-card-width: min(100% - 56px, 1240px);
}

.overview-2-page .audit-summary-card,
.overview-2-page .audits-card {
  width: var(--overview-card-width);
}

.overview-2-page .audits-card {
  overflow-x: auto;
}

.overview-2-page .card-toolbar,
.overview-2-page .audit-header,
.overview-2-page .audit-list,
.overview-2-page .total-row {
  min-width: var(--overview-table-min-width);
}

.overview-2-page .audit-day {
  min-width: var(--overview-table-min-width);
}

.overview-2-page .audit-header,
.overview-2-page .audit-row,
.overview-2-page .total-row,
.overview-2-page .overview2-detail-row {
  grid-template-columns: minmax(300px, 1fr) var(--audit-sales-col) repeat(3, var(--audit-variance-col));
}

.overview-2-page .audit-header {
  min-height: var(--ui-table-header-height);
  color: var(--overview-meta);
  padding: 0;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.8px;
  line-height: 1.12;
}

.overview-2-page .audit-header span {
  display: flex;
  height: 100%;
  align-items: center;
  border-right: 1px solid #d8e2ee;
  padding: 0 10px;
}

.overview-2-page .audit-header span:last-child {
  border-right: 0;
}

.overview-2-page .audit-header span:first-child {
  justify-content: flex-start;
  padding-left: 20px;
}

.overview-2-page .audit-header span:nth-child(n + 2),
.overview-2-page .sales-cell,
.overview-2-page .variance-cell,
.overview-2-page .total-row strong:nth-child(n + 2),
.overview-2-page .overview2-sales-spacer,
.overview-2-page .overview2-detail-row .event-variance {
  justify-content: center;
  text-align: center;
}

.overview-2-page .audit-row,
.overview-2-page .total-row {
  padding: 0;
}

.overview-2-page .date-cell {
  padding-right: 10px;
  padding-left: 20px;
}

.overview-2-page .sales-cell,
.overview-2-page .variance-cell,
.overview-2-page .total-row strong {
  padding-right: 10px;
  padding-left: 10px;
}

.overview-2-page .date-cell,
.overview-2-page .scope-list {
  min-width: max-content;
}

.overview-2-page .scope-list {
  flex: 0 0 auto;
  white-space: nowrap;
}

.overview-2-page .scope-list > span:not(.tiny-caret) {
  flex: 0 0 auto;
}

.overview-2-page .date-cell {
  flex-wrap: nowrap;
}

.overview-2-page .audit-header span,
.overview-2-page .date-cell,
.overview-2-page .date-cell > strong,
.overview-2-page .scope-list,
.overview-2-page .scope-list > span,
.overview-2-page .sales-cell,
.overview-2-page .variance-cell,
.overview-2-page .overview2-event-main,
.overview-2-page .overview2-event-main span,
.overview-2-page .overview2-event-main strong,
.overview-2-page .overview2-detail-time,
.overview-2-page .overview2-time-separator,
.overview-2-page .scope-badge,
.overview-2-page .total-row strong {
  white-space: nowrap;
}

@media (max-width: 700px) {
  .overview-2-page .audit-header {
    display: grid;
  }

  .overview-2-page .audit-header,
  .overview-2-page .audit-row,
  .overview-2-page .total-row,
  .overview-2-page .overview2-detail-row {
    grid-template-columns: minmax(300px, 1fr) var(--audit-sales-col) repeat(3, var(--audit-variance-col));
    gap: 0;
  }

  .overview-2-page .audit-row,
  .overview-2-page .total-row {
    min-height: var(--ui-compact-row-height);
    padding: 0;
  }

  .overview-2-page .date-cell {
    align-items: center;
    flex-direction: row;
    gap: 14px;
  }

  .overview-2-page .sales-cell,
  .overview-2-page .variance-cell,
  .overview-2-page .total-row strong:nth-child(n + 3) {
    justify-content: center;
  }
}

.manager-section-frame {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--overview-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--overview-shadow-soft);
}

.manager-toolbar-actions button {
  border: 1px solid var(--overview-border);
  border-radius: 8px;
  background: #fff;
  color: #223047;
  font-size: var(--ui-type-button-size);
  font-weight: var(--ui-type-button-weight);
  line-height: 34px;
  padding: 0 14px;
}

.manager-toolbar {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--overview-border);
  background: var(--ui-panel-gray);
}

.manager-toolbar-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.manager-kicker {
  display: block;
  color: var(--ui-section-label-color);
  font-size: var(--ui-section-label-size);
  font-weight: var(--ui-section-label-weight);
  letter-spacing: var(--ui-section-label-spacing);
  line-height: 1.2;
  text-transform: uppercase;
}

.manager-toolbar p {
  min-width: 0;
  flex: 1 1 72px;
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  white-space: normal;
}

.manager-toolbar-actions {
  display: flex;
  gap: 8px;
}

.manager-toolbar-actions button {
  line-height: 30px;
  padding-right: 12px;
  padding-left: 12px;
}

.manager-toolbar-actions .export-menu-panel button {
  border: 0;
  background: transparent;
  color: var(--overview-primary);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
  padding: 0 8px;
}

.manager-toolbar-actions .export-menu-panel button:hover {
  background: var(--ui-panel-gray);
}

.manager-utility-row {
  min-height: 44px;
  border-bottom: 1px solid var(--overview-border);
  background: #fff;
}

.manager-segments {
  display: inline-flex;
  overflow: hidden;
  border: 0;
  border-radius: 9px;
  background: var(--ui-panel-gray);
  padding: 2px;
}

.manager-segments button {
  min-width: 68px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #4b5563;
  font-size: var(--ui-type-button-size);
  font-weight: var(--ui-type-button-weight);
  line-height: 26px;
  padding: 0 12px;
}

.manager-segments .selected {
  background: #fff;
  color: #111827;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
}

.manager-view-segments button {
  min-width: 72px;
}

.manager-view-segments {
  border: 1px solid var(--overview-border);
  background: var(--ui-panel-gray);
}

.manager-toolbar-title .manager-segments {
  border: 1px solid var(--overview-border);
  background: var(--ui-panel-gray);
}

.manager-toolbar-title .manager-segments button {
  white-space: nowrap;
}

.manager-toolbar-title .manager-segments .selected {
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
}

.manager-table-wrap {
  overflow-x: auto;
  background: #fff;
}

.manager-table {
  width: 100%;
  min-width: 1280px;
  border-collapse: collapse;
  color: var(--overview-primary);
  background: #fff;
}

.manager-table th,
.manager-table td {
  height: 34px;
  border-right: 1px solid #d8e2ee;
  border-bottom: 1px solid #d8e2ee;
  padding: 0 10px;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.manager-table th:last-child,
.manager-table td:last-child {
  border-right: 0;
}

.manager-table thead th {
  height: var(--ui-table-header-height);
  background: var(--ui-panel-gray);
  color: var(--overview-meta);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.8px;
  line-height: 1.12;
  text-transform: uppercase;
  white-space: normal;
}

.manager-toggle-heading {
  width: 52px;
}

.manager-table thead th:nth-child(2) {
  min-width: 210px;
}

.manager-table thead th:nth-child(n + 3) {
  min-width: 108px;
}

.manager-table thead th:nth-child(5),
.manager-table thead th:nth-child(7),
.manager-table thead th:nth-child(8) {
  min-width: 96px;
}

.manager-toggle-cell {
  width: 52px;
  padding: 0;
  text-align: center;
}

.manager-table thead th:nth-child(2),
.manager-table tbody th {
  text-align: left;
}

.manager-table tbody th {
  position: relative;
  color: var(--overview-primary);
  font-size: var(--ui-type-primary-size);
  font-weight: var(--ui-type-primary-weight);
  text-align: left;
  overflow: hidden;
}

.manager-table tbody td {
  color: var(--overview-primary);
  font-size: var(--ui-type-value-size);
  font-weight: var(--ui-type-value-weight);
}

.manager-table tbody td:nth-child(3),
.manager-table tbody td:nth-child(5),
.manager-table tbody td:nth-child(6),
.manager-table tbody td:nth-child(7),
.manager-table tbody td:nth-child(8) {
  text-align: right;
  padding-right: 14px;
}

.manager-table tbody td:nth-child(3) .manager-metric,
.manager-table tbody td:nth-child(5) .manager-metric,
.manager-table tbody td:nth-child(6) .manager-metric,
.manager-table tbody td:nth-child(7) .manager-metric,
.manager-table tbody td:nth-child(8) .manager-metric {
  justify-content: flex-end;
}

.manager-table tbody tr {
  background: #fff;
}

.manager-table tbody tr:hover > th,
.manager-table tbody tr:hover > td {
  background: var(--ui-hover-bg);
}

.manager-row.is-expanded > th,
.manager-row.is-expanded > td {
  background: #fff;
}

.manager-regional-row > th,
.manager-regional-row > td {
  background: #fff;
}

.manager-regional-row:hover > th,
.manager-regional-row:hover > td {
  background: var(--ui-hover-bg);
}

.manager-expand {
  display: inline-flex;
  width: auto;
  align-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}

.manager-icon-expand {
  width: 100%;
  height: 34px;
  justify-content: center;
}

.manager-name-expand {
  width: 100%;
  height: 34px;
  justify-content: flex-start;
  padding: 0;
}

.manager-chevron {
  width: 0;
  height: 0;
  flex: 0 0 auto;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid #8da1b5;
  transition: transform 160ms ease;
}

.manager-name-line {
  display: inline-flex;
  width: auto;
  align-items: center;
  gap: 0;
  text-align: left;
}

.manager-name-level-0 {
  margin-left: 0;
}

.manager-name-level-1 {
  margin-left: 20px;
}

.manager-name-level-2 {
  margin-left: 46px;
}

.manager-row.is-expanded .manager-chevron {
  transform: rotate(90deg);
}

.manager-district-row.is-expanded .manager-chevron {
  transform: rotate(90deg);
}

.manager-store-count {
  position: absolute;
  top: 50%;
  right: 10px;
  display: inline-flex;
  transform: translateY(-50%);
  min-width: auto;
  height: auto;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #5f6b7a;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
}

.manager-store-row > th,
.manager-store-row > td,
.manager-district-row > th,
.manager-district-row > td {
  height: 34px;
  background: #fff;
}

.manager-layout-district .manager-row > th,
.manager-layout-district .manager-row > td {
  background: #fff;
}

.manager-layout-district .manager-row:hover > th,
.manager-layout-district .manager-row:hover > td {
  background: var(--ui-hover-bg);
}

.manager-layout-district .manager-store-row > th,
.manager-layout-district .manager-store-row > td {
  background: #edf5fd;
}

.manager-layout-district .manager-store-row:hover > th,
.manager-layout-district .manager-store-row:hover > td {
  background: var(--ui-hover-bg);
}

.manager-district-row > th,
.manager-district-row > td {
  background: #f2f5f8;
}

.manager-district-row:hover > th,
.manager-district-row:hover > td {
  background: var(--ui-hover-bg);
}

.manager-store-row-level-2 > th,
.manager-store-row-level-2 > td {
  background: #edf5fd;
}

.manager-store-row-level-2:hover > th,
.manager-store-row-level-2:hover > td {
  background: var(--ui-hover-bg);
}

.manager-store-row-first > th,
.manager-store-row-first > td {
  border-top-color: #d8e2ee;
  box-shadow: none;
}

.manager-store-row-last > th,
.manager-store-row-last > td {
  border-bottom-color: #d8e2ee;
  box-shadow: none;
}

.manager-district-row > th,
.manager-store-row > th {
  color: var(--overview-primary);
  font-size: var(--ui-type-primary-size);
  font-weight: var(--ui-type-primary-weight);
}

.manager-district-row > td,
.manager-store-row > td {
  color: var(--overview-primary);
  font-size: var(--ui-type-value-size);
  font-weight: var(--ui-type-value-weight);
}

.manager-district-row > th {
  padding-left: 10px;
  padding-right: 38px;
}

.manager-store-indent {
  display: block;
  width: 100%;
  text-align: left;
}

.manager-store-row > th {
  padding-left: 10px;
}

.manager-store-row-level-2 > th {
  padding-left: 10px;
}

.manager-metric {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
}

.manager-metric.negative {
  color: var(--red);
  font-weight: 750;
}

.manager-metric.positive {
  color: var(--overview-primary);
  font-weight: 750;
}

.manager-metric.empty {
  color: var(--overview-meta);
}

.store-dashboard-page {
  --store-dashboard-table-min-width: 1700px;
}

.store-dashboard-topbar .top-actions {
  gap: 10px;
}

.store-dashboard-date-group {
  display: grid;
  gap: 4px;
}

.store-dashboard-date-group > span,
.store-dashboard-account-side label > span {
  color: var(--overview-meta);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.8px;
  line-height: 1;
  text-transform: uppercase;
}

.store-dashboard-card {
  margin-top: 12px;
}

.store-dashboard-page .store-dashboard-topbar {
  top: 0;
}

.store-dashboard-page .store-dashboard-controls-card {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) auto;
  align-items: center;
  gap: 28px;
  min-height: 88px;
  padding: 16px 20px;
}

.store-dashboard-page .store-dashboard-control-side {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.store-dashboard-page .manager-view-nav-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 0;
  padding-top: 0;
}

.store-dashboard-select-label {
  color: var(--overview-meta);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.store-dashboard-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.store-dashboard-control-side p {
  display: flex;
  gap: 8px;
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
}

.store-dashboard-control-side p a {
  color: var(--overview-primary);
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

.store-dashboard-page .store-dashboard-account-side {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
}

.store-dashboard-account-side label {
  display: grid;
  gap: 6px;
}

.store-dashboard-account {
  min-width: 250px;
  justify-content: space-between;
}

.store-dashboard-add-button {
  height: 32px;
  border: 1px solid #111827;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  padding: 0 14px;
}

.store-dashboard-table-card {
  margin-top: 18px;
}

.store-dashboard-table-heading {
  min-height: 56px;
}

.store-dashboard-table-heading .manager-toolbar-actions button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.store-dashboard-filter-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-height: 38px;
  border-bottom: 1px solid var(--overview-border);
  padding: 8px 18px;
  background: #fff;
}

.store-dashboard-filter-row:has(.portal-active-filter-row) {
  justify-content: space-between;
  background: #eef6ff;
  box-shadow: inset 0 1px 0 #d9e1ea;
}

.store-dashboard-filter-row label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--overview-meta);
  font-size: 12px;
  font-weight: 750;
}

.store-dashboard-filter-row input {
  height: 28px;
  border: 1px solid var(--overview-border);
  border-radius: 7px;
  background: #fff;
  color: var(--overview-primary);
  font-size: 12px;
  font-weight: 750;
}

.store-dashboard-filter-row input {
  width: 188px;
  padding: 0 10px;
}

.store-dashboard-table {
  min-width: var(--store-dashboard-table-min-width);
}

.store-dashboard-table th,
.store-dashboard-table td {
  height: 46px;
}

.store-dashboard-table thead th {
  position: relative;
  height: 42px;
  padding-right: 20px;
}

.store-dashboard-table thead th > span {
  display: inline-block;
}

.store-dashboard-table th:first-child,
.store-dashboard-table td:first-child {
  width: 54px;
  min-width: 54px;
  padding: 0;
  text-align: center;
}

.store-dashboard-table thead th:nth-child(2) {
  min-width: 230px;
}

.store-dashboard-table tbody th {
  padding-right: 10px;
}

.store-dashboard-table tbody tr:nth-child(even) > th,
.store-dashboard-table tbody tr:nth-child(even) > td {
  background: #fff;
}

.store-dashboard-table tbody tr:hover > th,
.store-dashboard-table tbody tr:hover > td {
  background: var(--ui-hover-bg);
}

.store-dashboard-store-name-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px;
}

.store-dashboard-store-name-row strong,
.store-dashboard-store-name-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-dashboard-store-name-row strong {
  color: var(--ui-type-row-color);
  font-size: var(--ui-type-primary-size);
  font-weight: var(--ui-type-primary-weight);
  line-height: 1.2;
}

.store-dashboard-store-name-row small {
  margin-top: 3px;
  color: #7f8da0;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
}

.store-dashboard-store-name-row em {
  border-radius: 999px;
  background: #dff5ff;
  color: #2f86a2;
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
  line-height: 18px;
  padding: 0 7px;
}

.store-dashboard-logo {
  display: inline-block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  vertical-align: middle;
}

.store-dashboard-store-alert {
  width: 28px;
  height: 16px;
  border-radius: 999px;
  background: #ffe5e7;
  position: relative;
}

.store-dashboard-store-alert::before,
.store-dashboard-store-alert::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: var(--red);
  content: "";
}

.store-dashboard-store-alert::before {
  transform: translate(-50%, -50%) rotate(28deg);
}

.store-dashboard-store-alert::after {
  transform: translate(-50%, -50%) rotate(-28deg);
}

.store-dashboard-check-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 48px;
}

.store-dashboard-small-alert {
  display: inline-flex;
  width: 11px;
  height: 11px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--red);
}

.store-dashboard-small-alert::before {
  width: 2px;
  height: 6px;
  border-radius: 999px;
  background: #fff;
  content: "";
}

.store-dashboard-selected-cell {
  background: #e3ebfb !important;
  outline: 1px solid #b9ccff;
  outline-offset: -1px;
}

.store-dashboard-sortable-header {
  cursor: pointer;
  overflow: hidden;
}

.store-dashboard-sortable-header:hover,
.store-dashboard-sortable-header:focus-within {
  background: var(--ui-hover-bg);
}

.store-dashboard-header-label {
  display: inline-block;
  transition: color 140ms ease;
}

.store-dashboard-sortable-header:hover .store-dashboard-header-label,
.store-dashboard-sortable-header:focus-within .store-dashboard-header-label {
  color: var(--overview-primary);
}

.store-dashboard-sort {
  display: none;
}


.store-dashboard-columns-icon {
  width: 12px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 2px;
  box-shadow: inset 5px 0 0 transparent;
}

.store-dashboard-pagination-row {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--overview-border);
  padding: 8px 16px;
  background: var(--ui-panel-gray);
}

.store-dashboard-footer-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.store-dashboard-footer-controls > span {
  color: var(--ui-type-label-color);
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
}

.store-dashboard-footer-controls label {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--overview-meta);
  font-size: 12px;
  font-weight: 750;
}

.store-dashboard-footer-controls select {
  width: 54px;
  height: 28px;
  appearance: none;
  border: 1px solid var(--overview-border);
  border-radius: 7px;
  background:
    linear-gradient(45deg, transparent 50%, #465365 50%) calc(100% - 13px) 11px / 5px 5px no-repeat,
    linear-gradient(135deg, #465365 50%, transparent 50%) calc(100% - 8px) 11px / 5px 5px no-repeat,
    #fff;
  color: var(--overview-primary);
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  padding: 0 18px 0 9px;
}

.store-dashboard-pagination-row nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.store-dashboard-pagination-row button {
  min-width: 28px;
  height: 28px;
  border: 1px solid var(--overview-border);
  border-radius: 7px;
  background: #fff;
  color: var(--overview-primary);
  font-size: 12px;
  font-weight: 750;
}

.store-dashboard-pagination-row button.selected {
  border-color: #6b7680;
  background: #6b7680;
  color: #fff;
}

.store-dashboard-pagination-row button:disabled {
  opacity: 0.45;
}

@media (max-width: 820px) {
  .store-dashboard-topbar {
    height: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .store-dashboard-topbar .top-actions {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .store-dashboard-page .store-dashboard-controls-card {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .store-dashboard-page .store-dashboard-account-side {
    align-items: flex-start;
    flex-direction: column;
  }

  .store-dashboard-filter-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .store-dashboard-pagination-row {
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 12px;
  }

  .store-dashboard-pagination-row nav {
    margin-left: auto;
  }

  .store-dashboard-pagination-row .store-dashboard-extra-page {
    display: none;
  }
}

@media (max-width: 820px) {
  .manager-card {
    width: min(100vw - 24px, 1680px);
  }

  .manager-dashboard-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .manager-dashboard-selector-row {
    margin-left: 0;
  }

  .manager-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Reversible type-system trial. Remove this block to return to the prior typography mix. */
:root {
  --ui-type-title-color: var(--ui-primary);
  --ui-type-title-size: 26px;
  --ui-type-title-weight: 850;
  --ui-type-card-title-size: 15px;
  --ui-type-card-title-weight: 800;
  --ui-type-row-color: var(--ui-primary);
  --ui-type-meta-color: var(--ui-meta);
  --ui-type-label-color: var(--ui-meta);
  --ui-type-label-size: 11px;
  --ui-type-label-weight: 850;
  --ui-type-label-spacing: 0.8px;
  --ui-type-subtitle-size: 13px;
  --ui-type-subtitle-weight: 500;
}

.audit-summary-card h1,
.manager-dashboard-card h1,
.timeline-page .game-copy h1 {
  color: var(--ui-type-title-color);
  font-size: var(--ui-type-title-size);
  font-weight: var(--ui-type-title-weight);
  letter-spacing: 0;
}

.audit-summary-card p,
.manager-dashboard-card p,
.timeline-page .game-copy p,
.manager-toolbar p {
  color: var(--ui-type-meta-color);
  font-size: var(--ui-type-subtitle-size);
  font-weight: var(--ui-type-subtitle-weight);
}

.audit-page .card-toolbar h1,
.audit-page .audit-header,
.overview-2-page .audit-header,
.overview-2-page .audit-header span,
.manager-table thead th,
.manager-kicker,
.timeline-filter-label,
.export-menu-heading,
.timeline-v2 .sales-transaction-head,
.resolve-detail-grid dt,
.resolve-field span {
  color: var(--ui-type-label-color);
  font-size: var(--ui-type-label-size);
  font-weight: var(--ui-type-label-weight);
  letter-spacing: var(--ui-type-label-spacing);
  text-transform: uppercase;
}

.outline-button,
.display-controls .segments button,
.manager-segments button,
.manager-toolbar-actions button,
.timeline-page .segments button,
.resolve-button {
  font-size: var(--ui-type-button-size);
  font-weight: var(--ui-type-button-weight);
}

.overview-2-page .date-cell > strong,
.overview-2-page .overview2-detail-time,
.overview-2-page .overview2-event-main,
.overview-2-page .overview2-event-main strong,
.manager-table tbody th,
.manager-district-row > th,
.manager-store-row > th,
.timeline-page .inline-event,
.timeline-page .inline-event span,
.timeline-page .pack-activation strong,
.timeline-page .employee-event .inline-event span,
.timeline-page .activation-event .pack-activation strong,
.timeline-page .audit-detail-label,
.timeline-page .audit-detail-field a,
.timeline-page .audit-detail-field > span:last-child,
.timeline-v2 .sales-transaction-row,
.timeline-page .sale-event:not(.sales-summary-event) .sales-copy strong,
.resolve-detail-grid dd,
.resolve-field select,
.resolve-field textarea {
  color: var(--ui-type-row-color);
  font-size: var(--ui-type-primary-size);
  font-weight: var(--ui-type-primary-weight);
}

.timeline-page .audit-title-row h3,
.timeline-page .sales-copy strong,
.timeline-page .sales-group-summary .sales-copy strong {
  color: var(--ui-type-row-color);
  font-size: var(--ui-type-card-title-size);
  font-weight: var(--ui-type-card-title-weight);
}

.overview-2-page .scope-list > span:not(.tiny-caret),
.overview-2-page .overview2-event-main span,
.timeline-v2 .event-stamp,
.timeline-page .sales-meta,
.timeline-page .sales-copy span,
.timeline-page .sale-event:not(.sales-summary-event) .sales-meta,
.manager-store-count,
.timeline-page .event-stamp,
.timeline-v2 .event-stamp,
.resolve-toggle-row strong {
  color: var(--ui-type-meta-color);
  font-size: var(--ui-type-meta-size);
  font-weight: var(--ui-type-meta-weight);
}

.overview-2-page .sales-cell,
.overview-2-page .variance-cell,
.overview-2-page .total-row strong,
.manager-table tbody td,
.manager-district-row > td,
.manager-store-row > td,
.manager-metric {
  color: var(--ui-type-row-color);
  font-size: var(--ui-type-value-size);
  font-weight: var(--ui-type-value-weight);
}

.overview-2-page .audit-detail .overview2-event-main strong {
  color: var(--blue);
  font-size: var(--ui-type-primary-size);
  font-weight: var(--ui-type-primary-weight);
}

.timeline-page .audit-detail-field .abnormal-cell,
.timeline-v2 .sales-summary-event .summary-voided-label,
.timeline-v2 .transaction-voided-label,
.voided-label {
  color: var(--red);
  font-size: var(--ui-type-critical-size);
  font-weight: var(--ui-type-critical-weight);
}

.overview-2-page .date-cell > strong {
  font-size: 14px;
}

.overview-3-page .date-cell > strong {
  font-size: 13px;
  font-weight: 600;
}

.overview-2-page .scope-list > span:not(.tiny-caret) {
  font-size: 12px;
}

.voids-page {
  --voids-table-min-width: 960px;
  --voids-card-width: min(100% - 56px, 1240px);
}

.style-guide-page {
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ui-primary);
  padding: 36px;
}

.style-guide-hero,
.style-guide-section {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.style-guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 24px;
}

.style-guide-hero > div,
.style-guide-section,
.style-guide-font-card {
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--ui-shadow-soft);
}

.style-guide-hero > div:first-child {
  padding: 24px 26px;
}

.style-guide-kicker,
.style-guide-section-head p,
.style-guide-font-card span,
.style-guide-font-card small,
.style-type-id,
.style-type-title-row dt,
.style-used-for strong,
.style-surface-card span,
.style-surface-card small {
  color: var(--ui-meta);
}

.style-guide-kicker {
  margin: 0 0 10px;
  font-size: var(--ui-type-label-size);
  font-weight: var(--ui-type-label-weight);
  letter-spacing: var(--ui-type-label-spacing);
  text-transform: uppercase;
}

.style-guide-hero h1,
.style-guide-section-head h2 {
  margin: 0;
  color: var(--ui-type-title-color);
}

.style-guide-hero h1 {
  font-size: 32px;
  font-weight: 850;
  line-height: 1.1;
}

.style-guide-hero p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--ui-meta);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

.style-guide-font-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
}

.style-guide-font-card span,
.style-type-title-row dt,
.style-used-for strong,
.style-surface-card span {
  font-size: var(--ui-type-label-size);
  font-weight: var(--ui-type-label-weight);
  letter-spacing: var(--ui-type-label-spacing);
  text-transform: uppercase;
}

.style-guide-font-card strong {
  margin-top: 10px;
  color: var(--ui-primary);
  font-size: 17px;
  font-weight: 800;
}

.style-guide-font-card small {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.style-guide-section {
  padding: 0;
  overflow: hidden;
}

.style-guide-section + .style-guide-section {
  margin-top: 24px;
}

.style-guide-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--ui-divider);
  background: var(--ui-panel-gray);
  padding: 18px 22px;
}

.style-guide-section-head h2 {
  font-size: 20px;
  font-weight: 850;
}

.style-guide-section-head p {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
}

.style-type-grid {
  display: grid;
}

.style-type-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  min-height: 148px;
  border-bottom: 1px solid var(--ui-divider);
}

.style-type-card:last-child {
  border-bottom: 0;
}

.style-type-id {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  border-right: 1px solid var(--ui-divider);
  background: #f9fbfd;
  padding-top: 22px;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.8px;
}

.style-type-main {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 0.9fr) minmax(240px, 0.8fr);
  gap: 20px;
  align-items: center;
  padding: 20px 22px;
}

.style-type-card:has(.style-type-adjuster) .style-type-main {
  grid-template-rows: auto auto;
}

.style-type-title-row h3,
.style-surface-card h3 {
  margin: 0;
  color: var(--ui-primary);
  font-size: 15px;
  font-weight: 800;
}

.style-type-title-row dl {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 12px 0 0;
}

.style-type-title-row div {
  min-width: 78px;
}

.style-type-title-row dt,
.style-type-title-row dd {
  margin: 0;
}

.style-type-title-row dd {
  margin-top: 3px;
  color: var(--ui-primary);
  font-size: 13px;
  font-weight: 700;
}

.style-type-example {
  min-height: 76px;
  display: flex;
  align-items: center;
  border: 1px solid var(--ui-divider);
  border-radius: 8px;
  background: #fff;
  padding: 14px 16px;
  overflow: hidden;
}

.style-type-example-title span {
  color: var(--ui-type-title-color);
  font-size: var(--ui-type-title-size);
  font-weight: var(--ui-type-title-weight);
}

.style-type-example-subtitle span {
  color: var(--ui-type-meta-color);
  font-size: var(--ui-type-subtitle-size);
  font-weight: var(--ui-type-subtitle-weight);
}

.style-type-example-label span {
  color: var(--ui-type-label-color);
  font-size: var(--ui-type-label-size);
  font-weight: var(--ui-type-label-weight);
  letter-spacing: var(--ui-type-label-spacing);
  text-transform: uppercase;
}

.style-type-example-button button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  background: #fff;
  color: #223047;
  font-size: var(--ui-type-button-size);
  font-weight: var(--ui-type-button-weight);
  padding: 0 12px;
}

.style-type-example-button button span {
  width: 0;
  height: 0;
  border-top: 5px solid var(--ui-meta);
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
}

.style-type-example-row span {
  color: var(--ui-type-row-color);
  font-size: var(--ui-type-primary-size);
  font-weight: var(--ui-type-primary-weight);
}

.style-type-example-card span {
  color: var(--ui-type-row-color);
  font-size: var(--ui-type-card-title-size);
  font-weight: var(--ui-type-card-title-weight);
}

.style-type-example-meta span {
  color: var(--ui-type-meta-color);
  font-size: var(--ui-type-meta-size);
  font-weight: var(--ui-type-meta-weight);
}

.style-type-example-value span {
  color: var(--ui-type-row-color);
  font-size: var(--ui-type-value-size);
  font-weight: var(--ui-type-value-weight);
}

.style-guide-pill {
  display: inline-flex;
  align-items: center;
  min-height: var(--ui-danger-pill-line);
  border-radius: 9px;
  font-size: var(--ui-danger-pill-size);
  font-weight: var(--ui-danger-pill-weight);
  line-height: 1;
  padding: 0 var(--ui-danger-pill-padding-x);
}

.style-guide-pill-red {
  background: var(--red);
  color: #fff;
}

.style-guide-pill-yellow {
  background: #ffc400;
  color: #111827;
}

.style-guide-pill-white {
  border: 1px solid #d7e0ea;
  background: #fff;
  color: var(--ui-primary);
}

.style-used-for ul {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.style-used-for li {
  color: var(--ui-secondary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.style-type-adjuster {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 92px 570px 280px;
  gap: 10px;
  align-items: end;
  justify-content: start;
  border-top: 1px solid var(--ui-divider);
  padding-top: 10px;
}

.style-adjuster-controls {
  display: grid;
  grid-template-columns: 92px 92px 210px 150px;
  gap: 8px;
}

.style-adjuster-label {
  align-self: center;
  color: var(--ui-type-label-color);
  font-size: var(--ui-type-label-size);
  font-weight: var(--ui-type-label-weight);
  letter-spacing: var(--ui-type-label-spacing);
  text-transform: uppercase;
}

.style-adjuster-controls label {
  display: grid;
  gap: 5px;
}

.style-adjuster-controls span {
  color: var(--ui-type-label-color);
  font-size: var(--ui-type-label-size);
  font-weight: var(--ui-type-label-weight);
  letter-spacing: var(--ui-type-label-spacing);
  text-transform: uppercase;
}

.style-adjuster-controls select {
  width: 100%;
  min-height: 28px;
  border: 1px solid var(--ui-border);
  border-radius: 7px;
  background: #fff;
  color: var(--ui-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 0 7px;
}

.style-adjuster-preview {
  display: flex;
  align-items: center;
  width: 280px;
  min-height: 38px;
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  background: #fff;
  padding: 8px 12px;
}

.style-adjuster-preview span {
  color: var(--ui-primary);
  font-size: 13px;
  font-weight: 700;
}

.style-surface-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 20px 22px 22px;
}

.style-surface-card {
  min-height: 150px;
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--ui-shadow-soft);
  padding: 16px;
}

.style-surface-card h3 {
  margin-top: 14px;
}

.style-surface-card p {
  margin: 10px 0 0;
  color: var(--ui-primary);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.style-surface-card small {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

@media (max-width: 980px) {
  .style-guide-page {
    padding: 20px;
  }

  .style-guide-hero,
  .style-type-main,
  .style-type-adjuster,
  .style-surface-grid {
    grid-template-columns: 1fr;
  }

  .style-adjuster-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .style-type-card {
    grid-template-columns: 56px minmax(0, 1fr);
  }
}

.voids-page .audit-summary-card,
.voids-page .audits-card {
  width: var(--voids-card-width);
}

.voids-summary-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 16px 14px;
}

.voids-summary-main {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.voids-nav-row {
  width: 100%;
  border-top: 1px solid var(--overview-divider);
  padding-top: 12px;
}

.voids-nav-controls {
  justify-content: flex-start;
  margin: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.voids-nav-controls::-webkit-scrollbar {
  display: none;
}

.voids-nav-controls .segments {
  width: auto;
  flex: 0 0 auto;
  background: #e8edf3;
  padding: 3px;
}

.voids-nav-controls .segments button {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.voids-nav-controls .segments .selected {
  border: 1px solid #c5d1df;
  box-shadow: 0 1px 2px rgba(20, 30, 45, 0.08);
  line-height: 28px;
}

.voids-count-badge {
  min-width: 19px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e9eef5;
  color: var(--ui-meta);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  padding: 0 6px;
}

.voids-count-badge.alert {
  background: #fff0f0;
  color: var(--red);
}

.voids-card {
  margin-top: 12px;
}

.voids-table-title {
  min-height: 50px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  background: var(--ui-panel-gray);
  gap: 16px;
  padding: 8px 16px;
}

.voids-table-title .voids-table-nav-row {
  width: auto;
  min-width: 0;
  flex: 1 1 auto;
  border-top: 0;
  padding-top: 0;
}

.voids-table-tools {
  min-width: var(--voids-table-min-width);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--overview-divider);
  background: #fff;
  padding: 0 24px;
}

.voids-table-export {
  flex: 0 0 auto;
}

.audit-details-card {
  margin-bottom: 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.audit-details-card + .audit-details-help-space + .voids-card {
  margin-top: 0;
  margin-bottom: 28px;
}

.audit-details-games-card {
  margin-top: 0;
}

.audit-details-help-space {
  position: relative;
  width: var(--voids-card-width);
  min-height: 32px;
  margin: 0 auto;
}

.audit-details-help {
  min-height: 26px;
  display: flex;
  align-items: center;
  margin: 3px 0;
  color: var(--ui-meta);
  font-size: var(--ui-type-meta-size);
  font-weight: var(--ui-type-meta-weight);
  line-height: 1.25;
  padding: 0 16px;
  text-align: left;
}

.audit-details-record-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.audit-details-record-nav .outline-button {
  min-width: 0;
}

.audit-details-metrics {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: #fff;
}

.audit-details-metric {
  appearance: none;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-left: 1px solid var(--overview-divider);
  padding: 12px 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: default;
  transition: background-color 120ms ease, box-shadow 120ms ease;
}

.audit-details-metric.is-pinnable {
  cursor: pointer;
}

.audit-details-metric:hover,
.audit-details-metric:focus-visible,
.audit-details-metric.is-active {
  background: #f7fafd;
  box-shadow: inset 0 0 0 1px rgba(176, 192, 210, 0.34);
  outline: 0;
}

.audit-details-metric:first-child {
  border-left: 0;
}

.audit-details-metric h2 {
  margin: 0;
  color: var(--ui-type-label-color);
  font-size: var(--ui-type-label-size);
  font-weight: var(--ui-type-label-weight);
  letter-spacing: var(--ui-type-label-spacing);
  line-height: 1.15;
  text-transform: uppercase;
}

.audit-details-metric strong {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--overview-primary);
  font-size: 24px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.audit-details-metric-status strong {
  color: var(--green);
}

.audit-details-metric-bad strong {
  color: var(--red);
}

.voids-table tbody tr.audit-details-row-highlight-not-scanned td,
.voids-table tbody tr.audit-details-row-highlight-not-scanned:hover td,
.voids-table tbody tr.audit-details-row-highlight-short td,
.voids-table tbody tr.audit-details-row-highlight-short:hover td {
  background: #fff3f2;
}

.voids-table tbody tr.audit-details-row-highlight-recovered td,
.voids-table tbody tr.audit-details-row-highlight-recovered:hover td,
.voids-table tbody tr.audit-details-row-highlight-ended td,
.voids-table tbody tr.audit-details-row-highlight-ended:hover td {
  background: #eef8f2;
}

.voids-table tbody tr.audit-details-row-highlight-overage td,
.voids-table tbody tr.audit-details-row-highlight-overage:hover td {
  background: #fff8dc;
}

.voids-table tbody tr.audit-details-total-row td,
.voids-table tbody tr.audit-details-total-row:hover td {
  height: 58px;
  border-top: 1px solid var(--overview-border);
  background: var(--surface-subtle);
  color: var(--ui-type-row-color);
  font-size: 14px;
  font-weight: 800;
}

.audit-details-games-table th:nth-child(2),
.audit-details-games-table td:nth-child(2),
.audit-details-games-table th:nth-child(4),
.audit-details-games-table td:nth-child(4),
.audit-details-games-table th:nth-child(5),
.audit-details-games-table td:nth-child(5),
.audit-details-games-table th:nth-child(8),
.audit-details-games-table td:nth-child(8) {
  text-align: center;
}

.audit-details-games-table th:nth-child(3),
.audit-details-games-table td:nth-child(3),
.audit-details-games-table th:nth-child(6),
.audit-details-games-table td:nth-child(6),
.audit-details-games-table th:nth-child(7),
.audit-details-games-table td:nth-child(7) {
  text-align: right;
}

.start-end-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
}

.start-end-separator {
  color: var(--ui-meta);
  font-weight: 700;
}

.display-monitoring-awaiting-label {
  color: var(--ui-meta);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.voids-table td a.audit-details-muted-link {
  color: inherit;
  text-decoration: none;
}

.audit-details-games-table {
  min-width: 1060px;
}

.audit-details-on-hand-table {
  min-width: 540px;
}

.audit-details-on-hand-table th,
.audit-details-on-hand-table td {
  text-align: center;
}

.audit-page .card-toolbar.audit-details-on-hand-title {
  min-height: 76px;
  align-items: flex-start;
  justify-content: flex-start;
  background: #fff;
  padding: 14px 16px;
}

.audit-page .card-toolbar.audit-details-on-hand-title h1 {
  color: var(--ui-type-title-color);
  font-size: var(--ui-type-title-size);
  font-weight: var(--ui-type-title-weight);
  letter-spacing: 0;
  line-height: 1.12;
  text-transform: none;
}

.audit-details-toolbar-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-align: left;
}

.audit-details-toolbar-meta {
  margin: 0;
  color: var(--ui-type-meta-color);
  font-size: var(--ui-type-subtitle-size);
  font-weight: var(--ui-type-subtitle-weight);
  letter-spacing: 0;
  line-height: 1.2;
}

.voids-search-control {
  margin-left: auto;
}

.voids-table-tools label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ui-meta);
  font-size: var(--ui-type-meta-size);
  font-weight: var(--ui-type-meta-weight);
}

.voids-table-tools select,
.voids-table-tools input {
  height: 30px;
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  background: #fff;
  color: var(--ui-primary);
  font-size: var(--ui-type-button-size);
  font-weight: var(--ui-type-button-weight);
  padding: 0 10px;
}

.voids-table-tools input {
  width: 170px;
}

.voids-table-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.voids-table {
  width: 100%;
  min-width: var(--voids-table-min-width);
  border-collapse: collapse;
  background: #fff;
}

.voids-table th,
.voids-table td {
  height: 40px;
  border-bottom: 1px solid #d8e2ee;
  color: var(--ui-type-row-color);
  font-size: var(--ui-type-primary-size);
  font-weight: var(--ui-type-primary-weight);
  padding: 0 24px;
  text-align: left;
  white-space: nowrap;
}

.voids-table thead th {
  height: var(--ui-table-header-height);
  background: var(--ui-panel-gray);
  color: var(--ui-type-label-color);
  font-size: var(--ui-type-label-size);
  font-weight: var(--ui-type-label-weight);
  letter-spacing: var(--ui-type-label-spacing);
  text-transform: uppercase;
}

.voids-table td:nth-child(4),
.voids-table td:nth-child(5),
.voids-table th:nth-child(4),
.voids-table th:nth-child(5) {
  text-align: center;
}

.voids-table td a {
  color: var(--blue);
}

.voids-table tbody tr:hover td {
  background: var(--ui-hover-bg);
}

.voids-table tbody tr.voids-followed-short-row td {
  background: #fff3f2;
}

.voids-table tbody tr.voids-followed-short-row:hover td {
  background: #ffecea;
}

.voids-short-pill {
  height: var(--ui-danger-pill-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font-size: var(--ui-danger-pill-size);
  font-weight: var(--ui-danger-pill-weight);
  line-height: 1;
  padding: 0 var(--ui-danger-pill-padding-x);
}

@media (max-width: 430px) {
  .voids-table-title {
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    row-gap: 8px;
  }

  .voids-table-title .voids-table-nav-row {
    width: 100%;
    flex: 0 0 100%;
  }

  .voids-table-export {
    flex: 0 0 100%;
  }

  .voids-nav-controls {
    overflow: visible;
  }

  .voids-nav-controls .segments {
    width: min(100%, 300px);
    max-width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .voids-nav-controls .segments button {
    width: 100%;
    justify-content: space-between;
  }

  .audit-details-metrics {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .audit-details-metric {
    border-left: 0;
    border-top: 1px solid var(--overview-divider);
    cursor: pointer;
    min-height: 72px;
  }

  .audit-details-metric:first-child {
    border-top: 0;
  }
}

@media (hover: none), (pointer: coarse) {
  .audit-details-metric {
    cursor: pointer;
  }
}

.timeline-page .workspace {
  width: min(100% - 56px, 1240px);
  max-width: none;
  margin-top: -54px;
  padding: 0;
}

.timeline-page .app-topbar {
  height: var(--app-header-height);
  min-height: var(--app-header-height);
  flex: 0 0 var(--app-header-height);
  flex-direction: row;
  align-items: center;
  padding: 0 28px;
}

.timeline-page .app-topbar .crumbs {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  height: auto;
  flex-wrap: nowrap;
  overflow: hidden;
  white-space: nowrap;
}

.timeline-page .app-topbar .crumbs strong {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-page .timeline-summary-card {
  width: 100%;
  margin: 14px 0 12px;
  border: 1px solid var(--overview-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--overview-shadow-soft);
  padding: 12px 16px 14px;
}

.timeline-page .timeline-summary-card .voids-summary-main {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  align-items: center;
  justify-content: start;
  gap: 14px;
}

.timeline-page .timeline-game-art {
  width: 66px;
  height: 66px;
  display: block;
  border-radius: 6px;
  object-fit: cover;
  object-position: top center;
}

.timeline-page .timeline-game-copy {
  min-width: 0;
}

.timeline-page .timeline-game-copy h1 {
  margin: 0;
  color: var(--ui-primary);
  font-size: 29px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.timeline-page .timeline-game-copy h1 span {
  color: var(--ui-meta);
  font-size: 14px;
  font-weight: 800;
  text-transform: none;
}

.timeline-page .timeline-game-copy p {
  margin: 7px 0 0;
  color: var(--ui-meta);
  font-size: var(--ui-type-meta-size);
  font-weight: var(--ui-type-meta-weight);
}

.timeline-page .timeline-summary-card .voids-nav-row {
  border-top: 1px solid var(--overview-divider) !important;
  padding-top: 12px;
}

.timeline-page .timeline-summary-card .timeline-filter-controls {
  position: static;
  width: auto;
  min-height: 0;
  justify-content: flex-start;
  gap: 12px;
  margin: 0;
  border-top: 0;
  padding: 0;
}

.timeline-page .timeline-summary-card .timeline-filter-controls::before {
  content: none;
}

.app-topbar {
  height: var(--app-header-height);
  min-height: var(--app-header-height);
  flex: 0 0 var(--app-header-height);
  flex-direction: row;
  align-items: center;
  padding: 0 28px;
}

.app-topbar .crumbs {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  height: auto;
  flex-wrap: nowrap;
  overflow: hidden;
  white-space: nowrap;
}

.app-topbar .crumbs strong {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-topbar .top-actions,
.app-topbar .toolbar-actions {
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

.managers-page .manager-segments {
  border: 1px solid var(--overview-border);
  background: #e8edf3;
  padding: 3px;
}

.managers-page .manager-segments button {
  min-width: 0;
  line-height: 28px;
  padding: 0 13px;
}

.managers-page .manager-view-segments button {
  min-width: 72px;
}

.managers-page .manager-toolbar-title .manager-segments button {
  min-width: 138px;
}

.managers-page .manager-segments .selected,
.managers-page .manager-toolbar-title .manager-segments .selected {
  border: 1px solid #c5d1df;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 30, 45, 0.08);
  line-height: 28px;
}

.managers-page .manager-dashboard-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 16px 14px;
}

.managers-page .manager-dashboard-header {
  align-items: center;
}

.managers-page .manager-view-nav-row {
  border-top: 1px solid var(--overview-divider);
  padding-top: 12px;
}

.managers-page .manager-view-nav-row .manager-dashboard-selector-row {
  margin-left: 0;
}

.audit-summary-card p,
.manager-dashboard-card p {
  margin-top: 6px;
}

.display-monitoring-page {
  --display-monitoring-issue-bg: #f4f8fd;
  --voids-table-min-width: 1240px;
}

.display-monitoring-page .compare-tabs {
  overflow-x: auto;
}

.display-monitoring-summary-card,
.display-monitoring-days-card {
  width: min(100% - 56px, 1240px);
}

.display-monitoring-table td,
.display-monitoring-table th {
  white-space: nowrap;
}

.display-monitoring-overview-table > thead th:not(:first-child),
.display-monitoring-overview-table > tbody > tr > td:not(:first-child),
.display-monitoring-issue-table th.center,
.display-monitoring-issue-table td.center {
  text-align: center;
}

.display-monitoring-table td a {
  color: var(--overview-link);
  font-weight: 700;
}

.display-monitoring-current-row > td {
  background: #fbfdff;
}

.display-monitoring-current-row:hover > td {
  background: #f3f7fc;
}

.display-monitoring-date-toggle,
.display-monitoring-date-cell {
  min-width: 230px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--ui-primary);
  font: inherit;
  text-align: left;
}

.display-monitoring-date-toggle {
  padding: 0;
}

.display-monitoring-date-toggle {
  cursor: pointer;
}

.display-monitoring-date-toggle strong,
.display-monitoring-date-cell strong {
  color: var(--ui-primary);
  font-size: 13px;
  font-weight: 800;
}

.display-monitoring-current {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  border-radius: 9px;
  background: #e8edf3;
  color: var(--ui-meta);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  padding: 0 7px;
}

.display-monitoring-date-toggle .day-toggle {
  width: auto;
  height: auto;
  margin-left: -3px;
  color: var(--ui-meta);
  line-height: 1;
}

.display-monitoring-stacked-value {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.display-monitoring-provisional {
  color: var(--ui-meta);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
}

.display-monitoring-issues-row > td {
  padding: 0;
  background: var(--display-monitoring-issue-bg);
}

.display-monitoring-issue-table {
  width: 100%;
  min-width: var(--voids-table-min-width);
  table-layout: fixed;
  background: var(--display-monitoring-issue-bg);
  border-top: 1px solid var(--overview-divider);
}

.display-monitoring-issue-table th:nth-child(1),
.display-monitoring-issue-table td:nth-child(1) {
  width: 18%;
}

.display-monitoring-issue-table th:nth-child(2),
.display-monitoring-issue-table td:nth-child(2) {
  width: 6%;
}

.display-monitoring-issue-table th:nth-child(3),
.display-monitoring-issue-table td:nth-child(3) {
  width: 6%;
}

.display-monitoring-issue-table th:nth-child(4),
.display-monitoring-issue-table td:nth-child(4) {
  width: 9%;
}

.display-monitoring-issue-table th:nth-child(5),
.display-monitoring-issue-table td:nth-child(5) {
  width: 11%;
}

.display-monitoring-issue-table th:nth-child(6),
.display-monitoring-issue-table td:nth-child(6) {
  width: 9%;
}

.display-monitoring-issue-table th:nth-child(7),
.display-monitoring-issue-table td:nth-child(7) {
  width: 9%;
}

.display-monitoring-issue-table th:nth-child(8),
.display-monitoring-issue-table td:nth-child(8) {
  width: 32%;
}

.display-monitoring-issue-table th:nth-child(2),
.display-monitoring-issue-table td:nth-child(2),
.display-monitoring-issue-table th:nth-child(4),
.display-monitoring-issue-table td:nth-child(4),
.display-monitoring-issue-table th:nth-child(5),
.display-monitoring-issue-table td:nth-child(5) {
  text-align: center;
}

.display-monitoring-issue-table th:nth-child(3),
.display-monitoring-issue-table td:nth-child(3),
.display-monitoring-issue-table th:nth-child(6),
.display-monitoring-issue-table td:nth-child(6),
.display-monitoring-issue-table th:nth-child(7),
.display-monitoring-issue-table td:nth-child(7) {
  text-align: right;
}

.display-monitoring-issue-table th:nth-child(8),
.display-monitoring-issue-table td:nth-child(8) {
  text-align: left;
}

.display-monitoring-issue-table th {
  padding: 10px;
}

.display-monitoring-issue-table td {
  padding: 10px;
  background: #edf5fd;
}

.display-monitoring-overview-table > tbody > tr.display-monitoring-issues-row:hover .display-monitoring-issue-table td {
  background: #edf5fd;
}

.display-monitoring-overview-table > tbody > tr.display-monitoring-issues-row:hover .display-monitoring-issue-table tbody tr.display-monitoring-issue-row:hover td {
  background: var(--ui-hover-bg);
}

.display-monitoring-game-name {
  color: var(--ui-primary);
  font-weight: 700;
  text-transform: none;
}

.display-monitoring-game-name a {
  color: inherit;
  text-decoration: none;
}

.display-monitoring-game-name a:hover {
  color: var(--blue);
}

.display-monitoring-issue-detail {
  display: grid;
  gap: 7px;
}

.display-monitoring-issue-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.display-monitoring-issue-topline strong {
  color: var(--ui-primary);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
}

.display-monitoring-issue-detail-shortage .display-monitoring-issue-topline strong,
.display-monitoring-issue-detail-partial .display-monitoring-issue-topline strong {
  color: var(--red);
}

.display-monitoring-table .display-monitoring-issue-topline a {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 12px;
}

.display-monitoring-table .display-monitoring-issue-topline a:hover {
  color: #0f6fe5;
}

.display-monitoring-issue-detail p {
  margin: 0;
  color: var(--ui-meta);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
}

.display-monitoring-issue-detail p .display-monitoring-inline-link {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.display-monitoring-issue-detail p .display-monitoring-inline-link:hover {
  color: #0f6fe5;
}

.display-monitoring-issue-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 999px;
}

.display-monitoring-issue-dot-shortage,
.display-monitoring-issue-dot-partial {
  background: var(--red);
  box-shadow: 0 0 0 2px #fff1f3;
}

.display-monitoring-issue-dot-awaitingReconciliation {
  background: var(--blue);
  box-shadow: 0 0 0 2px #dbe9f7;
}

.display-monitoring-issue-dot-awaitingScan {
  background: #f2b515;
  box-shadow: 0 0 0 2px #fff8df;
}

.display-monitoring-issue-dot-recovered {
  background: var(--green);
  box-shadow: 0 0 0 2px #e7f7ec;
}

.display-monitoring-report-metrics {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.audit-details-report-stack {
  display: inline-grid;
  gap: 3px;
}

.audit-details-report-stack.is-stacked {
  min-width: 0;
}

.display-monitoring-report-table .audit-details-report-stack span {
  line-height: 1.25;
}

.display-monitoring-timeline-page {
  min-height: 100vh;
}

.display-monitoring-timeline-summary-card {
  display: grid;
  gap: 14px;
}

.display-monitoring-timeline-game-main {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.display-monitoring-timeline-game-art {
  width: 66px;
  height: 66px;
  display: block;
  border-radius: 6px;
  object-fit: cover;
  object-position: top center;
}

.display-monitoring-timeline-summary-card h1 {
  margin: 0;
  color: var(--ui-primary);
  font-size: 29px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.display-monitoring-timeline-summary-card h1 span {
  color: var(--ui-meta);
  font-size: 14px;
  font-weight: 800;
}

.display-monitoring-timeline-summary-card p {
  margin: 7px 0 0;
  color: var(--ui-meta);
  font-size: var(--ui-type-meta-size);
  font-weight: var(--ui-type-meta-weight);
}

.display-monitoring-timeline-card-divider {
  height: 1px;
  background: var(--overview-divider);
}

.display-monitoring-timeline-board {
  width: min(100% - 56px, 1240px);
  margin: 0 auto 48px;
  padding: 4px 0 0;
}

.display-monitoring-timeline-section {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.display-monitoring-timeline-section h2 {
  margin: 0;
  color: var(--ui-primary);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-align: right;
}

.display-monitoring-timeline-rail {
  position: relative;
  display: grid;
  gap: 12px;
}

.display-monitoring-timeline-rail::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 74px;
  width: 2px;
  background: #b9c8d8;
}

.display-monitoring-timeline-event {
  position: relative;
  display: grid;
  grid-template-columns: 60px 28px minmax(0, 1fr);
  align-items: start;
  gap: 0;
}

.display-monitoring-timeline-event time {
  padding-top: 9px;
  color: var(--ui-meta);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-align: right;
}

.display-monitoring-timeline-dot {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  margin: 6px auto 0;
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px #b9c8d8;
}

.display-monitoring-timeline-dot-movement {
  background: var(--blue);
}

.display-monitoring-timeline-dot-blue {
  background: var(--blue);
}

.display-monitoring-timeline-dot-sale {
  background: var(--green);
}

.display-monitoring-timeline-dot-short {
  background: var(--red);
}

.display-monitoring-timeline-dot-recovered {
  background: var(--green);
}

.display-monitoring-timeline-card {
  min-height: 72px;
  border: 1px solid var(--overview-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--overview-shadow-soft);
  padding: 12px 16px;
}

.display-monitoring-timeline-sale-card {
  min-height: 0;
}

.display-monitoring-timeline-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--overview-divider);
}

.display-monitoring-timeline-title strong {
  color: var(--ui-primary);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.display-monitoring-timeline-title a {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.display-monitoring-timeline-title a:hover {
  color: #0f6fe5;
}

.display-monitoring-timeline-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 9px;
  color: var(--ui-meta);
  font-size: 13px;
  font-weight: 700;
}

.display-monitoring-timeline-meta strong {
  color: var(--ui-primary);
  font-weight: 800;
}

.display-monitoring-timeline-inline {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}

.display-monitoring-timeline-inline strong {
  color: var(--ui-primary);
  font-size: 13px;
  font-weight: 800;
}

.display-monitoring-timeline-inline span {
  color: var(--ui-meta);
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 640px) {
  :root {
    --sample-nav-height: 48px;
  }

  .app-topbar {
    height: auto;
    min-height: var(--app-header-height);
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    overflow: visible;
    padding: 8px 12px;
  }

  .app-topbar .crumbs {
    width: 100%;
    flex: 0 0 auto;
  }

  .app-topbar .top-actions,
  .app-topbar .toolbar-actions {
    width: 100%;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .app-topbar .top-actions .pill-button,
  .app-topbar .toolbar-actions .pill-button {
    width: 100%;
    min-width: 0;
    justify-content: center;
    white-space: normal;
  }

  .audit-details-record-nav {
    width: 100%;
    gap: 8px;
  }

  .audit-page .audit-summary-card .voids-summary-main:has(.audit-details-record-nav) {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .audit-details-record-nav .outline-button {
    min-width: 0;
    flex: 0 0 auto;
  }

  .audit-details-card {
    overflow-x: hidden;
  }

  .audit-details-metrics {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .audit-details-metric {
    border-left: 0;
    border-top: 1px solid var(--overview-divider);
    min-height: 72px;
  }

  .audit-details-metric:first-child {
    border-top: 0;
  }

  .display-monitoring-summary-card,
  .display-monitoring-days-card {
    width: calc(100% - 24px);
  }

  .display-monitoring-timeline-game-main {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
  }

  .display-monitoring-timeline-game-art {
    width: 54px;
    height: 54px;
  }

  .display-monitoring-timeline-summary-card h1 {
    font-size: 22px;
    line-height: 1.05;
  }

  .display-monitoring-timeline-board {
    width: calc(100% - 24px);
  }

  .display-monitoring-timeline-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 18px;
  }

  .display-monitoring-timeline-section h2 {
    text-align: left;
  }

  .display-monitoring-timeline-rail::before {
    left: 84px;
  }

  .display-monitoring-timeline-event {
    grid-template-columns: 70px 28px minmax(260px, 1fr);
  }

  .compare-tabs {
    justify-content: flex-start;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 7px 8px;
    scrollbar-width: none;
  }

  .compare-tabs::-webkit-scrollbar {
    display: none;
  }

  .compare-tabs a {
    min-height: 32px;
    flex: 0 0 auto;
    font-size: 12px;
    padding: 0 12px;
  }

  .timeline-v3 {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .timeline-v3 .workspace {
    height: auto;
    min-height: 0;
    width: min(100% - 20px, 540px);
    padding: calc(var(--app-header-height) + 12px) 0 48px;
  }

  .timeline-page .timeline-summary-card {
    margin: 10px 0;
    padding: 12px;
  }

  .timeline-page .timeline-summary-card .voids-summary-main {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
  }

  .timeline-page .timeline-game-art {
    width: 54px;
    height: 54px;
  }

  .timeline-page .timeline-game-copy h1 {
    font-size: 22px;
    line-height: 1.05;
    white-space: normal;
  }

  .timeline-page .timeline-game-copy h1 span {
    font-size: 12px;
  }

  .timeline-page .timeline-summary-card .voids-nav-row {
    padding-top: 10px;
  }

  .timeline-page .timeline-summary-card .timeline-filter-controls .segments {
    width: 100%;
  }

  .timeline-v3 .timeline-current-day {
    grid-template-columns: minmax(0, 1fr) auto auto;
    column-gap: 8px;
    min-height: 42px;
    margin-top: 8px;
    padding: 0 0 8px;
  }

  .timeline-v3 .timeline-current-day::after {
    left: 0;
  }

  .timeline-v3 .timeline-current-day strong {
    text-align: left;
  }

  .timeline-v3 .timeline-current-day-spacer {
    display: none;
  }

  .timeline-v3 .timeline-load-more,
  .timeline-v3 .timeline-current-export {
    grid-column: auto;
    justify-self: end;
  }

  .timeline-v3 .timeline-with-rail {
    overflow: visible;
    padding-bottom: 0;
  }

  .timeline-v3 .timeline > h2 {
    width: auto;
    margin: 14px 0 8px;
    padding: 10px 0 7px;
    text-align: left;
  }

  .timeline-v3 .timeline > h2::after {
    left: 0;
  }

  .timeline-v3 .timeline-event,
  .timeline-page.timeline-v3 .timeline-event {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    margin-top: 8px;
  }

  .timeline-v3 .timeline-event::before,
  .timeline-page.timeline-v3 .timeline-event::before,
  .timeline-page.timeline-v3 .sales-summary-event::before {
    content: none;
  }

  .timeline-v3 .event-marker,
  .timeline-page .audit-event .event-marker,
  .timeline-page .activation-event .event-marker,
  .timeline-page .sale-event:not(.sales-summary-event) .event-marker,
  .timeline-page .sales-summary-event .event-marker {
    display: none;
  }

  .timeline-v2 .event-time,
  .timeline-v3 .event-time,
  .timeline-v2 .audit-event .event-time,
  .timeline-v2 .sales-summary-event .event-time,
  .timeline-page .activation-event .event-time,
  .timeline-page .employee-event .event-time,
  .timeline-page .sale-event:not(.sales-summary-event) .event-time {
    padding: 0;
    text-align: left;
  }

  .timeline-v2 .event-stamp,
  .timeline-v3 .event-stamp {
    color: var(--ui-meta);
    font-size: 12px;
    font-weight: 800;
    text-align: left;
  }

  .timeline-v2 .audit-card,
  .timeline-v2 .sales-card,
  .timeline-v2 .inline-event {
    width: 100%;
  }

  .timeline-v2 .inline-event {
    min-height: 36px;
    display: flex;
    padding: 8px 12px;
  }

  .timeline-v2 .sales-card,
  .timeline-v2 .sale-event:not(.sales-summary-event) .sales-card {
    min-height: 44px;
    grid-template-columns: minmax(0, 1fr);
    padding: 10px 12px;
  }

  .timeline-v2 .sales-meta {
    margin-top: 4px;
    font-size: 12px;
    text-align: left;
  }

  .timeline-v2 .sales-copy strong,
  .timeline-v2 .sale-event:not(.sales-summary-event) .sales-copy strong {
    font-size: 14px;
    white-space: normal;
  }

  .timeline-v2 .sales-copy span {
    font-size: 12px;
  }

  .timeline-v2 .sales-group-card .sales-group-summary {
    min-height: 46px;
    padding: 8px 10px 8px 12px;
  }

  .timeline-v2 .sales-transaction-card {
    margin: 0 12px 10px;
    overflow-x: auto;
  }

  .timeline-v2 .sales-transaction-head,
  .timeline-v2 .sales-transaction-row {
    min-width: 520px;
    grid-template-columns: 70px 108px 82px minmax(130px, 1fr);
  }

  .timeline-v2 .sales-transaction-row .sales-transaction-qty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    white-space: normal;
  }

  .timeline-v2 .sales-transaction-row .sales-transaction-qty .transaction-voided-label {
    margin-left: 0;
    line-height: 1.1;
  }

  .display-audit .audit-card-main {
    grid-template-columns: minmax(0, 1fr);
    padding: 11px 12px 5px;
  }

  .timeline-v2 .audit-title-row {
    flex-wrap: wrap;
    gap: 7px;
  }

  .timeline-v2 .audit-title-row h3 {
    font-size: 15px;
  }

  .timeline-v2 .status-chip {
    font-size: var(--ui-danger-pill-size);
    line-height: 20px;
  }

  .display-audit .audit-expanded {
    margin: 0 12px 12px;
  }

  .audit-detail-row {
    gap: 12px;
  }
}

.store-dashboard-page .manager-card {
  width: min(100% - 56px, 1680px);
  margin-top: 12px;
}

.store-dashboard-page .store-dashboard-controls-card {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) auto;
  align-items: center;
  gap: 28px;
  min-height: 88px;
  padding: 16px 20px;
}

.store-dashboard-page .store-dashboard-control-side {
  display: grid;
  justify-items: start;
  gap: 12px;
}

.store-dashboard-page .store-dashboard-account-side {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
}

.store-dashboard-page .manager-dashboard-card p {
  margin-top: 0;
}

.store-dashboard-page .manager-segments button {
  font-size: 13px;
  font-weight: 700;
}

.store-dashboard-page .manager-toolbar-actions button,
.store-dashboard-page .store-dashboard-add-button,
.store-dashboard-page .pill-button {
  font-size: 13px;
  font-weight: 700;
}

.store-dashboard-page .store-dashboard-table thead th {
  color: var(--ui-type-label-color);
  font-size: var(--ui-type-label-size);
  font-weight: var(--ui-type-label-weight);
  letter-spacing: var(--ui-type-label-spacing);
  line-height: 1.12;
}

.store-dashboard-page .store-dashboard-table tbody th {
  color: var(--ui-type-row-color);
  font-size: var(--ui-type-primary-size);
  font-weight: var(--ui-type-primary-weight);
}

.store-dashboard-page .store-dashboard-table tbody td,
.store-dashboard-page .store-dashboard-table .manager-metric {
  color: var(--ui-type-row-color);
  font-size: var(--ui-type-value-size);
  font-weight: var(--ui-type-value-weight);
}

.store-dashboard-page .store-dashboard-table .manager-metric.negative {
  color: var(--red);
  font-weight: 750;
}

.store-dashboard-page .store-dashboard-table .manager-metric.positive {
  color: var(--overview-primary);
  font-weight: 750;
}

.store-dashboard-page .store-dashboard-table .status-check {
  width: 16px;
  height: 10px;
}

.store-dashboard-page .store-dashboard-table .status-check::before {
  width: 16px;
  height: 9px;
  border-width: 0 0 4px 4px;
}

@media (max-width: 820px) {
  .store-dashboard-page .manager-card {
    width: min(100vw - 24px, 1680px);
  }

  .store-dashboard-page .store-dashboard-controls-card {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .store-dashboard-page .store-dashboard-account-side {
    align-items: flex-start;
    flex-direction: column;
  }
}

.portal-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--canvas);
}

.portal-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  min-width: 0;
  flex-direction: column;
  border-right: 1px solid var(--overview-border);
  background: #fff;
  box-shadow: var(--overview-shadow-soft);
}

.portal-logo {
  display: flex;
  height: 64px;
  align-items: center;
  border-bottom: 1px solid var(--overview-divider);
  padding: 0 18px;
}

.portal-logo img {
  display: block;
  width: 174px;
  max-width: 100%;
  height: auto;
}

.portal-sidebar-nav {
  display: grid;
  gap: 8px;
  padding: 14px 12px;
}

.portal-issues-section,
.portal-nav-group {
  border: 1px solid var(--overview-border);
  border-radius: 8px;
  background: #fff;
}

.portal-section-header {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  padding: 4px;
}

.portal-section-header > button:first-child,
.portal-nav-group summary {
  display: flex;
  min-height: 30px;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--overview-primary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  padding: 0 9px;
}

.portal-section-header > button:first-child:hover,
.portal-nav-group summary:hover {
  background: var(--ui-hover-bg);
}

.portal-reset {
  height: 26px;
  border: 1px solid var(--overview-border);
  border-radius: 7px;
  background: #fff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  padding: 0 8px;
}

.portal-count {
  display: inline-flex;
  min-width: 22px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--overview-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  line-height: 18px;
  padding: 0 6px;
}

.portal-issues-section.is-open .portal-section-header .portal-count {
  background: #8fa0b5;
}

.portal-issue-list {
  display: grid;
  gap: 3px;
  border-top: 1px solid var(--overview-divider);
  padding: 6px;
}

.portal-issue-list button {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--overview-primary);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 0 7px;
}

.portal-issue-list button span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-issue-list button:hover {
  background: var(--ui-hover-bg);
}

.portal-issue-list button.active {
  border-color: #b9c9dc;
  background: #eaf2ff;
}

.portal-issue-list button.active .portal-count {
  background: var(--blue);
}

.portal-nav-group {
  padding: 4px;
}

.portal-nav-group summary {
  list-style: none;
}

.portal-nav-group summary::-webkit-details-marker {
  display: none;
}

.portal-nav-group summary::after {
  width: 7px;
  height: 7px;
  border-right: 2px solid #8fa0b5;
  border-bottom: 2px solid #8fa0b5;
  content: "";
  transform: rotate(45deg);
  transition: transform 140ms ease;
}

.portal-nav-group[open] summary::after {
  transform: rotate(225deg);
}

.portal-nav-group a {
  display: flex;
  min-height: 30px;
  align-items: center;
  border-radius: 7px;
  color: var(--overview-primary);
  font-size: 13px;
  font-weight: 700;
  padding: 0 9px;
}

.portal-nav-group a:hover {
  background: var(--ui-hover-bg);
}

.portal-user-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 9px;
  margin: auto 12px 12px;
  border: 1px solid var(--overview-border);
  border-radius: 8px;
  background: var(--ui-panel-gray);
  padding: 10px;
}

.portal-user-card > span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #e8edf3;
  color: var(--overview-primary);
  font-size: 12px;
  font-weight: 850;
}

.portal-user-card strong,
.portal-user-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-user-card strong {
  color: var(--overview-primary);
  font-size: 13px;
  font-weight: 850;
}

.portal-user-card small {
  margin-top: 3px;
  color: var(--overview-meta);
  font-size: 11px;
  font-weight: 650;
}

.portal-user-card button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--overview-border);
  border-radius: 7px;
  background: #fff;
  color: var(--overview-primary);
  font-size: 13px;
  font-weight: 850;
}

.portal-main {
  min-width: 0;
}

.portal-main .store-dashboard-topbar {
  position: sticky;
  top: 0;
}

.portal-active-filter-row {
  display: flex;
  min-width: 0;
  min-height: 22px;
  align-items: center;
  gap: 9px;
  border-bottom: 0;
  background: transparent;
  padding: 0;
}

.portal-active-filter-row span {
  color: #465365;
  font-size: 12px;
  font-weight: 800;
}

.portal-active-filter-row strong {
  display: inline-flex;
  min-height: 18px;
  align-items: center;
  border: 1px solid #465365;
  border-radius: 8px;
  background: #465365;
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  padding: 3px 9px;
  white-space: nowrap;
}

.portal-active-filter-row p {
  min-width: 0;
  margin: 0;
  color: #465365;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-active-filter-row button {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.portal-active-filter-row button:hover {
  background: rgba(100, 116, 139, 0.12);
  color: #0f172a;
}

@media (max-width: 640px) {
  .portal-shell {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--overview-border);
  }

  .portal-sidebar-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-issues-section {
    grid-column: 1 / -1;
  }

  .portal-user-card {
    margin-top: 0;
  }
}

.portal-shell {
  grid-template-columns: 280px minmax(0, 1fr);
}

.portal-sidebar {
  overflow-y: auto;
  border-right: 1px solid #ccd6e2;
  background: #fff;
  box-shadow: none;
}

.portal-logo {
  height: 72px;
  padding: 0 16px;
}

.portal-logo img {
  width: 178px;
}

.portal-mobile-close,
.portal-mobile-backdrop,
.portal-mobile-menu-button {
  display: none;
}

.portal-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}

.portal-issues-section,
.portal-nav-group {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.portal-section-header {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 8px;
  padding: 0 8px;
  text-align: left;
}

.portal-issues-title-button,
.portal-nav-group summary {
  min-height: 34px;
  border-radius: 0;
  color: #8b9ab0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  line-height: 1;
  padding: 0;
  text-transform: uppercase;
}

.portal-issues-heading-group {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  text-align: left;
}

.portal-issues-title-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.portal-section-header:hover,
.portal-nav-group summary:hover {
  background: #f1f5f9;
  color: var(--ui-primary);
}

.portal-section-header:hover .portal-issues-title-button {
  color: var(--ui-primary);
}

.portal-section-title,
.portal-nav-group summary > span {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  text-align: left;
}

.portal-nav-icon {
  display: block;
  width: 18px;
  height: 18px;
  color: #9aa9bc;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.portal-issues-section.is-open .portal-section-header .portal-count {
  background: #a7b4c4;
}

.portal-section-header > button:first-child::after {
  content: none;
}

.portal-reset {
  height: 20px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  padding: 0;
}

.portal-issues-chevron-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.portal-issues-chevron-button:hover .portal-section-chevron {
  color: var(--ui-primary);
}

.portal-section-chevron {
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2px solid #8ea0b8;
  border-bottom: 2px solid #8ea0b8;
  transform: rotate(-45deg);
  transition: border-color 140ms ease, transform 140ms ease;
}

.portal-issues-section.is-open .portal-section-chevron {
  transform: rotate(45deg);
}

.portal-issue-list {
  gap: 4px;
  border-top: 0;
  padding: 6px 0 0;
}

.portal-issue-list button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 34px;
  align-items: center;
  justify-items: stretch;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #465365;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  padding: 6px 8px 6px 10px;
  text-align: left;
}

.portal-issue-list button span:first-child {
  min-width: 0;
  justify-self: start;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-issue-list button .portal-count {
  justify-self: end;
}

.portal-issue-list button:hover {
  background: #f1f5f9;
}

.portal-issue-list button.active {
  border-color: #9bbcff;
  border-width: 1px;
  background: #eaf2ff;
  box-shadow: none;
}

.portal-count,
.portal-issue-list button.active .portal-count {
  min-width: 26px;
  height: 18px;
  border-radius: 9px;
  background: #8b9ab0;
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  line-height: 18px;
  padding: 0 6px;
}

.portal-total-count {
  margin-left: 0;
}

.portal-nav-group {
  padding: 0;
}

.portal-nav-group summary {
  min-height: 30px;
  border-radius: 8px;
  color: #8b9ab0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  padding: 0 8px;
  text-transform: uppercase;
}

.portal-nav-group summary::after {
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2px solid #8ea0b8;
  border-bottom: 2px solid #8ea0b8;
  content: "";
  transform: rotate(-45deg);
  transition: border-color 140ms ease, transform 140ms ease;
}

.portal-nav-group[open] summary::after {
  transform: rotate(45deg);
}

.portal-nav-group[open] summary {
  margin-bottom: 8px;
}

.portal-nav-group a {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 14px;
  margin-left: 10px;
  border-radius: 8px;
  color: #465365;
  font-size: 14px;
  font-weight: 650;
  padding: 0 8px;
}

.portal-nav-group a:hover {
  background: #f1f5f9;
}

.portal-nav-group a .portal-nav-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: #91a0b3;
}

.portal-user-card {
  grid-template-columns: 34px minmax(0, 1fr) 30px;
  gap: 9px;
  margin: auto 16px 16px;
  border: 1px solid #d9e1ea;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.portal-main .store-dashboard-topbar {
  z-index: 30;
}

@media (max-width: 640px) {
  .portal-shell {
    display: block;
  }

  .portal-sidebar {
    position: fixed;
    z-index: 80;
    top: 0;
    left: 0;
    width: min(280px, calc(100vw - 44px));
    height: 100dvh;
    border-right: 1px solid var(--overview-border);
    border-bottom: 0;
    transform: translateX(-102%);
    transition: transform 180ms ease;
  }

  .portal-sidebar.is-mobile-open {
    transform: translateX(0);
  }

  .portal-mobile-backdrop {
    position: fixed;
    z-index: 70;
    inset: 0;
    border: 0;
    background: rgba(17, 24, 39, 0.28);
  }

  .portal-shell.is-mobile-nav-open .portal-mobile-backdrop {
    display: block;
  }

  .portal-mobile-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--overview-border);
    border-radius: 8px;
    background: #fff;
    color: var(--ui-primary);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
  }

  .portal-mobile-menu-button {
    display: inline-flex;
  }

  .portal-sidebar-nav {
    grid-template-columns: none;
  }

  .portal-issues-section {
    grid-column: auto;
  }
}

.portal-sidebar .portal-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.portal-sidebar .portal-issues-heading-group {
  flex: 1 1 auto;
  justify-content: flex-start;
  text-align: left;
}

.portal-sidebar .portal-issues-title-button,
.portal-sidebar .portal-section-title,
.portal-sidebar .portal-nav-group summary,
.portal-sidebar .portal-nav-group summary > span {
  justify-content: flex-start;
  text-align: left;
}

.portal-sidebar .portal-issues-chevron-button {
  flex: 0 0 auto;
}

.portal-sidebar .portal-section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
}

.portal-sidebar .portal-issues-heading-group {
  display: inline-flex;
  width: auto;
  min-width: 0;
  justify-self: start;
}

.portal-sidebar .portal-issues-title-button {
  width: auto;
  min-width: 0;
}

.portal-sidebar .portal-section-title {
  width: auto;
}

.portal-sidebar .portal-issues-chevron-button {
  justify-self: end;
}

.portal-sidebar .portal-nav-group summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  align-items: center;
}

.portal-sidebar .portal-nav-group summary::after {
  justify-self: end;
}

.portal-sidebar .portal-issues-section:not(.is-open)::after,
.portal-sidebar .portal-nav-group:not([open])::after {
  display: block;
  width: calc(100% - 32px);
  height: 1px;
  margin: 5px auto 0;
  background: #edf2f7;
  content: "";
}

.portal-sidebar .portal-sidebar-nav {
  gap: 20px;
  padding: 18px 20px;
}

.portal-sidebar .portal-nav-group summary {
  min-height: 24px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
  padding: 0 2px;
}

.portal-sidebar .portal-section-header {
  min-height: 24px;
  border-radius: 0;
  padding: 0 2px;
}

.portal-sidebar .portal-section-header:hover {
  background: transparent;
}

.portal-sidebar .portal-issues-title-button {
  min-height: 24px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.portal-sidebar .portal-section-header:hover .portal-issues-title-button {
  color: #8392a8;
}

.portal-sidebar .portal-section-title {
  gap: 12px;
}

.portal-sidebar .portal-section-title .portal-nav-icon {
  width: 18px;
  height: 18px;
  color: #9aa9bc;
  stroke-width: 2.2;
}

.portal-sidebar .portal-issues-section.is-open .portal-section-header {
  margin-bottom: 12px;
}

.portal-sidebar .portal-section-chevron {
  width: 7px;
  height: 7px;
  margin-right: 2px;
  border-color: #9aa9bc;
}

.portal-sidebar .portal-nav-group[open] summary {
  margin-bottom: 12px;
}

.portal-sidebar .portal-nav-group summary:hover {
  background: transparent;
  color: #8392a8;
}

.portal-sidebar .portal-nav-group summary > span {
  gap: 12px;
}

.portal-sidebar .portal-nav-group summary > span .portal-nav-icon {
  width: 18px;
  height: 18px;
  color: #9aa9bc;
  stroke-width: 2.2;
}

.portal-sidebar .portal-nav-group summary::after {
  width: 7px;
  height: 7px;
  margin-right: 2px;
  border-color: #9aa9bc;
}

.portal-sidebar .portal-nav-group a {
  min-height: 34px;
  gap: 10px;
  margin-left: 4px;
  color: #465365;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  padding: 0 8px;
}

.portal-sidebar .portal-nav-group a .portal-nav-icon {
  width: 18px;
  height: 18px;
  color: #9aa9bc;
  stroke-width: 2.4;
}

/* Store dashboard sidebar: match the production LottoShield nav proportions. */
.portal-shell {
  grid-template-columns: 236px minmax(0, 1fr);
}

.portal-sidebar {
  width: 236px;
  border-right: 1px solid #ccd6e2;
  box-shadow: none;
}

.portal-logo {
  height: 64px;
  padding: 0 14px;
}

.portal-logo img {
  width: 184px;
}

.portal-sidebar .portal-sidebar-nav {
  gap: 10px;
  padding: 8px 8px 16px;
}

.portal-sidebar .portal-section-header,
.portal-sidebar .portal-nav-group summary {
  min-height: 28px;
  padding: 0 12px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-sidebar .portal-section-title,
.portal-sidebar .portal-nav-group summary > span {
  gap: 9px;
}

.portal-sidebar .portal-section-title .portal-nav-icon,
.portal-sidebar .portal-nav-group summary > span .portal-nav-icon {
  width: 15px;
  height: 15px;
  color: #94a3b8;
  stroke-width: 2.2;
}

.portal-sidebar .portal-issues-section.is-open .portal-section-header,
.portal-sidebar .portal-nav-group[open] summary {
  margin-bottom: 4px;
}

.portal-sidebar .portal-issue-list {
  gap: 2px;
  padding: 0;
}

.portal-sidebar .portal-issue-list button,
.portal-sidebar .portal-nav-group a {
  min-height: 35px;
  margin: 2px 8px;
  border-radius: 8px;
  color: #475569;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.portal-sidebar .portal-issue-list button {
  padding: 8px 6px 8px 10px;
}

.portal-sidebar .portal-nav-group a {
  gap: 9px;
  padding: 8px 10px;
}

.portal-sidebar .portal-issue-list button:hover,
.portal-sidebar .portal-nav-group a:hover {
  background: #f1f5f9;
  color: #0f172a;
  box-shadow: 0 0 0 1px #e2e8f0;
}

.portal-sidebar .portal-issue-list button.active {
  border-color: transparent;
  background: #e0edff;
  color: #0f172a;
  box-shadow: none;
}

.portal-sidebar .portal-nav-group a .portal-nav-icon {
  width: 15px;
  height: 15px;
  color: #94a3b8;
  stroke-width: 2.2;
}

.portal-sidebar .portal-count,
.portal-sidebar .portal-issue-list button.active .portal-count {
  min-width: 26px;
  height: 18px;
  border-radius: 9px;
  background: #94a3b8;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  padding: 0 6px;
}

.portal-sidebar .portal-issues-section.is-open .portal-section-header .portal-count {
  background: #cbd5e1;
  color: #475569;
}

.portal-sidebar .portal-section-chevron,
.portal-sidebar .portal-nav-group summary::after {
  width: 7px;
  height: 7px;
  border-color: #cbd5e1;
}

.portal-sidebar .portal-reset {
  color: #2f6fae;
  font-size: 12px;
  font-weight: 600;
}

.portal-sidebar .portal-issues-section::after,
.portal-sidebar .portal-nav-group::after {
  width: auto;
  margin: 4px 8px 0;
  background: #e2e8f0;
}

.portal-sidebar .portal-issues-section::after,
.portal-sidebar .portal-nav-group::after {
  display: block;
  height: 1px;
  content: "";
}

.portal-user-card {
  margin: auto 8px 12px;
  border-color: #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.portal-sidebar .portal-issues-title-button {
  min-height: 28px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.portal-sidebar .portal-section-header:hover .portal-issues-title-button {
  color: #94a3b8;
}

.portal-sidebar .portal-section-title {
  gap: 9px;
}

.portal-sidebar .portal-section-title .portal-nav-icon {
  width: 15px;
  height: 15px;
  color: #94a3b8;
  stroke-width: 2.2;
}

.portal-sidebar .portal-issue-list button {
  min-height: 35px;
  margin: 2px 8px;
  border-radius: 8px;
  color: #475569;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 8px 8px 8px 12px;
}

.portal-sidebar .portal-issue-list button span:first-child {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.portal-sidebar .portal-section-header {
  align-items: center;
  min-height: 30px;
}

.portal-sidebar .portal-issues-heading-group,
.portal-sidebar .portal-section-title,
.portal-sidebar .portal-issues-chevron-button {
  align-items: center;
}

.portal-sidebar .portal-section-title .portal-nav-icon {
  display: block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}

.portal-sidebar .portal-issues-title-button,
.portal-sidebar .portal-reset {
  line-height: 16px;
}

.portal-sidebar .portal-total-count {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.portal-sidebar .portal-section-chevron {
  flex: 0 0 auto;
  transform: translateY(-1px) rotate(-45deg);
}

.portal-sidebar .portal-issues-section.is-open .portal-section-chevron {
  transform: translateY(-1px) rotate(45deg);
}

.portal-sidebar .portal-static-section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 30px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.portal-sidebar .portal-static-section-header > span,
.portal-sidebar .portal-static-section-header .portal-section-title {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.portal-sidebar .portal-static-section-header .portal-nav-icon {
  display: block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: #94a3b8;
  stroke-width: 2.2;
}

.portal-sidebar .portal-section-actions {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 12px;
}

.portal-sidebar .portal-static-section-header .portal-total-count {
  background: #cbd5e1;
  color: #475569;
}

.portal-sidebar .portal-static-link-list {
  display: grid;
  gap: 2px;
  padding: 0;
}

.portal-sidebar .portal-static-link-list a {
  display: flex;
  min-height: 35px;
  align-items: center;
  gap: 9px;
  margin: 2px 8px;
  border-radius: 8px;
  color: #475569;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 8px 10px;
}

.portal-sidebar .portal-static-link-list a:hover {
  background: #f1f5f9;
  color: #0f172a;
  box-shadow: 0 0 0 1px #e2e8f0;
}

.portal-sidebar .portal-static-link-list a .portal-nav-icon {
  width: 15px;
  height: 15px;
  color: #94a3b8;
  stroke-width: 2.2;
}

.portal-sidebar .portal-user-card {
  grid-template-columns: 44px minmax(0, 1fr) 26px;
  gap: 11px;
  min-height: 72px;
  margin: auto 8px 12px;
  border: 1px solid #d9e1ea;
  border-radius: 14px;
  background: #fff;
  padding: 10px 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.portal-sidebar .portal-user-card > span {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #8ea0b8;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
}

.portal-sidebar .portal-user-card strong {
  color: #0f172a;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
}

.portal-sidebar .portal-user-card small {
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}

.portal-sidebar .portal-user-card button {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #64748b;
  box-shadow: none;
  padding: 0;
}

.portal-sidebar .portal-user-card button:hover {
  background: #f1f5f9;
  color: #465365;
}

.portal-user-card-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.6;
}

/* Standalone store dashboard shell alignment. */
.portal-shell {
  --portal-header-height: 58px;
}

.portal-sidebar {
  border-right-color: #c7d3e1;
  box-shadow: 1px 0 0 #e2e8f0;
}

.portal-logo {
  height: var(--portal-header-height);
  align-items: center;
  border-bottom: 1px solid #d9e1ea;
  padding: 0 16px 0 14px;
}

.portal-logo img {
  width: 170px;
}

.portal-main .store-dashboard-topbar {
  height: var(--portal-header-height);
  min-height: var(--portal-header-height);
  flex: 0 0 var(--portal-header-height);
  border-bottom-color: #d9e1ea;
  padding: 0 28px;
}

.portal-main .store-dashboard-topbar .crumbs {
  gap: 9px;
}

.portal-main .store-dashboard-topbar .menu-button {
  margin-right: 12px;
}

@media (max-width: 820px) {
  .portal-main .store-dashboard-topbar {
    height: auto;
    min-height: var(--portal-header-height);
    padding: 10px 28px 16px;
  }

  .portal-main.store-dashboard-page .manager-card {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    margin-right: auto;
    margin-left: auto;
  }
}
