:root {
  --bg: #f6f1ea;
  --card: #fffdf8;
  --card-strong: rgba(255, 252, 247, 0.9);
  --card-soft: rgba(255, 247, 239, 0.72);
  --panel-border: rgba(223, 210, 199, 0.9);
  --panel-shadow: 0 24px 44px rgba(61, 44, 33, 0.08);
  --panel-shadow-soft: 0 14px 26px rgba(61, 44, 33, 0.06);
  --ink: #2f241f;
  --muted: #6f625c;
  --line: #dfd2c7;
  --brand: #9a3412;
  --brand-soft: #f8d9c9;
  --success: #1d6b43;
  --error: #8b1e3f;
}

* { box-sizing: border-box; }

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(154, 52, 18, 0.1), transparent 27rem),
    radial-gradient(circle at top left, rgba(240, 199, 169, 0.16), transparent 26rem),
    linear-gradient(180deg, #fdf8f2 0%, var(--bg) 52%, #f4ede4 100%);
  color: var(--ink);
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.shell-header, .top-nav-shell, .page {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

.shell-header {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  padding: 2.4rem 0 1.4rem;
  position: relative;
}

.shell-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.25rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(223, 210, 199, 0), rgba(223, 210, 199, 0.95) 14%, rgba(223, 210, 199, 0.95) 86%, rgba(223, 210, 199, 0));
}

.shell-title h1 {
  margin: 0;
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  letter-spacing: -0.04em;
}

.shell-title p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  max-width: 40rem;
}

.header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.85rem;
}

.header-search,
.active-session-tools {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-search input {
  min-width: 20rem;
}

.active-pill {
  background: var(--brand);
  color: white;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}

.top-nav-shell {
  position: relative;
  z-index: 850;
  padding-bottom: 1rem;
}

.top-nav {
  position: relative;
}

.top-nav-track {
  position: relative;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(223, 210, 199, 0.82);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.78), transparent 30%),
    linear-gradient(135deg, rgba(255, 254, 251, 0.9), rgba(255, 246, 236, 0.8));
  box-shadow:
    0 22px 42px rgba(61, 44, 33, 0.1),
    inset 0 1px 0 rgba(255,255,255,0.8);
  backdrop-filter: blur(18px);
}

.top-nav-track::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.38), rgba(255,255,255,0));
  pointer-events: none;
}

.top-nav-panel {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.top-nav-links {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.top-nav-indicator {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), #c76a2f 72%, #df8b44);
  box-shadow:
    0 14px 28px rgba(154, 52, 18, 0.22),
    inset 0 1px 0 rgba(255,255,255,0.28);
  opacity: 0;
  transform: translate3d(0, 0, 0);
  transition:
    transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    width 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    height 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.18s ease;
  pointer-events: none;
}

.top-nav-shell.is-ready .top-nav-indicator {
  opacity: 1;
}

.top-nav-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.95rem;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    color 0.18s ease,
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.top-nav-link span {
  position: relative;
  z-index: 1;
}

.top-nav-link + .top-nav-link::before {
  content: "";
  position: absolute;
  left: -0.28rem;
  top: 50%;
  width: 1px;
  height: 1.15rem;
  transform: translateY(-50%);
  background: linear-gradient(180deg, rgba(177, 139, 111, 0.08), rgba(177, 139, 111, 0.5), rgba(177, 139, 111, 0.08));
  pointer-events: none;
}

.top-nav-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.54), rgba(255,248,240,0.14));
  opacity: 0;
  transition: opacity 0.16s ease;
  pointer-events: none;
}

.top-nav-link:hover,
.top-nav-link:focus-visible {
  color: var(--brand);
  text-decoration: none;
  transform: translateY(-1px);
}

.top-nav-link:hover::after,
.top-nav-link:focus-visible::after {
  opacity: 1;
}

.top-nav-link:focus-visible,
.top-nav-toggle:focus-visible,
.top-nav-logout:focus-visible {
  outline: 2px solid rgba(154, 52, 18, 0.36);
  outline-offset: 3px;
}

.top-nav-link.is-active {
  color: white;
}

.top-nav-link.is-active:hover,
.top-nav-link.is-active:focus-visible {
  color: white;
}

.top-nav-link.is-active::after {
  opacity: 0;
}

.top-nav-logout-form {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.merchant-account-label {
  max-width: 10rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-nav-logout {
  min-height: 2.95rem;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,240,243,0.72));
  color: var(--error);
  border: 1px solid rgba(139, 30, 63, 0.24);
  box-shadow: 0 10px 22px rgba(61, 44, 33, 0.08);
}

.top-nav-logout:hover {
  box-shadow: 0 16px 26px rgba(61, 44, 33, 0.1);
}

.top-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,248,240,0.7));
  color: var(--brand);
  border: 1px solid rgba(223, 210, 199, 0.9);
  box-shadow: 0 12px 22px rgba(61, 44, 33, 0.08);
}

.top-nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.top-nav-shell.is-open .top-nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.top-nav-shell.is-open .top-nav-toggle span:nth-child(2) {
  opacity: 0;
}

.top-nav-shell.is-open .top-nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.header-revenue-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.revenue-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  background: rgba(255,255,255,0.84);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(61, 44, 33, 0.08);
}

.revenue-badge-primary {
  background: linear-gradient(135deg, var(--brand), #c76a2f);
  border-color: transparent;
  color: white;
}

.page {
  display: grid;
  gap: 1.25rem;
  align-content: start;
  padding-bottom: 3.6rem;
}

.hero-grid, .split-grid, .triple-grid, .table-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 0;
}

.workspace-grid {
  display: grid;
  gap: 1rem;
}

.hero-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.triple-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.table-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.92), transparent 35%),
    linear-gradient(145deg, var(--card-strong) 0%, var(--card-soft) 55%, rgba(255, 253, 248, 0.86) 100%);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  padding: 1.2rem 1.25rem;
  box-shadow:
    var(--panel-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 72px;
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0));
  pointer-events: none;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card h2,
.card h3 {
  margin-top: 0;
  letter-spacing: -0.03em;
}

.page-intro {
  padding: 1.45rem 1.5rem;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.8), transparent 32%),
    linear-gradient(135deg, rgba(154, 52, 18, 0.12), rgba(255, 255, 255, 0.96)),
    var(--card);
}

.page-intro h2,
.report-heading h2 {
  margin: 0.18rem 0 0.42rem;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.05;
}

.page-intro .helper-copy,
.report-heading .helper-copy {
  max-width: 48rem;
  font-size: 0.97rem;
}

.page-intro-compact h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.auth-shell {
  display: grid;
  place-items: start center;
  padding: 1.5rem 0 3rem;
}

.auth-card {
  width: min(34rem, 100%);
  padding: clamp(1.4rem, 4vw, 2.25rem);
}

