:root {
  color-scheme: light;
  --brand-primary: #365d6d;
  --brand-primary-hover: #294b59;
  --brand-primary-strong: #203c47;
  --brand-primary-soft: #e8eef1;
  --brand-on-primary: #ffffff;
  --ink: #172026;
  --muted: #5e6972;
  --line: #d9e0e6;
  --panel: #ffffff;
  --surface: #f5f7f9;
  --accent: var(--brand-primary);
  --accent-strong: var(--brand-primary-strong);
  --accent-rgb: 54 93 109;
  --positive: #177245;
  --warning: #865600;
  --negative: #ad343e;
  --navigation-background: #1f2933;
  --navigation-foreground: #ffffff;
  --navigation-muted: #d9e2e8;
  --navigation-active: #4f8aa1;
  --navigation-active-rgb: 79 138 161;
  --authentication-background-start: #1f2933;
  --authentication-background-middle: #52616b;
  --authentication-background-surface: #f5f7f9;
  --focus-ring: #4f8aa1;
  --chart-unique-texted: #4f7cac;
  --chart-screenings: #8a949e;
  --chart-successful: #2a9d8f;
  --chart-disqualified: #c25a46;
  --sidebar-expanded: 248px;
  --sidebar-collapsed: 72px;
  --utility-header-height: 72px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.nav-drawer-open {
  overflow: hidden;
}

.auth-view {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  padding: 24px;
  background: linear-gradient(145deg, var(--authentication-background-start) 0%, var(--authentication-background-middle) 52%, var(--authentication-background-surface) 52%);
}

.auth-view[hidden],
.app-shell[hidden] {
  display: none;
}

.auth-card {
  width: min(100%, 440px);
  padding: clamp(28px, 6vw, 48px);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgb(0 0 0 / 22%);
}

.auth-customer-brand {
  display: flex;
  width: 100%;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.customer-logo {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.customer-logo[hidden] {
  display: none;
}

.auth-customer-brand .customer-logo {
  width: min(100%, 400px);
}

.platform-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.platform-brand span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-platform-brand {
  flex-direction: column;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.auth-platform-brand img {
  width: 56px;
  max-height: 52px;
  height: auto;
  object-fit: contain;
}

.auth-card .eyebrow {
  color: var(--accent-strong);
}

.auth-card h1 {
  margin-bottom: 14px;
}

.auth-instructions,
.auth-status {
  color: var(--muted);
  line-height: 1.5;
}

.auth-form {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.auth-form label,
.auth-form label span {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.auth-form input,
.auth-form button {
  width: 100%;
  min-width: 0;
}

.auth-status {
  min-height: 24px;
  margin-top: 18px;
}

.auth-status.error {
  color: var(--negative);
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 6px;
  background: #ffffff;
  color: var(--accent-strong);
  font-weight: 800;
  transform: translateY(-160%);
}

.skip-link:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  transform: translateY(0);
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-expanded) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
  transition: grid-template-columns 180ms ease;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: var(--sidebar-collapsed) minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  flex-direction: column;
  grid-column: 1;
  grid-row: 1;
  height: 100vh;
  height: 100dvh;
  padding: 18px 12px;
  background: var(--navigation-background);
  color: var(--navigation-foreground);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sidebar-brand-row {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
}

.sidebar-brand {
  display: flex;
  min-width: 0;
  height: 44px;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  padding: 8px;
  background: var(--panel);
}
.customer-logo-full {
  width: 100%;
  max-width: 160px;
}

.customer-logo-compact-frame {
  position: relative;
  display: none;
  width: 44px;
  height: 28px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.customer-logo-compact {
  width: auto;
  max-width: 100%;
  max-height: 100%;
}

.customer-logo-compact[data-render-mode="crop-start"] {
  position: absolute;
  top: 50%;
  left: 0;
  width: var(--compact-logo-render-width);
  max-width: none;
  max-height: none;
  height: auto;
  transform: translateY(-50%);
}

.brand-mark {
  display: inline-flex;
  width: 44px;
  height: 36px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(var(--navigation-active-rgb) / 0.48);
  border-radius: 8px;
  color: var(--navigation-active);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.brand-name {
  overflow: hidden;
  white-space: nowrap;
}

.sidebar-control,
.mobile-nav-button {
  display: inline-flex;
  width: 44px;
  min-height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  border-color: rgba(255, 255, 255, 0.18);
  padding: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--navigation-foreground);
}

.sidebar-control:hover,
.sidebar-control:focus-visible,
.mobile-nav-button:hover,
.mobile-nav-button:focus-visible {
  border-color: var(--navigation-active);
  background: rgb(var(--navigation-active-rgb) / 0.12);
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.sidebar-control svg,
.mobile-nav-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.sidebar-collapse-button {
  margin-left: auto;
}

.sidebar-close-button {
  display: none;
  margin-left: auto;
}

.nav-section-label {
  margin: 30px 12px 8px;
  color: var(--navigation-active);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.primary-nav {
  display: grid;
  gap: 6px;
}
.sidebar-platform-brand {
  flex: 0 0 auto;
  flex-direction: column;
  margin-top: auto;
  padding-top: 20px;
}

.sidebar-platform-brand span {
  color: var(--navigation-muted);
}

.sidebar-platform-brand img {
  width: 46px;
  max-height: 43px;
  height: auto;
  border-radius: 8px;
  padding: 4px;
  background: var(--panel);
  object-fit: contain;
}

.nav-link {
  position: relative;
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--navigation-muted);
  font-weight: 750;
  text-decoration: none;
}

.nav-link::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--navigation-active);
  content: "";
  opacity: 0;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--navigation-foreground);
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.nav-link.is-active {
  background: rgb(var(--navigation-active-rgb) / 0.14);
  color: var(--navigation-foreground);
}

.nav-link.is-active::before {
  opacity: 1;
}

.nav-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.nav-label {
  overflow: hidden;
  white-space: nowrap;
}

.nav-tooltip {
  position: absolute;
  z-index: 60;
  top: 50%;
  left: calc(100% + 12px);
  min-width: max-content;
  border-radius: 6px;
  padding: 7px 10px;
  background: #172026;
  color: #ffffff;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(4px, -50%);
  transition: opacity 120ms ease, transform 120ms ease;
}

.app-shell.sidebar-collapsed .sidebar-brand {
  width: 48px;
  height: 44px;
  flex: 0 0 44px;
  justify-content: center;
  padding: 2px;
}

.app-shell.sidebar-collapsed .customer-logo-full {
  display: none;
}

.app-shell.sidebar-collapsed .customer-logo-compact-frame {
  display: flex;
}

.app-shell.sidebar-collapsed .sidebar-platform-brand span {
  display: none;
}

.app-shell.sidebar-collapsed .sidebar-platform-brand img {
  width: 40px;
  max-height: 38px;
}

.app-shell.sidebar-collapsed .brand-name,
.app-shell.sidebar-collapsed .nav-section-label,
.app-shell.sidebar-collapsed .nav-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.app-shell.sidebar-collapsed .sidebar-brand-row {
  flex-direction: column;
}

.app-shell.sidebar-collapsed .sidebar-collapse-button {
  margin: 8px 0 0;
}

.app-shell.sidebar-collapsed .sidebar-collapse-button svg {
  transform: rotate(180deg);
}

.app-shell.sidebar-collapsed .primary-nav {
  margin-top: 30px;
}

.app-shell.sidebar-collapsed .nav-link {
  justify-content: center;
  padding: 0;
}

.app-shell.sidebar-collapsed .nav-link:hover .nav-tooltip,
.app-shell.sidebar-collapsed .nav-link:focus-visible .nav-tooltip {
  opacity: 1;
  transform: translate(0, -50%);
}

.sidebar-backdrop {
  display: none;
}

.app-content {
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: var(--utility-header-height);
  justify-content: flex-end;
  gap: 24px;
  align-items: center;
  padding: 12px clamp(16px, 4vw, 48px);
  background: var(--navigation-background);
  color: var(--navigation-foreground);
}

.mobile-app-identity,
.mobile-nav-button,
.mobile-brand {
  display: none;
}

.eyebrow,
h1,
h2,
p {
  margin: 0;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin-top: 4px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.08;
}

h2 {
  font-size: 18px;
}

.session {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 220px;
  align-items: center;
  gap: 4px 14px;
  text-align: right;
}

.session-identity {
  min-width: 0;
}

.session span,
.session strong,
.panel-header span,
.toolbar p,
.kpi span,
.kpi small,
.outcome span {
  display: block;
  color: var(--muted);
}

.session span {
  color: var(--navigation-muted);
}

.session strong {
  color: var(--navigation-foreground);
  text-transform: capitalize;
}

.sign-out-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--navigation-active);
  padding: 0 12px;
  background: rgb(var(--navigation-active-rgb) / 0.08);
  color: var(--navigation-foreground);
}

.sign-out-button:hover,
.sign-out-button:focus-visible {
  border-color: var(--navigation-foreground);
  background: rgb(var(--navigation-active-rgb) / 0.18);
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.sign-out-button:active {
  background: rgb(var(--navigation-active-rgb) / 0.26);
}

.sign-out-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.session .sign-out-label {
  display: inline;
  color: inherit;
}

.session-status {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: #ffd8dc;
  font-size: 13px;
  font-weight: 700;
}

.session-status[hidden] {
  display: none;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 48px;
}

.view[hidden] {
  display: none;
}

.toolbar,
.panel-header,
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.toolbar {
  margin-bottom: 18px;
}

.page-heading {
  margin-bottom: 22px;
}

.page-heading p {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}

.page-heading h1:focus {
  outline: none;
}

.toolbar-actions,
.table-filters {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.custom-range {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
}

.custom-range[hidden] {
  display: none;
}

.toolbar-actions label,
.table-filters label,
.upload-form label {
  display: grid;
  gap: 4px;
  min-width: 130px;
}

.toolbar-actions label span,
.table-filters label span,
.upload-form label span,
.sync-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.sync-label.is-warning {
  color: var(--negative);
}

.table-filters {
  justify-content: flex-start;
  margin-top: 14px;
}

select,
input {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

#candidateFileInput {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

input {
  width: 112px;
}

input[type="date"] {
  width: 142px;
}

.job-number-filter {
  position: relative;
  display: grid;
  gap: 4px;
  min-width: 220px;
}

.filter-field-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.job-number-filter-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 220px;
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
  text-align: left;
}

.job-number-filter-trigger:hover,
.job-number-filter-trigger:focus-visible {
  border-color: var(--accent);
}

.job-number-filter-chevron {
  margin-left: 12px;
  color: var(--muted);
  transition: transform 140ms ease;
}

.job-number-filter-trigger[aria-expanded="true"] .job-number-filter-chevron {
  transform: rotate(180deg);
}

.job-number-filter-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  display: grid;
  width: min(380px, calc(100vw - 32px));
  max-height: min(580px, calc(100vh - 120px));
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(21, 44, 52, 0.18);
}

.job-number-filter-panel[hidden] {
  display: none;
}

.table-filters .job-number-search-label {
  display: block;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

#jobNumberFilterSearch {
  width: 100%;
  margin-top: 4px;
}

.job-number-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.job-number-quick-actions button {
  flex: 1 1 130px;
  border-color: var(--line);
  background: #ffffff;
  color: var(--accent-strong);
}

.job-number-quick-actions button[aria-pressed="true"] {
  border-color: var(--accent);
  background: rgb(var(--accent-rgb) / 0.1);
  color: var(--accent-strong);
}

.job-number-selection-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.job-number-clear {
  min-height: 32px;
  border: 0;
  padding: 0 4px;
  background: transparent;
  color: var(--accent-strong);
}

.job-number-options-fieldset {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
  overflow: hidden;
}

.job-number-options {
  max-height: 260px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow-y: auto;
}

.table-filters .job-number-option {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
  cursor: pointer;
}

.table-filters .job-number-option:last-child {
  border-bottom: 0;
}

.table-filters .job-number-option:hover {
  background: var(--surface);
}

.table-filters .job-number-option input {
  flex: 0 0 auto;
  width: auto;
  min-height: auto;
  margin: 0;
}

.table-filters .job-number-option span {
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.table-filters .job-number-option.is-unavailable span {
  color: var(--muted);
}

.job-number-options-message {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.job-number-options-message.error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--negative);
}

.job-number-options-message.error[hidden] {
  display: none;
}

.job-number-options-message button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 10px;
}

.job-number-filter-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.job-number-filter-footer button:first-child {
  border-color: var(--line);
  background: #ffffff;
  color: var(--accent-strong);
}

button {
  min-height: 40px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 0 16px;
  background: var(--accent);
  color: var(--brand-on-primary);
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

button:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.export-button {
  flex: 0 0 auto;
  border-color: var(--line);
  background: #ffffff;
  color: var(--accent-strong);
}

.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 6px;
  padding: 0 14px;
  font-weight: 800;
  text-decoration: none;
  touch-action: manipulation;
}

.download-link {
  border: 1px solid var(--line);
  color: var(--accent-strong);
  background: #ffffff;
}

.download-link:hover,
.download-link:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.export-button:hover,
.export-button:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.kpi,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.panel {
  position: relative;
}

.kpi {
  padding: 16px;
}

.kpi strong {
  display: block;
  margin: 8px 0 2px;
  font-size: 30px;
}

.kpi-grid.is-loading .kpi {
  overflow: hidden;
  position: relative;
}

.kpi-grid.is-loading .kpi::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  animation: shimmer 1s linear infinite;
  transform: translateX(-100%);
}

.kpi-skeleton span,
.kpi-skeleton strong,
.kpi-skeleton small {
  display: block;
  border-radius: 999px;
  background: var(--line);
  color: transparent !important;
}

.kpi-skeleton span {
  width: 62%;
  height: 14px;
}

.kpi-skeleton strong {
  width: 42%;
  height: 36px;
  margin: 10px 0 6px;
}

.kpi-skeleton small {
  width: 24%;
  height: 12px;
}

.positive {
  color: var(--positive) !important;
}

.negative {
  color: var(--negative) !important;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 16px;
  margin-bottom: 16px;
}

.upload-panel {
  margin-bottom: 16px;
}

.outreach-job-context {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: end;
  gap: 20px;
  margin-bottom: 16px;
}

.outreach-job-context p,
.section-context-message {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.outreach-job-context label {
  display: grid;
  gap: 4px;
}

.outreach-job-context label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.reminder-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.reminder-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 10px;
}

.reminder-counts[hidden] {
  display: none;
}

.reminder-count {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: var(--brand-primary-soft);
}

.reminder-count strong,
.reminder-count span {
  display: block;
}

.reminder-count strong {
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}

.reminder-count span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.confirmation-dialog {
  width: min(720px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 10px;
  padding: 0;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 24px 64px rgba(7, 17, 21, 0.28);
}

.confirmation-dialog::backdrop {
  background: rgba(7, 17, 21, 0.58);
}

.confirmation-dialog-content {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.confirmation-dialog-content h2,
.confirmation-dialog-content p {
  margin: 0;
}

.confirmation-dialog-content p {
  color: var(--muted);
  font-weight: 650;
  line-height: 1.5;
}

.confirmation-dialog-note {
  font-size: 13px;
}

.confirmation-reminder-counts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.confirmation-reminder-counts[hidden] {
  display: none;
}

.confirmation-reminder-counts > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  gap: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  background: var(--panel);
}

.confirmation-reminder-counts dt {
  align-self: center;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}

.confirmation-reminder-counts dd {
  display: contents;
}

.confirmation-reminder-count-value {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.confirmation-reminder-count-detail {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
  font-weight: 450;
  line-height: 1.5;
}

.confirmation-reminder-counts > .confirmation-reminder-count--eligible {
  background: var(--brand-primary-soft);
  border-color: var(--accent);
}

.confirmation-dialog-content .confirmation-reminder-calculation {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.confirmation-dialog-content .confirmation-reminder-history {
  padding: 12px;
  border-left: 3px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  font-weight: 450;
}

.column-heading-subtitle {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  text-transform: none;
  white-space: normal;
}

.confirmation-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.confirmation-dialog-actions .secondary-action {
  border-color: var(--line);
  background: #ffffff;
  color: var(--accent-strong);
}

.confirmation-dialog-actions .secondary-action:hover,
.confirmation-dialog-actions .secondary-action:focus-visible {
  border-color: var(--accent);
}

.outreach-history-panel .table-wrap,
.outreach-history-panel .table-wrap .panel-loading {
  min-height: 180px;
}

.outreach-history-table {
  min-width: 1120px;
}

.outreach-history-table td {
  height: 68px;
}

.outreach-history-activity-cell {
  vertical-align: middle;
}

.outreach-history-activity-cell time {
  display: block;
}

.outreach-type-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 3px 8px;
  background: var(--brand-primary-soft);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  max-width: 290px;
  margin-top: 6px;
  white-space: normal;
}

.outreach-type-badge--reminder {
  background: #fff1cc;
  color: #774900;
}

.outreach-history-action-status {
  margin-top: 12px;
  border-left: 3px solid var(--accent);
  padding: 8px 10px;
  background: var(--brand-primary-soft);
}

.outreach-history-action-status[hidden] {
  display: none;
}

.outreach-history-table-wrap {
  overscroll-behavior-inline: contain;
}

.outreach-history-table th:last-child {
  position: sticky;
  right: 0;
  z-index: 2;
  min-width: 150px;
  background: var(--panel);
  box-shadow: -8px 0 14px -14px rgba(7, 17, 21, 0.65);
}

.outreach-history-actions-cell {
  position: sticky;
  right: 0;
  z-index: 1;
  min-width: 150px;
  background: var(--panel);
  box-shadow: -8px 0 14px -14px rgba(7, 17, 21, 0.65);
}

.history-reminder-button {
  min-width: 126px;
  border-color: var(--line);
  padding: 0 12px;
  background: #ffffff;
  color: var(--accent-strong);
  white-space: nowrap;
}

.history-reminder-button:hover,
.history-reminder-button:focus-visible {
  border-color: var(--accent);
}

.outreach-history-table time,
.outreach-history-table td:nth-child(4),
.outreach-history-table td:nth-child(5),
.outreach-history-table td:nth-child(6) {
  font-variant-numeric: tabular-nums;
}

.delivery-count-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--warning);
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.delivery-count-button:focus-visible {
  border-radius: 3px;
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.delivery-details-cell {
  height: auto !important;
  padding: 16px 20px !important;
  background: var(--brand-primary-soft);
  white-space: normal;
}

.delivery-details {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.delivery-details h3,
.delivery-details p {
  margin: 0;
}

.delivery-details-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  margin: 0;
}

.delivery-metrics {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.detail-metrics > div {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  background: #ffffff;
}

.delivery-metrics > div {
  min-width: 0;
  gap: 8px;
  padding: 14px;
}

.detail-metrics dt {
  position: relative;
  display: flex;
  min-height: 2.4rem;
  align-items: flex-start;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.delivery-metrics dt {
  display: grid;
  min-width: 0;
  min-height: 3.2rem;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: start;
  gap: 8px;
}

.metric-label {
  min-width: 0;
  line-height: 1.35;
  overflow-wrap: break-word;
  white-space: normal;
}

.metric-help {
  display: inline-flex;
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: var(--muted);
  cursor: help;
}

.metric-help:hover,
.metric-help:focus-visible {
  background: var(--brand-primary-soft);
  color: var(--accent-strong);
}

.metric-help:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.metric-help svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.metric-help .metric-help-dot {
  fill: currentColor;
  stroke: none;
}

.column-heading-with-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.column-heading-help {
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  flex-basis: 22px;
}

.column-heading-help svg {
  width: 18px;
  height: 18px;
}

.metric-tooltip.column-heading-tooltip {
  right: 0;
  left: auto;
  text-transform: none;
}

.metric-tooltip {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  z-index: 10;
  width: 280px;
  max-width: min(280px, calc(100vw - 48px));
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--navigation-background);
  box-shadow: 0 8px 20px rgba(16, 42, 42, 0.18);
  color: #ffffff;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  opacity: 0;
  overflow-wrap: break-word;
  pointer-events: none;
  text-align: left;
  transform: translateY(-4px);
  visibility: hidden;
  white-space: normal;
}

.delivery-metrics > div:nth-child(n + 4) .metric-tooltip {
  right: 0;
  left: auto;
}

.metric-help:hover + .metric-tooltip,
.metric-help:focus + .metric-tooltip {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.detail-metrics dd {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.delivery-failure-card {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  background: #ffffff;
}

.outreach-history-empty {
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.upload-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.upload-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr);
  gap: 10px;
  align-items: end;
}

.field-wide select {
  width: 100%;
}

.schedule-fields {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfd;
}

.schedule-fields[hidden] {
  display: none;
}

.schedule-fields legend {
  padding: 0 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 180px)) repeat(2, minmax(220px, 1fr));
  gap: 10px;
  align-items: end;
}

.schedule-grid input,
.schedule-grid select {
  width: 100%;
}

.field-help,
.schedule-summary,
.action-hint,
.preview-confirmation-copy {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.field-help {
  margin-top: 10px;
}

.schedule-summary {
  margin-top: 6px;
  color: var(--accent-strong);
}

.upload-dropzone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 104px;
  border: 1px dashed var(--accent);
  border-radius: 8px;
  padding: 16px;
  background: var(--brand-primary-soft);
}

.upload-dropzone strong,
.upload-dropzone span,
.upload-context {
  display: block;
}

.upload-dropzone span,
.upload-context {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.upload-actions,
.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.upload-actions {
  align-items: flex-end;
  flex-direction: column;
  min-width: min(360px, 100%);
}

.file-selection-actions,
.preview-file-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.file-action-button {
  min-width: 132px;
}

.secondary-file-action {
  border-color: var(--line);
  background: #ffffff;
  color: var(--accent-strong);
}

.file-action-button:hover,
.file-action-button:focus-visible {
  border-color: var(--accent-strong);
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.candidate-file-status {
  width: 100%;
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-align: right;
}

.preview-file-selection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: #ffffff;
}

.preview-file-copy {
  min-width: 0;
}

.preview-file-copy span,
.preview-file-copy strong {
  display: block;
}

.preview-file-copy span {
  color: var(--muted);
  font-size: 12px;
}

.preview-file-copy strong {
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.form-actions {
  justify-content: flex-end;
}

.form-actions .secondary-action {
  border-color: var(--accent);
  background: #ffffff;
  color: var(--accent-strong);
}

.form-actions .secondary-action:hover,
.form-actions .secondary-action:focus-visible,
.form-actions button.is-selected:focus-visible {
  border-color: var(--accent-strong);
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.action-hint {
  text-align: right;
}

.upload-result {
  min-height: 22px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.upload-result.success {
  color: var(--positive);
}

.upload-result.warning {
  color: var(--warning);
}

.upload-result.error {
  color: var(--negative);
}

.upload-preview {
  display: grid;
  gap: 14px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 16px;
  background: var(--brand-primary-soft);
}

.upload-preview[hidden] {
  display: none;
}

.preview-heading,
.preview-errors-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.preview-heading h3 {
  margin: 3px 0 0;
  font-size: 18px;
}

.preview-heading h3:focus {
  border-radius: 3px;
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.preview-eyebrow {
  color: var(--accent);
}

.preview-mode {
  display: inline-flex;
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--brand-primary-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.preview-counts {
  display: grid;
  grid-template-columns: repeat(5, minmax(90px, 1fr));
  gap: 8px;
}

.preview-count {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
  background: #ffffff;
}

.preview-count strong,
.preview-count span,
.preview-destination strong,
.preview-destination span {
  display: block;
}

.preview-count strong {
  color: var(--ink);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.preview-count span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.preview-count.positive {
  border-color: #a8d3bd;
}

.preview-count.negative {
  border-color: #e2b8bc;
}

.preview-destination {
  border-left: 4px solid var(--accent);
  padding: 8px 12px;
  background: #ffffff;
}

.preview-destination span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.preview-errors {
  display: grid;
  gap: 8px;
}

.compact-link {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.preview-error-table-wrap {
  max-height: 250px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
}

.preview-error-table {
  min-width: 540px;
}

.preview-error-table caption {
  padding: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-align: left;
}

.preview-error-table th,
.preview-error-table td {
  padding: 9px 10px;
  white-space: normal;
  vertical-align: top;
}

.valid-rows-confirmation {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 10px !important;
  width: 100%;
  border: 1px solid #e0b56c;
  border-radius: 7px;
  padding: 12px;
  background: #fff9ec;
  color: #714a00;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
}

.valid-rows-confirmation[hidden] {
  display: none !important;
}

.valid-rows-confirmation input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  min-height: 18px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

.panel {
  padding: 18px;
}

.volume-panel {
  display: flex;
  flex-direction: column;
}

.chart {
  display: block;
  flex: 1 1 360px;
  width: 100%;
  min-height: 360px;
  margin-top: 18px;
}

.day-group {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 8px;
  justify-self: center;
  width: 100%;
  max-width: 170px;
  min-width: 74px;
}

.day-bars {
  display: grid;
  grid-template-columns: repeat(var(--status-count, 1), minmax(7px, 1fr));
  align-items: end;
  gap: 2px;
  min-height: 0;
  border-bottom: 1px solid var(--line);
}

.bar {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 28px;
  border-radius: 6px 6px 0 0;
  background: var(--chart-successful);
  outline: none;
}

.bar.is-zero {
  background: transparent;
}

.bar[data-tooltip]::after,
.outcome-help[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 4;
  width: max-content;
  max-width: 220px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--navigation-background);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translate(-50%, 6px);
  transition: opacity 0.08s ease, transform 0.08s ease;
}

.bar[data-tooltip]::before,
.outcome-help[data-tooltip]::before {
  content: "";
  position: absolute;
  z-index: 5;
  width: 8px;
  height: 8px;
  background: var(--navigation-background);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px) rotate(45deg);
  transition: opacity 0.08s ease, transform 0.08s ease;
}

.bar[data-tooltip]::after {
  left: 50%;
  bottom: calc(100% + 14px);
}

.bar[data-tooltip]::before {
  left: 50%;
  bottom: calc(100% + 8px);
}

.bar[data-tooltip]:hover::after,
.bar[data-tooltip]:focus-visible::after,
.bar[data-tooltip]:hover::before,
.bar[data-tooltip]:focus-visible::before,
.outcome-help[data-tooltip]:hover::after,
.outcome-help[data-tooltip]:focus-visible::after,
.outcome-help[data-tooltip]:hover::before,
.outcome-help[data-tooltip]:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

.bar span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  white-space: nowrap;
  top: -22px;
  color: var(--ink);
  font-weight: 700;
}

.day-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
}

.status-successful {
  background: var(--chart-successful);
}

.status-unique_texted {
  background: var(--chart-unique-texted);
}

.status-disqualified {
  background: var(--chart-disqualified);
}

.status-completed_unclassified {
  background: linear-gradient(180deg, #9ca3af, #64748b);
}

.status-hung_up,
.status-not_interested,
.status-need_to_call_again {
  background: linear-gradient(180deg, #d08a2d, #9a5b0f);
}

.status-do_not_call,
.status-failed {
  background: linear-gradient(180deg, #7c3aed, #5120a2);
}

.status-no_answer,
.status-unknown {
  background: linear-gradient(180deg, #4b83c4, #1f5f9f);
}

.status-other {
  background: linear-gradient(180deg, #64748b, #334155);
}

.outcomes {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.outcome {
  display: grid;
  gap: 8px;
}

.outcome-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
}

.outcome-title {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.outcome-marker {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.outcome strong {
  text-transform: capitalize;
}

.outcome-help {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: help;
}

.outcome-help:hover,
.outcome-help:focus-visible {
  border-color: var(--accent);
  color: var(--accent-strong);
  outline: none;
}

.outcome-help[data-tooltip]::after {
  right: 0;
  bottom: calc(100% + 12px);
  transform: translate(0, 6px);
}

.outcome-help[data-tooltip]::before {
  right: 8px;
  bottom: calc(100% + 7px);
  transform: translate(0, 6px) rotate(45deg);
}

.outcome-help[data-tooltip]:hover::after,
.outcome-help[data-tooltip]:focus-visible::after {
  transform: translate(0, 0);
}

.outcome-help[data-tooltip]:hover::before,
.outcome-help[data-tooltip]:focus-visible::before {
  transform: translate(0, 0) rotate(45deg);
}

meter {
  width: 100%;
  height: 10px;
}

.table-wrap {
  position: relative;
  overflow-x: auto;
  margin-top: 12px;
  min-height: 360px;
}

.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.pagination-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination-actions button {
  min-width: 76px;
  border-color: var(--line);
  background: #ffffff;
  color: var(--accent-strong);
}

.panel-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 140px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--accent-strong);
  font-weight: 700;
}

.table-wrap .panel-loading {
  min-height: 360px;
}

.panel-loading[hidden] {
  display: none;
}

.panel-loading::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 3px solid var(--line);
  border-top-color: var(--accent-strong);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.billing-header {
  align-items: end;
  gap: 24px;
}

.billing-filters {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}

.billing-filters label {
  display: grid;
  gap: 6px;
}

.billing-filters label span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.billing-filters input {
  min-width: 154px;
}

.billing-status {
  min-height: 24px;
  margin: 12px 0 4px;
  color: var(--muted);
}

.billing-status.error,
.billing-status.warning {
  color: var(--negative);
}

.billing-table-wrap {
  position: relative;
}

.billing-table .numeric-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.billing-table .billing-prescreen-cost-heading {
  min-width: 144px;
  white-space: normal;
  line-height: 1.35;
}

.billing-table .billing-success-cost-heading {
  min-width: 168px;
  white-space: normal;
  line-height: 1.35;
}

.billing-count-button,
.outreach-attempt-count {
  color: var(--accent-strong);
}

.billing-details-cell {
  text-align: left;
  white-space: normal;
}

.billing-details-cell .detail-metrics > div {
  min-width: 0;
  padding: 12px 14px;
}

.billing-details-cell .detail-metrics dt {
  min-width: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.billing-details-cell .billing-metric-heading-with-subtitle {
  flex-direction: column;
  gap: 2px;
}

.billing-details-cell .billing-metric-subtitle {
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.3;
}

.billing-table tfoot {
  border-top: 2px solid var(--line);
  font-weight: 800;
}

.billing-table tfoot th {
  text-align: left;
}

@media (max-width: 767px) {
  .billing-header,
  .billing-filters {
    align-items: stretch;
  }

  .billing-filters {
    width: 100%;
  }

  .billing-filters label,
  .billing-filters button {
    flex: 1 1 150px;
  }

  .billing-filters input {
    width: 100%;
  }
}

.panel.is-loading .chart,
.panel.is-loading .outcomes,
#recentCallsPanel.is-loading table {
  opacity: 0.45;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--brand-primary-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}

@media (max-width: 1023px) {
  .app-shell,
  .app-shell.sidebar-collapsed {
    display: block;
  }

  .app-content {
    min-width: 0;
  }

  .sidebar {
    position: fixed;
    z-index: 50;
    top: 0;
    left: 0;
    width: min(84vw, 288px);
    max-width: 100%;
    padding-top: max(18px, env(safe-area-inset-top));
    padding-bottom: max(18px, env(safe-area-inset-bottom));
    box-shadow: 12px 0 36px rgba(0, 0, 0, 0.28);
    overscroll-behavior: contain;
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  .app-shell.nav-drawer-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-collapse-button {
    display: none;
  }

  .sidebar-close-button {
    display: inline-flex;
  }

  .mobile-app-identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
  }

  .mobile-nav-button {
    display: inline-flex;
  }

  .mobile-brand {
    display: inline;
    overflow: hidden;
    color: var(--navigation-foreground);
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar {
    justify-content: space-between;
  }

  .sidebar-backdrop {
    position: fixed;
    z-index: 45;
    inset: 0;
    display: block;
    width: 100%;
    min-height: 0;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: rgba(7, 17, 21, 0.58);
    cursor: default;
  }

  .sidebar-backdrop[hidden] {
    display: none;
  }

  .sidebar-backdrop:focus-visible {
    outline: none;
  }

  .app-shell.sidebar-collapsed .sidebar-brand-row {
    flex-direction: row;
  }

  .app-shell.sidebar-collapsed .sidebar-brand {
    width: auto;
    height: 44px;
    flex: 1 1 auto;
    padding: 8px;
  }

  .app-shell.sidebar-collapsed .customer-logo-full {
    display: block;
    max-width: 180px;
  }

  .app-shell.sidebar-collapsed .customer-logo-compact-frame {
    display: none;
  }

  .app-shell.sidebar-collapsed .sidebar-platform-brand span {
    display: block;
  }

  .app-shell.sidebar-collapsed .sidebar-platform-brand img {
    width: 46px;
    max-height: 43px;
  }
}

@media (max-width: 820px) {
  .toolbar,
  .panel-header,
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .session {
    min-width: 0;
    text-align: right;
  }

  .toolbar-actions,
  .table-filters,
  .table-pagination,
  .upload-dropzone,
  .upload-actions,
  .file-selection-actions,
  .preview-file-actions,
  .form-actions,
  .confirmation-dialog-actions {
    justify-content: stretch;
    width: 100%;
  }

  .toolbar-actions label,
  .table-filters label,
  .pagination-actions,
  .pagination-actions button,
  .upload-form label,
  .custom-range,
  .custom-range label,
  .toolbar-actions button,
  .export-button,
  .download-link,
  .form-actions button,
  .file-selection-actions button,
  .preview-file-actions button,
  .confirmation-dialog-actions button {
    width: 100%;
  }

  .chart {
    flex-basis: 340px;
    min-height: 340px;
  }

  input {
    width: 100%;
  }

  .job-number-filter,
  .job-number-filter-trigger {
    width: 100%;
    min-width: 0;
  }

  .job-number-filter-panel {
    width: 100%;
    max-width: calc(100vw - 32px);
  }

  .kpi-grid,
  .dashboard-grid,
  .upload-grid,
  .schedule-grid,
  .outreach-job-context,
  .reminder-counts {
    grid-template-columns: 1fr;
  }

  .upload-dropzone {
    align-items: stretch;
    flex-direction: column;
  }

  .candidate-file-status {
    max-width: none;
    text-align: left;
  }

  .preview-file-selection {
    align-items: stretch;
    flex-direction: column;
  }

  .preview-heading,
  .preview-errors-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .preview-counts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .action-hint {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .confirmation-dialog-content {
    padding: 20px;
  }

  .confirmation-reminder-counts {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    padding: 10px 16px;
  }

  .session {
    padding-left: 54px;
    text-align: left;
  }

  main {
    width: min(100% - 24px, 1180px);
    margin-top: 18px;
  }

  .page-heading h1 {
    font-size: 30px;
  }
}
