*, *::before, *::after { box-sizing: border-box; }

:root {
  color-scheme: light;
  --tx-bg: #eef4fb;
  --tx-ink: #172033;
  --tx-muted: #667085;
  --tx-panel: #ffffff;
  --tx-panel-2: #f6f9fe;
  --tx-line: #d8e2f1;
  --tx-navy: #071226;
  --tx-navy-2: #0d1b34;
  --tx-card: #ffffff;
  --tx-card-2: #f8fbff;
  --tx-teal: #31d4c7;
  --tx-sky: #1fa9ff;
  --tx-purple: #8f7cff;
  --tx-red: #fb5471;
  --tx-gold: #f7c96f;
  --tx-green: #62de95;
  --tx-shadow: 0 24px 60px rgba(16, 31, 63, 0.12);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --tx-bg: #071120;
  --tx-ink: #f7fbff;
  --tx-muted: #9eacc7;
  --tx-panel: #0b1628;
  --tx-panel-2: #111f39;
  --tx-line: #263858;
  --tx-card: #101c34;
  --tx-card-2: #0b172a;
  --tx-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

body.client-dashboard-page {
  min-height: 100vh;
  margin: 0;
  font-family: "Mulish", sans-serif;
  color: var(--tx-ink);
  background: linear-gradient(180deg, #f8fbff 0%, var(--tx-bg) 48%, #e9f1fb 100%);
}

:root[data-theme="dark"] body.client-dashboard-page {
  background: linear-gradient(180deg, #050b16 0%, #071120 46%, #081327 100%);
}

a { color: inherit; }

.portal-shell {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 38px;
}

body.admin-review .portal-shell,
body.sidebar-shell .portal-shell {
  width: auto;
  max-width: none;
  margin: 0 0 0 250px;
  padding: 0 0 40px;
}

body.admin-review .portal-topbar,
body.sidebar-shell .portal-topbar {
  min-height: 60px;
  height: 60px;
  margin-bottom: 0;
  border-width: 0 0 1px;
  border-radius: 0;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(40, 59, 124, 0.05);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
}

:root[data-theme="dark"] body.admin-review .portal-topbar,
:root[data-theme="dark"] body.sidebar-shell .portal-topbar {
  background: rgba(12, 25, 43, 0.9);
  border-color: rgba(143, 180, 255, 0.18);
}

body.admin-review .portal-brand,
body.sidebar-shell .portal-brand {
  gap: 0;
}

body.admin-review .portal-brand > a,
body.sidebar-shell .portal-brand > a {
  display: none;
}

body.admin-review .portal-title,
body.sidebar-shell .portal-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

body.admin-review .portal-title .eyebrow,
body.sidebar-shell .portal-title .eyebrow {
  margin: 0;
  color: var(--text-muted, #5f6780);
  font-size: 11px;
  line-height: 1.15;
  letter-spacing: 0.08em;
}

body.admin-review .portal-title h1,
body.sidebar-shell .portal-title h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-review .portal-title p,
body.sidebar-shell .portal-title p {
  display: none;
}

body.admin-review .portal-actions,
body.sidebar-shell .portal-actions {
  justify-content: flex-end;
}

body.admin-review .tx-report-toolbar,
body.sidebar-shell .tx-report-toolbar {
  flex-wrap: wrap;
  justify-content: flex-start;
}

body.admin-review .tx-toolbar-spacer,
body.sidebar-shell .tx-toolbar-spacer {
  flex: 1 1 100%;
  margin-right: 0;
}

body.admin-review .portal-status,
body.sidebar-shell .portal-status {
  margin: 24px 28px 16px;
}

body.admin-review #dashboardRoot,
body.sidebar-shell #dashboardRoot {
  padding: 24px 28px 0;
}

.portal-topbar {
  min-height: 66px;
  margin-bottom: 18px;
  border: 1px solid var(--tx-line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--tx-panel) 95%, transparent);
  box-shadow: var(--tx-shadow);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px 16px;
}

:root[data-theme="dark"] .portal-topbar { background: rgba(8, 17, 32, 0.96); }

.portal-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.portal-brand img {
  width: 178px;
  height: auto;
  display: block;
}

.portal-title { min-width: 0; }

.portal-title .eyebrow,
.tx-eyebrow {
  margin: 0 0 5px;
  color: #8ea7ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.portal-title h1 {
  margin: 0;
  font-size: clamp(1.25rem, 2.3vw, 2rem);
  line-height: 1.05;
  overflow-wrap: break-word;
}

.portal-title p {
  margin: 6px 0 0;
  color: var(--tx-muted);
  font-size: 14px;
}

.portal-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-field {
  display: grid;
  gap: 5px;
  min-width: min(320px, 48vw);
}

.portal-field span {
  color: var(--tx-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.portal-field select,
.portal-button,
.portal-link {
  height: 40px;
  border: 1px solid var(--tx-line);
  border-radius: 8px;
  background: var(--tx-card);
  color: var(--tx-ink);
  font: inherit;
  font-size: 14px;
}

.portal-field select { padding: 0 12px; }

.portal-button,
.portal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.portal-link:hover,
.portal-button:hover { border-color: color-mix(in srgb, var(--tx-sky) 60%, var(--tx-line)); }

.portal-status {
  margin-bottom: 16px;
  border: 1px solid var(--tx-line);
  border-radius: 8px;
  background: var(--tx-card);
  padding: 16px 18px;
}

.portal-status strong { display: block; margin-bottom: 5px; }
.portal-status p { margin: 0; color: var(--tx-muted); line-height: 1.55; }
.hidden,
[hidden] { display: none !important; }

.tx-dashboard {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(104, 135, 190, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, #0b1730 0%, #0c1c3a 52%, #091529 100%);
  color: #f7fbff;
  box-shadow: var(--tx-shadow);
  overflow: clip;
}

.tx-dashboard.has-open-date-panel {
  overflow: visible;
}

.tx-report-toolbar {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 10px 16px;
  background: linear-gradient(90deg, rgba(45, 212, 191, 0.10), rgba(143, 124, 255, 0.18));
  border-bottom: 1px solid rgba(151, 178, 225, 0.18);
  position: relative;
  z-index: 20;
}

.tx-section-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  margin-top: -4px;
  overflow-x: auto;
}

.tx-section-nav a {
  height: 34px;
  border: 1px solid rgba(151, 178, 225, 0.18);
  border-radius: 8px;
  background: rgba(151, 178, 225, 0.08);
  color: #dce8ff;
  display: inline-flex;
  align-items: center;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  padding: 0 12px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.tx-section-nav a:hover,
.tx-section-nav a.is-active {
  border-color: rgba(49, 212, 199, 0.48);
  background: rgba(49, 212, 199, 0.14);
}

.tx-section-nav a.is-active {
  color: #061322;
  background: var(--tx-teal);
  border-color: var(--tx-teal);
}

.tx-toolbar-spacer {
  flex: 1 1 280px;
  min-width: min(280px, 100%);
  margin-right: auto;
  color: #8fa4c8;
  font-size: 12px;
  line-height: 1.35;
}

.tx-refresh-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(49, 212, 199, 0.28);
  border-radius: 999px;
  background: rgba(49, 212, 199, 0.1);
  color: #c8fff4;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tx-dashboard.is-refreshing .tx-card,
.tx-dashboard.is-refreshing .tx-section-nav,
.tx-dashboard.is-refreshing .tx-report-toolbar {
  transition: opacity 140ms ease;
}

.tx-date-control {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 1 410px;
  gap: 8px;
  min-width: 0;
}

.tx-date-label {
  color: #8fa4c8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tx-date-button,
.tx-segment button,
.tx-calendar-action,
.tx-icon-button {
  border: 1px solid rgba(182, 203, 241, 0.22);
  border-radius: 8px;
  background: rgba(7, 18, 38, 0.7);
  color: #f7fbff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.tx-date-button {
  flex: 1 1 auto;
  min-width: min(280px, 100%);
  max-width: 100%;
  height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  white-space: nowrap;
}

.tx-date-button [data-date-button-text] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tx-segment {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(182, 203, 241, 0.16);
  border-radius: 8px;
  background: rgba(7, 18, 38, 0.55);
  min-width: 0;
}

.tx-segment button {
  height: 30px;
  padding: 0 10px;
  border-color: transparent;
  background: transparent;
  color: #aebbd4;
  font-size: 12px;
  white-space: nowrap;
}

.tx-segment button.is-active {
  color: #061322;
  background: var(--tx-teal);
}

.tx-segment button:focus-visible,
.tx-date-button:focus-visible,
.tx-calendar-action:focus-visible,
.tx-icon-button:focus-visible {
  outline: 2px solid rgba(49, 212, 199, 0.72);
  outline-offset: 2px;
}

.tx-date-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 180;
  width: min(760px, calc(100vw - 42px));
  max-height: min(680px, calc(100vh - 130px));
  display: grid;
  grid-template-columns: 210px minmax(360px, 1fr);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(182, 203, 241, 0.2);
  border-radius: 8px;
  background: #f8fbff;
  color: #172033;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.tx-date-panel.opens-up {
  top: auto;
  bottom: calc(100% + 8px);
}

.tx-presets {
  display: grid;
  align-content: start;
  border-right: 1px solid #d8e2f1;
  background: #ffffff;
}

.tx-preset {
  min-height: 38px;
  border: 0;
  border-bottom: 1px solid #edf2fa;
  background: transparent;
  color: #344054;
  font: inherit;
  text-align: left;
  padding: 0 14px;
  cursor: pointer;
}

.tx-preset.is-active {
  background: var(--tx-teal);
  color: #04111f;
  font-weight: 900;
}

.tx-preset:hover:not(:disabled):not(.is-active) {
  background: rgba(49, 212, 199, 0.16);
  color: #f3f8ff;
}

.tx-preset:disabled {
  color: #a7b1c2;
  cursor: not-allowed;
  background: #f4f7fb;
}

.tx-calendar {
  padding: 14px;
  min-width: 0;
}

.tx-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  min-width: 0;
}

.tx-calendar-selection {
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.tx-calendar-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.tx-calendar-nav strong {
  min-width: 112px;
  text-align: center;
}

.tx-calendar-head strong { font-size: 14px; }
.tx-icon-button { width: 32px; height: 32px; color: #172033; background: #ffffff; border-color: #d8e2f1; }

.tx-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  column-gap: 0;
  row-gap: 6px;
  min-width: 0;
}

.tx-day-name {
  color: #667085;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  padding-bottom: 3px;
}

.tx-day {
  aspect-ratio: 1;
  min-height: 34px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #344054;
  font: inherit;
  cursor: pointer;
  position: relative;
  display: grid;
  place-items: center;
  padding: 0;
}

.tx-day span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  position: relative;
  z-index: 1;
}

.tx-day.is-muted { color: #a7b1c2; }
.tx-day.is-range { background: rgba(49, 212, 199, 0.86); color: #04221e; }
.tx-day.is-range-start { border-radius: 7px 0 0 7px; }
.tx-day.is-range-end { border-radius: 0 7px 7px 0; }
.tx-day.is-range-start.is-range-end { border-radius: 7px; }
.tx-day.is-disabled {
  cursor: not-allowed;
  color: #8b97ad;
}
.tx-day.is-disabled span {
  opacity: 0.44;
}
.tx-day.is-boundary span {
  background: #f8fbff;
  color: var(--tx-teal);
  font-weight: 900;
  box-shadow: 0 0 0 2px rgba(49, 212, 199, 0.55), 0 7px 18px rgba(15, 84, 77, 0.24);
}
.tx-day.is-today span { box-shadow: inset 0 0 0 1px var(--tx-purple); }

.tx-calendar-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 12px 0 0;
  padding: 12px 0 0;
  position: sticky;
  bottom: 0;
  z-index: 3;
  background: #f8fbff;
}

.tx-calendar-action { height: 34px; padding: 0 12px; color: #172033; background: #ffffff; border-color: #d8e2f1; }
.tx-calendar-action.primary { background: #0c1c3a; color: #ffffff; border-color: #0c1c3a; }

:root[data-theme="dark"] .tx-date-panel {
  background: #0d1a2f;
  color: #f7fbff;
  border-color: #314767;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.48);
}

:root[data-theme="dark"] .tx-presets {
  background: #091426;
  border-right-color: #263858;
}

:root[data-theme="dark"] .tx-preset {
  border-bottom-color: #1d2e4a;
  color: #d7e3f8;
}

:root[data-theme="dark"] .tx-preset:hover:not(:disabled):not(.is-active) {
  background: rgba(143, 124, 255, 0.16);
}

:root[data-theme="dark"] .tx-preset:disabled {
  background: #101c34;
  color: #667895;
}

:root[data-theme="dark"] .tx-calendar-selection,
:root[data-theme="dark"] .tx-day,
:root[data-theme="dark"] .tx-icon-button,
:root[data-theme="dark"] .tx-calendar-action {
  color: #f7fbff;
}

:root[data-theme="dark"] .tx-day-name,
:root[data-theme="dark"] .tx-day.is-muted {
  color: #8fa4c8;
}

:root[data-theme="dark"] .tx-day.is-disabled {
  color: #60718f;
}

:root[data-theme="dark"] .tx-icon-button,
:root[data-theme="dark"] .tx-calendar-action {
  background: #101f39;
  border-color: #314767;
}

:root[data-theme="dark"] .tx-calendar-action.primary {
  background: var(--tx-teal);
  border-color: var(--tx-teal);
  color: #04111f;
}

:root[data-theme="dark"] .tx-calendar-foot {
  background: #0d1a2f;
}

:root[data-theme="dark"] .tx-day.is-boundary span {
  background: #081327;
  color: #7bf6e8;
}

.tx-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(460px, 1.9fr) minmax(230px, 0.7fr);
  gap: 14px;
  padding: 0 16px 16px;
}

.tx-grid[data-view="vendors"],
.tx-grid[data-view="vendor-details"],
.tx-grid[data-view="recruiters"] {
  grid-template-columns: minmax(0, 1fr);
}

.tx-grid[data-view="overview"] [data-vendor-summary],
.tx-grid[data-view="overview"] [data-recruiter-summary],
.tx-grid[data-view="vendors"] [data-left-stack],
.tx-grid[data-view="vendors"] [data-main-stack],
.tx-grid[data-view="vendors"] [data-status-rail],
.tx-grid[data-view="vendors"] [data-recruiter-summary],
.tx-grid[data-view="vendor-details"] [data-left-stack],
.tx-grid[data-view="vendor-details"] [data-main-stack],
.tx-grid[data-view="vendor-details"] [data-status-rail],
.tx-grid[data-view="vendor-details"] [data-recruiter-summary],
.tx-grid[data-view="recruiters"] [data-left-stack],
.tx-grid[data-view="recruiters"] [data-main-stack],
.tx-grid[data-view="recruiters"] [data-status-rail],
.tx-grid[data-view="recruiters"] [data-vendor-summary] {
  display: none;
}

.tx-stack,
.tx-main,
.tx-rail {
  display: grid;
  gap: 14px;
  align-content: start;
}

.tx-stack { container-type: inline-size; }

.tx-card {
  border: 1px solid rgba(151, 178, 225, 0.16);
  border-radius: 8px;
  background: rgba(13, 27, 52, 0.88);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.16);
  min-width: 0;
}

.tx-card-pad { padding: 14px; }

.tx-card h2,
.tx-card h3 {
  margin: 0;
  color: #60b7ff;
  font-size: 15px;
  font-weight: 800;
}

.tx-card h3 { color: #dfe8ff; font-size: 14px; }

.tx-card-title {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.tx-card-title h2,
.tx-card-title h3 {
  min-width: 0;
}

.tx-help-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  pointer-events: none;
}

.tx-help-trigger {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  padding: 0;
  border: 1px solid rgba(31, 169, 255, 0.32);
  border-radius: 50%;
  background: rgba(31, 169, 255, 0.1);
  color: var(--tx-sky);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  cursor: help;
  pointer-events: auto;
}

.tx-help-trigger:hover,
.tx-help-trigger:focus-visible {
  border-color: rgba(31, 169, 255, 0.62);
  background: rgba(31, 169, 255, 0.16);
  outline: none;
}

.tx-help-text {
  display: none !important;
}

.tx-help-popover {
  position: fixed;
  z-index: 190;
  width: min(260px, calc(100vw - 40px));
  pointer-events: none;
  border: 1px solid rgba(151, 178, 225, 0.24);
  border-radius: 8px;
  background: #f8fbff;
  color: #24324f;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  padding: 10px 11px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  text-transform: none;
}

:root[data-theme="dark"] .tx-help-popover {
  background: #0d1a2f;
  border-color: #314767;
  color: #f7fbff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.tx-card-sub {
  margin: 5px 0 0;
  color: #8fa4c8;
  font-size: 12px;
  line-height: 1.45;
}

.tx-kpi-value {
  margin-top: 16px;
  color: #ffffff;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1;
  font-weight: 800;
}

.tx-kpi-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tx-kpi-meta {
  margin-top: 6px;
  color: #8294b8;
  font-size: 11px;
}

.tx-trend {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 23px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 900;
}

.tx-trend.good { color: #031f19; background: var(--tx-teal); }
.tx-trend.bad { color: #fff; background: #d6334f; }
.tx-trend.neutral { color: #c8d5f0; background: rgba(151, 178, 225, 0.14); }

.tx-status-pill,
.tx-confidence-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  max-width: 100%;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  white-space: normal;
  text-align: center;
}

.tx-status-pill.improving { color: #031f19; background: var(--tx-teal); }
.tx-status-pill.trending-down { color: #ffffff; background: #d6334f; }
.tx-status-pill.holding-steady { color: #d9d2ff; background: rgba(143, 124, 255, 0.2); }
.tx-status-pill.data-limited { color: #2f2604; background: var(--tx-gold); }
.tx-status-pill.needs-review { color: #dce8ff; background: rgba(151, 178, 225, 0.16); }
.tx-status-pill.no-baseline { color: #dce8ff; background: rgba(31, 169, 255, 0.16); }
.tx-confidence-pill { color: #dce8ff; background: rgba(31, 169, 255, 0.16); }

.tx-split-metric {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: end;
  margin-top: 14px;
}

.tx-split-metric > div:first-child { border-right: 1px solid rgba(151, 178, 225, 0.16); }
.tx-split-metric span { display: block; color: #8fa4c8; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.tx-split-metric strong { display: block; margin-top: 4px; font-size: 1.65rem; color: #ffffff; }

.tx-lead-activity-card {
  border-color: rgba(49, 212, 199, 0.3);
  background:
    linear-gradient(135deg, rgba(49, 212, 199, 0.14), transparent 42%),
    rgba(13, 27, 52, 0.9);
}

.tx-lead-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.tx-mini-metric {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(151, 178, 225, 0.13);
  border-radius: 8px;
  background: rgba(7, 18, 38, 0.26);
}

.tx-mini-metric > span {
  display: block;
  color: #8fa4c8;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tx-mini-metric div {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 5px;
}

.tx-mini-metric strong {
  color: #ffffff;
  font-size: 1.45rem;
  line-height: 1;
}

.tx-mini-metric small {
  display: block;
  margin-top: 7px;
  color: #8294b8;
  font-size: 10px;
  line-height: 1.35;
}

.tx-terms-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(49, 212, 199, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(16, 37, 71, 0.96), rgba(10, 24, 47, 0.94));
  border-color: rgba(96, 183, 255, 0.26);
  padding-bottom: 16px;
}

.tx-terms-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(151, 178, 225, 0.08) 1px, transparent 1px);
  background-size: 52px 100%;
  opacity: 0.24;
}

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

.tx-card-kicker {
  display: block;
  margin-bottom: 5px;
  color: #9bb2da;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.tx-movement-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.tx-net-badge {
  min-width: 82px;
  padding-left: 12px;
  border-left: 1px solid rgba(151, 178, 225, 0.18);
  text-align: right;
}

.tx-net-badge span {
  display: block;
  color: #9bb2da;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tx-net-badge strong {
  display: block;
  margin-top: 3px;
  color: #dfe8ff;
  font-size: 1.5rem;
  line-height: 1;
}

.tx-net-badge.good strong { color: var(--tx-teal); }
.tx-net-badge.bad strong { color: var(--tx-red); }
.tx-net-badge.neutral strong { color: #c8d5f0; }

.tx-movement-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
  border-block: 1px solid rgba(151, 178, 225, 0.14);
}

.tx-movement-metric {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 8px;
  align-items: center;
  padding: 12px 0;
  min-width: 0;
}

.tx-movement-metric + .tx-movement-metric {
  padding-left: 12px;
  border-left: 1px solid rgba(151, 178, 225, 0.14);
}

.tx-movement-metric > span:first-child {
  grid-column: 1 / -1;
  color: #9bb2da;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tx-movement-metric strong {
  color: #ffffff;
  font-size: clamp(1.65rem, 2.5vw, 2.15rem);
  line-height: 1;
}

.tx-movement-metric .tx-trend {
  min-width: 48px;
  height: 21px;
  padding: 0 7px;
}

.tx-movement-track-group {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.tx-movement-track-head,
.tx-movement-previous-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #93a7ca;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tx-movement-track-head strong,
.tx-movement-previous-head strong {
  color: #dce8ff;
  letter-spacing: 0;
  text-transform: none;
}

.tx-movement-track,
.tx-movement-mini-track {
  display: flex;
  width: 100%;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(151, 178, 225, 0.12);
  box-shadow: inset 0 0 0 1px rgba(151, 178, 225, 0.08);
}

.tx-movement-track { height: 18px; }
.tx-movement-mini-track { height: 9px; }

.tx-movement-segment {
  display: block;
  width: var(--share, 0%);
  min-width: 0;
}

.tx-movement-segment.is-terms { background: linear-gradient(90deg, rgba(143, 124, 255, 0.88), rgba(251, 84, 113, 0.86)); }
.tx-movement-segment.is-hires { background: linear-gradient(90deg, #31d4c7, #78e6a5); }

.tx-movement-legend {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #b9c8e3;
  font-size: 11px;
  font-weight: 800;
}

.tx-movement-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.tx-movement-legend i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.tx-movement-legend i.is-terms { background: #b65aa9; }
.tx-movement-legend i.is-hires { background: var(--tx-teal); }

.tx-movement-legend.is-muted {
  color: #8fa4c8;
  font-size: 10px;
}

.tx-movement-previous {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(151, 178, 225, 0.12);
}

.tx-metric-chart-card {
  display: grid;
  grid-template-columns: minmax(106px, 0.82fr) minmax(100px, 1fr);
  gap: 10px;
  align-items: stretch;
}

.tx-cost-card {
  grid-template-columns: minmax(148px, 0.95fr) minmax(110px, 0.72fr);
}

.tx-metric-copy {
  min-width: 0;
}

.tx-metric-period {
  margin-top: 22px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
}

.tx-metric-chart-card .tx-kpi-value {
  margin-top: 6px;
}

.tx-cost-card .tx-kpi-value {
  font-size: clamp(1.55rem, 2.1vw, 1.85rem);
  white-space: nowrap;
}

.tx-metric-trend {
  margin-top: 10px;
}

.tx-spark-panel {
  height: 132px;
  min-width: 0;
  min-height: 132px;
  position: relative;
  border-left: 1px solid rgba(151, 178, 225, 0.14);
  overflow: hidden;
  padding-left: 10px;
}

.tx-spark-panel canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
}

@container (max-width: 320px) {
  .tx-stack .tx-metric-chart-card {
    grid-template-columns: 1fr;
  }

  .tx-stack .tx-spark-panel {
    border-left: 0;
    border-top: 1px solid rgba(151, 178, 225, 0.14);
    padding: 10px 0 0;
  }
}

@container (max-width: 420px) {
  .tx-stack .tx-cost-card {
    grid-template-columns: 1fr;
  }

  .tx-stack .tx-cost-card .tx-spark-panel {
    border-left: 0;
    border-top: 1px solid rgba(151, 178, 225, 0.14);
    padding: 10px 0 0;
  }
}

.tx-bars {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.tx-bar-row {
  display: grid;
  grid-template-columns: minmax(72px, 0.8fr) minmax(120px, 1.5fr) 72px;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: #dbe6ff;
}

.tx-bar-track {
  height: 9px;
  border-radius: 999px;
  background: rgba(151, 178, 225, 0.12);
  overflow: hidden;
}

.tx-bar-fill {
  display: block;
  height: 100%;
  width: var(--bar, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--tx-teal), #78e6a5);
}

.tx-mini-chart,
.tx-chart {
  position: relative;
  height: 260px;
  min-height: 220px;
}

.tx-mini-chart { height: 210px; min-height: 190px; }
.tx-leads-chart { height: 300px; }

.tx-overview-card {
  min-height: 366px;
  padding: 14px;
}

.tx-overview-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 10px;
}

.tx-period-note {
  color: #b8c7e2;
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
}

.tx-heatmap-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.tx-us-map {
  position: relative;
  min-height: 280px;
  display: grid;
  gap: 8px;
  align-content: center;
}

.tx-us-map-svg {
  width: 100%;
  min-height: 250px;
  display: block;
  overflow: visible;
}

.tx-us-state {
  fill: var(--state-fill, #25314e);
  stroke: rgba(7, 18, 38, 0.9);
  stroke-width: 1.05;
  vector-effect: non-scaling-stroke;
  transition: fill 160ms ease, opacity 160ms ease, stroke 160ms ease;
}

.tx-us-state.is-empty {
  opacity: 0.5;
}

.tx-us-state.has-leads {
  stroke: rgba(222, 255, 239, 0.46);
}

.tx-us-state:hover {
  opacity: 1;
  stroke: #dfffea;
  stroke-width: 1.4;
}

.tx-us-state:focus-visible {
  outline: none;
  stroke: #ffffff;
  stroke-width: 1.7;
}

.tx-map-tooltip {
  position: absolute;
  z-index: 6;
  width: min(220px, calc(100% - 24px));
  border: 1px solid rgba(151, 178, 225, 0.22);
  border-radius: 8px;
  background: #f8fbff;
  color: #172033;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  padding: 10px 11px;
  pointer-events: none;
}

:root[data-theme="dark"] .tx-map-tooltip {
  background: #0d1a2f;
  border-color: #314767;
  color: #f7fbff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.tx-map-tooltip strong {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #172033;
  font-size: 12px;
}

:root[data-theme="dark"] .tx-map-tooltip strong {
  color: #f7fbff;
}

.tx-map-tooltip strong span {
  color: #6b5dcd;
  white-space: nowrap;
}

:root[data-theme="dark"] .tx-map-tooltip strong span {
  color: #9fc4ff;
}

.tx-map-tooltip p {
  margin: 6px 0 0;
  color: #475467;
  font-size: 11px;
  font-weight: 700;
}

:root[data-theme="dark"] .tx-map-tooltip p {
  color: #b8c7e2;
}

.tx-map-legend {
  display: grid;
  grid-template-columns: auto minmax(80px, 160px) auto;
  gap: 8px;
  align-items: center;
  color: #8fa4c8;
  font-size: 10px;
  font-weight: 900;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tx-map-legend i {
  display: block;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1c3154 0%, #15878f 38%, #47ca7e 72%, #f7d56f 100%);
}

.tx-map-legend strong {
  color: #bdebd5;
}

.tx-map-loading {
  min-height: 250px;
  display: grid;
  place-items: center;
  color: #8fa4c8;
  border: 1px dashed rgba(151, 178, 225, 0.18);
  border-radius: 8px;
}

.tx-location-list {
  display: grid;
  gap: 9px;
}

.tx-location-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  color: #dce8ff;
  font-size: 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(151, 178, 225, 0.08);
}

.tx-location-row span { color: #8fa4c8; }
.tx-location-row strong { color: #9fc4ff; }

.tx-status-list {
  display: grid;
  gap: 13px;
  max-height: 820px;
  overflow: auto;
  padding-right: 2px;
}

.tx-status-summary {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.tx-status-summary div {
  display: grid;
  gap: 3px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(151, 178, 225, 0.09);
}

.tx-status-summary span {
  color: #8fa4c8;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.tx-status-summary strong {
  color: #ffffff;
  font-size: 14px;
}

.tx-status-item {
  display: grid;
  gap: 6px;
}

.tx-status-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.tx-status-top strong:last-child {
  color: var(--tx-teal);
  font-size: 1.35rem;
}

.tx-status-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(151, 178, 225, 0.12);
}

.tx-status-fill {
  height: 100%;
  width: var(--bar, 0%);
  border-radius: inherit;
  background: var(--tx-teal);
}

.tx-wide {
  grid-column: 1 / -1;
}

.tx-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(151, 178, 225, 0.12);
  border-radius: 8px;
  margin-top: 12px;
}

.tx-mobile-sort-grid {
  display: none;
}

.tx-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 960px;
}

.tx-table th,
.tx-table td {
  padding: 10px 10px;
  border-bottom: 1px solid rgba(151, 178, 225, 0.1);
  color: #dbe6ff;
  font-size: 12px;
  text-align: right;
  vertical-align: top;
}

.tx-table th {
  color: #8fa4c8;
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: rgba(151, 178, 225, 0.06);
}

.tx-sort-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  width: 100%;
  min-height: 26px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-align: right;
  cursor: pointer;
}

.tx-sort-button i {
  width: 10px;
  color: var(--tx-teal);
  font-style: normal;
  text-align: center;
}

.tx-sort-button:hover,
.tx-sort-button.is-active {
  color: #dce8ff;
}

.tx-table th:first-child .tx-sort-button {
  justify-content: flex-start;
  text-align: left;
}

.tx-table th:first-child,
.tx-table td:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: #0d1b34;
}

.tx-table tr.is-active td,
.tx-table tr.is-active td:first-child {
  background: rgba(49, 212, 199, 0.09);
}

.tx-table-link {
  border: 0;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-weight: 900;
  text-align: left;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(49, 212, 199, 0.45);
  text-underline-offset: 4px;
}

.tx-table-link:hover {
  color: var(--tx-teal);
}

.tx-table-link:focus-visible,
.tx-sort-button:focus-visible,
.tx-action-link:focus-visible {
  outline: 2px solid rgba(49, 212, 199, 0.72);
  outline-offset: 3px;
}

.tx-action-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(49, 212, 199, 0.46);
  border-radius: 8px;
  background: var(--tx-teal);
  color: #04111f;
  font-size: 12px;
  font-weight: 900;
  padding: 0 12px;
  text-decoration: none;
  text-align: center;
  white-space: normal;
}

.tx-action-link:hover {
  filter: brightness(1.07);
}

.tx-action-link-secondary {
  justify-self: start;
  background: rgba(49, 212, 199, 0.1);
  color: #c8fff4;
}

.tx-vendor-chart-card {
  margin-top: 14px;
}

.tx-vendor-month-chart {
  min-height: 430px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tx-vendor-month-chart canvas {
  min-width: 860px;
}

.tx-chart-note {
  margin: 8px 0 0;
  color: #aebfdb;
  font-size: 12px;
  line-height: 1.45;
}

.tx-chart-popover {
  position: fixed;
  z-index: 1200;
  display: grid;
  gap: 4px;
  width: min(260px, calc(100vw - 24px));
  padding: 10px 12px;
  border: 1px solid rgba(151, 178, 225, 0.28);
  border-radius: 8px;
  background: rgba(9, 22, 43, 0.97);
  box-shadow: 0 18px 48px rgba(2, 8, 23, 0.34);
  color: #dce8ff;
  font-size: 12px;
  line-height: 1.35;
  pointer-events: none;
  max-height: 140px;
  overflow: hidden;
}

.tx-chart-popover strong {
  color: #ffffff;
  font-size: 13px;
}

.tx-chart-popover span {
  overflow-wrap: anywhere;
}

.tx-vendor-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.tx-vendor-trend-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  padding: 14px;
  border: 1px solid rgba(151, 178, 225, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(49, 212, 199, 0.08), transparent 40%),
    rgba(8, 21, 43, 0.76);
  box-shadow: inset 4px 0 0 rgba(151, 178, 225, 0.32);
}

.tx-vendor-trend-card.is-improving { box-shadow: inset 4px 0 0 rgba(49, 212, 199, 0.9); }
.tx-vendor-trend-card.is-trending-down { box-shadow: inset 4px 0 0 rgba(247, 201, 111, 0.95); }
.tx-vendor-trend-card.is-holding-steady { box-shadow: inset 4px 0 0 rgba(31, 169, 255, 0.78); }
.tx-vendor-trend-card.is-data-limited,
.tx-vendor-trend-card.is-no-baseline { box-shadow: inset 4px 0 0 rgba(151, 178, 225, 0.72); }
.tx-vendor-trend-card.is-needs-review { box-shadow: inset 4px 0 0 rgba(143, 124, 255, 0.88); }
.tx-vendor-trend-card.is-selected { border-color: rgba(49, 212, 199, 0.58); }

.tx-vendor-trend-card h3 {
  margin: 2px 0 0;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.tx-vendor-state {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 8px;
  padding: 4px 8px;
  border: 1px solid rgba(151, 178, 225, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #dce8ff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
}

.tx-vendor-spark {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(24px, 1fr));
  align-items: end;
  gap: 6px;
  min-height: 70px;
  min-width: 0;
  max-width: 100%;
  padding: 8px;
  border-radius: 8px;
  background: rgba(4, 17, 34, 0.42);
}

.tx-vendor-spark span {
  display: grid;
  grid-template-rows: 44px auto;
  align-items: end;
  gap: 5px;
  min-width: 0;
}

.tx-vendor-spark i {
  display: block;
  width: 100%;
  height: var(--bar);
  min-height: 4px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #31d4c7, #1f7fb4);
}

.tx-vendor-spark small {
  color: #9eb0cf;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tx-vendor-trend-card p {
  margin: 0;
  color: #b9c8e3;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.tx-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.tx-compare-note {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(143, 124, 255, 0.24);
  border-radius: 8px;
  background: rgba(143, 124, 255, 0.1);
  color: #d9d2ff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.tx-table .tx-inline-detail-cell,
.tx-table .tx-inline-detail-cell:first-child {
  position: static;
  left: auto;
  padding: 0 10px 12px;
  border-bottom: 1px solid rgba(151, 178, 225, 0.1);
  background: rgba(8, 21, 43, 0.72);
  text-align: left;
}

.tx-inline-detail-row .tx-detail-panel {
  margin-top: 0;
}

.tx-section-head,
.tx-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.tx-section-head .tx-help-wrap {
  margin-top: 4px;
}

.tx-section-subhead {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
  margin: 18px 0 10px;
}

.tx-section-subhead h3 {
  margin: 0;
  color: #dfe8ff;
  font-size: 14px;
}

.tx-section-subhead span {
  color: #8fa4c8;
  font-size: 12px;
  font-weight: 800;
}

.tx-vendor-picker {
  display: grid;
  flex: 1 1 280px;
  gap: 5px;
  min-width: min(280px, 100%);
}

.tx-vendor-picker span {
  color: #8fa4c8;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tx-vendor-picker select {
  min-height: 38px;
  min-width: 0;
  border: 1px solid rgba(151, 178, 225, 0.2);
  border-radius: 8px;
  background: rgba(7, 18, 38, 0.72);
  color: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 0 10px;
}

.tx-vendor-dashboard {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(460px, 1.9fr) minmax(230px, 0.7fr);
  gap: 14px;
  margin-top: 14px;
}

.tx-vendor-detail-title {
  grid-column: 1 / -1;
  margin-top: 18px;
}

.tx-vendor-left,
.tx-vendor-main,
.tx-vendor-rail {
  display: grid;
  gap: 14px;
  align-content: start;
}

.tx-budget-breakdown {
  gap: 10px;
}

.tx-bar-row-full {
  grid-template-columns: minmax(190px, 1.2fr) minmax(160px, 1fr) 86px;
}

.tx-bar-row-full > span:first-child {
  color: #dce8ff;
  overflow-wrap: anywhere;
}

.tx-bar-row-full.is-context-only {
  opacity: 0.78;
}

.tx-bar-row-full em {
  display: inline-flex;
  margin-left: 5px;
  color: #f7c96f;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.tx-section-head > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(143, 124, 255, 0.18);
  color: #d9d2ff;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.tx-detail-panel {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(49, 212, 199, 0.26);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(15, 33, 62, 0.98), rgba(9, 21, 41, 0.98));
}

.tx-detail-head h3 {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
}

.tx-detail-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 8px;
}

.tx-detail-metrics.tx-vendor-mini-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}

.tx-detail-metric {
  min-height: 70px;
  padding: 10px;
  border: 1px solid rgba(151, 178, 225, 0.12);
  border-radius: 8px;
  background: rgba(151, 178, 225, 0.06);
}

.tx-detail-metric span {
  display: block;
  color: #8fa4c8;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tx-detail-metric strong {
  display: block;
  margin-top: 7px;
  color: #ffffff;
  font-size: 20px;
}

.tx-vendor-mini-metrics .tx-detail-metric {
  min-width: 0;
}

.tx-vendor-mini-metrics .tx-detail-metric strong {
  min-width: 0;
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.tx-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 14px;
}

.tx-detail-grid h4 {
  margin: 0 0 9px;
  color: #dfe8ff;
  font-size: 13px;
}

.tx-detail-bars {
  min-height: 160px;
  display: grid;
  grid-template-columns: repeat(14, minmax(16px, 1fr));
  gap: 6px;
  align-items: end;
  padding-top: 8px;
}

.tx-detail-bar {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 6px;
  min-width: 0;
  height: 160px;
}

.tx-detail-bar span {
  align-self: end;
  min-height: 4px;
  height: var(--bar, 0%);
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--tx-teal), #78e6a5);
}

.tx-detail-bar small {
  color: #8fa4c8;
  font-size: 10px;
  text-align: center;
  white-space: nowrap;
  transform: rotate(-35deg);
}

.tx-detail-statuses {
  display: grid;
  gap: 9px;
}

.tx-detail-status {
  display: grid;
  gap: 5px;
}

.tx-detail-status div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #dce8ff;
  font-size: 12px;
}

.tx-detail-status span {
  color: var(--tx-teal);
  font-weight: 900;
}

.tx-detail-status i {
  display: block;
  width: var(--bar, 0%);
  height: 7px;
  border-radius: 999px;
  background: var(--tx-purple);
}

.tx-chip-list {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tx-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(143, 124, 255, 0.18);
  color: #d9d2ff;
  font-size: 11px;
  font-weight: 800;
}

.tx-empty {
  color: #8fa4c8;
  padding: 18px;
  border: 1px dashed rgba(151, 178, 225, 0.2);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.55;
}

.tx-footnote {
  color: #8fa4c8;
  font-size: 11px;
  line-height: 1.45;
  margin-top: 10px;
}

@media (max-width: 1200px) {
  body.admin-review .portal-topbar,
  body.sidebar-shell .portal-topbar { grid-template-columns: minmax(0, 1fr) auto; }
  body.admin-review .portal-actions,
  body.sidebar-shell .portal-actions { justify-content: flex-end; }
  body.admin-review .tx-grid,
  body.sidebar-shell .tx-grid { grid-template-columns: 1fr; }
  body.admin-review .tx-rail,
  body.sidebar-shell .tx-rail { grid-column: auto; grid-template-columns: 1fr; }
  body.admin-review .tx-report-toolbar,
  body.sidebar-shell .tx-report-toolbar { align-items: stretch; flex-direction: column; flex-wrap: nowrap; }
  body.admin-review .tx-toolbar-spacer,
  body.sidebar-shell .tx-toolbar-spacer {
    flex: 0 1 auto;
    min-width: 0;
    margin-right: 0;
    width: 100%;
  }
  body.admin-review .tx-date-control,
  body.sidebar-shell .tx-date-control { align-items: stretch; flex-direction: column; }
  body.admin-review .tx-date-button,
  body.sidebar-shell .tx-date-button { width: 100%; min-width: 0; }
  body.admin-review .tx-date-panel,
  body.sidebar-shell .tx-date-panel { left: 0; right: auto; transform: none; width: 100%; min-width: 0; grid-template-columns: 1fr; }
  body.admin-review .tx-presets,
  body.sidebar-shell .tx-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); border-right: 0; }
  body.admin-review .tx-segment,
  body.sidebar-shell .tx-segment { width: 100%; }
  body.admin-review .tx-segment button,
  body.sidebar-shell .tx-segment button { flex: 1; }
  .tx-grid { grid-template-columns: minmax(240px, 0.85fr) minmax(420px, 1.5fr); }
  .tx-rail { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tx-detail-metrics { grid-template-columns: repeat(3, minmax(110px, 1fr)); }
  .tx-vendor-dashboard { grid-template-columns: minmax(240px, 0.85fr) minmax(420px, 1.5fr); }
  .tx-vendor-rail { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .tx-date-panel {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(760px, calc(100vw - 32px));
  }
}

@media (max-width: 900px) {
  body.admin-review .portal-shell,
  body.sidebar-shell .portal-shell,
  .portal-shell { width: min(100% - 24px, 1480px); margin: 0 auto; padding-top: 14px; }
  .admin-sidebar { position: static; width: 100%; }
  .sidebar-note { display: none; }
  .sidebar-nav { align-items: stretch; display: flex; flex-wrap: wrap; gap: 6px; overflow-x: visible; padding: 8px 10px; }
  .sidebar-nav a {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
    line-height: 1.25;
    min-width: min(180px, calc(50% - 6px));
    padding: 10px 12px;
    text-align: center;
    white-space: normal;
  }
  body.admin-review .portal-topbar,
  body.sidebar-shell .portal-topbar {
    align-items: stretch;
    gap: 14px;
    grid-template-columns: 1fr;
    min-height: 66px;
    height: auto;
    margin-bottom: 18px;
    border: 1px solid var(--tx-line);
    border-radius: 8px;
    padding: 14px 16px;
    position: static;
    box-shadow: var(--tx-shadow);
    backdrop-filter: none;
    overflow: visible;
  }
  body.admin-review .portal-actions,
  body.sidebar-shell .portal-actions {
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
  }
  body.admin-review .portal-title,
  body.sidebar-shell .portal-title {
    display: block;
  }
  body.admin-review .portal-title .eyebrow,
  body.sidebar-shell .portal-title .eyebrow {
    margin: 0 0 5px;
    color: #8ea7ff;
    font-size: 11px;
    line-height: normal;
    letter-spacing: 0.16em;
  }
  body.admin-review .portal-title h1,
  body.sidebar-shell .portal-title h1 {
    font-size: clamp(1.25rem, 2.3vw, 2rem);
    line-height: 1.05;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }
  body.admin-review .portal-title p,
  body.sidebar-shell .portal-title p {
    display: block;
  }
  body.admin-review .portal-status,
  body.sidebar-shell .portal-status { margin: 0 0 16px; }
  body.admin-review #dashboardRoot,
  body.sidebar-shell #dashboardRoot { padding: 0; }
  .portal-topbar { grid-template-columns: 1fr; }
  .portal-actions { justify-content: flex-start; }
  .tx-grid { grid-template-columns: 1fr; }
  .tx-rail { grid-template-columns: 1fr; }
  .tx-detail-grid { grid-template-columns: 1fr; }
  .tx-vendor-dashboard { grid-template-columns: 1fr; }
  .tx-vendor-rail { grid-template-columns: 1fr; }
  .tx-report-toolbar { align-items: stretch; flex-direction: column; flex-wrap: nowrap; }
  .tx-toolbar-spacer {
    flex: 0 1 auto;
    min-width: 0;
    margin-right: 0;
    width: 100%;
  }
  .tx-report-toolbar > * {
    align-self: stretch;
    margin-left: 0;
    margin-right: 0;
  }
  .tx-date-control { align-items: stretch; flex: 0 1 auto; flex-direction: column; width: 100%; }
  .tx-date-button { width: 100%; min-width: 0; }
  .tx-date-panel { left: 0; right: auto; transform: none; width: 100%; min-width: 0; grid-template-columns: 1fr; }
  .tx-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); border-right: 0; }
  .tx-report-toolbar > .tx-segment { flex: 0 1 auto; flex-wrap: wrap; width: 100%; }
  .tx-heatmap-wrap { grid-template-columns: 1fr; }
  .tx-vendor-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tx-vendor-month-chart { min-height: 320px; overflow-x: auto; }
  .tx-mobile-sort-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 10px 0 0;
  }
  .tx-sort-button.tx-mobile-sort-button {
    min-height: 34px;
    justify-content: center;
    border: 1px solid rgba(151, 178, 225, 0.16);
    border-radius: 8px;
    background: rgba(151, 178, 225, 0.07);
    padding: 0 10px;
    text-align: center;
  }
  .tx-table-wrap {
    overflow-x: visible;
  }
  .tx-table {
    min-width: 0 !important;
    border-collapse: separate;
    border-spacing: 0 8px;
  }
  .tx-table thead {
    display: none;
  }
  .tx-table tbody,
  .tx-table tr,
  .tx-table td {
    display: block;
    width: 100%;
  }
  .tx-table tr {
    padding: 4px 10px;
    border: 1px solid rgba(151, 178, 225, 0.12);
    border-radius: 8px;
    background: rgba(8, 21, 43, 0.82);
  }
  .tx-table tr.is-active {
    border-color: rgba(49, 212, 199, 0.32);
    box-shadow: inset 3px 0 0 var(--tx-teal);
  }
  .tx-table tr.is-active td,
  .tx-table tr.is-active td:first-child {
    background: transparent;
  }
  .tx-table td {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(151, 178, 225, 0.1);
    text-align: right;
  }
  .tx-table td::before {
    content: attr(data-label);
    color: #8fa4c8;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-align: left;
    text-transform: uppercase;
  }
  .tx-table td:first-child {
    position: static;
    display: block;
    background: transparent;
    text-align: left;
  }
  .tx-table td:first-child::before {
    display: none;
  }
  .tx-table td:last-child {
    border-bottom: 0;
  }
  .tx-table-link {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .portal-brand { align-items: flex-start; flex-direction: column; }
  .portal-brand img { width: 160px; }
  .portal-field { min-width: 100%; width: 100%; }
  .portal-actions {
    align-items: stretch;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .portal-actions .portal-field { grid-column: 1 / -1; min-width: 0; }
  .portal-field select { width: 100%; }
  .portal-button,
  .portal-link { flex: 1; min-width: 0; width: 100%; }
  .tx-grid { padding: 0 10px 10px; }
  .tx-section-nav { padding: 0 10px; }
  .tx-report-toolbar { padding: 10px; }
  .tx-toolbar-spacer {
    flex: 0 1 auto;
    min-width: 0;
    width: 100%;
  }
  .tx-date-control { width: 100%; }
  .tx-report-toolbar > .tx-segment { width: 100%; }
  .tx-report-toolbar > .tx-segment button { flex: 1; }
  .tx-date-panel {
    position: fixed;
    inset: 12px;
    width: auto;
    min-width: 0;
    height: calc(100vh - 24px);
    max-height: none;
    grid-template-columns: 1fr;
  }
  .tx-date-panel.opens-up {
    top: 12px;
    bottom: 12px;
  }
  .tx-calendar-head { display: grid; }
  .tx-calendar-nav { justify-content: space-between; }
  .tx-calendar-nav strong { min-width: 0; }
  .tx-split-metric,
  .tx-bar-row { grid-template-columns: 1fr; }
  .tx-lead-metric-grid { grid-template-columns: 1fr; }
  .tx-metric-chart-card { grid-template-columns: 1fr; }
  .tx-spark-panel { border-left: 0; border-top: 1px solid rgba(151, 178, 225, 0.14); padding: 10px 0 0; }
  .tx-split-metric > div:first-child { border-right: 0; border-bottom: 1px solid rgba(151, 178, 225, 0.16); padding-bottom: 10px; }
  .tx-overview-head { display: grid; }
  .tx-period-note { text-align: left; }
  .tx-section-head,
  .tx-detail-head { display: grid; }
  .tx-vendor-card-grid { grid-template-columns: 1fr; }
  .tx-vendor-month-chart { min-height: 300px; }
  .tx-vendor-month-chart canvas { min-width: 760px; }
  .tx-action-link { width: 100%; }
  .tx-vendor-trend-card .tx-action-link { width: auto; }
  .tx-detail-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tx-detail-bars { grid-template-columns: repeat(7, minmax(16px, 1fr)); }
  .tx-mobile-sort-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 10px 0 0;
  }
  .tx-sort-button.tx-mobile-sort-button {
    min-height: 34px;
    justify-content: center;
    border: 1px solid rgba(151, 178, 225, 0.16);
    border-radius: 8px;
    background: rgba(151, 178, 225, 0.07);
    padding: 0 10px;
    text-align: center;
  }
  .tx-table-wrap {
    overflow-x: visible;
  }
  .tx-table {
    min-width: 0 !important;
    border-collapse: separate;
    border-spacing: 0 8px;
  }
  .tx-table thead {
    display: none;
  }
  .tx-table tbody,
  .tx-table tr,
  .tx-table td {
    display: block;
    width: 100%;
  }
  .tx-table tr {
    padding: 4px 10px;
    border: 1px solid rgba(151, 178, 225, 0.12);
    border-radius: 8px;
    background: rgba(8, 21, 43, 0.82);
  }
  .tx-table tr.is-active {
    border-color: rgba(49, 212, 199, 0.32);
    box-shadow: inset 3px 0 0 var(--tx-teal);
  }
  .tx-table tr.is-active td,
  .tx-table tr.is-active td:first-child {
    background: transparent;
  }
  .tx-table td {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(151, 178, 225, 0.1);
    text-align: right;
  }
  .tx-table td::before {
    content: attr(data-label);
    color: #8fa4c8;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-align: left;
    text-transform: uppercase;
  }
  .tx-table td:first-child {
    position: static;
    display: block;
    background: transparent;
    text-align: left;
  }
  .tx-table td:first-child::before {
    display: none;
  }
  .tx-table td:last-child {
    border-bottom: 0;
  }
  .tx-table-link {
    width: 100%;
  }
  .tx-chip-list {
    justify-content: flex-end;
  }
}

@media (max-width: 900px) {
  .tx-table .tx-inline-detail-row {
    padding: 0;
    border: 0;
    background: transparent;
  }
  .tx-table .tx-inline-detail-cell,
  .tx-table .tx-inline-detail-cell:first-child {
    display: block;
    padding: 0 0 8px;
    border-bottom: 0;
    background: transparent;
    text-align: left;
  }
  .tx-table .tx-inline-detail-cell::before {
    display: none;
  }
  .tx-inline-detail-row .tx-detail-panel {
    margin-top: -2px;
    padding: 12px;
  }
}

@media (max-width: 420px) {
  .portal-shell { width: calc(100% - 16px); }
  .tx-dashboard { gap: 10px; }
  .tx-presets { grid-template-columns: 1fr; }
  .tx-preset { min-height: 34px; padding-inline: 12px; }
  .tx-calendar { padding: 12px 10px; }
  .tx-day { min-height: 31px; }
  .tx-day span { width: 31px; height: 31px; }
  .tx-calendar-foot { display: grid; grid-template-columns: 1fr 1fr; }
  .tx-calendar-action { width: 100%; }
}