.auth-card-wide {
  width: min(40rem, 100%);
}

.auth-card h2 {
  margin: 0.35rem 0 0.65rem;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.045em;
}

.auth-card > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.auth-form {
  margin-top: 1.25rem;
  padding: 0;
}

.auth-form small {
  color: var(--muted);
  font-weight: 500;
}

.auth-switch {
  margin: 1.1rem 0 0;
  text-align: center;
}

.marketing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(16rem, 0.75fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(1.6rem, 5vw, 3.5rem);
}

.marketing-hero h2 {
  max-width: 17ch;
  margin: 0.45rem 0 1rem;
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.marketing-lead {
  max-width: 43rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
}

.marketing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

a.button-secondary {
  border: 1px solid rgba(154, 52, 18, 0.35);
  background: rgba(255, 253, 248, 0.78);
  color: var(--brand);
  box-shadow: 0 10px 20px rgba(61, 44, 33, 0.07);
}

.marketing-note {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.marketing-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.marketing-proof span {
  display: grid;
  min-height: 5.2rem;
  place-items: center;
  padding: 0.8rem;
  border: 1px solid rgba(154, 52, 18, 0.18);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.78);
  color: var(--ink);
  font-weight: 800;
  text-align: center;
  box-shadow: 0 12px 24px rgba(61, 44, 33, 0.07);
}

.marketing-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.marketing-feature h3 {
  margin: 0.45rem 0 0.55rem;
  font-size: 1.3rem;
}

.marketing-feature p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.report-heading {
  margin-bottom: 1rem;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.72), transparent 32%),
    linear-gradient(135deg, rgba(154, 52, 18, 0.12), rgba(255, 255, 255, 0.94)),
    var(--card);
}

.eyebrow {
  margin: 0;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.hero-grid > .stat {
  padding: 1.15rem 1.2rem;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.7), transparent 30%),
    linear-gradient(145deg, rgba(255, 252, 247, 0.96), rgba(255, 247, 239, 0.82));
}

.section-card {
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.9), transparent 34%),
    linear-gradient(145deg, rgba(255, 253, 249, 0.96), rgba(255, 247, 239, 0.76));
}

.data-card {
  padding-top: 1.3rem;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.86), transparent 36%),
    linear-gradient(160deg, rgba(255,255,255,0.95), rgba(255, 250, 244, 0.84));
}

.wide-table-card {
  overflow-x: auto;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.monthly-summary-table {
  min-width: 1320px;
}

.report-dashboard-header {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.45rem 1.5rem;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.78), transparent 32%),
    linear-gradient(135deg, rgba(154, 52, 18, 0.13), rgba(255, 255, 255, 0.96)),
    var(--card);
}

.report-dashboard-header h2,
.report-section-heading h2 {
  margin: 0.18rem 0 0.42rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.05;
}

.report-header-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
  align-items: center;
}

.report-date-panel {
  flex: 0 0 min(24rem, 100%);
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(154, 52, 18, 0.3);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.88), transparent 34%),
    linear-gradient(145deg, rgba(255, 248, 238, 0.96), rgba(248, 217, 201, 0.42));
  box-shadow:
    0 18px 34px rgba(61, 44, 33, 0.09),
    inset 0 1px 0 rgba(255,255,255,0.78);
}

.report-date-panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

.report-date-panel-heading span {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-date-panel-heading strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.report-date-panel .snapshot-date-filter,
.report-date-panel .date-picker-trigger {
  width: 100%;
}

.report-date-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.report-date-context,
.report-range-links {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.7rem;
  padding: 0.52rem 0.72rem;
  border: 1px solid rgba(223, 210, 199, 0.76);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.84), rgba(255,248,240,0.62));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
}

.report-date-context {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  min-width: 10.5rem;
}

.report-date-context span,
.report-kpi-card span,
.report-mini-card span,
.aging-bucket span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.report-date-context strong {
  color: var(--ink);
}

.report-range-links a {
  padding: 0.38rem 0.55rem;
  border-radius: 10px;
  color: var(--brand);
  font-weight: 800;
  white-space: nowrap;
}

.report-range-links a:hover {
  background: rgba(154, 52, 18, 0.08);
  text-decoration: none;
}

.report-section-nav {
  display: flex;
  gap: 0.7rem;
  overflow-x: auto;
  padding: 0.72rem;
  border: 1px solid rgba(223, 210, 199, 0.78);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.82), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,244,233,0.74));
  box-shadow:
    0 18px 34px rgba(61, 44, 33, 0.1),
    inset 0 1px 0 rgba(255,255,255,0.78);
}

.report-section-nav a {
  flex: 0 0 auto;
  min-height: 2.55rem;
  padding: 0.68rem 0.95rem;
  border: 1px solid rgba(154, 52, 18, 0.26);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,248,240,0.76));
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(61, 44, 33, 0.07);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease, color 0.14s ease;
}

.report-section-nav a:hover {
  background: linear-gradient(180deg, rgba(255,250,244,0.96), rgba(248,217,201,0.7));
  color: var(--brand);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(154, 52, 18, 0.12);
}

.report-section-nav a.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #b34a1c 0%, var(--brand) 72%);
  color: white;
  box-shadow: 0 16px 28px rgba(154, 52, 18, 0.22);
}

.report-section {
  display: grid;
  gap: 1rem;
  scroll-margin-top: 1rem;
}

.report-section-heading {
  display: grid;
  gap: 0.25rem;
}

.report-section-heading h2 {
  margin-bottom: 0;
}

.report-kpi-grid,
.report-mini-grid,
.report-card-grid {
  display: grid;
  gap: 1rem;
}

.report-kpi-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.report-kpi-grid-focused {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.report-mini-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.monthly-highlight-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.report-card-grid.four-up {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.report-card-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-kpi-card,
.report-mini-card {
  padding: 1rem 1.05rem;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.78), transparent 34%),
    linear-gradient(145deg, rgba(255, 252, 247, 0.97), rgba(255, 246, 235, 0.82));
}

.report-kpi-card strong {
  display: block;
  margin-top: 0.38rem;
  font-size: clamp(1.45rem, 2.8vw, 2.15rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.report-kpi-card p,
.report-mini-card p {
  margin: 0.42rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.report-mini-card strong {
  display: block;
  margin-top: 0.32rem;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  letter-spacing: -0.035em;
}

.report-kpi-card.is-watch,
.report-mini-card.is-watch,
.aging-bucket.is-watch,
.attention-row {
  border-color: rgba(154, 52, 18, 0.28);
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.8), transparent 34%),
    linear-gradient(145deg, rgba(255, 248, 235, 0.98), rgba(248, 217, 201, 0.56));
}

.report-support-card {
  max-width: none;
}

.report-support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.report-compact-card h3,
.report-card-grid h3 {
  margin: 0 0 0.75rem;
}

.report-metric-list li {
  align-items: baseline;
}

.report-metric-list span {
  min-width: 0;
}

.report-metric-list strong {
  white-space: nowrap;
  text-align: right;
}

.empty-state,
.attention-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.attention-note {
  margin-top: 0.85rem;
  padding: 0.72rem 0.8rem;
  border: 1px solid rgba(154, 52, 18, 0.22);
  border-radius: 12px;
  background: rgba(248, 217, 201, 0.34);
  color: var(--brand);
  font-weight: 700;
}

.aging-bucket-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.aging-bucket {
  padding: 0.75rem 0.8rem;
  border: 1px solid rgba(223, 210, 199, 0.78);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.72);
}

.aging-bucket strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.aging-bucket small {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
}

.report-table {
  min-width: 720px;
  table-layout: fixed;
}

.report-table th {
  max-width: 10.5rem;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  line-height: 1.25;
}

.report-table td {
  white-space: nowrap;
}

.monthly-summary-table th {
  min-width: 5.8rem;
  max-width: 9.5rem;
}

.report-table th:not(:first-child),
.report-table td:not(:first-child) {
  text-align: right;
}

.report-table td:first-child,
.report-table th:first-child {
  text-align: left;
}

.live-session-table {
  min-width: 1500px;
}

.customer-report-table {
  min-width: 820px;
}

.workspace-card {
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.84), transparent 32%),
    linear-gradient(150deg, rgba(255, 253, 248, 0.94), rgba(255, 244, 235, 0.78));
}

.stat strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 2rem;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}

.form-card label, .stack-form, .action-stack {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-card {
  gap: 0.95rem;
  padding: 1.28rem 1.3rem;
}

.form-card h2 {
  margin-bottom: 0.2rem;
}

.form-card label {
  margin-bottom: 0.7rem;
  color: var(--muted);
  position: relative;
  font-weight: 600;
}

.form-card label input,
.form-card label select,
.form-card label textarea {
  margin-top: 0.08rem;
}

.item-info-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 100%;
}

.item-info-card h2 {
  margin-bottom: 0;
}

.item-info-status {
  margin: 0;
  color: var(--muted);
  font-weight: 400;
}

.item-info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 0.85rem;
  margin: 0;
}

.item-info-list div {
  min-width: 0;
  padding: 0.65rem 0.7rem;
  border: 1px solid rgba(223, 210, 199, 0.72);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.72);
}

.item-info-list dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.item-info-list dd {
  margin: 0.2rem 0 0;
  color: var(--ink);
  font-weight: 400;
  overflow-wrap: anywhere;
}

.item-info-list .item-info-wide {
  grid-column: 1 / -1;
}

input, textarea, select, button {
  font: inherit;
}

input, textarea, select {
  width: 100%;
  border: 1px solid rgba(223, 210, 199, 0.92);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,249,243,0.88));
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.82);
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border-color: rgba(154, 52, 18, 0.22);
  padding-right: 3.8rem;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M4.75 6.75L9 11L13.25 6.75' stroke='%23724a34' stroke-width='2.05' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(223, 210, 199, 0.55), rgba(223, 210, 199, 0.55)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(248, 237, 228, 0.6)),
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,249,243,0.88));
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-position:
    right 1rem center,
    right 2.7rem center,
    right 0.24rem center,
    0 0;
  background-origin: padding-box, padding-box, padding-box, border-box;
  background-clip: padding-box, padding-box, padding-box, border-box;
  background-size:
    0.95rem,
    1px calc(100% - 1rem),
    2.35rem calc(100% - 0.45rem),
    auto;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.82),
    0 8px 18px rgba(61, 44, 33, 0.04);
  transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

select:hover {
  border-color: rgba(154, 52, 18, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.86),
    0 10px 20px rgba(61, 44, 33, 0.06);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: rgba(154, 52, 18, 0.4);
  box-shadow:
    0 0 0 4px rgba(154, 52, 18, 0.09),
    inset 0 1px 0 rgba(255,255,255,0.88);
}

.quantity-input {
  max-width: 7rem;
}

.field-has-error input,
.field-has-error select,
.field-has-error textarea {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(139, 30, 63, 0.13);
}

.field-error-popover {
  align-self: flex-start;
  background: var(--error);
  color: white;
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(61, 44, 33, 0.18);
}

button {
  border: none;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  background: linear-gradient(135deg, #b34a1c 0%, var(--brand) 72%);
  color: white;
  cursor: pointer;
  box-shadow: 0 14px 24px rgba(154, 52, 18, 0.18);
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 28px rgba(154, 52, 18, 0.2);
  filter: saturate(1.04);
}

button:disabled,
button:disabled:hover {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
  filter: grayscale(0.25);
  box-shadow: none;
}

button.top-nav-toggle,
button.top-nav-logout {
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease,
    filter 0.14s ease,
    background 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease;
}

button.top-nav-toggle {
  background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,248,240,0.7));
  color: var(--brand);
  border: 1px solid rgba(223, 210, 199, 0.9);
  box-shadow: 0 12px 22px rgba(61, 44, 33, 0.08);
}

button.top-nav-logout {
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,240,243,0.72));
  color: var(--error);
  border: 1px solid rgba(139, 30, 63, 0.24);
  box-shadow: 0 10px 22px rgba(61, 44, 33, 0.08);
}

button.top-nav-toggle:hover,
button.top-nav-logout:hover {
  filter: none;
}

button.ghost {
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,248,240,0.62));
  color: var(--brand);
  border: 1px solid rgba(154, 52, 18, 0.4);
  box-shadow: 0 10px 20px rgba(61, 44, 33, 0.06);
  min-height: 2.2rem;
  padding: 0.55rem 0.8rem;
  font-size: 0.9rem;
}

a.button,
button,
button.ghost {
  font-weight: 700;
}

a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #b34a1c 0%, var(--brand) 72%);
  color: white;
  box-shadow: 0 14px 24px rgba(154, 52, 18, 0.18);
  text-decoration: none;
}

a.button:hover {
  text-decoration: none;
}

a.button.ghost {
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,248,240,0.62));
  color: var(--brand);
  border: 1px solid rgba(154, 52, 18, 0.4);
  box-shadow: 0 10px 20px rgba(61, 44, 33, 0.06);
  min-height: 2.2rem;
  padding: 0.55rem 0.8rem;
  font-size: 0.9rem;
}

button.ghost.danger {
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,242,245,0.68));
  color: var(--error);
  border: 1px solid rgba(139, 30, 63, 0.35);
}

button.danger, .flash-error {
  background: var(--error);
}

.card-toolbar, .inline-form {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.card-heading,
.inline-filter {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.card-heading {
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(223, 210, 199, 0.65);
}

.card-heading h2 {
  margin: 0;
}

.card-toolbar {
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(223, 210, 199, 0.65);
}

.inline-filter,
.inline-form {
  padding: 0.5rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,248,240,0.56));
  border: 1px solid rgba(223, 210, 199, 0.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
}

.inline-filter select,
.inline-form select {
  min-width: 11rem;
}

.card.is-date-picker-open {
  overflow: visible;
  z-index: 20;
}

.card.is-date-picker-open .card-heading {
  z-index: 50;
}

.snapshot-date-filter {
  position: relative;
  align-items: stretch;
  padding: 0.38rem;
}

.date-picker-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 11rem;
  min-height: 2.7rem;
  padding: 0.64rem 0.82rem;
  border: 1px solid rgba(154, 52, 18, 0.28);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,249,243,0.9));
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.82),
    0 8px 18px rgba(61, 44, 33, 0.04);
}

.date-picker-trigger:hover,
.date-picker-trigger:focus-visible {
  filter: none;
  border-color: rgba(154, 52, 18, 0.46);
  box-shadow:
    0 0 0 4px rgba(154, 52, 18, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.88);
}

.date-picker-icon {
  position: relative;
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid rgba(154, 52, 18, 0.68);
  border-radius: 4px;
}

.date-picker-icon::before,
.date-picker-icon::after {
  content: "";
  position: absolute;
  top: -0.28rem;
  width: 0.18rem;
  height: 0.42rem;
  border-radius: 999px;
  background: rgba(154, 52, 18, 0.68);
}

.date-picker-icon::before {
  left: 0.2rem;
}

.date-picker-icon::after {
  right: 0.2rem;
}

.date-picker-popover {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  width: min(23rem, calc(100vw - 2rem));
  padding: 0.85rem;
  border: 1px solid rgba(223, 210, 199, 0.92);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.98), transparent 35%),
    linear-gradient(160deg, #fffdf8, #fff5ec);
  box-shadow: 0 22px 42px rgba(61, 44, 33, 0.16);
  z-index: 40;
}

.date-picker-align-right .date-picker-popover {
  left: auto;
  right: 0;
}

.date-picker-header {
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr) 4.4rem;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.date-picker-header strong {
  text-align: center;
  font-size: 0.98rem;
}

.date-picker-nav {
  min-height: 2.2rem;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.84), rgba(255,248,240,0.7));
  color: var(--brand);
  border: 1px solid rgba(154, 52, 18, 0.28);
  box-shadow: 0 8px 16px rgba(61, 44, 33, 0.06);
  font-size: 0.86rem;
}

.date-picker-nav:hover {
  filter: none;
  box-shadow: 0 10px 18px rgba(61, 44, 33, 0.08);
}

.date-picker-nav:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
  box-shadow: none;
}

.date-picker-weekdays,
.date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}

.date-picker-weekdays {
  margin-bottom: 0.42rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.date-picker-day {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  min-width: 0;
  min-height: 2.15rem;
  padding: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #b34a1c 0%, var(--brand) 72%);
  color: white;
  font-size: 0.9rem;
  box-shadow: 0 10px 18px rgba(154, 52, 18, 0.16);
}

.date-picker-day:hover,
.date-picker-day:focus-visible {
  filter: saturate(1.04);
  transform: translateY(-1px);
}

.date-picker-day.is-inactive {
  background: rgba(229, 219, 209, 0.42);
  color: rgba(91, 78, 70, 0.45);
  border: 1px solid rgba(223, 210, 199, 0.6);
  box-shadow: none;
}

.date-picker-day.is-inactive:hover {
  filter: none;
  transform: none;
}

.date-picker-day.is-selected {
  outline: 3px solid rgba(154, 52, 18, 0.18);
  outline-offset: 2px;
  background: linear-gradient(135deg, var(--success), #2c8a5b);
}

.date-picker-empty {
  visibility: hidden;
  box-shadow: none;
}

.shipping-filters {
  justify-content: flex-start;
}

.shipping-section-nav {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.shipping-section-nav a {
  display: inline-flex;
  border: 1px solid rgba(223, 210, 199, 0.9);
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,248,240,0.7));
  box-shadow: 0 10px 20px rgba(61, 44, 33, 0.06);
}

.shipping-group-stack {
  display: grid;
  gap: 1rem;
}

.shipping-package {
  padding: 1rem 1.05rem;
}

.shipping-package-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.8rem;
}

.shipping-package-header h3 {
  margin: 0 0 0.2rem;
}

.package-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-open-box {
  background: #f3e8ff;
  color: #6b21a8;
  border: 1px solid #dcc7ff;
}

.status-ready {
  background: #d7f0f5;
  color: #0f5d6b;
  border: 1px solid #b7dfe8;
}

.status-packed {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.status-shipped {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.shipping-package-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 0.9rem;
  padding: 0.85rem;
  border: 1px solid rgba(223, 210, 199, 0.84);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,248,241,0.92), rgba(255,253,248,0.84));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}

.shipping-package-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.shipping-package-summary strong {
  display: block;
  margin-top: 0.15rem;
}

.shipping-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.shipping-selection-form {
  display: grid;
  gap: 0.65rem;
}

.shipping-selection-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.small-button {
  padding: 0.55rem 0.8rem;
  min-height: 2.2rem;
  font-size: 0.9rem;
}

.table-actions {
  white-space: nowrap;
}

.table-actions,
.table-actions form {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.table-actions form {
  margin: 0;
}

.table-actions .button,
.table-actions button {
  margin: 0;
}

.inventory-toolbar-heading {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.print-label-button {
  width: 7.3rem;
  min-width: 7.3rem;
}

.printer-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.printer-setup-grid {
  display: grid;
  grid-template-columns: minmax(18rem, 0.85fr) minmax(22rem, 1.15fr);
  gap: 1rem;
  align-items: start;
}

.printer-diagnostic-panel,
.printer-preview-panel {
  min-width: 0;
}

.printer-status-list {
  display: grid;
  gap: 0;
  margin: 0 0 1rem;
}

.printer-status-list > div {
  display: grid;
  grid-template-columns: minmax(7rem, 0.45fr) minmax(10rem, 1fr);
  gap: 0.8rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(223, 210, 199, 0.65);
}

.printer-status-list dt {
  color: var(--muted);
  font-weight: 700;
}

.printer-status-list dd {
  margin: 0;
  font-weight: 800;
}

.printer-status-list dd[data-tone="success"] { color: #17653d; }
.printer-status-list dd[data-tone="warning"] { color: #8a5914; }
.printer-status-list dd[data-tone="error"] { color: var(--error); }
.printer-status-list dd[data-tone="working"] { color: #245c78; }

.printer-label-stage {
  min-height: 16rem;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  border: 1px solid rgba(112, 126, 134, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(45deg, rgba(68, 91, 103, 0.055) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(68, 91, 103, 0.055) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(68, 91, 103, 0.055) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(68, 91, 103, 0.055) 75%),
    #f8fafb;
  background-size: 24px 24px;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
}

.printer-label-stage img {
  display: block;
  width: min(100%, 34rem);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(28, 40, 47, 0.16));
}

.printer-label-stage:has(img:not([hidden])) .printer-preview-placeholder {
  display: none;
}

.printer-preview-placeholder {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.printer-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 10000;
  max-width: min(30rem, calc(100% - 2rem));
  padding: 0.85rem 1rem;
  border-radius: 8px;
  color: white;
  background: #17653d;
  box-shadow: 0 18px 40px rgba(28, 40, 47, 0.24);
  opacity: 0;
  transform: translateY(0.75rem);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.printer-toast[data-tone="error"] {
  background: var(--error);
}

.printer-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.payments-grid {
  align-items: start;
}

.bulk-payment-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.bulk-payment-toolbar > div {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.bulk-balance-list {
  display: grid;
  gap: 0.45rem;
  max-height: 23rem;
  overflow: auto;
  margin-bottom: 0.85rem;
  padding-right: 0.2rem;
}

.bulk-balance-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  padding: 0.62rem 0.68rem;
  border: 1px solid rgba(223, 210, 199, 0.76);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.7);
  color: var(--ink);
}

.bulk-balance-row input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--brand);
  box-shadow: none;
}

.bulk-balance-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.bulk-balance-row strong {
  white-space: nowrap;
}

.shipping-ship-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.shipping-ship-form input {
  width: auto;
  min-width: 10rem;
}

.metric-list, .simple-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.metric-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid rgba(223, 210, 199, 0.7);
}

.metric-list li.metric-subheading {
  display: block;
  padding-top: 0.9rem;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.simple-list li {
  padding: 0.45rem 0;
  border-bottom: 1px dashed rgba(223, 210, 199, 0.55);
}

.conversion-box {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(223, 210, 199, 0.84);
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.65), transparent 30%),
    linear-gradient(180deg, rgba(255,248,241,0.94) 0%, rgba(255,253,248,0.86) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.62);
}

.conversion-box span,
.helper-copy {
  color: var(--muted);
}

.helper-copy {
  line-height: 1.48;
}

.spotlight-money {
  display: inline-block;
  margin: 0.2rem 0 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), #c76a2f);
  color: white;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  box-shadow: 0 18px 36px rgba(154, 52, 18, 0.18);
}

.global-search-form {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.global-search-form input {
  flex: 1 1 auto;
}

.conversion-box strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.35rem;
}

.chart-card {
  overflow-x: auto;
  padding-top: 3rem;
}

.bar-chart-shell {
  display: grid;
  grid-template-columns: 72px minmax(640px, 1fr);
  gap: 0.9rem;
  align-items: end;
}

.bar-chart-axis {
  height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: right;
  padding-bottom: 1.6rem;
}

.bar-chart {
  min-width: 640px;
  height: 220px;
  display: flex;
  align-items: end;
  justify-content: flex-start;
  gap: 0.28rem;
  border-left: 1px solid rgba(193, 149, 95, 0.35);
  border-bottom: 1px solid rgba(193, 149, 95, 0.35);
  padding: 0.5rem 0.35rem 1.6rem 0.5rem;
  background:
    linear-gradient(to top, rgba(193, 149, 95, 0.08) 1px, transparent 1px) 0 0 / 100% 33.33%;
}

.bar-chart-column {
  flex: 0 0 22px;
  width: 22px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  gap: 0.35rem;
  position: relative;
}

.bar-chart-bar {
  width: 16px;
  min-height: 3px;
  background: linear-gradient(180deg, #d97706 0%, #9a3412 100%);
  border-radius: 10px 10px 0 0;
  box-shadow: inset 0 0 0 1px rgba(255, 247, 239, 0.18);
  position: relative;
  cursor: default;
}

.bar-chart-bar.empty {
  background: rgba(193, 149, 95, 0.18);
  box-shadow: none;
}

.bar-chart-bar::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  background: rgba(42, 24, 16, 0.96);
  color: #fff7ef;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  font-size: 0.72rem;
  line-height: 1.25;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 10px 24px rgba(42, 24, 16, 0.18);
  transition: opacity 0.12s ease;
  z-index: 2;
}

.bar-chart-bar:hover::after {
  opacity: 1;
}

.bar-chart-label {
  font-size: 0.76rem;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  width: 38px;
  transform: rotate(-35deg);
  transform-origin: top center;
  margin-top: 0.15rem;
}

.line-chart-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  min-width: 640px;
  padding-top: 0.75rem;
}

.line-chart-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  flex: 1 1 0;
  min-width: 0;
}

.bar-date,
.bar-amount {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.range-summary {
  border-top: 1px solid rgba(223, 210, 199, 0.7);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}

th, td {
  text-align: left;
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid rgba(218, 202, 190, 0.86);
  vertical-align: top;
}

thead th {
  color: #7c6b63;
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 251, 246, 0.84);
}

.report-table thead th {
  max-width: 10.5rem;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  line-height: 1.25;
}

.monthly-summary-table thead th {
  min-width: 6.8rem;
  max-width: 9.5rem;
}

.monthly-summary-table tbody td {
  border-bottom-color: rgba(211, 190, 175, 0.9);
}

.monthly-summary-table tbody tr:nth-child(even) {
  background: rgba(255, 249, 242, 0.66);
}

tbody tr:nth-child(even) {
  background: rgba(255, 250, 244, 0.5);
}

tbody tr {
  transition: background 0.12s ease;
}

tbody tr:hover {
  background: rgba(255, 247, 239, 0.5);
}

.intake-intro,
.label-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.intake-intro {
  padding: 0.85rem 1rem;
}

.intake-intro h2 {
  margin: 0.12rem 0 0;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.intake-form {
  display: grid;
  gap: 1rem;
}

.intake-header-card {
  padding: 0.95rem 1rem;
}

.intake-claim-context {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-top: 0.85rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(37, 124, 82, 0.28);
  border-radius: 0.75rem;
  background: rgba(228, 247, 237, 0.78);
  color: #17653d;
}

.intake-header-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}

.intake-header-content {
  display: grid;
  grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
}

.intake-supplier-panel h2 {
  margin-bottom: 0.55rem;
}

.intake-back-button {
  margin-top: 0.2rem;
}

.intake-lots-toolbar {
  display: grid;
  grid-template-columns: minmax(18rem, 28rem) minmax(0, 1fr);
  align-items: end;
  gap: 1rem;
}

.intake-lots-supplier {
  margin: 0;
}

.intake-lots-supplier select {
  min-height: 3.05rem;
}

.intake-lots-actions {
  justify-content: flex-end;
}

.intake-voice-status {
  min-height: 1.35rem;
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-weight: 700;
}

button.is-recording {
  background: var(--error);
  color: white;
  border-color: rgba(139, 30, 63, 0.6);
}

.intake-simple-header {
  display: grid;
  grid-template-columns: minmax(14rem, 24rem);
  gap: 0.85rem;
}

.intake-note-field {
  grid-column: 1 / -1;
}

.intake-layout {
  display: block;
}

.intake-lines-card {
  min-width: 0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.intake-cost-cell {
  min-width: 9.5rem;
}

.intake-mj-code-field,
.intake-rupee-cost-field {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 0.4rem;
}

.intake-mj-code-field[hidden],
.intake-rupee-cost-field[hidden] {
  display: none;
}

.intake-mj-code-field input {
  text-transform: uppercase;
  font-weight: 800;
}

.intake-cost-result {
  min-height: 1rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25;
}

.intake-table {
  min-width: 64rem;
}

.intake-table th:nth-child(2),
.intake-table th:nth-child(3),
.intake-table th:nth-child(4) {
  width: 7rem;
}

.intake-table th:last-child,
.intake-table td:last-child {
  width: 12.5rem;
}

.intake-row-actions {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: flex-start;
  white-space: nowrap;
}

.code-range-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(154, 52, 18, 0.1);
  color: var(--brand);
  font-weight: 800;
  white-space: nowrap;
}

.line-warning {
  display: block;
  margin-top: 0.35rem;
  color: var(--error);
  font-size: 0.82rem;
  font-weight: 700;
}

.intake-actions {
  justify-content: flex-end;
  margin-top: 1rem;
}

.intake-summary-card {
  min-width: 0;
}

.intake-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.intake-summary-grid div {
  min-height: 4.75rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(223, 210, 199, 0.8);
  border-radius: 14px;
  background: rgba(255, 251, 246, 0.68);
}

.intake-summary-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.intake-summary-grid strong {
  display: block;
  margin-top: 0.25rem;
  font-size: clamp(1.05rem, 1.55vw, 1.32rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.intake-category-totals,
.intake-expanded-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.intake-category-totals span,
.intake-expanded-list span {
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(223, 210, 199, 0.8);
  border-radius: 999px;
  background: rgba(255, 251, 246, 0.76);
  font-weight: 700;
}

.intake-alert-list {
  display: grid;
  gap: 0.55rem;
  margin: 0.8rem 0;
}

.intake-alert {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  font-weight: 700;
}

.intake-alert-error {
  background: rgba(139, 30, 63, 0.1);
  color: var(--error);
  border: 1px solid rgba(139, 30, 63, 0.26);
}

.intake-alert-warning {
  background: rgba(154, 52, 18, 0.1);
  color: var(--brand);
  border: 1px solid rgba(154, 52, 18, 0.24);
}

.intake-confirm-mismatch {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: fit-content;
  margin: 0.9rem 0;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(154, 52, 18, 0.1);
  font-weight: 800;
}

.intake-confirm-mismatch input {
  width: auto;
}

.print-only {
  display: none;
}

.label-sheet-header .button-row {
  justify-content: flex-end;
}

.label-sheet-actions {
  display: grid;
  gap: 0.45rem;
  justify-items: end;
}

.intake-dymo-status {
  margin: 0;
  max-width: 38rem;
  text-align: right;
}

.intake-dymo-status[data-tone="success"] { color: #17653d; }
.intake-dymo-status[data-tone="working"] { color: #245c78; }
.intake-dymo-status[data-tone="error"] { color: var(--error); }

.closeout-duration-card {
  margin-bottom: 1rem;
}

.closeout-duration-form {
  display: grid;
  grid-template-columns: minmax(15rem, 1fr) minmax(13rem, 18rem) auto;
  gap: 1rem;
  align-items: end;
}

.closeout-duration-form h2,
.closeout-duration-form p,
.closeout-duration-form label {
  margin: 0;
}

.closeout-duration-form .duration-label-text {
  display: inline-flex;
  gap: 0.3rem;
  align-items: baseline;
  white-space: nowrap;
}

.closeout-duration-form .duration-unit {
  color: var(--muted);
  font-weight: 500;
}

.closeout-breakdown-card {
  margin-top: 1rem;
}

.closeout-breakdown-card .card-heading {
  align-items: end;
}

.closeout-breakdown-card .card-heading p {
  margin: 0;
}

.closeout-breakdown-table {
  min-width: 760px;
}

.closeout-breakdown-table th:nth-child(1) { width: 18%; }
.closeout-breakdown-table th:nth-child(2) { width: 58%; }
.closeout-breakdown-table th:nth-child(3) { width: 10%; }
.closeout-breakdown-table th:nth-child(4) { width: 14%; }

.closeout-customer-cell a {
  display: grid;
  gap: 0.2rem;
}

.closeout-customer-cell span {
  color: var(--muted);
  font-size: 0.88rem;
}

.closeout-claim-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.closeout-claim-items li {
  display: inline-flex;
  gap: 0.38rem;
  align-items: center;
  padding: 0.38rem 0.55rem;
  border: 1px solid rgba(223, 210, 199, 0.9);
  border-radius: 10px;
  background: rgba(255, 250, 245, 0.8);
  white-space: nowrap;
}

.closeout-claim-items li span {
  color: var(--muted);
  font-size: 0.84rem;
}

.closeout-number-cell,
.closeout-total-cell {
  font-weight: 800;
  white-space: nowrap;
}

.label-sheet-table {
  font-size: 1.06rem;
}

.label-sheet-table th,
.label-sheet-table td {
  padding: 1rem 0.8rem;
}

.label-sheet-table .label-select-column {
  width: 3.25rem;
  padding-left: 0.65rem;
  padding-right: 0.35rem;
  text-align: center;
}

.label-select-checkbox {
  width: 1.2rem;
  height: 1.2rem;
  margin: 0;
  accent-color: var(--brand);
  cursor: pointer;
}

.label-code,
.label-price {
  font-size: 1.25rem;
  font-weight: 900;
}

.flash-stack {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(36rem, calc(100% - 2rem));
  display: grid;
  gap: 0.7rem;
  z-index: 9999;
}
.flash {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  color: white;
  background: var(--success);
  box-shadow: 0 18px 40px rgba(61, 44, 33, 0.18);
}
.flash-error { background: var(--error); }
.flash-popup {
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.voice-command-shell {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto 1rem;
  padding: 0.85rem;
  border: 1px solid rgba(223, 210, 199, 0.82);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--panel-shadow-soft);
}

.voice-command-bar {
  display: grid;
  grid-template-columns: minmax(8rem, 10rem) minmax(12rem, 1fr) auto auto;
  gap: 0.65rem;
  align-items: center;
}

.voice-command-bar input,
.voice-command-bar select {
  min-height: 3.15rem;
}

.voice-command-examples {
  position: relative;
  margin-top: 0.55rem;
}

.voice-command-example-toggle {
  min-height: 2.45rem;
  padding: 0.5rem 0.78rem;
  border-radius: 8px;
  font-size: 0.92rem;
}

.voice-command-example-toggle::after {
  content: "v";
  display: inline-block;
  margin-left: 0.45rem;
  transform: translateY(-0.05rem);
}

.voice-command-example-toggle.is-open::after {
  transform: translateY(0.08rem) rotate(180deg);
}

.voice-command-example-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.45rem);
  left: 0;
  width: min(48rem, 100%);
  padding: 0.7rem;
  border: 1px solid rgba(223, 210, 199, 0.85);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 18px 34px rgba(61, 44, 33, 0.14);
  color: var(--ink);
}

.voice-command-example-heading {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.voice-command-example-list {
  display: grid;
  gap: 0.35rem;
}

.voice-command-example-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(7.5rem, 0.25fr) 1fr;
  gap: 0.75rem;
  align-items: start;
  min-height: 0;
  padding: 0.6rem 0.65rem;
  border: 1px solid rgba(223, 210, 199, 0.62);
  border-radius: 8px;
  background: rgba(255, 247, 239, 0.38);
  color: var(--ink);
  font: inherit;
  line-height: 1.3;
  text-align: left;
  box-shadow: none;
}

.voice-command-example-row:hover,
.voice-command-example-row:focus-visible {
  border-color: rgba(154, 52, 18, 0.32);
  background: rgba(248, 217, 201, 0.28);
  text-decoration: none;
}

.voice-command-example-kind {
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 850;
  white-space: nowrap;
}

.voice-command-example-text {
  color: var(--ink);
  font-weight: 650;
  overflow-wrap: anywhere;
}

.voice-command-mic {
  min-width: 6.5rem;
  min-height: 3.15rem;
}

.voice-command-mic.is-recording {
  background: #8b1e3f;
  color: white;
  border-color: #8b1e3f;
  box-shadow: 0 12px 24px rgba(139, 30, 63, 0.2);
}

.voice-command-status {
  min-height: 1.35rem;
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-weight: 700;
}

.voice-command-status[data-tone="success"] {
  color: var(--success);
}

.voice-command-status[data-tone="warning"] {
  color: var(--brand);
}

.voice-command-status[data-tone="error"] {
  color: var(--error);
}

.voice-preview {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.voice-preview-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.voice-preview-heading h2 {
  margin: 0;
  font-size: 1.05rem;
  text-transform: capitalize;
}

.voice-preview-heading span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.voice-preview-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(10rem, 1fr));
  gap: 0.65rem;
  margin: 0;
}

.voice-preview-field {
  min-width: 0;
  padding: 0.7rem;
  border: 1px solid rgba(223, 210, 199, 0.75);
  border-radius: 8px;
  background: rgba(255, 247, 239, 0.56);
}

.voice-preview-field-items,
.voice-preview-field-inventory {
  grid-column: span 2;
}

.voice-preview-fields dt {
  margin: 0 0 0.2rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
  text-transform: uppercase;
}

.voice-preview-fields dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.98rem;
  font-weight: 600;
}

.voice-preview-item-list {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.voice-preview-item-list li {
  display: grid;
  grid-template-columns: minmax(4.5rem, 0.75fr) minmax(5rem, 1fr) auto;
  gap: 0.55rem;
  align-items: baseline;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(223, 210, 199, 0.55);
}

.voice-preview-item-list li:last-child {
  border-bottom: 0;
}

.voice-preview-item-code {
  font-weight: 800;
}

.voice-preview-item-detail {
  color: var(--muted);
  font-weight: 600;
}

.voice-preview-item-price {
  font-weight: 800;
  text-align: right;
}

.voice-preview-inline-corrections {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: end;
  margin-top: 0.25rem;
  padding-top: 0.45rem;
}

.voice-preview-inline-corrections label {
  display: grid;
  gap: 0.25rem;
  min-width: 7rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.voice-preview-inline-corrections input,
.voice-preview-inline-corrections select {
  min-height: 2.4rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.voice-preview-update-details {
  margin-top: 0.65rem;
}

.voice-preview-warnings,
.voice-preview-errors,
.voice-preview-candidates {
  margin-top: 0.75rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(154, 52, 18, 0.22);
  border-radius: 8px;
  background: rgba(248, 217, 201, 0.35);
}

.voice-preview-errors {
  border-color: rgba(139, 30, 63, 0.32);
  background: rgba(139, 30, 63, 0.09);
  color: var(--error);
}

.voice-preview-warnings ul,
.voice-preview-errors ul,
.voice-preview-candidates ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}

.voice-preview-warnings li,
.voice-preview-errors li,
.voice-preview-candidates li {
  margin: 0.2rem 0;
}

.voice-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.live-inventory-claim-card {
  margin: 1rem 0;
}

.live-inventory-claim-card .card-heading {
  align-items: flex-start;
}

.live-inventory-claim-card .card-heading p,
.live-inventory-voice-help {
  margin: 0.35rem 0 0;
}

.live-inventory-voice-help {
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(154, 52, 18, 0.16);
  border-radius: 14px;
  background: rgba(255, 249, 238, 0.72);
}

.live-inventory-claim-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

.live-inventory-claim-fields > label {
  margin-bottom: 0;
}

.live-inventory-customer-field,
.live-inventory-code-field {
  grid-column: span 2;
}

.customer-picker-field {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.customer-picker-field > label {
  margin: 0;
}

.customer-picker-control {
  position: relative;
}

.customer-picker-control > input[type="search"] {
  width: 100%;
  padding-left: 2.65rem;
}

.customer-picker-search-icon {
  position: absolute;
  top: 50%;
  left: 0.9rem;
  z-index: 1;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
}

.customer-picker-menu {
  position: absolute;
  top: calc(100% + 0.42rem);
  right: 0;
  left: 0;
  z-index: 40;
  overflow: hidden;
  padding: 0.45rem;
  border: 1px solid rgba(154, 52, 18, 0.2);
  border-radius: 15px;
  background: #fffdfa;
  box-shadow: 0 22px 55px rgba(61, 44, 33, 0.2);
  isolation: isolate;
}

.customer-picker-results {
  display: grid;
  gap: 0.25rem;
  max-height: 19rem;
  overflow-y: auto;
}

.live-inventory-claim-card.is-customer-picker-open {
  z-index: 30;
  overflow: visible;
}

.live-inventory-claim-card.is-customer-picker-open .live-inventory-claim-fields {
  z-index: 60;
}

.customer-picker-option {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr) 1.25rem;
  gap: 0.7rem;
  align-items: center;
  width: 100%;
  padding: 0.62rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  box-shadow: none;
}

.customer-picker-option:hover,
.customer-picker-option.is-active {
  border-color: rgba(154, 52, 18, 0.16);
  background: rgba(255, 241, 229, 0.9);
  box-shadow: none;
  transform: none;
}

.customer-picker-option[aria-selected="true"] {
  border-color: rgba(37, 124, 82, 0.3);
  background: rgba(228, 247, 237, 0.82);
}

.customer-picker-avatar {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: rgba(154, 52, 18, 0.12);
  color: var(--brand);
  font-weight: 800;
}

.customer-picker-identity {
  display: grid;
  min-width: 0;
}

.customer-picker-identity strong,
.customer-picker-identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-picker-identity strong {
  color: var(--ink);
  font-size: 0.94rem;
}

.customer-picker-identity small {
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.customer-picker-check {
  visibility: hidden;
  color: #17653d;
  font-weight: 900;
}

.customer-picker-option[aria-selected="true"] .customer-picker-check {
  visibility: visible;
}

.customer-picker-empty,
.customer-picker-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.customer-picker-empty {
  padding: 1rem 0.75rem 0.45rem;
  text-align: center;
  font-weight: 700;
}

.customer-picker-count {
  padding: 0.55rem 0.7rem 0.25rem;
  border-top: 1px solid rgba(223, 210, 199, 0.7);
}

@media (max-width: 1100px) {
  .intake-layout,
  .intake-header-grid,
  .intake-header-content {
    grid-template-columns: 1fr;
  }

  .intake-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .intake-lots-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .voice-preview-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .report-dashboard-header {
    flex-direction: column;
  }

  .report-header-controls {
    justify-content: flex-start;
    width: 100%;
  }

  .report-kpi-grid,
  .report-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-kpi-grid-focused,
  .monthly-highlight-grid,
  .report-support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-card-grid,
  .report-card-grid.four-up,
  .report-card-grid.two-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .marketing-hero,
  .marketing-feature-grid {
    grid-template-columns: 1fr;
  }

  .marketing-hero h2 {
    max-width: none;
  }

  .printer-page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .printer-setup-grid {
    grid-template-columns: 1fr;
  }

  .intake-intro,
  .label-sheet-header {
    align-items: stretch;
    flex-direction: column;
  }

  .label-sheet-actions {
    justify-items: stretch;
  }

  .label-sheet-header .button-row {
    justify-content: flex-start;
  }

  .intake-dymo-status {
    text-align: left;
  }

  .closeout-duration-form {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .intake-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid, .split-grid, .triple-grid, .table-grid {
    grid-template-columns: 1fr;
  }

  .voice-command-bar {
    grid-template-columns: 1fr 1fr;
  }

  .voice-command-bar input {
    grid-column: 1 / -1;
  }

  .voice-command-example-row {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .voice-preview-fields {
    grid-template-columns: 1fr;
  }

  .voice-preview-field-items,
  .voice-preview-field-inventory {
    grid-column: auto;
  }

  .live-inventory-claim-fields {
    grid-template-columns: 1fr;
  }

  .live-inventory-customer-field,
  .live-inventory-code-field {
    grid-column: auto;
  }

  .shipping-package-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .shell-header::after {
    bottom: 0;
  }

  .header-actions,
  .header-search,
  .active-session-tools {
    align-items: stretch;
    justify-content: stretch;
  }

  .header-search input {
    min-width: 0;
  }

  .top-nav-shell {
    top: 0.55rem;
  }

  .top-nav-track {
    padding: 0.8rem;
    border-radius: 24px;
  }

  .top-nav-toggle {
    display: inline-flex;
  }

  .top-nav-panel {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    display: grid;
    gap: 0.8rem;
    padding: 0.95rem;
    border: 1px solid rgba(223, 210, 199, 0.84);
    border-radius: 24px;
    background:
      radial-gradient(circle at top left, rgba(255,255,255,0.82), transparent 35%),
      linear-gradient(145deg, rgba(255,252,247,0.96), rgba(255,244,233,0.9));
    box-shadow: 0 22px 40px rgba(61, 44, 33, 0.12);
    backdrop-filter: blur(18px);
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.2s ease;
  }

  .top-nav-shell.is-open .top-nav-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .top-nav-links {
    display: grid;
    gap: 0.5rem;
  }

  .top-nav-link,
  .top-nav-logout {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    min-height: 3rem;
  }

  .top-nav-link {
    padding: 0.82rem 1rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.68), rgba(255,248,240,0.5));
  }

  .top-nav-link + .top-nav-link::before {
    display: none;
  }

  .top-nav-link.is-active {
    background: linear-gradient(135deg, var(--brand), #c76a2f 72%, #df8b44);
    box-shadow: 0 16px 28px rgba(154, 52, 18, 0.18);
  }

  .top-nav-indicator {
    display: none;
  }

  .top-nav-logout-form {
    width: 100%;
  }

  .snapshot-date-filter,
  .date-picker-trigger {
    width: 100%;
  }

  .date-picker-trigger {
    justify-content: flex-start;
  }

  .date-picker-popover {
    left: 0;
    right: auto;
    width: 100%;
  }

  .report-dashboard-header,
  .report-header-controls,
  .report-range-links {
    align-items: stretch;
  }

  .report-date-panel {
    flex-basis: auto;
    width: 100%;
  }

  .report-header-controls,
  .report-range-links {
    flex-direction: column;
  }

  .report-date-context,
  .report-range-links,
  .report-range-links a {
    width: 100%;
  }

  .report-kpi-grid,
  .report-kpi-grid-focused,
  .report-mini-grid,
  .monthly-highlight-grid,
  .report-support-grid,
  .report-card-grid,
  .report-card-grid.four-up,
  .report-card-grid.two-up,
  .aging-bucket-grid {
    grid-template-columns: 1fr;
  }

  .report-support-card {
    max-width: none;
  }
}

@media print {
  body {
    background: white;
    color: #111;
  }

  .shell-header,
  .top-nav-shell,
  .flash-stack,
  .no-print,
  .button-row,
  button,
  a.button {
    display: none !important;
  }

  .page {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: white;
    padding: 0;
  }

  .card::before {
    display: none;
  }

  .print-only {
    display: block;
  }

  .label-print-title h1 {
    margin: 0 0 0.2rem;
    font-size: 20pt;
  }

  .label-print-title p {
    margin: 0 0 0.8rem;
    font-size: 11pt;
  }

  .label-sheet-table {
    font-size: 12pt;
  }

  .label-sheet-table th,
  .label-sheet-table td {
    border: 1px solid #333;
    padding: 0.32in 0.16in;
  }

  .label-code,
  .label-price {
    font-size: 16pt;
  }
}

@media (prefers-reduced-motion: reduce) {
  .top-nav-indicator,
  .top-nav-link,
  .top-nav-link::after,
  .top-nav-panel,
  .top-nav-toggle span,
  .top-nav-logout {
    transition: none;
  }
}
