@import "https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap";
/* [project]/tokens.css [app-client] (css) */
.waterfall-report {
  --wf-paper: #f4f9fb;
  --wf-paper-raised: #fff;
  --wf-paper-muted: #e6f1f4;
  --wf-paper-strong: #d4e5eb;
  --wf-rule: #c2d1d6;
  --wf-rule-strong: #8ea2a9;
  --wf-ink: #121b26;
  --wf-ink-soft: #37444f;
  --wf-muted: #4e5d68;
  --wf-accent: #00acc2;
  --wf-accent-ink: #05161f;
  --wf-accent-soft: #caf4fc;
  --wf-accent-mid: #96dfec;
  --wf-accent-strong: #49c4d8;
  --wf-accent-soft-ink: var(--wf-accent-ink);
  --wf-accent-mid-ink: var(--wf-accent-ink);
  --wf-accent-strong-ink: var(--wf-accent-ink);
  --wf-action: #cd175a;
  --wf-action-hover: #b3004b;
  --wf-action-ink: #fcf7f8;
  --wf-success: #007742;
  --wf-success-soft: #d5f5de;
  --wf-warning: #925b00;
  --wf-warning-soft: #ffeccf;
  --wf-error: #b7262b;
  --wf-error-soft: #ffe6e3;
  --wf-focus: #005c99;
  --wf-shadow: 0 1px 2px #0c181d14;
  --wf-font-display: "Outfit", sans-serif;
  --wf-font-body: "Inter", sans-serif;
  --wf-space-2xs: .25rem;
  --wf-space-xs: .5rem;
  --wf-space-sm: .75rem;
  --wf-space-md: 1rem;
  --wf-space-lg: 1.5rem;
  --wf-space-xl: 2rem;
  --wf-radius-xs: .25rem;
  --wf-radius-sm: .375rem;
  --wf-radius: .75rem;
  --wf-ease-out: cubic-bezier(.16, 1, .3, 1);
  --wf-duration: .15s;
  --wf-z-cell: 10;
  --wf-z-sticky: 20;
  --wf-z-corner: 30;
}

@supports (color: lab(0% 0 0)) {
  .waterfall-report {
    --wf-paper: lab(97.7171% -1.53574 -1.47938);
    --wf-paper-raised: lab(100.025% -1.0249 -.987029);
    --wf-paper-muted: lab(94.2736% -3.06025 -2.95185);
    --wf-paper-strong: lab(89.6813% -5.0734 -4.90376);
    --wf-rule: lab(82.7093% -4.56822 -4.41462);
    --wf-rule-strong: lab(65.3492% -6.29097 -6.10176);
    --wf-ink: lab(9.44505% -1.64548 -8.71519);
    --wf-ink-soft: lab(28.0692% -3.02485 -8.4367);
    --wf-muted: lab(38.5451% -3.80115 -8.10769);
    --wf-accent: lab(63.9082% -38.0151 -25.7419);
    --wf-accent-ink: lab(6.22033% -3.63712 -8.70091);
    --wf-accent-soft: lab(93.4013% -12.9303 -8.56767);
    --wf-accent-mid: lab(84.3496% -21.2903 -14.1346);
    --wf-accent-strong: lab(72.9974% -30.6088 -20.4635);
    --wf-action: lab(45.3135% 68.0378 13.0603);
    --wf-action-hover: lab(38.4699% 64.6868 12.552);
    --wf-action-ink: lab(97.6098% 2.00656 .337577);
    --wf-success: lab(43.669% -41.9439 21.7007);
    --wf-success-soft: lab(93.646% -13.9689 7.15933);
    --wf-warning: lab(43.9735% 22.2239 68.8592);
    --wf-warning-soft: lab(94.2817% 3.6093 17.2284);
    --wf-error: lab(41.3325% 57.0013 35.7415);
    --wf-error-soft: lab(93.7822% 13.8254 7.47877);
    --wf-focus: lab(36.4146% -2.70434 -54.5591);
    --wf-shadow: 0 1px 2px lab(7.2825% -3.4845 -5.63906 / .08);
  }
}

body.dark-mode .waterfall-report {
  --wf-paper: #0b1219;
  --wf-paper-raised: #131c23;
  --wf-paper-muted: #19232c;
  --wf-paper-strong: #222f3b;
  --wf-rule: #303c47;
  --wf-rule-strong: #5c6b77;
  --wf-ink: #e4edf2;
  --wf-ink-soft: #bdc9d2;
  --wf-muted: #a1b1ba;
  --wf-accent: #2abfd4;
  --wf-accent-ink: #04141d;
  --wf-accent-soft: #062e37;
  --wf-accent-mid: #004e5c;
  --wf-accent-strong: #2396a9;
  --wf-accent-soft-ink: var(--wf-ink);
  --wf-accent-mid-ink: var(--wf-ink);
  --wf-accent-strong-ink: var(--wf-accent-ink);
  --wf-action: #e9597d;
  --wf-action-hover: #f76d8d;
  --wf-action-ink: #08131c;
  --wf-success: #6ac48c;
  --wf-success-soft: #152c1e;
  --wf-warning: #ebb761;
  --wf-warning-soft: #3a2710;
  --wf-error: #ff958d;
  --wf-error-soft: #431f1d;
  --wf-focus: #41c8f6;
  --wf-shadow: 0 1px 2px #00020459;
}

@supports (color: lab(0% 0 0)) {
  body.dark-mode .waterfall-report {
    --wf-paper: lab(5.25516% -1.47232 -5.33571);
    --wf-paper-raised: lab(9.50385% -2.26924 -6.6971);
    --wf-paper-muted: lab(12.9832% -2.51566 -7.37308);
    --wf-paper-strong: lab(18.7786% -3.07098 -9.04348);
    --wf-rule: lab(24.5871% -2.98311 -8.42127);
    --wf-rule-strong: lab(44.3472% -3.97566 -8.44139);
    --wf-ink: lab(93.0727% -2.25675 -3.74303);
    --wf-ink-soft: lab(80.3271% -3.34764 -5.5945);
    --wf-muted: lab(71.0557% -4.05175 -6.81762);
    --wf-accent: lab(70.7444% -33.1715 -22.245);
    --wf-accent-ink: lab(5.28758% -3.20291 -8.2871);
    --wf-accent-soft: lab(16.7652% -11.4582 -9.52532);
    --wf-accent-mid: lab(29.676% -17.6264 -14.7623);
    --wf-accent-strong: lab(56.6268% -26.7996 -19.6093);
    --wf-action: lab(58.4361% 58.7687 10.8177);
    --wf-action-hover: lab(64.3562% 55.6461 10.1203);
    --wf-action-ink: lab(5.23886% -1.80497 -7.58301);
    --wf-success: lab(72.5749% -37.9352 19.5176);
    --wf-success-soft: lab(15.8464% -12.6181 6.4887);
    --wf-warning: lab(77.9988% 12.7693 50.5066);
    --wf-warning-soft: lab(17.5731% 6.81452 18.2326);
    --wf-error: lab(73.228% 40.5134 22.6485);
    --wf-error-soft: lab(17.1067% 17.1804 9.69151);
    --wf-focus: lab(74.9569% -26.4609 -33.6324);
    --wf-shadow: 0 1px 2px lab(.457298% -.177614 -.976658 / .35);
  }
}

/* [project]/packages/admin-reporting/src/components/WaterfallReportTab.css [app-client] (css) */
html:has(.waterfall-report) {
  overflow-x: clip;
}

body.admin-reporting-active:has(.waterfall-report) {
  overflow-x: clip;
}

.waterfall-report {
  gap: var(--wf-space-md);
  min-width: 0;
  padding: var(--wf-space-md);
  color: var(--wf-ink);
  font-family: var(--wf-font-body);
  font-variant-numeric: tabular-nums;
  overflow-x: clip;
}

.waterfall-controls {
  gap: var(--wf-space-md);
  padding: var(--wf-space-md);
  border: 1px solid var(--wf-rule);
  border-radius: var(--wf-radius);
  background: var(--wf-paper-raised);
  color: var(--wf-ink);
  box-shadow: var(--wf-shadow);
  display: grid;
}

.waterfall-controls__copy {
  min-width: 0;
}

.waterfall-controls__timer {
  border: 1px solid var(--wf-rule);
  border-radius: var(--wf-radius-sm);
  background: var(--wf-paper);
  color: var(--wf-muted);
  white-space: nowrap;
  order: 99;
  align-items: center;
  gap: .25rem;
  margin-inline-start: auto;
  padding: .35rem .6rem;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  flex: none !important;
}

.waterfall-controls__timer strong {
  color: var(--wf-ink);
  font-variant-numeric: tabular-nums;
  font-size: .78rem;
}

.waterfall-controls__timer--running {
  border-color: color-mix(in srgb, var(--wf-action) 42%, var(--wf-rule));
  background: color-mix(in srgb, var(--wf-action) 7%, var(--wf-paper));
}

.waterfall-controls__copy h2, .waterfall-workbench__heading h2, .waterfall-cohort-cards__heading h2, .waterfall-state h2 {
  color: var(--wf-ink);
  font-family: var(--wf-font-display);
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.waterfall-controls__copy p, .waterfall-workbench__heading p, .waterfall-cohort-cards__heading p, .waterfall-state p, .waterfall-method {
  max-width: 68ch;
  margin: var(--wf-space-2xs) 0 0;
  color: var(--wf-muted);
  font-size: .875rem;
  line-height: 1.55;
}

.waterfall-controls__fields {
  gap: var(--wf-space-sm);
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  display: grid;
}

.waterfall-controls__fields label {
  gap: var(--wf-space-2xs);
  min-width: 0;
  color: var(--wf-ink-soft);
  font-size: .75rem;
  font-weight: 700;
  display: grid;
}

.waterfall-controls__fields input, .waterfall-controls__fields select {
  width: 100%;
  min-width: 0;
  height: 2.75rem;
  padding-inline: var(--wf-space-sm);
  border: 1px solid var(--wf-rule-strong);
  border-radius: var(--wf-radius-sm);
  outline-offset: 1px;
  background: var(--wf-paper);
  color: var(--wf-ink);
  font: inherit;
  outline: 2px solid #0000;
  font-size: .875rem;
  font-weight: 600;
}

.waterfall-controls__fields input:focus-visible, .waterfall-controls__fields select:focus-visible, .waterfall-button:focus-visible, .waterfall-matrix-scroll:focus-visible {
  outline: 2px solid var(--wf-focus);
  outline-offset: 2px;
}

.waterfall-controls__fields input:hover:not(:disabled), .waterfall-controls__fields select:hover:not(:disabled), .waterfall-controls__fields input:active:not(:disabled), .waterfall-controls__fields select:active:not(:disabled) {
  border-color: var(--wf-action);
  background: var(--wf-paper-raised);
}

.waterfall-controls__fields input:disabled, .waterfall-controls__fields select:disabled, .waterfall-button:disabled {
  cursor: not-allowed;
  opacity: .52;
}

.waterfall-controls__actions {
  gap: var(--wf-space-xs);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: end;
  display: grid;
}

.waterfall-button {
  min-height: 2.75rem;
  padding: 0 var(--wf-space-md);
  border: 1px solid var(--wf-rule-strong);
  border-radius: var(--wf-radius-sm);
  background: var(--wf-paper-raised);
  color: var(--wf-ink);
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--wf-duration) var(--wf-ease-out), transform .1s var(--wf-ease-out);
  justify-content: center;
  align-items: center;
  font-size: .8125rem;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
}

.waterfall-button:active:not(:disabled) {
  transform: translateY(1px);
}

.waterfall-button--primary {
  border-color: var(--wf-action);
  background: var(--wf-action);
  color: var(--wf-action-ink);
}

.waterfall-button--export {
  border-color: var(--wf-action);
  background: var(--wf-paper-raised);
  color: var(--wf-action);
}

.waterfall-button--working:before {
  border: 2px solid color-mix(in srgb, currentColor 28%, transparent);
  content: "";
  border-block-start-color: currentColor;
  border-radius: 999px;
  width: .875rem;
  height: .875rem;
  animation: .75s linear infinite waterfall-spin;
}

.waterfall-export-status {
  color: var(--wf-muted);
  text-align: end;
  flex: 1 0 100%;
  font-size: .75rem;
  line-height: 1.35;
}

.waterfall-export-status--error {
  color: var(--wf-error);
}

@keyframes waterfall-spin {
  to {
    transform: rotate(360deg);
  }
}

.waterfall-controls__status {
  align-items: center;
  gap: var(--wf-space-xs) var(--wf-space-sm);
  min-width: 0;
  border-block-start: 1px solid var(--wf-rule);
  color: var(--wf-muted);
  flex-wrap: wrap;
  padding-block-start: var(--wf-space-xs);
  font-size: .75rem;
  line-height: 1.5;
  display: flex;
}

.waterfall-controls__status > span:not(.waterfall-status) {
  flex: 20rem;
}

.waterfall-controls__status > strong {
  color: var(--wf-warning);
  font-size: .75rem;
}

.waterfall-status {
  align-items: center;
  gap: var(--wf-space-xs);
  min-height: 1.75rem;
  padding-inline: var(--wf-space-sm);
  background: var(--wf-paper-muted);
  color: var(--wf-ink-soft);
  white-space: nowrap;
  border-radius: 999rem;
  font-weight: 800;
  display: inline-flex;
}

.waterfall-status i {
  background: var(--wf-muted);
  border-radius: 50%;
  width: .5rem;
  height: .5rem;
}

.waterfall-status--ready {
  background: var(--wf-success-soft);
  color: var(--wf-success);
}

.waterfall-status--ready i {
  background: var(--wf-success);
}

.waterfall-status--partial_data {
  background: var(--wf-warning-soft);
  color: var(--wf-warning);
}

.waterfall-status--partial_data i {
  background: var(--wf-warning);
}

.waterfall-reconcile {
  gap: var(--wf-space-md);
  padding: var(--wf-space-md);
  border-block: 1px solid var(--wf-rule);
  background: var(--wf-paper);
  color: var(--wf-ink);
  display: grid;
}

.waterfall-reconcile__lead {
  align-content: start;
  gap: var(--wf-space-2xs);
  display: grid;
}

.waterfall-reconcile__lead > span, .waterfall-reconcile dt {
  color: var(--wf-muted);
  font-size: .75rem;
  font-weight: 700;
}

.waterfall-reconcile__lead > strong {
  color: var(--wf-ink);
  font-family: var(--wf-font-display);
  letter-spacing: -.04em;
  font-size: clamp(2rem, 8vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
}

.waterfall-reconcile__lead > small {
  color: var(--wf-ink-soft);
  font-size: .75rem;
}

.waterfall-reconcile dl {
  gap: var(--wf-space-xs);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  display: grid;
}

.waterfall-reconcile dl > div {
  gap: var(--wf-space-2xs);
  min-width: 0;
  padding: var(--wf-space-sm);
  border-block-start: 1px solid var(--wf-rule);
  display: grid;
}

.waterfall-reconcile dd {
  color: var(--wf-ink);
  font-family: var(--wf-font-display);
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.waterfall-workbench {
  border: 1px solid var(--wf-rule);
  border-radius: var(--wf-radius);
  background: var(--wf-paper-raised);
  min-width: 0;
  color: var(--wf-ink);
  box-shadow: var(--wf-shadow);
  display: none;
  overflow: clip;
}

.waterfall-workbench__heading {
  justify-content: space-between;
  align-items: center;
  gap: var(--wf-space-md);
  padding: var(--wf-space-md);
  border-block-end: 1px solid var(--wf-rule);
  flex-wrap: wrap;
  display: flex;
}

.waterfall-workbench__heading > div:first-child {
  min-width: min(100%, 18rem);
}

.waterfall-workbench__tools {
  justify-content: flex-end;
  align-items: center;
  gap: var(--wf-space-sm);
  flex-wrap: wrap;
  display: flex;
}

.waterfall-legends {
  align-items: center;
  gap: var(--wf-space-sm);
  flex-wrap: wrap;
  display: flex;
}

.waterfall-legend {
  align-items: center;
  gap: var(--wf-space-xs);
  color: var(--wf-muted);
  white-space: nowrap;
  font-size: .75rem;
  font-weight: 700;
  display: inline-flex;
}

.waterfall-legend i {
  border-radius: var(--wf-radius-xs);
  width: .75rem;
  height: .75rem;
}

.waterfall-legend--same i {
  border: 2px solid var(--wf-accent-ink);
  background: var(--wf-accent);
}

.waterfall-legend--later i {
  background: #cbd5ff;
  background: lab(85.5351% 3.91331 -25.7398);
  border: 1px solid #6572c6;
  border: 1px solid lab(49.8903% 12.9675 -46.4215);
}

.waterfall-matrix-scroll {
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  max-width: 100%;
  overflow: auto;
}

.waterfall-matrix-scroll:focus-visible {
  outline-offset: -3px;
}

.waterfall-matrix {
  border-spacing: 0;
  border-collapse: separate;
  background: var(--wf-paper-raised);
  width: max-content;
  min-width: 100%;
  color: var(--wf-ink);
  font-size: .75rem;
  line-height: 1.25;
}

.waterfall-matrix caption {
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

.waterfall-matrix th, .waterfall-matrix td {
  min-width: 4rem;
  height: 2rem;
  padding: var(--wf-space-2xs) var(--wf-space-xs);
  border-inline-end: 1px solid var(--wf-rule);
  border-block-end: 1px solid var(--wf-rule);
  background: var(--wf-paper-raised);
  color: var(--wf-ink);
  text-align: center;
  white-space: nowrap;
}

.waterfall-matrix tr > :first-child {
  z-index: var(--wf-z-cell);
  border-inline-end-color: var(--wf-rule-strong);
  background: var(--wf-paper-raised);
  width: 22rem;
  min-width: 22rem;
  max-width: 22rem;
  color: var(--wf-ink);
  text-align: start;
  white-space: normal;
  font-weight: 700;
  position: sticky;
  inset-inline-start: 0;
}

.waterfall-matrix thead th {
  z-index: var(--wf-z-sticky);
  border-block-end-color: var(--wf-rule-strong);
  background: var(--wf-paper-muted);
  height: 2.5rem;
  color: var(--wf-ink-soft);
  font-family: var(--wf-font-display);
  font-weight: 700;
  position: sticky;
  inset-block-start: 0;
}

.waterfall-matrix thead th:first-child {
  z-index: var(--wf-z-corner);
  background: var(--wf-paper-muted);
  color: var(--wf-ink-soft);
}

.waterfall-matrix tr > :last-child {
  z-index: var(--wf-z-cell);
  border-inline-start: 1px solid var(--wf-rule-strong);
  background: var(--wf-paper-muted);
  min-width: 5rem;
  color: var(--wf-ink);
  border-inline-end: 0;
  font-weight: 800;
  position: sticky;
  inset-inline-end: 0;
}

.waterfall-matrix thead tr > :last-child {
  z-index: var(--wf-z-corner);
  color: var(--wf-ink-soft);
}

.waterfall-matrix__summary td, .waterfall-matrix__summary th {
  background: var(--wf-paper);
  color: var(--wf-ink-soft);
}

.waterfall-matrix__summary--totalIvfAdvised td, .waterfall-matrix__summary--totalIvfAdvised th {
  background: var(--wf-paper-strong);
  color: var(--wf-ink);
  font-weight: 800;
}

.waterfall-matrix__summary--advisedPercentage td, .waterfall-matrix__summary--advisedPercentage th {
  border-block-end-color: var(--wf-rule-strong);
  background: var(--wf-accent-soft);
  color: var(--wf-accent-ink);
  font-weight: 800;
}

body.dark-mode .waterfall-matrix__summary--advisedPercentage td, body.dark-mode .waterfall-matrix__summary--advisedPercentage th {
  color: var(--wf-ink);
}

.waterfall-matrix__axis th, .waterfall-matrix__axis td {
  background: var(--wf-ink);
  height: 1.75rem;
  color: var(--wf-paper);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .6875rem;
  font-weight: 800;
}

.waterfall-matrix__axis td {
  text-align: start;
  position: static !important;
}

.waterfall-matrix__cohort > th {
  background: var(--wf-ink);
  color: var(--wf-paper);
  font-family: var(--wf-font-display);
}

.waterfall-matrix td.is-delayed[data-density="1"] {
  color: var(--wf-ink);
  background: #e9eeff;
  background: lab(94.0294% 1.01659 -9.36365);
}

.waterfall-matrix td.is-delayed[data-density="2"] {
  color: var(--wf-ink);
  background: #d0d9ff;
  background: lab(86.8298% 2.79185 -20.3366);
  font-weight: 700;
}

.waterfall-matrix td.is-delayed[data-density="3"] {
  color: #111428;
  color: lab(6.85282% 3.45369 -14.2282);
  background: #b0bdf8;
  background: lab(77.2578% 5.38585 -31.0362);
  font-weight: 800;
}

.waterfall-matrix td.is-delayed[data-density="4"] {
  color: #0b0e1e;
  color: lab(4.19901% 2.22748 -11.0817);
  background: #8998e9;
  background: lab(64.0509% 10.0089 -43.1929);
  font-weight: 900;
}

.waterfall-matrix td.is-diagonal {
  background: var(--wf-accent);
  color: var(--wf-accent-ink);
  box-shadow: inset 0 0 0 2px var(--wf-accent-ink);
  font-weight: 900;
}

body.dark-mode .waterfall-legend--later i {
  background: #444d84;
  background: lab(34.1159% 8.42699 -32.2234);
  border-color: #9eacf1;
  border-color: lab(71.2824% 7.13104 -36.2805);
}

body.dark-mode .waterfall-matrix td.is-delayed[data-density="1"] {
  background: #232633;
  background: lab(15.1193% 1.49307 -9.15847);
}

body.dark-mode .waterfall-matrix td.is-delayed[data-density="2"] {
  background: #31364f;
  background: lab(23.0444% 3.21941 -16.3234);
}

body.dark-mode .waterfall-matrix td.is-delayed[data-density="3"] {
  background: #454c76;
  background: lab(33.222% 5.65355 -25.2354);
}

body.dark-mode .waterfall-matrix td.is-delayed[data-density="4"] {
  background: #626da6;
  background: lab(46.9525% 7.29206 -32.4404);
}

body.dark-mode .waterfall-matrix td.is-delayed {
  color: var(--wf-ink);
}

.waterfall-matrix__axis:hover td {
  background: var(--wf-ink);
  color: var(--wf-paper);
}

.waterfall-matrix__cohort:hover td[data-density="0"] {
  background: var(--wf-paper-raised);
  color: var(--wf-ink);
}

.waterfall-matrix__cohort:hover td.is-future {
  background: var(--wf-paper-muted);
  color: var(--wf-muted);
}

.waterfall-matrix__cohort:hover td.is-diagonal {
  background: var(--wf-accent);
  color: var(--wf-accent-ink);
}

.waterfall-matrix__cohort:hover td.is-delayed[data-density="1"] {
  color: var(--wf-ink);
  background: #e9eeff;
  background: lab(94.0294% 1.01659 -9.36365);
}

.waterfall-matrix__cohort:hover td.is-delayed[data-density="2"] {
  color: var(--wf-ink);
  background: #d0d9ff;
  background: lab(86.8298% 2.79185 -20.3366);
}

.waterfall-matrix__cohort:hover td.is-delayed[data-density="3"] {
  color: #111428;
  color: lab(6.85282% 3.45369 -14.2282);
  background: #b0bdf8;
  background: lab(77.2578% 5.38585 -31.0362);
}

.waterfall-matrix__cohort:hover td.is-delayed[data-density="4"] {
  color: #0b0e1e;
  color: lab(4.19901% 2.22748 -11.0817);
  background: #8998e9;
  background: lab(64.0509% 10.0089 -43.1929);
}

body.dark-mode .waterfall-matrix__cohort:hover td.is-delayed[data-density="1"] {
  color: var(--wf-ink);
  background: #232633;
  background: lab(15.1193% 1.49307 -9.15847);
}

body.dark-mode .waterfall-matrix__cohort:hover td.is-delayed[data-density="2"] {
  color: var(--wf-ink);
  background: #31364f;
  background: lab(23.0444% 3.21941 -16.3234);
}

body.dark-mode .waterfall-matrix__cohort:hover td.is-delayed[data-density="3"] {
  color: var(--wf-ink);
  background: #454c76;
  background: lab(33.222% 5.65355 -25.2354);
}

body.dark-mode .waterfall-matrix__cohort:hover td.is-delayed[data-density="4"] {
  color: var(--wf-ink);
  background: #626da6;
  background: lab(46.9525% 7.29206 -32.4404);
}

.waterfall-matrix td.is-future {
  background: var(--wf-paper-muted);
  color: var(--wf-muted);
}

.waterfall-matrix tfoot th, .waterfall-matrix tfoot td {
  z-index: var(--wf-z-sticky);
  border-block-start: 1px solid var(--wf-rule-strong);
  background: var(--wf-paper-strong);
  color: var(--wf-ink);
  border-block-end: 0;
  font-weight: 900;
  position: sticky;
  inset-block-end: 0;
}

.waterfall-matrix tfoot th {
  z-index: var(--wf-z-corner);
}

.waterfall-method {
  max-width: none;
  padding: var(--wf-space-sm) var(--wf-space-md);
  border-block-start: 1px solid var(--wf-rule);
  margin: 0;
}

.waterfall-cohort-cards {
  gap: var(--wf-space-sm);
  grid-template-columns: minmax(0, 1fr);
  display: grid;
}

.waterfall-cohort-cards__heading {
  padding-block: var(--wf-space-xs);
}

.waterfall-cohort-card {
  gap: var(--wf-space-md);
  padding: var(--wf-space-md);
  border: 1px solid var(--wf-rule);
  border-radius: var(--wf-radius);
  background: var(--wf-paper-raised);
  color: var(--wf-ink);
  box-shadow: var(--wf-shadow);
  display: grid;
}

.waterfall-cohort-card__header {
  justify-content: space-between;
  align-items: baseline;
  gap: var(--wf-space-md);
  border-block-end: 1px solid var(--wf-rule);
  padding-block-end: var(--wf-space-xs);
  display: flex;
}

.waterfall-cohort-card h3 {
  color: var(--wf-ink);
  font-family: var(--wf-font-display);
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.waterfall-cohort-card__header > strong {
  color: var(--wf-accent-ink);
  font-family: var(--wf-font-display);
  font-size: 1.5rem;
}

body.dark-mode .waterfall-cohort-card__header > strong {
  color: var(--wf-accent);
}

.waterfall-cohort-card dl {
  gap: var(--wf-space-xs);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  display: grid;
}

.waterfall-cohort-card dl > div {
  min-width: 0;
}

.waterfall-cohort-card dt {
  color: var(--wf-muted);
  font-size: .75rem;
}

.waterfall-cohort-card dd {
  margin: var(--wf-space-2xs) 0 0;
  color: var(--wf-ink);
  font-size: 1rem;
  font-weight: 800;
}

.waterfall-cohort-card__timing {
  border: 1px solid var(--wf-rule);
  border-radius: var(--wf-radius-sm);
  background: var(--wf-rule);
  color: var(--wf-ink-soft);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  display: grid;
  overflow: clip;
}

.waterfall-cohort-card__timing span {
  gap: var(--wf-space-2xs);
  min-width: 0;
  padding: var(--wf-space-xs);
  background: var(--wf-paper-muted);
  color: var(--wf-muted);
  text-align: center;
  font-size: .6875rem;
  display: grid;
}

.waterfall-cohort-card__timing span:not(:last-child) {
  border-inline-end: 1px solid var(--wf-rule);
}

.waterfall-cohort-card__timing b {
  color: var(--wf-ink);
  font-size: .875rem;
}

.waterfall-state {
  align-items: center;
  gap: var(--wf-space-md);
  min-height: 9rem;
  padding: var(--wf-space-lg);
  border: 1px solid var(--wf-rule);
  border-radius: var(--wf-radius);
  background: var(--wf-paper-raised);
  color: var(--wf-ink);
  grid-template-columns: auto minmax(0, 1fr);
  display: grid;
}

.waterfall-state--error {
  border-color: var(--wf-error);
  background: var(--wf-error-soft);
  color: var(--wf-error);
}

.waterfall-state svg {
  color: currentColor;
  width: 2rem;
  height: 2rem;
}

.waterfall-state .waterfall-button {
  grid-column: 1 / -1;
}

.waterfall-skeleton {
  gap: var(--wf-space-xs);
  padding: var(--wf-space-md);
  border: 1px solid var(--wf-rule);
  border-radius: var(--wf-radius);
  background: var(--wf-paper-raised);
  color: var(--wf-ink);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  display: grid;
}

.waterfall-skeleton > span, .waterfall-skeleton i {
  border-radius: var(--wf-radius-sm);
  background: var(--wf-paper-strong);
  min-height: 4.5rem;
  color: var(--wf-ink);
  animation: waterfall-skeleton-pulse 1.2s var(--wf-ease-out) infinite alternate;
  display: block;
}

.waterfall-skeleton > div {
  gap: var(--wf-space-2xs);
  grid-column: 1 / -1;
  display: grid;
}

.waterfall-skeleton i {
  min-height: 2rem;
}

@keyframes waterfall-skeleton-pulse {
  from {
    opacity: .5;
  }

  to {
    opacity: 1;
  }
}

@media (hover: hover) and (pointer: fine) {
  .waterfall-button--quiet:hover, .waterfall-button--export:hover {
    background: var(--wf-paper-muted);
    color: var(--wf-ink);
  }

  .waterfall-button--primary:hover {
    border-color: var(--wf-action-hover);
    background: var(--wf-action-hover);
    color: var(--wf-action-ink);
  }
}

@media (min-width: 40rem) {
  .waterfall-report {
    padding: var(--wf-space-lg);
  }

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

  .waterfall-controls__actions {
    grid-column: 1 / -1;
  }

  .waterfall-reconcile {
    gap: var(--wf-space-xl);
    grid-template-columns: minmax(12rem, .72fr) minmax(0, 2fr);
    align-items: center;
  }

  .waterfall-reconcile dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .waterfall-cohort-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .waterfall-cohort-cards__heading {
    grid-column: 1 / -1;
  }

  .waterfall-state {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .waterfall-state .waterfall-button {
    grid-column: auto;
  }
}

@media (min-width: 60rem) {
  .waterfall-workbench {
    display: block;
  }

  .waterfall-cohort-cards {
    display: none;
  }
}

@media (min-width: 75rem) {
  .waterfall-controls {
    gap: var(--wf-space-lg);
    grid-template-columns: minmax(15rem, .72fr) minmax(0, 2fr);
  }

  .waterfall-controls__fields {
    grid-template-columns: minmax(10rem, .85fr) minmax(10rem, .85fr) minmax(13rem, 1.4fr) auto;
  }

  .waterfall-controls__actions {
    grid-column: auto;
    grid-template-columns: auto auto;
  }

  .waterfall-controls__status {
    grid-column: 1 / -1;
  }
}

@media (min-width: 90rem) {
  .waterfall-report {
    padding-inline: 0;
  }

  .waterfall-matrix th, .waterfall-matrix td {
    min-width: 4.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .waterfall-report *, .waterfall-report :before, .waterfall-report :after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.waterfall-drill-value {
  appearance: none;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  cursor: pointer;
  text-underline-offset: .2rem;
  background: none;
  border: 0;
  border-radius: .3rem;
  min-width: 2.25rem;
  padding: .25rem .45rem;
  -webkit-text-decoration: underline #0000;
  text-decoration: underline #0000;
}

.waterfall-drill-value:hover, .waterfall-drill-value:focus-visible {
  outline-offset: -1px;
  outline: 2px solid;
  text-decoration-color: currentColor;
}

.waterfall-drawer-backdrop {
  z-index: 1000;
  background: #0f172a7a;
  justify-content: flex-end;
  display: flex;
  position: fixed;
  inset: 0;
}

.waterfall-drawer {
  background: var(--wf-surface, #fff);
  width: min(76rem, 94vw);
  height: 100%;
  color: var(--wf-ink, #10202e);
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  display: grid;
  box-shadow: -1rem 0 3rem #0f172a38;
}

.waterfall-drawer > header, .waterfall-drawer__toolbar, .waterfall-drawer > footer {
  border-bottom: 1px solid #bfd0d9;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  display: flex;
}

.waterfall-drawer > header span {
  color: #d4145a;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .75rem;
  font-weight: 800;
}

.waterfall-drawer > header h2 {
  margin: .2rem 0;
  font-size: 1.25rem;
}

.waterfall-drawer > header p {
  color: #526577;
  margin: 0;
}

.waterfall-drawer__close {
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  font-size: 2rem;
}

.waterfall-drawer__toolbar form {
  flex: 1;
  gap: .5rem;
  display: flex;
}

.waterfall-drawer__toolbar input {
  width: min(32rem, 100%);
  font: inherit;
  border: 1px solid #9fb5c1;
  border-radius: .45rem;
  padding: .7rem;
}

.waterfall-drawer__table {
  padding: 0 1.25rem;
  overflow: auto;
}

.waterfall-drawer__table table {
  border-collapse: collapse;
  white-space: nowrap;
  width: 100%;
  font-size: .83rem;
}

.waterfall-drawer__table th {
  z-index: 1;
  text-align: left;
  background: #e7f1f5;
  position: sticky;
  top: 0;
}

.waterfall-drawer__table th, .waterfall-drawer__table td {
  border-bottom: 1px solid #d5e0e6;
  padding: .7rem;
}

.waterfall-drawer__message {
  color: #b42318;
  padding: 1.25rem;
}

.waterfall-conversion-status {
  border-radius: 999px;
  padding: .25rem .55rem;
  font-size: .72rem;
  font-weight: 800;
  display: inline-flex;
}

.waterfall-conversion-status--converted {
  color: #08783f;
  background: #d8f5e4;
}

.waterfall-conversion-status--not_converted {
  color: #526577;
  background: #f1f5f9;
}

.waterfall-drawer > footer {
  border-top: 1px solid #bfd0d9;
  border-bottom: 0;
}

.waterfall-drawer > footer div {
  gap: .5rem;
  display: flex;
}

@media (max-width: 40rem) {
  .waterfall-drawer {
    width: 100vw;
  }

  .waterfall-drawer__toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .waterfall-drawer__toolbar form {
    width: 100%;
  }
}

/* [project]/packages/admin-reporting/src/pdf/dashboardPdfReport.css [app-client] (css) */
@page {
  size: A4;
  margin: 0;
}

html.dashboard-pdf-document, html.dashboard-pdf-document body {
  background: #fff !important;
  width: 1240px !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

.dashboard-pdf-report {
  --pdf-page-width: 1240px;
  --pdf-content-width: 1120px;
  --pdf-primary: #e91e63;
  color: #0f172a;
  background: #fff;
  min-height: 100%;
  font-family: Outfit, Inter, Arial, sans-serif;
  width: var(--pdf-page-width) !important;
  max-width: var(--pdf-page-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: block !important;
  overflow: visible !important;
}

.dashboard-pdf-report, .dashboard-pdf-report * {
  box-sizing: border-box;
  transition: none !important;
  animation: none !important;
}

.pdf-page {
  break-after: page;
  page-break-after: always;
  width: var(--pdf-page-width) !important;
  background: #fff !important;
  flex-direction: column !important;
  height: 1754px !important;
  margin: 0 auto !important;
  padding: 0 60px 72px !important;
  display: flex !important;
  overflow: hidden !important;
}

.pdf-page:last-child {
  break-after: auto;
  page-break-after: auto;
}

.pdf-report-header {
  z-index: 2;
  border-bottom: 3.5px solid var(--pdf-primary);
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  display: flex;
  position: relative;
  width: var(--pdf-content-width) !important;
  background: #fff !important;
  flex: 0 0 118px !important;
  height: 118px !important;
  min-height: 118px !important;
  margin: 0 auto 34px !important;
  padding-top: 34px !important;
  padding-bottom: 18px !important;
}

.dashboard-pdf-report header.pdf-report-header {
  visibility: visible !important;
  display: flex !important;
}

@media print {
  .dashboard-pdf-report header.pdf-report-header {
    visibility: visible !important;
    display: flex !important;
  }
}

.pdf-report-header h1 {
  color: #0f172a;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0;
  font-family: Outfit, Inter, Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
}

.pdf-report-header p {
  color: #64748b;
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 600;
}

.pdf-report-meta {
  text-align: right;
  flex: none;
}

.pdf-report-meta span {
  color: var(--pdf-primary);
  text-transform: uppercase;
  background: #fce4ec;
  border-radius: 24px;
  justify-content: center;
  align-items: center;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
}

.pdf-page-content {
  width: var(--pdf-content-width) !important;
  max-width: var(--pdf-content-width) !important;
  flex: auto !important;
  margin: 0 auto !important;
  display: block !important;
}

.dashboard-pdf-report .filter-card, .dashboard-pdf-report .admin-pdf-export-btn, .dashboard-pdf-report #trend-metric-toggle, .dashboard-pdf-report button {
  display: none !important;
}

.dashboard-pdf-report .nps-hero-banner, .dashboard-pdf-report .card, .dashboard-pdf-report .segment-bar-wrap {
  border: 2px solid #d8dee8 !important;
}

.dashboard-pdf-report .nps-hero-banner, .dashboard-pdf-report .card, .dashboard-pdf-report .charts-grid {
  break-inside: avoid;
  page-break-inside: avoid;
  box-shadow: none !important;
  transform: none !important;
}

.dashboard-pdf-report .nps-hero-banner {
  margin-bottom: 20px !important;
}

.dashboard-pdf-report .section-header {
  margin-top: 30px !important;
  margin-bottom: 22px !important;
}

.dashboard-pdf-report .section-title h2 {
  color: #0f172a !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-size: 19px !important;
  font-weight: 900 !important;
}

.dashboard-pdf-report .section-icon {
  color: #0d9488 !important;
  box-shadow: none !important;
  background: #dff8f5 !important;
}

.dashboard-pdf-report .charts-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  align-items: stretch !important;
  gap: 20px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 32px !important;
  display: grid !important;
}

.dashboard-pdf-report .pdf-chart-grid {
  gap: 20px !important;
  margin-top: 0 !important;
}

.dashboard-pdf-report .pdf-first-grid {
  margin-top: 0 !important;
}

.dashboard-pdf-report .card {
  box-shadow: none !important;
  break-inside: avoid !important;
  page-break-inside: avoid !important;
  background: #fff !important;
  border-radius: 18px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.dashboard-pdf-report .card h3 {
  color: #0f172a !important;
  font-size: 19px !important;
  line-height: 1.2 !important;
}

.dashboard-pdf-report canvas {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
}

.dashboard-pdf-report .kpi-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin-bottom: 24px !important;
  display: grid !important;
}

.dashboard-pdf-report .kpi-grid .kpi-card:first-child, .dashboard-pdf-report .kpi-grid .kpi-card:nth-child(2) {
  grid-column: span 3 !important;
}

.dashboard-pdf-report .kpi-grid .kpi-card:nth-child(3), .dashboard-pdf-report .kpi-grid .kpi-card:nth-child(4), .dashboard-pdf-report .kpi-grid .kpi-card:nth-child(5) {
  grid-column: span 2 !important;
}

.dashboard-pdf-report .charts-grid > *, .dashboard-pdf-report .pdf-chart-grid > * {
  min-width: 0 !important;
  max-width: 100% !important;
}

.dashboard-pdf-report .card > div[style*="height"], .dashboard-pdf-report .charts-grid .card > div[style*="height"] {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.dashboard-pdf-report .report-table {
  font-size: 13px !important;
}

.dashboard-pdf-report .report-table th, .dashboard-pdf-report .report-table td {
  padding: 14px 18px !important;
}

.dashboard-pdf-report .pdf-error, .dashboard-pdf-report .pdf-loading {
  color: #0f172a;
  background: #fff;
  place-items: center;
  width: 100vw;
  min-height: 100vh;
  font: 700 18px Outfit, Inter, Arial, sans-serif;
  display: grid;
}

/* [project]/node_modules/.pnpm/choices.js@11.2.3/node_modules/choices.js/public/assets/styles/choices.min.css [app-client] (css) */
.choices {
  margin-bottom: var(--choices-guttering, 24px);
  font-size: var(--choices-font-size-lg, 16px);
  position: relative;
  overflow: hidden;
}

.choices:focus {
  outline: 0;
}

.choices:last-child {
  margin-bottom: 0;
}

.choices.is-open {
  overflow: visible;
}

.choices.is-disabled :is(.choices__inner, .choices__input) {
  background-color: var(--choices-bg-color-disabled, #eaeaea);
  -webkit-user-select: none;
  user-select: none;
  cursor: not-allowed !important;
}

.choices.is-disabled .choices__item {
  cursor: not-allowed;
  color: var(--choices-item-disabled-color, #fff);
}

.choices [hidden] {
  pointer-events: none;
  opacity: 0;
  position: absolute;
  inset: 0;
}

.choices[data-type*="select-one"] {
  cursor: pointer;
}

.choices[data-type*="select-one"] .choices__inner {
  padding-bottom: var(--choices-inner-one-padding, 7.5px);
}

.choices[data-type*="select-one"] .choices__input {
  width: var(--choices-width, 100%);
  padding: var(--choices-dropdown-item-padding, 10px);
  border-bottom: var(--choices-base-border, 1px solid) var(--choices-keyline-color, #ddd);
  background-color: var(--choices-bg-color-dropdown, #fff);
  margin: 0;
  display: block;
}

.choices[data-type*="select-one"] .choices__button {
  background-image: var(--choices-icon-cross-inverse, url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg=="));
  opacity: .25;
  background-size: 8px;
  border-radius: 10em;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  margin-right: 25px;
  padding: 0;
  position: absolute;
  top: 50%;
  right: 0;
}

.choices[data-type*="select-one"] .choices__button:is(:hover, :focus) {
  opacity: var(--choices-button-opacity-hover, 1);
}

.choices[data-type*="select-one"] .choices__button:focus {
  box-shadow: 0 0 0 2px var(--choices-highlight-color, #005f75);
}

.choices[data-type*="select-one"] .choices__item[data-placeholder] .choices__button {
  display: none;
}

.choices[data-type*="select-one"]:after {
  content: "";
  border-style: solid;
  border-color: var(--choices-text-color, #333) transparent transparent transparent;
  border-width: var(--choices-arrow-size, 5px);
  width: 0;
  height: 0;
  right: var(--choices-arrow-right, 11.5px);
  margin-top: var(--choices-arrow-margin-top, -2.5px);
  pointer-events: none;
  position: absolute;
  top: 50%;
}

.choices[data-type*="select-one"].is-open:after {
  border-color: transparent transparent var(--choices-text-color, #333);
  margin-top: var(--choices-arrow-margin-top-open, -7.5px);
}

.choices[data-type*="select-one"][dir="rtl"]:after {
  left: 11.5px;
  right: auto;
}

.choices[data-type*="select-one"][dir="rtl"] .choices__button {
  margin-left: 25px;
  margin-right: 0;
  left: 0;
  right: auto;
}

.choices:is([data-type*="select-multiple"], [data-type*="text"]) .choices__inner {
  cursor: text;
}

.choices:is([data-type*="select-multiple"], [data-type*="text"]) .choices__button {
  margin: 0 calc(var(--choices-button-offset, 8px)*-.5)0 var(--choices-button-offset, 8px);
  padding-left: calc(var(--choices-button-offset, 8px)*2);
  border-left: 1px solid color-mix(in srgb,var(--choices-primary-color, #005f75) 90%,var(--choices-darken, black));
  background-image: var(--choices-icon-cross, url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg=="));
  background-size: var(--choices-button-dimension, 8px);
  width: var(--choices-button-dimension, 8px);
  line-height: var(--choices-button-line-height, 1);
  border-radius: var(--choices-button-border-radius, 0);
  opacity: var(--choices-button-opacity, .75);
  display: inline-block;
  position: relative;
}

.choices:is([data-type*="select-multiple"], [data-type*="text"]) .choices__button:is(:hover, :focus) {
  --choices-button-opacity: var(--choices-button-opacity-hover, 1);
}

.choices__inner {
  vertical-align: top;
  width: var(--choices-width, 100%);
  background-color: var(--choices-bg-color, #f9f9f9);
  padding: var(--choices-inner-padding, 7.5px 7.5px 3.75px);
  border: var(--choices-base-border, 1px solid) var(--choices-keyline-color, #ddd);
  border-radius: var(--choices-border-radius, 2.5px);
  font-size: var(--choices-font-size-md, 14px);
  min-height: var(--choices-input-height, 44px);
  display: inline-block;
  overflow: hidden;
}

.is-focused .choices__inner, .is-open .choices__inner {
  border-color: color-mix(in srgb,var(--choices-keyline-color, #ddd) 85%,var(--choices-darken, black));
}

.is-open .choices__inner {
  border-radius: var(--choices-border-radius, 2.5px) var(--choices-border-radius, 2.5px)0 0;
}

.is-invalid .choices__inner {
  border-color: var(--choices-invalid-color, #d33141);
}

.is-flipped.is-open .choices__inner {
  border-radius: 0 0 var(--choices-border-radius, 2.5px) var(--choices-border-radius, 2.5px);
}

.choices__list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.choices__list--single {
  padding: var(--choices-list-single-padding, 4px 16px 4px 4px);
  display: inline-block;
}

[dir="rtl"] .choices__list--single {
  padding-left: 16px;
  padding-right: 4px;
}

.choices__list--single, .choices__list--single .choices__item {
  width: var(--choices-width, 100%);
}

.choices__list--multiple {
  display: inline;
}

.choices__list--multiple .choices__item {
  vertical-align: middle;
  border-radius: var(--choices-border-radius-item, 20px);
  padding: var(--choices-multiple-item-padding, 4px 10px);
  font-size: var(--choices-font-size-sm, 12px);
  margin-right: var(--choices-multiple-item-margin, 3.75px);
  margin-bottom: var(--choices-multiple-item-margin, 3.75px);
  background-color: var(--choices-primary-color, #005f75);
  border: 1px solid color-mix(in srgb,var(--choices-primary-color, #005f75) 95%,var(--choices-darken, black));
  color: var(--choices-item-color, #fff);
  word-break: break-all;
  box-sizing: border-box;
  font-weight: 500;
  display: inline-block;
}

.choices__list--multiple .choices__item[data-deletable] {
  padding-right: 5px;
}

[dir="rtl"] .choices__list--multiple .choices__item {
  margin-right: 0;
  margin-left: var(--choices-multiple-item-margin, 3.75px);
}

.choices__list--multiple .choices__item.is-highlighted {
  background-color: color-mix(in srgb,var(--choices-primary-color, #005f75) 95%,var(--choices-darken, black));
  border: 1px solid color-mix(in srgb,var(--choices-primary-color, #005f75) 90%,var(--choices-darken, black));
}

.is-disabled .choices__list--multiple .choices__item {
  background-color: color-mix(in srgb,var(--choices-disabled-color, #eaeaea) 75%,var(--choices-darken, black));
  border: 1px solid color-mix(in srgb,var(--choices-disabled-color, #eaeaea) 65%,var(--choices-darken, black));
}

.choices__list--dropdown, .choices__list[aria-expanded] {
  z-index: var(--choices-z-index, 1);
  width: var(--choices-width, 100%);
  background-color: var(--choices-bg-color-dropdown, #fff);
  border: var(--choices-base-border, 1px solid) var(--choices-keyline-color, #ddd);
  border-bottom-left-radius: var(--choices-border-radius, 2.5px);
  border-bottom-right-radius: var(--choices-border-radius, 2.5px);
  word-break: break-all;
  margin-top: -1px;
  display: none;
  position: absolute;
  top: 100%;
  overflow: hidden;
}

.is-active.choices__list--dropdown, .is-active.choices__list[aria-expanded] {
  display: block;
}

.is-open .choices__list--dropdown, .is-open .choices__list[aria-expanded] {
  border-color: color-mix(in srgb,var(--choices-keyline-color, #ddd) 85%,var(--choices-darken, black));
}

.is-flipped .choices__list--dropdown, .is-flipped .choices__list[aria-expanded] {
  border-radius: .25rem .25rem 0 0;
  margin-top: 0;
  margin-bottom: -1px;
  top: auto;
  bottom: 100%;
}

.choices__list--dropdown .choices__list, .choices__list[aria-expanded] .choices__list {
  -webkit-overflow-scrolling: touch;
  will-change: scroll-position;
  max-height: 300px;
  position: relative;
  overflow: auto;
}

.choices__list--dropdown .choices__item, .choices__list[aria-expanded] .choices__item {
  padding: var(--choices-dropdown-item-padding, 10px);
  font-size: var(--choices-font-size-md, 14px);
  position: relative;
}

[dir="rtl"] .choices__list--dropdown .choices__item, [dir="rtl"] .choices__list[aria-expanded] .choices__item {
  text-align: right;
}

@media (min-width: 640px) {
  .choices__list--dropdown .choices__item--selectable.is-highlighted[data-select-text], .choices__list[aria-expanded] .choices__item--selectable.is-highlighted[data-select-text] {
    padding-right: 100px;
  }

  .choices__list--dropdown .choices__item--selectable.is-highlighted[data-select-text]:after, .choices__list[aria-expanded] .choices__item--selectable.is-highlighted[data-select-text]:after {
    content: attr(data-select-text);
    font-size: var(--choices-font-size-sm, 12px);
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
  }

  [dir="rtl"] .choices__list--dropdown .choices__item--selectable.is-highlighted[data-select-text], [dir="rtl"] .choices__list[aria-expanded] .choices__item--selectable.is-highlighted[data-select-text] {
    text-align: right;
    padding-left: 100px;
    padding-right: 10px;
  }

  [dir="rtl"] .choices__list--dropdown .choices__item--selectable.is-highlighted[data-select-text]:after, [dir="rtl"] .choices__list[aria-expanded] .choices__item--selectable.is-highlighted[data-select-text]:after {
    left: 10px;
    right: auto;
  }
}

.choices__list--dropdown .choices__item--selectable.is-selected:after, .choices__list[aria-expanded] .choices__item--selectable.is-selected:after {
  content: none !important;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted, .choices__list--dropdown .choices__item--selectable.is-selected, .choices__list[aria-expanded] .choices__item--selectable.is-highlighted, .choices__list[aria-expanded] .choices__item--selectable.is-selected {
  background-color: var(--choices-highlighted-color, #f2f2f2);
}

.choices__item {
  cursor: default;
}

.choices__item--selectable {
  cursor: pointer;
}

.choices__item--disabled {
  cursor: not-allowed;
  -webkit-user-select: none;
  user-select: none;
  opacity: .5;
}

.choices__heading {
  border-bottom: 1px solid color-mix(in srgb,var(--choices-keyline-color, #ddd) 90%,var(--choices-lighten, white));
  color: gray;
  padding: 10px;
  font-size: 12px;
  font-weight: 600;
}

.choices__button {
  text-indent: -9999px;
  appearance: none;
  cursor: pointer;
  background-color: #0000;
  background-position: center;
  background-repeat: no-repeat;
  border: 0;
}

.choices__button:focus, .choices__input:focus {
  outline: 0;
}

.choices__input {
  vertical-align: baseline;
  background-color: var(--choices-bg-color, #f9f9f9);
  font-size: var(--choices-font-size-md, 14px);
  margin-bottom: var(--choices-input-margin-bottom, 5px);
  max-width: var(--choices-width, 100%);
  padding: var(--choices-input-padding, 4px 0 4px 2px);
  border: 0;
  border-radius: 0;
  display: inline-block;
}

.choices__input::-webkit-search-cancel-button {
  display: none;
}

.choices__input::-webkit-search-decoration {
  display: none;
}

.choices__input::-webkit-search-results-button {
  display: none;
}

.choices__input::-webkit-search-results-decoration {
  display: none;
}

.choices__input::-ms-clear {
  width: 0;
  height: 0;
  display: none;
}

.choices__input::-ms-reveal {
  width: 0;
  height: 0;
  display: none;
}

[dir="rtl"] .choices__input {
  padding-left: 0;
  padding-right: 2px;
}

.choices__placeholder {
  opacity: var(--choices-placeholder-opacity, .5);
}

/* [project]/packages/admin-reporting/src/styles/globals.css [app-client] (css) */
:root {
  --primary: #e91e63;
  --primary-dark: #c2185b;
  --primary-light: #fce4ec;
  --primary-glow: #e91e6333;
  --accent: #0d9488;
  --accent-light: #f0fdfa;
  --bg: #f8fafc;
  --surface: #fffc;
  --surface-solid: #fff;
  --surface-muted: #f8fafce0;
  --border: #e2e8f0cc;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --shadow-sm: 0 4px 6px -1px #0000000d;
  --shadow: 0 20px 40px -10px #e91e631a;
  --shadow-lg: 0 30px 60px -15px #e91e6326;
  --radius: 20px;
  --radius-lg: 32px;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --spacing-layout: clamp(16px, 3vw, 32px);
  --spacing-card: clamp(16px, 4vw, 32px);
  --spacing-gap: clamp(12px, 2.5vw, 24px);
  --spacing-kpi: clamp(16px, 3vw, 28px);
  --fs-page-title: clamp(22px, 4vw, 32px);
  --fs-brand: clamp(17px, 2.5vw, 20px);
  --fs-kpi-val: clamp(26px, 4.5vw, 36px);
  --fs-card-title: clamp(16px, 2.5vw, 20px);
  --fs-body: clamp(13px, 1.5vw, 14px);
  --fs-small: clamp(11px, 1.2vw, 12px);
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
  font-family: Inter, sans-serif;
}

h1, h2, h3, h4, .brand, .section-title {
  font-family: Outfit, sans-serif;
}

body {
  color: var(--text);
  background-color: #0000;
  background-image: radial-gradient(circle at 0 0, #e91e630d 0%, #0000 40%), radial-gradient(circle at 100% 100%, #0d94880d 0%, #0000 40%), linear-gradient(135deg, #fff5f7 0%, #fff 100%);
  background-position: 0 0, 0 0, 0 0;
  background-repeat: repeat, repeat, repeat;
  background-size: auto, auto, auto;
  background-attachment: fixed;
  background-origin: padding-box, padding-box, padding-box;
  background-clip: border-box, border-box, border-box;
  height: 100vh;
  margin: 0;
  overflow: hidden;
}

body.admin-reporting-active {
  flex-direction: initial;
  max-width: none;
  height: 100vh;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: block;
  overflow: hidden;
}

.app-layout {
  width: 100vw;
  height: 100vh;
  display: flex;
  overflow: hidden;
}

.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  z-index: 200;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  flex-direction: column;
  width: 280px;
  height: 100vh;
  transition: all .4s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  position: sticky;
  top: 0;
  overflow: hidden;
}

.sidebar.collapsed {
  width: 84px;
}

.sidebar-header {
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  align-items: center;
  height: 72px;
  padding: 0 24px;
  display: flex;
}

.sidebar-nav {
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 18px 14px;
  display: flex;
  overflow-y: auto;
}

.nav-btn {
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  text-align: left;
  background: none;
  border: none;
  border-radius: 15px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 700;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  position: relative;
}

.nav-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  transform: translateX(4px);
}

.nav-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 8px 20px var(--primary-glow);
}

.nav-btn.active:after {
  content: "";
  background: #fff;
  border-radius: 0 4px 4px 0;
  width: 4px;
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: -14px;
}

.nav-icon {
  justify-content: center;
  min-width: 24px;
  font-size: 20px;
  transition: transform .3s;
  display: flex;
}

.nav-btn:hover .nav-icon {
  transform: scale(1.2);
}

.sidebar.collapsed .nav-text, .sidebar.collapsed .nav-section-title, .sidebar.collapsed .user-info-text, .sidebar.collapsed .brand {
  display: none !important;
}

.nav-section {
  border-bottom: 1px solid var(--border);
  gap: 6px;
  padding: 4px 0 8px;
  display: grid;
}

.nav-section:last-child {
  border-bottom: 0;
}

.nav-section-toggle {
  color: #64748b;
  cursor: pointer;
  text-align: left;
  background: none;
  border: 0;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 18px;
  display: flex;
}

.nav-section-title {
  color: #64748b;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.nav-section-chevron {
  background: var(--surface-muted);
  color: #64748b;
  width: 22px;
  height: 22px;
  box-shadow: var(--shadow-sm);
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  display: inline-flex;
}

.nav-section-empty {
  color: #94a3b8;
  margin: 2px 12px 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.sidebar.collapsed .nav-section-empty {
  display: none;
}

.sidebar.collapsed .sidebar-footer {
  flex-direction: column-reverse !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 16px 8px !important;
  display: flex !important;
}

.sidebar.collapsed .sidebar-header {
  justify-content: center;
  padding: 0;
}

.sidebar.collapsed #sidebar-toggle {
  margin: 0;
}

.sidebar.collapsed .nav-icon {
  justify-content: center;
  width: 100%;
  margin: 0;
  display: flex;
}

.sidebar.collapsed .nav-btn {
  justify-content: center;
  padding: 11px 0;
}

.nav-text {
  transition: opacity .2s;
}

.main-wrapper {
  background: none;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  height: 100vh;
  min-height: 0;
  display: flex;
  position: relative;
  overflow: hidden;
}

.main-wrapper, main, .sidebar-nav, .choices__list--dropdown .choices__list, .qw-comments-scroll {
  scrollbar-width: thin;
  scrollbar-color: #94a3b859 transparent;
}

@media (hover: hover) and (pointer: fine) {
  .main-wrapper, main, .sidebar-nav, .choices__list--dropdown .choices__list {
    scrollbar-color: transparent transparent;
    scrollbar-gutter: stable;
  }

  .main-wrapper:hover, .main-wrapper:focus, .main-wrapper:focus-within, main:hover, main:focus, main:focus-within, .sidebar-nav:hover, .sidebar-nav:focus, .sidebar-nav:focus-within, .choices__list--dropdown .choices__list:hover, .choices__list--dropdown .choices__list:focus, .choices__list--dropdown .choices__list:focus-within {
    scrollbar-color: #94a3b8b3 transparent;
  }

  .main-wrapper::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }

  main::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }

  .sidebar-nav::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }

  .choices__list--dropdown .choices__list::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }

  .main-wrapper::-webkit-scrollbar-track {
    background: none;
  }

  main::-webkit-scrollbar-track {
    background: none;
  }

  .sidebar-nav::-webkit-scrollbar-track {
    background: none;
  }

  .choices__list--dropdown .choices__list::-webkit-scrollbar-track {
    background: none;
  }

  .main-wrapper::-webkit-scrollbar-thumb {
    background: padding-box content-box;
    border: 2px solid #0000;
    border-radius: 999px;
  }

  main::-webkit-scrollbar-thumb {
    background: padding-box content-box;
    border: 2px solid #0000;
    border-radius: 999px;
  }

  .sidebar-nav::-webkit-scrollbar-thumb {
    background: padding-box content-box;
    border: 2px solid #0000;
    border-radius: 999px;
  }

  .choices__list--dropdown .choices__list::-webkit-scrollbar-thumb {
    background: padding-box content-box;
    border: 2px solid #0000;
    border-radius: 999px;
  }

  .main-wrapper:hover::-webkit-scrollbar-thumb {
    background: #94a3b8b3 padding-box content-box;
  }

  .main-wrapper:focus-within::-webkit-scrollbar-thumb {
    background: #94a3b8b3 padding-box content-box;
  }

  main:hover::-webkit-scrollbar-thumb {
    background: #94a3b8b3 padding-box content-box;
  }

  main:focus-within::-webkit-scrollbar-thumb {
    background: #94a3b8b3 padding-box content-box;
  }

  .sidebar-nav:hover::-webkit-scrollbar-thumb {
    background: #94a3b8b3 padding-box content-box;
  }

  .sidebar-nav:focus-within::-webkit-scrollbar-thumb {
    background: #94a3b8b3 padding-box content-box;
  }

  .choices__list--dropdown .choices__list:hover::-webkit-scrollbar-thumb {
    background: #94a3b8b3 padding-box content-box;
  }

  .choices__list--dropdown .choices__list:focus-within::-webkit-scrollbar-thumb {
    background: #94a3b8b3 padding-box content-box;
  }
}

.header-left {
  align-items: center;
  gap: 16px;
  display: flex;
}

#sidebar-toggle {
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: pointer;
  width: 40px;
  height: 40px;
  box-shadow: var(--shadow-sm);
  background: #fff;
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  margin-left: auto;
  font-size: 18px;
  transition: all .2s;
  display: flex;
}

#sidebar-toggle:hover {
  color: var(--primary);
  border-color: var(--primary-light);
  transform: scale(1.05);
}

.brand {
  color: var(--primary-dark);
  letter-spacing: -.02em;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  display: flex;
}

.brand img {
  width: auto;
  height: 40px;
  transition: all .3s;
}

.brand-text {
  font-size: var(--fs-brand);
  color: var(--primary);
  font-family: Outfit, sans-serif;
  font-weight: 700;
  transition: all .3s;
}

.sidebar.collapsed .brand-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

main {
  width: 100%;
  padding: var(--spacing-layout);
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden auto;
}

main:focus, .main-wrapper:focus, .sidebar-nav:focus {
  outline: none;
}

.app-layout > .main-wrapper > main {
  width: 100%;
  min-width: 0;
  max-width: none;
  padding: var(--spacing-layout);
  flex: auto;
  margin: 0;
}

body.admin-reporting-active .app-layout {
  width: 100vw;
  max-width: none;
  height: 100vh;
  margin: 0;
  overflow: hidden;
}

body.admin-reporting-active .app-layout > .main-wrapper {
  flex: auto;
  width: auto;
  min-width: 0;
  max-width: none;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body.admin-reporting-active .app-layout > .main-wrapper > main {
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 100%;
  min-height: 0;
  padding: var(--spacing-layout);
  flex: auto;
  margin: 0;
  overflow: hidden auto;
}

main:focus-visible, .main-wrapper:focus-visible, .sidebar-nav:focus-visible {
  outline-offset: -4px;
  outline: 2px solid #e91e6359;
}

.card {
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-card);
  background: #fff;
  border-radius: 20px;
  width: 100%;
  margin-bottom: 24px;
  transition: all .3s;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.kpi-grid {
  gap: var(--spacing-gap);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 32px;
  display: grid;
}

.kpi-card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 140px;
  box-shadow: var(--shadow-sm);
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 28px;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  position: relative;
  overflow: hidden;
}

.kpi-card:before {
  content: "";
  pointer-events: none;
  background: linear-gradient(135deg, #0000 60%, #e91e6308);
  position: absolute;
  inset: 0;
}

.kpi-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  transform: translateY(-5px);
}

.kpi-card:hover:before {
  background: linear-gradient(135deg, #0000 40%, #e91e630f);
}

.kpi-icon-wrapper {
  background: var(--bg);
  z-index: 1;
  border-radius: 14px;
  justify-content: center;
  align-items: center;
  width: 46px;
  height: 46px;
  transition: all .3s;
  display: flex;
  position: absolute;
  top: 24px;
  right: 24px;
}

.kpi-card:hover .kpi-icon-wrapper {
  transform: scale(1.1)rotate(6deg);
}

.kpi-label {
  color: var(--text-muted);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: .05em;
  z-index: 2;
  margin-bottom: 8px;
  font-weight: 800;
  position: relative;
}

.kpi-val {
  font-size: var(--fs-kpi-val);
  z-index: 2;
  letter-spacing: -.02em;
  color: var(--text);
  margin: 4px 0 6px;
  font-family: Outfit, sans-serif;
  font-weight: 800;
  position: relative;
}

.kpi-subtext {
  color: var(--text-light);
  z-index: 2;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  position: relative;
}

.nps-hero-banner {
  border-radius: var(--radius);
  background: linear-gradient(135deg, #1a0a2e 0%, #16213e 40%, #0f3460 100%);
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  margin-top: 32px;
  padding: 32px 40px;
  display: grid;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px -10px #1a0a2e80;
}

.nps-hero-banner:before {
  content: "";
  pointer-events: none;
  background: radial-gradient(circle, #e91e6333, #0000 70%);
  width: 400px;
  height: 400px;
  position: absolute;
  top: -50%;
  left: -10%;
}

.nps-hero-banner:after {
  content: "";
  pointer-events: none;
  background: radial-gradient(circle, #0d948826, #0000 70%);
  width: 300px;
  height: 300px;
  position: absolute;
  bottom: -50%;
  right: 5%;
}

.nps-gauge-wrap {
  z-index: 1;
  flex-shrink: 0;
  width: clamp(220px, 18vw, 300px);
  height: clamp(130px, 10.5vw, 176px);
  position: relative;
}

.nps-gauge-wrap svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.nps-hero-center {
  z-index: 1;
}

.nps-hero-title {
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #ffffff80;
  margin-bottom: 8px;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.nps-hero-score-label {
  letter-spacing: -.04em;
  color: #fff;
  font-family: Outfit, sans-serif;
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
}

.nps-hero-score-label span {
  color: #fff9;
  margin-left: 4px;
  font-size: 20px;
  font-weight: 700;
}

.nps-hero-status {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .05em;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  background: #ffffff1a;
  border: 1px solid #ffffff26;
  border-radius: 20px;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
}

.nps-hero-meta-grid {
  z-index: 1;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  display: grid;
}

.nps-hero-meta-item {
  text-align: center;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  background: #ffffff14;
  border: 1px solid #ffffff1a;
  border-radius: 14px;
  padding: 14px 18px;
  transition: all .2s;
}

.nps-hero-meta-item:hover {
  background: #ffffff1f;
  transform: translateY(-2px);
}

.nps-hero-meta-val {
  color: #fff;
  letter-spacing: -.02em;
  font-family: Outfit, sans-serif;
  font-size: 22px;
  font-weight: 900;
}

.nps-hero-meta-label {
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #ffffff80;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 700;
}

.segment-bar-wrap {
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: #fff;
  border-radius: 16px;
  margin-top: 20px;
  padding: 20px 24px;
}

.segment-bar-labels {
  text-transform: uppercase;
  letter-spacing: .04em;
  justify-content: space-between;
  margin-bottom: 8px;
  font-family: Outfit, sans-serif;
  font-size: 11px;
  font-weight: 800;
  display: flex;
}

.segment-bar {
  background: var(--bg);
  border-radius: 6px;
  height: 12px;
  display: flex;
  overflow: hidden;
  box-shadow: inset 0 2px 4px #0000000a;
}

.segment-bar-fill {
  height: 100%;
  transition: width .8s cubic-bezier(.4, 0, .2, 1);
}

.segment-legend {
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
  display: flex;
}

.segment-legend-item {
  color: var(--text-muted);
  align-items: center;
  gap: 6px;
  font-family: Outfit, sans-serif;
  font-size: 11px;
  font-weight: 700;
  display: flex;
}

.segment-dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
}

.section-header {
  align-items: center;
  gap: 10px;
  margin: 36px 0 20px;
  display: flex;
}

.section-header-icon {
  border-radius: 10px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  display: flex;
}

.section-header-title {
  color: var(--text);
  font-family: Outfit, sans-serif;
  font-size: 16px;
  font-weight: 800;
}

.section-header-badge {
  text-transform: uppercase;
  letter-spacing: .06em;
  border-radius: 20px;
  margin-left: auto;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 800;
}

.filter-meta {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
}

.auto-refresh-toggle {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  align-items: center;
  gap: 8px;
  display: flex;
}

.toggle-switch {
  background: var(--border);
  border-radius: 10px;
  flex-shrink: 0;
  width: 36px;
  height: 20px;
  transition: background .3s;
  position: relative;
}

.toggle-switch.on {
  background: var(--success);
}

.toggle-switch:after {
  content: "";
  background: #fff;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  transition: transform .3s;
  position: absolute;
  top: 3px;
  left: 3px;
  box-shadow: 0 1px 4px #00000026;
}

.toggle-switch.on:after {
  transform: translateX(16px);
}

@media (max-width: 900px) {
  .nps-hero-banner {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .nps-gauge-wrap {
    width: clamp(180px, 72vw, 260px);
    height: clamp(108px, 42vw, 154px);
    margin: 0 auto;
    display: block;
  }

  .nps-hero-meta-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.kpi-val-animate {
  animation: .5s both countUp;
}

body.dark-mode .nps-hero-banner {
  box-shadow: 0 20px 60px -10px #000000b3;
}

body.dark-mode .segment-bar-wrap {
  background: #131a2c;
  border-color: #ffffff14;
}

body.dark-mode .section-header-title {
  color: var(--text);
}

.filter-card {
  background: var(--surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  z-index: 100;
  margin-bottom: 32px;
  padding: 24px;
  transition: all .3s;
  position: relative;
}

.filter-card select {
  border: 1.5px solid var(--border);
  background: var(--bg);
  height: 48px;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 16px;
  border-radius: 12px;
  outline: none;
  padding: 0 40px 0 16px;
  font-family: Outfit, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  transition: all .2s;
}

.filter-card select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.kpi-badge {
  text-transform: uppercase;
  letter-spacing: .05em;
  border-radius: 8px;
  align-items: center;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
}

.kpi-badge.success {
  color: var(--success);
  background: #10b9811f;
}

.kpi-badge.warning {
  color: var(--warning);
  background: #f59e0b1f;
}

.kpi-badge.danger {
  color: var(--danger);
  background: #ef44441f;
}

.kpi-badge.accent {
  color: var(--accent);
  background: #0d94881f;
}

.insights-title {
  color: var(--text);
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 16px;
  font-weight: 800;
  display: flex;
}

.insights-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  display: grid;
}

.insight-item {
  background: #ffffffb3;
  border: 1px solid #e2e8f0cc;
  border-radius: 16px;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  display: flex;
}

.insight-item:hover {
  background: #fffffff2;
  border-color: #e91e634d;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px #0000000d;
}

.insight-icon {
  background: #fff;
  border-radius: 12px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  font-size: 20px;
  display: flex;
  box-shadow: 0 4px 10px -2px #0000000f;
}

.insight-content {
  flex: 1;
}

.insight-label {
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: .07em;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 800;
}

.insight-text {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.charts-grid {
  grid-template-columns: 3fr 2fr;
  gap: 32px;
  margin-bottom: 32px;
  display: grid;
}

.charts-grid.two-thirds {
  grid-template-columns: 1.5fr 1fr;
}

.charts-grid.one-third {
  grid-template-columns: 1fr 1.5fr;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 24px;
}

th {
  text-align: left;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
  padding: 16px;
  font-size: 12px;
  font-weight: 700;
}

td {
  border-bottom: 1px solid var(--border);
  color: var(--text);
  padding: 20px 16px;
  font-size: 14px;
}

tr:hover td {
  background: #fdf2f8;
}

.badge {
  text-transform: uppercase;
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
}

.loader {
  z-index: 99999;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  background: #ffffffe6;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: none;
  position: fixed;
  inset: 0;
}

.loader-close {
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  width: 48px;
  height: 48px;
  box-shadow: var(--shadow-sm);
  background: #fff;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  transition: all .2s;
  display: flex;
  position: absolute;
  top: 40px;
  right: 40px;
}

.loader-close:hover {
  background: var(--primary-light);
  color: var(--primary);
  transform: scale(1.1);
}

.spinner {
  border: 4px solid var(--primary-light);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  animation: 1s linear infinite spin;
}

@keyframes spin {
  from {
    transform: rotate(0);
  }

  to {
    transform: rotate(360deg);
  }
}

.filter-row {
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 20px;
  width: 100%;
  margin-bottom: 24px;
  display: flex;
}

.feedback-filter-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 18px 20px;
  display: grid;
}

.feedback-filter-row .filter-group, .feedback-filter-row .input-group {
  width: 100%;
  min-width: 0;
}

.feedback-filter-row .report-action-btn {
  white-space: nowrap;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
}

@media (max-width: 1280px) {
  .feedback-filter-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .feedback-filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .feedback-filter-row {
    grid-template-columns: 1fr;
  }
}

.input-group {
  flex-direction: column;
  flex: 1;
  gap: 8px;
  min-width: 180px;
  display: flex;
}

.input-group label {
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

input, select {
  border: 1px solid var(--border);
  color: var(--text);
  background: #fff;
  border-radius: 14px;
  outline: none;
  padding: 12px 16px;
  font-size: 14px;
  transition: all .2s;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) calc(50% + 1px), calc(100% - 14px) calc(50% + 1px);
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  min-height: 44px;
  padding-right: 42px;
  font-weight: 500;
  box-shadow: 0 2px 6px #00000005;
}

select:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
}

input:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
  background-color: #fff;
}

.choices {
  z-index: 10 !important;
  margin-bottom: 0 !important;
  position: relative !important;
}

.choices.is-open, .choices.is-focused, .choices.is-active {
  z-index: 9999 !important;
}

.choices__inner {
  border: 1px solid var(--border) !important;
  min-height: 44px !important;
  color: var(--text) !important;
  background-color: #fff !important;
  border-radius: 14px !important;
  align-items: center !important;
  padding: 4px 16px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: all .2s !important;
  display: flex !important;
  box-shadow: 0 2px 6px #00000005 !important;
}

.choices.is-focused .choices__inner {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 4px var(--primary-glow) !important;
}

.choices:hover .choices__inner {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

.choices__list--dropdown {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  border: 1px solid var(--border) !important;
  width: 100% !important;
  box-shadow: var(--shadow-lg) !important;
  z-index: 9999 !important;
  background: #fff !important;
  border-radius: 14px !important;
  margin-top: 8px !important;
  padding: 8px !important;
  transition: all .2s !important;
  position: absolute !important;
  transform: translateY(-10px) !important;
}

.choices.is-open .choices__list--dropdown {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

.choices__list--dropdown .choices__list {
  -webkit-overflow-scrolling: touch !important;
  max-height: 240px !important;
  overflow-y: auto !important;
}

.choices__item--choice {
  color: var(--text) !important;
  border-radius: 8px !important;
  padding: 10px 16px !important;
  font-size: 14px !important;
  transition: background .2s !important;
}

.choices__item--choice.is-highlighted {
  background-color: var(--primary-light) !important;
  color: var(--primary-dark) !important;
}

.choices[data-type*="select-one"]:after {
  border-color: var(--text-muted) transparent transparent transparent !important;
  border-width: 5px !important;
  width: 8px !important;
  height: 8px !important;
  margin-top: -2px !important;
  right: 16px !important;
}

.choices[data-type*="select-one"].is-open:after {
  border-color: transparent transparent var(--text-muted) transparent !important;
  margin-top: -8px !important;
}

.btn {
  cursor: pointer;
  border: none;
  border-radius: 14px;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  transition: all .3s;
  display: inline-flex;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 16px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: #fff;
}

.btn-outline:hover {
  border-color: var(--text-muted);
  background: #f8fafc;
}

#login-overlay {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  z-index: 1000;
  background: #0f172acc;
  justify-content: center;
  align-items: center;
  transition: all .4s;
  display: flex;
  position: fixed;
  inset: 0;
}

.login-card {
  text-align: center;
  background: #fff;
  border-radius: 40px;
  width: 100%;
  max-width: 420px;
  padding: 50px 40px;
  box-shadow: 0 40px 100px -20px #0000004d;
}

.login-card h2 {
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 28px;
  font-weight: 800;
}

.login-card p {
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 15px;
}

.login-card .input-group {
  text-align: left;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-bottom: 24px;
  display: flex;
}

.login-card .input-group label {
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding-left: 2px;
  font-size: 11px;
  font-weight: 800;
}

.login-card input {
  width: 100%;
  color: var(--text);
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 20px;
  padding: 18px 24px;
  font-size: 16px;
  transition: all .3s;
}

.login-card input::placeholder {
  color: #94a3b8;
}

.login-card input:focus {
  border-color: var(--primary);
  box-shadow: 0 10px 25px -5px var(--primary-glow);
  background: #fff;
}

.password-wrapper {
  width: 100%;
  position: relative;
}

.password-wrapper input {
  padding-right: 60px;
}

.toggle-pass {
  cursor: pointer;
  color: var(--text-muted);
  background: none;
  border: none;
  justify-content: center;
  align-items: center;
  padding: 4px;
  font-size: 20px;
  transition: all .2s;
  display: flex;
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

.toggle-pass:hover {
  color: var(--primary);
  transform: translateY(-50%)scale(1.1);
}

.nav-section {
  margin-bottom: 8px;
}

.nav-section + .nav-section {
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 10px;
}

.nav-section-toggle {
  color: #64748b;
  cursor: pointer;
  background: none;
  border: 0;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 12px 7px 18px;
  display: flex;
}

.nav-section-title {
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin: 0;
  font-size: 12px;
  font-weight: 900;
}

.nav-section-chevron {
  background: var(--surface-muted);
  color: #64748b;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  width: 22px;
  height: 22px;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  display: inline-flex;
}

.nav-section-items {
  gap: 4px;
  display: grid;
}

.sidebar.collapsed .nav-section-toggle {
  justify-content: center;
  padding: 0 0 8px;
}

.sidebar.collapsed .nav-section-chevron {
  width: 34px;
  height: 34px;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 12px;
  display: inline-flex !important;
}

.sidebar-footer {
  border-top: 1px solid var(--border);
  background: #fff6;
  padding: 24px;
}

.sidebar-footer-main {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  display: flex;
}

.sidebar-logout-btn {
  cursor: pointer;
  color: var(--danger);
  background: none;
  border: none;
  border-radius: 10px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  padding: 8px;
  transition: all .2s;
  display: flex;
}

.sidebar-logout-btn:hover {
  background: #ef44441a;
}

.sidebar-footer-credit {
  color: var(--text-light);
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  border-top: 1px solid #e2e8f0a6;
  width: 100%;
  margin-top: 10px;
  padding-top: 8px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
}

.sidebar-legal-notice {
  color: var(--text-light);
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-top: 8px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
}

.sidebar.collapsed .sidebar-footer-main {
  justify-content: center;
}

.sidebar.collapsed .sidebar-footer-credit, .sidebar.collapsed .sidebar-legal-notice {
  display: none;
}

.admin-modal-close {
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  font-size: 22px;
  transition: all .2s;
  display: flex;
  position: absolute;
  top: 16px;
  right: 16px;
}

.admin-modal-close:hover {
  background: var(--border);
  color: var(--text);
}

.user-account-modal-overlay {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 18px;
  overflow: hidden;
  z-index: 99999 !important;
  background: #0f172a9e !important;
  justify-content: center !important;
  align-items: center !important;
  position: fixed !important;
  inset: 0 !important;
}

.user-account-modal {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  width: min(1120px, 100vw - 36px);
  max-height: calc(100dvh - 36px);
  box-shadow: var(--shadow-lg);
  border-radius: 22px;
  flex-direction: column;
  padding: 22px;
  display: flex;
  overflow: hidden;
  position: relative !important;
}

.staff-account-modal {
  overflow: visible;
}

.user-account-modal-header {
  flex: none;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  padding-right: 42px;
  display: flex;
}

.user-account-modal-icon {
  width: 40px;
  height: 40px;
  color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 8px 18px var(--primary-glow);
  border-radius: 14px;
  flex: none;
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.user-account-modal-header h3, .user-delete-modal h3 {
  letter-spacing: -.02em;
  color: var(--text);
  margin: 0;
  font-family: Outfit, sans-serif;
  font-size: 20px;
  font-weight: 850;
}

.user-account-modal-header p, .user-delete-modal p {
  color: var(--text-muted);
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
}

.user-account-modal-grid {
  flex: auto;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  align-items: start;
  gap: 12px 16px;
  min-height: 0;
  padding-right: 4px;
  display: grid;
  overflow: hidden auto;
}

.staff-account-modal-grid {
  overflow: visible;
}

.staff-account-modal .choices {
  z-index: 20;
}

.staff-account-modal .choices.is-open {
  z-index: 100001;
}

.staff-account-modal .choices__list--dropdown, .staff-account-modal .choices__list[aria-expanded] {
  z-index: 100002 !important;
  max-height: 260px !important;
  overflow: hidden !important;
}

.user-account-modal-actions {
  z-index: 5;
  background: linear-gradient(180deg, #fff0, var(--surface-solid) 18%);
  grid-column: 1 / -1;
  margin: 0 -4px -2px;
  padding: 2px 4px 0;
  position: sticky;
  bottom: 0;
}

.user-account-modal-actions > div {
  margin-top: 8px !important;
  padding-top: 14px !important;
}

.user-modal-wide {
  grid-column: span 2;
}

.user-status-editor {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 14px;
  padding: 12px;
}

.user-modal-error {
  color: var(--danger);
  background: #ef444414;
  border: 1px solid #ef444433;
  border-radius: 12px;
  margin: 0 0 12px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.user-account-modal .input-group {
  min-width: 0;
  margin-bottom: 0 !important;
}

.user-account-modal .input-group label, .user-account-modal .input-group > label {
  margin-bottom: 6px !important;
}

.user-account-modal input, .user-account-modal textarea, .user-account-modal .choices__inner {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 42px !important;
}

.user-center-picker-list {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 14px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  max-height: 130px;
  padding: 10px;
  display: grid;
  overflow-y: auto;
}

.user-center-badge {
  border: 1px solid #f59e0b38;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  color: #b45309 !important;
  text-transform: none !important;
  background: #f59e0b1c !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  display: inline-flex !important;
}

.user-center-badge span {
  color: #d97706;
  flex: none;
  display: inline-flex;
}

.user-row-actions {
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  display: flex;
}

.user-action-btn {
  letter-spacing: .01em;
  background: var(--surface-solid);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-width: 82px;
  height: 34px;
  padding: 0 10px;
  font-size: 11.5px;
  font-weight: 850;
  line-height: 1;
  transition: all .18s;
  display: inline-flex;
}

.user-action-edit {
  color: var(--primary);
  background: #e91e630d;
  border-color: #e91e633d;
}

.user-action-edit:hover {
  transform: translateY(-1px);
  color: #fff !important;
  border-color: var(--primary) !important;
  background: var(--primary) !important;
  box-shadow: 0 6px 16px var(--primary-glow) !important;
}

.user-action-delete {
  color: #fff;
  border-color: var(--danger);
  background: var(--danger);
  box-shadow: 0 4px 10px #ef444429;
}

.user-action-delete:hover {
  transform: translateY(-1px);
  color: #fff !important;
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  box-shadow: 0 6px 16px #dc26264d !important;
}

.user-delete-modal {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  width: min(460px, 94vw);
  box-shadow: var(--shadow-lg);
  text-align: center;
  border-radius: 24px;
  padding: 30px;
  position: relative;
}

.user-delete-icon {
  width: 58px;
  height: 58px;
  color: var(--danger);
  background: #ef44441a;
  border: 1px solid #ef444429;
  border-radius: 18px;
  justify-content: center;
  align-items: center;
  margin: 4px auto 18px;
  display: flex;
}

.user-delete-summary {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  text-align: left;
  border-radius: 16px;
  gap: 8px;
  margin: 18px 0;
  padding: 14px;
  font-size: 12.5px;
  font-weight: 750;
  display: grid;
}

.user-delete-actions {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
  display: grid;
}

.user-delete-actions button {
  border-radius: 12px;
  height: 48px;
  font-size: 13px;
  font-weight: 800;
}

.user-delete-confirm {
  background: var(--danger) !important;
  border-color: var(--danger) !important;
  color: #fff !important;
  box-shadow: 0 6px 16px #ef444442 !important;
}

.user-delete-confirm:not(:disabled):hover {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  box-shadow: 0 8px 18px #dc262657 !important;
}

.user-delete-confirm:disabled {
  cursor: not-allowed;
  opacity: 1;
  color: #64748b !important;
  box-shadow: none !important;
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}

body.dark-mode .user-center-badge {
  border-color: #f59e0b47;
  color: #fbbf24 !important;
  background: #f59e0b29 !important;
}

body.dark-mode .user-center-badge span {
  color: #f59e0b;
}

body.dark-mode .user-delete-summary, body.dark-mode .user-account-modal, body.dark-mode .user-delete-modal {
  background: var(--surface-solid);
}

body.dark-mode .user-account-modal-actions {
  background: linear-gradient(180deg, #0f172a00, var(--surface-solid) 18%);
}

#staff-form {
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}

#staff-form > div {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)) !important;
  align-items: start !important;
}

#staff-form .input-group, #staff-form input, #staff-form .choices, #staff-form .choices__inner, .user-account-modal .input-group, .user-account-modal .choices, .user-account-modal .choices__inner {
  box-sizing: border-box;
  min-width: 0 !important;
  max-width: 100% !important;
}

#staff-form .phone-input-row, .user-account-modal .phone-input-row {
  grid-template-columns: minmax(132px, .85fr) minmax(120px, 1fr);
  min-width: 0;
}

#staff-form .phone-country-select, .user-account-modal .phone-country-select {
  min-width: 0;
}

@media (max-width: 980px) {
  .user-account-modal {
    width: min(96vw, 920px);
  }

  .user-account-modal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-modal-wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .user-account-modal-overlay {
    padding: 12px;
    overflow-y: auto;
    align-items: flex-start !important;
  }

  .user-account-modal {
    border-radius: 20px;
    width: 100%;
    max-height: calc(100dvh - 24px);
    padding: 20px;
  }

  .user-account-modal-grid {
    grid-template-columns: 1fr !important;
    display: grid !important;
  }

  .user-account-modal-grid > *, .user-account-modal-actions, #user-center-access-group, #admin-otp-section {
    grid-column: span 1 !important;
  }

  .user-delete-actions {
    grid-template-columns: 1fr;
  }

  .user-row-actions {
    flex-direction: column;
  }

  .user-action-btn {
    width: 86px;
  }

  #staff-form .phone-input-row, .user-account-modal .phone-input-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .user-account-modal-actions > div, #staff-form > div + div {
    grid-template-columns: 1fr !important;
    display: grid !important;
  }

  .user-account-modal-actions .btn, #staff-form .btn {
    width: 100% !important;
  }
}

.admin-pdf-export-btn:hover {
  background: var(--primary-light) !important;
  color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.pdf-export-host, .pdf-export-content {
  font-family: Outfit, Inter, Arial, sans-serif;
}

.pdf-export-content .card {
  break-inside: avoid;
  page-break-inside: avoid;
}

.user-profile-small {
  align-items: center;
  gap: 12px;
  display: flex;
}

.sidebar-profile-trigger {
  cursor: pointer;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 14px;
  flex: 1;
  min-width: 0;
  padding: 4px;
}

.sidebar-profile-trigger:hover {
  background: #e91e6312;
}

.sidebar-profile-menu {
  gap: 4px;
  display: grid;
}

.sidebar-profile-menu-item {
  width: 100%;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 12px;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
  display: grid;
}

.sidebar-profile-menu-item:hover, .sidebar-profile-menu-item[aria-checked="true"] {
  color: var(--primary);
  background: #e91e6317;
}

.sidebar-profile-menu-item.danger {
  color: var(--danger);
}

.sidebar-profile-menu-item.danger:hover {
  background: #ef44441a;
}

.nav-section-heading {
  align-items: center;
  gap: 10px;
  min-width: 0;
  display: flex;
}

.nav-section-icon {
  justify-content: center;
  align-items: center;
  display: none;
}

.nav-section-chevron {
  transition: transform .2s, color .2s, background-color .2s;
}

.nav-section-chevron.expanded {
  transform: rotate(180deg);
}

.nav-item-row {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.nav-subsection-title {
  color: var(--text-light);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 8px 14px 2px;
  font-size: 9px;
  font-weight: 900;
}

.sidebar.collapsed .nav-section-toggle {
  width: 44px;
  height: 44px;
  color: var(--text-muted);
  border-radius: 13px;
  justify-content: center;
  margin: 0 auto;
  padding: 0;
  transition: background-color .14s, color .14s, box-shadow .14s, transform .14s;
}

.sidebar.collapsed .nav-section-chevron {
  display: none !important;
}

.sidebar.collapsed .nav-section-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
}

.sidebar.collapsed .nav-section-items {
  display: none !important;
}

.sidebar.collapsed .nav-section {
  border-bottom: 1px solid var(--border);
  margin: 0;
  padding: 5px 0;
  display: block;
}

.sidebar.collapsed .nav-section + .nav-section {
  border-top: 0;
  margin-top: 0;
  padding-top: 5px;
}

.sidebar.collapsed .nav-section-toggle:hover {
  background: var(--primary-light);
  color: var(--primary);
  transform: translateY(-1px);
}

.sidebar.collapsed .nav-section.has-active .nav-section-toggle {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 7px 18px var(--primary-glow);
}

.sidebar.collapsed .nav-section.flyout-open:not(.has-active) .nav-section-toggle {
  background: var(--primary-light);
  color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.sidebar.collapsed .sidebar-footer-main {
  justify-content: center;
  width: auto;
}

.sidebar.collapsed .sidebar-footer {
  flex-direction: column !important;
  gap: 0 !important;
  padding: 12px 8px !important;
}

.sidebar.collapsed .sidebar-profile-trigger {
  flex: 0 0 44px;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 2px;
}

.sidebar.collapsed .user-avatar {
  border-radius: 11px;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
}

.sidebar.collapsed .sidebar-logout-btn, .sidebar.collapsed .sidebar-footer-credit, .sidebar.collapsed .sidebar-legal-notice {
  display: none;
}

.sidebar-nav-flyout {
  border: 1px solid var(--border);
  background: var(--surface-solid);
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  box-shadow: var(--shadow-lg);
  color: var(--text);
  border-radius: 18px;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  animation: .16s ease-out sidebar-flyout-in;
  display: flex;
  overflow: hidden;
}

.sidebar-nav-flyout-header {
  border-bottom: 1px solid var(--border);
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 6px 7px 10px;
  display: grid;
}

.sidebar-nav-flyout-section-icon {
  background: var(--primary-light);
  width: 40px;
  height: 40px;
  color: var(--primary);
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.sidebar-nav-flyout-heading {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.sidebar-nav-flyout-heading strong {
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: Outfit, sans-serif;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  overflow: hidden;
}

.sidebar-nav-flyout-heading small {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.3;
}

.sidebar-nav-flyout-list {
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #94a3b88c transparent;
  gap: 3px;
  min-height: 0;
  padding-right: 2px;
  display: grid;
  overflow-y: auto;
}

.sidebar-nav-flyout-row {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.sidebar-nav-flyout-subsection {
  color: var(--text-light);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 8px 9px 2px;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.25;
}

.sidebar-nav-flyout-item {
  width: 100%;
  min-height: 46px;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 13px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 6px 9px;
  transition: background-color .14s, color .14s, box-shadow .14s;
  display: grid;
}

.sidebar-nav-flyout-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.sidebar-nav-flyout-item:focus-visible {
  outline: 3px solid var(--primary-glow);
  outline-offset: 1px;
}

.sidebar-nav-flyout-item.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 7px 18px var(--primary-glow);
  color: #fff;
}

.sidebar-nav-flyout-item-icon {
  background: var(--surface-muted);
  color: currentColor;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  display: inline-flex;
}

.sidebar-nav-flyout-item.active .sidebar-nav-flyout-item-icon {
  background: #ffffff29;
}

.sidebar-nav-flyout-item-label {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  overflow: hidden;
}

.nav-status-badge {
  border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border));
  background: var(--primary-light);
  color: var(--primary);
  text-transform: uppercase;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 8px;
  font-weight: 900;
}

.sidebar-nav-flyout-item.active .nav-status-badge {
  color: #fff;
  background: #ffffff29;
  border-color: #ffffff59;
}

@keyframes sidebar-flyout-in {
  from {
    opacity: 0;
    transform: translateX(-5px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.user-avatar {
  background: var(--primary-light);
  width: 40px;
  height: 40px;
  color: var(--primary);
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  font-weight: 800;
  display: flex;
}

.sidebar.collapsed .user-info-text {
  display: none;
}

.page-header {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  display: flex;
}

.topbar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  display: flex;
}

.page-title-text {
  color: var(--text);
  letter-spacing: -.03em;
  font-size: 32px;
  font-weight: 800;
}

.page-title-stack {
  min-width: 0;
}

.page-title-stack p {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .13em;
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 900;
}

.page-title-stack h2 {
  color: var(--text);
  letter-spacing: -.02em;
  margin: 0;
  font-family: Outfit, sans-serif;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 900;
  line-height: 1.05;
}

.page-title-stack span {
  color: var(--text-muted);
  margin-top: 5px;
  font-size: 13px;
  font-weight: 650;
  display: block;
}

@media (max-width: 680px) {
  .page-header.module-management-page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .module-management-page-header .page-title-stack {
    overflow-wrap: anywhere;
  }

  .module-management-page-header #mobile-sidebar-toggle {
    flex-shrink: 0;
  }

  .module-management-page-header .topbar-actions {
    justify-content: flex-end;
  }
}

#mobile-sidebar-toggle {
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: pointer;
  width: 40px;
  height: 40px;
  box-shadow: var(--shadow-sm);
  background: #fff;
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  margin-right: 16px;
  font-size: 18px;
  transition: all .2s;
  display: none;
}

body.dark-mode #mobile-sidebar-toggle {
  color: var(--text);
  background: #1e293b;
  border-color: #ffffff1a;
}

#sidebar-overlay {
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  background: #0f172a66;
  transition: opacity .3s;
  display: none;
  position: fixed;
  inset: 0;
}

#sidebar-overlay.active {
  opacity: 1;
  display: block;
}

.form-grid-2 {
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  display: grid;
}

@media (max-width: 1024px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .charts-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

@media (max-width: 768px) {
  .form-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  #mobile-sidebar-toggle {
    display: flex;
  }

  .sidebar {
    z-index: 1000;
    width: 280px;
    height: 100vh;
    position: fixed;
    left: -280px;
    box-shadow: 20px 0 50px #0000001a;
  }

  .sidebar.open {
    left: 0;
  }

  .sidebar.collapsed {
    width: 280px;
  }

  .main-wrapper {
    margin-left: 0;
    padding: 0;
  }

  main {
    margin-top: 20px;
    padding: 20px;
  }

  .page-header {
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 24px;
    display: flex;
  }

  .page-title-text {
    font-size: 24px;
  }

  .page-title-stack h2 {
    font-size: 23px;
  }

  .page-title-stack span {
    font-size: 12px;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .filter-row {
    background: none !important;
    border: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0 !important;
  }

  .input-group {
    width: 100%;
  }

  .btn {
    justify-content: center;
    width: 100%;
  }

  #theme-toggle {
    width: auto !important;
  }

  .csat-col {
    border-left: none !important;
    border-top: 1px solid var(--border) !important;
    margin-top: 8px !important;
    padding-top: 24px !important;
    padding-left: 0 !important;
  }
}

.report-card {
  text-align: center;
  background: #fcfcfc;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 15px;
}

.report-val {
  color: var(--primary);
  font-size: 24px;
  font-weight: 800;
}

.report-perc-high {
  color: #2e7d32;
  font-weight: 600;
}

.report-table {
  border-collapse: collapse;
  width: 100%;
}

.report-table th {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  font-size: 12px;
  background: #f8fafc !important;
}

.report-table td {
  border-bottom: 1px solid var(--border);
  color: var(--text);
  padding: 16px 24px;
  font-size: 14px;
}

.report-table tr:last-child td {
  border-bottom: none;
}

.report-table tr:hover {
  background: #fcfcfd;
}

.score-high {
  color: var(--success);
  font-weight: 700;
}

.score-mid {
  color: var(--warning);
  font-weight: 700;
}

.score-low {
  color: var(--danger);
  font-weight: 700;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 #f59e0b66;
  }

  70% {
    box-shadow: 0 0 0 8px #f59e0b00;
  }

  100% {
    box-shadow: 0 0 #f59e0b00;
  }
}

body, .sidebar, .card, .kpi-card, th, td, input, select, .choices__inner, .choices__list--dropdown, .insight-item, .insight-icon, #ai-insights-panel, .nav-btn, .report-card {
  transition: background-color .3s, border-color .3s, color .3s, box-shadow .3s, transform .3s;
}

body.dark-mode {
  --bg: #090d16;
  --surface: #131a2cd9;
  --surface-solid: #131a2c;
  --card-bg: #131a2c;
  --surface-muted: #1e293bb8;
  --border: #ffffff14;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  background-color: #0000;
  background-image: radial-gradient(circle at 0 0, #e91e631f 0%, #0000 40%), radial-gradient(circle at 100% 100%, #0d94881f 0%, #0000 40%), linear-gradient(135deg, #090d16 0%, #111827 100%);
  background-position: 0 0, 0 0, 0 0;
  background-repeat: repeat, repeat, repeat;
  background-size: auto, auto, auto;
  background-attachment: fixed;
  background-origin: padding-box, padding-box, padding-box;
  background-clip: border-box, border-box, border-box;
}

body.dark-mode .sidebar {
  background: #131a2cf2;
  border-right-color: #ffffff14;
}

body.dark-mode .sidebar-header, body.dark-mode .sidebar-footer {
  background: #131a2c66;
  border-top-color: #ffffff14;
  border-bottom-color: #ffffff14;
}

body.dark-mode .sidebar-footer-credit {
  border-top-color: #ffffff14;
}

body.dark-mode .sidebar-legal-notice {
  color: #64748b;
}

body.dark-mode .card, body.dark-mode .kpi-card {
  background: #131a2c;
  border-color: #ffffff14;
  box-shadow: 0 20px 40px -10px #0006;
}

body.dark-mode .card:hover, body.dark-mode .kpi-card:hover {
  box-shadow: 0 25px 50px -12px #e91e6333;
}

body.dark-mode th {
  color: #94a3b8;
  background: #1e293b;
  border-bottom-color: #ffffff14;
}

body.dark-mode td {
  color: #e2e8f0;
  border-bottom-color: #ffffff14;
}

body.dark-mode tr:hover td {
  background: #e91e6314;
}

body.dark-mode input, body.dark-mode select {
  color: #f1f5f9;
  background-color: #1e293b;
  border-color: #ffffff1a;
}

body.dark-mode input:focus, body.dark-mode select:focus {
  border-color: var(--primary);
  background-color: #1e293b;
}

body.dark-mode .choices__inner {
  color: #f1f5f9 !important;
  background-color: #1e293b !important;
  border-color: #ffffff1a !important;
}

body.dark-mode .choices.is-focused .choices__inner {
  border-color: var(--primary) !important;
}

body.dark-mode .choices__list--dropdown {
  background: #131a2c !important;
  border-color: #ffffff1a !important;
  box-shadow: 0 30px 60px -15px #0009 !important;
}

body.dark-mode .choices__item--choice {
  color: #f1f5f9 !important;
}

body.dark-mode .choices__item--choice.is-highlighted {
  color: #fff !important;
  background-color: #e91e6326 !important;
}

body.dark-mode .insight-item {
  background: #1e293b66;
  border-color: #ffffff0f;
}

body.dark-mode .insight-item:hover {
  background: #1e293bbf;
  border-color: #e91e6366;
  box-shadow: 0 10px 25px -5px #00000080;
}

body.dark-mode .insight-icon {
  background: #1e293b;
  box-shadow: 0 4px 10px -2px #0006;
}

body.dark-mode #ai-insights-panel {
  background: linear-gradient(135deg, #1e1b2ef2 0%, #0d1b24f2 100%) !important;
  border-color: #e91e6340 !important;
}

body.dark-mode .report-card {
  background: #1e293b;
  border-color: #ffffff0f;
}

body.dark-mode .report-table th {
  border-bottom-color: #ffffff14;
  background: #1e293b !important;
}

body.dark-mode .report-table td {
  color: #e2e8f0;
  border-bottom-color: #ffffff14;
}

body.dark-mode .report-table tr:hover {
  background: #ffffff05;
}

body.dark-mode .report-table tr:hover td {
  background: #e91e6314;
}

body.dark-mode #login-overlay {
  background: #030712e6;
}

body.dark-mode .login-card {
  background: #131a2c;
  box-shadow: 0 40px 100px -20px #000000b3;
}

body.dark-mode .login-card input {
  color: #fff;
  background: #1e293b;
  border-color: #ffffff0d;
}

body.dark-mode .nav-btn:hover {
  color: var(--primary);
  background: #e91e6326;
}

body.dark-mode .spinner {
  border-color: #e91e6326;
  border-top-color: var(--primary);
}

body.dark-mode .btn-outline {
  color: #f1f5f9 !important;
  background: #1e293b !important;
  border-color: #ffffff1a !important;
}

body.dark-mode .btn-outline:hover {
  background: #334155 !important;
  border-color: #fff3 !important;
}

body.dark-mode footer {
  color: #94a3b8 !important;
  background: #131a2c66 !important;
  border-top-color: #ffffff14 !important;
}

.site-footer {
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  -webkit-backdrop-filter: blur(10px);
  background: #fff6;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(6px, 1.2vw, 10px);
  padding: clamp(12px, 2vw, 20px) 16px;
  font-size: clamp(11px, 1.5vw, 13px);
  font-weight: 600;
  transition: opacity .3s;
  display: flex;
}

.site-footer img {
  vertical-align: middle;
  width: auto;
  height: clamp(20px, 3vw, 30px);
}

@media print {
  body, html, .app-layout, .main-wrapper, main {
    color: #000 !important;
    background: #fff !important;
    height: auto !important;
    position: static !important;
    overflow: visible !important;
  }

  .sidebar, header, .page-header, .filter-row, button, .btn, .action-cell, #actions-header, .no-print, #sidebar-overlay {
    display: none !important;
  }

  .card, .kpi-card {
    box-shadow: none !important;
    page-break-inside: avoid !important;
    border: 1px solid #ccc !important;
    margin-bottom: 20px !important;
    transform: none !important;
  }

  .qw-comments-scroll {
    max-height: none !important;
    overflow-y: visible !important;
  }

  .qw-detail-card {
    page-break-inside: avoid !important;
  }

  body.print-single-section .qw-section-container:not(.print-active-section) {
    display: none !important;
  }
}

.flow-info-card {
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
}

.flow-info-card:hover {
  transform: translateY(-2px)scale(1.01);
  background: #fff !important;
  border-left-width: 6px !important;
  box-shadow: 0 4px 12px #0000000d !important;
}

.delete-btn {
  transition: all .2s cubic-bezier(.4, 0, .2, 1) !important;
}

.delete-btn:hover {
  transform: translateY(-1px);
  background: var(--danger) !important;
  color: #fff !important;
  border-color: var(--danger) !important;
  box-shadow: 0 4px 12px #ef444433 !important;
}

.edit-btn {
  transition: all .2s cubic-bezier(.4, 0, .2, 1) !important;
}

.edit-btn:hover {
  transform: translateY(-1px);
  background: var(--accent) !important;
  color: #fff !important;
  border-color: var(--accent) !important;
  box-shadow: 0 4px 12px #0d948833 !important;
}

#new-staff-name:focus, #new-user-name:focus, #new-user-pass:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 4px var(--primary-glow) !important;
  background: #fff !important;
}

.flow-summary-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg) !important;
}

.flow-step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px #00000014 !important;
}

.qw-comments-scroll::-webkit-scrollbar {
  width: 6px;
}

.qw-comments-scroll::-webkit-scrollbar-track {
  background: none;
}

.qw-comments-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.qw-comments-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

.qw-comment-bubble:hover {
  transform: translateX(3px);
  border-left-color: var(--accent) !important;
}

.qw-detail-card {
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.qw-detail-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg) !important;
  border-color: #e91e6333 !important;
}

body.dark-mode .qw-comment-bubble:hover {
  background: #ffffff05 !important;
}

.admin-error-shell {
  background: radial-gradient(circle at 0 0, #db27771f, #0000 30%), linear-gradient(135deg, #fff7fb 0%, #f8fafc 100%);
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  display: grid;
}

.admin-error-card {
  text-align: center;
  background: #fffffff2;
  border: 1px solid #e2e8f0f2;
  border-radius: 22px;
  width: min(660px, 100%);
  padding: 44px;
  box-shadow: 0 22px 72px #0f172a24;
}

.admin-error-badge {
  color: #db2777;
  letter-spacing: .08em;
  background: #ffe4ef;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  min-width: 78px;
  height: 42px;
  margin-bottom: 20px;
  font-weight: 900;
  display: inline-flex;
}

.admin-error-card h1 {
  color: #101828;
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.05;
}

.admin-error-card p {
  color: #667085;
  max-width: 470px;
  margin: 0 auto 28px;
  font-size: 16px;
  line-height: 1.6;
}

.admin-error-actions {
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  display: flex;
}

.admin-error-primary, .admin-error-secondary {
  cursor: pointer;
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  min-width: 132px;
  min-height: 44px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
}

.admin-error-primary {
  color: #fff;
  background: #db2777;
  border: 1px solid #db2777;
}

.admin-error-secondary {
  color: #344054;
  background: #fff;
  border: 1px solid #d0d5dd;
}

body.admin-reporting-active {
  background-color: #0000 !important;
  background-image: radial-gradient(circle at 0 0, #e91e630d 0%, #0000 40%), radial-gradient(circle at 100% 100%, #0d94880d 0%, #0000 40%), linear-gradient(135deg, #fff5f7 0%, #fff 100%) !important;
  background-position: 0 0, 0 0, 0 0 !important;
  background-repeat: repeat, repeat, repeat !important;
  background-size: auto, auto, auto !important;
  background-attachment: fixed !important;
  background-origin: padding-box, padding-box, padding-box !important;
  background-clip: border-box, border-box, border-box !important;
  width: 100vw !important;
  max-width: none !important;
  height: 100vh !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  overflow: hidden !important;
}

body.admin-reporting-active.dark-mode {
  color: var(--text) !important;
  background: radial-gradient(circle at 0 0, #e91e631a 0%, #0000 40%), radial-gradient(circle at 100% 100%, #0d94881a 0%, #0000 40%), linear-gradient(135deg, #0f172a 0%, #020617 100%) !important;
}

body.admin-reporting-active .app-layout {
  width: 100vw !important;
  max-width: none !important;
  height: 100vh !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
}

body.admin-reporting-active .sidebar {
  flex: 0 0 280px !important;
  width: 280px !important;
  min-width: 280px !important;
  max-width: 280px !important;
}

body.admin-reporting-active .sidebar.collapsed {
  flex-basis: 84px !important;
  width: 84px !important;
  min-width: 84px !important;
  max-width: 84px !important;
}

body.admin-reporting-active .sidebar.collapsed .brand, body.admin-reporting-active .sidebar.collapsed .brand img, body.admin-reporting-active .sidebar.collapsed .brand-text {
  display: none !important;
}

body.admin-reporting-active .main-wrapper {
  background: none !important;
  flex: auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
}

body.admin-reporting-active .app-layout > .main-wrapper > main {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: var(--spacing-layout) !important;
  margin: 0 !important;
}

body.admin-reporting-active .filter-row {
  flex-wrap: wrap !important;
  align-items: flex-end !important;
  gap: 20px !important;
  width: 100% !important;
  margin-bottom: 24px !important;
  display: flex !important;
}

body.admin-reporting-active .filter-row .input-group {
  flex-direction: column !important;
  flex: 180px !important;
  gap: 8px !important;
  min-width: 180px !important;
  margin-bottom: 0 !important;
  display: flex !important;
}

body.admin-reporting-active .btn {
  text-transform: none !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  border-radius: 14px !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: auto !important;
  padding: 12px 24px !important;
  font-family: Outfit, Inter, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  display: inline-flex !important;
}

body.admin-reporting-active .filter-row .btn {
  flex: none !important;
  align-self: flex-end !important;
  height: 48px !important;
  padding: 0 24px !important;
}

body.admin-reporting-active .dashboard-filter-card {
  overflow: visible !important;
}

body.admin-reporting-active .dashboard-filter-row {
  flex-wrap: nowrap !important;
  align-items: flex-end !important;
  gap: 14px !important;
  display: flex !important;
}

body.admin-reporting-active .dashboard-filter-row .input-group {
  flex: 1 1 0 !important;
  width: 100% !important;
  min-width: 0 !important;
}

body.admin-reporting-active .dashboard-filter-row .btn {
  white-space: nowrap !important;
  border-radius: 12px !important;
  flex: none !important;
  justify-self: auto !important;
  width: auto !important;
  min-width: max-content !important;
  height: 48px !important;
  padding: 12px 22px !important;
}

body.admin-reporting-active .dashboard-filter-row .admin-pdf-export-btn {
  flex-basis: auto !important;
  width: auto !important;
  min-width: max-content !important;
  margin-left: 0 !important;
}

body.admin-reporting-active .btn {
  border-radius: 14px !important;
  font-weight: 700 !important;
  transition: background-color .3s, border-color .3s, color .3s, box-shadow .3s, transform .3s !important;
}

body.admin-reporting-active .btn-primary {
  background: var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 8px 16px var(--primary-glow) !important;
}

body.admin-reporting-active .btn-primary:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-2px) !important;
}

body.admin-reporting-active .btn.btn-primary.user-delete-confirm:disabled {
  color: #64748b !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  transform: none !important;
}

body.admin-reporting-active .btn-outline {
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  background: #fff !important;
}

body.admin-reporting-active .btn-outline:hover {
  border-color: var(--text-muted) !important;
  background: #f8fafc !important;
  transform: none !important;
}

body.admin-reporting-active .filter-row .admin-pdf-export-btn {
  border: 1px solid var(--primary) !important;
  color: var(--primary) !important;
  background: none !important;
}

body.admin-reporting-active .filter-row .admin-pdf-export-btn:hover {
  background: var(--primary-light) !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

body.admin-reporting-active.dark-mode .btn-outline {
  color: #f1f5f9 !important;
  background: #1e293b !important;
  border-color: #ffffff1a !important;
}

body.admin-reporting-active.dark-mode .filter-row .admin-pdf-export-btn {
  color: #f1f5f9 !important;
  background: #1e293b !important;
  border-color: #ffffff29 !important;
}

body.admin-reporting-active.dark-mode .filter-row .admin-pdf-export-btn:hover, body.admin-reporting-active.dark-mode .btn-outline:hover {
  background: #243044 !important;
  border-color: #ffffff38 !important;
}

body.admin-reporting-active .feedback-filter-row, body.admin-reporting-active .monthly-summary-filter-row {
  flex-wrap: nowrap !important;
  align-items: flex-end !important;
  gap: 14px !important;
  display: flex !important;
}

body.admin-reporting-active .feedback-filter-row .input-group, body.admin-reporting-active .monthly-summary-filter-row .input-group {
  flex: 1 1 0 !important;
  width: 100% !important;
  min-width: 0 !important;
}

body.admin-reporting-active .feedback-filter-row .report-action-btn, body.admin-reporting-active .monthly-summary-filter-row .report-action-btn {
  white-space: nowrap !important;
  border-radius: 12px !important;
  flex: none !important;
  width: auto !important;
  min-width: max-content !important;
  height: 48px !important;
  padding: 12px 22px !important;
}

body.admin-reporting-active .question-wise-filter-row {
  flex-wrap: nowrap !important;
  align-items: flex-end !important;
  gap: 14px !important;
  display: flex !important;
}

body.admin-reporting-active .phone-input-group {
  min-width: 0;
}

body.admin-reporting-active .phone-input-row {
  grid-template-columns: minmax(170px, .65fr) minmax(160px, 1fr);
  align-items: stretch;
  gap: 12px;
  display: grid;
}

body.admin-reporting-active .phone-country-select {
  min-width: 0;
}

body.admin-reporting-active .phone-input-row input {
  border: 1px solid var(--border);
  background: var(--bg);
  width: 100%;
  height: 48px;
  color: var(--text);
  border-radius: 12px;
  outline: none;
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 600;
}

body.admin-reporting-active .phone-input-row input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

body.admin-reporting-active .question-wise-filter-row .input-group {
  flex: 1 1 0 !important;
  width: 100% !important;
  min-width: 0 !important;
}

body.admin-reporting-active .question-wise-filter-row .report-action-btn {
  white-space: nowrap !important;
  border-radius: 12px !important;
  flex: none !important;
  width: auto !important;
  min-width: max-content !important;
  height: 48px !important;
  padding: 12px 18px !important;
  font-size: 14px !important;
}

body.admin-reporting-active .trend-card-header {
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 20px !important;
  display: flex !important;
}

body.admin-reporting-active .trend-metric-toggle {
  border: 1px solid var(--border) !important;
  background: var(--border) !important;
  border-radius: 12px !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 4px !important;
  display: flex !important;
}

body.admin-reporting-active .trend-metric-button {
  width: auto !important;
  min-width: 72px !important;
  height: 34px !important;
  min-height: 34px !important;
  color: var(--text-muted) !important;
  box-shadow: none !important;
  cursor: pointer !important;
  letter-spacing: .02em !important;
  text-transform: none !important;
  white-space: nowrap !important;
  background: none !important;
  border: 0 !important;
  border-radius: 8px !important;
  padding: 6px 12px !important;
  font-family: Outfit, Inter, Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  transition: background-color .2s, color .2s, box-shadow .2s, transform .2s !important;
}

body.admin-reporting-active .trend-metric-button:hover {
  color: var(--primary) !important;
  transform: translateY(-1px) !important;
}

body.admin-reporting-active .trend-metric-button.active {
  background: var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 6px 14px var(--primary-glow) !important;
}

body.admin-reporting-active.dark-mode .trend-metric-toggle {
  background: #1e293b !important;
  border-color: #ffffff1a !important;
}

body.admin-reporting-active.dark-mode .trend-metric-button {
  color: #94a3b8 !important;
}

body.admin-reporting-active.dark-mode .trend-metric-button:hover, body.admin-reporting-active.dark-mode .trend-metric-button.active {
  color: #fff !important;
}

body.admin-reporting-active main, body.admin-reporting-active .main-wrapper, body.admin-reporting-active .sidebar-nav {
  scroll-behavior: auto !important;
}

body.admin-reporting-active .choices {
  z-index: 10 !important;
  border-radius: 14px !important;
  width: 100% !important;
  margin: 0 !important;
  position: relative !important;
}

body.admin-reporting-active .choices.is-open, body.admin-reporting-active .choices.is-focused, body.admin-reporting-active .choices.is-active {
  z-index: 9999 !important;
}

body.admin-reporting-active .choices__inner {
  border: 1px solid var(--border) !important;
  background: var(--surface-solid) !important;
  height: 48px !important;
  min-height: 48px !important;
  color: var(--text) !important;
  border-radius: 14px !important;
  align-items: center !important;
  padding: 4px 42px 4px 16px !important;
  font-family: Outfit, Inter, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  transition: border-color .2s, box-shadow .2s, background-color .2s !important;
  display: flex !important;
  overflow: hidden !important;
  box-shadow: 0 2px 6px #00000005 !important;
}

body.admin-reporting-active .choices:hover .choices__inner {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

body.admin-reporting-active .choices.is-focused .choices__inner, body.admin-reporting-active .choices.is-open .choices__inner {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 4px var(--primary-glow) !important;
  border-radius: 14px !important;
}

body.admin-reporting-active .choices__list--single {
  width: 100% !important;
  padding: 0 !important;
}

body.admin-reporting-active .choices__item {
  color: var(--text) !important;
}

body.admin-reporting-active .choices[data-type*="select-one"]:after {
  border-width: 5px !important;
  border-color: var(--text-muted) transparent transparent transparent !important;
  width: 0 !important;
  height: 0 !important;
  margin-top: -2px !important;
  right: 16px !important;
}

body.admin-reporting-active .choices[data-type*="select-one"].is-open:after {
  border-color: transparent transparent var(--text-muted) transparent !important;
  margin-top: -8px !important;
}

body.admin-reporting-active .choices__list--dropdown, body.admin-reporting-active .choices__list[aria-expanded] {
  border: 1px solid var(--border) !important;
  background: var(--surface-solid) !important;
  width: 100% !important;
  min-width: 100% !important;
  box-shadow: var(--shadow-lg) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 10000 !important;
  border-radius: 14px !important;
  margin-top: 8px !important;
  padding: 8px !important;
  transition: opacity .2s, transform .2s, visibility .2s !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: auto !important;
  overflow: hidden !important;
  transform: translateY(-10px) !important;
}

body.admin-reporting-active .choices.is-open .choices__list--dropdown, body.admin-reporting-active .choices.is-open .choices__list[aria-expanded] {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

body.admin-reporting-active .choices__list--dropdown .choices__list, body.admin-reporting-active .choices__list[aria-expanded] .choices__list {
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  scrollbar-width: thin !important;
  scrollbar-color: #94a3b873 transparent !important;
  max-height: 240px !important;
  overflow-y: auto !important;
}

body.admin-reporting-active .choices__list--dropdown .choices__list::-webkit-scrollbar {
  width: 8px !important;
}

body.admin-reporting-active .choices__list[aria-expanded] .choices__list::-webkit-scrollbar {
  width: 8px !important;
}

body.admin-reporting-active .choices__list--dropdown .choices__list::-webkit-scrollbar-thumb {
  background: #94a3b873 padding-box padding-box !important;
  border: 2px solid #0000 !important;
  border-radius: 999px !important;
}

body.admin-reporting-active .choices__list[aria-expanded] .choices__list::-webkit-scrollbar-thumb {
  background: #94a3b873 padding-box padding-box !important;
  border: 2px solid #0000 !important;
  border-radius: 999px !important;
}

body.admin-reporting-active .choices__list--dropdown .choices__list::-webkit-scrollbar-track {
  background: none !important;
}

body.admin-reporting-active .choices__list[aria-expanded] .choices__list::-webkit-scrollbar-track {
  background: none !important;
}

body.admin-reporting-active .choices__list--dropdown .choices__item--selectable, body.admin-reporting-active .choices__list[aria-expanded] .choices__item--selectable {
  color: var(--text) !important;
  border-radius: 8px !important;
  padding: 10px 16px !important;
  font-family: Outfit, Inter, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  transition: background-color .2s, color .2s, transform .2s !important;
}

body.admin-reporting-active .choices__list--dropdown .choices__item--selectable.is-highlighted, body.admin-reporting-active .choices__list--dropdown .choices__item--selectable:hover, body.admin-reporting-active .choices__list[aria-expanded] .choices__item--selectable.is-highlighted, body.admin-reporting-active .choices__list[aria-expanded] .choices__item--selectable:hover {
  background: var(--primary-light) !important;
  color: var(--primary-dark) !important;
}

body.admin-reporting-active.dark-mode .choices__inner {
  color: #f8fafc !important;
  box-shadow: none !important;
  background: #1e293b !important;
  border-color: #ffffff1a !important;
}

body.admin-reporting-active.dark-mode .choices:hover .choices__inner {
  background: #243044 !important;
  border-color: #ffffff2e !important;
}

body.admin-reporting-active.dark-mode .choices__list--dropdown, body.admin-reporting-active.dark-mode .choices__list[aria-expanded] {
  background: #111827 !important;
  border-color: #ffffff1f !important;
  box-shadow: 0 22px 45px #00000073 !important;
}

body.admin-reporting-active.dark-mode .choices__item, body.admin-reporting-active.dark-mode .choices__list--dropdown .choices__item--selectable, body.admin-reporting-active.dark-mode .choices__list[aria-expanded] .choices__item--selectable {
  color: #f8fafc !important;
}

body.admin-reporting-active.dark-mode .choices__list--dropdown .choices__item--selectable.is-highlighted, body.admin-reporting-active.dark-mode .choices__list--dropdown .choices__item--selectable:hover, body.admin-reporting-active.dark-mode .choices__list[aria-expanded] .choices__item--selectable.is-highlighted, body.admin-reporting-active.dark-mode .choices__list[aria-expanded] .choices__item--selectable:hover {
  color: #fff !important;
  background: #e2007438 !important;
}

@media (max-width: 1280px) {
  body.admin-reporting-active .dashboard-filter-row, body.admin-reporting-active .feedback-filter-row, body.admin-reporting-active .monthly-summary-filter-row, body.admin-reporting-active .question-wise-filter-row {
    flex-wrap: wrap !important;
  }

  body.admin-reporting-active .dashboard-filter-row .btn, body.admin-reporting-active .feedback-filter-row .report-action-btn, body.admin-reporting-active .monthly-summary-filter-row .report-action-btn, body.admin-reporting-active .question-wise-filter-row .report-action-btn {
    flex: none !important;
    width: auto !important;
    min-width: max-content !important;
  }
}

@media (max-width: 768px) {
  body.admin-reporting-active .sidebar, body.admin-reporting-active .sidebar.collapsed {
    flex-basis: 280px !important;
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
  }

  body.admin-reporting-active .filter-row {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  body.admin-reporting-active .filter-row .input-group, body.admin-reporting-active .filter-row .btn {
    width: 100% !important;
  }

  body.admin-reporting-active .dashboard-filter-row {
    flex-direction: column !important;
    align-items: stretch !important;
    display: flex !important;
  }

  body.admin-reporting-active .dashboard-filter-row .btn {
    width: 100% !important;
    min-width: 0 !important;
  }

  body.admin-reporting-active .dashboard-filter-row .input-group {
    flex: auto !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body.admin-reporting-active .question-wise-filter-row, body.admin-reporting-active .feedback-filter-row, body.admin-reporting-active .monthly-summary-filter-row {
    flex-direction: column !important;
    align-items: stretch !important;
    display: flex !important;
  }

  body.admin-reporting-active .phone-input-row {
    grid-template-columns: 1fr;
  }

  body.admin-reporting-active .question-wise-filter-row .report-action-btn, body.admin-reporting-active .feedback-filter-row .report-action-btn, body.admin-reporting-active .monthly-summary-filter-row .report-action-btn {
    width: 100% !important;
    min-width: 0 !important;
  }
}

body.admin-reporting-active .feedback-filter-row {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: end !important;
  gap: 18px 20px !important;
  display: grid !important;
}

body.admin-reporting-active .feedback-filter-row .input-group, body.admin-reporting-active .feedback-filter-row .filter-group {
  width: 100% !important;
  min-width: 0 !important;
}

body.admin-reporting-active .feedback-filter-row .report-action-btn {
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 48px !important;
  padding: 0 14px !important;
}

.feedback-export-choice-overlay {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: #0f172a99;
  padding: 18px;
  z-index: 99999 !important;
  justify-content: center !important;
  align-items: center !important;
  display: flex !important;
  position: fixed !important;
  inset: 0 !important;
}

.feedback-export-choice-modal {
  text-align: center;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  width: min(92vw, 460px);
  box-shadow: var(--shadow-lg);
  border-radius: 20px;
  padding: 28px;
  position: relative;
}

.feedback-export-choice-icon {
  width: 56px;
  height: 56px;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  margin: 8px auto 18px;
  display: inline-flex;
}

.feedback-export-choice-modal h3 {
  color: var(--text);
  margin: 0 0 10px;
  font-family: Outfit, sans-serif;
  font-size: 22px;
  font-weight: 800;
}

.feedback-export-choice-modal p {
  color: var(--text-muted);
  margin: 0 0 22px;
  font-size: 14.5px;
  line-height: 1.6;
}

.feedback-export-choice-actions {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  display: grid;
}

.feedback-export-choice-actions .btn {
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
}

@media (max-width: 1100px) {
  body.admin-reporting-active .feedback-filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  body.admin-reporting-active .feedback-filter-row {
    grid-template-columns: 1fr !important;
  }

  .feedback-export-choice-actions {
    grid-template-columns: 1fr;
  }
}

.enterprise-page {
  padding-bottom: 24px;
}

.enterprise-page-title {
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin: 0 0 14px;
  display: flex;
}

.enterprise-page-title h2 {
  color: var(--text);
  letter-spacing: -.03em;
  margin: 0;
  font-family: Outfit, sans-serif;
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 900;
  line-height: 1.05;
}

.enterprise-page-title span {
  color: var(--text-muted);
  max-width: 760px;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  display: block;
}

.enterprise-eyebrow {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .13em;
  margin: 0 0 5px;
  font-size: 10px;
  font-weight: 900;
}

.enterprise-title-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.compact-btn {
  white-space: nowrap;
  border-radius: 12px !important;
  min-height: 38px !important;
  padding: 8px 13px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.ops-kpi-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
  display: grid;
}

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

.ops-kpi-card {
  border: 1px solid var(--border);
  background: var(--surface);
  min-height: 78px;
  box-shadow: var(--shadow-sm);
  border-radius: 18px;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  display: flex;
  overflow: hidden;
}

.ops-kpi-icon {
  border-radius: 12px;
  flex: none;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  font-size: 13px;
  display: flex;
}

.ops-kpi-card strong {
  color: var(--text);
  letter-spacing: -.03em;
  font-family: Outfit, sans-serif;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  display: block;
}

.ops-kpi-card span {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 800;
  display: block;
}

.eligible-matrix-value {
  align-items: baseline;
  gap: 5px;
  line-height: 1;
  letter-spacing: 0 !important;
  text-transform: none !important;
  margin-top: 0 !important;
  font-size: 20px !important;
  display: inline-flex !important;
}

.eligible-matrix-value span {
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0 !important;
  text-transform: none !important;
  margin-top: 0 !important;
  font-size: 20px !important;
  display: inline !important;
}

.eligible-matrix-value em {
  color: var(--text-muted);
  font-style: normal;
  font-weight: 800;
}

.eligible-matrix-new {
  color: #e91e63 !important;
}

.eligible-matrix-opu {
  color: #2563eb !important;
}

.eligible-matrix-et {
  color: #16a34a !important;
}

.tone-green .ops-kpi-icon {
  color: #16a34a;
  background: #dcfce7;
}

.tone-blue .ops-kpi-icon {
  color: #2563eb;
  background: #dbeafe;
}

.tone-amber .ops-kpi-icon {
  color: #d97706;
  background: #fef3c7;
}

.tone-pink .ops-kpi-icon {
  color: #e91e63;
  background: #fce4ec;
}

.tone-indigo .ops-kpi-icon {
  color: #4f46e5;
  background: #e0e7ff;
}

.tone-red .ops-kpi-icon {
  color: #dc2626;
  background: #fee2e2;
}

.tone-slate .ops-kpi-icon {
  color: #475569;
  background: #f1f5f9;
}

.enterprise-filter-card {
  margin-bottom: 12px;
  border-radius: 20px !important;
  padding: 14px !important;
}

.enterprise-filter-grid {
  align-items: end;
  gap: 10px;
  display: grid;
}

.two-line-filter-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.enterprise-field {
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  display: flex;
}

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

.tracker-range-field {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
  display: grid;
}

.enterprise-field input, .enterprise-field select, .enterprise-field textarea {
  border: 1px solid var(--border);
  background: var(--surface);
  width: 100%;
  height: 38px;
  color: var(--text);
  border-radius: 11px;
  outline: none;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.enterprise-field textarea {
  resize: vertical;
  height: auto;
  min-height: 86px;
  padding: 10px;
  line-height: 1.45;
}

.enterprise-field input:focus, .enterprise-field select:focus, .enterprise-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px #e91e631a;
}

.filter-action {
  align-self: end;
}

.enterprise-table-card, .enterprise-panel {
  overflow: visible;
  border-radius: 20px !important;
  padding: 0 !important;
}

.enterprise-card-heading {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  display: flex;
}

.enterprise-card-heading strong {
  color: var(--text);
  font-family: Outfit, sans-serif;
  font-size: 16px;
  font-weight: 900;
  display: block;
}

.enterprise-card-heading span {
  color: var(--text-muted);
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  display: block;
}

.live-pill {
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 5px 9px;
  color: #16a34a !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

.enterprise-table-wrap {
  width: 100%;
  overflow: auto;
}

.enterprise-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 1080px;
}

.enterprise-table th {
  color: var(--text-muted);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: #f8fafceb;
  padding: 10px 12px;
  font-size: 10px;
  font-weight: 900;
}

.enterprise-table td {
  color: var(--text);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  padding: 11px 12px;
  font-size: 12px;
  font-weight: 650;
}

.enterprise-table tr:hover td {
  background: #e91e6309;
}

.enterprise-table td strong {
  color: var(--text);
  font-size: 12.5px;
  font-weight: 900;
  display: block;
}

.enterprise-table td small {
  color: var(--text-muted);
  white-space: normal;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 650;
  display: block;
}

.status-chip {
  text-transform: uppercase;
  letter-spacing: .035em;
  white-space: nowrap;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 900;
  display: inline-flex;
}

.status-good {
  color: #15803d;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
}

.status-pending {
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
}

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

.status-danger {
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fecaca;
}

.status-muted {
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.row-actions {
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  display: flex;
}

.mini-btn, .mini-icon-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  border-radius: 10px;
  padding: 7px 9px;
  font-size: 11px;
  font-weight: 900;
}

.mini-btn.pink {
  color: #e91e63;
  background: #fce4ec;
  border-color: #f9a8d4;
}

.mini-btn.green {
  color: #15803d;
  background: #dcfce7;
  border-color: #bbf7d0;
}

.mini-icon-btn {
  width: 31px;
  height: 31px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
}

.more-wrap {
  position: relative;
}

.row-menu {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  width: 185px;
  box-shadow: var(--shadow-lg);
  z-index: 40;
  border-radius: 14px;
  padding: 7px;
  position: absolute;
  top: 36px;
  right: 0;
}

.row-menu button {
  width: 100%;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 10px;
  padding: 8px 9px;
  font-size: 12px;
  font-weight: 800;
  display: block;
}

.row-menu button:hover {
  background: var(--surface-muted);
  color: var(--primary);
}

.empty-cell {
  text-align: center;
  color: var(--text-muted) !important;
  padding: 30px !important;
}

.operations-tabs {
  gap: 7px;
  margin-bottom: 2px;
  padding: 4px 0 12px;
  display: flex;
  overflow: auto;
}

.operations-tabs button {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 900;
}

.operations-tabs button.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 8px 20px #e91e6338;
}

.ops-grid-two {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  display: grid;
}

.enterprise-panel {
  margin-bottom: 12px;
}

.service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  display: grid;
}

.service-card {
  border: 1px solid var(--border);
  background: var(--surface-muted);
  border-radius: 16px;
  min-height: 96px;
  padding: 12px;
  position: relative;
}

.service-card strong {
  color: var(--text);
  padding-left: 18px;
  font-size: 13px;
  font-weight: 900;
  display: block;
}

.service-card small, .service-card em {
  color: var(--text-muted);
  margin-top: 5px;
  font-size: 11px;
  font-style: normal;
  font-weight: 650;
  display: block;
}

.service-dot {
  background: #94a3b8;
  border-radius: 999px;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  display: inline-block;
  box-shadow: 0 0 0 3px #94a3b826;
}

.service-card .service-dot {
  position: absolute;
  top: 16px;
  left: 12px;
}

.service-dot.status-good {
  background: #22c55e;
  box-shadow: 0 0 0 4px #22c55e29;
}

.service-dot.status-pending {
  background: #f59e0b;
  box-shadow: 0 0 0 4px #f59e0b29;
}

.service-dot.status-danger {
  background: #ef4444;
  box-shadow: 0 0 0 4px #ef444429;
}

.alert-item {
  border-bottom: 1px solid var(--border);
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  display: flex;
}

.alert-item div {
  flex: 1;
  min-width: 0;
}

.alert-item strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  display: block;
}

.alert-item small {
  color: var(--text-muted);
  margin-top: 3px;
  font-size: 11px;
  font-weight: 650;
  display: block;
}

.country-bars {
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  display: flex;
}

.country-bars > div {
  color: var(--text);
  grid-template-columns: 100px 1fr 35px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  display: grid;
}

.country-bars div div {
  background: #f1f5f9;
  border-radius: 999px;
  height: 9px;
  overflow: hidden;
}

.country-bars em {
  background: linear-gradient(90deg, #e91e63, #f59e0b);
  border-radius: 999px;
  height: 100%;
  display: block;
}

.mini-metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  display: grid;
}

.mini-metric-grid div {
  border: 1px solid var(--border);
  background: var(--surface-muted);
  border-radius: 16px;
  padding: 12px;
}

.mini-metric-grid span, .mini-metric-grid em {
  color: var(--text-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  display: block;
}

.mini-metric-grid strong {
  color: var(--text);
  margin: 5px 0;
  font-family: Outfit;
  font-size: 18px;
  display: block;
}

.trend-mock {
  border: 1px solid var(--border);
  background: linear-gradient(#e91e630d, #0000);
  border-radius: 18px;
  align-items: end;
  gap: 7px;
  height: 190px;
  margin: 0 14px 14px;
  padding: 18px;
  display: flex;
}

.trend-mock span {
  background: linear-gradient(#e91e63, #fbcfe8);
  border-radius: 999px 999px 0 0;
  flex: 1;
  min-width: 5px;
}

.log-viewer {
  color: #d1fae5;
  background: #0f172a;
  border-radius: 18px;
  max-height: 420px;
  margin: 14px;
  padding: 14px;
  overflow: auto;
  box-shadow: inset 0 0 0 1px #ffffff14;
}

.log-viewer code {
  color: #bbf7d0;
  border-bottom: 1px solid #ffffff0f;
  padding: 5px 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  display: block;
}

.attack-map {
  padding: 14px;
}

.map-surface {
  border: 1px solid var(--border);
  background: radial-gradient(circle at 20% 30%, #e91e6329, #0000 12%), radial-gradient(circle at 80% 40%, #0ea5e924, #0000 14%), linear-gradient(135deg, #f8fafc, #fce4ec);
  border-radius: 18px;
  height: 260px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.map-pin {
  background: #ef4444;
  border: 3px solid #fff;
  border-radius: 999px;
  width: 14px;
  height: 14px;
  position: absolute;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 18px #ef444459;
}

body.dark-mode .enterprise-field input, body.dark-mode .enterprise-field select, body.dark-mode .ops-kpi-card, body.dark-mode .service-card, body.dark-mode .mini-metric-grid div, body.dark-mode .operations-tabs button {
  background: var(--surface);
}

body.dark-mode .row-menu {
  background: var(--surface-solid);
}

body.dark-mode .enterprise-table th {
  background: #0f172abf;
}

body.dark-mode .map-surface {
  background: radial-gradient(circle at 20% 30%, #e91e6338, #0000 12%), radial-gradient(circle at 80% 40%, #0ea5e933, #0000 14%), linear-gradient(135deg, #0f172a, #1e293b);
}

@media (max-width: 1500px) {
  .tracker-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .two-line-filter-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1050px) {
  .ops-grid-two {
    grid-template-columns: 1fr;
  }

  .two-line-filter-grid, .mini-metric-grid, .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .enterprise-page-title {
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .tracker-kpi-grid, .operations-kpi-grid, .two-line-filter-grid, .mini-metric-grid, .service-grid {
    grid-template-columns: 1fr;
  }

  .enterprise-title-actions, .enterprise-title-actions .btn {
    width: 100%;
  }

  .compact-btn {
    justify-content: center;
    width: 100%;
  }

  .ops-kpi-card {
    min-height: 70px;
  }

  .enterprise-table {
    min-width: 920px;
  }
}

.rich-tracker-kpi-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.tracker-insight-strip {
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: linear-gradient(135deg, #ffffffeb, #fce4eca6);
  border-radius: 18px;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px 12px;
  display: flex;
}

.tracker-insight-strip > div {
  flex: 180px;
  min-width: 180px;
}

.tracker-insight-strip strong {
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 900;
  display: block;
}

.tracker-insight-strip span {
  color: var(--text);
  margin-top: 3px;
  font-size: 12px;
  font-weight: 850;
  display: block;
}

.tracker-tabs {
  margin-top: 0;
}

.link-cell {
  text-align: left;
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

.link-cell:hover strong {
  color: var(--primary);
  text-decoration: underline;
}

.enterprise-drawer-backdrop {
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  z-index: 120;
  background: #0f172a59;
  justify-content: flex-end;
  display: flex;
  position: fixed;
  inset: 0;
}

.enterprise-drawer {
  background: var(--surface);
  border-left: 1px solid var(--border);
  width: min(560px, 94vw);
  height: 100%;
  padding: 22px;
  position: relative;
  overflow: auto;
  box-shadow: -24px 0 60px #0f172a40;
}

.enterprise-drawer h3 {
  color: var(--text);
  margin: 4px 0;
  font-family: Outfit, sans-serif;
  font-size: 26px;
  font-weight: 900;
}

.enterprise-drawer p {
  color: var(--text-muted);
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 650;
}

.drawer-close {
  border: 1px solid var(--border);
  background: var(--surface-muted);
  width: 34px;
  height: 34px;
  color: var(--text);
  cursor: pointer;
  border-radius: 12px;
  font-size: 22px;
  line-height: 1;
  position: absolute;
  top: 14px;
  right: 14px;
}

.timeline-list {
  border-left: 2px solid var(--border);
  margin-top: 18px;
  padding-left: 18px;
}

.timeline-list div {
  padding: 0 0 18px;
  position: relative;
}

.timeline-list div > span {
  background: var(--primary);
  border-radius: 50%;
  width: 10px;
  height: 10px;
  position: absolute;
  top: 2px;
  left: -24px;
  box-shadow: 0 0 0 4px #e91e6321;
}

.timeline-list strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  display: block;
}

.timeline-list em {
  color: var(--primary);
  margin-top: 3px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  display: block;
}

.timeline-list small {
  color: var(--text-muted);
  margin-top: 3px;
  display: block;
}

.tracker-drawer-section {
  border: 1px solid var(--border);
  background: var(--surface-muted);
  border-radius: 14px;
  margin-top: 18px;
  padding: 14px;
}

.tracker-drawer-section h4, .timeline-list h4 {
  color: var(--text);
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 900;
}

.tracker-drawer-row {
  border-top: 1px solid var(--border);
  grid-template-columns: minmax(110px, .8fr) minmax(0, 1.2fr);
  gap: 8px 12px;
  padding: 10px 0;
  display: grid;
}

.tracker-drawer-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.tracker-drawer-row strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.tracker-drawer-row span {
  color: var(--text);
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 750;
}

.tracker-drawer-row small {
  color: var(--text-muted);
  overflow-wrap: anywhere;
  grid-column: 2;
  font-size: 12px;
}

body.admin-reporting-active.dark-mode .tracker-insight-strip {
  background: linear-gradient(135deg, #1e293bf5, #4c1d3a59);
}

@media (max-width: 1400px) {
  .rich-tracker-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .rich-tracker-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tracker-kpi-grid, .operations-kpi-grid, .ops-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-grid-two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .rich-tracker-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .tracker-kpi-grid, .operations-kpi-grid, .ops-kpi-grid {
    grid-template-columns: 1fr;
  }

  .tracker-insight-strip {
    align-items: stretch;
  }

  .tracker-insight-strip .mini-btn {
    width: 100%;
  }

  .tracker-range-field {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .rich-tracker-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.medics-import-page {
  gap: 14px;
  padding-bottom: 24px;
  display: grid;
}

.medics-import-hero {
  background: linear-gradient(135deg, #fffffffa, #fce4ecb8 58%, #e0e7ff9e);
  border: 1px solid #e91e632e;
  border-radius: 24px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 48px #88134b1f;
}

.medics-import-hero:before {
  content: "";
  pointer-events: none;
  background: radial-gradient(circle, #e91e632e, #0000 68%);
  border-radius: 50%;
  width: 260px;
  height: 260px;
  position: absolute;
  top: -125px;
  right: -90px;
}

.medics-import-hero-heading {
  z-index: 1;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  display: flex;
  position: relative;
}

.medics-import-identity {
  align-items: center;
  gap: 14px;
  min-width: 0;
  display: flex;
}

.medics-import-mark {
  color: #fff;
  background: linear-gradient(145deg, #e91e63, #7c3aed);
  border-radius: 18px;
  flex: none;
  justify-content: center;
  align-items: center;
  width: 54px;
  height: 54px;
  font-family: Outfit, sans-serif;
  font-size: 24px;
  font-weight: 900;
  display: flex;
  box-shadow: 0 12px 28px #e91e6347;
}

.medics-import-identity h3 {
  color: var(--text);
  letter-spacing: -.03em;
  margin: 0;
  font-family: Outfit, sans-serif;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 900;
  line-height: 1.05;
}

.medics-import-identity p:not(.enterprise-eyebrow) {
  max-width: 780px;
  color: var(--text-muted);
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
}

.medics-import-hero-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  display: flex;
}

.medics-health-grid {
  z-index: 1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  position: relative;
}

.medics-health-card {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: #ffffffe0;
  min-height: 96px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.medics-health-card:hover {
  box-shadow: var(--shadow);
  border-color: #e91e633d;
  transform: translateY(-3px);
}

.medics-health-card > div:last-child {
  min-width: 0;
}

.medics-health-card strong {
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.25;
}

.medics-health-card span {
  margin-top: 4px;
}

.medics-health-warning {
  z-index: 1;
  color: #991b1b;
  background: #fee2e2e6;
  border: 1px solid #fecaca;
  border-radius: 15px;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  display: flex;
  position: relative;
}

.medics-health-warning strong {
  white-space: nowrap;
  font-size: 12px;
  font-weight: 900;
}

.medics-health-warning span {
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.medics-panel {
  overflow: hidden;
  border-radius: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.medics-form-grid {
  padding: 16px;
}

.medics-panel-actions {
  margin: 0;
  padding: 0 16px 16px;
}

.medics-schedule-body {
  padding: 16px;
}

.medics-schedule-toggle {
  border: 1px solid var(--border);
  background: var(--surface-muted);
  cursor: pointer;
  border-radius: 16px;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 13px 14px;
  display: flex;
}

.medics-schedule-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  flex: none;
}

.medics-schedule-toggle span {
  display: block;
}

.medics-schedule-toggle strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  display: block;
}

.medics-schedule-toggle small {
  color: var(--text-muted);
  margin-top: 3px;
  font-size: 11px;
  font-weight: 650;
  display: block;
}

.medics-schedule-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  display: grid;
}

.medics-schedule-summary {
  background: linear-gradient(135deg, #dcfce7e6, #ecfdf5d1);
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  align-items: flex-start;
  gap: 11px;
  margin-top: 16px;
  padding: 13px 14px;
  display: flex;
}

.medics-schedule-summary-icon {
  color: #fff;
  background: #16a34a;
  border-radius: 10px;
  flex: none;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  font-size: 13px;
  font-weight: 900;
  display: flex;
  box-shadow: 0 7px 16px #16a34a33;
}

.medics-schedule-summary strong {
  color: #166534;
  font-size: 12px;
  font-weight: 900;
  display: block;
}

.medics-schedule-summary p {
  color: #166534;
  margin: 3px 0 0;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

body.admin-reporting-active.dark-mode .medics-import-hero {
  background: linear-gradient(135deg, #1e293bfa, #4c1d3ab8 58%, #312e8175);
  border-color: #f472b63d;
}

body.admin-reporting-active.dark-mode .medics-health-card {
  background: #1e293be0;
}

body.admin-reporting-active.dark-mode .medics-schedule-summary {
  background: #14532d59;
  border-color: #4ade8047;
}

body.admin-reporting-active.dark-mode .medics-schedule-summary strong, body.admin-reporting-active.dark-mode .medics-schedule-summary p {
  color: #bbf7d0;
}

body.admin-reporting-active.dark-mode .medics-health-warning {
  color: #fecaca;
  background: #7f1d1d57;
  border-color: #f871714d;
}

@media (max-width: 1100px) {
  .medics-health-grid, .medics-schedule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .medics-import-hero-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .medics-import-hero-actions {
    justify-content: space-between;
    width: 100%;
  }

  .medics-health-grid, .medics-schedule-grid {
    grid-template-columns: 1fr;
  }

  .medics-import-identity {
    align-items: flex-start;
  }

  .medics-import-mark {
    border-radius: 15px;
    width: 46px;
    height: 46px;
  }
}

.operations-center-page {
  width: 100%;
  min-width: 0;
}

.operations-center-page *, .operations-center-page :before, .operations-center-page :after {
  box-sizing: border-box;
}

.operations-title {
  align-items: flex-start;
  gap: 14px;
}

.operations-health-strip {
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  align-items: stretch;
  gap: 10px;
  display: grid;
}

.operations-tabs-wrap {
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0 14px;
  display: flex;
  overflow: visible;
}

.operations-tabs-wrap button {
  flex: none;
  min-height: 34px;
}

.ops-tab-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr));
  align-items: start;
  gap: 12px;
  min-width: 0;
  display: grid;
}

.ops-tab-grid-balanced > .operations-panel {
  min-height: 354px;
}

.ops-tab-grid-attack {
  grid-template-columns: minmax(360px, .78fr) minmax(520px, 1.22fr);
}

.ops-tab-stack {
  grid-template-columns: 1fr;
  gap: 12px;
  min-width: 0;
  display: grid;
}

.operations-panel {
  min-width: 0;
  margin-bottom: 0;
  overflow: hidden;
}

.operations-panel-body {
  width: 100%;
  min-width: 0;
}

.operations-service-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  padding: 12px;
}

.operations-service-grid .service-card {
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  min-height: 106px;
  display: flex;
}

.operations-service-grid .service-card strong, .operations-service-grid .service-card small, .operations-service-grid .service-card em {
  text-overflow: ellipsis;
  overflow: hidden;
}

.operations-table-wrap {
  width: 100%;
  min-width: 0;
  padding-bottom: 2px;
  overflow-x: auto;
}

.operations-table {
  table-layout: auto;
  width: 100%;
  min-width: 980px;
}

.operations-table th, .operations-table td {
  vertical-align: top;
}

.operations-table td strong, .operations-table td small {
  overflow-wrap: anywhere;
  max-width: 360px;
}

.attack-table {
  min-width: 1120px;
}

.audit-table {
  min-width: 1160px;
}

.operations-mini-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  align-items: stretch;
  padding: 12px;
}

.operations-mini-grid div {
  min-width: 0;
  overflow: hidden;
}

.operations-mini-grid strong, .operations-mini-grid span, .operations-mini-grid em {
  text-overflow: ellipsis;
  overflow: hidden;
}

.operations-trend {
  min-width: 0;
  height: 220px;
  margin: 0 12px 12px;
}

.operations-log-viewer {
  max-height: 520px;
  margin: 12px;
  overflow: auto;
}

.panel-list {
  max-height: 410px;
  overflow: auto;
}

.operations-center-page .alert-item {
  align-items: flex-start;
  min-width: 0;
}

.operations-center-page .alert-item div {
  min-width: 0;
}

.operations-center-page .alert-item .mini-btn {
  flex: none;
}

.operations-center-page .country-bars {
  padding: 12px;
}

.operations-center-page .country-bars > div {
  grid-template-columns: minmax(88px, 128px) 1fr 42px;
  min-width: 0;
}

.operations-center-page .country-bars span {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.operations-center-page .map-surface {
  height: 290px;
}

.row-menu button.danger {
  color: #dc2626;
}

.row-menu button.danger:hover {
  color: #b91c1c;
  background: #fef2f2;
}

@media (max-width: 1200px) {
  .ops-tab-grid-attack {
    grid-template-columns: 1fr;
  }

  .operations-table {
    min-width: 920px;
  }
}

@media (max-width: 760px) {
  .operations-title {
    flex-direction: column;
  }

  .operations-health-strip {
    grid-template-columns: 1fr 1fr;
  }

  .operations-center-page .enterprise-title-actions {
    width: 100%;
  }

  .operations-center-page .enterprise-title-actions .btn {
    flex: 1 1 0;
  }

  .operations-table {
    min-width: 820px;
  }
}

@media (max-width: 520px) {
  .operations-health-strip {
    grid-template-columns: 1fr;
  }

  .operations-tabs-wrap button {
    flex: auto;
  }
}

.enhanced-tracker-tabs {
  grid-template-columns: repeat(auto-fit, minmax(154px, 1fr));
  gap: 8px;
  padding: 0 0 12px;
  display: grid;
  overflow: visible;
}

.enhanced-tracker-tabs button {
  text-align: left;
  border-radius: 16px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 58px;
  padding: 9px 10px;
  display: flex;
}

.enhanced-tracker-tabs button strong {
  font-size: 12px;
  font-weight: 950;
  line-height: 1.1;
}

.enhanced-tracker-tabs button span {
  opacity: .82;
  white-space: normal;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
  display: block;
}

.tracker-workspace-summary {
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: linear-gradient(135deg, #fffffff5, #f8fafcdb);
  border-radius: 18px;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 2.4fr) auto;
  align-items: stretch;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px;
  display: grid;
}

.tracker-workspace-title {
  background: #e91e6313;
  border: 1px solid #e91e6321;
  border-radius: 14px;
  padding: 10px 12px;
}

.tracker-workspace-title strong {
  color: var(--text);
  font-family: Outfit, sans-serif;
  font-size: 16px;
  font-weight: 950;
  display: block;
}

.tracker-workspace-title span {
  color: var(--text-muted);
  margin-top: 4px;
  font-size: 11px;
  font-weight: 750;
  display: block;
}

.tracker-workspace-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  display: grid;
}

.tracker-workspace-cards div {
  border: 1px solid var(--border);
  background: var(--surface-muted);
  border-radius: 14px;
  min-width: 0;
  padding: 9px 10px;
}

.tracker-workspace-cards span, .tracker-workspace-cards em {
  color: var(--text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  display: block;
  overflow: hidden;
}

.tracker-workspace-cards strong {
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 4px 0;
  font-family: Outfit, sans-serif;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.05;
  display: block;
  overflow: hidden;
}

.tracker-workspace-actions {
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  min-width: 118px;
  display: flex;
}

.tracker-workspace-actions .mini-btn {
  width: 100%;
}

.rich-row-menu {
  width: 230px;
  max-height: 420px;
  overflow: auto;
}

.tracker-analytics-grid {
  align-items: stretch;
}

.tracker-analytics-grid .enterprise-panel {
  min-height: 260px;
}

.reminder-modal-backdrop {
  z-index: 150;
}

.reminder-schedule-modal {
  width: min(760px, 96vw);
}

.reminder-summary-grid {
  margin: 14px 0;
}

.reminder-policy-strip {
  border: 1px solid var(--border);
  background: var(--surface-muted);
  border-radius: 14px;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 8px 0 14px;
  padding: 10px 12px;
  display: flex;
}

.reminder-policy-strip strong {
  color: var(--text);
  margin-right: auto;
  font-size: 13px;
  font-weight: 950;
}

.reminder-policy-strip span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 850;
}

.reminder-loading {
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  background: var(--surface-muted);
  border-radius: 16px;
  padding: 28px;
  font-weight: 850;
}

.reminder-schedule-list {
  gap: 10px;
  display: grid;
}

.reminder-schedule-row {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border-radius: 16px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  display: grid;
}

.reminder-schedule-row.reminder-due {
  background: linear-gradient(135deg, #dcfce7c2, var(--surface));
  border-color: #bbf7d0;
}

.reminder-schedule-row.reminder-sent, .reminder-schedule-row.reminder-completed {
  border-color: #bbf7d0;
}

.reminder-schedule-row.reminder-failed, .reminder-schedule-row.reminder-expired, .reminder-schedule-row.reminder-blocked {
  background: linear-gradient(135deg, #fee2e28c, var(--surface));
  border-color: #fecaca;
}

.reminder-step-marker {
  color: #e91e63;
  background: #fce4ec;
  border: 1px solid #f9a8d4;
  border-radius: 14px;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  display: flex;
}

.reminder-step-marker strong {
  font-family: Outfit, sans-serif;
  font-size: 17px;
  font-weight: 950;
}

.reminder-step-body {
  min-width: 0;
}

.reminder-step-title {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.reminder-step-title strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 950;
}

.reminder-step-meta {
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 750;
  display: flex;
}

.reminder-template-line {
  color: var(--text);
  margin-top: 5px;
  font-size: 11px;
  font-weight: 850;
}

.reminder-step-body small {
  color: var(--text-muted);
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.45;
  display: block;
}

.reminder-step-action {
  justify-content: flex-end;
  display: flex;
}

.reminder-step-action .mini-btn {
  min-width: 78px;
}

.remote-link-modal {
  width: min(820px, 96vw);
}

.remote-link-panel {
  gap: 14px;
  display: grid;
}

.remote-link-meta {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  display: grid;
}

.remote-link-meta div {
  border: 1px solid var(--border);
  background: var(--surface-muted);
  border-radius: 14px;
  min-width: 0;
  padding: 12px;
}

.remote-link-meta span {
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 900;
  display: block;
}

.remote-link-meta strong {
  color: var(--text);
  overflow-wrap: anywhere;
  margin-top: 5px;
  font-size: 13px;
  font-weight: 950;
  display: block;
}

.remote-link-url input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.remote-qr-wrap {
  border: 1px solid var(--border);
  background: var(--surface-solid);
  border-radius: 18px;
  justify-items: center;
  gap: 10px;
  padding: 16px;
  display: grid;
}

.remote-qr-wrap canvas {
  border: 1px solid var(--border);
  width: min(320px, 100%);
  height: auto;
  box-shadow: var(--shadow-sm);
  background: #fff;
  border-radius: 16px;
}

.remote-qr-wrap small {
  color: var(--text-muted);
  text-align: center;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.45;
}

.remote-link-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  display: flex;
}

@media (max-width: 720px) {
  .reminder-schedule-row {
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
  }

  .reminder-step-action {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .reminder-step-action .mini-btn {
    width: 100%;
  }

  .remote-link-actions {
    justify-content: stretch;
  }

  .remote-link-actions .mini-btn {
    flex: auto;
  }
}

@media (max-width: 1150px) {
  .tracker-workspace-summary {
    grid-template-columns: 1fr;
  }

  .tracker-workspace-actions {
    flex-direction: row;
  }

  .tracker-workspace-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .enhanced-tracker-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .tracker-workspace-cards {
    grid-template-columns: 1fr;
  }

  .tracker-workspace-actions {
    flex-direction: column;
  }
}

.general-settings-toolbar {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
  display: flex;
}

.general-settings-toolbar h3 {
  color: var(--text);
  margin: 4px 0 0;
  font-family: Outfit, sans-serif;
  font-size: 18px;
  font-weight: 900;
}

.general-settings-toolbar > div:last-child {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.general-settings-audit-pager {
  color: var(--text-muted);
  white-space: nowrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  display: flex;
}

.general-settings-audit-pager .mini-btn {
  min-width: 34px;
  min-height: 32px;
  padding: 5px 9px;
  font-size: 16px;
  line-height: 1;
}

.general-settings-audit-tabs-row {
  border-bottom: 1px solid var(--border);
  justify-content: center;
  padding: 0 18px 16px;
  display: flex;
}

.general-settings-audit-tabs-row .general-settings-yes-no {
  width: min(100%, 540px);
}

.general-settings-audit-filters {
  border-bottom: 1px solid var(--border);
  padding: 0 18px 14px;
}

.general-settings-groups {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
  margin-bottom: 14px;
  display: grid;
}

.general-settings-group-card {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border-radius: 14px;
  gap: 10px;
  padding: 14px;
  display: grid;
}

.general-settings-group-card strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
  display: block;
}

.general-settings-group-card span {
  color: var(--text-muted);
  margin-top: 4px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  display: block;
}

.general-settings-card-actions {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.general-settings-modal {
  min-width: 0;
}

.general-settings-modal:focus {
  outline: none;
}

.general-settings-control-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  align-items: start;
  gap: 12px;
  display: grid;
}

.general-settings-section {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 16px;
  gap: 10px;
  padding: 12px;
  display: grid;
}

.general-settings-modal .general-settings-section {
  border: 1px solid color-mix(in srgb, var(--border) 78%, #d6006f 22%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-solid) 92%, #fff 8%), var(--surface)),
    var(--surface);
  border-radius: 18px;
  padding: 16px;
  position: relative;
  box-shadow: 0 14px 34px #0f172a14, inset 0 1px #ffffffb8;
}

.general-settings-modal .general-settings-section:before {
  content: "";
  opacity: .88;
  background: linear-gradient(#d6006f, #ef4d98);
  border-radius: 18px 0 0 18px;
  width: 4px;
  position: absolute;
  inset: 0 auto 0 0;
}

.general-settings-modal .general-settings-section > * {
  position: relative;
}

.general-settings-modal .general-settings-section .enterprise-card-heading {
  border-bottom-color: color-mix(in srgb, var(--border) 70%, #d6006f 30%);
  margin: -4px -4px 4px 0;
  padding: 4px 0 12px 12px;
}

.general-settings-modal .workflow-message-card {
  border-color: color-mix(in srgb, var(--border) 62%, #0ea5e9 38%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-solid) 90%, #e0f2fe 10%), var(--surface-muted)),
    var(--surface);
}

.general-settings-modal .workflow-message-card:before {
  background: linear-gradient(#0ea5e9, #d6006f);
}

.general-settings-duration-control {
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 8px;
  display: grid;
}

.general-settings-number-control {
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  display: grid;
}

.general-settings-number-control .mini-btn {
  min-width: 38px;
}

.general-settings-yes-no {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 12px;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  display: grid;
}

.general-settings-yes-no button {
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 9px;
  padding: 8px 10px;
  font-weight: 900;
}

.general-settings-yes-no button.active {
  color: #e91e63;
  box-shadow: var(--shadow-sm);
  background: #fce4ec;
}

.general-settings-yes-no button:disabled {
  cursor: not-allowed;
  opacity: .72;
}

.general-settings-compact-toggle {
  min-width: 120px;
}

.general-settings-step-list {
  gap: 10px;
  display: grid;
}

.general-settings-step-row {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 14px;
  grid-template-columns: minmax(160px, 1fr) 130px minmax(180px, 1.4fr) 150px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  display: grid;
}

.general-settings-step-row strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 950;
  display: block;
}

.general-settings-step-row small {
  color: var(--text-muted);
  margin-top: 3px;
  font-size: 11px;
  display: block;
}

.general-settings-help {
  color: var(--text-muted);
  text-transform: none;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.45;
}

.workflow-easy-guide {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  display: grid;
}

.workflow-easy-guide > div {
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #fce4ec8c, var(--surface));
  border-radius: 14px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px 10px;
  padding: 12px;
  display: grid;
}

.workflow-easy-guide span {
  color: #d6006f;
  background: #fce4ec;
  border-radius: 10px;
  place-items: center;
  width: 28px;
  height: 28px;
  font-weight: 950;
  display: grid;
}

.workflow-easy-guide strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 950;
}

.workflow-easy-guide small {
  color: var(--text-muted);
  grid-column: 2;
  font-size: 11px;
  font-weight: 750;
}

.workflow-editor-tabs {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin: 14px 0;
  display: grid;
}

.workflow-editor-tabs button, .workflow-editor-tabs span {
  text-align: left;
  border: 1px solid var(--border);
  background: var(--surface);
  min-height: 72px;
  color: var(--text);
  border-radius: 14px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px 9px;
  padding: 11px 12px;
  display: grid;
  box-shadow: 0 10px 22px #0f172a0d;
}

.workflow-editor-tabs button {
  cursor: pointer;
}

.workflow-editor-tabs button.active {
  background: linear-gradient(135deg, #fce4ec, var(--surface));
  border-color: #f9a8d4;
  box-shadow: 0 14px 28px #d6006f1f;
}

.workflow-editor-tabs button span, .workflow-editor-tabs > span:first-letter {
  color: #d6006f;
  background: #fce4ec;
  border-radius: 9px;
  place-items: center;
  width: 26px;
  height: 26px;
  font-weight: 950;
  display: grid;
}

.workflow-editor-tabs button strong, .workflow-editor-tabs > span {
  font-size: 12px;
  font-weight: 950;
}

.workflow-editor-tabs button small {
  color: var(--text-muted);
  grid-column: 2;
  font-size: 10px;
  font-weight: 750;
}

.general-settings-inline-toggle {
  color: var(--text);
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 850;
  display: inline-flex;
}

.looker-field-catalog {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 86%, #fce4ec 14%), var(--surface));
}

.looker-field-catalog .enterprise-table {
  min-width: 860px;
}

.looker-field-chip-row {
  flex-wrap: wrap;
  gap: 7px;
  padding: 2px 0 4px;
  display: flex;
}

.looker-field-chip-row span {
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  max-width: 240px;
  min-height: 26px;
  color: var(--text);
  border-radius: 999px;
  align-items: center;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 850;
  display: inline-flex;
  overflow: hidden;
}

.looker-field-chip-row span.date-field {
  color: #1d4ed8;
  background: #dbeafe;
  border-color: #bfdbfe;
}

.source-health-card {
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-solid) 92%, #e0f2fe 8%), var(--surface-muted)) !important;
}

.source-health-card:before {
  background: linear-gradient(#0ea5e9, #2563eb) !important;
}

.workflow-message-card {
  background: linear-gradient(180deg, var(--surface), var(--surface-muted));
}

.workflow-readiness-strip, .workflow-message-chip-row {
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  display: flex;
}

.workflow-readiness-strip span, .workflow-message-chip-row span {
  border: 1px solid var(--border);
  background: var(--surface-muted);
  min-height: 23px;
  color: var(--text-muted);
  white-space: nowrap;
  border-radius: 999px;
  align-items: center;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 900;
  display: inline-flex;
}

.workflow-readiness-strip span.ready, .workflow-message-chip-row span.ready {
  color: #15803d;
  background: #dcfce7;
  border-color: #bbf7d0;
}

.workflow-readiness-strip span.missing, .workflow-message-chip-row span.missing {
  color: #b91c1c;
  background: #fee2e2;
  border-color: #fecaca;
}

.workflow-readiness-strip span.review, .workflow-message-chip-row span.review {
  color: #c2410c;
  background: #fff7ed;
  border-color: #fed7aa;
}

.workflow-config-table-wrap {
  max-width: 100%;
  overflow: auto hidden;
}

.workflow-config-table {
  table-layout: fixed;
  min-width: 1880px;
}

.workflow-config-table th, .workflow-config-table td {
  vertical-align: middle;
}

.workflow-config-table th:first-child, .workflow-config-table td:first-child {
  width: 220px;
}

.workflow-config-table th:nth-child(2), .workflow-config-table td:nth-child(2) {
  width: 170px;
}

.workflow-config-table th:nth-child(3), .workflow-config-table td:nth-child(3) {
  width: 150px;
}

.workflow-config-table th:nth-child(4), .workflow-config-table td:nth-child(4) {
  width: 230px;
}

.workflow-config-table th:nth-child(5), .workflow-config-table td:nth-child(5) {
  width: 90px;
}

.workflow-config-table th:nth-child(6), .workflow-config-table td:nth-child(6) {
  width: 125px;
}

.workflow-config-table th:nth-child(7), .workflow-config-table td:nth-child(7) {
  width: 110px;
}

.workflow-config-table th:nth-child(8), .workflow-config-table td:nth-child(8) {
  width: 160px;
}

.workflow-config-table th:nth-child(9), .workflow-config-table td:nth-child(9) {
  width: 620px;
}

.workflow-config-table td {
  overflow-wrap: normal;
  word-break: normal;
  line-height: 1.25;
}

.workflow-config-table td strong {
  overflow-wrap: normal;
  word-break: normal;
  white-space: normal;
  max-width: 100%;
  line-height: 1.2;
  display: block;
}

.workflow-config-table td small {
  overflow-wrap: break-word;
  word-break: normal;
  white-space: normal;
  max-width: 100%;
  line-height: 1.35;
  display: block;
}

.workflow-config-table td:first-child strong, .workflow-config-table td:nth-child(2) strong, .workflow-config-table td:nth-child(3) {
  overflow-wrap: break-word;
}

.workflow-config-table .workflow-readiness-strip {
  align-items: flex-start;
  max-width: 100%;
}

.workflow-config-table .row-actions {
  white-space: normal;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  display: flex;
}

.workflow-config-table .row-actions .mini-btn {
  text-align: center;
  flex: none;
  justify-content: center;
  min-width: 78px;
}

.general-settings-card-note {
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-muted) 70%, transparent);
  padding: 10px 18px 16px;
}

.workflow-config-table .offer-workflow-row td {
  background: var(--surface-solid);
}

.workflow-config-table .offer-workflow-row:hover td {
  background: #e91e6309;
}

.workflow-message-main {
  grid-template-columns: 1.2fr .55fr .7fr 1fr minmax(220px, 1.4fr) auto;
  align-items: start;
  gap: 10px;
  display: grid;
}

.template-binding-card {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 14px;
  grid-template-columns: minmax(170px, 1fr) repeat(3, minmax(150px, 1fr)) auto auto;
  align-items: start;
  gap: 10px;
  padding: 12px;
  display: grid;
}

.template-binding-card strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 950;
  display: block;
}

.template-binding-card small {
  color: var(--text-muted);
  margin-top: 3px;
  font-size: 11px;
  display: block;
}

.media-usage-list {
  color: var(--text);
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
}

.general-settings-advanced {
  border: 1px dashed var(--border);
  background: var(--bg);
  border-radius: 14px;
  gap: 10px;
  padding: 10px;
  display: grid;
}

.general-settings-advanced summary {
  cursor: pointer;
  color: var(--text);
  font-size: 12px;
  font-weight: 950;
}

.general-settings-advanced[open] summary {
  color: #d6006f;
  margin-bottom: 10px;
}

.general-settings-preview-card {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 14px;
  padding: 12px;
}

.general-settings-preview-card span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 850;
  display: block;
}

.general-settings-preview-card strong {
  color: var(--text);
  margin-top: 4px;
  font-size: 13px;
  font-weight: 950;
  display: block;
}

@media (max-width: 760px) {
  .general-settings-step-row, .workflow-message-main, .template-binding-card, .general-settings-duration-control, .general-settings-number-control {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .enhanced-tracker-tabs {
    grid-template-columns: 1fr;
  }
}

body.admin-reporting-active.dark-mode .tracker-workspace-summary {
  background: linear-gradient(135deg, #1e293bf5, #0f172adb);
}

body.admin-reporting-active.dark-mode .tracker-workspace-title {
  background: #e91e631f;
}

.feedback-bulk-modal {
  max-width: 760px;
}

.bulk-action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
  display: grid;
}

.bulk-action-warning {
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 900;
}

.bulk-action-footer {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
  display: flex;
}

.bulk-result-panel {
  border: 1px solid var(--border);
  background: var(--surface-muted);
  border-radius: 14px;
  max-height: 260px;
  margin-top: 14px;
  padding: 10px;
  overflow: auto;
}

.bulk-result-panel > strong {
  color: var(--text);
  margin-bottom: 8px;
  font-family: Outfit, sans-serif;
  font-size: 14px;
  font-weight: 950;
  display: block;
}

.bulk-result-panel div {
  border-top: 1px solid var(--border);
  grid-template-columns: minmax(120px, .8fr) minmax(0, 1.8fr);
  gap: 8px;
  padding: 7px 0;
  font-size: 11px;
  font-weight: 800;
  display: grid;
}

.bulk-result-panel span {
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.bulk-result-panel em {
  color: var(--text-muted);
  font-style: normal;
}

.bulk-result-ok em {
  color: #15803d;
}

.bulk-result-fail em {
  color: #b91c1c;
}

.enterprise-table th input[type="checkbox"], .enterprise-table td input[type="checkbox"] {
  accent-color: #e91e63;
  cursor: pointer;
  width: 16px;
  height: 16px;
}

@media (max-width: 720px) {
  .bulk-action-grid {
    grid-template-columns: 1fr;
  }

  .bulk-action-footer .mini-btn {
    flex: 100%;
  }
}

.manual-feedback-modal {
  width: min(940px, 96vw);
}

.manual-session-grid {
  margin: 14px 0;
}

.manual-completed-panel {
  background: linear-gradient(135deg, #dcfce7b8, var(--surface));
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  gap: 10px;
  padding: 14px;
  display: grid;
}

.manual-completed-panel > strong {
  color: var(--text);
  font-family: Outfit, sans-serif;
  font-size: 18px;
  font-weight: 950;
}

.manual-completed-panel > span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 750;
}

.manual-workflow {
  gap: 12px;
  display: grid;
}

.manual-step {
  border: 1px solid var(--border);
  background: var(--surface-muted);
  border-radius: 16px;
  gap: 12px;
  padding: 14px;
  display: grid;
}

.manual-step.complete {
  background: linear-gradient(135deg, #dcfce7b3, var(--surface-muted));
  border-color: #bbf7d0;
}

.manual-step-heading {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  display: flex;
}

.manual-step-heading strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
}

.manual-step-heading span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}

.manual-otp-row {
  grid-template-columns: auto minmax(160px, 1fr) auto;
  align-items: center;
  gap: 8px;
  display: grid;
}

.manual-otp-row input {
  border: 1px solid var(--border);
  background: var(--surface);
  height: 38px;
  color: var(--text);
  border-radius: 11px;
  outline: none;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 900;
}

.manual-otp-row input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px #e91e631a;
}

.manual-dev-otp {
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 900;
  display: block;
}

.manual-nps-control, .manual-rating-control, .manual-yesno-control {
  gap: 7px;
  display: grid;
}

.manual-nps-control > span, .manual-rating-control > span, .manual-yesno-control > span {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 10px;
  font-weight: 900;
}

.manual-nps-control > div, .manual-rating-control > div, .manual-yesno-control > div {
  flex-wrap: wrap;
  gap: 6px;
  display: flex;
}

.manual-nps-control button, .manual-rating-control button, .manual-yesno-control button {
  border: 1px solid var(--border);
  background: var(--surface);
  min-width: 38px;
  height: 36px;
  color: var(--text);
  cursor: pointer;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 950;
}

.manual-nps-control button.active, .manual-rating-control button.active, .manual-yesno-control button.active {
  color: #e91e63;
  box-shadow: var(--shadow-sm);
  background: #fce4ec;
  border-color: #f9a8d4;
}

.manual-question-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
  display: grid;
}

.tracker-action-modal {
  width: min(720px, 96vw);
}

.tracker-action-summary-grid {
  margin: 14px 0;
}

.offer-campaigns-tab {
  gap: 20px;
  max-width: 100%;
  display: grid;
  overflow-x: hidden;
}

.offer-campaign-card, .offer-step-card, .offer-patient-card, .offer-discount-card, .offer-code-card, .offer-advance-card, .offer-coupon-card {
  overflow-wrap: anywhere;
  min-width: 0;
  max-width: 100%;
}

.offer-campaign-action-header {
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #fce4ecbd, var(--surface));
  box-shadow: var(--shadow-sm);
  border-radius: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  align-items: stretch;
  gap: 18px;
  padding: 22px;
  display: grid;
}

.offer-campaign-eyebrow {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 950;
}

.offer-campaign-action-main {
  min-width: 0;
}

.offer-campaign-action-main h3 {
  color: var(--text);
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 30px;
  line-height: 1.12;
}

.offer-campaign-action-main p {
  color: var(--text-muted);
  max-width: 76ch;
  margin: 8px 0 0;
  font-weight: 700;
  line-height: 1.45;
}

.offer-campaign-action-controls {
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  align-items: end;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  display: grid;
}

.offer-campaign-picker {
  min-width: 0;
  max-width: 100%;
  color: var(--text-muted);
  text-transform: uppercase;
  grid-column: 1 / -1;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  display: grid;
}

.offer-campaign-picker span {
  text-align: center;
}

.offer-campaign-picker select {
  border: 1.5px solid var(--border);
  background: var(--bg);
  width: 100%;
  max-width: 100%;
  height: 48px;
  color: var(--text);
  text-transform: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 16px;
  border-radius: 12px;
  outline: none;
  padding: 0 40px 0 16px;
  font-family: Outfit, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  transition: all .2s;
}

.offer-campaign-picker select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.offer-campaign-action-controls .btn, .offer-campaign-action-controls .secondary, .offer-campaign-action-controls .mini-btn {
  white-space: normal;
  text-align: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  line-height: 1.2;
}

.offer-campaign-action-controls .status-pill {
  white-space: normal;
  text-align: center;
  justify-content: center;
  min-width: 0;
  line-height: 1.2;
}

.offer-campaign-refresh-campaign-button {
  justify-content: center;
  align-self: flex-start;
  width: auto;
  min-width: max-content;
}

body.admin-reporting-active .offer-campaign-refresh-campaign-button {
  border: 1px solid var(--primary) !important;
  color: var(--primary) !important;
  background: none !important;
}

body.admin-reporting-active .offer-campaign-refresh-campaign-button:hover {
  background: var(--primary-light) !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

.offer-campaign-progress-card {
  box-shadow: var(--shadow-sm);
  background: #ffffffc2;
  border: 1px solid #e91e6329;
  border-radius: 20px;
  align-content: center;
  gap: 9px;
  padding: 18px;
  display: grid;
}

.offer-campaign-progress-card span {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .03em;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: clamp(10px, 1.7vw, 13px);
  font-weight: 900;
  overflow: hidden;
}

.offer-campaign-progress-card strong {
  color: var(--text);
  font-size: 32px;
  line-height: 1;
}

.offer-campaign-progress {
  background: #f1f5f9;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.offer-campaign-progress i {
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary), #10b981);
  height: 100%;
  transition: width .3s;
  display: block;
}

.offer-campaign-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: start;
  gap: 20px;
  max-width: 100%;
  display: grid;
}

.offer-campaign-main-card, .offer-campaign-side-card {
  border: 1px solid var(--border);
  background: var(--surface-solid);
  box-shadow: var(--shadow-sm);
  border-radius: 24px;
  padding: 20px;
}

.offer-campaign-steps {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
  display: grid;
}

.offer-campaign-steps div {
  border: 1px solid var(--border);
  min-width: 0;
  min-height: 46px;
  color: var(--text-muted);
  background: var(--surface);
  border-radius: 16px;
  align-items: center;
  gap: 8px;
  padding: 10px;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  overflow: hidden;
}

.offer-campaign-steps div.active {
  color: var(--primary);
  background: #fce4ec;
  border-color: #f9a8d4;
}

.offer-campaign-steps span {
  width: 25px;
  height: 25px;
  color: inherit;
  background: #94a3b824;
  border-radius: 9px;
  place-items: center;
  display: grid;
}

.offer-campaign-steps span + * {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}

.offer-campaign-work-panel {
  gap: 14px;
  min-width: 0;
  display: grid;
}

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

.offer-campaign-field span {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 950;
}

.offer-campaign-field input {
  border: 1px solid var(--border);
  background: var(--surface);
  width: 100%;
  min-height: 54px;
  color: var(--text);
  text-transform: uppercase;
  border-radius: 16px;
  padding: 0 16px;
  font-size: 18px;
  font-weight: 900;
}

.offer-mrn-lookup-step {
  gap: 14px;
  padding: 2px 0 4px;
  display: grid;
}

.offer-campaign-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
  display: flex;
}

.offer-campaign-alert, .offer-campaign-panel-message {
  color: #9f1239;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 16px;
  gap: 5px;
  padding: 13px 14px;
  font-weight: 800;
  display: grid;
}

.offer-campaign-panel-message {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.offer-campaign-panel-message span {
  color: var(--text-muted);
  font-weight: 700;
}

.offer-advance-error {
  color: #9f1239;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 16px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 14px;
  display: grid;
}

.offer-advance-error > div {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.offer-advance-error strong {
  color: #9f1239;
  font-size: 14px;
  font-weight: 950;
}

.offer-advance-error span {
  color: #9f1239;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.offer-admin-override-button {
  color: #a31451;
  background: #fff8fb;
  border-color: #f1b6cd;
}

.offer-override-dialog-backdrop {
  z-index: 10050;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  background: #121a328f;
  place-items: center;
  padding: 24px;
  display: grid;
  position: fixed;
  inset: 0;
}

.offer-override-dialog {
  background: #fff;
  border: 1px solid #f3c5d7;
  border-radius: 24px;
  gap: 18px;
  width: min(560px, 100%);
  padding: 30px;
  display: grid;
  position: relative;
  box-shadow: 0 28px 80px #121a324d;
}

.offer-override-dialog h3 {
  color: #121a32;
  margin: 0;
  font-size: 23px;
  line-height: 1.15;
}

.offer-override-dialog p {
  color: #66728a;
  margin: -8px 0 0;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
}

.offer-override-dialog label {
  color: #495773;
  letter-spacing: .04em;
  text-transform: uppercase;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  display: grid;
}

.offer-override-dialog textarea {
  box-sizing: border-box;
  resize: vertical;
  color: #1d2740;
  width: 100%;
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
  border: 1px solid #dce3ee;
  border-radius: 14px;
  outline: none;
  padding: 13px 14px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}

.offer-override-dialog textarea:focus {
  border-color: #e0005a;
  box-shadow: 0 0 0 3px #e0005a1f;
}

.offer-override-kicker {
  color: #e0005a;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 950;
}

.offer-override-close {
  color: #66728a;
  cursor: pointer;
  background: #f6f8fb;
  border: 0;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 24px;
  line-height: 1;
  position: absolute;
  top: 16px;
  right: 18px;
}

.offer-override-confirm {
  background: #fff6fa;
  border-radius: 14px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  padding: 12px 14px;
  line-height: 1.35;
  color: #6d2850 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  gap: 10px !important;
}

.offer-override-confirm input {
  accent-color: #e0005a;
  width: 18px;
  height: 18px;
  margin: 0;
}

.offer-override-confirm span {
  font-size: 13px;
  font-weight: 800;
}

.offer-override-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  display: flex;
}

.offer-campaign-icon {
  width: 32px;
  height: 32px;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 12px;
  place-items: center;
  display: inline-grid;
}

.offer-campaign-icon svg {
  stroke: currentColor;
  stroke-width: 2.4px;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 20px;
  height: 20px;
}

.offer-campaign-patient-card, .offer-campaign-verify-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  display: grid;
}

.offer-campaign-patient-card > div, .offer-campaign-verify-grid > div {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 16px;
  gap: 4px;
  min-width: 0;
  padding: 13px;
  display: grid;
}

.offer-campaign-patient-card small, .offer-campaign-verify-grid span {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 11px;
  font-weight: 950;
}

.offer-campaign-patient-card strong, .offer-campaign-verify-grid strong {
  color: var(--text);
  overflow-wrap: anywhere;
  font-size: 18px;
}

.offer-campaign-patient-card span {
  color: var(--text-muted);
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 700;
}

.offer-campaign-code-card {
  background: linear-gradient(135deg, #fdf2f8, var(--surface));
  border: 1px dashed #f472b6;
  border-radius: 20px;
  gap: 6px;
  padding: 18px;
  display: grid;
}

.offer-campaign-code-card span {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 950;
}

.offer-campaign-code-card strong {
  color: var(--text);
  letter-spacing: .04em;
  overflow-wrap: anywhere;
  font-size: 32px;
}

.offer-campaign-code-card p {
  color: var(--text-muted);
  margin: 0;
  font-weight: 700;
}

.offer-code-value-row {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-width: 0;
  display: flex;
}

.offer-code-value-row strong {
  min-width: 0;
}

.offer-copy-code-button {
  min-height: 38px;
  color: var(--primary);
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  background: #ffffffd1;
  border: 1px solid #f9a8d4;
  border-radius: 11px;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  font: 800 12px Outfit, sans-serif;
  transition: background .18s, border-color .18s, transform .18s, color .18s;
  display: inline-flex;
}

.offer-copy-code-button:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.offer-copy-code-button:focus-visible {
  outline: 3px solid var(--primary-glow);
  outline-offset: 2px;
}

.offer-copy-code-button.is-copied {
  color: #047857;
  background: #ecfdf5;
  border-color: #6ee7b7;
}

.offer-copy-code-button svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 16px;
  height: 16px;
}

.offer-copy-code-button span {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: none;
}

.offer-campaign-coupon {
  text-align: center;
  background: linear-gradient(135deg, #ecfdf5, var(--surface));
  border: 1px solid #10b98140;
  border-radius: 24px;
  place-items: center;
  gap: 10px;
  padding: 24px;
  display: grid;
}

.offer-campaign-coupon span {
  color: #047857;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 12px;
  font-weight: 950;
}

.offer-campaign-coupon h3 {
  color: var(--text);
  letter-spacing: .04em;
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 36px;
}

.offer-campaign-coupon p {
  color: var(--text-muted);
  margin: 0;
  font-weight: 800;
}

.offer-campaign-coupon strong {
  color: #047857;
  font-size: 20px;
}

.offer-coupon-payment-summary {
  width: min(100%, 520px);
  color: var(--text-muted);
  background: #fff9;
  border: 1px solid #10b98138;
  border-radius: 14px;
  gap: 4px;
  padding: 12px;
  font-size: 12px;
  font-weight: 750;
  display: grid;
}

.offer-coupon-payment-summary span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.offer-campaign-complete-burst {
  position: relative;
  overflow: hidden;
}

.offer-campaign-sparkles {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.offer-campaign-sparkles i {
  background: var(--primary);
  border-radius: 999px;
  width: 9px;
  height: 9px;
  animation: 1.6s ease-out infinite offer-sparkle-burst;
  position: absolute;
  box-shadow: 0 0 18px #e91e6373;
}

.offer-campaign-sparkles i:first-child {
  animation-delay: 0s;
  top: 20%;
  left: 18%;
}

.offer-campaign-sparkles i:nth-child(2) {
  background: #10b981;
  animation-delay: .2s;
  top: 24%;
  right: 18%;
}

.offer-campaign-sparkles i:nth-child(3) {
  background: #f59e0b;
  animation-delay: .4s;
  bottom: 22%;
  left: 26%;
}

.offer-campaign-sparkles i:nth-child(4) {
  background: #38bdf8;
  animation-delay: .6s;
  bottom: 18%;
  right: 24%;
}

@keyframes offer-sparkle-burst {
  0% {
    opacity: 0;
    transform: scale(.2)translateY(10px);
  }

  25% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: scale(1.6)translateY(-22px);
  }
}

.offer-campaign-side-card {
  gap: 14px;
  min-width: 0;
  display: grid;
}

.offer-campaign-side-card h4 {
  color: var(--text);
  margin: 0;
  font-size: 16px;
}

.offer-campaign-side-card dl {
  gap: 9px;
  margin: 0;
  display: grid;
}

.offer-campaign-side-card dl div {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  display: flex;
}

.offer-campaign-side-card dt {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 900;
}

.offer-campaign-side-card dd {
  color: var(--text);
  text-align: right;
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 12px;
  font-weight: 950;
}

.offer-campaign-side-select {
  color: var(--text-muted);
  text-transform: uppercase;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  display: grid;
}

.offer-campaign-side-select select {
  border: 1.5px solid var(--border);
  background: var(--bg);
  width: 100%;
  height: 48px;
  color: var(--text);
  text-transform: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 16px;
  border-radius: 12px;
  outline: none;
  padding: 0 40px 0 16px;
  font-family: Outfit, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  transition: all .2s;
}

.offer-campaign-side-select select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

body.admin-reporting-active.dark-mode .offer-campaign-action-header, body.admin-reporting-active.dark-mode .offer-campaign-code-card, body.admin-reporting-active.dark-mode .offer-campaign-coupon {
  background: linear-gradient(135deg, #4c1d3a61, #0f172ae0);
}

@media (max-width: 1200px) {
  .offer-campaign-grid, .offer-campaign-action-header {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1500px) {
  .offer-campaign-action-header {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .offer-campaign-main-card, .offer-campaign-side-card, .offer-admin-card .enterprise-card-heading {
    padding: 16px;
  }

  .offer-admin-modal-overlay {
    padding: 12px;
  }

  .offer-admin-modal {
    width: 100%;
  }

  .offer-config-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .offer-campaign-steps, .offer-campaign-patient-card, .offer-campaign-verify-grid {
    grid-template-columns: 1fr;
  }

  .offer-campaign-action-main h3 {
    font-size: 24px;
  }

  .offer-campaign-coupon h3, .offer-campaign-code-card strong {
    font-size: 26px;
  }

  .offer-campaign-action-header, .offer-campaign-main-card, .offer-campaign-side-card {
    border-radius: 18px;
    padding: 14px;
  }

  .offer-campaign-actions .btn, .offer-campaign-actions .mini-btn, .offer-campaign-action-header .btn, .offer-campaign-action-header .secondary, .offer-campaign-action-header .mini-btn {
    justify-content: center;
    width: 100%;
  }

  .offer-campaign-field input {
    min-height: 52px;
    font-size: 16px;
  }

  .offer-campaign-steps {
    gap: 8px;
  }

  .offer-campaign-steps div {
    overflow-wrap: anywhere;
    min-width: 0;
    padding: 9px;
  }

  .offer-campaign-steps span + * {
    text-overflow: clip;
    white-space: normal;
    overflow: visible;
  }
}

.tracker-action-case-panel {
  grid-template-columns: minmax(0, 1fr) minmax(180px, .65fr);
  align-items: end;
  gap: 12px;
  margin-bottom: 12px;
  display: grid;
}

.tracker-action-case-panel > div {
  border: 1px solid var(--border);
  background: var(--surface-muted);
  border-radius: 14px;
  min-height: 66px;
  padding: 12px;
}

.tracker-action-case-panel span {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 10px;
  font-weight: 900;
  display: block;
}

.tracker-action-case-panel strong {
  color: var(--text);
  margin-top: 5px;
  font-family: Outfit, sans-serif;
  font-size: 17px;
  font-weight: 950;
  display: block;
}

.tracker-action-footer {
  margin-top: 14px;
}

.mini-btn.danger-action {
  color: #dc2626;
  background: #fee2e2;
  border-color: #fecaca;
}

.mini-btn.danger-action:hover {
  color: #b91c1c;
  background: #fecaca;
}

body.dark-mode .enterprise-field textarea, body.dark-mode .manual-otp-row input, body.dark-mode .manual-nps-control button, body.dark-mode .manual-rating-control button, body.dark-mode .manual-yesno-control button {
  background: var(--surface);
}

@media (max-width: 720px) {
  .manual-otp-row {
    grid-template-columns: 1fr;
  }

  .manual-otp-row .mini-btn {
    width: 100%;
  }

  .tracker-action-case-panel {
    grid-template-columns: 1fr;
  }
}

.row-actions .mini-btn:disabled, .row-menu button:disabled, .bulk-action-footer .mini-btn:disabled, .reminder-step-action .mini-btn:disabled {
  cursor: not-allowed;
  opacity: .55;
  box-shadow: none;
}

.row-menu button:focus-visible, .mini-btn:focus-visible, .mini-icon-btn:focus-visible, .drawer-close:focus-visible, .enterprise-table input[type="checkbox"]:focus-visible {
  outline-offset: 2px;
  outline: 3px solid #e91e633d;
}

.rich-row-menu button {
  text-align: left;
  line-height: 1.25;
}

.enterprise-table td, .tracker-drawer-row, .bulk-result-panel div, .reminder-step-body {
  overflow-wrap: anywhere;
}

.enterprise-table.workflow-config-table td {
  overflow-wrap: normal;
  word-break: normal;
}

.enterprise-table.workflow-config-table td small {
  overflow-wrap: break-word;
  word-break: normal;
}

.feedback-bulk-modal, .reminder-schedule-modal, .enterprise-drawer {
  max-height: 100dvh;
}

.ops-kpi-icon {
  letter-spacing: .02em;
  font-size: 11px;
  font-weight: 950;
}

.general-settings-json-preview {
  border: 1px solid var(--border);
  background: var(--surface-muted);
  max-height: 260px;
  color: var(--text);
  white-space: pre-wrap;
  border-radius: 12px;
  margin: 12px 0 0;
  padding: 12px;
  font-size: 12px;
  line-height: 1.5;
  overflow: auto;
}

.offer-admin-card {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border-radius: 18px;
  margin: 18px 0;
  overflow: hidden;
}

.offer-admin-card .enterprise-card-heading {
  padding: 18px;
}

.status-pill.draft {
  color: #475569;
  background: #f1f5f9;
}

.status-pill.active {
  color: #166534;
  background: #dcfce7;
}

.status-pill.paused {
  color: #92400e;
  background: #fef3c7;
}

.status-pill.completed {
  color: #1d4ed8;
  background: #dbeafe;
}

.status-pill.archived {
  color: #991b1b;
  background: #fee2e2;
}

.offer-workflow-subsection {
  border-top: 1px solid var(--border);
  background: linear-gradient(#f8fafcb8, #fffffff5);
}

.offer-workflow-subsection-heading {
  background: none;
}

.offer-workflow-subsection .offer-help-panel {
  margin: 14px 16px;
}

.offer-workflow-subsection .table-scroll {
  border-top: 1px solid var(--border);
}

.offer-workflow-row {
  background: var(--surface-solid);
}

.offer-workflow-row td {
  border-top: 1px solid var(--border);
}

.offer-admin-modal-overlay {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 99999;
  background: #0f172a9e;
  justify-content: center;
  align-items: center;
  padding: 16px;
  display: flex;
  position: fixed;
  inset: 0;
  overflow-y: auto;
}

.offer-admin-modal {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  width: min(980px, 100%);
  max-height: calc(100vh - 32px);
  box-shadow: var(--shadow-lg);
  border-radius: 20px;
  gap: 18px;
  display: grid;
  position: relative;
  overflow-y: auto;
  padding: clamp(18px, 3vw, 28px) !important;
}

.offer-admin-modal-header {
  padding-right: 34px;
}

.offer-admin-modal-header h3 {
  color: var(--text);
  margin: 0;
  font-family: Outfit, sans-serif;
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 900;
}

.offer-admin-modal-header p:last-child {
  color: var(--text-muted);
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.6;
}

.offer-admin-modal .admin-modal-close {
  z-index: 2;
}

.offer-admin-modal .btn, .offer-admin-modal .mini-btn, .offer-workflow-tabs button {
  transition: transform .18s, box-shadow .18s, background-color .18s, border-color .18s, color .18s, opacity .18s;
}

.offer-admin-modal .btn:not(:disabled):hover, .offer-admin-modal .mini-btn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px #e91e6329;
}

.offer-admin-modal .btn:not(:disabled):active, .offer-admin-modal .mini-btn:not(:disabled):active {
  transform: translateY(0);
  box-shadow: 0 7px 16px #0f172a1a;
}

.offer-admin-modal .btn:disabled, .offer-admin-modal .mini-btn:disabled {
  cursor: not-allowed;
  opacity: .62;
  box-shadow: none;
}

.offer-admin-modal-body {
  padding: 0;
}

.offer-workflow-tabs {
  margin: 0;
  padding: 0;
}

.offer-workflow-tabs button:not(.active):hover {
  background: #fce4ec75;
  border-color: #f9a8d4;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px #e91e631a;
}

.offer-admin-modal-actions {
  box-shadow: none;
  background: none;
  border-top: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 0;
  display: flex;
}

.offer-admin-modal-actions .btn {
  min-width: 118px;
}

.offer-workflow-editor-modal {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 14px;
  width: min(1220px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: hidden;
}

.offer-workflow-editor-modal .offer-admin-modal-header {
  min-width: 0;
}

.offer-workflow-editor-modal .offer-workflow-tabs {
  grid-template-columns: repeat(20, minmax(0, 1fr));
  gap: 8px;
  display: grid;
}

.offer-workflow-editor-modal .offer-workflow-tabs button {
  grid-column: span 4;
  align-content: center;
  min-width: 0;
  min-height: 68px;
  padding: 10px 11px;
}

.offer-workflow-editor-modal .offer-workflow-tabs button:nth-child(n+6) {
  grid-column: span 5;
}

.offer-workflow-editor-modal .offer-workflow-tabs button strong, .offer-workflow-editor-modal .offer-workflow-tabs button small {
  min-width: 0;
  line-height: 1.2;
}

.offer-workflow-editor-modal .offer-admin-modal-body {
  scrollbar-gutter: stable;
  min-height: 0;
  padding: 2px 6px 2px 2px;
  overflow: auto;
}

.offer-workflow-editor-modal .offer-admin-modal-actions {
  border-top: 1px solid var(--border);
  align-items: center;
  min-height: 48px;
  padding-top: 12px;
}

.offer-workflow-editor-modal .offer-admin-modal-actions .btn {
  min-height: 44px;
}

.offer-config-sections {
  gap: 16px;
  display: grid;
}

.offer-config-section {
  border: 1px solid #e91e6338;
  border-left: 6px solid var(--primary);
  background: var(--surface);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 14px 38px #0f172a0f;
}

.offer-config-section h4 {
  color: var(--text);
  margin: 0;
  font-size: 18px;
  font-weight: 950;
}

.offer-config-section > p {
  color: var(--text-muted);
  margin: 3px 0 14px;
  font-size: 13px;
  font-weight: 750;
}

.offer-config-grid {
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  align-items: start;
  gap: 14px 16px;
  display: grid;
}

.offer-config-field {
  align-content: start;
  align-self: start;
  gap: 7px;
  min-width: 0;
  display: grid;
}

.offer-config-field-wide {
  grid-column: 1 / -1;
}

.offer-config-field span, .offer-config-toggle span {
  color: var(--text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 950;
}

.offer-config-field > span {
  align-items: flex-end;
  min-height: 28px;
  line-height: 1.25;
  display: flex;
}

.offer-config-field input, .offer-config-field select {
  box-sizing: border-box;
  border: 1px solid var(--border);
  background: var(--bg);
  width: 100%;
  height: 48px;
  min-height: 48px;
  color: var(--text);
  border-radius: 13px;
  min-width: 0;
  padding: 10px 12px;
  font-weight: 800;
}

.offer-date-picker {
  width: 100%;
  min-width: 0;
  position: relative;
}

.offer-config-field .offer-date-picker-display {
  padding-right: 52px;
}

.offer-config-field .offer-date-picker-button {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  display: inline-flex;
  position: absolute;
  top: 0;
  right: 0;
}

.offer-config-field .offer-date-picker-button:hover:not(:disabled), .offer-config-field .offer-date-picker-button:focus-visible {
  color: var(--primary);
  background: #e5006d14;
  outline: none;
}

.offer-config-field .offer-date-picker-button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.offer-config-field .offer-date-picker-button svg {
  width: 21px;
  height: 21px;
}

.offer-config-field input.offer-date-picker-native {
  opacity: 0;
  pointer-events: none;
  border: 0;
  width: 48px;
  height: 48px;
  min-height: 0;
  padding: 0;
  position: absolute;
  bottom: 0;
  right: 0;
}

.offer-center-checklist-field {
  grid-column: 1 / -1;
  gap: 8px;
  min-width: 0;
  display: grid;
}

.offer-center-checklist-field > span {
  color: var(--text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 950;
}

.offer-center-checklist-help {
  color: var(--text-muted);
  margin: 0;
  font-size: 12px;
  font-weight: 750;
}

.offer-center-checklist-box {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 16px;
  overflow: hidden;
}

.offer-center-checklist-select-all {
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 14px;
  display: flex;
}

.offer-center-checklist-select-all span {
  color: var(--text);
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
  font-weight: 950;
}

.offer-center-checklist-select-all small {
  color: var(--text-muted);
  white-space: nowrap;
  margin-left: auto;
  font-size: 12px;
  font-weight: 800;
}

.offer-center-checklist-list {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4px;
  max-height: 250px;
  padding: 8px;
  display: grid;
  overflow: auto;
}

.offer-center-checklist-item {
  min-width: 0;
  color: var(--text);
  border-radius: 12px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-weight: 850;
  display: flex;
}

.offer-center-checklist-item:hover {
  background: var(--primary-light);
}

.offer-center-checklist-item span {
  min-width: 0;
  color: var(--text);
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 850;
  overflow: hidden;
}

.offer-center-checklist-empty {
  color: var(--text-muted);
  margin: 0;
  padding: 14px;
  font-size: 13px;
  font-weight: 800;
}

.offer-config-toggle {
  box-sizing: border-box;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 13px;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  display: flex;
}

.offer-config-source-box {
  border: 1px dashed var(--border);
  background: var(--surface-muted);
  border-radius: 14px;
  align-content: start;
  align-self: start;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  display: grid;
}

.offer-config-source-box strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
}

.offer-config-source-box .mini-btn {
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  display: inline-flex;
}

.offer-config-source-box > .offer-config-grid > .mini-btn {
  align-self: end;
  height: 48px;
  min-height: 48px;
}

.offer-booking-window-card {
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
  background: var(--bg);
  border-radius: 16px;
  grid-column: 1 / -1;
  overflow: hidden;
}

.offer-booking-window-card > summary {
  cursor: pointer;
  background: color-mix(in srgb, var(--primary-light) 42%, var(--bg));
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 12px 16px;
  display: flex;
}

.offer-booking-window-card > summary strong {
  font-size: 14px;
}

.offer-booking-window-card > summary span {
  min-width: 0;
  color: var(--text-muted);
  text-align: right;
  font-size: 12px;
  font-weight: 800;
}

.offer-booking-window-grid {
  padding: 16px;
}

.offer-booking-window-grid .offer-center-checklist-field, .offer-booking-window-grid .offer-effective-rule, .offer-booking-window-grid .offer-remove-window {
  grid-column: 1 / -1;
}

.offer-effective-rule {
  min-height: 72px;
}

.offer-window-validation {
  color: #991b1b;
  background: #fff7f7;
  border: 1px solid #fecaca;
  border-radius: 12px;
  grid-column: 1 / -1;
  padding: 12px 14px;
}

.offer-window-validation strong {
  margin-bottom: 6px;
  display: block;
}

.offer-window-validation ul {
  margin: 0;
  padding-left: 20px;
}

.offer-window-validation li + li {
  margin-top: 4px;
}

.offer-remove-window {
  color: #b91c1c !important;
  border-color: #ef4444 !important;
}

.offer-help-panel {
  border: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--text-muted);
  border-radius: 12px;
  padding: 12px;
  font-size: 12px;
  font-weight: 800;
}

.offer-config-action-grid {
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  align-items: stretch;
  gap: 10px;
  margin: 4px 0 8px;
  display: grid;
}

.offer-config-action-grid .btn {
  white-space: normal;
  text-align: center;
  justify-content: center;
  width: 100% !important;
  min-height: 48px !important;
}

.business-finance-actions, .business-finance-row-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.business-finance-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
  display: grid;
}

.business-finance-kpis > div {
  border: 1px solid var(--border);
  background: var(--card-bg, var(--surface));
  box-shadow: var(--shadow-sm);
  border-radius: 14px;
  padding: 16px 18px;
}

.business-finance-kpis span, .business-finance-detail-grid span, .business-finance-queue-total span {
  color: var(--text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .76rem;
  font-weight: 700;
  display: block;
}

.business-finance-kpis strong {
  margin-top: 5px;
  font-size: 1.45rem;
  display: block;
}

.business-finance-filters {
  border-bottom: 1px solid var(--border);
  grid-template-columns: minmax(200px, 1.5fr) repeat(3, minmax(150px, 1fr)) auto;
  align-items: end;
  gap: 12px;
  padding: 18px;
  display: grid;
}

.business-finance-filters .business-source-field {
  margin: 0;
}

.business-finance-status {
  border: 1px solid var(--border);
  background: var(--surface-muted, #64748b1a);
  min-height: 25px;
  color: var(--text-muted);
  letter-spacing: .03em;
  white-space: nowrap;
  border-radius: 999px;
  align-items: center;
  padding: 3px 9px;
  font-size: .72rem;
  font-weight: 800;
  display: inline-flex;
}

.business-finance-status.active, .business-finance-status.approved {
  color: #15803d;
  background: #16a34a1a;
  border-color: #16a34a59;
}

.business-finance-status.pending, .business-finance-status.pending_approval, .business-finance-status.draft, .business-finance-status.automatic {
  color: #b45309;
  background: #f59e0b1a;
  border-color: #d9770659;
}

.business-finance-status.rejected, .business-finance-status.inactive {
  color: #b91c1c;
  background: #ef444414;
  border-color: #dc262647;
}

.business-finance-status.manual {
  color: #4f46e5;
  background: #6366f11a;
  border-color: #4f46e547;
}

.business-finance-subline {
  max-width: 360px;
  color: var(--text-muted);
  margin-top: 4px;
  font-size: .76rem;
  line-height: 1.35;
  display: block;
}

.business-finance-modal {
  max-height: min(90vh, 900px);
  overflow: hidden;
}

.business-finance-modal.wide {
  width: min(980px, 100vw - 32px);
  max-width: 980px;
}

.business-finance-modal-body {
  padding: 20px;
  overflow: auto;
}

.business-finance-centers {
  border: 1px solid var(--border);
  border-radius: 12px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  padding: 16px;
  display: grid;
}

.business-finance-centers legend {
  padding: 0 6px;
  font-weight: 800;
}

.business-finance-centers label, .business-finance-confirm {
  color: var(--text);
  align-items: flex-start;
  gap: 9px;
  font-size: .86rem;
  line-height: 1.4;
  display: flex;
}

.business-finance-centers input, .business-finance-confirm input {
  width: auto;
  margin-top: 2px;
}

.business-finance-confirm.full {
  background: #f59e0b14;
  border: 1px solid #d977064d;
  border-radius: 12px;
  grid-column: 1 / -1;
  padding: 14px;
}

.business-finance-policy-banner {
  color: var(--text);
  background: #ef444412;
  border: 1px solid #dc262640;
  border-radius: 12px;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
  padding: 13px 16px;
  display: flex;
}

.business-finance-policy-banner.warning {
  background: #f59e0b14;
  border-color: #d977064d;
}

.business-finance-policy-banner span {
  color: var(--text-muted);
  text-align: right;
}

.business-launch-policy-card {
  margin-bottom: 20px;
  overflow: hidden;
}

.business-launch-policy-body {
  gap: 16px;
  padding: 20px;
  display: grid;
}

.business-launch-policy-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  display: grid;
}

.business-money-policy-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.business-launch-policy-decision {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  border-radius: 12px;
  gap: 7px;
  min-height: 132px;
  padding: 16px;
  display: grid;
}

.business-launch-policy-decision > span {
  color: var(--text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 700;
}

.business-launch-policy-decision > strong {
  color: var(--text);
  font-size: 1rem;
}

.business-launch-policy-decision > small, .business-launch-policy-example > span {
  color: var(--text-muted);
  line-height: 1.55;
}

.business-launch-policy-example {
  background: #0e749012;
  border: 1px solid #0e749040;
  border-radius: 12px;
  gap: 5px;
  padding: 14px 16px;
  display: grid;
}

.business-launch-policy-meta {
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: .85rem;
  display: flex;
}

.governance-ownership-kpis, .monthly-target-kpis {
  gap: 14px;
}

.business-finance-kpis.governance-ownership-kpis > div, .business-finance-kpis.monthly-target-kpis > div {
  background: var(--surface);
  min-height: 96px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  border-radius: 20px;
  align-content: center;
  place-items: center;
  padding: 16px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  display: grid;
  position: relative;
  overflow: hidden;
}

.business-finance-kpis.governance-ownership-kpis > div:before, .business-finance-kpis.monthly-target-kpis > div:before {
  content: "";
  background: var(--primary);
  height: 4px;
  position: absolute;
  inset: 0 0 auto;
}

.business-finance-kpis.governance-ownership-kpis > div:nth-child(2):before, .business-finance-kpis.monthly-target-kpis > div:nth-child(2):before {
  background: #f59e0b;
}

.business-finance-kpis.governance-ownership-kpis > div:nth-child(3):before, .business-finance-kpis.monthly-target-kpis > div:nth-child(3):before {
  background: #2563eb;
}

.business-finance-kpis.governance-ownership-kpis > div:nth-child(4):before {
  background: #16a34a;
}

.business-finance-kpis.governance-ownership-kpis > div:hover, .business-finance-kpis.monthly-target-kpis > div:hover {
  border-color: #e91e633d;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px #0f172a17;
}

.business-finance-kpis.governance-ownership-kpis span, .business-finance-kpis.monthly-target-kpis span, .business-finance-kpis.governance-ownership-kpis strong, .business-finance-kpis.monthly-target-kpis strong {
  text-align: center;
  width: 100%;
}

.business-finance-kpis.governance-ownership-kpis strong, .business-finance-kpis.monthly-target-kpis strong {
  margin-top: 7px;
  font-family: Outfit, sans-serif;
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
}

.governance-register-card, .target-governance-table-card, .monthly-target-workspace-card {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
  border-radius: 20px !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.governance-register-card .enterprise-card-heading, .target-governance-table-card .enterprise-card-heading {
  background: linear-gradient(110deg, #e91e6313, #2563eb09 58%, #0000);
  padding: 17px 20px;
}

.governance-register-table {
  min-width: 1280px;
}

.governance-register-table tbody tr td:first-child {
  border-left: 3px solid #0000;
}

.governance-register-table tbody tr:hover td:first-child {
  border-left-color: var(--primary);
}

.governance-register-table td:nth-child(5) {
  text-align: center;
  font-weight: 900;
}

.governance-register-table td:nth-child(6), .governance-register-table td:nth-child(7) {
  min-width: 150px;
}

.governance-register-actions, .target-governance-actions, .monthly-target-actions {
  align-content: center;
  min-width: 178px;
}

.governance-action, .target-action, .target-topbar-action, .target-filter-refresh {
  box-shadow: var(--shadow-sm);
  transition: transform .16s, box-shadow .16s, border-color .16s, background .16s;
  border: 1px solid var(--border) !important;
  background: var(--surface) !important;
  color: var(--text) !important;
  border-radius: 10px !important;
  font-weight: 900 !important;
}

.governance-action:hover:not(:disabled), .target-action:hover:not(:disabled), .target-topbar-action:hover:not(:disabled), .target-filter-refresh:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 9px 20px #0f172a1f;
}

.governance-action.is-history, .target-action.is-history {
  color: #4f46e5 !important;
  background: #eef2ff !important;
  border-color: #c7d2fe !important;
}

.governance-action.is-edit, .target-action.is-edit {
  color: #1d4ed8 !important;
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
}

.governance-action.is-submit, .target-action.is-request {
  color: #be185d !important;
  background: #fdf2f8 !important;
  border-color: #fbcfe8 !important;
}

.governance-action.is-approve, .governance-action.is-activate, .target-action.is-approve, .target-action.is-activate {
  color: #15803d !important;
  background: #f0fdf4 !important;
  border-color: #bbf7d0 !important;
}

.governance-action.is-reject, .target-action.is-reject {
  color: #b91c1c !important;
  background: #fef2f2 !important;
  border-color: #fecaca !important;
}

.governance-action.is-deactivate, .target-action.is-deactivate {
  color: #b45309 !important;
  background: #fffbeb !important;
  border-color: #fde68a !important;
}

.governance-action:disabled, .target-action:disabled, .target-topbar-action:disabled {
  opacity: .46;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

#tab-business-report-governance .business-finance-policy-banner, #tab-business-monthly-targets .business-finance-policy-banner {
  box-shadow: var(--shadow-sm);
  border-radius: 18px;
}

.business-finance-policy-banner.success {
  background: #16a34a12;
  border-color: #16a34a47;
}

#tab-business-report-governance .business-launch-policy-card {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border-radius: 20px;
  overflow: hidden;
  padding: 0 !important;
}

#tab-business-report-governance .business-launch-policy-card .enterprise-card-heading {
  background: linear-gradient(110deg, #e91e6313, #f59e0b08 62%, #0000);
  align-items: flex-start;
  padding: 17px 20px;
}

#tab-business-report-governance .business-launch-policy-card .enterprise-card-heading > div:first-child {
  flex: 520px;
  min-width: 0;
}

#tab-business-report-governance .business-launch-policy-card .enterprise-card-heading > .business-finance-row-actions {
  flex: 0 auto;
  justify-content: flex-end;
}

#tab-business-report-governance .business-launch-policy-body {
  gap: 13px;
  padding: 16px;
}

#tab-business-report-governance .business-launch-policy-grid {
  gap: 11px;
}

#tab-business-report-governance .business-launch-policy-decision {
  background: var(--surface-muted);
  border-radius: 16px;
  min-height: 0;
  padding: 14px;
  transition: transform .16s, box-shadow .16s, border-color .16s;
  position: relative;
  box-shadow: inset 0 3px #e91e636b;
}

#tab-business-report-governance .business-launch-policy-decision:hover {
  box-shadow: inset 0 3px 0 var(--primary), 0 10px 22px #0f172a12;
  border-color: #e91e633d;
  transform: translateY(-1px);
}

#tab-business-report-governance .business-launch-policy-decision > span {
  font-size: .69rem;
}

#tab-business-report-governance .business-launch-policy-decision > strong {
  font-size: .94rem;
  line-height: 1.3;
}

#tab-business-report-governance .business-launch-policy-decision > small {
  font-size: .78rem;
  line-height: 1.45;
}

#tab-business-report-governance .business-launch-policy-example {
  background: linear-gradient(100deg, #2563eb12, #2563eb06);
  border-color: #2563eb33 #2563eb33 #2563eb33 #2563eb;
  border-left-style: solid;
  border-left-width: 4px;
  border-radius: 14px;
  padding: 12px 14px;
}

#tab-business-report-governance .business-launch-policy-example strong {
  font-size: .82rem;
}

#tab-business-report-governance .business-launch-policy-example span {
  font-size: .79rem;
  line-height: 1.45;
}

#tab-business-report-governance .business-launch-policy-meta {
  border-top: 1px dashed var(--border);
  gap: 8px 20px;
  padding: 12px 2px 0;
  font-size: .77rem;
}

.target-governance-table {
  min-width: 1080px;
}

.target-policy-register-table {
  min-width: 1120px;
}

.target-governance-table th:last-child, .target-governance-table td:last-child {
  min-width: 210px;
}

.target-governance-table tbody tr td:first-child {
  border-left: 3px solid #0000;
}

.target-governance-table tbody tr:hover td:first-child {
  border-left-color: var(--primary);
}

.target-topbar-actions {
  flex-wrap: wrap;
}

.target-topbar-action {
  min-height: 40px !important;
  padding-inline: 14px !important;
}

.target-topbar-action.is-template {
  color: #7c3aed !important;
  background: #f5f3ff !important;
  border-color: #ddd6fe !important;
}

.target-topbar-action.is-upload {
  color: #047857 !important;
  background: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
}

.target-topbar-action.is-export {
  color: #1d4ed8 !important;
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
}

.target-topbar-action.is-create {
  box-shadow: 0 8px 20px #e91e6333;
  color: #fff !important;
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}

.monthly-target-import-panel {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 18px;
  display: grid;
}

.monthly-target-import-instructions, .monthly-target-file-picker {
  border: 1px solid var(--border);
  background: var(--surface);
  min-height: 190px;
  box-shadow: var(--shadow-sm);
  border-radius: 18px;
  padding: 22px;
}

.monthly-target-import-instructions {
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  display: flex;
}

.monthly-target-import-instructions strong {
  color: var(--text);
  font-family: Outfit, sans-serif;
  font-size: 1rem;
  font-weight: 900;
}

.monthly-target-import-instructions span, .monthly-target-import-instructions small {
  color: var(--text-muted);
  line-height: 1.55;
}

.monthly-target-file-picker {
  cursor: pointer;
  text-align: center;
  border-style: dashed;
  border-width: 2px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: transform .16s, border-color .16s, background .16s, box-shadow .16s;
  display: flex;
}

.monthly-target-file-picker:hover, .monthly-target-file-picker.has-file {
  border-color: var(--primary);
  background: #e91e6309;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px #0f172a14;
}

.monthly-target-file-picker input {
  opacity: 0;
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}

.monthly-target-file-picker span {
  color: var(--primary);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .75rem;
  font-weight: 900;
}

.monthly-target-file-picker strong {
  overflow-wrap: anywhere;
  max-width: 100%;
  color: var(--text);
  font-size: .94rem;
}

.monthly-target-file-picker small {
  color: var(--text-muted);
}

.monthly-target-kpis {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.monthly-target-filter-grid {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(110deg, #e91e630b, #2563eb06 60%, #0000);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.monthly-target-filter-grid .business-source-field {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.monthly-target-filter-grid .business-source-field > span {
  color: var(--text-muted);
  letter-spacing: .055em;
  text-transform: uppercase;
  font-size: .7rem;
  font-weight: 900;
}

.monthly-target-filter-grid input, .monthly-target-filter-grid select {
  background: var(--surface);
  border-radius: 12px;
  width: 100%;
  min-height: 42px;
  font-size: .8rem;
  font-weight: 750;
}

.target-filter-refresh {
  align-self: end;
  min-height: 42px;
  color: #be185d !important;
  background: #fdf2f8 !important;
  border-color: #fbcfe8 !important;
}

.monthly-target-table {
  min-width: 1380px;
}

.monthly-target-table th {
  text-align: left;
}

.monthly-target-table th:nth-child(4), .monthly-target-table td:nth-child(4) {
  text-align: center;
}

.monthly-target-table tbody tr td:first-child {
  border-left: 3px solid #0000;
}

.monthly-target-table tbody tr:hover td:first-child {
  border-left-color: var(--primary);
}

body.dark-mode .governance-action.is-history, body.dark-mode .target-action.is-history, body.dark-mode .governance-action.is-edit, body.dark-mode .target-action.is-edit, body.dark-mode .governance-action.is-submit, body.dark-mode .target-action.is-request, body.dark-mode .governance-action.is-approve, body.dark-mode .governance-action.is-activate, body.dark-mode .target-action.is-approve, body.dark-mode .target-action.is-activate, body.dark-mode .governance-action.is-reject, body.dark-mode .target-action.is-reject, body.dark-mode .governance-action.is-deactivate, body.dark-mode .target-action.is-deactivate, body.dark-mode .target-topbar-action.is-export, body.dark-mode .target-filter-refresh {
  background: var(--surface-muted) !important;
}

@media (max-width: 1180px) {
  #tab-business-report-governance .business-launch-policy-grid, #tab-business-report-governance .business-money-policy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .monthly-target-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .governance-ownership-kpis, .monthly-target-kpis, #tab-business-report-governance .business-launch-policy-grid, #tab-business-report-governance .business-money-policy-grid, .monthly-target-filter-grid {
    grid-template-columns: 1fr;
  }

  #tab-business-report-governance .business-launch-policy-card .enterprise-card-heading {
    flex-direction: column;
  }

  #tab-business-report-governance .business-launch-policy-card .enterprise-card-heading > .business-finance-row-actions {
    justify-content: flex-start;
  }

  .target-topbar-actions {
    flex-wrap: wrap;
  }

  .monthly-target-import-panel {
    grid-template-columns: 1fr;
  }
}

.revenue-operations-topbar-actions {
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  display: flex;
}

.revenue-operations-topbar-action {
  border-radius: 14px;
  min-height: 44px;
  padding-inline: 18px;
  font-weight: 900;
  transition: transform .18s, box-shadow .18s, border-color .18s, background .18s;
  box-shadow: 0 8px 20px #0f172a14;
}

.revenue-operations-topbar-action.is-export {
  color: #be185d;
  background: #fff7fb;
  border: 1px solid #fbcfe8;
}

.revenue-operations-topbar-action.is-create {
  color: #fff;
  border: 1px solid var(--primary);
  background: linear-gradient(135deg, var(--primary), #db2777);
  box-shadow: 0 10px 24px #e91e6338;
}

.revenue-operations-topbar-action:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px #0f172a1f;
}

.revenue-validation-card, .manual-approval-queue-card, .manual-revenue-history-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 20px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px #0f172a11;
  padding: 0 !important;
}

.revenue-validation-filter, .manual-revenue-filter-grid {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #fdf2f8cc, #fffffff5);
  align-items: end;
  gap: 14px;
  padding: 18px 20px;
  display: grid;
}

.revenue-validation-filter {
  grid-template-columns: minmax(260px, 1fr) minmax(120px, 150px);
}

.manual-revenue-filter-grid {
  grid-template-columns: minmax(200px, 1.35fr) repeat(3, minmax(150px, 1fr)) minmax(120px, 150px);
}

.revenue-validation-filter .business-source-field, .manual-revenue-filter-grid .business-source-field {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.revenue-validation-filter .business-source-field > span, .manual-revenue-filter-grid .business-source-field > span {
  color: var(--text-muted);
  letter-spacing: .055em;
  text-transform: uppercase;
  font-size: .7rem;
  font-weight: 900;
}

.revenue-validation-filter input, .manual-revenue-filter-grid input, .manual-revenue-filter-grid select, .revenue-validation-table td input {
  border: 1px solid var(--border);
  background: var(--surface);
  width: 100%;
  min-height: 42px;
  color: var(--text);
  font: inherit;
  border-radius: 12px;
  font-size: .8rem;
  font-weight: 750;
  transition: border-color .16s, box-shadow .16s;
}

.revenue-validation-filter input:focus, .manual-revenue-filter-grid input:focus, .manual-revenue-filter-grid select:focus, .revenue-validation-table td input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 4px #e91e631a;
}

.revenue-operation-filter-refresh {
  border-radius: 12px;
  min-height: 42px;
  font-weight: 900;
  transition: transform .16s, box-shadow .16s, background .16s;
  color: #be185d !important;
  background: #fff7fb !important;
  border: 1px solid #fbcfe8 !important;
}

.revenue-operation-filter-refresh:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px #be185d1f;
  background: #fce7f3 !important;
}

.revenue-validation-card .enterprise-card-heading, .manual-approval-queue-card .enterprise-card-heading {
  background: linear-gradient(135deg, #fff, #fff8fb);
  padding: 18px 20px;
}

.revenue-validation-card .enterprise-card-heading > div, .manual-approval-queue-card .enterprise-card-heading > div {
  min-width: 0;
}

.revenue-validation-card .enterprise-card-heading strong, .manual-approval-queue-card .enterprise-card-heading strong {
  font-size: 1.05rem;
}

.revenue-validation-card .business-source-count {
  color: #be185d;
  white-space: nowrap;
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  min-width: 72px;
  margin: 0;
  padding: 7px 11px;
  font-weight: 900;
  display: inline-flex;
}

.revenue-validation-table {
  min-width: 1180px;
}

.manual-revenue-table {
  min-width: 1160px;
}

.revenue-validation-table th, .manual-revenue-table th {
  background: #f8fafc;
}

.revenue-validation-table tbody tr td:first-child, .manual-revenue-table tbody tr td:first-child {
  border-left: 3px solid #0000;
}

.revenue-validation-table tbody tr:hover td:first-child, .manual-revenue-table tbody tr:hover td:first-child {
  border-left-color: var(--primary);
}

.revenue-validation-table .business-source-secondary {
  margin-top: 4px;
  display: block;
}

.revenue-validation-table td:last-child {
  min-width: 300px;
}

.revenue-validation-table .business-source-actions {
  margin-top: 8px;
}

.manual-approval-queue-card .business-finance-queue-total {
  text-align: right;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
  display: flex;
}

.manual-approval-queue-card .business-finance-queue-total > span {
  width: 100%;
}

.manual-approval-queue-card .business-finance-queue-total strong {
  color: #1d4ed8;
  white-space: nowrap;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 7px 10px;
  font-size: .78rem;
  display: inline-flex;
}

.manual-revenue-actions {
  gap: 6px;
}

.revenue-operation-action {
  border: 1px solid var(--border);
  background: var(--surface);
  min-width: 66px;
  min-height: 32px;
  box-shadow: none;
  border-radius: 9px;
  justify-content: center;
  font-weight: 900;
  transition: transform .15s, border-color .15s, background .15s;
}

.revenue-operation-action:hover:not(:disabled) {
  transform: translateY(-1px);
}

.revenue-operation-action.is-view, .revenue-operation-action.is-audit {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.revenue-operation-action.is-edit {
  color: #7c3aed;
  background: #f5f3ff;
  border-color: #ddd6fe;
}

.revenue-operation-action.is-submit, .revenue-operation-action.is-approve {
  color: #15803d;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.revenue-operation-action.is-reject {
  color: #b91c1c;
  background: #fff7f7;
  border-color: #fecaca;
}

body.dark-mode .revenue-validation-filter, body.dark-mode .manual-revenue-filter-grid, body.dark-mode .revenue-validation-card .enterprise-card-heading, body.dark-mode .manual-approval-queue-card .enterprise-card-heading {
  background: linear-gradient(135deg, #1f2937, #172033);
}

body.dark-mode .revenue-operations-topbar-action.is-export, body.dark-mode .revenue-operation-filter-refresh, body.dark-mode .revenue-operation-action, body.dark-mode .manual-approval-queue-card .business-finance-queue-total strong, body.dark-mode .revenue-validation-card .business-source-count {
  background: var(--surface-muted) !important;
}

body.dark-mode .revenue-validation-table th, body.dark-mode .manual-revenue-table th {
  background: #111827;
}

@media (max-width: 1100px) {
  .manual-revenue-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manual-revenue-filter-grid .revenue-operation-filter-refresh {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .revenue-operations-topbar-actions {
    flex-wrap: wrap;
  }

  .revenue-validation-filter, .manual-revenue-filter-grid {
    grid-template-columns: 1fr;
  }

  .manual-revenue-filter-grid .revenue-operation-filter-refresh {
    grid-column: auto;
  }

  .revenue-validation-card .enterprise-card-heading, .manual-approval-queue-card .enterprise-card-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .manual-approval-queue-card .business-finance-queue-total {
    text-align: left;
    justify-content: flex-start;
  }
}

.business-finance-queue {
  margin-bottom: 20px;
}

.business-finance-queue-total {
  text-align: right;
}

.business-finance-queue-total strong {
  font-size: 1.15rem;
}

.business-finance-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
  display: grid;
}

.business-finance-detail-grid > div {
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 0;
  padding: 12px;
}

.business-finance-detail-grid .full {
  grid-column: 1 / -1;
}

.business-finance-detail-grid strong {
  overflow-wrap: anywhere;
  margin-top: 5px;
  display: block;
}

@media (max-width: 900px) {
  .business-launch-policy-grid, .business-money-policy-grid {
    grid-template-columns: 1fr;
  }

  .business-finance-kpis, .business-finance-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .business-finance-policy-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .business-finance-policy-banner span {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .business-finance-kpis, .business-finance-filters, .business-finance-centers, .business-finance-detail-grid {
    grid-template-columns: 1fr;
  }

  .business-finance-actions {
    width: 100%;
  }

  .business-finance-actions .btn {
    flex: 1;
  }
}

.offer-analytics-email-layout {
  grid-column: 1 / -1;
  gap: 14px;
  display: grid;
}

.offer-analytics-email-card {
  background: linear-gradient(135deg, #fff7fbdb, #fffffff5);
  border: 1px solid #e5006d2e;
  border-radius: 16px;
  gap: 14px;
  padding: 16px;
  display: grid;
}

.offer-analytics-email-card-heading {
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  display: flex;
}

.offer-analytics-email-card-heading > div {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.offer-analytics-email-card-heading strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
}

.offer-analytics-email-card-heading small, .offer-analytics-email-hint, .offer-analytics-email-empty {
  color: var(--text-muted);
  margin: 0;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.offer-analytics-email-card-heading .offer-config-toggle {
  background: var(--surface);
  flex: none;
  min-height: 40px;
  padding: 8px 10px;
}

.offer-analytics-email-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 12px 14px;
  display: grid;
}

.offer-analytics-email-fields-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.offer-analytics-email-hint {
  border: 1px dashed var(--border);
  background: var(--surface-muted);
  border-radius: 13px;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  display: flex;
}

.offer-analytics-email-source-box {
  background: var(--surface);
  border-style: solid;
}

.offer-analytics-email-count {
  color: #c4005c;
  background: #fff0f7;
  border-radius: 999px;
  flex: none;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
}

.offer-analytics-email-data-note {
  border-left: 3px solid var(--primary);
  color: var(--text-muted);
  background: #e5006d0e;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.offer-analytics-email-data-note strong {
  color: var(--text);
}

.offer-analytics-email-disabled-note {
  color: var(--text-muted);
  background: #e5006d09;
  border: 1px dashed #e5006d47;
  border-radius: 10px;
  margin: 0;
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.offer-analytics-email-mapping {
  background: #e5006d06;
  border: 1px solid #e5006d29;
  border-radius: 10px;
  overflow: hidden;
}

.offer-analytics-email-mapping summary {
  cursor: pointer;
  color: var(--text);
  padding: 11px 13px;
  font-size: 12px;
  font-weight: 900;
}

.offer-analytics-email-mapping p {
  color: var(--text-muted);
  margin: 0;
  padding: 0 13px 11px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.offer-analytics-email-mapping table, .offer-analytics-email-history-table table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}

.offer-analytics-email-mapping th, .offer-analytics-email-mapping td, .offer-analytics-email-history-table th, .offer-analytics-email-history-table td {
  text-align: left;
  vertical-align: top;
  border-top: 1px solid #19233b14;
  padding: 9px 11px;
}

.offer-analytics-email-mapping th, .offer-analytics-email-history-table th {
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
}

.offer-analytics-email-history-table {
  overflow-x: auto;
}

.offer-email-preview {
  display: none;
}

.offer-email-preview-modal-backdrop {
  z-index: 1000;
  background: #121a2d94;
  place-items: center;
  padding: 24px;
  display: grid;
  position: fixed;
  inset: 0;
}

.offer-email-preview-modal {
  background: #fff;
  border: 1px solid #e5006d38;
  border-radius: 16px;
  grid-template-rows: auto minmax(320px, 72vh);
  width: min(860px, 100%);
  max-height: calc(100vh - 48px);
  display: grid;
  overflow: hidden;
  box-shadow: 0 30px 75px #08122959;
}

.offer-email-preview-modal header {
  border-bottom: 1px solid #19233b1a;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  display: flex;
}

.offer-email-preview-modal header div {
  gap: 2px;
  display: grid;
}

.offer-email-preview-modal header strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
}

.offer-email-preview-modal header small {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.offer-email-preview-modal iframe {
  background: #f4f5f8;
  border: 0;
  width: 100%;
  height: 100%;
}

.offer-analytics-email-actions-card .offer-config-action-grid {
  margin: 0;
}

@media (max-width: 920px) {
  .offer-analytics-email-fields-three {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .offer-analytics-email-card-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .offer-analytics-email-fields, .offer-analytics-email-fields-three {
    grid-template-columns: 1fr;
  }

  .offer-analytics-email-card-heading .offer-config-toggle {
    width: 100%;
  }
}

.offer-email-recipient-list {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  display: flex;
}

.offer-email-recipient-list span {
  color: #7f174f;
  background: #fff6fa;
  border: 1px solid #f7b9d2;
  border-radius: 999px;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 6px 8px 6px 10px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
}

.offer-email-recipient-list button {
  color: #fff;
  cursor: pointer;
  background: #e5006d;
  border: 0;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 16px;
  line-height: 18px;
}

.offer-email-recipient-list button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.offer-email-preview {
  color: #7f174f;
  background: #fff8fb;
  border: 1px solid #f2bdd5;
  border-radius: 12px;
  grid-column: 1 / -1;
  padding: 14px;
}

.offer-email-preview iframe {
  background: #fff;
  border: 1px solid #eadde4;
  width: 100%;
  height: 620px;
  margin-top: 10px;
  display: block;
}

.offer-action-button {
  isolation: isolate;
  justify-content: center;
  align-items: center;
  gap: 9px;
  display: inline-flex;
  position: relative;
  overflow: hidden;
}

.offer-action-button:before {
  content: "";
  z-index: -1;
  opacity: 0;
  background: linear-gradient(90deg, #0000, #ffffff6b, #0000);
  position: absolute;
  inset: 0;
  transform: translateX(-115%);
}

.offer-action-button:not(:disabled):hover:before {
  opacity: 1;
  transition: transform .65s, opacity .2s;
  transform: translateX(115%);
}

.offer-action-button.is-loading:before {
  opacity: 1;
  animation: 1.05s linear infinite offer-button-sweep;
}

.offer-action-spinner {
  border: 2px solid;
  border-right-color: #0000;
  border-radius: 999px;
  flex: none;
  width: 16px;
  height: 16px;
  animation: .75s linear infinite offer-spin;
}

.offer-preview-panel {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border-radius: 16px;
  grid-column: 1 / -1;
  overflow: hidden;
}

.offer-preview-title {
  border-bottom: 1px solid var(--border);
  color: var(--text);
  letter-spacing: .04em;
  text-transform: uppercase;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 950;
  display: flex;
}

.offer-admin-preview {
  border: 1px solid var(--border);
  background: var(--surface-muted);
  max-height: 280px;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  border-radius: 12px;
  grid-column: 1 / -1;
  padding: 12px;
  font-size: 12px;
  overflow: auto;
}

.offer-preview-panel .offer-admin-preview {
  background: var(--surface-muted);
  border: 0;
  border-radius: 0;
  max-height: 360px;
  margin: 0;
}

@keyframes offer-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes offer-button-sweep {
  from {
    transform: translateX(-115%);
  }

  to {
    transform: translateX(115%);
  }
}

.offer-validation-checklist {
  border: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--text);
  border-radius: 14px;
  grid-column: 1 / -1;
  gap: 12px;
  padding: 14px 16px;
  display: grid;
}

.offer-validation-checklist.error {
  background: #fff1f2;
  border-color: #fecaca;
}

.offer-validation-checklist.success {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.offer-validation-checklist > div:first-child {
  gap: 3px;
  display: grid;
}

.offer-validation-checklist > div:first-child strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 950;
}

.offer-validation-checklist > div:first-child span {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 750;
}

.offer-validation-checklist ul {
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  display: grid;
}

.offer-validation-checklist li {
  color: var(--text);
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.offer-validation-checklist.error li::marker {
  color: var(--danger);
}

.offer-validation-checklist.success li::marker {
  color: var(--success);
}

.offer-validation-warnings {
  border-top: 1px solid var(--border);
  gap: 8px;
  padding-top: 10px;
  display: grid;
}

.offer-validation-warnings > strong {
  color: #92400e;
  font-size: 13px;
  font-weight: 950;
}

.offer-audit-card {
  gap: 0;
  display: grid;
}

.offer-audit-filters {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  padding: 16px 18px;
  display: grid;
}

.offer-audit-table td, .offer-enrollment-table td {
  vertical-align: top;
  overflow-wrap: anywhere;
}

.offer-enrollment-heading {
  border-top: 1px solid var(--border);
}

.offer-audit-drawer {
  gap: 14px;
  display: grid;
}

.offer-audit-detail-list {
  gap: 10px;
  margin: 0;
  display: grid;
}

.offer-audit-detail-list div {
  border-bottom: 1px solid var(--border);
  gap: 4px;
  padding: 10px 0;
  display: grid;
}

.offer-audit-detail-list dt {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 11px;
  font-weight: 950;
}

.offer-audit-detail-list dd {
  color: var(--text);
  overflow-wrap: anywhere;
  margin: 0;
  font-weight: 850;
}

.offer-override-modal {
  width: min(720px, 100vw - 32px);
}

.offer-override-warning {
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  margin: 0 0 14px;
  padding: 12px 14px;
  font-weight: 850;
}

.general-settings-offer-audit-panel {
  border-top: 1px solid var(--border);
}

.offer-enrollments-card {
  margin-top: 22px;
}

.offer-enrollment-toolbar {
  gap: 8px;
}

.offer-enrollment-search {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 10px;
  align-items: center;
  gap: 8px;
  min-width: min(310px, 100%);
  height: 36px;
  padding: 0 11px;
  transition: border-color .18s, box-shadow .18s;
  display: flex;
}

.offer-enrollment-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.offer-enrollment-search svg {
  fill: none;
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
  stroke-width: 2px;
  flex: none;
}

.offer-enrollment-search input {
  width: 100%;
  min-width: 0;
  color: var(--text);
  font: inherit;
  background: none;
  border: 0;
  outline: 0;
  font-size: 12px;
  font-weight: 750;
}

.offer-refresh-btn {
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

.offer-refresh-icon {
  font-size: 17px;
  line-height: 1;
  transition: transform .2s;
  display: inline-block;
}

.offer-refresh-btn:not(:disabled):hover .offer-refresh-icon {
  transform: rotate(180deg);
}

.offer-refresh-icon.is-spinning {
  animation: .8s linear infinite offer-refresh-spin;
}

@keyframes offer-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

.offer-enrollment-page-status {
  min-width: 54px;
  color: var(--text-muted);
  justify-content: center;
  align-items: center;
  font-size: 13px;
  font-weight: 900;
  display: inline-flex;
}

.offer-export-modal {
  border: 1px solid var(--border);
  border-radius: 22px;
  width: min(650px, 100vw - 32px);
  padding: 28px;
  box-shadow: 0 24px 70px #0f172a47;
}

.offer-export-modal-heading {
  align-items: flex-start;
  gap: 14px;
  padding-right: 30px;
  display: flex;
}

.offer-export-modal-heading h3 {
  margin: 1px 0 5px;
  font-size: 21px;
}

.offer-export-modal-heading p {
  color: var(--text-muted);
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.offer-export-modal-icon {
  width: 42px;
  height: 42px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 13px;
  flex: none;
  place-items: center;
  font-size: 25px;
  font-weight: 900;
  display: grid;
}

.offer-export-search-note {
  background: var(--surface-muted);
  color: var(--text-muted);
  border-radius: 10px;
  margin: 18px 0 0;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 750;
}

.offer-export-options {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 18px 0;
  display: grid;
}

.offer-export-choice {
  text-align: left;
  border: 1px solid var(--border);
  min-height: 112px;
  color: var(--text);
  background: var(--surface-solid);
  cursor: pointer;
  border-radius: 14px;
  align-content: center;
  gap: 7px;
  padding: 18px;
  transition: transform .18s, border-color .18s, box-shadow .18s;
  display: grid;
}

.offer-export-choice strong {
  font-size: 14px;
  font-weight: 950;
}

.offer-export-choice span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.offer-export-choice:not(:disabled):hover {
  border-color: var(--primary);
  box-shadow: 0 10px 22px var(--primary-glow);
  transform: translateY(-2px);
}

.offer-export-choice.is-primary {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 8px 18px var(--primary-glow);
}

.offer-export-choice.is-primary span {
  color: #ffffffd1;
}

.offer-export-choice:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.offer-export-modal-footer {
  color: var(--text-muted);
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
}

.offer-audit-lifecycle-intro {
  color: var(--text-muted);
  margin: 0;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.offer-audit-technical-detail summary {
  cursor: pointer;
  color: var(--primary);
  font-size: 12px;
  font-weight: 850;
}

.offer-audit-technical-detail .offer-admin-preview {
  margin: 10px 0 0;
}

@media (max-width: 760px) {
  .offer-enrollment-toolbar {
    width: 100%;
  }

  .offer-enrollment-search {
    flex: 100%;
    min-width: 100%;
  }

  .offer-export-modal-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

.offer-config-textarea {
  grid-column: 1 / -1;
}

.offer-config-field textarea {
  box-sizing: border-box;
  resize: vertical;
  border: 1px solid var(--border);
  background: var(--bg);
  width: 100%;
  min-height: 132px;
  max-height: 320px;
  color: var(--text);
  border-radius: 13px;
  padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
  font-weight: 800;
  line-height: 1.45;
}

.offer-config-json-field textarea {
  min-height: 148px;
  max-height: 260px;
}

.offer-config-field input:focus, .offer-config-field select:focus, .offer-config-field textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 4px #db27771f;
}

.offer-config-help, .offer-config-error {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  display: block;
}

.offer-config-help {
  color: var(--text-muted);
}

.offer-config-error {
  color: #dc2626;
}

@media (max-width: 1100px) {
  .offer-workflow-editor-modal .offer-workflow-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .offer-workflow-editor-modal .offer-workflow-tabs button, .offer-workflow-editor-modal .offer-workflow-tabs button:nth-child(n+6) {
    grid-column: auto;
  }

  .offer-workflow-editor-modal .offer-config-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .offer-workflow-editor-modal {
    max-height: calc(100dvh - 16px);
    padding: 14px !important;
  }

  .offer-workflow-editor-modal .offer-workflow-tabs, .offer-workflow-editor-modal .offer-config-grid {
    grid-template-columns: 1fr;
  }

  .offer-workflow-editor-modal .offer-admin-modal-actions .btn {
    flex: 130px;
  }
}

@media (max-height: 720px) and (orientation: landscape) {
  .offer-admin-modal-overlay {
    padding: 8px;
  }

  .offer-admin-modal:not(.offer-workflow-editor-modal) {
    width: 100%;
    max-height: calc(100dvh - 16px);
    overflow: auto;
  }

  .offer-admin-modal-header {
    padding: 16px 64px 14px 18px;
  }

  .offer-admin-modal-body, .offer-campaign-action-header {
    padding: 14px;
  }
}

@media print {
  body.admin-reporting-active * {
    visibility: hidden !important;
  }

  body.admin-reporting-active .offer-coupon-card, body.admin-reporting-active .offer-coupon-card * {
    visibility: visible !important;
  }

  body.admin-reporting-active .offer-coupon-card {
    width: 100%;
    box-shadow: none;
    color: #111827;
    background: #fff;
    border: 1px solid #111827;
    position: absolute;
    top: 0;
    left: 0;
  }
}

@media (max-width: 680px) {
  .feedback-bulk-modal, .reminder-schedule-modal, .enterprise-drawer {
    width: 100vw;
  }

  .offer-audit-filters {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .offer-override-modal {
    width: 100%;
  }
}

.business-source-page {
  gap: 18px;
  display: grid;
}

.business-page-toolbar {
  border: 1px solid var(--border);
  background: var(--surface-solid);
  min-height: 48px;
  box-shadow: var(--shadow-sm);
  border-radius: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  display: flex;
}

.business-page-toolbar:empty {
  display: none;
}

.business-page-toolbar .business-finance-actions {
  margin-left: auto;
}

.business-admin-workspace {
  gap: 16px;
  min-width: 0;
  display: grid;
}

.business-admin-workspace-tabs {
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: linear-gradient(135deg, #fffffff7, #f8fafce6);
  border-radius: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  display: grid;
}

.business-email-distribution {
  gap: 14px;
  display: grid;
}

.business-email-top-actions {
  align-items: center;
  gap: 9px;
  display: flex;
}

.business-email-distribution .business-report-kpi-grid {
  margin: 0;
}

.business-email-distribution .enterprise-kpi-card {
  text-align: center;
  border: 1px solid var(--border);
  background: var(--surface);
  min-height: 92px;
  box-shadow: var(--shadow-sm);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: flex;
}

.business-email-distribution .enterprise-kpi-card span {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .055em;
  font-size: 11px;
  font-weight: 900;
}

.business-email-distribution .enterprise-kpi-card strong {
  color: var(--text);
  margin-top: 7px;
  font-family: Outfit, sans-serif;
  font-size: 25px;
  line-height: 1;
}

.business-email-settings-card, .business-email-test-card {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  padding: 0 !important;
}

.business-email-settings-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 16px;
}

.business-email-settings-grid .enterprise-filter-field:nth-child(5), .business-email-settings-grid .enterprise-filter-field:nth-child(6) {
  grid-column: span 2;
}

.business-email-distribution .enterprise-filter-field {
  min-width: 0;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .055em;
  flex-direction: column;
  gap: 6px;
  font-size: 10px;
  font-weight: 900;
  display: flex;
}

.business-email-distribution .enterprise-filter-field input, .business-email-distribution .enterprise-filter-field select, .business-email-distribution .enterprise-filter-field textarea {
  border: 1px solid var(--border);
  background: var(--surface);
  width: 100%;
  min-height: 40px;
  color: var(--text);
  text-transform: none;
  letter-spacing: normal;
  border-radius: 11px;
  outline: none;
  padding: 9px 11px;
  font: 800 12px / 1.35 inherit;
}

.business-email-distribution .enterprise-filter-field textarea {
  resize: vertical;
}

.business-email-distribution .enterprise-filter-field input:focus, .business-email-distribution .enterprise-filter-field select:focus, .business-email-distribution .enterprise-filter-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px #e91e631a;
}

.business-email-distribution .enterprise-filter-field small {
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: normal;
  font-size: 10px;
  font-weight: 650;
}

.business-email-time {
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 7px;
  display: grid;
}

.business-email-time > span {
  color: var(--text);
  font-size: 16px;
}

.business-email-fixed-contract {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0 16px 16px;
  display: flex;
}

.business-email-fixed-contract strong {
  color: var(--text);
  margin-right: 4px;
  font-size: 12px;
}

.business-email-fixed-contract span {
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 900;
}

.business-email-search {
  align-items: center;
  gap: 10px;
  display: flex;
}

.business-email-search input {
  border: 1px solid var(--border);
  background: var(--surface);
  width: 230px;
  height: 38px;
  color: var(--text);
  border-radius: 11px;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 750;
}

.business-email-search strong {
  white-space: nowrap;
  color: var(--primary);
  font-size: 11px;
}

.business-email-test-card .enterprise-filter-grid {
  grid-template-columns: minmax(280px, 1fr) auto;
  padding: 16px;
}

.business-email-distribution input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--primary);
}

.business-email-editor-scope {
  border: 1px solid var(--border);
  background: var(--surface-muted);
  border-radius: 13px;
  grid-column: 1 / -1;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  display: flex;
}

.business-email-editor-scope strong {
  color: var(--text);
  font-size: 12px;
}

.business-email-editor-scope span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}

body.dark-mode .business-email-fixed-contract span {
  color: #86efac;
  background: #15803d26;
  border-color: #22c55e4d;
}

@media (max-width: 1100px) {
  .business-email-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .business-admin-workspace-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .business-email-settings-grid {
    grid-template-columns: 1fr;
  }

  .business-email-settings-grid .enterprise-filter-field:nth-child(5), .business-email-settings-grid .enterprise-filter-field:nth-child(6) {
    grid-column: auto;
  }

  .business-email-test-card .enterprise-filter-grid {
    grid-template-columns: 1fr;
  }

  .business-email-search {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .business-email-search input {
    width: 100%;
  }

  .business-email-top-actions {
    flex-direction: column;
    width: 100%;
  }

  .business-email-top-actions .btn {
    width: 100%;
  }
}

.business-data-sources-workspace .business-admin-workspace-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.business-admin-workspace-tabs button {
  min-width: 0;
  min-height: 62px;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  background: none;
  border: 1px solid #0000;
  border-radius: 14px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 11px 14px 11px 17px;
  transition: background .18s, border-color .18s, color .18s, box-shadow .18s;
  display: flex;
  position: relative;
}

.business-admin-workspace-tabs button:before {
  content: "";
  background: none;
  border-radius: 999px;
  width: 3px;
  position: absolute;
  inset: 10px auto 10px 0;
}

.business-admin-workspace-tabs button:hover {
  color: var(--text);
  background: #e91e630b;
  border-color: #e91e6329;
}

.business-admin-workspace-tabs button.active {
  color: var(--text);
  background: #e91e6314;
  border-color: #e91e6333;
  box-shadow: 0 8px 20px #e91e6314;
}

.business-admin-workspace-tabs button.active:before {
  background: var(--primary);
}

.business-admin-workspace-tabs button:focus-visible {
  outline-offset: 2px;
  outline: 3px solid #e91e6333;
}

.business-admin-workspace-tabs strong {
  font-family: Outfit, sans-serif;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.15;
}

.business-admin-workspace-tabs span {
  max-width: 100%;
  color: var(--text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 5px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  display: block;
  overflow: hidden;
}

.business-admin-workspace-content {
  min-width: 0;
}

.business-admin-workspace-content > .tab-content {
  margin: 0;
}

.business-admin-workspace-content .business-page-toolbar {
  margin-bottom: -2px;
}

.business-admin-workspace-content .enterprise-card, .business-admin-workspace-content .business-source-filter, .business-admin-workspace-content .business-source-kpi, .business-admin-workspace-content .business-report-kpi {
  border-color: var(--border);
  background: var(--surface-solid, #fff);
  box-shadow: var(--shadow-sm);
  border-radius: 20px;
}

.business-admin-workspace-content .enterprise-table-card {
  overflow: hidden;
}

.business-admin-workspace-content .business-source-kpi, .business-admin-workspace-content .business-report-kpi {
  text-align: center;
  background: linear-gradient(145deg, var(--surface-solid, #fff), var(--surface-muted));
  border: 1px solid #dce3ec;
  align-content: center;
  justify-items: center;
  min-height: 88px;
  padding: 14px 16px;
  transition: border-color .18s, box-shadow .18s, transform .18s;
  box-shadow: 0 7px 18px #0f172a0f, inset 0 0 0 1px #ffffff7a;
}

.business-admin-workspace-content .business-source-kpi:hover, .business-admin-workspace-content .business-report-kpi:hover {
  border-color: #e91e6347;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px #0f172a17;
}

.business-admin-workspace-content .business-source-kpi > span, .business-admin-workspace-content .business-report-kpi > span {
  text-align: center;
  width: 100%;
}

.business-admin-workspace-content .business-source-kpi > strong, .business-admin-workspace-content .business-report-kpi > strong {
  text-align: center;
  font-variant-numeric: tabular-nums;
  width: 100%;
  font-family: Outfit, sans-serif;
}

.business-admin-workspace-content > .business-source-page > .business-report-kpi-grid, .business-admin-workspace-content > .business-source-page > .business-source-kpis {
  margin: 0;
}

.business-admin-inline-notice {
  color: #92400e;
  box-shadow: var(--shadow-sm);
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 14px;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  display: flex;
}

.business-admin-inline-notice > span {
  background: #fef3c7;
  border-radius: 10px;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 15px;
  font-weight: 950;
  display: grid;
}

.business-admin-inline-notice strong, .business-admin-inline-notice small {
  display: block;
}

.business-admin-inline-notice strong {
  font-size: 12px;
  font-weight: 950;
}

.business-admin-inline-notice small {
  color: #a16207;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 750;
}

.business-admin-history-card, .business-calendar-config-card {
  border: 1px solid var(--border);
  background: var(--surface-solid, #fff);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  padding: 0 !important;
}

.business-admin-history-filter-grid {
  border-bottom: 1px solid var(--border);
  grid-template-columns: minmax(180px, 1.25fr) minmax(160px, 1fr) minmax(145px, .8fr) minmax(145px, .8fr) 140px;
  padding: 14px 16px;
}

.business-admin-governance-card {
  overflow: hidden;
  padding: 0 !important;
}

.business-admin-governance-card .business-report-kpi-grid {
  background: var(--surface-solid, #fff);
  margin: 0;
  padding: 16px;
}

.business-admin-governance-actions {
  border-top: 1px solid var(--border);
  background: var(--surface-muted);
  justify-content: flex-end;
  align-items: center;
  gap: 9px;
  padding: 13px 16px;
  display: flex;
}

.business-admin-action, .business-admin-page-button {
  white-space: nowrap;
  cursor: pointer;
  min-height: 34px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #0000;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, filter .15s, border-color .15s;
  display: inline-flex;
}

.business-admin-action:hover, .business-admin-page-button:not(:disabled):hover {
  filter: saturate(1.08);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px #0f172a21;
}

.business-admin-action.is-edit {
  color: #1d4ed8;
  background: #dbeafe;
  border-color: #bfdbfe;
}

.business-admin-action.is-source {
  color: #0369a1;
  background: #e0f2fe;
  border-color: #bae6fd;
}

.business-admin-action.is-governance {
  color: #7c3aed;
  background: #ede9fe;
  border-color: #ddd6fe;
}

.business-admin-action.is-targets {
  color: #b45309;
  background: #fef3c7;
  border-color: #fde68a;
}

.business-admin-exception-button {
  color: #be123c;
  cursor: pointer;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 9px;
  margin-top: 7px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 900;
}

.business-admin-exception-button:hover {
  background: #ffe4e6;
  border-color: #fb7185;
}

.business-admin-exception-button:disabled {
  cursor: wait;
  opacity: .65;
}

.business-admin-exception-row > td {
  background: #fffafb;
  padding: 0 !important;
}

.business-admin-exception-panel {
  border-top: 2px solid #e11d68;
  padding: 14px 16px 16px;
}

.business-admin-exception-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 12px;
  display: flex;
}

.business-admin-exception-heading strong, .business-admin-exception-heading span {
  display: block;
}

.business-admin-exception-heading strong {
  color: #9f1239;
  font-size: 13px;
  font-weight: 950;
}

.business-admin-exception-heading span {
  color: #64748b;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 700;
}

.business-admin-exception-heading > small {
  color: #92400e;
  background: #fffbeb;
  border-radius: 8px;
  max-width: 420px;
  padding: 7px 9px;
  font-size: 10px;
  font-weight: 800;
}

.business-admin-exception-table {
  border: 1px solid #cbd5e1;
  min-width: 1120px;
}

.business-admin-exception-table th {
  color: #334155;
  background: #f8fafc;
  font-weight: 950;
}

.business-admin-exception-table td {
  vertical-align: top;
  border-bottom: 1px solid #cbd5e1;
}

.business-admin-exception-table small {
  color: #64748b;
  line-height: 1.45;
}

.business-admin-exception-loading, .business-admin-exception-empty {
  color: #64748b;
  text-align: center;
  padding: 18px;
  font-size: 12px;
  font-weight: 800;
}

.business-admin-pagination {
  border-top: 1px solid var(--border);
  background: var(--surface-muted);
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 11px 16px;
  display: flex;
}

.business-admin-pagination-summary {
  border: 1px solid var(--border);
  background: var(--surface-solid, #fff);
  min-width: 0;
  color: var(--text-muted);
  white-space: nowrap;
  border-radius: 9px;
  align-items: baseline;
  gap: 4px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 750;
  display: inline-flex;
}

.business-admin-pagination-summary strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 950;
}

.business-admin-pagination > div {
  align-items: center;
  gap: 8px;
  display: flex;
}

.business-admin-page-button {
  color: #334155;
  background: var(--surface-solid, #fff);
  border-color: var(--border);
}

.business-admin-page-button.is-next {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.business-admin-page-button:disabled {
  cursor: not-allowed;
  opacity: .42;
  box-shadow: none;
}

.business-center-filter-grid {
  grid-template-columns: minmax(280px, 2fr) minmax(180px, .8fr) 140px;
}

.business-calendar-config-grid {
  grid-template-columns: minmax(220px, 1.4fr) minmax(170px, 1fr) minmax(130px, .7fr) minmax(180px, 1fr);
  padding: 16px;
}

.business-calendar-active-toggle {
  border: 1px solid var(--border);
  background: var(--surface-muted);
  cursor: pointer;
  border-radius: 13px;
  grid-column: 1 / -1;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 12px;
  display: flex;
}

.business-calendar-active-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.business-calendar-active-toggle span, .business-calendar-active-toggle strong, .business-calendar-active-toggle small {
  display: block;
}

.business-calendar-active-toggle strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 950;
}

.business-calendar-active-toggle small {
  color: var(--text-muted);
  margin-top: 3px;
  font-size: 10px;
  font-weight: 700;
}

.business-calendar-config-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-muted);
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  display: flex;
}

.business-calendar-config-footer > span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 750;
}

.business-calendar-config-footer > div {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.business-calendar-definition-card > div:last-child {
  background: var(--surface-solid, #fff);
}

.business-calendar-preview-card {
  margin-top: 0 !important;
}

.business-calendar-top-status {
  border: 1px solid var(--border);
  background: var(--surface-solid, #fff);
  min-height: 38px;
  box-shadow: var(--shadow-sm);
  border-radius: 12px;
  align-items: center;
  gap: 8px;
  padding: 5px 8px 5px 12px;
  display: flex;
}

.business-calendar-top-status > span {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 10px;
  font-weight: 900;
}

.business-centre-action {
  cursor: pointer;
  min-height: 31px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #0000;
  border-radius: 9px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 900;
  transition: transform .15s, box-shadow .15s, filter .15s;
}

.business-centre-action:hover {
  filter: saturate(1.08);
  transform: translateY(-1px);
  box-shadow: 0 7px 16px #0f172a1f;
}

.business-centre-action.is-edit {
  color: #1d4ed8;
  background: #dbeafe;
  border-color: #bfdbfe;
}

.business-centre-action.is-alias {
  color: #7c3aed;
  background: #ede9fe;
  border-color: #ddd6fe;
}

.business-centre-action.is-deactivate {
  color: #b91c1c;
  background: #fee2e2;
  border-color: #fecaca;
}

.business-centre-action.is-activate {
  color: #15803d;
  background: #dcfce7;
  border-color: #bbf7d0;
}

body.admin-reporting-active.dark-mode .business-admin-inline-notice {
  color: #fde68a;
  background: #422006;
  border-color: #854d0e;
}

body.admin-reporting-active.dark-mode .business-admin-inline-notice small {
  color: #fcd34d;
}

body.admin-reporting-active.dark-mode .business-admin-exception-row > td {
  background: #17131a;
}

body.admin-reporting-active.dark-mode .business-admin-exception-panel {
  border-top-color: #f472b6;
}

body.admin-reporting-active.dark-mode .business-admin-exception-heading strong {
  color: #f9a8d4;
}

body.admin-reporting-active.dark-mode .business-admin-exception-table th {
  color: #e2e8f0;
  background: #1e293b;
}

body.admin-reporting-active.dark-mode .business-admin-exception-table, body.admin-reporting-active.dark-mode .business-admin-exception-table td {
  border-color: #475569;
}

body.admin-reporting-active.dark-mode .business-admin-history-card, body.admin-reporting-active.dark-mode .business-calendar-config-card, body.admin-reporting-active.dark-mode .business-calendar-top-status {
  background: var(--surface-solid);
}

body.admin-reporting-active.dark-mode .business-admin-workspace-tabs {
  background: linear-gradient(135deg, #1e293bf5, #0f172ae0);
}

body.admin-reporting-active.dark-mode .business-admin-workspace-tabs button.active {
  background: #e91e6324;
}

@media (max-width: 760px) {
  .business-admin-workspace-tabs, .business-data-sources-workspace .business-admin-workspace-tabs {
    grid-template-columns: 1fr;
  }

  .business-admin-workspace-tabs button {
    min-height: 54px;
  }

  .business-admin-history-filter-grid, .business-center-filter-grid, .business-calendar-config-grid {
    grid-template-columns: 1fr;
  }

  .business-calendar-active-toggle {
    grid-column: auto;
  }

  .business-calendar-config-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .business-calendar-config-footer > div, .business-calendar-config-footer .btn {
    width: 100%;
  }

  .business-admin-governance-actions, .business-admin-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .business-admin-governance-actions .business-admin-action, .business-admin-pagination > div, .business-admin-page-button {
    width: 100%;
  }

  .business-admin-pagination-summary {
    white-space: normal;
    justify-content: center;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  .business-data-sources-workspace .business-admin-workspace-tabs, .business-admin-history-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .business-admin-history-filter-grid .filter-action {
    grid-column: span 2;
  }

  .business-center-filter-grid {
    grid-template-columns: minmax(220px, 1.5fr) minmax(160px, 1fr) 130px;
  }

  .business-calendar-config-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.business-source-hero {
  background: radial-gradient(circle at 92% 18%, #ec489921, #0000 28%), linear-gradient(135deg, #fff 0%, #fff7fb 100%);
  border: 1px solid #f5c8dc;
  border-radius: 22px;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 26px;
  display: flex;
  box-shadow: 0 16px 38px #83184314;
}

.business-source-hero h2 {
  color: #111827;
  margin: 4px 0 7px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.business-source-hero p:not(.eyebrow) {
  color: var(--text-muted);
  margin: 0;
  font-weight: 650;
}

.business-source-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  display: grid;
}

.business-source-kpi {
  background: #fff;
  border: 1px solid #e8edf4;
  border-radius: 16px;
  gap: 6px;
  padding: 16px 18px;
  display: grid;
  box-shadow: 0 8px 24px #0f172a0d;
}

.business-source-kpi span {
  color: #64748b;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 850;
}

.business-source-kpi strong {
  color: #172033;
  font-size: 26px;
}

.business-source-kpi.good {
  background: #f7fff9;
  border-color: #bbf7d0;
}

.business-source-kpi.warn {
  background: #fffaf4;
  border-color: #fed7aa;
}

.business-source-kpi.danger {
  background: #fff8f8;
  border-color: #fecaca;
}

.business-source-filter {
  grid-template-columns: minmax(240px, 1.6fr) repeat(2, minmax(170px, .7fr)) auto;
  align-items: end;
  gap: 12px;
  padding: 16px;
  display: grid;
}

.business-source-table-card {
  overflow: hidden;
}

.business-source-table-card .enterprise-card-heading {
  border-bottom: 1px solid #edf0f5;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  display: flex;
}

.business-source-table-card .enterprise-card-heading h3 {
  margin: 0;
}

.business-source-count, .business-source-secondary {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.business-source-table td {
  vertical-align: top;
}

.business-source-table td:first-child strong, .business-source-table td:first-child span, .source-status-stack span {
  display: block;
}

.source-type-chip, .business-source-status {
  white-space: nowrap;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 850;
  display: inline-flex;
}

.source-type-chip {
  color: #5b21b6;
  background: #f3e8ff;
}

.business-source-status.active, .business-source-status.valid {
  color: #087443;
  background: #dcfce7;
}

.business-source-status.inactive, .business-source-status.not-tested {
  color: #475569;
  background: #eef2f7;
}

.business-source-status.invalid, .business-source-status.error {
  color: #b42318;
  background: #fee2e2;
}

.business-source-status.pending, .business-source-status.warning {
  color: #9a5600;
  background: #ffedd5;
}

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

.business-source-error {
  color: #64748b;
  overflow-wrap: anywhere;
  max-width: 220px;
  font-size: 12px;
  line-height: 1.45;
}

.business-backfill-card, .business-definition-card {
  background: var(--surface-solid, #fff);
  border: 1px solid #e6eaf0;
  border-radius: 20px;
  box-shadow: 0 12px 30px #0f172a12;
}

.business-backfill-heading {
  background: linear-gradient(135deg, #fff 0%, #fff8fb 100%);
  padding: 20px 22px !important;
}

.business-backfill-heading > div {
  max-width: 900px;
}

.business-backfill-heading > div > strong {
  font-size: 18px;
}

.business-backfill-heading > div > span {
  margin-top: 5px;
  line-height: 1.55;
}

.business-backfill-controls {
  background: var(--surface-solid, #fff);
  grid-template-columns: minmax(170px, .65fr) minmax(170px, .65fr) minmax(420px, 2fr) minmax(165px, .65fr);
  align-items: end;
  gap: 16px;
  padding: 20px 22px 22px;
  display: grid;
}

.business-backfill-controls .input-group {
  gap: 7px;
  min-width: 0;
}

.business-backfill-controls .input-group label, .business-backfill-sources legend {
  color: #596780;
  letter-spacing: .055em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
}

.business-backfill-controls .input-group input {
  width: 100%;
  height: 46px;
  color: var(--text);
  background: var(--surface-solid, #fff);
  font: inherit;
  border: 1px solid #dce2eb;
  border-radius: 12px;
  padding: 0 12px;
  font-weight: 750;
  transition: border-color .18s, box-shadow .18s;
}

.business-backfill-controls .input-group input:focus {
  border-color: #e91e63;
  outline: none;
  box-shadow: 0 0 0 4px #e91e631a;
}

.business-backfill-controls .input-group input:disabled {
  color: #475569;
  cursor: not-allowed;
  opacity: 1;
  background: #f1f5f9;
  border-color: #d7dee8;
}

.business-backfill-sources {
  border: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.business-backfill-sources legend {
  margin-bottom: 7px;
  padding: 0;
}

.business-backfill-source-options {
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  min-height: 46px;
  display: flex;
}

.business-backfill-source-options label {
  color: #526078;
  cursor: pointer;
  background: #f8fafc;
  border: 1px solid #dde3ec;
  border-radius: 10px;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 800;
  transition: border-color .18s, background .18s, color .18s, transform .18s;
  display: inline-flex;
}

.business-backfill-source-options label:hover {
  color: #be185d;
  background: #fff7fb;
  border-color: #f2a7c4;
  transform: translateY(-1px);
}

.business-backfill-source-options label.selected {
  color: #a71250;
  background: #fce7f3;
  border-color: #f3a0c1;
  box-shadow: 0 3px 10px #be185d14;
}

.business-backfill-source-options label:has(input:disabled) {
  cursor: not-allowed;
  transform: none;
}

.business-backfill-source-options label:not(.selected):has(input:disabled) {
  color: #94a3b8;
  opacity: .72;
  background: #f8fafc;
  border-color: #e2e8f0;
}

.business-backfill-source-options input {
  accent-color: #e91e63;
  width: 15px;
  height: 15px;
  margin: 0;
}

.business-backfill-action {
  gap: 6px;
  display: grid;
}

.business-backfill-action .btn {
  white-space: nowrap;
  justify-content: center;
  width: 100%;
  min-height: 46px;
}

.business-backfill-button {
  color: #fff;
  border: 1px solid #0000;
  box-shadow: 0 8px 18px #0f172a1f;
}

.business-backfill-button--start {
  background: #e60064;
  border-color: #d80b5d;
}

.business-backfill-button--start:hover {
  background: #c90055;
}

.business-backfill-button--pause {
  background: #d97706;
  border-color: #b45309;
}

.business-backfill-button--pause:hover {
  background: #b45309;
}

.business-backfill-button--resume {
  background: #059669;
  border-color: #047857;
}

.business-backfill-button--resume:hover {
  background: #047857;
}

.business-backfill-button:focus-visible {
  outline-offset: 2px;
  outline: 3px solid #3b82f64d;
}

.business-backfill-action > span {
  color: #718096;
  text-align: center;
  font-size: 10px;
  font-weight: 750;
}

.business-source-actions {
  grid-template-columns: repeat(2, minmax(118px, 1fr));
  align-items: stretch;
  gap: 8px;
  min-width: 270px;
  display: grid;
}

.business-source-action {
  min-height: 34px;
  box-shadow: none;
  white-space: nowrap;
  border: 1px solid #0000;
  border-radius: 9px;
  justify-content: center;
  font-size: 10.5px;
  transition: transform .16s, box-shadow .16s, border-color .16s, background .16s;
}

.business-source-action:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px #0f172a1a;
}

.business-source-action-edit {
  color: #334155;
  background: #fff;
  border-color: #cbd5e1;
}

.business-source-action-edit:hover:not(:disabled) {
  color: #0f172a;
  background: #f8fafc;
  border-color: #94a3b8;
}

.business-source-action-test {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.business-source-action-test:hover:not(:disabled) {
  background: #dbeafe;
  border-color: #60a5fa;
}

.business-source-action-refresh {
  color: #047857;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.business-source-action-refresh:hover:not(:disabled) {
  background: #d1fae5;
  border-color: #34d399;
}

.business-source-action-notify {
  color: #6d28d9;
  background: #f5f3ff;
  border-color: #ddd6fe;
}

.business-source-action-notify:hover:not(:disabled) {
  background: #ede9fe;
  border-color: #a78bfa;
}

.business-source-action-activate {
  color: #fff;
  background: #e91e63;
  border-color: #db2777;
}

.business-source-action-activate:hover:not(:disabled) {
  background: #d81b60;
  border-color: #be185d;
}

.business-source-action-deactivate {
  color: #b42318;
  background: #fff7f7;
  border-color: #fecaca;
}

.business-source-action-deactivate:hover:not(:disabled) {
  background: #fee2e2;
  border-color: #f87171;
}

.business-source-action:disabled {
  color: #94a3b8;
  cursor: not-allowed;
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.business-definition-heading {
  background: linear-gradient(135deg, #fff 0%, #fff8fb 100%);
  padding: 20px 22px !important;
}

.business-definition-draft-badge {
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  color: #9a5600 !important;
  margin: 0 !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  display: inline-flex !important;
}

.business-definition-draft-badge.governed {
  background: #dcfce7;
  border-color: #16a34a47;
  color: #087443 !important;
}

.business-definition-section-heading {
  background: linear-gradient(135deg, #fff9fc, #fff);
  border: 1px solid #f0d7e2;
  border-radius: 14px;
  align-items: flex-start;
  gap: 12px;
  margin: 20px 22px 0;
  padding: 15px 16px;
  display: flex;
}

.business-definition-section-heading > span {
  color: #fff;
  background: #e91e63;
  border-radius: 9px;
  flex: 0 0 30px;
  place-items: center;
  width: 30px;
  height: 30px;
  font-size: 11px;
  font-weight: 900;
  display: grid;
}

.business-definition-section-heading h3, .business-definition-section-heading p {
  margin: 0;
}

.business-definition-section-heading h3 {
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.business-definition-section-heading p {
  color: var(--text-muted);
  margin-top: 3px;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.45;
}

.business-definition-card .business-source-form-grid {
  padding: 16px 22px 22px;
}

.business-definition-primary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.business-definition-evidence-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.business-definition-card .business-source-field.wide {
  grid-column: 1 / -1;
}

.business-definition-card .business-source-field input, .business-definition-card .business-source-field select, .business-definition-card .business-source-field textarea {
  background: var(--surface-solid, #fff);
}

.business-source-checkbox-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  display: grid;
}

.business-source-checkbox-grid label {
  min-height: 44px;
  color: var(--text);
  background: var(--surface-solid, #fff);
  cursor: pointer;
  border: 1px solid #dce2eb;
  border-radius: 11px;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 750;
  transition: border-color .18s, background .18s, transform .18s;
  display: flex;
}

.business-source-checkbox-grid label:hover {
  background: #fff7fb;
  border-color: #f2a7c4;
  transform: translateY(-1px);
}

.business-source-checkbox-grid label:has(input:checked) {
  background: #fce7f3;
  border-color: #f3a0c1;
}

.business-source-checkbox-grid input {
  accent-color: #e91e63;
  width: 16px;
  height: 16px;
  margin: 0;
}

.business-source-form-actions {
  background: #fbfcfe;
  border-top: 1px solid #edf0f5;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 17px 22px 20px;
  display: flex;
}

.business-source-form-actions > span {
  color: #64748b;
  font-size: 11.5px;
  font-weight: 700;
}

.business-source-form-actions > div {
  flex: none;
  gap: 9px;
  display: flex;
}

.business-source-form-actions .btn {
  justify-content: center;
  min-width: 126px;
}

body.dark-mode .business-backfill-card, body.dark-mode .business-definition-card, body.dark-mode .business-backfill-controls, body.dark-mode .business-definition-card .business-source-field input, body.dark-mode .business-definition-card .business-source-field select, body.dark-mode .business-definition-card .business-source-field textarea, body.dark-mode .business-source-checkbox-grid label {
  background: #172033;
  border-color: #334155;
}

body.dark-mode .business-backfill-heading, body.dark-mode .business-definition-heading, body.dark-mode .business-definition-section-heading {
  background: linear-gradient(135deg, #1f2937, #172033);
  border-color: #4b3543;
}

body.dark-mode .business-backfill-controls .input-group input {
  color: var(--text);
  background: #111827;
  border-color: #475569;
}

body.dark-mode .business-backfill-controls .input-group input:disabled {
  color: #94a3b8;
  background: #0f172a;
  border-color: #334155;
}

body.dark-mode .business-backfill-source-options label {
  color: #cbd5e1;
  background: #1f2937;
  border-color: #475569;
}

body.dark-mode .business-backfill-source-options label:hover, body.dark-mode .business-backfill-source-options label.selected, body.dark-mode .business-source-checkbox-grid label:hover {
  color: #fbcfe8;
  background: #4a2035;
  border-color: #be5b85;
}

body.dark-mode .business-source-checkbox-grid label:has(input:checked) {
  color: #fbcfe8;
  background: #4a2035;
  border-color: #be5b85;
}

body.dark-mode .business-backfill-source-options label:not(.selected):has(input:disabled) {
  color: #64748b;
  background: #111827;
  border-color: #334155;
}

body.dark-mode .business-source-action-edit {
  color: #e2e8f0;
  background: #1f2937;
  border-color: #64748b;
}

body.dark-mode .business-source-action-test {
  color: #bfdbfe;
  background: #172a46;
  border-color: #315889;
}

body.dark-mode .business-source-action-refresh {
  color: #a7f3d0;
  background: #153b30;
  border-color: #23664f;
}

body.dark-mode .business-source-action-notify {
  color: #ddd6fe;
  background: #2b2450;
  border-color: #5b4a8d;
}

body.dark-mode .business-source-action-deactivate {
  color: #fecaca;
  background: #452525;
  border-color: #7f3c3c;
}

body.dark-mode .business-source-form-actions {
  background: #111827;
  border-color: #334155;
}

.business-category-rule-form-card, .business-category-rule-table-card {
  background: var(--surface-solid, #fff);
  border: 1px solid #e3e8ef;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 30px #0f172a12;
}

.business-category-rule-form-heading {
  background: linear-gradient(135deg, #fff 0%, #fff8fb 100%);
  padding: 20px 22px !important;
}

.business-category-rule-form-heading > div {
  max-width: 850px;
}

.business-category-rule-form-heading > div > strong {
  font-size: 18px;
}

.business-category-rule-form-heading > div > span {
  margin-top: 5px;
  line-height: 1.5;
}

.business-category-rule-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px 18px;
  padding: 22px;
}

.business-category-rule-form-grid .business-source-field {
  min-width: 0;
}

.business-category-rule-form-grid .business-source-field input, .business-category-rule-form-grid .business-source-field select {
  background: var(--surface-solid, #fff);
  min-height: 46px;
}

.business-category-rule-table-card .enterprise-card-heading {
  background: linear-gradient(135deg, #fff, #fbfcfe);
  padding: 18px 20px;
}

.business-category-rule-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 980px;
}

.business-category-rule-table th {
  color: #64748b;
  letter-spacing: .055em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
  background: #f8fafc;
  border-bottom: 1px solid #dfe5ed;
  padding: 11px 14px;
  font-size: 10px;
  font-weight: 900;
}

.business-category-rule-table td {
  color: var(--text);
  vertical-align: middle;
  border-bottom: 1px solid #e8edf3;
  padding: 14px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
}

.business-category-rule-table tbody tr:last-child td {
  border-bottom: 0;
}

.business-category-rule-table tbody tr:hover td {
  background: #e91e6306;
}

.business-category-rule-table td:first-child > strong {
  color: #a71250;
  letter-spacing: .035em;
  background: #fff2f7;
  border: 1px solid #f3c0d5;
  border-radius: 8px;
  margin-bottom: 4px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
}

.business-category-rule-actions {
  grid-template-columns: repeat(2, minmax(88px, 1fr));
  gap: 8px;
  min-width: 196px;
  display: grid;
}

.business-category-action {
  min-height: 34px;
  box-shadow: none;
  white-space: nowrap;
  border: 1px solid #0000;
  border-radius: 9px;
  justify-content: center;
  font-size: 10.5px;
  transition: transform .16s, box-shadow .16s, border-color .16s, background .16s;
}

.business-category-action:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px #0f172a1a;
}

.business-category-action-edit {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.business-category-action-edit:hover:not(:disabled) {
  background: #dbeafe;
  border-color: #60a5fa;
}

.business-category-action-approve {
  color: #fff;
  background: #16a34a;
  border-color: #15803d;
}

.business-category-action-approve:hover:not(:disabled) {
  background: #15803d;
  border-color: #166534;
}

.business-category-action-deactivate {
  color: #b42318;
  background: #fff7f7;
  border-color: #fecaca;
}

.business-category-action-deactivate:hover:not(:disabled) {
  background: #fee2e2;
  border-color: #f87171;
}

body.dark-mode .business-category-rule-form-card, body.dark-mode .business-category-rule-table-card, body.dark-mode .business-category-rule-form-grid .business-source-field input, body.dark-mode .business-category-rule-form-grid .business-source-field select {
  background: #172033;
  border-color: #334155;
}

body.dark-mode .business-category-rule-form-heading, body.dark-mode .business-category-rule-table-card .enterprise-card-heading {
  background: linear-gradient(135deg, #1f2937, #172033);
}

body.dark-mode .business-category-rule-table th {
  color: #cbd5e1;
  background: #111827;
  border-color: #334155;
}

body.dark-mode .business-category-rule-table td {
  border-color: #334155;
}

body.dark-mode .business-category-rule-table td:first-child > strong {
  color: #fbcfe8;
  background: #4a2035;
  border-color: #7d3654;
}

body.dark-mode .business-category-action-edit {
  color: #bfdbfe;
  background: #172a46;
  border-color: #315889;
}

body.dark-mode .business-category-action-deactivate {
  color: #fecaca;
  background: #452525;
  border-color: #7f3c3c;
}

.business-source-empty {
  text-align: center;
  justify-items: center;
  gap: 9px;
  padding: 54px 20px;
  display: grid;
}

.business-source-empty h3, .business-source-empty p {
  margin: 0;
}

.business-source-empty p {
  color: #64748b;
}

.business-source-empty-icon {
  color: #db2777;
  background: #fce7f3;
  border-radius: 18px;
  place-items: center;
  width: 54px;
  height: 54px;
  font-size: 26px;
  font-weight: 900;
  display: grid;
}

.business-source-modal-overlay {
  z-index: 1200;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  background: #0f172a94;
  place-items: center;
  padding: 24px;
  display: grid;
  position: fixed;
  inset: 0;
}

.business-source-modal, .business-source-preview-modal {
  background: #fff;
  border: 1px solid #f3c2d8;
  border-radius: 24px;
  width: min(980px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  box-shadow: 0 28px 80px #0f172a42;
}

.business-source-preview-modal {
  width: min(820px, 100%);
}

.business-source-modal-header {
  border-bottom: 1px solid #edf0f5;
  padding: 23px 68px 18px 24px;
  position: relative;
}

.business-source-modal-header h3 {
  margin: 4px 0 5px;
  font-size: 24px;
}

.business-source-modal-header p:not(.eyebrow) {
  color: #64748b;
  margin: 0;
}

.business-source-modal-header .admin-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
}

.business-source-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 22px 24px;
  display: grid;
}

.business-source-field {
  align-content: start;
  gap: 7px;
  display: grid;
}

.business-source-field.full {
  grid-column: 1 / -1;
}

.business-source-field > span {
  color: #344054;
  letter-spacing: .025em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 850;
}

.business-source-field > small {
  color: #64748b;
  font-size: 11px;
  line-height: 1.45;
}

.business-source-field input, .business-source-field select, .business-source-field textarea {
  color: #172033;
  width: 100%;
  min-height: 44px;
  font: inherit;
  background: #fbfcfe;
  border: 1px solid #d8e0ea;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 650;
}

.business-source-field input:focus, .business-source-field select:focus, .business-source-field textarea:focus {
  border-color: #db2777;
  outline: none;
  box-shadow: 0 0 0 4px #db27771a;
}

.business-source-json {
  resize: vertical;
  line-height: 1.5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 12px !important;
}

.business-source-modal-footer {
  border-top: 1px solid #edf0f5;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px 22px;
  display: flex;
}

.business-source-preview-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 20px 24px;
  display: grid;
}

.business-source-preview-summary > div {
  background: #f8fafc;
  border: 1px solid #e5eaf1;
  border-radius: 14px;
  gap: 5px;
  padding: 14px;
  display: grid;
}

.business-source-preview-summary span {
  color: #64748b;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
}

.business-source-preview-summary strong {
  font-size: 18px;
}

.business-source-preview-errors {
  color: #991b1b;
  background: #fff7f7;
  border: 1px solid #fecaca;
  border-radius: 14px;
  margin: 0 24px 20px;
  padding: 14px 16px;
}

.business-source-preview-errors strong {
  margin-bottom: 6px;
  display: block;
}

.business-source-preview-errors ul {
  margin: 0;
  padding-left: 20px;
}

.business-source-preview-modal .enterprise-table-wrap {
  border: 1px solid #e5eaf1;
  border-radius: 14px;
  margin: 0 24px 22px;
}

@media (max-width: 1050px) {
  .business-source-filter {
    grid-template-columns: 1fr 1fr;
  }

  .business-source-actions {
    min-width: 180px;
  }

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

  .business-backfill-sources, .business-backfill-action {
    grid-column: 1 / -1;
  }

  .business-backfill-action {
    grid-template-columns: minmax(180px, 240px) 1fr;
    align-items: center;
  }

  .business-backfill-action > span {
    text-align: left;
  }

  .business-definition-primary-grid, .business-category-rule-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .business-page-toolbar {
    align-items: stretch;
  }

  .business-page-toolbar .business-finance-actions, .business-page-toolbar > .btn {
    width: 100%;
  }

  .business-source-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .business-source-kpis {
    grid-template-columns: 1fr 1fr;
  }

  .business-source-filter, .business-source-form-grid, .business-source-preview-summary {
    grid-template-columns: 1fr;
  }

  .business-source-field.full {
    grid-column: auto;
  }

  .business-backfill-controls {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .business-backfill-sources, .business-backfill-action {
    grid-column: auto;
  }

  .business-backfill-action {
    grid-template-columns: 1fr;
  }

  .business-backfill-action > span {
    text-align: center;
  }

  .business-backfill-source-options {
    flex-direction: column;
    align-items: stretch;
  }

  .business-backfill-source-options label {
    width: 100%;
  }

  .business-source-actions {
    grid-template-columns: 1fr;
    min-width: 150px;
  }

  .business-definition-heading {
    align-items: flex-start !important;
  }

  .business-definition-draft-badge {
    display: none !important;
  }

  .business-definition-section-heading {
    margin: 16px 16px 0;
  }

  .business-definition-card .business-source-form-grid {
    padding: 14px 16px 18px;
  }

  .business-definition-card .business-source-field.wide {
    grid-column: auto;
  }

  .business-source-checkbox-grid {
    grid-template-columns: 1fr;
  }

  .business-source-form-actions {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }

  .business-source-form-actions > div, .business-source-form-actions .btn {
    width: 100%;
  }

  .business-category-rule-form-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .business-category-rule-actions {
    grid-template-columns: 1fr;
    min-width: 112px;
  }

  .business-source-modal-overlay {
    padding: 10px;
  }

  .business-source-modal, .business-source-preview-modal {
    max-height: calc(100dvh - 20px);
  }
}

.business-file-import-page {
  padding-bottom: 32px;
}

.business-file-import-hero {
  background: radial-gradient(circle at 88% 18%, #0e749026, #0000 30%), linear-gradient(135deg, #fff 0%, #f2fbfd 100%);
  border-color: #b9e5ed;
}

.business-file-import-stepper {
  flex-wrap: wrap;
  gap: 7px;
  display: flex;
}

.business-file-import-stepper span {
  color: #64748b;
  background: #ffffffc7;
  border: 1px solid #d9e4ea;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 850;
}

.business-file-import-stepper span.current {
  color: #0e5965;
  background: #e8fbfd;
  border-color: #22a6b3;
}

.business-file-import-stepper span.done {
  color: #087443;
  background: #effdf4;
  border-color: #86efac;
}

.business-file-import-setup, .business-file-import-upload-card, .business-file-import-preview, .business-file-import-complete {
  overflow: hidden;
}

.business-file-import-setup-grid {
  grid-template-columns: minmax(250px, .8fr) minmax(340px, 1.2fr);
  align-items: end;
  gap: 18px;
  padding: 20px;
  display: grid;
}

.business-file-import-template {
  background: #f4fcfd;
  border: 1px solid #cfe8ed;
  border-radius: 14px;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 70px;
  padding: 14px 16px;
  display: flex;
}

.business-file-import-template strong, .business-file-import-template span {
  display: block;
}

.business-file-import-template span {
  color: #64748b;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 650;
}

.business-file-dropzone {
  text-align: center;
  background: #fbfdfe;
  border: 2px dashed #b8c8d4;
  border-radius: 18px;
  justify-items: center;
  gap: 7px;
  margin: 20px;
  padding: 38px 20px;
  transition: border-color .16s, background .16s, transform .16s;
  display: grid;
  position: relative;
}

.business-file-dropzone.dragging {
  background: #ecfeff;
  border-color: #0891b2;
  transform: scale(1.005);
}

.business-file-dropzone.selected {
  background: #f2fcfd;
  border-color: #67c6d3;
}

.business-file-dropzone > input {
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}

.business-file-dropzone > strong {
  color: #172033;
  overflow-wrap: anywhere;
  font-size: 17px;
}

.business-file-dropzone > span {
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
}

.business-file-drop-icon {
  color: #08798b;
  background: #dff8fb;
  border-radius: 17px;
  place-items: center;
  width: 52px;
  height: 52px;
  font-size: 28px;
  font-weight: 900;
  display: grid;
}

.business-file-import-actions {
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 12px;
  display: flex;
}

.business-file-import-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  padding: 18px 20px 0;
  display: grid;
}

.business-file-import-summary {
  background: #f8fafc;
  border: 1px solid #e1e7ee;
  border-radius: 14px;
  gap: 4px;
  padding: 14px 16px;
  display: grid;
}

.business-file-import-summary span {
  color: #64748b;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 850;
}

.business-file-import-summary strong {
  color: #172033;
  font-size: 24px;
}

.business-file-import-summary.success {
  background: #f2fff6;
  border-color: #bbf7d0;
}

.business-file-import-summary.danger {
  background: #fff7f7;
  border-color: #fecaca;
}

.business-file-import-summary.warning {
  background: #fffaf2;
  border-color: #fed7aa;
}

.business-file-date-review {
  background: #f8fbfd;
  border: 1px solid #dbe6ee;
  border-radius: 14px;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 16px 20px 0;
  padding: 13px 15px;
  display: flex;
}

.business-file-date-review span, .business-file-date-review strong {
  display: block;
}

.business-file-date-review span {
  color: #64748b;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 850;
}

.business-file-date-review strong {
  color: #172033;
  margin-top: 3px;
  font-size: 15px;
}

.business-file-date-review p {
  color: #526071;
  text-align: right;
  max-width: 560px;
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.business-file-financial-review {
  background: #fff;
  border: 1px solid #dce7ed;
  border-radius: 15px;
  margin: 16px 20px 0;
  overflow: hidden;
}

.business-file-currency-comparisons {
  background: #fbfdfe;
  border-bottom: 1px solid #e5ebef;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  padding: 14px 15px;
  display: grid;
}

.business-file-currency-comparisons > div {
  background: #fff;
  border: 1px solid #dce8ed;
  border-radius: 12px;
  padding: 12px 14px;
}

.business-file-currency-comparisons span, .business-file-currency-comparisons strong, .business-file-currency-comparisons small {
  display: block;
}

.business-file-currency-comparisons span {
  color: #64748b;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 850;
}

.business-file-currency-comparisons strong {
  color: #172033;
  margin: 4px 0 2px;
  font-size: 20px;
}

.business-file-currency-comparisons small {
  color: #526071;
  font-size: 11px;
}

.business-file-currency-comparisons p {
  color: #7c2d12;
  margin: 0;
  font-size: 12px;
}

.business-file-prior-note {
  color: #334155;
  background: #f8fafc;
  border-bottom: 1px solid #e5ebef;
  gap: 3px;
  padding: 11px 15px;
  font-size: 12px;
  display: grid;
}

.business-file-prior-note span {
  color: #64748b;
  line-height: 1.45;
}

.business-file-financial-review .enterprise-table-wrap {
  border: 0;
  border-radius: 0;
}

.business-file-comparison-table td strong, .business-file-comparison-table td small {
  display: block;
}

.business-file-comparison-table td small {
  color: #64748b;
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.4;
}

.business-file-comparison-table .positive {
  color: #047857;
}

.business-file-comparison-table .negative {
  color: #b91c1c;
}

.business-file-comparison-table .neutral {
  color: #475569;
}

.business-file-import-policy {
  color: #0c4a6e;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 14px;
  margin: 16px 20px 0;
  padding: 14px 16px;
}

.business-file-import-policy.blocked {
  color: #7c2d12;
  background: #fff7ed;
  border-color: #fdba74;
}

.business-file-import-policy strong {
  margin-bottom: 5px;
  display: block;
}

.business-file-import-policy p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.55;
}

.business-file-import-note {
  font-size: 12px;
  font-weight: 750;
  display: block;
}

.business-file-validation-section {
  border: 1px solid #e4e9ef;
  border-radius: 15px;
  margin: 18px 20px 0;
  overflow: hidden;
}

.business-file-validation-heading {
  background: #fbfcfe;
  border-bottom: 1px solid #e4e9ef;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 15px;
  display: flex;
}

.business-file-validation-heading strong, .business-file-validation-heading span {
  display: block;
}

.business-file-validation-heading span {
  color: #64748b;
  margin-top: 3px;
  font-size: 12px;
}

.business-file-validation-section .enterprise-table-wrap {
  border: 0;
  border-radius: 0;
}

.business-file-import-pagination, .business-file-import-commit {
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  display: flex;
}

.business-file-import-pagination {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.business-file-import-pagination > div {
  gap: 8px;
  display: flex;
}

.business-file-import-commit {
  background: #fbfcfe;
  border-top: 1px solid #e6ebf0;
  margin-top: 2px;
}

.business-file-import-commit strong, .business-file-import-commit span {
  display: block;
}

.business-file-import-commit span {
  color: #64748b;
  margin-top: 4px;
  font-size: 12px;
}

.business-file-import-modal {
  background: var(--surface-solid, #fff);
  border: 1px solid #b9e5ed;
  border-radius: 22px;
  width: min(620px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  box-shadow: 0 28px 80px #0f172a47;
}

.business-file-import-modal.wide {
  width: min(900px, 100%);
}

.business-file-import-modal-body {
  gap: 16px;
  padding: 20px 24px;
  display: grid;
}

.business-file-import-modal-body dl {
  border: 1px solid #e3e9ef;
  border-radius: 14px;
  gap: 0;
  margin: 0;
  display: grid;
  overflow: hidden;
}

.business-file-import-modal-body dl > div {
  border-bottom: 1px solid #edf1f5;
  grid-template-columns: 155px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 13px;
  display: grid;
}

.business-file-import-modal-body dl > div:last-child {
  border-bottom: 0;
}

.business-file-import-modal-body dt {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.business-file-import-modal-body dd {
  color: #172033;
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}

.business-file-hash {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.business-file-confirm-check {
  color: #344054;
  background: #fff7fb;
  border: 1px solid #f6c9dc;
  border-radius: 14px;
  align-items: flex-start;
  gap: 11px;
  padding: 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  display: flex;
}

.business-file-confirm-check input {
  accent-color: #db2777;
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.business-file-import-complete {
  background: linear-gradient(135deg, #f5fff8, #fff);
  border-color: #86efac;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  display: grid;
}

.business-file-complete-mark {
  color: #087443;
  background: #dcfce7;
  border-radius: 18px;
  place-items: center;
  width: 56px;
  height: 56px;
  font-size: 28px;
  font-weight: 900;
  display: grid;
}

.business-file-import-complete h3 {
  overflow-wrap: anywhere;
  margin: 4px 0 7px;
  font-size: 20px;
}

.business-file-import-complete p:not(.eyebrow) {
  color: #475569;
  margin: 0;
}

.business-file-batch-meta {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin: 16px 0 10px;
  display: grid;
}

.business-file-batch-meta span, .business-file-total-list span {
  color: #334155;
  overflow-wrap: anywhere;
  background: #ffffffd1;
  border: 1px solid #d9eee0;
  border-radius: 11px;
  padding: 10px 12px;
  font-size: 12px;
  display: block;
}

.business-file-batch-meta b {
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 3px;
  font-size: 10px;
  display: block;
}

.business-file-total-list {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  display: flex;
}

.business-file-total-list b {
  margin-right: 7px;
}

.business-file-import-complete a {
  color: #08798b;
  margin-right: 12px;
  font-size: 13px;
  font-weight: 850;
  text-decoration: underline;
  display: inline-block;
}

.business-file-audit-table {
  border: 1px solid #e3e9ef;
  border-radius: 14px;
  margin: 0 20px 20px;
}

@media (max-width: 900px) {
  .business-file-import-setup-grid, .business-file-batch-meta {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .business-file-import-setup-grid, .business-file-import-kpis, .business-file-batch-meta {
    grid-template-columns: 1fr;
  }

  .business-file-import-template, .business-file-date-review, .business-file-validation-heading, .business-file-import-pagination, .business-file-import-commit {
    flex-direction: column;
    align-items: stretch;
  }

  .business-file-date-review p {
    text-align: left;
    max-width: none;
  }

  .business-file-import-complete {
    grid-template-columns: 1fr;
  }

  .business-file-import-modal-body dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.clinical-diagnostics-section {
  border: 1px solid color-mix(in srgb, var(--primary, #e91e63) 15%, var(--border));
  background: linear-gradient(145deg, color-mix(in srgb, var(--card-bg, #fff) 97%, #e91e63), var(--card-bg, #fff));
  border-radius: 18px;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  display: grid;
  box-shadow: 0 12px 30px #0f172a0d;
}

.clinical-diagnostics-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 2px 2px 4px;
  display: flex;
}

.clinical-diagnostics-heading > div {
  gap: 3px;
  display: grid;
}

.clinical-diagnostics-heading span {
  color: var(--primary, #e91e63);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 850;
}

.clinical-diagnostics-heading strong {
  font-size: 18px;
}

.clinical-diagnostics-heading small {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.5;
}

.clinical-diagnostics-heading em {
  background: color-mix(in srgb, var(--border) 60%, transparent);
  color: var(--text-muted);
  border-radius: 999px;
  flex: none;
  padding: 7px 11px;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.clinical-diagnostics-heading em.ready {
  color: #0f766e;
  background: #14b8a61f;
}

.clinical-diagnostics-heading em.partial {
  color: #b45309;
  background: #f59e0b24;
}

.clinical-diagnostic-register {
  overflow: hidden;
}

.clinical-diagnostic-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 8px;
  display: flex;
}

.clinical-diagnostic-actions label {
  gap: 4px;
  min-width: 190px;
  display: grid;
}

.clinical-diagnostic-actions label > span {
  color: var(--text-muted);
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 800;
}

.clinical-diagnostic-actions select, .clinical-diagnostic-actions input {
  box-sizing: border-box;
  border: 1px solid var(--border);
  background: var(--card-bg, #fff);
  min-height: 36px;
  color: var(--text);
  font: inherit;
  border-radius: 9px;
  font-size: 11px;
}

.clinical-diagnostic-actions select {
  padding: 0 30px 0 10px;
}

.clinical-diagnostic-actions input {
  min-width: 260px;
  padding: 0 10px;
}

.clinical-diagnostic-table th {
  white-space: nowrap;
  font-weight: 850;
}

.clinical-diagnostic-table td {
  border-bottom-color: color-mix(in srgb, var(--text) 15%, var(--border));
  vertical-align: top;
}

.clinical-diagnostic-table td strong, .clinical-diagnostic-table td small {
  display: block;
}

.clinical-diagnostic-table td small {
  color: var(--text-muted);
  margin-top: 3px;
  font-size: 10px;
}

@media (max-width: 780px) {
  .clinical-diagnostics-section {
    padding: 12px;
  }

  .clinical-diagnostics-heading {
    flex-direction: column;
  }

  .clinical-diagnostic-actions {
    justify-content: stretch;
    align-items: stretch;
    width: 100%;
  }

  .clinical-diagnostic-actions label, .clinical-diagnostic-actions input {
    width: 100%;
    min-width: 0;
  }

  .clinical-diagnostic-actions .btn {
    flex: 1;
  }
}

.doctor-report-page {
  gap: 16px;
}

.doctor-report-filter-card {
  overflow: visible;
}

.clinical-filter-heading .doctor-report-filter-title-line {
  flex-wrap: wrap;
  align-items: baseline;
  gap: 9px;
  display: flex;
}

.clinical-filter-heading .doctor-report-filter-title-line strong {
  font-size: 13px;
}

.clinical-filter-heading .doctor-report-filter-title-line span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 400;
}

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

.doctor-report-select-field {
  gap: 6px;
  min-width: 0;
  display: grid;
}

.doctor-report-select-field > span {
  color: var(--text-muted);
  letter-spacing: .015em;
  font-size: 11px;
  font-weight: 800;
}

.doctor-report-select-control {
  min-width: 0;
  position: relative;
}

.doctor-report-select-control select {
  width: 100%;
  min-height: 38px;
  padding-right: 35px;
}

.doctor-report-select-control select:only-child {
  padding-right: 11px;
}

.doctor-report-select-control.has-clear {
  border: 1px solid color-mix(in srgb, var(--text-muted) 36%, var(--border));
  background: var(--card-bg, #fff);
  border-radius: 10px;
  grid-template-columns: minmax(0, 1fr) 38px;
  transition: border-color .18s, box-shadow .18s;
  display: grid;
  overflow: hidden;
}

.doctor-report-select-control.has-clear:focus-within {
  border-color: #e91e63;
  box-shadow: 0 0 0 3px #e91e6317;
}

.doctor-report-select-control.has-clear select {
  min-width: 0;
  box-shadow: none;
  border: 0;
  border-radius: 0;
  outline: 0;
  padding-right: 28px;
}

.doctor-report-select-control button {
  width: 23px;
  height: 23px;
  color: var(--text-muted);
  cursor: pointer;
  background: #64748b14;
  border: 0;
  border-radius: 7px;
  place-items: center;
  padding: 0;
  font-size: 16px;
  line-height: 1;
  display: grid;
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
}

.doctor-report-select-control.has-clear button {
  border-left: 1px solid var(--border);
  background: #64748b0d;
  border-radius: 0;
  width: 38px;
  height: 38px;
  position: static;
  transform: none;
}

.doctor-report-select-control button:hover {
  background: color-mix(in srgb, var(--accent, #e91e63) 10%, transparent);
  color: var(--accent, #e91e63);
}

.doctor-report-multi-select {
  min-width: 0;
  position: relative;
}

.doctor-report-multi-select[open], .doctor-report-preset-select[open] {
  z-index: 402;
}

.doctor-report-multi-select summary {
  border: 1px solid color-mix(in srgb, var(--text-muted) 36%, var(--border));
  background: var(--card-bg, #fff);
  min-height: 38px;
  color: var(--text);
  cursor: pointer;
  border-radius: 10px;
  justify-content: space-between;
  align-items: center;
  padding: 8px 11px;
  font-size: 11px;
  font-weight: 700;
  list-style: none;
  display: flex;
}

.doctor-report-multi-select summary::-webkit-details-marker {
  display: none;
}

.doctor-report-multi-select summary:after {
  content: "";
  width: 0;
  height: 0;
  color: var(--text-muted);
  border-top: 5px solid;
  border-left: 4px solid #0000;
  border-right: 4px solid #0000;
  flex: none;
  margin-left: 10px;
  transition: transform .18s;
}

.doctor-report-multi-select[open] summary:after {
  transform: rotate(180deg);
}

.doctor-report-multi-select[open] summary {
  border-color: #e91e63;
  box-shadow: 0 0 0 3px #e91e6317;
}

.doctor-report-multi-menu {
  z-index: 403;
  border: 1px solid var(--border);
  background: var(--card-bg, #fff);
  border-radius: 12px;
  min-width: max(100%, 270px);
  max-width: min(360px, 100vw - 32px);
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  overflow: hidden;
  box-shadow: 0 16px 38px #0f172a29;
}

.doctor-report-multi-menu > div:first-child {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  padding: 9px 11px;
  display: flex;
}

.doctor-report-multi-menu > div:first-child strong {
  font-size: 11px;
}

.doctor-report-multi-menu button {
  color: #e91e63;
  cursor: pointer;
  background: none;
  border: 0;
  font-size: 10px;
  font-weight: 900;
}

.doctor-report-multi-menu > div:last-child {
  max-height: 245px;
  padding: 6px;
  display: grid;
  overflow: auto;
}

.doctor-report-multi-menu label {
  cursor: pointer;
  border-radius: 8px;
  align-items: flex-start;
  gap: 8px;
  padding: 7px;
  display: flex;
}

.doctor-report-multi-menu label:hover {
  background: #e91e630f;
}

.doctor-report-multi-menu label.doctor-report-select-all {
  border-bottom: 1px solid var(--border);
  background: #e91e630b;
  border-radius: 7px 7px 2px 2px;
  margin-bottom: 4px;
  font-weight: 900;
}

.doctor-report-multi-menu input[type="checkbox"] {
  box-sizing: border-box;
  accent-color: #e91e63;
  flex: 0 0 14px;
  width: 14px;
  min-width: 14px;
  max-width: 14px;
  height: 14px;
  min-height: 14px;
  margin: 1px 0 0;
  padding: 0;
}

.doctor-report-multi-menu label span {
  color: var(--text);
  font-size: 11px;
  line-height: 1.35;
}

.doctor-report-multi-menu small {
  color: var(--text-muted);
  text-align: center;
  padding: 12px;
  font-size: 10px;
}

.doctor-report-preset-select {
  min-width: 0;
  position: relative;
}

.doctor-report-preset-select summary {
  border: 1px solid color-mix(in srgb, var(--text-muted) 36%, var(--border));
  background: var(--card-bg, #fff);
  min-height: 38px;
  color: var(--text);
  cursor: pointer;
  border-radius: 10px;
  justify-content: space-between;
  align-items: center;
  padding: 8px 11px;
  font-size: 11px;
  font-weight: 700;
  list-style: none;
  display: flex;
}

.doctor-report-preset-select summary::-webkit-details-marker {
  display: none;
}

.doctor-report-preset-select summary:after {
  content: "";
  width: 0;
  height: 0;
  color: var(--text-muted);
  border-top: 5px solid;
  border-left: 4px solid #0000;
  border-right: 4px solid #0000;
  flex: none;
  margin-left: 10px;
  transition: transform .18s;
}

.doctor-report-preset-select[open] summary {
  border-color: #e91e63;
  box-shadow: 0 0 0 3px #e91e6317;
}

.doctor-report-preset-select[open] summary:after {
  transform: rotate(180deg);
}

.doctor-report-preset-menu {
  z-index: 403;
  border: 1px solid var(--border);
  background: var(--card-bg, #fff);
  border-radius: 12px;
  width: 100%;
  min-width: 220px;
  max-height: 280px;
  padding: 6px;
  display: grid;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  overflow-y: auto;
  box-shadow: 0 16px 38px #0f172a33;
}

.doctor-report-preset-menu button {
  width: 100%;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 700;
}

.doctor-report-preset-menu button:hover, .doctor-report-preset-menu button.selected {
  color: var(--accent, #e91e63);
  background: #e91e6317;
}

.doctor-report-date-filter legend {
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

.doctor-report-date-filter {
  border-color: color-mix(in srgb, var(--text-muted) 42%, var(--border));
  box-shadow: 0 1px 2px #0f172a09;
}

.doctor-report-date-filter select {
  border-color: color-mix(in srgb, var(--text-muted) 48%, var(--border));
}

.doctor-report-date-filter select:focus {
  border-color: color-mix(in srgb, var(--accent, #e91e63) 58%, var(--border));
  outline: 2px solid color-mix(in srgb, var(--accent, #e91e63) 12%, transparent);
  outline-offset: 1px;
}

.doctor-report-date-step {
  background: color-mix(in srgb, var(--accent, #e91e63) 11%, var(--card-bg, #fff));
  width: 17px;
  height: 17px;
  color: var(--accent, #e91e63);
  border-radius: 50%;
  place-items: center;
  font-size: 9px;
  font-weight: 900;
  display: inline-grid;
}

.doctor-report-tabs {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card-bg, #fff) 88%, #f1f5f9);
  border-radius: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  display: grid;
  box-shadow: 0 8px 24px #0f172a0b;
}

.doctor-report-tabs button {
  min-width: 0;
  min-height: 62px;
  color: var(--text-muted);
  text-align: left;
  cursor: pointer;
  background: none;
  border: 1px solid #0000;
  border-radius: 12px;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  transition: border-color .18s, background .18s, color .18s, box-shadow .18s, transform .18s;
  display: flex;
}

.doctor-report-tabs button:hover {
  border-color: color-mix(in srgb, #e91e63 22%, var(--border));
  background: color-mix(in srgb, #e91e63 7%, var(--card-bg, #fff));
  color: #e91e63;
  transform: translateY(-1px);
  box-shadow: 0 7px 16px #e91e6314;
}

.doctor-report-tabs button:focus-visible {
  outline-offset: 2px;
  outline: 3px solid #e91e6338;
}

.doctor-report-tabs button.active {
  color: #fff;
  background: linear-gradient(135deg, #e91e63, #c2185b);
  border-color: #e91e63;
  box-shadow: 0 9px 22px #e91e633d;
}

.doctor-report-tabs button.active:hover {
  color: #fff;
  background: linear-gradient(135deg, #f02d72, #ad1457);
  border-color: #c2185b;
  box-shadow: 0 11px 25px #e91e634d;
}

.doctor-report-tabs button > span:last-child {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.doctor-report-tabs strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  overflow: hidden;
}

.doctor-report-tabs small {
  color: var(--text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  overflow: hidden;
}

.doctor-report-tab-icon {
  background: color-mix(in srgb, #64748b 9%, var(--card-bg, #fff));
  border-radius: 10px;
  flex: 0 0 36px;
  place-items: center;
  width: 36px;
  height: 36px;
  display: grid;
}

.doctor-report-tabs button.active small {
  color: #ffffffc7;
}

.doctor-report-tabs button.active .doctor-report-tab-icon {
  color: #fff;
  background: #ffffff29;
}

.doctor-report-tab-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8px;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 18px;
  height: 18px;
}

.doctor-report-table-card {
  border-radius: 16px;
  min-width: 0;
  padding: 0;
  overflow: hidden;
}

.doctor-report-table-heading {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  display: flex;
}

.doctor-report-table-heading > div:first-child {
  gap: 4px;
  display: grid;
}

.doctor-report-table-heading strong {
  font-size: 15px;
}

.doctor-report-table-heading span {
  color: var(--text-muted);
  font-size: 11px;
}

.doctor-report-table-actions {
  align-items: center;
  gap: 10px;
  display: flex;
}

.doctor-report-universal-search {
  width: clamp(260px, 28vw, 430px);
  display: block;
  position: relative;
}

.doctor-report-universal-search input {
  border: 1px solid color-mix(in srgb, var(--text-muted) 34%, var(--border));
  background: var(--card-bg, #fff);
  width: 100%;
  min-height: 36px;
  color: var(--text);
  border-radius: 10px;
  padding: 7px 36px;
  font-size: 11px;
  transition: border-color .18s, box-shadow .18s;
}

.doctor-report-universal-search input:focus {
  border-color: color-mix(in srgb, var(--accent, #e91e63) 58%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #e91e63) 10%, transparent);
  outline: 0;
}

.doctor-report-search-icon {
  z-index: 1;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  place-items: center;
  display: grid;
  position: absolute;
  top: 50%;
  left: 11px;
  transform: translateY(-50%);
}

.doctor-report-search-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2px;
  stroke-linecap: round;
  width: 15px;
  height: 15px;
}

.doctor-report-universal-search button {
  width: 23px;
  height: 23px;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 7px;
  place-items: center;
  padding: 0;
  font-size: 16px;
  display: grid;
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
}

.doctor-report-universal-search button:hover {
  background: color-mix(in srgb, var(--accent, #e91e63) 9%, transparent);
  color: var(--accent, #e91e63);
}

.doctor-report-table-scroll {
  overflow-x: auto;
}

.doctor-report-table {
  min-width: 1050px;
}

.doctor-report-table th {
  white-space: nowrap;
  padding: 11px 13px;
  font-size: 10px;
}

.doctor-report-table td {
  padding: 13px;
  font-size: 12px;
}

.doctor-report-doctor-wise-scroll {
  overflow-x: hidden;
}

.doctor-report-doctor-wise-table {
  border: 1px solid color-mix(in srgb, var(--text-main) 18%, var(--border));
  border-collapse: collapse;
  table-layout: fixed;
  width: calc(100% - 24px);
  min-width: 0;
  margin: 12px;
}

.doctor-report-doctor-wise-table th, .doctor-report-doctor-wise-table td {
  border-right: 1px solid color-mix(in srgb, var(--text-main) 16%, var(--border));
  border-bottom: 1px solid color-mix(in srgb, var(--text-main) 16%, var(--border));
}

.doctor-report-doctor-wise-table th:last-child, .doctor-report-doctor-wise-table td:last-child {
  border-right: 0;
}

.doctor-report-doctor-wise-table tbody tr:last-child td {
  border-bottom: 0;
}

.doctor-report-doctor-wise-table th {
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  border-bottom-width: 2px;
  padding: 9px 5px;
  font-weight: 800;
  line-height: 1.15;
}

.doctor-report-doctor-wise-table td {
  padding: 10px 6px;
  line-height: 1.2;
}

.doctor-report-doctor-wise-table th:first-child {
  width: 9%;
}

.doctor-report-doctor-wise-table th:nth-child(2) {
  width: 12%;
}

.doctor-report-doctor-wise-table th:nth-child(3) {
  width: 4%;
}

.doctor-report-doctor-wise-table th:nth-child(4), .doctor-report-doctor-wise-table th:nth-child(5) {
  width: 8%;
}

.doctor-report-doctor-wise-table th:nth-child(6) {
  width: 8.5%;
}

.doctor-report-doctor-wise-table th:nth-child(7), .doctor-report-doctor-wise-table th:nth-child(8) {
  width: 7%;
}

.doctor-report-doctor-wise-table th:nth-child(9) {
  width: 7.5%;
}

.doctor-report-doctor-wise-table th:nth-child(10) {
  width: 5%;
}

.doctor-report-doctor-wise-table th:nth-child(11) {
  width: 6.5%;
}

.doctor-report-doctor-wise-table th:nth-child(12) {
  width: 8%;
}

.doctor-report-doctor-wise-table th:nth-child(13) {
  width: 9.5%;
}

.doctor-report-doctor-wise-table tbody td:nth-child(-n+2) {
  text-align: left;
  overflow-wrap: anywhere;
}

.doctor-report-doctor-wise-table th:first-child, .doctor-report-doctor-wise-table td:first-child {
  padding-left: 12px;
}

.doctor-report-doctor-wise-table th:last-child, .doctor-report-doctor-wise-table td:last-child {
  padding-right: 12px;
}

.doctor-report-doctor-wise-table tbody td:nth-child(n+3) {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.doctor-report-day-to-day-table {
  border-collapse: collapse;
  table-layout: auto;
  min-width: 1580px;
}

.doctor-report-day-to-day-table th, .doctor-report-day-to-day-table td {
  border: 1px solid color-mix(in srgb, #111827 34%, var(--border));
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  padding: 12px 14px;
  line-height: 1.25;
}

.doctor-report-day-to-day-table th {
  color: var(--text-main);
  letter-spacing: .015em;
  border-top-width: 2px;
  border-bottom-width: 2px;
  font-size: 10px;
  font-weight: 800;
}

.doctor-report-day-to-day-table th:first-child, .doctor-report-day-to-day-table td:first-child {
  text-align: left;
  min-width: 112px;
}

.doctor-report-day-to-day-table tbody tr:hover td {
  background: color-mix(in srgb, var(--primary, #e60065) 3%, var(--card-bg, #fff));
}

.doctor-report-table td > strong, .doctor-report-table td > small {
  display: block;
}

.doctor-report-table td > small {
  color: var(--text-muted);
  margin-top: 3px;
  font-size: 10px;
}

.doctor-report-table .doctor-report-total-row td, .doctor-report-table .doctor-report-center-total-row td {
  background: color-mix(in srgb, var(--primary, #e60065) 6%, var(--card-bg, #fff));
  border-top: 1px solid color-mix(in srgb, var(--primary, #e60065) 18%, var(--border));
  font-weight: 700;
}

.doctor-report-table .doctor-report-grand-total-row td {
  background: color-mix(in srgb, var(--primary, #e60065) 14%, var(--card-bg, #fff));
  border-top: 2px solid color-mix(in srgb, var(--primary, #e60065) 35%, var(--border));
  color: var(--text-main);
  font-weight: 800;
}

.doctor-report-cell-line {
  white-space: nowrap;
  margin: 2px 0;
  display: block;
}

.doctor-report-patient-row {
  cursor: pointer;
  transition: background .15s;
}

.doctor-report-patient-row:hover, .doctor-report-patient-row:focus {
  background: #e91e630b;
  outline: 0;
}

.doctor-report-pagination {
  border-top: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  display: flex;
}

.doctor-report-pagination > span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}

.doctor-report-pagination > div {
  gap: 8px;
  display: flex;
}

.clinical-patient-drawer.doctor-report-patient-drawer {
  width: min(520px, 100%);
}

.clinical-drawer-content.doctor-report-patient-drawer-content {
  gap: 14px;
  padding: 18px 22px 30px;
}

.doctor-report-patient-drawer-content section {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-muted) 58%, var(--card-bg, #fff));
  border-radius: 14px;
  gap: 12px;
  padding: 16px;
  display: grid;
}

.doctor-report-patient-drawer-content h4 {
  color: var(--text);
  letter-spacing: .035em;
  text-transform: uppercase;
  margin: 0;
  font-size: 12px;
  font-weight: 900;
}

.doctor-report-patient-drawer-content dl {
  gap: 0;
  margin: 0;
  display: grid;
}

.doctor-report-patient-drawer-content dl > div {
  border-bottom: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  display: grid;
}

.doctor-report-patient-drawer-content dl > div:first-child {
  padding-top: 0;
}

.doctor-report-patient-drawer-content dl > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.doctor-report-patient-drawer-content dt {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 750;
}

.doctor-report-patient-drawer-content dd {
  min-width: 0;
  color: var(--text);
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 12px;
  font-weight: 800;
}

.doctor-report-patient-drawer-content article {
  border: 1px solid color-mix(in srgb, var(--border) 84%, transparent);
  background: var(--card-bg, #fff);
  border-radius: 11px;
  gap: 4px;
  padding: 11px 12px;
  display: grid;
}

.doctor-report-patient-drawer-content article strong {
  color: var(--text);
  font-size: 12px;
}

.doctor-report-patient-drawer-content article span, .doctor-report-patient-drawer-content p {
  color: var(--text-muted);
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}

.doctor-report-day-filter-card, .doctor-report-view-filter-card {
  z-index: 20;
  gap: 14px;
  padding: 18px 20px;
  display: grid;
  position: relative;
  overflow: visible;
}

.doctor-report-day-filter-card .clinical-filter-heading, .doctor-report-view-filter-card .clinical-filter-heading {
  border-bottom: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
  margin: 0;
  padding: 0 0 12px;
}

.doctor-report-day-filter-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
  width: 100%;
  display: grid;
}

.doctor-report-wise-filter-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
  width: 100%;
  display: grid;
}

.doctor-report-wise-filter-grid > *, .doctor-report-day-filter-grid .doctor-report-select-field, .doctor-report-day-date-field, .doctor-report-day-date-control {
  min-width: 0;
}

.doctor-report-day-date-control {
  gap: 6px;
  display: grid;
}

.doctor-report-day-date-control > span, .doctor-report-day-custom-range label > span {
  color: var(--text-muted);
  letter-spacing: .015em;
  font-size: 11px;
  font-weight: 800;
}

.doctor-report-day-date-field b {
  color: #e91e63;
  font-weight: 900;
}

.doctor-report-day-date-field select, .doctor-report-day-custom-range input {
  border: 1px solid color-mix(in srgb, var(--text-muted) 36%, var(--border));
  background: var(--card-bg, #fff);
  width: 100%;
  min-height: 38px;
  color: var(--text);
  border-radius: 10px;
  padding: 8px 11px;
  font-size: 11px;
  font-weight: 700;
}

.doctor-report-day-date-field select:focus, .doctor-report-day-custom-range input:focus {
  border-color: #e91e63;
  outline: 0;
  box-shadow: 0 0 0 3px #e91e6317;
}

.doctor-report-day-custom-range {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card-bg, #fff) 90%, #f8fafc);
  border-radius: 11px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
  padding: 11px;
  display: grid;
}

.doctor-report-day-custom-range label {
  gap: 5px;
  min-width: 0;
  display: grid;
}

.doctor-report-view-filter-actions {
  border-top: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  padding-top: 14px;
  display: flex;
}

.doctor-report-view-filter-actions .btn {
  justify-content: center;
  min-width: 118px;
  min-height: 36px;
}

.doctor-report-empty-cell {
  height: 250px;
  text-align: center !important;
  white-space: normal !important;
}

.doctor-report-empty-cell > * {
  margin-inline: auto;
  display: block;
}

.doctor-report-empty-cell strong {
  color: var(--text);
  margin-top: 12px;
  font-size: 14px;
}

.doctor-report-empty-cell small {
  max-width: 470px;
  color: var(--text-muted);
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.55;
}

.doctor-report-empty-icon {
  background: color-mix(in srgb, var(--accent, #e91e63) 8%, var(--card-bg, #fff));
  width: 46px;
  height: 46px;
  color: var(--accent, #e91e63);
  border-radius: 14px;
  place-items: center;
  display: grid;
}

.doctor-report-empty-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8px;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 21px;
  height: 21px;
}

@media (max-width: 1450px) {
  .doctor-report-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  .doctor-report-tabs {
    grid-template-columns: 1fr;
  }

  .doctor-report-tabs button {
    min-height: 54px;
  }

  .doctor-report-table-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .doctor-report-table-actions {
    justify-content: space-between;
    width: 100%;
  }

  .doctor-report-universal-search {
    flex: 1;
    width: auto;
  }

  .doctor-report-patient-drawer-content dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 560px) {
  .doctor-report-table-actions {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .doctor-report-universal-search {
    flex-basis: 100%;
  }
}

@media (max-width: 700px) {
  .doctor-report-filter-grid {
    grid-template-columns: 1fr;
  }

  .doctor-report-day-filter-grid, .doctor-report-wise-filter-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .doctor-report-view-filter-actions {
    justify-content: stretch;
  }

  .doctor-report-view-filter-actions .btn {
    flex: 1;
  }
}

.daily-clinical-report-page {
  gap: 16px;
}

.daily-clinical-filter-card {
  gap: 16px;
  padding: 18px 20px;
  display: grid;
  overflow: visible;
}

.daily-clinical-filter-card .clinical-filter-heading {
  border-bottom: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
  margin: 0;
  padding: 0 0 13px;
}

.daily-clinical-filter-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px 18px;
  display: grid;
}

.daily-clinical-select-field {
  gap: 6px;
  min-width: 0;
  display: grid;
}

.daily-clinical-select-field > span, .daily-clinical-multi-field > span, .daily-clinical-custom-range label > span {
  color: var(--text-muted);
  letter-spacing: .015em;
  font-size: 11px;
  font-weight: 800;
}

.daily-clinical-select-field select, .daily-clinical-custom-range input {
  border: 1px solid color-mix(in srgb, var(--text-muted) 36%, var(--border));
  background: var(--card-bg, #fff);
  width: 100%;
  min-height: 38px;
  color: var(--text);
  font: inherit;
  border-radius: 10px;
  padding: 8px 11px;
}

.daily-clinical-select-field select:focus, .daily-clinical-custom-range input:focus {
  border-color: #e91e63;
  outline: 0;
  box-shadow: 0 0 0 3px #e91e6317;
}

.daily-clinical-custom-range {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card-bg, #fff) 91%, #f8fafc);
  border-radius: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  display: grid;
}

.daily-clinical-custom-range label {
  gap: 6px;
  display: grid;
}

.daily-clinical-filter-footer {
  margin-top: 0;
}

.daily-clinical-view-card {
  border-radius: 16px;
  min-width: 0;
  min-height: 300px;
  padding: 0;
  overflow: hidden;
}

.daily-clinical-view-heading {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  display: flex;
}

.daily-clinical-view-heading > div {
  gap: 4px;
  display: grid;
}

.daily-clinical-view-heading > div > span {
  color: var(--text-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 900;
}

.daily-clinical-view-heading strong {
  font-size: 15px;
}

.daily-clinical-view-badge {
  color: #e91e63;
  background: #e91e6314;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 900;
}

.daily-clinical-empty-state {
  text-align: center;
  place-content: center;
  justify-items: center;
  min-height: 235px;
  padding: 30px;
  display: grid;
}

.daily-clinical-empty-state strong {
  margin-top: 13px;
  font-size: 14px;
}

.daily-clinical-empty-state small {
  max-width: 510px;
  color: var(--text-muted);
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.6;
}

.daily-clinical-filter-card .clinical-filter-heading {
  align-items: center;
  gap: 16px;
  margin: 0;
}

.daily-clinical-filter-card .doctor-report-filter-title-line {
  min-width: 0;
}

.daily-clinical-filter-card .doctor-report-filter-title-line strong {
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.daily-clinical-filter-card .doctor-report-filter-title-line span {
  color: var(--text-muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
}

.daily-clinical-filter-card .clinical-data-status {
  color: #475569;
  min-height: 28px;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.daily-clinical-filter-card .clinical-data-status:before {
  width: 7px;
  height: 7px;
}

.daily-clinical-filter-grid > * {
  min-width: 0;
}

.daily-clinical-filter-card .daily-clinical-select-field > span, .daily-clinical-filter-card .daily-clinical-multi-field > span, .daily-clinical-filter-card .daily-clinical-custom-range label > span {
  min-height: 15px;
  color: var(--text-muted);
  letter-spacing: .015em;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.daily-clinical-filter-card .daily-clinical-select-field select, .daily-clinical-filter-card .doctor-report-multi-select summary, .daily-clinical-filter-card .daily-clinical-custom-range input {
  box-sizing: border-box;
  border: 1px solid color-mix(in srgb, var(--text-muted) 36%, var(--border));
  background: var(--card-bg, #fff);
  width: 100%;
  height: 40px;
  min-height: 40px;
  color: var(--text);
  border-radius: 10px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.daily-clinical-filter-card .doctor-report-multi-select summary {
  justify-content: space-between;
}

.daily-clinical-filter-footer {
  border-top: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
  align-items: center;
  gap: 18px;
  margin: 0;
  padding-top: 14px;
}

.daily-clinical-filter-footer .clinical-filter-meta {
  gap: 6px 10px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.35;
}

.daily-clinical-filter-footer .clinical-filter-meta strong {
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
}

.daily-clinical-filter-footer .clinical-filter-actions {
  align-items: center;
}

.daily-clinical-filter-footer .clinical-filter-actions .btn {
  justify-content: center;
  min-width: 116px;
  min-height: 38px;
  font-size: 11px;
}

.daily-clinical-patient-table {
  min-width: 1450px;
}

.daily-clinical-global-search {
  width: clamp(260px, 28vw, 410px);
}

.daily-clinical-patient-table th, .daily-clinical-patient-table td {
  border-right: 1px solid color-mix(in srgb, var(--text-muted) 17%, var(--border));
  border-bottom: 1px solid color-mix(in srgb, var(--text-muted) 23%, var(--border));
}

.daily-clinical-patient-table thead th {
  border-top: 2px solid color-mix(in srgb, var(--primary, #e60065) 42%, var(--border));
  border-bottom: 2px solid color-mix(in srgb, var(--primary, #e60065) 32%, var(--border));
}

.daily-clinical-patient-table thead th > strong {
  color: var(--text-main);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  display: block;
}

.daily-clinical-patient-table tbody tr:hover td {
  background: color-mix(in srgb, var(--primary, #e60065) 2.5%, var(--card-bg, #fff));
}

.daily-clinical-patient-card {
  min-width: 0;
}

.daily-clinical-insights {
  gap: 16px;
  min-width: 0;
  display: grid;
}

.daily-clinical-insight-toolbar {
  border: 1px solid var(--border);
  background: var(--card-bg, #fff);
  border-radius: 16px;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  display: flex;
  box-shadow: 0 8px 24px #0f172a0b;
}

.daily-clinical-insight-toolbar > div {
  gap: 4px;
  display: grid;
}

.daily-clinical-insight-toolbar strong {
  font-size: 15px;
}

.daily-clinical-insight-toolbar span {
  color: var(--text-muted);
  font-size: 11px;
}

.daily-clinical-kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 12px;
  display: grid;
}

.daily-clinical-kpi-grid-six {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.daily-clinical-kpi {
  border: 1px solid var(--border);
  background: var(--card-bg, #fff);
  border-radius: 15px;
  gap: 7px;
  min-width: 0;
  padding: 16px;
  display: grid;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 22px #0f172a0b;
}

.daily-clinical-kpi:before {
  content: "";
  background: linear-gradient(#e91e63, #c2185b);
  width: 3px;
  position: absolute;
  inset: 0 auto 0 0;
}

.daily-clinical-kpi > span {
  color: var(--text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 900;
}

.daily-clinical-kpi strong {
  color: var(--text);
  font-size: 24px;
  line-height: 1;
}

.daily-clinical-kpi small {
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.4;
}

.daily-clinical-chart-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  display: grid;
}

.daily-clinical-chart-card {
  border: 1px solid var(--border);
  background: var(--card-bg, #fff);
  border-radius: 16px;
  min-width: 0;
  padding: 17px;
  box-shadow: 0 8px 24px #0f172a0b;
}

.daily-clinical-chart-card header {
  border-bottom: 1px solid var(--border);
  gap: 4px;
  padding-bottom: 13px;
  display: grid;
}

.daily-clinical-chart-card header strong {
  font-size: 13px;
}

.daily-clinical-chart-card header span {
  color: var(--text-muted);
  font-size: 10px;
}

.daily-clinical-bars {
  gap: 9px;
  margin-top: 14px;
  display: grid;
}

.daily-clinical-bars > div {
  grid-template-columns: minmax(105px, 1fr) minmax(120px, 2fr) 48px;
  align-items: center;
  gap: 10px;
  display: grid;
}

.daily-clinical-bars > div > span {
  color: var(--text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 700;
  overflow: hidden;
}

.daily-clinical-bars i {
  background: color-mix(in srgb, var(--border) 68%, transparent);
  border-radius: 999px;
  height: 8px;
  display: block;
  overflow: hidden;
}

.daily-clinical-bars i b {
  border-radius: inherit;
  background: linear-gradient(90deg, #e91e63, #f06292);
  height: 100%;
  display: block;
}

.daily-clinical-bars > div > strong {
  text-align: right;
  font-size: 10px;
}

.daily-clinical-bars p {
  color: var(--text-muted);
  text-align: center;
  margin: 22px 0;
  font-size: 11px;
}

.daily-clinical-summary-card {
  min-width: 0;
}

.daily-clinical-summary-card table {
  min-width: 1000px;
}

.daily-clinical-summary-table th, .daily-clinical-summary-table td {
  border-right: 1px solid color-mix(in srgb, var(--text-muted) 17%, var(--border));
  border-bottom: 1px solid color-mix(in srgb, var(--text-muted) 24%, var(--border));
}

.daily-clinical-summary-table thead th {
  border-top: 2px solid color-mix(in srgb, var(--primary, #e60065) 42%, var(--border));
  border-bottom: 2px solid color-mix(in srgb, var(--primary, #e60065) 32%, var(--border));
}

.daily-clinical-summary-table thead th > strong {
  color: var(--text-main);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  display: block;
}

.daily-clinical-summary-table tbody tr:not(.doctor-report-grand-total-row):hover td {
  background: color-mix(in srgb, var(--primary, #e60065) 2.5%, var(--card-bg, #fff));
}

.daily-clinical-insight-toolbar {
  border-color: color-mix(in srgb, #e91e63 22%, var(--border));
  background: radial-gradient(circle at 94% -25%, #e91e6324, transparent 38%),
    linear-gradient(135deg, color-mix(in srgb, var(--card-bg, #fff) 94%, #fce4ec), var(--card-bg, #fff));
  position: relative;
  overflow: hidden;
}

.daily-clinical-insight-toolbar:before {
  content: "";
  background: linear-gradient(#e91e63, #c2185b 55%, #7c3aed);
  width: 4px;
  position: absolute;
  inset: 0 auto 0 0;
}

.daily-clinical-insight-toolbar strong {
  color: color-mix(in srgb, var(--text) 86%, #c2185b);
}

.daily-clinical-kpi {
  --kpi-accent: #e91e63;
  --kpi-accent-deep: #c2185b;
  border-color: color-mix(in srgb, var(--kpi-accent) 24%, var(--border));
  background: radial-gradient(circle at 105% -12%, color-mix(in srgb, var(--kpi-accent) 19%, transparent), transparent 43%),
    linear-gradient(145deg, color-mix(in srgb, var(--card-bg, #fff) 96%, var(--kpi-accent)), var(--card-bg, #fff));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--kpi-accent) 8%, transparent);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}

.daily-clinical-kpi:nth-child(2) {
  --kpi-accent: #8b5cf6;
  --kpi-accent-deep: #6d28d9;
}

.daily-clinical-kpi:nth-child(3) {
  --kpi-accent: #3b82f6;
  --kpi-accent-deep: #1d4ed8;
}

.daily-clinical-kpi:nth-child(4) {
  --kpi-accent: #14b8a6;
  --kpi-accent-deep: #0f766e;
}

.daily-clinical-kpi:nth-child(5) {
  --kpi-accent: #f59e0b;
  --kpi-accent-deep: #b45309;
}

.daily-clinical-kpi:nth-child(6) {
  --kpi-accent: #f97366;
  --kpi-accent-deep: #dc2626;
}

.daily-clinical-kpi:before {
  background: linear-gradient(180deg,var(--kpi-accent),var(--kpi-accent-deep));
  width: 4px;
}

.daily-clinical-kpi > * {
  z-index: 1;
  position: relative;
}

.daily-clinical-kpi strong {
  color: var(--kpi-accent-deep);
}

.daily-clinical-kpi:hover {
  border-color: color-mix(in srgb, var(--kpi-accent) 45%, var(--border));
  box-shadow: 0 14px 30px color-mix(in srgb, var(--kpi-accent) 13%, transparent);
  transform: translateY(-2px);
}

.daily-clinical-chart-card {
  --chart-accent: #e91e63;
  --chart-accent-deep: #c2185b;
  border-color: color-mix(in srgb, var(--chart-accent) 22%, var(--border));
  background: linear-gradient(145deg, color-mix(in srgb, var(--card-bg, #fff) 97%, var(--chart-accent)), var(--card-bg, #fff) 60%);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--chart-accent) 7%, transparent);
  transition: transform .18s, border-color .18s, box-shadow .18s;
  position: relative;
  overflow: hidden;
}

.daily-clinical-chart-card:nth-child(2) {
  --chart-accent: #8b5cf6;
  --chart-accent-deep: #6d28d9;
}

.daily-clinical-chart-card:nth-child(3) {
  --chart-accent: #14b8a6;
  --chart-accent-deep: #0f766e;
}

.daily-clinical-chart-card:nth-child(4) {
  --chart-accent: #f59e0b;
  --chart-accent-deep: #b45309;
}

.daily-clinical-chart-card:before {
  content: "";
  background: linear-gradient(90deg,var(--chart-accent-deep),var(--chart-accent),transparent 80%);
  height: 3px;
  position: absolute;
  inset: 0 0 auto;
}

.daily-clinical-chart-card:hover {
  border-color: color-mix(in srgb, var(--chart-accent) 40%, var(--border));
  box-shadow: 0 15px 32px color-mix(in srgb, var(--chart-accent) 11%, transparent);
  transform: translateY(-2px);
}

.daily-clinical-chart-card header {
  padding-left: 13px;
  position: relative;
}

.daily-clinical-chart-card header:before {
  content: "";
  background: linear-gradient(180deg,var(--chart-accent),var(--chart-accent-deep));
  border-radius: 999px;
  width: 4px;
  position: absolute;
  top: 2px;
  bottom: 14px;
  left: 0;
}

.daily-clinical-chart-card header strong {
  color: color-mix(in srgb, var(--text) 82%, var(--chart-accent-deep));
}

.daily-clinical-bars > div {
  --bar-start: var(--chart-accent-deep);
  --bar-end: var(--chart-accent);
}

.daily-clinical-bars > div:nth-child(6n+2) {
  --bar-start: #6d28d9;
  --bar-end: #a78bfa;
}

.daily-clinical-bars > div:nth-child(6n+3) {
  --bar-start: #1d4ed8;
  --bar-end: #60a5fa;
}

.daily-clinical-bars > div:nth-child(6n+4) {
  --bar-start: #0f766e;
  --bar-end: #2dd4bf;
}

.daily-clinical-bars > div:nth-child(6n+5) {
  --bar-start: #b45309;
  --bar-end: #fbbf24;
}

.daily-clinical-bars > div:nth-child(6n+6) {
  --bar-start: #be123c;
  --bar-end: #fb7185;
}

.daily-clinical-bars i {
  border: 1px solid color-mix(in srgb, var(--bar-end) 10%, transparent);
  background: color-mix(in srgb, var(--bar-end) 10%, var(--card-bg, #fff));
  height: 10px;
}

.daily-clinical-bars i b {
  background: linear-gradient(90deg,var(--bar-start),var(--bar-end));
  box-shadow: 0 2px 8px color-mix(in srgb, var(--bar-end) 30%, transparent);
}

.daily-clinical-bars > div > strong {
  color: var(--bar-start);
  font-weight: 900;
}

.daily-clinical-summary-card {
  border-color: color-mix(in srgb, #e91e63 18%, var(--border));
  box-shadow: 0 10px 26px #be185d0e;
}

.daily-clinical-summary-card .doctor-report-table-heading {
  background: linear-gradient(135deg, color-mix(in srgb, var(--card-bg, #fff) 92%, #fce4ec), var(--card-bg, #fff));
}

@media (prefers-reduced-motion: reduce) {
  .daily-clinical-kpi, .daily-clinical-chart-card {
    transition: none;
  }

  .daily-clinical-kpi:hover, .daily-clinical-chart-card:hover {
    transform: none;
  }
}

@media (max-width: 1050px) {
  .daily-clinical-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daily-clinical-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .daily-clinical-kpi-grid-six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .daily-clinical-filter-grid, .daily-clinical-custom-range {
    grid-template-columns: 1fr;
  }

  .daily-clinical-filter-card {
    padding: 15px;
  }

  .daily-clinical-filter-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .daily-clinical-filter-footer .clinical-filter-actions {
    width: 100%;
  }

  .daily-clinical-filter-footer .btn {
    flex: 1;
  }

  .daily-clinical-insight-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .daily-clinical-kpi-grid, .daily-clinical-chart-grid {
    grid-template-columns: 1fr;
  }

  .daily-clinical-bars > div {
    grid-template-columns: minmax(85px, 1fr) minmax(90px, 1.4fr) 40px;
  }
}

.doctor-kpi-report-page {
  gap: 16px;
  min-width: 0;
  padding-bottom: 32px;
  display: grid;
}

.doctor-kpi-filter-card {
  border-color: color-mix(in srgb, var(--primary) 12%, var(--border));
  gap: 16px;
  padding: 18px;
  display: grid;
  overflow: visible;
  box-shadow: 0 8px 24px #0f172a0b;
}

.doctor-kpi-filter-grid {
  grid-template-columns: minmax(210px, 1.25fr) minmax(210px, 1.25fr) minmax(175px, .8fr) minmax(185px, .8fr);
  align-items: end;
  gap: 12px;
  display: grid;
}

.doctor-kpi-filter-field {
  min-width: 0;
}

.doctor-kpi-as-of input {
  border: 1px solid color-mix(in srgb, var(--text-muted) 36%, var(--border));
  background: var(--card-bg, #fff);
  width: 100%;
  min-height: 40px;
  color: var(--text);
  font: inherit;
  border-radius: 10px;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 700;
}

.doctor-kpi-as-of input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  outline: 0;
}

.doctor-kpi-fy-card {
  border: 1px solid color-mix(in srgb,var(--primary) 22%,var(--border));
  background: linear-gradient(135deg,color-mix(in srgb,var(--primary) 7%,var(--card-bg, #fff)),var(--card-bg, #fff));
  border-radius: 12px;
  align-content: center;
  gap: 2px;
  min-height: 65px;
  padding: 9px 12px;
  display: grid;
}

.doctor-kpi-fy-card > span {
  color: var(--text-muted);
  letter-spacing: .035em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 850;
}

.doctor-kpi-fy-card strong {
  color: var(--primary);
  font-size: 15px;
}

.doctor-kpi-fy-card small {
  color: var(--text-muted);
  font-size: 9px;
}

.doctor-kpi-filter-footer {
  border-top: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 13px;
  display: flex;
}

.doctor-kpi-filter-footer > div:first-child {
  gap: 3px;
  display: grid;
}

.doctor-kpi-filter-footer > div:first-child strong {
  font-size: 11px;
}

.doctor-kpi-filter-footer > div:first-child span {
  color: var(--text-muted);
  font-size: 10px;
}

.doctor-kpi-filter-card .alert.info {
  border: 1px solid color-mix(in srgb,#0f766e 24%,var(--border));
  background: color-mix(in srgb,#0f766e 7%,var(--card-bg, #fff));
  color: color-mix(in srgb,#0f766e 86%,var(--text));
  border-radius: 11px;
  padding: 11px 13px;
  font-size: 11px;
  font-weight: 700;
}

.doctor-kpi-period-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.doctor-kpi-period-tabs button {
  min-height: 64px;
}

.doctor-kpi-table-card {
  min-width: 0;
  overflow: hidden;
}

.doctor-kpi-table-scroll {
  scrollbar-width: thin;
  scrollbar-color: #94a3b899 transparent;
  max-width: 100%;
}

.doctor-kpi-table {
  width: 100%;
  min-width: 1380px;
  margin-top: 0;
}

.doctor-kpi-table th:not(:first-child), .doctor-kpi-table td:not(:first-child) {
  text-align: center;
}

.doctor-kpi-table th:first-child, .doctor-kpi-table td:first-child {
  text-align: left;
  width: 190px;
  min-width: 190px;
}

.doctor-kpi-table tr.row-doctor td {
  background: var(--card-bg, #fff);
}

.doctor-kpi-table tr.row-centre td {
  background: color-mix(in srgb,var(--primary) 6%,#fff);
  font-weight: 800;
}

.doctor-kpi-table tr.row-feeder td {
  background: color-mix(in srgb,#8b5cf6 7%,var(--card-bg, #fff));
  font-weight: 850;
}

.doctor-kpi-table tr.row-total td {
  background: color-mix(in srgb,var(--primary) 14%,#fff);
  border-top: 2px solid color-mix(in srgb,var(--primary) 35%,var(--border));
  font-weight: 900;
}

.doctor-kpi-table td.doctor-kpi-pending-cell {
  background: color-mix(in srgb,#f59e0b 10%,var(--card-bg, #fff));
  color: #92400e;
}

.doctor-kpi-table td.doctor-kpi-unavailable-cell {
  background: color-mix(in srgb,#dc2626 7%,var(--card-bg, #fff));
  color: #991b1b;
}

.doctor-kpi-empty-cell {
  background: var(--card-bg, #fff);
}

.doctor-kpi-generating-icon {
  animation: 1.8s ease-in-out infinite doctor-kpi-generating-pulse;
}

.doctor-kpi-generating-icon svg path {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: 1.2s ease-in-out infinite doctor-kpi-generating-bar;
}

.doctor-kpi-generating-icon svg path:nth-child(2) {
  animation-delay: .12s;
}

.doctor-kpi-generating-icon svg path:nth-child(3) {
  animation-delay: .24s;
}

.doctor-kpi-generating-icon svg path:nth-child(4) {
  animation-delay: .36s;
}

@keyframes doctor-kpi-generating-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 color-mix(in srgb,var(--accent, #e91e63) 0%,transparent);
  }

  50% {
    box-shadow: 0 0 0 7px color-mix(in srgb,var(--accent, #e91e63) 9%,transparent);
  }
}

@keyframes doctor-kpi-generating-bar {
  0%, 100% {
    opacity: .42;
    transform: scaleY(.42);
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .doctor-kpi-generating-icon, .doctor-kpi-generating-icon svg path {
    animation: none;
  }
}

.doctor-kpi-formula-note {
  border-top: 1px solid var(--border);
  background: linear-gradient(90deg,color-mix(in srgb,var(--primary) 5%,var(--card-bg, #fff)),var(--card-bg, #fff));
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  display: flex;
}

.doctor-kpi-formula-note strong {
  color: var(--primary);
  flex: none;
  font-size: 10px;
}

.doctor-kpi-formula-note span {
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.45;
}

body.admin-reporting-active .admin-pdf-export-btn {
  border: 1px solid var(--primary) !important;
  color: var(--primary) !important;
  box-shadow: none !important;
  background: none !important;
  transform: none !important;
}

body.admin-reporting-active .admin-pdf-export-btn:hover {
  border-color: var(--primary) !important;
  background: var(--primary-light) !important;
  color: var(--primary) !important;
  box-shadow: none !important;
  transform: none !important;
}

body.admin-reporting-active .admin-pdf-export-btn:focus-visible {
  outline: 3px solid var(--primary-glow);
  outline-offset: 2px;
}

body.admin-reporting-active.dark-mode .admin-pdf-export-btn, body.admin-reporting-active.dark-mode .admin-pdf-export-btn:hover {
  color: #f1f5f9 !important;
  background: #1e293b !important;
  border-color: #ffffff29 !important;
}

body.admin-reporting-active.dark-mode .admin-pdf-export-btn:hover {
  background: #243044 !important;
}

.doctor-kpi-definitions-backdrop {
  z-index: 100200;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  background: #0f172a8c;
  place-items: center;
  padding: 24px;
  display: grid;
  position: fixed;
  inset: 0;
}

.doctor-kpi-definitions-modal {
  border: 1px solid color-mix(in srgb,var(--primary) 20%,var(--border));
  background: var(--card-bg, #fff);
  width: min(1040px, 100%);
  max-height: min(88vh, 920px);
  color: var(--text);
  border-radius: 20px;
  outline: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  display: grid;
  overflow: hidden;
  box-shadow: 0 30px 90px #0f172a52;
}

.doctor-kpi-definitions-header {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg,color-mix(in srgb,var(--primary) 9%,var(--card-bg, #fff)),var(--card-bg, #fff));
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 24px 18px;
  display: flex;
}

.doctor-kpi-definitions-header span, .doctor-kpi-definition-heading span {
  color: var(--primary);
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 900;
  display: block;
}

.doctor-kpi-definitions-header h3 {
  margin: 0;
  font-family: Outfit, sans-serif;
  font-size: 24px;
  line-height: 1.15;
}

.doctor-kpi-definitions-header p {
  color: var(--text-muted);
  margin: 6px 0 0;
  font-size: 12px;
}

.doctor-kpi-definitions-close {
  border: 1px solid var(--border);
  background: var(--surface-muted, #f8fafc);
  width: 38px;
  height: 38px;
  color: var(--text);
  cursor: pointer;
  border-radius: 12px;
  flex: none;
  font-size: 24px;
  line-height: 1;
}

.doctor-kpi-definitions-close:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.doctor-kpi-definitions-body {
  padding: 22px 24px 26px;
  overflow: auto;
}

.doctor-kpi-definition-section + .doctor-kpi-definition-section {
  margin-top: 28px;
}

.doctor-kpi-definition-heading {
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 14px;
  display: flex;
}

.doctor-kpi-definition-heading h4, .doctor-kpi-definition-rules h4 {
  margin: 0;
  font-family: Outfit, sans-serif;
  font-size: 18px;
}

.doctor-kpi-definition-heading > p {
  max-width: 390px;
  color: var(--text-muted);
  text-align: right;
  margin: 0;
  font-size: 11px;
}

.doctor-kpi-period-definition-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  display: grid;
}

.doctor-kpi-period-definition-grid article {
  border: 1px solid color-mix(in srgb,var(--primary) 13%,var(--border));
  background: color-mix(in srgb,var(--primary) 4%,var(--card-bg, #fff));
  border-radius: 14px;
  padding: 16px;
}

.doctor-kpi-period-definition-grid strong {
  color: var(--primary);
  font-size: 13px;
  display: block;
}

.doctor-kpi-period-definition-grid p {
  color: var(--text);
  margin: 7px 0;
  font-size: 11px;
  line-height: 1.55;
}

.doctor-kpi-period-definition-grid small {
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.45;
  display: block;
}

.doctor-kpi-column-definition-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  display: grid;
}

.doctor-kpi-column-definition-list > article {
  border: 1px solid var(--border);
  background: var(--card-bg, #fff);
  border-radius: 14px;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  padding: 15px;
  display: grid;
}

.doctor-kpi-definition-number {
  background: color-mix(in srgb,var(--primary) 11%,var(--card-bg, #fff));
  width: 32px;
  height: 32px;
  color: var(--primary);
  border-radius: 10px;
  place-items: center;
  font-size: 10px;
  font-weight: 900;
  display: grid;
}

.doctor-kpi-column-definition-list h5 {
  margin: 1px 0 5px;
  font-size: 13px;
}

.doctor-kpi-column-definition-list p {
  color: var(--text-muted);
  margin: 0 0 10px;
  font-size: 11px;
  line-height: 1.5;
}

.doctor-kpi-column-definition-list dl {
  gap: 7px;
  margin: 0;
  display: grid;
}

.doctor-kpi-column-definition-list dl > div {
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 8px;
  display: grid;
}

.doctor-kpi-column-definition-list dt {
  color: var(--text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 900;
}

.doctor-kpi-column-definition-list dd {
  color: var(--text);
  margin: 0;
  font-size: 10px;
  line-height: 1.45;
}

.doctor-kpi-definition-rules {
  border: 1px solid color-mix(in srgb,#0f766e 24%,var(--border));
  background: color-mix(in srgb,#0f766e 6%,var(--card-bg, #fff));
  border-radius: 14px;
  margin-top: 24px;
  padding: 17px 18px;
}

.doctor-kpi-definition-rules ul {
  gap: 7px;
  margin: 10px 0 0;
  padding-left: 20px;
  display: grid;
}

.doctor-kpi-definition-rules li {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.5;
}

.doctor-kpi-definitions-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-muted, #f8fafc);
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  display: flex;
}

.doctor-kpi-definitions-footer span {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
}

.native-operational-report-page {
  gap: 20px;
}

.native-operational-filter-card {
  z-index: 20;
  border: 1px solid color-mix(in srgb,var(--primary) 10%,var(--border));
  padding: 18px;
  position: relative;
  overflow: visible;
  box-shadow: 0 8px 24px #0f172a0b;
}

:is(.enterprise-filter-card:has(.doctor-report-multi-select[open]), .enterprise-filter-card:has(.doctor-report-preset-select[open])) {
  z-index: 400;
  overflow: visible;
}

.native-operational-filter-grid {
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  align-items: end;
  gap: 12px;
  display: grid;
}

.native-operational-filter-grid .doctor-report-select-field {
  min-width: 0;
}

.native-operational-filter-grid select {
  border: 1px solid color-mix(in srgb,#64748b 42%,var(--border));
  background: var(--card-bg, #fff);
  width: 100%;
  min-height: 40px;
  color: var(--text);
  border-radius: 9px;
  padding: 8px 34px 8px 11px;
}

.native-report-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  display: grid;
}

.native-report-kpi {
  border-top: 3px solid color-mix(in srgb,var(--primary) 70%,#fff);
  align-content: center;
  gap: 5px;
  min-height: 112px;
  padding: 16px 18px;
  display: grid;
}

.native-report-kpi span {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 11px;
  font-weight: 750;
}

.native-report-kpi strong {
  color: var(--primary);
  font-size: 24px;
  line-height: 1;
}

.native-report-kpi small {
  color: var(--text-muted);
  font-size: 10px;
}

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

.native-pivot-table {
  min-width: 760px;
}

.doctor-ivf-wide-table {
  --doctor-ivf-structure-line: color-mix(in srgb, var(--text-main, #0f172a) 72%, var(--border));
  --doctor-ivf-structure-line-strong: color-mix(in srgb, var(--text-main, #0f172a) 84%, var(--border));
  border-collapse: separate;
  border-spacing: 0;
  min-width: max-content;
}

.doctor-ivf-wide-table th, .doctor-ivf-wide-table td {
  text-align: center;
  border-right: 1px solid var(--doctor-ivf-structure-line);
  border-bottom: 1px solid color-mix(in srgb, var(--text-muted) 22%, var(--border));
  min-width: 92px;
}

.doctor-ivf-wide-table th {
  white-space: normal;
  border-top: 2px solid var(--doctor-ivf-structure-line);
  border-bottom: 2px solid var(--doctor-ivf-structure-line);
  max-width: 132px;
  font-weight: 800;
  line-height: 1.25;
}

.doctor-ivf-wide-table thead th > strong {
  color: var(--text-main);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  display: block;
}

.doctor-ivf-wide-table .doctor-ivf-group-base {
  --doctor-ivf-group-color: #475569;
}

.doctor-ivf-wide-table .doctor-ivf-group-b2b {
  --doctor-ivf-group-color: #d4145a;
}

.doctor-ivf-wide-table .doctor-ivf-group-b2c {
  --doctor-ivf-group-color: #8b5cf6;
}

.doctor-ivf-wide-table .doctor-ivf-group-btl {
  --doctor-ivf-group-color: #ea580c;
}

.doctor-ivf-wide-table .doctor-ivf-group-overall-performance {
  --doctor-ivf-group-color: #db2777;
}

.doctor-ivf-wide-table .doctor-ivf-group-procedures {
  --doctor-ivf-group-color: #d97706;
}

.doctor-ivf-wide-table .doctor-ivf-group-band {
  background: color-mix(in srgb, var(--doctor-ivf-group-color) 18%, var(--card-bg, #fff));
  border-bottom-color: var(--doctor-ivf-structure-line);
  padding: 8px 10px;
}

.doctor-ivf-wide-table .doctor-ivf-group-band > strong {
  color: color-mix(in srgb, var(--doctor-ivf-group-color) 84%, var(--text-main));
  letter-spacing: .07em;
  text-transform: uppercase;
  font-size: 10px;
}

.doctor-ivf-wide-table thead .doctor-ivf-measure-cell {
  background: color-mix(in srgb, var(--doctor-ivf-group-color) 10%, var(--card-bg, #fff));
}

.doctor-ivf-wide-table tbody .doctor-ivf-measure-cell {
  background: color-mix(in srgb, var(--doctor-ivf-group-color) 3%, var(--card-bg, #fff));
}

.doctor-ivf-wide-table .doctor-ivf-group-start-column {
  border-left: 2px solid var(--doctor-ivf-structure-line);
}

.doctor-ivf-wide-table tr > :last-child {
  border-right: 2px solid var(--doctor-ivf-structure-line-strong);
}

.doctor-ivf-wide-table .doctor-report-center-total-row td.doctor-ivf-measure-cell {
  background: color-mix(in srgb, var(--doctor-ivf-group-color) 8%, var(--card-bg, #fff));
}

.doctor-ivf-wide-table .doctor-report-grand-total-row td.doctor-ivf-measure-cell {
  background: color-mix(in srgb, var(--doctor-ivf-group-color) 14%, var(--card-bg, #fff));
}

.doctor-ivf-wide-table .doctor-ivf-center-column {
  z-index: 2;
  text-align: left;
  border-left: 2px solid var(--doctor-ivf-structure-line-strong);
  background: var(--card-bg, #fff);
  border-right: 0;
  min-width: 170px;
  max-width: 170px;
  position: sticky;
  left: 0;
}

.doctor-ivf-wide-table .doctor-ivf-doctor-column {
  z-index: 2;
  text-align: left;
  border-left: 2px solid var(--doctor-ivf-structure-line);
  background: var(--card-bg, #fff);
  min-width: 175px;
  max-width: 175px;
  position: sticky;
  left: 170px;
  box-shadow: 7px 0 12px -12px #0f172a99;
}

.doctor-ivf-wide-table thead .doctor-ivf-center-column, .doctor-ivf-wide-table thead .doctor-ivf-doctor-column {
  z-index: 4;
}

.doctor-ivf-wide-table .doctor-ivf-merged-center-cell {
  vertical-align: middle;
  color: var(--primary, #e60065);
  font-weight: 800;
}

.doctor-ivf-wide-table .doctor-ivf-center-group-start td {
  border-top: 2px solid var(--doctor-ivf-structure-line);
}

.doctor-ivf-wide-table .doctor-ivf-center-group-start .doctor-ivf-center-column {
  border-top-color: var(--doctor-ivf-structure-line-strong);
}

.doctor-ivf-wide-table .doctor-report-center-total-row td {
  border-top-color: var(--doctor-ivf-structure-line);
  border-bottom: 2px solid var(--doctor-ivf-structure-line);
  background: color-mix(in srgb, #64748b 13%, var(--card-bg, #fff));
  color: var(--text-main);
  font-weight: 800;
}

.doctor-ivf-wide-table .doctor-report-center-total-row td.doctor-ivf-measure-cell, .doctor-ivf-wide-table .doctor-report-center-total-row .doctor-ivf-center-column, .doctor-ivf-wide-table .doctor-report-center-total-row .doctor-ivf-doctor-column {
  background: color-mix(in srgb, #64748b 13%, var(--card-bg, #fff));
}

.doctor-ivf-wide-table .doctor-report-grand-total-row td {
  border-top: 2px solid var(--doctor-ivf-structure-line-strong);
  border-bottom: 2px solid var(--doctor-ivf-structure-line-strong);
  background: color-mix(in srgb, var(--primary, #e60065) 17%, var(--card-bg, #fff));
  color: var(--text-main);
  font-weight: 900;
}

.doctor-ivf-wide-table .doctor-report-grand-total-row td.doctor-ivf-measure-cell, .doctor-ivf-wide-table .doctor-report-grand-total-row .doctor-ivf-center-column, .doctor-ivf-wide-table .doctor-report-grand-total-row .doctor-ivf-doctor-column {
  background: color-mix(in srgb, var(--primary, #e60065) 17%, var(--card-bg, #fff));
  color: var(--text-main);
}

@media (max-width: 1000px) {
  .native-operational-filter-grid, .native-report-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .native-operational-filter-grid, .native-report-kpi-grid, .native-report-view-tabs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .doctor-kpi-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .doctor-kpi-filter-grid, .doctor-kpi-period-tabs {
    grid-template-columns: 1fr;
  }

  .doctor-kpi-filter-card {
    padding: 15px;
  }

  .doctor-kpi-filter-footer, .doctor-kpi-formula-note {
    flex-direction: column;
    align-items: stretch;
  }

  .doctor-kpi-filter-footer .clinical-filter-actions {
    width: 100%;
  }

  .doctor-kpi-filter-footer .btn {
    flex: 1;
  }

  .doctor-kpi-table th:first-child, .doctor-kpi-table td:first-child {
    width: 190px;
    min-width: 190px;
  }

  .doctor-kpi-definitions-backdrop {
    padding: 10px;
  }

  .doctor-kpi-definitions-modal {
    border-radius: 15px;
    max-height: 94vh;
  }

  .doctor-kpi-definitions-header, .doctor-kpi-definitions-body, .doctor-kpi-definitions-footer {
    padding-left: 15px;
    padding-right: 15px;
  }

  .doctor-kpi-definition-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .doctor-kpi-definition-heading > p {
    text-align: left;
  }

  .doctor-kpi-period-definition-grid, .doctor-kpi-column-definition-list {
    grid-template-columns: 1fr;
  }

  .doctor-kpi-column-definition-list dl > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

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

.business-daily-revenue {
  gap: 18px;
  min-width: 0;
  max-width: 100%;
  padding-bottom: 32px;
  display: grid;
  overflow-x: hidden;
}

.business-daily-revenue > * {
  min-width: 0;
  max-width: 100%;
}

.daily-revenue-filter-card {
  z-index: 20;
  margin: 0;
  position: relative;
  overflow: visible;
}

.daily-revenue-filter-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.daily-revenue-centre-field {
  min-width: 0;
}

.daily-revenue-centre-picker {
  min-width: 0;
  position: relative;
}

.daily-revenue-centre-picker summary {
  border: 1px solid var(--border);
  background: var(--surface);
  width: 100%;
  height: 38px;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  text-overflow: ellipsis;
  border-radius: 11px;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  list-style: none;
  display: flex;
  overflow: hidden;
}

.daily-revenue-centre-picker summary::-webkit-details-marker {
  display: none;
}

.daily-revenue-centre-picker[open] summary {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px #e91e631a;
}

.daily-revenue-centre-menu {
  z-index: 100;
  border: 1px solid var(--border);
  background: var(--surface-solid, #fff);
  min-width: min(390px, 100vw - 72px);
  box-shadow: var(--shadow-lg);
  border-radius: 14px;
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  overflow: hidden;
}

.daily-revenue-centre-menu-header {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  display: flex;
}

.daily-revenue-select-control {
  width: 100%;
  display: block;
  position: relative;
}

.daily-revenue-select-control select {
  appearance: none;
  width: 100%;
  padding-right: 36px;
}

.daily-revenue-select-caret {
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  pointer-events: none;
  width: 7px;
  height: 7px;
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-70%)rotate(45deg);
}

.daily-revenue-centre-picker summary:after {
  content: "";
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  flex: none;
  width: 7px;
  height: 7px;
  margin-right: 2px;
  transition: transform .15s;
  transform: rotate(45deg)translate(-1px, -1px);
}

.daily-revenue-centre-picker[open] summary:after {
  transform: rotate(225deg)translate(-1px, -1px);
}

.daily-revenue-centre-menu-header span {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.daily-revenue-centre-menu-header button {
  color: var(--primary);
  cursor: pointer;
  background: none;
  border: 0;
  font-size: 11px;
  font-weight: 900;
}

.daily-revenue-centre-options {
  max-height: 280px;
  padding: 6px;
  display: grid;
  overflow: auto;
}

.daily-revenue-centre-options label {
  cursor: pointer;
  border-radius: 9px;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  display: grid;
}

.daily-revenue-centre-options label:hover {
  background: var(--surface-muted);
}

.daily-revenue-centre-options input {
  accent-color: var(--primary);
}

.daily-revenue-centre-options span {
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 750;
  overflow: hidden;
}

.daily-revenue-centre-options small {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 900;
}

.daily-revenue-filter-actions {
  justify-content: flex-end;
  align-items: flex-end;
  gap: 8px;
  display: flex;
}

.daily-revenue-filter-actions .btn {
  flex: auto;
  justify-content: center;
}

.daily-revenue-live-region {
  clip: rect(0,0,0,0);
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}

.daily-revenue-section-heading {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  display: flex;
}

.daily-revenue-section-heading h3 {
  color: var(--text);
  margin: 0;
  font-size: 20px;
}

.daily-revenue-section-heading > span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 750;
}

.daily-revenue-overview-meta {
  white-space: nowrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.daily-revenue-overview-meta strong {
  color: var(--text);
  font-weight: 900;
}

.daily-revenue-overview-meta b {
  color: var(--border-strong, #94a3b8);
  font-weight: 600;
}

.daily-revenue-data-status {
  letter-spacing: .01em;
  cursor: help;
  border: 1px solid #0000;
  border-radius: 999px;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
  position: relative;
}

.daily-revenue-data-status:after {
  content: attr(data-tooltip);
  z-index: 30;
  border: 1px solid var(--border, #d7deea);
  background: var(--surface, #fff);
  width: max-content;
  max-width: min(320px, 80vw);
  color: var(--text, #172033);
  letter-spacing: 0;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  transition: opacity .15s, transform .15s;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px #0f172a29;
}

.daily-revenue-data-status:hover:after, .daily-revenue-data-status:focus-visible:after {
  opacity: 1;
  transform: translateY(0);
}

.daily-revenue-data-status:focus-visible {
  outline: 2px solid var(--primary, #e50064);
  outline-offset: 2px;
}

.daily-revenue-data-status.ready {
  color: #166534;
  background: #f0fdf4;
  border-color: #86efac;
}

.daily-revenue-data-status.validating, .daily-revenue-data-status.partial {
  color: #9a3412;
  background: #fff7ed;
  border-color: #fdba74;
}

.daily-revenue-data-status.degraded, .daily-revenue-data-status.no-data {
  color: #991b1b;
  background: #fff5f5;
  border-color: #fca5a5;
}

.daily-revenue-kpis {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  display: grid;
}

.daily-revenue-kpi {
  border: 1px solid var(--border);
  background: var(--surface-solid, #fff);
  border-radius: 14px;
  align-content: center;
  gap: 4px;
  min-height: 90px;
  padding: 11px 13px;
  display: grid;
  box-shadow: 0 5px 16px #0f172a0b;
}

.daily-revenue-kpi > span {
  min-height: 24px;
  color: var(--text-muted);
  letter-spacing: .03em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.25;
}

.daily-revenue-kpi strong {
  color: var(--text);
  overflow-wrap: anywhere;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.1;
}

.daily-revenue-kpi small {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
}

.daily-revenue-kpi.positive {
  background: #f4fff7;
  border-color: #86efac;
}

.daily-revenue-kpi.negative {
  background: #fff7f7;
  border-color: #fecaca;
}

.daily-revenue-notice {
  color: #7c2d12;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 14px;
  gap: 4px;
  padding: 14px 16px;
  display: grid;
}

.daily-revenue-notice.error {
  color: #991b1b;
  background: #fff5f5;
  border-color: #fca5a5;
}

.daily-revenue-notice strong {
  font-size: 13px;
}

.daily-revenue-notice span {
  font-size: 12px;
  line-height: 1.5;
}

.daily-revenue-freshness {
  padding: 18px 20px;
  overflow: hidden;
}

.daily-revenue-status {
  color: #475569;
  text-transform: uppercase;
  background: #eef2f7;
  border-radius: 999px;
  align-items: center;
  padding: 6px 10px;
  display: inline-flex;
  font-size: 11px !important;
  font-weight: 850 !important;
}

.daily-revenue-status.current {
  color: #087443;
  background: #dcfce7;
}

.daily-revenue-status.stale {
  color: #9a5600;
  background: #ffedd5;
}

.daily-revenue-status.degraded {
  color: #b42318;
  background: #fee2e2;
}

.daily-revenue-source-list {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 10px;
  margin-top: 14px;
  display: grid;
}

.daily-revenue-source-list > p {
  color: var(--text-muted);
  margin: 4px 0;
}

.daily-revenue-source-list article {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 14px;
  gap: 12px;
  padding: 14px;
  display: grid;
}

.daily-revenue-source-list article > div strong, .daily-revenue-source-list article > div span {
  display: block;
}

.daily-revenue-source-list article > div strong {
  color: var(--text);
}

.daily-revenue-source-list article > div span {
  color: var(--text-muted);
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
}

.daily-revenue-source-list dl {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  display: grid;
}

.daily-revenue-source-list dl div {
  background: var(--surface-solid, #fff);
  border-radius: 10px;
  min-width: 0;
  padding: 9px;
}

.daily-revenue-source-list dt {
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 850;
}

.daily-revenue-source-list dd {
  color: var(--text);
  overflow-wrap: anywhere;
  margin: 4px 0 0;
  font-size: 11px;
  font-weight: 750;
}

.daily-revenue-table-card {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.daily-revenue-evidence-card {
  padding: 0;
  overflow: hidden;
}

.daily-revenue-evidence-card > summary {
  cursor: pointer;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  list-style: none;
  display: flex;
}

.daily-revenue-evidence-card > summary::-webkit-details-marker {
  display: none;
}

.daily-revenue-evidence-card > summary span:first-child {
  gap: 4px;
  display: grid;
}

.daily-revenue-evidence-card > summary small {
  color: var(--muted);
  font-weight: 500;
}

.daily-revenue-evidence-content {
  border-top: 1px solid var(--border);
  padding: 20px 24px 24px;
}

.daily-revenue-evidence-filters {
  grid-template-columns: minmax(200px, 1fr) minmax(200px, 1fr) auto;
  align-items: end;
  gap: 16px;
  margin: 18px 0 10px;
  display: grid;
}

.daily-revenue-evidence-actions {
  flex-wrap: wrap;
  gap: 10px;
  display: flex;
}

.daily-revenue-evidence-result {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 20px 0 12px;
  display: flex;
}

.daily-revenue-evidence-result span {
  color: var(--muted);
  font-size: .86rem;
}

.daily-revenue-evidence-message {
  background: var(--surface-soft);
  border-radius: 10px;
  margin: 12px 0;
  padding: 12px 14px;
}

.daily-revenue-evidence-message.is-error {
  color: var(--danger);
  background: #d32f2f17;
}

.daily-revenue-evidence-table td {
  vertical-align: top;
}

@media (max-width: 900px) {
  .daily-revenue-evidence-filters {
    grid-template-columns: 1fr;
  }

  .daily-revenue-evidence-result {
    flex-direction: column;
    align-items: flex-start;
  }
}

.daily-revenue-table-card > .daily-revenue-section-heading {
  border-bottom: 1px solid var(--border);
  padding: 18px 20px;
}

.daily-revenue-table-wrap {
  contain: inline-size;
  outline: none;
  width: 100%;
  max-width: 100%;
  overflow: auto visible;
}

.daily-revenue-table-wrap:focus-visible {
  box-shadow: inset 0 0 0 3px #0e74904d;
}

.daily-revenue-table {
  --daily-revenue-grid: #d3dce7;
  --daily-revenue-group-line: #91a1b4;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 1275px;
  font-size: 12px;
}

.daily-revenue-table col.daily-revenue-col-centre {
  width: 132px;
}

.daily-revenue-table col.daily-revenue-col-age {
  width: 112px;
}

.daily-revenue-table col.daily-revenue-col-measure {
  width: 210px;
}

.daily-revenue-table col.daily-revenue-col-period {
  width: 105px;
}

.daily-revenue-table col.daily-revenue-col-target, .daily-revenue-table col.daily-revenue-col-mtd {
  width: 96px;
}

.daily-revenue-table col.daily-revenue-col-landing {
  width: 118px;
}

.daily-revenue-table col.daily-revenue-col-growth {
  width: 103px;
}

.daily-revenue-table th, .daily-revenue-table td {
  border-right: 1px solid var(--daily-revenue-grid);
  border-bottom: 1px solid var(--daily-revenue-grid);
  color: var(--text);
  text-align: right;
  vertical-align: middle;
  padding: 11px 12px;
}

.daily-revenue-table thead th {
  z-index: 3;
  color: #fff;
  letter-spacing: .035em;
  text-align: center;
  text-transform: uppercase;
  white-space: normal;
  background: #17324d;
  font-size: 10px;
  position: sticky;
  top: 0;
}

.daily-revenue-table thead th:first-child {
  z-index: 5;
  position: sticky;
  left: 0;
}

.daily-revenue-table tbody tr:hover td, .daily-revenue-table tbody tr:hover th {
  background-color: #0e74900b;
}

.daily-revenue-table tbody tr.daily-revenue-centre-end > th, .daily-revenue-table tbody tr.daily-revenue-centre-end > td, .daily-revenue-table .daily-revenue-group-cell {
  border-bottom: 2px solid var(--daily-revenue-group-line);
}

.daily-revenue-table tbody tr.daily-revenue-grand-total > th, .daily-revenue-table tbody tr.daily-revenue-grand-total > td {
  background: #eef4f8;
  font-weight: 850;
}

.daily-revenue-table tbody tr.daily-revenue-grand-start > th, .daily-revenue-table tbody tr.daily-revenue-grand-start > td {
  border-top: 3px solid #17324d;
}

.daily-revenue-table tbody tr.daily-revenue-grand-end > th, .daily-revenue-table tbody tr.daily-revenue-grand-end > td, .daily-revenue-table .daily-revenue-grand-label {
  border-bottom: 3px solid #17324d;
}

.daily-revenue-table .daily-revenue-grand-label {
  background: #e4edf5 !important;
}

.daily-revenue-centre-cell {
  z-index: 2;
  overflow-wrap: anywhere;
  width: 132px;
  min-width: 132px;
  position: sticky;
  left: 0;
  color: var(--text) !important;
  background: var(--surface-solid, #fff) !important;
  text-align: left !important;
}

.daily-revenue-centre-cell strong, .daily-revenue-centre-cell span, .daily-revenue-age-cell strong, .daily-revenue-age-cell span, .daily-revenue-measure-cell span, .daily-revenue-measure-cell small {
  display: block;
}

.daily-revenue-centre-cell span, .daily-revenue-age-cell span, .daily-revenue-measure-cell small {
  color: var(--text-muted);
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
}

.daily-revenue-measure-cell small {
  letter-spacing: .025em;
  margin-top: 2px;
  font-size: 9px;
  font-weight: 850;
}

.daily-revenue-age-cell {
  width: 112px;
  min-width: 112px;
  text-align: left !important;
}

.daily-revenue-measure-cell {
  background: var(--bg);
  width: 210px;
  min-width: 210px;
  text-align: left !important;
}

.daily-revenue-measure-cell span, .daily-revenue-measure-cell small {
  white-space: nowrap;
}

.daily-revenue-table td.is-mtd {
  background: #ecfdf5;
  font-weight: 800;
}

.daily-revenue-table td.is-landing {
  background: #fffbeb;
  font-weight: 800;
}

.daily-revenue-growth strong {
  border-radius: 999px;
  align-items: center;
  gap: 3px;
  padding: 4px 7px;
  font-size: 11px;
  display: inline-flex;
}

.daily-revenue-growth.positive strong {
  color: #087443;
  background: #dcfce7;
}

.daily-revenue-growth.negative strong {
  color: #b42318;
  background: #fee2e2;
}

.daily-revenue-growth.neutral strong {
  color: #475569;
  background: #eef2f7;
}

.daily-revenue-state {
  color: #7f1d1d;
  background: #fff7f7;
  border: 1px solid #fecaca;
  border-radius: 18px;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 24px;
  display: grid;
}

.daily-revenue-state.pending {
  color: #0c4a6e;
  background: #f0f9ff;
  border-color: #bae6fd;
}

.daily-revenue-state.empty {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface-solid, #fff);
}

.daily-revenue-state-icon {
  color: currentColor;
  background: #ffffffbf;
  border-radius: 15px;
  place-items: center;
  width: 48px;
  height: 48px;
  font-size: 21px;
  font-weight: 950;
  display: grid;
}

.daily-revenue-state h3 {
  color: currentColor;
  margin: 2px 0 6px;
}

.daily-revenue-state p {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.55;
}

.daily-revenue-landing-guide {
  padding: 18px 20px;
  overflow: hidden;
}

.daily-revenue-landing-guide-heading {
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 12px;
  display: flex;
}

.daily-revenue-landing-guide-heading h3 {
  color: var(--text);
  margin: 2px 0 0;
  font-size: 19px;
}

.daily-revenue-landing-guide-heading > span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 750;
}

.daily-revenue-landing-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  display: grid;
}

.daily-revenue-landing-cards article {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 14px;
  align-content: start;
  gap: 7px;
  padding: 14px 15px;
  display: grid;
}

.daily-revenue-landing-cards article > span {
  color: var(--primary);
  letter-spacing: .07em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 900;
}

.daily-revenue-landing-cards h4 {
  color: var(--text);
  margin: 0;
  font-size: 15px;
}

.daily-revenue-landing-cards p, .daily-revenue-landing-cards small, .daily-revenue-landing-note {
  color: var(--text-muted);
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}

.daily-revenue-landing-cards code {
  border: 1px solid var(--border);
  background: var(--surface-solid, #fff);
  color: var(--text);
  white-space: normal;
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 800;
  display: block;
}

.daily-revenue-landing-cards small strong {
  color: var(--text);
}

.daily-revenue-landing-note {
  border-left: 3px solid var(--primary);
  margin-top: 11px;
  padding-left: 11px;
}

.daily-revenue-legend {
  overflow: hidden;
}

.daily-revenue-legend summary {
  cursor: pointer;
  color: var(--text);
  padding: 16px 18px;
  font-size: 13px;
  font-weight: 850;
}

.daily-revenue-legend > div {
  border-top: 1px solid var(--border);
  padding: 0 18px 18px;
}

.daily-revenue-legend dl {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  display: grid;
}

.daily-revenue-legend dl div {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 12px;
  padding: 12px;
}

.daily-revenue-legend dt {
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
}

.daily-revenue-legend dd {
  color: var(--text-muted);
  margin: 5px 0 0;
  font-size: 11px;
  line-height: 1.5;
}

.daily-revenue-legend p {
  color: var(--text-muted);
  overflow-wrap: anywhere;
  margin: 12px 0 0;
  font-size: 11px;
}

.daily-revenue-skeleton {
  gap: 14px;
  display: grid;
}

.daily-revenue-skeleton-kpis {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 11px;
  display: grid;
}

.daily-revenue-skeleton-kpis span, .daily-revenue-skeleton-table span {
  background: linear-gradient(90deg, #eef2f7 25%, #f8fafc 50%, #eef2f7 75%) 0 0 / 200% 100%;
  border-radius: 15px;
  animation: 1.3s linear infinite daily-revenue-shimmer;
  display: block;
}

.daily-revenue-skeleton-kpis span {
  height: 118px;
}

.daily-revenue-skeleton-table {
  border: 1px solid var(--border);
  background: var(--surface-solid, #fff);
  border-radius: 18px;
  gap: 8px;
  padding: 18px;
  display: grid;
}

.daily-revenue-skeleton-table span {
  height: 38px;
}

@keyframes daily-revenue-shimmer {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -200% 0;
  }
}

body.dark-mode .daily-revenue-kpi.positive {
  background: #0f2e22;
  border-color: #166534;
}

body.dark-mode .daily-revenue-kpi.negative {
  background: #34191c;
  border-color: #7f1d1d;
}

body.dark-mode .daily-revenue-table {
  --daily-revenue-grid: #425269;
  --daily-revenue-group-line: #718198;
}

body.dark-mode .daily-revenue-table td.is-mtd {
  background: #102c25;
}

body.dark-mode .daily-revenue-table td.is-landing {
  background: #312812;
}

body.dark-mode .daily-revenue-table tbody tr.daily-revenue-grand-total > th, body.dark-mode .daily-revenue-table tbody tr.daily-revenue-grand-total > td, body.dark-mode .daily-revenue-table .daily-revenue-grand-label {
  background: #1d2b3d !important;
}

body.dark-mode .daily-revenue-state, body.dark-mode .daily-revenue-notice.error {
  background: #35191c;
}

body.dark-mode .daily-revenue-state.pending {
  background: #102a38;
}

body.dark-mode .daily-revenue-notice.warning {
  background: #352512;
}

.business-medics-report-page {
  gap: 18px;
  min-width: 0;
  max-width: 100%;
  padding-bottom: 32px;
  display: grid;
  overflow-x: hidden;
}

.business-medics-report-page > * {
  min-width: 0;
  max-width: 100%;
}

.medics-revenue-filter-card {
  margin: 0;
}

.medics-revenue-filter-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.medics-revenue-filter-actions {
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  min-width: 0;
  display: flex;
}

.medics-revenue-filter-actions .btn {
  min-width: 118px;
}

.medics-revenue-section-heading {
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-top: 2px;
  display: flex;
}

.medics-revenue-section-heading h3 {
  color: var(--text);
  margin: 0;
  font-family: Outfit, sans-serif;
  font-size: 19px;
  font-weight: 900;
}

.medics-revenue-section-heading p {
  color: var(--text-muted);
  margin: 3px 0 0;
  font-size: 12px;
  font-weight: 700;
}

.medics-revenue-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: -6px;
}

.medics-revenue-kpi {
  min-height: 116px;
  box-shadow: var(--shadow-sm);
  border-radius: 18px;
  padding: 16px 17px 15px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  position: relative;
}

.medics-revenue-kpi:before {
  content: "";
  background: var(--primary);
  border-radius: 0 999px 999px 0;
  width: 4px;
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 0;
}

.medics-revenue-kpi:nth-child(2):before {
  background: #8b5cf6;
}

.medics-revenue-kpi:nth-child(3):before {
  background: #14b8a6;
}

.medics-revenue-kpi:nth-child(4):before {
  background: #f59e0b;
}

.medics-revenue-kpi:hover {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  transform: translateY(-2px);
  box-shadow: 0 12px 26px #0f172a1a;
}

.medics-revenue-kpi > span {
  min-height: auto;
  font-size: 11px;
}

.medics-revenue-kpi strong {
  font-size: clamp(22px, 2vw, 30px);
}

.medics-revenue-kpi small {
  font-size: 11px;
}

.medics-revenue-kpi.period strong {
  white-space: normal;
  font-size: clamp(15px, 1.35vw, 19px);
}

.medics-revenue-card {
  box-shadow: var(--shadow-sm);
  margin: 0;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  overflow: hidden;
}

.medics-revenue-card:hover {
  border-color: color-mix(in srgb, var(--primary) 24%, var(--border));
  transform: translateY(-1px);
  box-shadow: 0 12px 28px #0f172a14;
}

.medics-revenue-card > .business-source-secondary {
  margin: 12px 16px 0;
}

.medics-revenue-table {
  min-width: 680px;
}

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

.medics-revenue-table tbody tr:last-child td {
  border-bottom: 0;
}

body.dark-mode .medics-revenue-kpi, body.dark-mode .medics-revenue-card {
  background: var(--surface-solid);
  box-shadow: 0 8px 24px #00000038;
}

body.dark-mode .medics-revenue-kpi:hover, body.dark-mode .medics-revenue-card:hover {
  box-shadow: 0 14px 30px #00000052;
}

@media (max-width: 1250px) {
  .daily-revenue-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .medics-revenue-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .daily-revenue-filter-grid, .daily-revenue-legend dl, .medics-revenue-filter-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .daily-revenue-filter-grid, .daily-revenue-kpis, .daily-revenue-source-list, .daily-revenue-source-list dl, .daily-revenue-legend dl, .daily-revenue-skeleton-kpis {
    grid-template-columns: 1fr;
  }

  .daily-revenue-filter-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .medics-revenue-filter-grid, .medics-revenue-kpis {
    grid-template-columns: 1fr;
  }

  .medics-revenue-filter-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .medics-revenue-filter-actions .btn {
    width: 100%;
  }

  .medics-revenue-section-heading, .daily-revenue-section-heading, .daily-revenue-landing-guide-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .daily-revenue-landing-cards {
    grid-template-columns: 1fr;
  }

  .daily-revenue-overview-meta {
    gap: 5px;
    font-size: 10px !important;
  }

  .daily-revenue-kpi {
    min-height: 86px;
  }

  .daily-revenue-state {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .daily-revenue-skeleton-kpis span, .daily-revenue-skeleton-table span {
    animation: none;
  }
}

.business-report-kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 16px 0;
  display: grid;
}

.business-report-kpi {
  align-content: center;
  gap: 8px;
  min-height: 100px;
  display: grid;
}

.business-report-kpi span {
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: .82rem;
  font-weight: 700;
}

.business-report-kpi strong {
  font-size: 1.65rem;
}

.business-report-two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0;
  display: grid;
}

@media (max-width: 1050px) {
  .business-report-two-column {
    grid-template-columns: 1fr;
  }
}

#tab-business-reconciliation {
  gap: 16px;
  display: grid;
}

.reconciliation-filter-card, .reconciliation-policy-card, .reconciliation-table-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 20px;
  margin: 0;
  overflow: hidden;
  box-shadow: 0 10px 30px #0f172a11;
  padding: 0 !important;
}

.reconciliation-card-heading {
  background: linear-gradient(135deg, #fff, #fff8fb);
  min-height: 72px;
  padding: 17px 20px !important;
}

.reconciliation-card-heading > div {
  min-width: 0;
}

.reconciliation-card-heading strong {
  font-size: 1.02rem;
}

.reconciliation-card-heading span:not(.business-source-status) {
  margin-top: 4px;
  font-size: .75rem;
  line-height: 1.45;
}

.reconciliation-filter-grid, .reconciliation-policy-grid, .reconciliation-policy-source-grid {
  background: linear-gradient(135deg, #fdf2f8b3, #fffffff5);
  gap: 14px;
  padding: 18px 20px;
  display: grid;
}

.reconciliation-filter-grid, .reconciliation-policy-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.reconciliation-policy-source-grid {
  border-top: 1px dashed var(--border);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 0;
}

.reconciliation-filter-grid .business-source-field, .reconciliation-policy-grid .business-source-field, .reconciliation-policy-source-grid .business-source-field {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.reconciliation-filter-grid .business-source-field > span, .reconciliation-policy-grid .business-source-field > span, .reconciliation-policy-source-grid .business-source-field > span {
  color: var(--text-muted);
  letter-spacing: .055em;
  text-transform: uppercase;
  font-size: .7rem;
  font-weight: 900;
}

.reconciliation-filter-grid input, .reconciliation-filter-grid select, .reconciliation-policy-grid input, .reconciliation-policy-grid select, .reconciliation-policy-source-grid input, .reconciliation-policy-source-grid select {
  border: 1px solid var(--border);
  background: var(--surface);
  width: 100%;
  min-height: 42px;
  color: var(--text);
  font: inherit;
  border-radius: 12px;
  font-size: .8rem;
  font-weight: 750;
  transition: border-color .16s, box-shadow .16s;
}

.reconciliation-filter-grid input:focus, .reconciliation-filter-grid select:focus, .reconciliation-policy-grid input:focus, .reconciliation-policy-grid select:focus, .reconciliation-policy-source-grid input:focus, .reconciliation-policy-source-grid select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 4px #e91e631a;
}

.reconciliation-filter-actions, .reconciliation-policy-actions {
  border-top: 1px solid var(--border);
  background: #fff;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  display: flex;
}

.reconciliation-action {
  border: 1px solid var(--border);
  min-width: 132px;
  min-height: 40px;
  box-shadow: none;
  border-radius: 12px;
  justify-content: center;
  font-weight: 900;
  transition: transform .16s, box-shadow .16s, background .16s;
}

.reconciliation-action:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px #0f172a17;
}

.reconciliation-action.is-apply, .reconciliation-action.is-approve, .reconciliation-action.is-activate {
  color: #fff;
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary), #db2777);
}

.reconciliation-action.is-export {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.reconciliation-action.is-draft {
  color: #7c3aed;
  background: #f5f3ff;
  border-color: #ddd6fe;
}

.reconciliation-action.is-deactivate {
  color: #b91c1c;
  background: #fff7f7;
  border-color: #fecaca;
}

#tab-business-reconciliation > .business-file-import-policy {
  color: #92400e;
  background: #fffbeb;
  border-color: #fcd34d;
  margin: 0;
  padding: 14px 16px;
  box-shadow: 0 6px 18px #92400e0f;
}

.reconciliation-kpi-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.reconciliation-kpi {
  text-align: center;
  border-radius: 18px;
  align-content: center;
  place-items: center;
  min-height: 104px;
  padding: 16px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  display: grid;
  position: relative;
  overflow: hidden;
}

.reconciliation-kpi:before {
  content: "";
  background: var(--primary);
  height: 4px;
  position: absolute;
  inset: 0 0 auto;
}

.reconciliation-kpi:nth-child(2):before {
  background: #f59e0b;
}

.reconciliation-kpi:nth-child(3):before {
  background: #2563eb;
}

.reconciliation-kpi:nth-child(4):before {
  background: #7c3aed;
}

.reconciliation-kpi:nth-child(5):before {
  background: #16a34a;
}

.reconciliation-kpi:hover {
  border-color: #e91e633d;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px #0f172a17;
}

.reconciliation-kpi span, .reconciliation-kpi strong {
  text-align: center;
  width: 100%;
}

.reconciliation-kpi span {
  letter-spacing: .05em;
  font-size: .69rem;
  font-weight: 900;
}

.reconciliation-kpi strong {
  margin-top: 3px;
  font-family: Outfit, sans-serif;
  font-size: 1.75rem;
  line-height: 1;
}

#tab-business-reconciliation .business-report-two-column {
  align-items: start;
  gap: 16px;
  margin: 0;
}

.reconciliation-table-card {
  min-width: 0;
}

.reconciliation-table {
  min-width: 780px;
}

.business-report-two-column .reconciliation-table {
  min-width: 640px;
}

.reconciliation-table th {
  background: #f8fafc;
}

.reconciliation-table td {
  vertical-align: top;
}

.reconciliation-table tbody tr td:first-child {
  border-left: 3px solid #0000;
}

.reconciliation-table tbody tr:hover td:first-child {
  border-left-color: var(--primary);
}

.reconciliation-table td small {
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
  display: block;
}

.reconciliation-policy-card {
  margin-top: 0;
}

.reconciliation-policy-actions {
  background: #fffafd;
}

body.dark-mode .reconciliation-card-heading, body.dark-mode .reconciliation-filter-grid, body.dark-mode .reconciliation-policy-grid, body.dark-mode .reconciliation-policy-source-grid, body.dark-mode .reconciliation-filter-actions, body.dark-mode .reconciliation-policy-actions {
  background: linear-gradient(135deg, #1f2937, #172033);
}

body.dark-mode .reconciliation-table th {
  background: #111827;
}

body.dark-mode #tab-business-reconciliation > .business-file-import-policy {
  color: #fde68a;
  background: #352512;
  border-color: #854d0e;
}

body.dark-mode .reconciliation-action.is-export, body.dark-mode .reconciliation-action.is-draft, body.dark-mode .reconciliation-action.is-deactivate {
  background: var(--surface-muted);
}

@media (max-width: 1180px) {
  .reconciliation-filter-grid, .reconciliation-policy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .reconciliation-filter-grid, .reconciliation-policy-grid, .reconciliation-policy-source-grid, .reconciliation-kpi-grid {
    grid-template-columns: 1fr;
  }

  .reconciliation-card-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .reconciliation-filter-actions, .reconciliation-policy-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .reconciliation-action {
    width: 100%;
  }
}

#tab-business-operational-monitoring {
  gap: 16px;
  display: grid;
}

.operational-focused-run-notice {
  background: #f0fdf4;
  border-color: #86efac;
}

.operational-focused-run {
  outline-offset: -2px;
  background: #f0fdf4;
  outline: 2px solid #22c55e;
}

.operational-filter-card, .operational-table-card, .operational-policy-card, .operational-alert-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 20px;
  margin: 0;
  overflow: hidden;
  box-shadow: 0 10px 28px #0f172a0f;
  padding: 0 !important;
}

.operational-card-heading {
  border-bottom: 1px solid var(--border);
  min-height: 70px;
  background: #fff !important;
  padding: 17px 20px !important;
}

.operational-card-heading > div {
  min-width: 0;
}

.operational-card-heading strong {
  font-size: 1.02rem;
}

.operational-card-heading span:not(.business-source-status) {
  margin-top: 4px;
  font-size: .75rem;
  line-height: 1.45;
}

.operational-filter-grid, .operational-policy-grid {
  background: #fff;
  align-items: end;
  gap: 14px;
  padding: 18px 20px;
  display: grid;
}

.operational-filter-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

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

.operational-filter-grid .business-source-field, .operational-policy-grid .business-source-field {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.operational-filter-grid .business-source-field > span, .operational-policy-grid .business-source-field > span {
  color: var(--text-muted);
  letter-spacing: .055em;
  text-transform: uppercase;
  font-size: .7rem;
  font-weight: 900;
}

.operational-filter-grid select, .operational-policy-grid input, .operational-policy-grid select {
  border: 1px solid var(--border);
  background: var(--surface);
  width: 100%;
  min-height: 42px;
  color: var(--text);
  font: inherit;
  border-radius: 12px;
  font-size: .8rem;
  font-weight: 750;
  transition: border-color .16s, box-shadow .16s;
}

.operational-filter-grid select:focus, .operational-policy-grid input:focus, .operational-policy-grid select:focus {
  border-color: #94a3b8;
  outline: none;
  box-shadow: 0 0 0 4px #64748b1a;
}

.operational-filter-actions, .operational-policy-actions {
  border-top: 1px solid var(--border);
  background: #fff;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  display: flex;
}

.operational-notification-toggle {
  color: var(--text);
  background: #fff;
  align-items: center;
  gap: 11px;
  padding: 18px 20px;
  font-size: .82rem;
  font-weight: 850;
  display: flex;
}

.operational-notification-toggle input, .operational-notification-section input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--primary);
  flex: none;
}

.operational-notification-section {
  background: #fff;
  gap: 10px;
  padding: 0 20px 18px;
  display: grid;
}

.operational-notification-section > strong {
  color: var(--text);
  letter-spacing: .035em;
  text-transform: uppercase;
  font-size: .76rem;
  font-weight: 900;
}

.operational-notification-help, .operational-policy-actions > span {
  color: var(--text-muted);
  font-size: .73rem;
  line-height: 1.45;
}

.operational-notification-statuses {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.operational-notification-recipients {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.operational-notification-recipients label span {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.operational-notification-recipients label strong, .operational-notification-recipients label small {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.operational-notification-recipients label small {
  color: var(--text-muted);
  font-size: .68rem;
  font-weight: 650;
}

.operational-notification-recipients > p {
  color: var(--text-muted);
  margin: 0;
  font-size: .78rem;
}

.operational-action {
  border: 1px solid var(--border);
  min-width: 132px;
  min-height: 40px;
  box-shadow: none;
  border-radius: 12px;
  justify-content: center;
  font-weight: 900;
  transition: transform .16s, box-shadow .16s, background .16s, border-color .16s;
}

.operational-action:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px #0f172a17;
}

.operational-action.is-apply, .operational-action.is-approve, .operational-action.is-activate {
  color: #fff;
  background: #334155;
  border-color: #334155;
}

.operational-action.is-draft {
  color: #334155;
  background: #f8fafc;
  border-color: #cbd5e1;
}

.operational-action.is-deactivate {
  color: #b91c1c;
  background: #fff;
  border-color: #fecaca;
}

.operational-kpi-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.operational-kpi {
  border: 1px solid var(--border);
  text-align: center;
  background: #fff;
  border-radius: 18px;
  align-content: center;
  place-items: center;
  min-height: 102px;
  padding: 16px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  display: grid;
}

.operational-kpi:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 13px 28px #0f172a16;
}

.operational-kpi span, .operational-kpi strong {
  text-align: center;
  width: 100%;
}

.operational-kpi span {
  color: var(--text-muted);
  letter-spacing: .055em;
  font-size: .7rem;
  font-weight: 900;
}

.operational-kpi strong {
  margin-top: 5px;
  font-family: Outfit, sans-serif;
  font-size: 1.78rem;
  line-height: 1;
}

.operational-table-card {
  min-width: 0;
}

.operational-table {
  min-width: 900px;
}

.operational-run-table {
  min-width: 1220px;
}

.operational-table th {
  background: #f8fafc;
}

.operational-table td {
  vertical-align: top;
}

.operational-table td small {
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
  display: block;
}

.operational-table tbody tr td:first-child {
  border-left: 3px solid #0000;
}

.operational-table tbody tr:hover td:first-child {
  border-left-color: #64748b;
}

.operational-run-table .btn {
  color: #334155;
  background: #f8fafc;
  border-color: #cbd5e1;
  border-radius: 9px;
  min-width: 70px;
  font-weight: 900;
}

.operational-run-table .btn:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: #94a3b8;
}

#tab-business-operational-monitoring > .business-file-import-policy {
  margin: 0;
  box-shadow: 0 6px 18px #0f172a0d;
}

.operational-alert-card > .business-file-import-policy {
  margin: 14px 16px;
}

body.dark-mode .operational-card-heading, body.dark-mode .operational-filter-grid, body.dark-mode .operational-policy-grid, body.dark-mode .operational-notification-toggle, body.dark-mode .operational-notification-section, body.dark-mode .operational-filter-actions, body.dark-mode .operational-policy-actions, body.dark-mode .operational-kpi {
  background: var(--surface) !important;
}

body.dark-mode .operational-table th {
  background: #111827;
}

body.dark-mode .operational-action.is-draft, body.dark-mode .operational-action.is-deactivate, body.dark-mode .operational-run-table .btn {
  background: var(--surface-muted);
}

@media (max-width: 1180px) {
  .operational-policy-grid, .operational-notification-recipients {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .operational-filter-grid, .operational-policy-grid, .operational-notification-statuses, .operational-notification-recipients, .operational-kpi-grid {
    grid-template-columns: 1fr;
  }

  .operational-card-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .operational-filter-actions, .operational-policy-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .operational-action {
    width: 100%;
  }
}

.business-data-integrity-page {
  gap: 18px;
  min-width: 0;
  display: grid;
}

.business-integrity-refresh-action {
  border-radius: 14px;
  min-width: 112px;
  transition: transform .18s, box-shadow .18s, filter .18s;
  box-shadow: 0 10px 24px #e91e6333;
}

.business-integrity-refresh-action:hover:not(:disabled) {
  filter: saturate(1.05);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px #e91e6347;
}

.business-integrity-kpis {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  display: grid;
}

.business-integrity-kpi {
  min-height: 106px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  align-content: center;
  place-items: center;
  transition: transform .18s, border-color .18s, box-shadow .18s;
  display: grid;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border) !important;
  background: var(--surface) !important;
  border-radius: 18px !important;
  padding: 18px 14px !important;
}

.business-integrity-kpi:before {
  content: "";
  background: #e91e63;
  height: 4px;
  position: absolute;
  inset: 0 0 auto;
}

.business-integrity-kpi:nth-child(2):before {
  background: #7c3aed;
}

.business-integrity-kpi:nth-child(3):before {
  background: #f59e0b;
}

.business-integrity-kpi:nth-child(4):before {
  background: #16a34a;
}

.business-integrity-kpi:nth-child(5):before {
  background: #2563eb;
}

.business-integrity-kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px #0f172a17;
  border-color: #e91e6340 !important;
}

.business-integrity-kpi span, .business-integrity-kpi strong {
  text-align: center;
  width: 100%;
}

.business-integrity-kpi span {
  color: var(--text-muted);
  letter-spacing: .045em;
  text-transform: uppercase;
  font-size: .74rem;
  font-weight: 800;
  line-height: 1.35;
}

.business-integrity-kpi strong {
  margin-top: 9px;
  font-family: Outfit, sans-serif;
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  font-weight: 900;
  line-height: 1;
}

.business-integrity-storage-note {
  box-shadow: var(--shadow-sm);
  align-items: flex-start;
  gap: 16px;
  display: flex;
  border: 1px solid var(--border) !important;
  background: var(--surface) !important;
  border-radius: 16px !important;
  padding: 16px 20px !important;
}

.business-integrity-storage-note strong {
  color: var(--text);
  letter-spacing: .04em;
  text-transform: uppercase;
  flex: none;
  font-size: .78rem;
  font-weight: 900;
}

.business-integrity-storage-note span {
  color: var(--text-muted);
  font-size: .88rem;
  font-weight: 650;
  line-height: 1.55;
}

.business-integrity-card {
  min-width: 0;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--border) !important;
  background: var(--surface) !important;
  border-radius: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.business-integrity-card-heading {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  display: flex;
  background: var(--surface) !important;
}

.business-integrity-card-heading > div {
  min-width: 0;
}

.business-integrity-card-heading h3 {
  color: var(--text);
  margin: 0;
  font-family: Outfit, sans-serif;
  font-size: 1.08rem;
  font-weight: 900;
}

.business-integrity-card-heading p {
  max-width: 820px;
  color: var(--text-muted);
  margin: 6px 0 0;
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.5;
}

.business-integrity-card-heading .btn {
  border-radius: 11px;
  flex: none;
  transition: transform .18s, border-color .18s, box-shadow .18s;
  box-shadow: 0 5px 14px #0f172a0f;
}

.business-integrity-card-heading .btn:hover:not(:disabled) {
  border-color: #e91e6361;
  transform: translateY(-1px);
  box-shadow: 0 9px 20px #0f172a1a;
}

.business-data-integrity-page .business-finance-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.business-data-integrity-page .business-finance-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 760px;
}

.business-data-integrity-page .business-finance-table th, .business-data-integrity-page .business-finance-table td {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  padding: 14px 16px;
}

.business-data-integrity-page .business-finance-table th:last-child, .business-data-integrity-page .business-finance-table td:last-child {
  border-right: 0;
}

.business-data-integrity-page .business-finance-table tbody tr:last-child td {
  border-bottom: 0;
}

.business-data-integrity-page .business-finance-table th {
  color: #475569;
  letter-spacing: .045em;
  text-transform: uppercase;
  background: #f8fafc;
  font-size: .72rem;
  font-weight: 900;
}

.business-data-integrity-page .business-finance-table td {
  color: var(--text);
  font-size: .84rem;
  font-weight: 650;
  line-height: 1.45;
}

.business-data-integrity-page .business-finance-table tbody tr {
  transition: background .16s;
}

.business-data-integrity-page .business-finance-table tbody tr:hover {
  background: #f8fafcb8;
}

.business-data-integrity-page .business-finance-subline {
  color: var(--text-muted);
  margin-top: 4px;
  font-size: .75rem;
  font-weight: 650;
  display: block;
}

.business-integrity-policy-copy {
  border: 1px solid var(--border);
  color: var(--text);
  background: #f8fafc;
  border-radius: 14px;
  margin: 18px 22px 22px;
  padding: 16px 18px;
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.6;
}

.business-integrity-action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
  display: grid;
}

.business-integrity-action-card {
  flex-direction: column;
  display: flex;
}

.business-integrity-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 20px 22px;
  display: grid;
}

.business-integrity-form-grid label {
  color: var(--text-muted);
  letter-spacing: .025em;
  align-content: start;
  gap: 8px;
  font-size: .75rem;
  font-weight: 850;
  display: grid;
}

.business-integrity-form-grid label.full {
  grid-column: 1 / -1;
}

.business-integrity-form-grid input:not([type="checkbox"]), .business-integrity-form-grid select, .business-integrity-form-grid textarea {
  border: 1px solid var(--border);
  background: var(--surface);
  width: 100%;
  min-width: 0;
  min-height: 46px;
  color: var(--text);
  font: inherit;
  letter-spacing: normal;
  border-radius: 12px;
  outline: none;
  padding: 11px 13px;
  font-size: .88rem;
  font-weight: 700;
  transition: border-color .16s, box-shadow .16s;
}

.business-integrity-form-grid textarea {
  resize: vertical;
  min-height: 96px;
}

.business-integrity-form-grid input:focus, .business-integrity-form-grid select:focus, .business-integrity-form-grid textarea:focus {
  border-color: #e91e637a;
  box-shadow: 0 0 0 3px #e91e631a;
}

.business-integrity-confirmation {
  border: 1px solid var(--border);
  background: #f8fafc;
  border-radius: 13px;
  align-items: flex-start;
  padding: 14px 16px;
  line-height: 1.5;
  color: var(--text) !important;
  letter-spacing: normal !important;
  gap: 11px !important;
  font-size: .82rem !important;
  font-weight: 700 !important;
  display: flex !important;
}

.business-integrity-confirmation input {
  accent-color: #e91e63;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.business-integrity-confirmation span {
  flex: 1;
}

.business-integrity-card-actions {
  border-top: 1px solid var(--border);
  background: var(--surface);
  justify-content: flex-end;
  margin-top: auto;
  padding: 16px 22px 20px;
  display: flex;
}

.business-integrity-card-actions .btn {
  border-radius: 12px;
  min-width: 150px;
  transition: transform .18s, box-shadow .18s;
}

.business-integrity-card-actions .btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px #0f172a1f;
}

body.dark-mode .business-data-integrity-page .business-finance-table th, body.dark-mode .business-integrity-policy-copy, body.dark-mode .business-integrity-confirmation {
  background: var(--surface-muted);
}

body.dark-mode .business-data-integrity-page .business-finance-table tbody tr:hover {
  background: #1e293b7a;
}

@media (max-width: 1180px) {
  .business-integrity-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .business-integrity-action-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .business-integrity-kpis, .business-integrity-form-grid {
    grid-template-columns: 1fr;
  }

  .business-integrity-card-heading, .business-integrity-storage-note {
    flex-direction: column;
    align-items: stretch;
  }

  .business-integrity-card-heading .btn, .business-integrity-card-actions .btn {
    width: 100%;
  }
}

.clinical-dashboard-page {
  gap: 16px;
  display: grid;
}

.clinical-context-row {
  color: var(--text-muted);
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  display: flex;
}

.clinical-context-row > * + :before {
  content: "";
  background: var(--border);
  border-radius: 999px;
  width: 4px;
  height: 4px;
  margin: 0 10px 2px 0;
  display: inline-block;
}

.clinical-data-status {
  border-radius: 999px;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  font-weight: 800;
  display: inline-flex;
}

.clinical-data-status:before {
  content: "";
  background: currentColor;
  border-radius: 50%;
  width: 8px;
  height: 8px;
}

.clinical-data-status.ready {
  color: #047857;
  background: #d1fae5;
}

.clinical-data-status.partial {
  color: #b45309;
  background: #fef3c7;
}

.clinical-data-status.no-data {
  color: #b91c1c;
  background: #fee2e2;
}

.clinical-data-status.pending {
  color: #475569;
  background: #e2e8f0;
}

.clinical-filter-card {
  padding: 18px;
}

.clinical-filter-heading {
  justify-content: space-between;
  margin-bottom: 14px;
  display: flex;
}

.clinical-filter-heading > div {
  gap: 3px;
  display: grid;
}

.clinical-filter-heading span {
  color: var(--text-muted);
  font-size: 13px;
}

.clinical-filter-grid {
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  align-items: end;
}

.clinical-filter-grid label {
  gap: 7px;
  display: grid;
}

.clinical-filter-grid label > span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 750;
}

.clinical-filter-grid input, .clinical-filter-grid select {
  width: 100%;
}

.clinical-search-field {
  grid-column: span 2;
}

.clinical-kpi-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  display: grid;
}

.clinical-kpi-grid-reference {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 112px;
}

.clinical-kpi-card {
  box-sizing: border-box;
  border: 1px solid var(--border);
  background: var(--card-bg, #fff);
  height: 100%;
  min-height: 0;
  box-shadow: var(--shadow-sm);
  color: inherit;
  font: inherit;
  text-align: left;
  border-radius: 16px;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 3px;
  padding: 11px 13px 10px 16px;
  display: grid;
  position: relative;
  overflow: hidden;
}

.clinical-kpi-card.drillable {
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}

.clinical-kpi-card.drillable:hover {
  border-color: color-mix(in srgb, var(--accent, #e91e63) 36%, var(--border));
  transform: translateY(-2px);
  box-shadow: 0 12px 28px #0f172a1a;
}

.clinical-kpi-card.drillable:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent, #e91e63) 28%, transparent);
  outline-offset: 2px;
}

.clinical-kpi-card.drillable:disabled {
  cursor: wait;
  opacity: .76;
  transform: none;
}

.clinical-kpi-card.drillable.is-loading {
  border-color: color-mix(in srgb, var(--accent, #e91e63) 46%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #e91e63) 10%, transparent);
}

.clinical-kpi-card em {
  color: var(--accent, #e91e63);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  position: absolute;
  bottom: 9px;
  left: 16px;
}

.clinical-kpi-card:before {
  content: "";
  background: #64748b;
  width: 4px;
  position: absolute;
  inset: 0 auto 0 0;
}

.clinical-kpi-card.blue:before {
  background: #0ea5e9;
}

.clinical-kpi-card.pink:before {
  background: #e91e63;
}

.clinical-kpi-card.teal:before {
  background: #14b8a6;
}

.clinical-kpi-card.violet:before {
  background: #8b5cf6;
}

.clinical-kpi-card.amber:before {
  background: #f59e0b;
}

.clinical-kpi-card span {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .035em;
  font-size: 12px;
  font-weight: 800;
}

.clinical-kpi-card strong {
  color: var(--text);
  align-self: center;
  font-family: Outfit, sans-serif;
  font-size: clamp(22px, 2vw, 31px);
  line-height: 1;
}

.clinical-kpi-card > small {
  color: var(--text-muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.25;
  display: -webkit-box;
  overflow: hidden;
}

.clinical-kpi-card.drillable > small {
  padding-bottom: 12px;
}

.clinical-kpi-value-line {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-width: 0;
  display: flex;
}

.clinical-kpi-value-line > strong {
  min-width: 0;
}

.clinical-kpi-value-line > strong.textual {
  overflow-wrap: anywhere;
  white-space: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: clamp(15px, 1.15vw, 21px);
  line-height: 1.05;
  display: -webkit-box;
}

.clinical-kpi-period-badge {
  letter-spacing: .025em;
  text-align: right;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  flex: none;
  max-width: 92px;
  line-height: 1.15;
  overflow: hidden;
  color: var(--accent, #e91e63) !important;
  font-size: 8px !important;
  font-weight: 900 !important;
}

.clinical-kpi-inline-metrics {
  justify-content: flex-end;
  align-items: flex-end;
  min-width: 0;
  margin: 0;
  display: flex;
  position: absolute;
  bottom: 8px;
  right: 13px;
}

.clinical-kpi-inline-metrics > div {
  border-left: 1px solid color-mix(in srgb, var(--accent, #e91e63) 20%, var(--border));
  text-align: center;
  min-width: 44px;
  padding: 0 6px;
  display: grid;
}

.clinical-kpi-inline-metrics > div:first-child {
  border-left: 0;
}

.clinical-kpi-inline-metrics dt {
  color: var(--text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8px;
  font-weight: 750;
  line-height: 1.15;
  overflow: hidden;
}

.clinical-kpi-inline-metrics dd {
  color: var(--text);
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.clinical-kpi-card:has(.clinical-kpi-inline-metrics) > small {
  -webkit-line-clamp: 1;
  padding-bottom: 22px;
}

.clinical-chart-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  display: grid;
}

.clinical-chart-card {
  min-width: 0;
  padding: 18px;
}

.clinical-chart-card.wide {
  grid-column: 1 / -1;
}

.clinical-chart-card > div:first-child {
  gap: 3px;
  display: grid;
}

.clinical-chart-card > div:first-child span {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.clinical-chart-body {
  height: 300px;
  margin-top: 16px;
  position: relative;
}

.clinical-chart-empty {
  border: 1px dashed var(--border);
  background: var(--surface-subtle, #94a3b80d);
  text-align: center;
  border-radius: 14px;
  place-content: center;
  gap: 7px;
  height: 100%;
  padding: 24px;
  display: grid;
}

.clinical-chart-empty span {
  max-width: 380px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.clinical-matrix-card {
  overflow: hidden;
}

.clinical-table-count {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 750;
}

.clinical-matrix-table th, .clinical-matrix-table td {
  white-space: nowrap;
}

.clinical-matrix-table .empty-cell {
  white-space: normal;
}

.clinical-register-card {
  overflow: hidden;
}

.clinical-register-table tbody tr {
  cursor: pointer;
}

.clinical-register-table tbody tr:hover {
  background: #e91e630b;
}

.clinical-register-table td strong, .clinical-register-table td small {
  display: block;
}

.clinical-register-table td small {
  color: var(--text-muted);
  margin-top: 4px;
}

.clinical-pagination {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  font-size: 13px;
  display: flex;
}

.clinical-pagination > div {
  gap: 8px;
  display: flex;
}

.clinical-drawer-layer {
  z-index: 1200;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  background: #0f172a7a;
  justify-content: flex-end;
  display: flex;
  position: fixed;
  inset: 0;
}

.clinical-patient-drawer {
  background: var(--card-bg, #fff);
  width: min(480px, 100%);
  height: 100%;
  overflow: auto;
  box-shadow: -20px 0 50px #0f172a2e;
}

.clinical-patient-drawer header {
  z-index: 1;
  border-bottom: 1px solid var(--border);
  background: var(--card-bg, #fff);
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  display: flex;
  position: sticky;
  top: 0;
}

.clinical-patient-drawer header > div {
  gap: 5px;
  display: grid;
}

.clinical-patient-drawer header span, .clinical-patient-drawer header small {
  color: var(--text-muted);
}

.clinical-patient-drawer header strong {
  font-family: Outfit, sans-serif;
  font-size: 24px;
}

.clinical-patient-drawer header button {
  border: 1px solid var(--border);
  width: 38px;
  height: 38px;
  color: var(--text);
  cursor: pointer;
  background: none;
  border-radius: 11px;
  font-size: 25px;
}

.clinical-drawer-content {
  gap: 0;
  padding: 8px 22px 28px;
  display: grid;
}

.clinical-detail-row {
  border-bottom: 1px solid var(--border);
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  display: grid;
}

.clinical-detail-row span {
  color: var(--text-muted);
  font-size: 13px;
}

.clinical-detail-row strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}

.clinical-pregnancy-cycle-details {
  border-bottom: 1px solid var(--border);
  gap: 9px;
  padding: 16px 0;
  display: grid;
}

.clinical-pregnancy-cycle-details > span {
  color: var(--text-muted);
  font-size: 13px;
}

.clinical-pregnancy-cycle-details > article {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-muted) 72%, var(--card-bg, #fff));
  border-radius: 12px;
  gap: 9px;
  padding: 12px;
  display: grid;
}

.clinical-pregnancy-cycle-details article > div {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  display: flex;
}

.clinical-pregnancy-cycle-details article em {
  color: #475569;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.clinical-pregnancy-cycle-details article em.clinical-outcome-positive {
  color: #15803d;
  background: #dcfce7;
}

.clinical-pregnancy-cycle-details article em.clinical-outcome-negative {
  color: #b91c1c;
  background: #fee2e2;
}

.clinical-pregnancy-cycle-details article em.clinical-outcome-pending {
  color: #b45309;
  background: #fef3c7;
}

.clinical-pregnancy-cycle-details dl {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  display: grid;
}

.clinical-pregnancy-cycle-details dl > div {
  min-width: 0;
}

.clinical-pregnancy-cycle-details dt {
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 850;
}

.clinical-pregnancy-cycle-details dd {
  color: var(--text);
  overflow-wrap: anywhere;
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 750;
}

.clinical-drawer-note {
  color: #0369a1;
  background: #0ea5e914;
  border-radius: 13px;
  gap: 5px;
  margin-top: 20px;
  padding: 15px;
  display: grid;
}

.clinical-drawer-note span {
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 1250px) {
  .clinical-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .clinical-filter-grid {
    grid-template-columns: repeat(4, minmax(140px, 1fr));
  }
}

@media (max-width: 780px) {
  .clinical-kpi-grid, .clinical-chart-grid {
    grid-template-columns: 1fr;
  }

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

  .clinical-search-field {
    grid-column: span 2;
  }

  .clinical-context-row > * + :before {
    display: none;
  }

  .clinical-chart-body {
    height: 260px;
  }

  .clinical-chart-card.wide {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .clinical-filter-grid {
    grid-template-columns: 1fr;
  }

  .clinical-search-field {
    grid-column: auto;
  }

  .clinical-pagination {
    flex-direction: column;
    align-items: flex-start;
  }

  .clinical-detail-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

.auth-shell {
  background: var(--surface-solid, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 30px;
  grid-template-columns: 1.05fr .95fr;
  width: min(1080px, 94vw);
  min-height: 650px;
  display: grid;
  overflow: hidden;
  box-shadow: 0 28px 80px #3d122a33;
}

.auth-brand-panel {
  color: #fff;
  background: radial-gradient(circle at 15% 10%, #ffffff2e, #0000 35%), linear-gradient(145deg, #7f1749, #d60063 65%, #f06b9e);
  flex-direction: column;
  justify-content: space-between;
  padding: 52px;
  display: flex;
}

.auth-brand-panel img {
  filter: none;
  background: #fff;
  border-radius: 14px;
  width: 156px;
  height: auto;
  padding: 10px 12px;
  box-shadow: 0 10px 26px #490a2a2e;
}

.auth-brand-panel h1 {
  margin: 16px 0;
  font: 900 clamp(34px, 4vw, 52px) / 1.05 Outfit, sans-serif;
}

.auth-brand-panel p {
  opacity: .9;
  max-width: 480px;
  line-height: 1.7;
}

.auth-brand-panel small {
  opacity: .75;
  font-weight: 700;
}

.auth-eyebrow {
  letter-spacing: .14em;
  font-size: 11px;
  font-weight: 900;
}

.auth-form-panel {
  align-self: center;
  padding: clamp(34px, 5vw, 64px);
}

.auth-form-panel > h1 {
  color: var(--text);
  margin: 14px 0 8px;
  font: 900 34px / 1.1 Outfit, sans-serif;
}

.auth-intro {
  color: var(--text-muted);
  margin: 0 0 30px;
  line-height: 1.6;
}

.auth-security-pill {
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
}

.auth-form-panel .input-group {
  gap: 7px;
  margin: 18px 0;
  display: grid;
}

.auth-form-panel .input-group label, .auth-field span {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 12px;
  font-weight: 850;
}

.auth-form-panel .input-group input, .auth-field input {
  border: 2px solid color-mix(in srgb, var(--text-muted) 45%, var(--surface-solid));
  background: color-mix(in srgb, var(--surface-solid) 96%, var(--text) 4%);
  width: 100%;
  height: 50px;
  color: var(--text);
  border-radius: 14px;
  padding: 0 15px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  box-shadow: inset 0 1px 2px #0f172a0a;
}

.auth-form-panel .input-group input:hover, .auth-field input:hover {
  border-color: color-mix(in srgb, var(--primary) 42%, var(--text-muted));
}

.auth-form-panel .input-group input:focus, .auth-field input:focus {
  border-color: var(--primary);
  background: var(--surface-solid);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent);
  outline: none;
}

.auth-form-panel .password-wrapper {
  position: relative;
}

.auth-forgot-link, .auth-back-link {
  color: var(--primary);
  cursor: pointer;
  background: none;
  border: 0;
  margin: 0 0 14px;
  padding: 8px 0;
  font-weight: 800;
}

.auth-back-link {
  display: inline-flex;
}

.auth-submit {
  border-radius: 16px;
  width: 100%;
  height: 54px;
  font-weight: 900;
}

.auth-field {
  gap: 7px;
  margin: 18px 0;
  display: grid;
}

.auth-methods {
  gap: 10px;
  margin: 20px 0;
  display: grid;
}

.auth-methods button {
  text-align: left;
  border: 1px solid var(--border);
  background: var(--surface-solid);
  color: var(--text);
  cursor: pointer;
  border-radius: 14px;
  gap: 4px;
  padding: 15px;
  display: grid;
}

.auth-methods button.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

.auth-methods span {
  color: var(--text-muted);
  font-size: 12px;
}

.auth-password-rules, .password-rule-grid {
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 8px 0 16px;
  display: grid;
}

.auth-password-rules span {
  color: var(--text-muted);
  font-size: 11px;
}

.auth-password-rules .met {
  color: #15803d;
}

.auth-error {
  color: #be123c;
  background: #fff1f2;
  border-radius: 12px;
  margin: 14px 0;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
}

.password-strength {
  margin: 10px 0 8px;
}

.password-strength-header {
  color: var(--text-muted);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 800;
  display: flex;
}

.password-strength-header strong {
  color: var(--text);
}

.password-strength-track {
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  display: grid;
}

.password-strength-track i {
  background: color-mix(in srgb, var(--text-muted) 18%, transparent);
  border-radius: 999px;
  height: 6px;
  transition: background-color .2s, transform .2s;
  display: block;
}

.password-strength-track i.active {
  background: #f59e0b;
  transform: scaleY(1.08);
}

.password-strength[data-level="5"] .password-strength-track i.active {
  background: #16a34a;
}

.cookie-notice {
  z-index: 100000;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
  background: color-mix(in srgb, var(--surface-solid) 96%, transparent);
  width: min(920px, 100vw - 32px);
  color: var(--text);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-radius: 18px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  display: grid;
  position: fixed;
  transform: translateX(-50%);
  box-shadow: 0 20px 60px #0f172a3d;
}

.cookie-notice-icon {
  background: color-mix(in srgb, var(--primary) 10%, var(--surface-solid));
  border-radius: 13px;
  place-items: center;
  width: 42px;
  height: 42px;
  font-size: 20px;
  display: grid;
}

.cookie-notice-copy strong {
  margin-bottom: 3px;
  font: 800 14px Outfit, sans-serif;
  display: block;
}

.cookie-notice-copy p {
  color: var(--text-muted);
  margin: 0;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.5;
}

.cookie-notice-button {
  background: var(--primary);
  color: #fff;
  white-space: nowrap;
  cursor: pointer;
  min-height: 42px;
  box-shadow: 0 8px 20px var(--primary-glow);
  border: 0;
  border-radius: 12px;
  padding: 0 17px;
  font-size: 11px;
  font-weight: 850;
}

.cookie-notice-button:hover {
  transform: translateY(-1px);
}

.cookie-notice-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 28%, transparent);
  outline-offset: 3px;
}

.welcome-resend-modal {
  border: 1px solid color-mix(in srgb, var(--primary) 20%, var(--border));
  background: var(--surface-solid);
  width: min(94vw, 600px);
  max-height: calc(100dvh - 36px);
  color: var(--text);
  border-radius: 26px;
  position: relative;
  overflow: auto;
  box-shadow: 0 30px 90px #0f172a4d;
}

.welcome-resend-close {
  color: #fff;
  background: #ffffff24;
  border-color: #ffffff47;
  top: 17px;
  right: 17px;
}

.welcome-resend-close:hover {
  background: #ffffff3d;
}

.welcome-resend-header {
  color: #fff;
  background: linear-gradient(135deg, #d90064 0%, #9d174d 100%);
  align-items: flex-start;
  gap: 16px;
  padding: 28px 64px 26px 28px;
  display: flex;
}

.welcome-resend-icon {
  background: #ffffff29;
  border: 1px solid #ffffff40;
  border-radius: 15px;
  flex: 0 0 48px;
  place-items: center;
  width: 48px;
  height: 48px;
  display: grid;
}

.welcome-resend-eyebrow {
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .84;
  margin: 0 0 5px;
  font-size: 10px;
  font-weight: 900;
  display: block;
}

.welcome-resend-header h3 {
  color: #fff;
  margin: 0;
  font: 850 24px / 1.18 Outfit, sans-serif;
}

.welcome-resend-header p {
  color: #ffffffd9;
  margin: 7px 0 0;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
}

.welcome-resend-body {
  gap: 16px;
  padding: 24px 28px 22px;
  display: grid;
}

.welcome-resend-user {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--primary) 4%, var(--surface-solid));
  border-radius: 15px;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  display: flex;
}

.welcome-resend-user-avatar {
  width: 40px;
  height: 40px;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, var(--surface-solid));
  border-radius: 13px;
  flex: 0 0 40px;
  place-items: center;
  font: 850 17px Outfit, sans-serif;
  display: grid;
}

.welcome-resend-user div {
  min-width: 0;
}

.welcome-resend-user strong, .welcome-resend-user span {
  overflow-wrap: anywhere;
  display: block;
}

.welcome-resend-user strong {
  font: 800 14px Outfit, sans-serif;
}

.welcome-resend-user span {
  color: var(--text-muted);
  margin-top: 2px;
  font-size: 11px;
  font-weight: 650;
}

.welcome-resend-notice {
  color: #92400e;
  background: #f59e0b14;
  border: 1px solid #f59e0b38;
  border-radius: 13px;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  display: flex;
}

.welcome-password-heading {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.welcome-password-heading label {
  color: var(--text);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 850;
}

.welcome-create-password {
  border: 1px solid color-mix(in srgb, var(--primary) 26%, var(--border));
  background: color-mix(in srgb, var(--primary) 7%, var(--surface-solid));
  min-height: 36px;
  color: var(--primary);
  cursor: pointer;
  border-radius: 10px;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  font-size: 11px;
  font-weight: 850;
  display: inline-flex;
}

.welcome-create-password:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 16px #d900641f;
}

.welcome-password-field {
  position: relative;
}

.welcome-password-field input {
  border: 1px solid var(--border);
  background: var(--surface-solid);
  width: 100%;
  height: 50px;
  color: var(--text);
  border-radius: 13px;
  outline: 0;
  padding: 0 66px 0 15px;
  font-size: 14px;
  font-weight: 700;
}

.welcome-password-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 12%, transparent);
}

.welcome-password-field button {
  color: var(--primary);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 8px;
  padding: 7px 8px;
  font-size: 10px;
  font-weight: 850;
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
}

.welcome-password-help {
  color: var(--text-muted);
  margin: -9px 0 0;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.45;
}

.welcome-password-rules {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
  display: grid;
}

.welcome-password-rules span {
  color: var(--text-muted);
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
}

.welcome-password-rules span b {
  background: color-mix(in srgb, var(--text-muted) 12%, transparent);
  border-radius: 50%;
  place-items: center;
  width: 16px;
  height: 16px;
  font-size: 10px;
  display: grid;
}

.welcome-password-rules span.met {
  color: #15803d;
}

.welcome-password-rules span.met b {
  color: #fff;
  background: #16a34a;
}

.welcome-resend-footer {
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--text-muted) 3%, var(--surface-solid));
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 28px;
  display: flex;
}

.welcome-resend-submit {
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-width: 190px;
  display: inline-flex;
}

.welcome-resend-submit:disabled {
  cursor: wait;
  opacity: .82;
}

.welcome-action-spinner {
  border: 2px solid #ffffff73;
  border-top-color: #fff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: .7s linear infinite welcome-action-spin;
}

.welcome-resend-progress {
  color: var(--text-muted);
  background: color-mix(in srgb, var(--text-muted) 3%, var(--surface-solid));
  text-align: right;
  margin: 0;
  padding: 0 28px 16px;
  font-size: 11px;
  font-weight: 700;
}

@keyframes welcome-action-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-action-spinner {
    animation-duration: 1.5s;
  }
}

@media (max-width: 760px) {
  .cookie-notice {
    bottom: max(10px, env(safe-area-inset-bottom));
    border-radius: 16px;
    grid-template-columns: auto minmax(0, 1fr);
    width: calc(100vw - 20px);
    padding: 14px;
  }

  .cookie-notice-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .welcome-resend-modal {
    border-radius: 20px;
    width: 100%;
    max-height: calc(100dvh - 24px);
  }

  .welcome-resend-header {
    padding: 24px 52px 22px 20px;
  }

  .welcome-resend-icon {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }

  .welcome-resend-body {
    padding: 20px;
  }

  .welcome-password-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .welcome-password-rules {
    grid-template-columns: 1fr;
  }

  .welcome-resend-footer {
    padding: 16px 20px;
  }

  .welcome-resend-footer .btn {
    flex: 1 1 0;
    padding-inline: 12px;
  }

  .welcome-resend-submit {
    min-width: 0;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .auth-brand-panel {
    min-height: 220px;
    padding: 28px;
  }

  .auth-brand-panel h1 {
    font-size: 31px;
  }

  .auth-brand-panel small {
    display: none;
  }

  .auth-form-panel {
    padding: 30px;
  }

  .auth-password-rules {
    grid-template-columns: 1fr;
  }
}

.clinical-dashboard-page {
  gap: 16px;
}

.clinical-filter-card {
  border-radius: 16px;
  padding: 16px;
}

.clinical-filter-heading {
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.clinical-filter-heading strong {
  font-size: 15px;
}

.clinical-filter-heading .clinical-data-status {
  flex: none;
  margin-left: auto;
}

.clinical-filter-heading .clinical-filter-state {
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  display: flex;
}

.dashboard-load-timer {
  white-space: nowrap;
  background: #f8fafc;
  border: 1px solid #dbe3ed;
  border-radius: 9px;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 5px 10px;
  display: inline-flex;
  color: #64748b !important;
  font-size: 10px !important;
  font-weight: 750 !important;
}

.dashboard-load-timer strong {
  color: #334155;
  font-size: 10px;
  font-weight: 900;
}

.dashboard-load-timer.running {
  background: #fff8e8;
  border-color: #f3d59a;
  color: #9a6700 !important;
}

.dashboard-load-timer.running strong {
  color: #9a6700;
}

.clinical-select-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  display: grid;
}

.clinical-select-grid label {
  gap: 6px;
  min-width: 0;
  display: grid;
}

.clinical-select-grid label > span, .clinical-date-filter label > span, .clinical-date-preset > span {
  color: var(--text-muted);
  letter-spacing: .015em;
  font-size: 11px;
  font-weight: 800;
}

.clinical-select-grid input, .clinical-select-grid select, .clinical-date-filter input, .clinical-date-filter select {
  border-radius: 10px;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  font-size: 13px;
}

.clinical-timeline-heading {
  border-top: 1px solid var(--border);
  align-items: baseline;
  gap: 9px;
  margin: 15px 0 8px;
  padding-top: 12px;
  display: flex;
}

.clinical-timeline-heading strong {
  font-size: 13px;
}

.clinical-timeline-heading span {
  color: var(--text-muted);
  font-size: 11px;
}

.clinical-date-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  display: grid;
}

.clinical-dashboard-date-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.clinical-date-filter {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card-bg, #fff) 94%, #f8fafc);
  border-radius: 11px;
  min-width: 0;
  margin: 0;
  padding: 7px 9px 9px;
  display: block;
}

.clinical-date-preset {
  gap: 4px;
  min-width: 0;
  display: grid;
}

body.admin-reporting-active.dark-mode .clinical-date-filter, body.admin-reporting-active.dark-mode .doctor-report-day-custom-range {
  background: color-mix(in srgb, var(--surface-solid) 92%, #0f172a);
  border-color: #ffffff1f;
}

body.admin-reporting-active.dark-mode .doctor-report-preset-menu, body.admin-reporting-active.dark-mode .doctor-report-multi-menu, body.admin-reporting-active.dark-mode .doctor-report-preset-select summary, body.admin-reporting-active.dark-mode .doctor-report-multi-select summary {
  background: var(--surface-solid);
  border-color: #ffffff1f;
}

body.admin-reporting-active.dark-mode .doctor-report-table .doctor-report-total-row td, body.admin-reporting-active.dark-mode .doctor-report-table .doctor-report-center-total-row td, body.admin-reporting-active.dark-mode .doctor-report-table .doctor-report-total-row:hover td, body.admin-reporting-active.dark-mode .doctor-report-table .doctor-report-center-total-row:hover td {
  background: color-mix(in srgb, var(--primary, #e60065) 10%, var(--surface-solid));
  color: var(--text);
}

body.admin-reporting-active.dark-mode .doctor-report-table .doctor-report-grand-total-row td, body.admin-reporting-active.dark-mode .doctor-report-table .doctor-report-grand-total-row:hover td {
  background: color-mix(in srgb, var(--primary, #e60065) 18%, var(--surface-solid));
  color: var(--text);
}

.clinical-date-filter legend {
  color: var(--text);
  padding: 0 5px;
  font-size: 11px;
  font-weight: 800;
}

.clinical-date-filter label {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.clinical-date-preset {
  width: 100%;
}

.clinical-date-preset select {
  font-size: 12px;
}

.clinical-custom-date-range {
  border-top: 1px solid var(--border);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 7px;
  padding-top: 7px;
  display: grid;
}

.clinical-date-filter input {
  min-width: 0;
  padding-inline: 7px;
  font-size: 11px;
}

.clinical-filter-footer {
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-top: 12px;
  display: flex;
}

.clinical-filter-meta {
  color: var(--text-muted);
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 9px;
  font-size: 9px;
  line-height: 1.2;
  display: flex;
}

.clinical-filter-meta strong {
  color: var(--text);
  font-size: 10px;
}

.clinical-filter-meta > * + :before {
  content: "";
  background: var(--border);
  border-radius: 50%;
  width: 3px;
  height: 3px;
  margin: 0 8px 2px 0;
  display: inline-block;
}

.clinical-filter-actions {
  justify-content: flex-end;
  gap: 9px;
  display: flex;
}

.clinical-filter-actions .btn {
  min-width: 112px;
}

.clinical-kpi-grid-reference {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px;
}

.clinical-kpi-grid-reference > .clinical-kpi-card, .clinical-kpi-grid-reference > .clinical-kpi-balance, .clinical-kpi-grid-reference > .clinical-kpi-diagnostic {
  grid-column: span 2;
}

.clinical-kpi-card {
  border-radius: 14px;
  gap: 3px;
  min-height: 0;
  padding: 11px 13px 10px 16px;
}

.clinical-kpi-card span {
  font-size: 10px;
}

.clinical-kpi-card > span {
  color: var(--text);
  font-weight: 900;
}

.clinical-kpi-card strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(19px, 1.6vw, 27px);
  line-height: 1.1;
  overflow: hidden;
}

.clinical-kpi-card small {
  font-size: 11px;
}

.clinical-chart-grid {
  gap: 11px;
}

.clinical-chart-card {
  border-radius: 15px;
  padding: 15px;
}

.clinical-chart-card > div:first-child strong {
  font-size: 14px;
}

.clinical-chart-card > div:first-child span {
  font-size: 11px;
  font-weight: 700;
}

.clinical-chart-body {
  height: 260px;
  margin-top: 11px;
}

.clinical-chart-card.wide .clinical-chart-body {
  height: 285px;
}

.clinical-chart-card.roomy .clinical-chart-body {
  height: 500px;
}

.clinical-chart-empty {
  border-radius: 11px;
  padding: 18px;
}

.clinical-chart-empty strong {
  font-size: 13px;
}

.clinical-chart-empty span {
  font-size: 11px;
}

.clinical-matrix-card, .clinical-register-card {
  border-radius: 15px;
}

.clinical-matrix-table th, .clinical-matrix-table td, .clinical-register-table th, .clinical-register-table td {
  padding-block: 11px;
  font-size: 12px;
}

.clinical-matrix-table thead th {
  text-align: center;
}

.clinical-matrix-table thead th:first-child, .clinical-matrix-table tbody td:first-child {
  text-align: left;
}

.clinical-number-cell {
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.clinical-sort-button {
  width: 100%;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  display: inline-flex;
}

.clinical-sort-button span {
  min-width: 10px;
  color: var(--accent, #e91e63);
  font-size: 9px;
}

.clinical-conversion {
  grid-template-columns: minmax(90px, 1fr) 48px;
  align-items: center;
  gap: 9px;
  min-width: 160px;
  display: grid;
}

.clinical-conversion-track {
  background: #e8edf4;
  border-radius: 999px;
  height: 9px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px #0f172a14;
}

.clinical-conversion-track span {
  border-radius: inherit;
  background: linear-gradient(90deg, #0ea5e9, #14b8a6);
  height: 100%;
  display: block;
  box-shadow: 0 0 10px #14b8a647;
}

.clinical-conversion strong {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}

.clinical-register-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 8px;
  display: flex;
}

.clinical-register-actions label {
  gap: 4px;
  min-width: 170px;
  display: grid;
}

.clinical-register-actions label > span {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
}

.clinical-register-actions select {
  border: 1px solid var(--border);
  background: var(--card-bg, #fff);
  min-height: 34px;
  color: var(--text);
  border-radius: 9px;
  padding: 6px 9px;
  font-size: 12px;
}

.clinical-register-actions .mini-btn {
  min-height: 34px;
}

.clinical-register-actions .mini-btn.is-loading, .clinical-filter-actions .btn.is-loading {
  cursor: wait;
  justify-content: center;
  align-items: center;
  display: inline-flex;
  position: relative;
  box-shadow: 0 0 0 3px #e91e631a;
}

.clinical-register-actions .mini-btn.is-loading:before, .clinical-filter-actions .btn.is-loading:before {
  content: "";
  border: 2px solid;
  border-right-color: #0000;
  border-radius: 50%;
  width: 11px;
  height: 11px;
  margin-right: 6px;
  animation: .7s linear infinite clinical-action-spin;
}

@keyframes clinical-action-spin {
  to {
    transform: rotate(360deg);
  }
}

.clinical-register-drill {
  border: 1px solid color-mix(in srgb, var(--accent, #e91e63) 22%, var(--border));
  background: color-mix(in srgb, var(--accent, #e91e63) 7%, var(--card-bg, #fff));
  color: var(--accent, #e91e63);
  border-radius: 999px;
  align-self: center;
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 800;
}

.clinical-register-table td small {
  font-size: 11px;
  line-height: 1.35;
}

.clinical-event-line {
  display: block;
}

.clinical-event-line + .clinical-event-line {
  border-top: 1px dashed var(--border);
  margin-top: 7px;
  padding-top: 7px;
}

@media (max-width: 1450px) {
  .clinical-select-grid, .clinical-date-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .clinical-dashboard-date-grid, .clinical-kpi-grid-reference {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .clinical-kpi-grid-reference > .clinical-kpi-card {
    grid-column: span 1;
  }
}

@media (max-width: 1100px) {
  .clinical-kpi-grid-reference {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1000px) {
  .clinical-date-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clinical-dashboard-date-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .clinical-dashboard-date-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .clinical-select-grid, .clinical-date-grid {
    grid-template-columns: 1fr;
  }

  .clinical-timeline-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .clinical-filter-actions .btn {
    flex: 1;
    min-width: 0;
  }

  .clinical-filter-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .clinical-filter-meta {
    order: 2;
  }

  .clinical-filter-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .clinical-filter-heading .clinical-data-status {
    align-self: flex-start;
    margin-left: 0;
  }

  .clinical-filter-heading .clinical-filter-state {
    flex-direction: column-reverse;
    align-items: flex-start;
    margin-left: 0;
  }

  .clinical-register-actions {
    justify-content: stretch;
    width: 100%;
  }

  .clinical-register-actions label {
    min-width: 100%;
  }

  .clinical-register-actions .mini-btn {
    flex: 1;
  }

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

  .clinical-chart-card.wide .clinical-chart-body, .clinical-chart-body {
    height: 240px;
  }

  .clinical-chart-card.roomy .clinical-chart-body {
    height: 420px;
  }
}

@media (max-width: 520px) {
  .clinical-kpi-grid-reference {
    grid-template-columns: 1fr;
  }
}

.marketing-centre-multi-field {
  min-width: 0;
}

.marketing-centre-multi-field .doctor-report-multi-select summary {
  box-sizing: border-box;
  width: 100%;
  min-height: 40px;
  font-size: 12px;
}

.marketing-centre-multi-field .doctor-report-multi-menu {
  min-width: max(100%, 290px);
}

.marketing-pivot-sections {
  gap: 16px;
  min-width: 0;
  display: grid;
}

.marketing-pivot-toolbar {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 2px 2px 0;
  display: flex;
}

.marketing-pivot-toolbar > div {
  gap: 3px;
  display: grid;
}

.marketing-pivot-toolbar strong {
  color: var(--text);
  font-size: 15px;
}

.marketing-pivot-toolbar span {
  color: var(--text-muted);
  font-size: 11px;
}

.marketing-master-search {
  width: min(360px, 34vw);
}

.marketing-pivot-export {
  min-height: 34px;
  padding-inline: 12px;
  transition: transform .18s, background-color .18s, border-color .18s, box-shadow .18s;
}

.marketing-pivot-export:not(:disabled):hover {
  background: #fbcfe8;
  border-color: #f472b6;
  transform: translateY(-1px);
  box-shadow: 0 9px 20px #e91e6329;
}

.marketing-pivot-export:not(:disabled):active {
  box-shadow: var(--shadow-sm);
  transform: translateY(0);
}

.marketing-pivot-export:disabled {
  cursor: not-allowed;
  opacity: .55;
  box-shadow: none;
}

.marketing-pivot-card, .marketing-master-card {
  border: 1px solid color-mix(in srgb, var(--border) 82%, #64748b);
  border-radius: 15px;
  overflow: hidden;
}

.marketing-pivot-card .doctor-report-table-heading {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent, #e91e63) 5%, #fff), #fff 65%);
}

.marketing-pivot-table, .marketing-master-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 100%;
}

.marketing-pivot-table thead th, .marketing-master-table thead th {
  color: #172033;
  white-space: nowrap;
  background: #f8fafc;
  border-top: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  font-weight: 800;
}

.marketing-pivot-table tbody td, .marketing-master-table tbody td {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  border-bottom: 1px solid #d9e0e8;
}

.marketing-pivot-table th:not(:first-child), .marketing-pivot-table td:not(:first-child) {
  text-align: center;
}

.marketing-pivot-table tbody tr:hover td, .marketing-master-table tbody tr:hover td {
  background: color-mix(in srgb, var(--accent, #e91e63) 4%, var(--card-bg, #fff));
}

.marketing-pivot-table .doctor-report-grand-total-row td {
  background: color-mix(in srgb, #94a3b8 8%, var(--card-bg, #fff));
  border-top: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  font-weight: 800;
}

.marketing-master-card .doctor-report-pagination {
  border-top: 1px solid #d9e0e8;
}

@media (max-width: 700px) {
  .marketing-pivot-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .marketing-pivot-toolbar .btn {
    align-self: flex-start;
  }

  .marketing-master-search {
    width: 100%;
  }
}

.business-dashboard-page {
  gap: 14px;
  padding-bottom: 28px;
}

.business-outlook-strip {
  min-height: 64px;
  box-shadow: var(--shadow-sm);
  background: linear-gradient(110deg, #ecfdf5fa, #f0fdfaeb);
  border: 1px solid #b7ebc6;
  border-radius: 17px;
  align-items: center;
  gap: 14px;
  padding: 11px 13px 11px 16px;
  display: flex;
}

.business-outlook-check {
  color: #fff;
  background: #35bd6b;
  border-radius: 50%;
  flex: 0 0 38px;
  place-items: center;
  width: 38px;
  height: 38px;
  display: grid;
  box-shadow: 0 8px 18px #22c55e33;
}

.business-outlook-check svg {
  width: 21px;
  height: 21px;
}

.business-outlook-copy {
  flex: auto;
  align-items: baseline;
  gap: 16px;
  min-width: 0;
  display: flex;
}

.business-outlook-copy > strong {
  color: var(--text);
  flex: none;
  font-size: 12px;
  font-weight: 900;
}

.business-outlook-copy > strong span {
  color: #16a34a;
}

.business-outlook-copy p {
  color: var(--text-muted);
  margin: 0;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.business-outlook-action {
  justify-content: center;
  min-width: 128px;
  color: #2563eb !important;
  border-color: #b7cdfb !important;
}

.business-outlook-action svg {
  width: 16px;
  height: 16px;
}

.business-dashboard-filter-card {
  border-radius: 17px;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  display: grid;
}

.business-dashboard-filter-heading {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 10px;
  display: flex;
}

.business-dashboard-filter-heading > div {
  gap: 3px;
  display: grid;
}

.business-dashboard-filter-heading strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.business-dashboard-filter-heading span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}

.business-dashboard-filter-heading .business-dashboard-filter-state {
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  display: flex;
}

.business-dashboard-filter-heading .dashboard-load-timer {
  font-size: 10px !important;
}

.business-dashboard-filter-heading .dashboard-load-timer strong {
  color: #334155;
  font-size: 10px;
}

.business-dashboard-filter-status {
  background: #eef2f7;
  border-radius: 999px;
  flex: none;
  padding: 6px 11px;
  color: #64748b !important;
  font-size: 10px !important;
  font-weight: 900 !important;
}

.business-dashboard-filter-status.ready {
  background: #d1fae5;
  color: #047857 !important;
}

.business-dashboard-filter-status.partial {
  background: #fef3c7;
  color: #b45309 !important;
}

.business-dashboard-filter-status.no-data {
  background: #fee2e2;
  color: #b91c1c !important;
}

.business-dashboard-filter-status.pending {
  background: #e2e8f0;
  color: #475569 !important;
}

.business-dashboard-filter-grid {
  grid-template-columns: repeat(3, minmax(170px, 1fr)) auto;
  align-items: end;
  gap: 10px;
  display: grid;
}

.business-dashboard-filter-grid.has-custom-range {
  grid-template-columns: repeat(5, minmax(140px, 1fr)) auto;
}

.business-dashboard-filter-grid label {
  gap: 5px;
  min-width: 0;
  display: grid;
}

.business-dashboard-filter-grid label > span {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 850;
}

.business-dashboard-filter-grid select, .business-dashboard-filter-grid input {
  box-sizing: border-box;
  border: 1px solid var(--border);
  background: var(--card-bg, #fff);
  width: 100%;
  height: 38px;
  color: var(--text);
  font: inherit;
  border-radius: 10px;
  outline: none;
  padding: 0 11px;
  font-size: 11px;
  font-weight: 800;
}

.business-dashboard-filter-grid select:focus, .business-dashboard-filter-grid input:focus {
  border-color: color-mix(in srgb, var(--accent, #e91e63) 60%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #e91e63) 10%, transparent);
}

.business-dashboard-filter-actions {
  align-items: center;
  gap: 8px;
  display: flex;
}

.business-dashboard-filter-actions .btn {
  white-space: nowrap;
  min-height: 38px;
  padding: 0 14px;
  font-size: 10px;
  font-weight: 900;
}

.business-dashboard-filter-actions .btn:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.business-dashboard-kpi-grid, .business-dashboard-operational-kpi-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: 112px;
  gap: 10px;
  display: grid;
}

.business-dashboard-strategic-kpi-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 112px;
  gap: 10px;
  display: grid;
}

.business-dashboard-pending-kpi {
  grid-template-rows: 28px minmax(30px, auto) minmax(24px, 1fr);
}

.business-dashboard-pending-kpi:has(.business-anc-kpi-metrics) {
  grid-template-rows: 24px minmax(24px, auto) minmax(25px, auto) minmax(15px, 1fr);
  row-gap: 2px;
}

.business-anc-kpi-metrics {
  justify-content: flex-start;
  position: static;
  bottom: auto;
  right: auto;
}

.business-anc-kpi-metrics > div {
  flex: 1 1 0;
  min-width: 0;
}

.business-anc-kpi-metrics dt, .clinical-anc-kpi-card .clinical-kpi-inline-metrics dt {
  color: var(--text);
  font-size: 9px;
  font-weight: 900;
  line-height: 1.05;
}

.business-anc-kpi-metrics dd, .clinical-anc-kpi-card .clinical-kpi-inline-metrics dd {
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.05;
}

.clinical-anc-kpi-card {
  grid-template-rows: auto auto minmax(25px, auto) minmax(14px, 1fr);
  row-gap: 2px;
}

.clinical-anc-kpi-card .clinical-kpi-inline-metrics {
  box-sizing: border-box;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  max-width: 100%;
  position: static;
  bottom: auto;
  right: auto;
  overflow: hidden;
}

.clinical-anc-kpi-card .clinical-kpi-inline-metrics > div {
  text-align: center;
  flex: 1 1 0;
  min-width: 0;
  padding: 0 4px;
}

.clinical-anc-kpi-card .clinical-kpi-value-line {
  align-items: flex-start;
  gap: 8px;
}

.clinical-anc-kpi-card .clinical-kpi-period-badge {
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
  flex: auto;
  max-width: none;
  overflow: visible;
}

.clinical-anc-kpi-card .clinical-kpi-inline-metrics dt {
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
  justify-content: center;
  align-items: center;
  min-height: 2.1em;
  display: flex;
  overflow: visible;
}

.clinical-anc-kpi-card > small {
  color: var(--text);
  white-space: nowrap;
  -webkit-line-clamp: 1;
  align-self: start;
  font-size: 9.5px;
  font-weight: 850;
  line-height: 1.1;
  padding-bottom: 0 !important;
}

.business-dashboard-pending-kpi:has(.business-anc-kpi-metrics) .business-pending-kpi-footer > span {
  display: none;
}

.business-dashboard-pending-kpi:has(.business-anc-kpi-metrics) .business-pending-kpi-footer {
  align-content: start;
}

.business-dashboard-pending-kpi:has(.business-anc-kpi-metrics) .business-pending-kpi-footer small {
  color: var(--text);
  font-size: 9.5px;
  font-weight: 850;
  line-height: 1.1;
}

.business-pending-badge {
  background: color-mix(in srgb, var(--business-kpi-accent) 10%, white);
  color: var(--business-kpi-accent);
  border-radius: 999px;
  flex: none;
  padding: 4px 9px;
  font-size: 9px;
  font-weight: 900;
}

.business-pending-kpi-footer {
  align-content: end;
  gap: 2px;
  min-width: 0;
  display: grid;
}

.business-pending-kpi-footer > span {
  color: var(--text-muted);
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 800;
  display: inline-flex;
}

.business-pending-kpi-footer > span strong {
  color: var(--text);
  font-weight: 900;
}

.business-pending-kpi-footer > span i {
  background: var(--border);
  width: 1px;
  height: 12px;
}

.business-pending-kpi-footer small {
  color: var(--text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  font-weight: 700;
  overflow: hidden;
}

.business-dashboard-new-insight-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  display: grid;
}

.business-dashboard-new-insight-grid > .clinical-chart-card {
  min-width: 0;
  height: 335px;
  margin-bottom: 0;
  overflow: hidden;
}

.business-connected-trend-card {
  grid-template-rows: auto minmax(0, 1fr);
  display: grid;
}

.business-dashboard-strategic-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  display: grid;
}

.business-dashboard-strategic-grid > .clinical-chart-card {
  min-width: 0;
  height: 335px;
  margin-bottom: 0;
  overflow: hidden;
}

.business-strategic-chart-card {
  grid-template-rows: auto minmax(0, 1fr);
  display: grid;
}

.business-revenue-service-card {
  box-sizing: border-box;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  height: 335px;
  margin-bottom: 0;
  display: grid;
  overflow: hidden;
}

.business-revenue-service-chart-scroll {
  overscroll-behavior-inline: contain;
  overflow: auto hidden;
}

.business-revenue-service-chart-inner {
  width: max(100%, 760px);
  height: 100%;
}

.business-pending-chart-card {
  grid-template-rows: auto minmax(0, 1fr);
  display: grid;
}

.business-pending-chart-legend {
  flex: none;
  align-items: center;
  gap: 13px;
  padding-top: 3px;
  display: flex;
}

.business-pending-chart-legend span {
  color: var(--text-muted);
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 900;
  display: inline-flex;
}

.business-pending-chart-legend i {
  border-radius: 999px;
  width: 20px;
  height: 3px;
}

.business-pending-chart-plot {
  border: 1px dashed color-mix(in srgb, var(--text-muted) 22%, var(--border));
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-subtle, #f8fafc) 72%, transparent), transparent);
  border-radius: 13px;
  min-height: 0;
  margin-top: 12px;
  display: grid;
  position: relative;
  overflow: hidden;
}

.business-pending-chart-grid {
  grid-template-rows: repeat(5, 1fr);
  display: grid;
  position: absolute;
  inset: 20px 18px 28px 42px;
}

.business-pending-chart-grid i {
  border-top: 1px solid color-mix(in srgb, var(--text-muted) 14%, transparent);
}

.business-pending-chart-grid i:last-child {
  border-bottom: 1px solid color-mix(in srgb, var(--text-muted) 14%, transparent);
}

.business-pending-chart-empty {
  z-index: 1;
  text-align: center;
  align-content: center;
  justify-items: center;
  gap: 5px;
  padding: 20px;
  display: grid;
  position: relative;
}

.business-pending-chart-empty svg {
  color: #0e91c8;
  background: #e7f6fd;
  border-radius: 12px;
  width: 28px;
  height: 28px;
  padding: 9px;
}

.business-pending-chart-empty strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.business-pending-chart-empty span {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
}

.business-revenue-mix-placeholder {
  align-content: center;
  gap: 12px;
  min-height: 0;
  padding: 12px 6px 0;
  display: grid;
}

.business-revenue-mix-placeholder > div {
  grid-template-columns: minmax(105px, .22fr) minmax(0, 1fr) 40px;
  align-items: center;
  gap: 12px;
  display: grid;
}

.business-revenue-mix-placeholder > div > strong {
  color: var(--text);
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
}

.business-revenue-mix-placeholder > div > strong i {
  border-radius: 50%;
  width: 9px;
  height: 9px;
}

.business-revenue-mix-placeholder > div > span {
  background: color-mix(in srgb, var(--text-muted) 10%, transparent);
  border-radius: 999px;
  height: 13px;
  display: block;
}

.business-revenue-mix-placeholder > div > span b {
  border-left: 3px solid;
  width: 0;
  height: 100%;
  display: block;
}

.business-revenue-mix-placeholder > div > em {
  color: var(--text-muted);
  text-align: right;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.business-revenue-mix-placeholder p {
  color: var(--text-muted);
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin: 2px 0 0;
  font-size: 10px;
  font-weight: 750;
  display: flex;
}

.business-revenue-mix-placeholder p svg {
  color: #8b5cf6;
  width: 16px;
  height: 16px;
}

.business-bottom-insight-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr) minmax(0, .9fr) minmax(0, 1.25fr);
  align-items: stretch;
  gap: 14px;
  display: grid;
}

.business-bottom-insight-grid > .clinical-chart-card {
  margin-bottom: 0;
}

.business-bottom-card {
  box-sizing: border-box;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  height: 300px;
  display: grid;
  overflow: hidden;
}

.business-bottom-card .business-dashboard-card-heading {
  min-height: 42px;
}

.business-bottom-card .business-dashboard-card-heading > div:first-child > strong {
  font-size: 14px;
  font-weight: 700;
}

.business-bottom-card .business-dashboard-card-heading > div:first-child > span {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.business-bottom-card .business-dashboard-card-heading > div:first-child > strong {
  align-items: center;
  gap: 7px;
  display: flex;
}

.business-bottom-heading-icon {
  color: #e91e63;
  background: #fff0f6;
  border-radius: 8px;
  flex: 0 0 25px;
  place-items: center;
  width: 25px;
  height: 25px;
  display: grid;
}

.business-bottom-heading-icon.growth {
  color: #f59e0b;
  background: #fff5e6;
}

.business-bottom-heading-icon.concern {
  color: #e91e63;
  background: #fff0f5;
}

.business-bottom-heading-icon.management {
  color: #d71762;
  background: #ffeaf2;
}

.business-bottom-heading-icon svg {
  width: 15px;
  height: 15px;
}

.business-doctor-card {
  grid-template-rows: auto auto;
  align-content: start;
  padding-bottom: 10px;
}

.business-doctor-card .business-dashboard-card-heading {
  margin-bottom: 5px;
}

.business-doctor-table-wrap {
  min-height: 0;
  margin: 0 -8px;
  overflow: hidden;
}

.business-doctor-table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.business-doctor-table col:first-child {
  width: 27%;
}

.business-doctor-table col:nth-child(2) {
  width: 21%;
}

.business-doctor-table col:nth-child(3) {
  width: 17%;
}

.business-doctor-table col:nth-child(4) {
  width: 15%;
}

.business-doctor-table col:nth-child(5) {
  width: 20%;
}

.business-doctor-table th {
  box-sizing: border-box;
  border-bottom: 1px solid color-mix(in srgb, var(--text-muted) 30%, var(--border));
  background: var(--surface-subtle, #f8fafc);
  height: 30px;
  color: var(--text-muted);
  letter-spacing: 0;
  text-align: center;
  text-overflow: clip;
  white-space: nowrap;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 900;
  overflow: hidden;
}

.business-doctor-table th:first-child {
  text-align: left;
  padding-left: 13px;
}

.business-doctor-table th:last-child, .business-doctor-table td:last-child {
  padding-right: 13px;
}

.business-doctor-table td {
  box-sizing: border-box;
  border-bottom: 1px solid var(--border);
  height: 31px;
  color: var(--text);
  text-align: center;
  white-space: nowrap;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 850;
}

.business-doctor-table tbody tr:last-child td {
  border-bottom: 0;
}

.business-doctor-table td:first-child {
  text-align: left;
  text-overflow: ellipsis;
  align-items: center;
  gap: 7px;
  padding-left: 13px;
  font-weight: 900;
  display: flex;
  overflow: hidden;
}

.business-doctor-avatar {
  color: #e91e63;
  background: #fff0f6;
  border-radius: 8px;
  flex: 0 0 23px;
  place-items: center;
  width: 23px;
  height: 23px;
  display: grid;
}

.business-doctor-avatar svg {
  width: 14px;
  height: 14px;
}

.business-doctor-table td strong {
  font-size: 11px;
  font-weight: 900;
}

.business-doctor-table td strong.good {
  color: #159447;
}

.business-doctor-table td strong.watch {
  color: #d97706;
}

.business-doctor-table td strong.risk {
  color: #e11d48;
}

.business-growth-list {
  grid-template-rows: repeat(3, minmax(0, 1fr));
  min-height: 0;
  padding-top: 4px;
  display: grid;
}

.business-growth-row {
  border-bottom: 1px solid var(--border);
  grid-template-columns: 18px 34px minmax(72px, .8fr) minmax(136px, 1.4fr);
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding-right: 12px;
  display: grid;
}

.business-growth-row:last-child {
  border-bottom: 0;
}

.business-growth-rank {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.business-growth-icon {
  color: #20a65a;
  background: #eaf9f0;
  border-radius: 10px;
  place-items: center;
  width: 34px;
  height: 34px;
  display: grid;
}

.business-growth-icon svg {
  width: 18px;
  height: 18px;
}

.business-growth-name {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.business-growth-name strong {
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
}

.business-growth-name small {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 850;
}

.business-growth-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  min-width: 0;
  display: grid;
  overflow: hidden;
}

.business-growth-metrics span {
  text-align: center;
  justify-items: center;
  gap: 2px;
  min-width: 0;
  display: grid;
  overflow: hidden;
}

.business-growth-metrics strong {
  color: #16a34a;
  text-overflow: clip;
  white-space: nowrap;
  max-width: 100%;
  font-size: 11.5px;
  font-weight: 900;
  line-height: 1.15;
  display: block;
  overflow: hidden;
}

.business-growth-metrics small {
  width: 100%;
  min-width: 0;
  color: var(--text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8.5px;
  font-weight: 850;
  line-height: 1.05;
  display: block;
  overflow: hidden;
}

.business-target-gap-card {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.business-target-gap-card .business-dashboard-card-heading {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px !important;
  display: grid !important;
}

.business-target-gap-card .business-dashboard-card-heading > div:first-child {
  display: contents;
}

.business-target-gap-card .business-dashboard-card-heading > div:first-child > strong {
  grid-area: 1 / 1;
}

.business-target-gap-card .business-dashboard-card-heading > div:first-child > span {
  white-space: nowrap;
  grid-area: 2 / 1 / auto / -1;
}

.business-target-gap-card .business-dashboard-card-heading .business-card-action {
  grid-area: 1 / 2;
}

.business-target-gap-list {
  grid-template-rows: repeat(4, minmax(0, 1fr));
  min-height: 0;
  padding-top: 2px;
  display: grid;
}

.business-target-gap-row {
  border-bottom: 1px solid var(--border);
  grid-template-rows: 15px 11px 13px;
  grid-template-columns: 23px minmax(0, 1fr) 55px 39px;
  align-content: center;
  align-items: center;
  gap: 0 5px;
  min-width: 0;
  display: grid;
}

.business-target-gap-row:last-child {
  border-bottom: 0;
}

.business-target-gap-rank {
  color: #d71762;
  background: #fff0f5;
  border-radius: 50%;
  grid-area: 1 / 1 / 4;
  place-items: center;
  width: 23px;
  height: 23px;
  font-size: 11px;
  font-weight: 900;
  display: grid;
}

.business-target-gap-centre, .business-target-gap-money {
  display: contents;
}

.business-target-gap-centre strong, .business-target-gap-money strong {
  min-width: 0;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 900;
  line-height: 15px;
  overflow: hidden;
}

.business-target-gap-centre small, .business-target-gap-money small {
  min-width: 0;
  color: var(--text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9.5px;
  font-weight: 900;
  line-height: 12px;
  overflow: hidden;
}

.business-target-gap-centre strong {
  grid-area: 1 / 2;
}

.business-target-gap-centre small {
  text-overflow: clip;
  grid-area: 3 / 2 / auto / -1;
  padding-right: 2px;
  font-size: 10px;
  font-weight: 850;
  line-height: 13px;
}

.business-target-gap-money strong {
  text-align: right;
  grid-area: 1 / 3;
}

.business-target-gap-money small {
  text-align: right;
  grid-area: 2 / 3;
  font-size: 8.5px;
  line-height: 11px;
}

.business-target-gap-money strong {
  color: #d71762;
}

.business-target-gap-achievement {
  color: #16a34a;
  text-align: right;
  white-space: nowrap;
  grid-area: 1 / 4;
  align-self: center;
  font-size: 11.5px;
  font-weight: 900;
  line-height: 15px;
}

.business-target-gap-achievement.risk {
  color: #e11d48;
}

.business-target-gap-achievement.watch {
  color: #d97706;
}

.business-target-gap-summary {
  border: 1px solid color-mix(in srgb, #e91e63 14%, var(--border));
  background: color-mix(in srgb, #fff0f5 70%, var(--surface, #fff));
  color: var(--text-muted);
  text-align: center;
  border-radius: 8px;
  padding: 6px 7px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.25;
}

.business-target-gap-summary strong {
  color: #c8175b;
  font-size: 9.5px;
  font-weight: 900;
}

.business-target-gap-drawer-summary {
  border: 1px solid color-mix(in srgb, #e91e63 16%, var(--border));
  background: color-mix(in srgb, #fff0f5 68%, var(--surface, #fff));
  color: var(--text-muted);
  border-radius: 11px;
  margin-top: 14px;
  padding: 12px;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.5;
}

.business-target-gap-drawer-summary strong {
  color: #c8175b;
  font-weight: 900;
}

.business-funnel-drawer-list span small {
  color: var(--text-muted);
  margin-top: 2px;
  font-size: 9px;
  font-weight: 700;
  display: block;
}

.business-management-card {
  border-color: color-mix(in srgb, #e91e63 25%, var(--border));
  background: linear-gradient(180deg, color-mix(in srgb, #fff4f8 40%, var(--surface, #fff)), var(--surface, #fff));
}

.business-management-card .business-dashboard-card-heading > div:first-child > strong {
  color: #d71762;
}

.business-management-list {
  grid-template-rows: repeat(5, minmax(0, 1fr));
  min-height: 0;
  padding-top: 2px;
  display: grid;
}

.business-management-row {
  border-bottom: 1px solid color-mix(in srgb, #e91e63 10%, var(--border));
  grid-template-columns: 25px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
  display: grid;
}

.business-management-row:last-child {
  border-bottom: 0;
}

.business-management-rank {
  color: #fff;
  background: #e91e63;
  border-radius: 50%;
  place-items: center;
  width: 25px;
  height: 25px;
  font-size: 11px;
  font-weight: 900;
  display: grid;
}

.business-management-rank.medium {
  background: #f59e0b;
}

.business-management-row > div {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.business-management-row > div strong {
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 900;
  overflow: hidden;
}

.business-management-row > div small {
  color: var(--text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1.15;
  overflow: hidden;
}

.business-management-row .business-status-badge {
  min-height: 23px;
  padding-inline: 9px;
  font-size: 10px;
  font-weight: 900;
}

.business-management-drawer-list {
  gap: 10px;
  margin-top: 18px;
  display: grid;
}

.business-management-drawer-list > div {
  border: 1px solid var(--border);
  background: var(--surface-subtle, #f8fafc);
  border-radius: 12px;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px;
  display: grid;
}

.business-management-drawer-list > div > span {
  color: #fff;
  background: #e91e63;
  border-radius: 50%;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 10px;
  font-weight: 900;
  display: grid;
}

.business-management-drawer-list > div > div {
  gap: 3px;
  display: grid;
}

.business-management-drawer-list strong {
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
}

.business-management-drawer-list small {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 700;
}

.business-management-drawer-list em {
  color: #d71762;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.business-dashboard-kpi-card {
  --business-kpi-accent: #e91e63;
  box-sizing: border-box;
  border: 1px solid var(--border);
  background: var(--card-bg, #fff);
  min-width: 0;
  height: 100%;
  min-height: 0;
  box-shadow: var(--shadow-sm);
  border-radius: 14px;
  grid-template-rows: 28px minmax(30px, auto) minmax(20px, 1fr);
  gap: 3px;
  padding: 9px 13px 8px 16px;
  transition: border-color .18s, box-shadow .18s, transform .18s;
  display: grid;
  position: relative;
  overflow: hidden;
}

.business-dashboard-kpi-card:before {
  content: "";
  background: var(--business-kpi-accent);
  width: 4px;
  position: absolute;
  inset: 0 auto 0 0;
}

.business-dashboard-kpi-card:hover {
  border-color: color-mix(in srgb, var(--business-kpi-accent) 36%, var(--border));
  transform: translateY(-2px);
  box-shadow: 0 13px 30px #0f172a1c;
}

.business-dashboard-kpi-head {
  align-items: center;
  gap: 8px;
  min-width: 0;
  display: flex;
}

.business-dashboard-kpi-head > span:last-child {
  color: var(--text);
  letter-spacing: .015em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 900;
  overflow: hidden;
}

.business-dashboard-kpi-icon {
  background: color-mix(in srgb, var(--business-kpi-accent) 13%, white);
  width: 27px;
  height: 27px;
  color: var(--business-kpi-accent);
  border-radius: 10px;
  flex: 0 0 27px;
  place-items: center;
  display: grid;
}

.business-dashboard-kpi-icon svg {
  width: 16px;
  height: 16px;
}

.business-dashboard-kpi-primary {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-width: 0;
  display: flex;
}

.business-dashboard-kpi-card.has-trend .business-dashboard-kpi-primary {
  padding-top: 17px;
  display: block;
  position: relative;
}

.business-dashboard-kpi-card.has-trend .business-dashboard-kpi-trend {
  text-align: right;
  align-items: flex-end;
  max-width: 100%;
  position: absolute;
  top: 0;
  right: 0;
}

.business-dashboard-kpi-card.has-trend .business-dashboard-kpi-value {
  width: 100%;
  max-width: 100%;
  display: block;
}

.business-dashboard-kpi-value {
  color: var(--text);
  letter-spacing: -.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
  align-self: center;
  font-family: Outfit, sans-serif;
  font-size: clamp(22px, 1.65vw, 29px);
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
}

.business-dashboard-kpi-trend {
  flex-direction: column;
  flex: none;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
  line-height: 1;
  display: flex;
}

.business-dashboard-kpi-trend span {
  white-space: nowrap;
  font-size: 10px;
  font-weight: 900;
}

.business-dashboard-kpi-trend small {
  color: var(--text-muted);
  white-space: nowrap;
  font-size: 8px;
  font-weight: 750;
}

.business-dashboard-kpi-trend.up span {
  color: #16a34a;
}

.business-dashboard-kpi-trend.down span {
  color: #e11d48;
}

.business-dashboard-kpi-footer {
  justify-content: space-between;
  align-items: end;
  gap: 10px;
  min-width: 0;
  display: flex;
}

.business-dashboard-kpi-detail, .business-dashboard-kpi-note {
  min-width: 0;
  color: var(--text-muted);
  text-align: left;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.2;
}

.business-dashboard-kpi-detail strong, .business-dashboard-kpi-note strong {
  color: var(--text);
  font-weight: 900;
}

.business-dashboard-kpi-note strong {
  color: #e91e63;
}

.business-dashboard-kpi-badge {
  background: color-mix(in srgb, var(--business-kpi-accent) 12%, white);
  color: var(--business-kpi-accent);
  border-radius: 999px;
  flex: none;
  padding: 4px 13px;
  font-size: 12px;
  font-weight: 900;
}

.business-dashboard-kpi-progress {
  grid-template-columns: minmax(55px, 1fr) auto;
  align-items: center;
  gap: 7px;
  width: min(58%, 170px);
  display: grid;
}

.business-dashboard-kpi-progress > span {
  background: #e8edf3;
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
}

.business-dashboard-kpi-progress i {
  border-radius: inherit;
  background: #2fbd63;
  height: 100%;
  display: block;
}

.business-dashboard-kpi-progress strong {
  color: #15803d;
  white-space: nowrap;
  font-size: 9px;
  font-weight: 900;
}

.business-dashboard-insight-grid {
  grid-template-columns: calc(50% - 7px) minmax(0, 7fr) minmax(0, 5fr);
  align-items: stretch;
  gap: 14px;
  display: grid;
}

.business-dashboard-insight-grid > .clinical-chart-card {
  box-sizing: border-box;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  height: 335px;
  margin-bottom: 0;
  display: grid;
  overflow: hidden;
}

.business-dashboard-insight-grid > .clinical-chart-card > .clinical-chart-body {
  height: auto;
  min-height: 0;
}

.business-chart-legend {
  align-items: center !important;
  gap: 12px !important;
  display: flex !important;
}

.business-chart-legend span {
  color: var(--text-muted);
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
}

.business-chart-legend i {
  background: #3f67dc;
  width: 20px;
  height: 3px;
  display: block;
}

.business-chart-legend .landing i {
  background: #ec3d7f;
}

.business-chart-legend .target i {
  background: none;
  border-top: 2px dashed #8290a8;
  height: 0;
}

.business-revenue-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px !important;
  display: flex !important;
}

.business-revenue-heading > div:first-child {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.business-revenue-heading > .business-chart-legend {
  flex: none;
  padding-top: 2px;
}

.business-dashboard-card-heading {
  justify-content: space-between;
  align-items: flex-start;
  min-width: 0;
  gap: 12px !important;
  display: flex !important;
}

.business-dashboard-card-heading > div:first-child {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.business-dashboard-card-heading > div:first-child > strong {
  font-size: 14px;
  font-weight: 700;
}

.business-dashboard-card-heading > div:first-child > span {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.business-card-action {
  color: #299888;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border: 0;
  flex: none;
  align-items: center;
  gap: 5px;
  padding: 2px 0;
  font-size: 10px;
  font-weight: 900;
  display: inline-flex;
}

.business-card-action:hover {
  color: var(--accent, #e91e63);
}

.business-card-action svg {
  width: 14px;
  height: 14px;
}

.business-revenue-layout {
  grid-template-rows: minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 13px;
  height: 100%;
  min-height: 0;
  display: grid;
}

.business-revenue-chart-wrap {
  min-width: 0;
  padding-top: 20px;
  position: relative;
}

.business-chart-unit {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 700;
  position: absolute;
  top: 2px;
  left: 0;
}

.business-revenue-chart {
  width: 100%;
  height: 285px;
  display: block;
  overflow: visible;
}

.business-revenue-gridline {
  stroke: color-mix(in srgb, var(--text-muted) 18%, transparent);
  stroke-width: 1px;
}

.business-revenue-axis, .business-revenue-x-label {
  fill: var(--text-muted);
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 850;
}

.business-revenue-actual-line, .business-revenue-landing-line, .business-revenue-target-line {
  fill: none;
  stroke-width: 3.2px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.business-revenue-actual-line {
  stroke: #3f67dc;
}

.business-revenue-landing-line {
  stroke: #ec3d7f;
}

.business-revenue-target-line {
  stroke: #8290a8;
  stroke-dasharray: 7 6;
}

.business-revenue-dot {
  fill: #3f67dc;
}

.business-revenue-dot.landing {
  fill: #ec3d7f;
}

.business-revenue-dot.target {
  fill: #718096;
}

.business-revenue-point-value {
  fill: var(--text);
  font-family: Outfit, sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.business-revenue-point-value.landing {
  fill: #e91e63;
}

.business-revenue-point-value, .business-revenue-x-label {
  paint-order: stroke;
  stroke: var(--card-bg, #fff);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.business-revenue-card .clinical-chart-body {
  height: auto;
}

.business-revenue-content {
  contain: size layout;
  height: 100%;
  max-height: 100%;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.business-revenue-content .business-revenue-chart-wrap {
  box-sizing: border-box;
  height: 100%;
  padding-top: 0;
}

.business-revenue-content .business-revenue-chart {
  width: 100%;
  height: 100%;
}

.business-forecast-panel {
  box-sizing: border-box;
  background: linear-gradient(#f1f6ff, #fbfdff);
  border: 1px solid #d8e3f2;
  border-radius: 13px;
  grid-template-rows: auto repeat(3, minmax(30px, auto)) repeat(2, minmax(34px, 1fr)) auto;
  align-self: stretch;
  gap: 0;
  height: 100%;
  padding: 10px 12px;
  display: grid;
  box-shadow: inset 0 1px #ffffffe6;
}

.business-forecast-panel h4 {
  color: #17365f;
  text-align: center;
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 900;
}

.business-forecast-panel > div {
  border-bottom: 1px solid #dfe8f3;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  display: flex;
}

.business-forecast-panel > div span {
  color: #526781;
  font-size: 11px;
  font-weight: 850;
}

.business-forecast-panel > div span small {
  font-size: 8px;
  font-weight: 800;
}

.business-forecast-panel > div strong {
  color: #12233f;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 900;
}

.business-forecast-panel > div.gap span, .business-forecast-panel > div.gap strong {
  color: #e11d48;
}

.business-forecast-panel p {
  align-content: center;
  gap: 1px;
  margin: 3px 0 0;
  display: grid;
}

.business-forecast-panel p span {
  color: #526781;
  font-size: 11px;
  font-weight: 850;
}

.business-forecast-panel p strong {
  color: #12233f;
  font-size: 14px;
  font-weight: 900;
}

.business-forecast-panel > em {
  color: #d66a00;
  background: #ffedcf;
  border-radius: 9px;
  place-items: center;
  min-height: 27px;
  margin-top: 4px;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  display: grid;
}

.business-funnel-list {
  grid-template-rows: repeat(6, minmax(0, 1fr));
  align-content: stretch;
  height: 100%;
  display: grid;
}

.business-funnel-row {
  --funnel-color: #79a4f8;
  --funnel-soft: #edf3ff;
  border-bottom: 1px solid var(--border);
  grid-template-columns: 30px minmax(70px, .75fr) minmax(70px, 1fr) 48px 32px;
  align-items: center;
  gap: 7px;
  min-height: 0;
  display: grid;
}

.business-funnel-row:last-child {
  border-bottom: 0;
}

.business-funnel-row.tone-violet {
  --funnel-color: #9275ed;
  --funnel-soft: #f1edff;
}

.business-funnel-row.tone-amber {
  --funnel-color: #f5ad4f;
  --funnel-soft: #fff4e4;
}

.business-funnel-row.tone-pink {
  --funnel-color: #ef70a0;
  --funnel-soft: #fff0f6;
}

.business-funnel-row.tone-green {
  --funnel-color: #67ce92;
  --funnel-soft: #eaf9f0;
}

.business-funnel-row.tone-cyan {
  --funnel-color: #65c4d2;
  --funnel-soft: #e9f8fa;
}

.business-funnel-icon {
  background: var(--funnel-soft);
  width: 28px;
  height: 28px;
  color: var(--funnel-color);
  border-radius: 9px;
  place-items: center;
  display: grid;
}

.business-funnel-icon svg {
  width: 16px;
  height: 16px;
}

.business-funnel-row > strong {
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 900;
  overflow: hidden;
}

.business-funnel-track {
  background: color-mix(in srgb, var(--text-muted) 10%, transparent);
  border-radius: 5px;
  height: 14px;
  overflow: hidden;
}

.business-funnel-track i {
  border-radius: inherit;
  background: var(--funnel-color);
  height: 100%;
  display: block;
}

.business-funnel-row > b {
  color: var(--text);
  text-align: right;
  font-family: Outfit, sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.business-funnel-row > em {
  color: var(--text);
  text-align: right;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.business-health-content {
  height: 100%;
}

.business-health-overall {
  align-items: center;
  gap: 7px;
  min-height: 31px;
  display: flex;
}

.business-health-overall span {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
}

.business-health-overall strong {
  color: #15803d;
  background: #dff8e8;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 900;
}

.business-health-list {
  grid-template-rows: repeat(5, minmax(0, 1fr));
  align-content: stretch;
  height: calc(100% - 31px);
  display: grid;
}

.business-health-list > div {
  border-bottom: 1px solid var(--border);
  grid-template-columns: 29px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 0;
  display: grid;
}

.business-health-list > div:last-child {
  border-bottom: 0;
}

.business-health-icon {
  border-radius: 50%;
  place-items: center;
  width: 28px;
  height: 28px;
  display: grid;
}

.business-health-icon.good {
  color: #28a95b;
  background: #e6f8ed;
}

.business-health-icon.watch {
  color: #f28a16;
  background: #fff1dd;
}

.business-health-icon svg {
  width: 15px;
  height: 15px;
}

.business-health-list b {
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 900;
  overflow: hidden;
}

.business-health-list > div > strong {
  white-space: nowrap;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
}

.business-health-list > div > strong.good {
  color: #15803d;
  background: #dff8e8;
}

.business-health-list > div > strong.watch {
  color: #d66a00;
  background: #ffedcf;
}

.business-funnel-drawer-list {
  border: 1px solid var(--border);
  border-radius: 14px;
  display: grid;
  overflow: hidden;
}

.business-funnel-drawer-list > div {
  border-bottom: 1px solid var(--border);
  grid-template-columns: minmax(0, 1fr) auto 48px;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  display: grid;
}

.business-funnel-drawer-list > div:last-child {
  border-bottom: 0;
}

.business-funnel-drawer-list span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 750;
}

.business-funnel-drawer-list strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.business-funnel-drawer-list em {
  color: var(--accent, #e91e63);
  text-align: right;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.business-centre-row {
  grid-template-columns: minmax(0, 1fr);
  display: grid;
}

.business-centre-row > .clinical-chart-card {
  box-sizing: border-box;
  height: auto;
  margin-bottom: 0;
}

.business-secondary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
  display: grid;
}

.business-secondary-grid > .clinical-chart-card {
  margin-bottom: 0;
}

.business-secondary-card {
  box-sizing: border-box;
  min-width: 0;
  height: 335px;
  overflow: hidden;
}

.business-secondary-card .business-dashboard-card-heading {
  min-height: 42px;
}

.business-secondary-card .business-dashboard-card-heading > div:first-child > strong {
  font-size: 14px;
  font-weight: 700;
}

.business-secondary-card .business-dashboard-card-heading > div:first-child > span {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.business-centre-card {
  grid-template-rows: auto minmax(0, 1fr);
  padding-bottom: 0;
  display: grid;
}

.business-centre-card .business-dashboard-card-heading {
  min-height: 0;
}

.business-channel-live {
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-columns: minmax(135px, .75fr) minmax(0, 1fr);
  align-items: center;
  gap: 10px 18px;
  height: calc(100% - 42px);
  min-height: 0;
  padding-top: 7px;
  display: grid;
}

.business-channel-donut {
  aspect-ratio: 1;
  border-radius: 50%;
  place-items: center;
  width: min(170px, 100%);
  margin: 0 auto;
  display: grid;
  position: relative;
}

.business-channel-donut:after {
  background: var(--card-bg, #fff);
  content: "";
  border-radius: 50%;
  position: absolute;
  inset: 27%;
}

.business-channel-donut > span {
  z-index: 1;
  justify-items: center;
  gap: 2px;
  display: grid;
}

.business-channel-donut strong {
  color: var(--text);
  font-family: Outfit, sans-serif;
  font-size: 21px;
  font-weight: 900;
}

.business-channel-donut small {
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 900;
}

.business-channel-live-list {
  gap: 12px;
  min-width: 0;
  display: grid;
}

.business-channel-live-list > div {
  grid-template-columns: 9px 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
  display: grid;
}

.business-channel-live-list i {
  border-radius: 50%;
  width: 9px;
  height: 9px;
}

.business-channel-live-list strong, .business-channel-live-list span, .business-channel-live-list em {
  white-space: nowrap;
  font-size: 11px;
  font-weight: 900;
}

.business-channel-live-list span {
  color: var(--text);
  text-overflow: ellipsis;
  overflow: hidden;
}

.business-channel-live-list em {
  color: var(--text-muted);
  font-style: normal;
}

.business-channel-live-list .b2b i {
  background: #4f7ee8;
}

.business-channel-live-list .b2b strong {
  color: #3568dc;
}

.business-channel-live-list .b2c i {
  background: #e91e63;
}

.business-channel-live-list .b2c strong {
  color: #d91a62;
}

.business-channel-live-list .btl i {
  background: #f59e0b;
}

.business-channel-live-list .btl strong {
  color: #c56d00;
}

.business-channel-live > p {
  background: var(--surface-subtle, #f8fafc);
  color: var(--text-muted);
  text-align: center;
  border-radius: 9px;
  grid-column: 1 / -1;
  margin: 0;
  padding: 7px 10px;
  font-size: 9px;
  font-weight: 800;
}

.business-centre-table-wrap {
  margin: -12px -15px 0;
  overflow-x: auto;
}

.business-centre-table {
  border-collapse: collapse;
  table-layout: auto;
  width: 100%;
}

.business-centre-table th {
  border-bottom: 1px solid color-mix(in srgb, var(--text-muted) 24%, var(--border));
  background: var(--surface-subtle, #f8fafc);
  height: 30px;
  color: var(--text-muted);
  text-align: left;
  white-space: nowrap;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 900;
}

.business-centre-table td {
  border-bottom: 1px solid var(--border);
  height: 34px;
  color: var(--text);
  white-space: nowrap;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 800;
}

.business-centre-table .numeric-right {
  text-align: right;
}

.business-centre-table .numeric-center {
  text-align: center;
}

.business-centre-table tbody tr:last-child td {
  border-bottom: 0;
}

.business-centre-table td:first-child {
  align-items: center;
  gap: 5px;
  display: flex;
}

.business-centre-table td:first-child svg {
  color: #e91e63;
  width: 13px;
  height: 13px;
}

.business-centre-table td.positive {
  color: #159447;
  font-weight: 900;
}

.business-centre-table td.negative {
  color: #e11d48;
  font-weight: 900;
}

.business-centre-table tr.total td {
  background: color-mix(in srgb, var(--surface-subtle, #f8fafc) 80%, transparent);
  font-weight: 900;
}

.business-outlook-detail-list {
  border: 1px solid var(--border);
  border-radius: 12px;
  gap: 0;
  margin-top: 18px;
  display: grid;
  overflow: hidden;
}

.business-outlook-detail-list > div {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  padding: 10px 14px;
  display: flex;
}

.business-outlook-pending {
  background: var(--surface-subtle, #f8fafc);
  border-radius: 12px;
  margin-top: 16px;
  padding: 14px;
}

.business-outlook-pending > strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.business-outlook-pending ul {
  color: var(--text-muted);
  gap: 7px;
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 11px;
  font-weight: 750;
  display: grid;
}

.business-status-badge {
  white-space: nowrap;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  min-height: 23px;
  padding: 0 9px;
  font-size: 9px;
  font-weight: 900;
  display: inline-flex;
}

.business-status-badge.good {
  color: #15803d;
  background: #dff8e8;
}

.business-status-badge.watch {
  color: #c86700;
  background: #ffedcf;
}

.business-status-badge.risk {
  color: #d81952;
  background: #ffe6ee;
}

.business-pipeline-list {
  grid-template-rows: repeat(6, minmax(0, 1fr));
  height: 186px;
  margin-top: 5px;
  display: grid;
}

.business-pipeline-row {
  --pipeline-color: #ef70a0;
  --pipeline-soft: #fff0f6;
  grid-template-columns: 28px minmax(0, 1fr) 48px auto;
  align-items: center;
  gap: 7px;
  min-height: 0;
  display: grid;
}

.business-pipeline-row.tone-amber {
  --pipeline-color: #f5ad4f;
  --pipeline-soft: #fff4e4;
}

.business-pipeline-row.tone-green {
  --pipeline-color: #67ce92;
  --pipeline-soft: #eaf9f0;
}

.business-pipeline-row.tone-blue {
  --pipeline-color: #67a4ef;
  --pipeline-soft: #edf4ff;
}

.business-pipeline-row.tone-orange {
  --pipeline-color: #f59a49;
  --pipeline-soft: #fff1e5;
}

.business-pipeline-row.tone-violet {
  --pipeline-color: #9275ed;
  --pipeline-soft: #f1edff;
}

.business-pipeline-icon {
  background: var(--pipeline-soft);
  width: 27px;
  height: 27px;
  color: var(--pipeline-color);
  border-radius: 8px;
  place-items: center;
  display: grid;
}

.business-pipeline-icon svg {
  width: 15px;
  height: 15px;
}

.business-pipeline-copy {
  gap: 5px;
  min-width: 0;
  display: grid;
}

.business-pipeline-copy strong {
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  font-weight: 900;
  overflow: hidden;
}

.business-pipeline-copy i {
  background: color-mix(in srgb, var(--text-muted) 12%, transparent);
  border-radius: 999px;
  height: 5px;
  display: block;
  overflow: hidden;
}

.business-pipeline-copy i span {
  border-radius: inherit;
  background: var(--pipeline-color);
  height: 100%;
  display: block;
}

.business-pipeline-value {
  text-align: right;
  display: grid;
}

.business-pipeline-value b {
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
}

.business-pipeline-value small {
  color: var(--text-muted);
  white-space: nowrap;
  font-size: 8px;
  font-weight: 800;
}

.business-pipeline-total {
  background: linear-gradient(100deg, #f8f4ff, #fcfaff);
  border-top: 1px solid #ded5fb;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 56px;
  margin: 5px -15px -15px;
  padding: 7px 15px;
  display: grid;
}

.business-pipeline-total > span:first-child {
  color: #7255cf;
  align-content: center;
  font-size: 9px;
  font-weight: 800;
  display: grid;
}

.business-pipeline-total > span:first-child strong {
  color: #6138d0;
  font-family: Outfit, sans-serif;
  font-size: 22px;
  font-weight: 900;
}

.business-pipeline-total > span:last-child {
  color: var(--text-muted);
  font-size: 8px;
  line-height: 1.45;
}

.business-pipeline-total > span:last-child b {
  color: #e91e63;
}

.business-channel-body {
  --business-channel-donut-size: clamp(150px, 72%, 168px);
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  width: 100%;
  max-width: 260px;
  height: calc(100% - 42px);
  margin: 0 auto;
  padding-top: 10px;
  display: flex;
}

.business-donut {
  border-radius: 50%;
  place-items: center;
  display: grid;
  position: relative;
}

.business-donut:after {
  border-radius: inherit;
  background: var(--card-bg, #fff);
  content: "";
  position: absolute;
  inset: 24%;
}

.business-donut > span {
  z-index: 1;
  text-align: center;
  gap: 4px;
  display: grid;
  position: relative;
}

.business-donut strong {
  color: var(--text);
  font-family: Outfit, sans-serif;
  font-size: 25px;
  font-weight: 900;
}

.business-donut small {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 800;
}

.business-channel-visual {
  width: var(--business-channel-donut-size);
  justify-items: center;
  margin: 0 auto;
  display: grid;
}

.business-channel-donut {
  aspect-ratio: 1;
  background: conic-gradient(#ec3d7f 0 68%, #4f7ee8 68% 100%);
  width: 100%;
  position: relative;
}

.business-channel-contribution {
  text-align: center;
  justify-items: center;
  gap: 1px;
  margin: 0;
  display: grid;
}

.business-channel-contribution > span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 950;
}

.business-channel-contribution > strong {
  white-space: nowrap;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 950;
  display: inline-flex;
}

.business-channel-contribution b {
  font-weight: 950;
}

.business-channel-contribution b.b2c {
  color: #d91a62;
}

.business-channel-contribution b.b2b {
  color: #3568dc;
}

.business-channel-contribution i {
  color: var(--text-muted);
  font-style: normal;
  font-weight: 900;
}

.business-channel-side {
  z-index: 2;
  align-content: center;
  gap: 5px;
  min-width: 0;
  display: grid;
}

.business-channel-side.b2c {
  text-align: right;
  justify-self: end;
  justify-items: end;
  margin-top: 2px;
}

.business-channel-side.b2b {
  text-align: left;
  justify-self: start;
  justify-items: start;
  margin-bottom: 2px;
}

.business-channel-inline {
  white-space: nowrap;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 950;
  display: inline-flex;
}

.business-channel-inline strong, .business-channel-inline b {
  color: inherit;
  font-size: inherit;
  font-weight: 950;
}

.business-channel-inline em {
  color: #159447;
  font-size: inherit;
  font-style: normal;
  font-weight: 950;
}

.business-channel-inline i {
  color: color-mix(in srgb, currentColor 55%, transparent);
  font-style: normal;
  font-weight: 950;
}

.business-channel-side.b2c .business-channel-inline {
  color: #d91a62;
}

.business-channel-side.b2b .business-channel-inline {
  color: #3568dc;
}

.business-channel-bottom-legend {
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding-bottom: 2px;
  display: flex;
}

.business-channel-bottom-legend span {
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 950;
  display: inline-flex;
}

.business-channel-bottom-legend i {
  border-radius: 50%;
  width: 10px;
  height: 10px;
}

.business-channel-bottom-legend .b2c {
  color: #d91a62;
}

.business-channel-bottom-legend .b2c i {
  background: #ec3d7f;
}

.business-channel-bottom-legend .b2b {
  color: #3568dc;
}

.business-channel-bottom-legend .b2b i {
  background: #4f7ee8;
}

.business-experience-card {
  flex-direction: column;
  display: flex;
}

.business-experience-card .business-dashboard-card-heading {
  flex: none;
  position: relative;
  display: block !important;
}

.business-experience-card .business-dashboard-card-heading > div:first-child {
  width: 100%;
}

.business-experience-card .business-dashboard-card-heading > div:first-child > strong {
  white-space: nowrap;
  padding-right: 88px;
  display: block;
}

.business-experience-card .business-dashboard-card-heading > div:first-child > span {
  white-space: nowrap;
  display: block;
}

.business-experience-card .business-card-action {
  position: absolute;
  top: 0;
  right: 0;
}

.business-experience-top {
  flex: none;
  grid-template-rows: auto auto;
  grid-template-columns: 1fr;
  place-items: center;
  gap: 8px;
  min-height: 185px;
  padding-top: 8px;
  display: grid;
}

.business-nps-donut {
  aspect-ratio: 1;
  background: conic-gradient(#22b95f 0 79%, #cbd1db 79% 93%, #ec3d7f 93% 100%);
  justify-self: center;
  width: min(138px, 100%);
}

.business-nps-legend {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 6px;
  width: 100%;
  display: grid;
}

.business-nps-legend > div {
  color: var(--text);
  grid-template-columns: 9px minmax(0, 1fr);
  justify-content: center;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 900;
  display: grid;
}

.business-nps-legend i {
  border-radius: 50%;
  width: 9px;
  height: 9px;
}

.business-nps-legend i.promoter {
  background: #22b95f;
}

.business-nps-legend i.passive {
  background: #cbd1db;
}

.business-nps-legend i.detractor {
  background: #ec3d7f;
}

.business-nps-legend b {
  text-align: center;
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 950;
}

.business-experience-bottom {
  border-top: 1px solid var(--border);
  flex: none;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 5px;
  min-height: 48px;
  padding-top: 6px;
  display: grid;
}

.business-response-rate {
  text-align: center;
  justify-items: center;
  gap: 1px;
  width: 100%;
  display: grid;
}

.business-response-rate > span {
  color: var(--text-muted);
  line-height: 1.15;
  font-size: 12px !important;
  font-weight: 850 !important;
}

.business-response-rate > strong {
  color: var(--text);
  font-family: Outfit, sans-serif;
  line-height: 1;
  font-size: 24px !important;
  font-weight: 900 !important;
}

.business-experience-bottom i {
  color: #fff;
  background: #e91e63;
  border-radius: 50%;
  place-items: center;
  width: 15px;
  height: 15px;
  margin-right: 5px;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  display: inline-grid;
}

.business-attention-pill {
  color: #c86700;
  background: #fff0d9;
  border-radius: 999px;
  width: max-content;
  max-width: 100%;
  margin: auto auto 0;
  padding: 4px 10px;
  font-size: 9px;
  font-weight: 900;
}

.business-outlook-detail-list {
  border: 1px solid var(--border);
  border-radius: 15px;
  gap: 0;
  display: grid;
  overflow: hidden;
}

.business-outlook-detail-list > div {
  border-bottom: 1px solid var(--border);
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  padding: 13px 14px;
  display: grid;
}

.business-outlook-detail-list > div:last-child {
  border-bottom: 0;
}

.business-outlook-detail-list span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 750;
}

.business-outlook-detail-list strong {
  color: var(--text);
  text-align: right;
  font-size: 12px;
  font-weight: 900;
}

.business-outlook-detail-list strong.positive {
  color: #16a34a;
}

body.dark-mode .business-outlook-strip {
  background: linear-gradient(110deg, #064e3b52, #0f766e29);
  border-color: #4ade8047;
}

body.dark-mode .business-dashboard-kpi-card {
  background: #151c2d;
  border-color: #ffffff14;
  box-shadow: 0 14px 30px #0000003d;
}

body.dark-mode .business-dashboard-kpi-icon, body.dark-mode .business-dashboard-kpi-badge, body.dark-mode .business-pending-badge {
  background: color-mix(in srgb, var(--business-kpi-accent) 18%, #111827);
}

body.dark-mode .business-dashboard-filter-status {
  background: #94a3b824;
}

body.dark-mode .dashboard-load-timer {
  background: #111827;
  border-color: #475569;
  color: #cbd5e1 !important;
}

body.dark-mode .dashboard-load-timer strong {
  color: #f8fafc;
}

body.dark-mode .dashboard-load-timer.running, body.dark-mode .dashboard-load-timer.running strong {
  color: #fde68a !important;
}

body.dark-mode .dashboard-load-timer.running {
  background: #422006;
  border-color: #854d0e;
}

body.dark-mode .business-dashboard-filter-grid select, body.dark-mode .business-dashboard-filter-grid input {
  background: #0f172a85;
}

body.dark-mode .business-pending-chart-empty svg {
  color: #7dd3fc;
  background: #0ea5e924;
}

body.dark-mode .business-dashboard-kpi-progress > span {
  background: #94a3b833;
}

body.dark-mode .business-forecast-panel {
  background: linear-gradient(#1e3a5ca3, #111827cc);
  border-color: #60a5fa3b;
}

body.dark-mode .business-forecast-panel h4, body.dark-mode .business-forecast-panel > div strong, body.dark-mode .business-forecast-panel p strong {
  color: #e5edf9;
}

body.dark-mode .business-forecast-panel > div span, body.dark-mode .business-forecast-panel p span {
  color: #aebdd2;
}

body.dark-mode .business-health-overall strong, body.dark-mode .business-health-list > div > strong.good {
  color: #86efac;
  background: #22c55e29;
}

body.dark-mode .business-health-list > div > strong.watch {
  color: #fcd34d;
  background: #f59e0b29;
}

body.dark-mode .business-donut:after {
  background: #151c2d;
}

body.dark-mode .business-target-gap-summary, body.dark-mode .business-target-gap-drawer-summary {
  background: #69153933;
}

body.dark-mode .business-management-card {
  background: linear-gradient(#5317323d, #151c2d);
}

@media (max-width: 1550px) {
  .business-dashboard-insight-grid, .business-bottom-insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .business-dashboard-kpi-grid, .business-dashboard-operational-kpi-grid, .business-dashboard-strategic-kpi-grid, .business-dashboard-strategic-grid, .business-dashboard-filter-grid, .business-dashboard-filter-grid.has-custom-range {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .business-dashboard-filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .business-outlook-copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .business-bottom-insight-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .business-dashboard-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .business-dashboard-operational-kpi-grid, .business-dashboard-strategic-kpi-grid, .business-dashboard-strategic-grid, .business-dashboard-new-insight-grid {
    grid-template-columns: 1fr;
  }

  .business-revenue-mix-card {
    grid-column: auto;
  }

  .business-dashboard-insight-grid, .business-secondary-grid, .business-bottom-insight-grid {
    grid-template-columns: 1fr;
  }

  .business-centre-table-wrap {
    overscroll-behavior-inline: contain;
    overflow-x: auto;
  }

  .business-outlook-strip {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .business-outlook-copy {
    flex-basis: calc(100% - 54px);
  }

  .business-outlook-action {
    width: 100%;
  }
}

@media (max-width: 540px) {
  .business-dashboard-kpi-grid {
    grid-template-columns: 1fr;
  }

  .business-dashboard-filter-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .business-dashboard-filter-heading .business-dashboard-filter-state {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .business-dashboard-filter-status {
    align-self: flex-start;
  }

  .business-dashboard-filter-grid, .business-dashboard-filter-grid.has-custom-range {
    grid-template-columns: 1fr;
  }

  .business-dashboard-filter-actions {
    grid-column: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    display: grid;
  }

  .business-dashboard-filter-actions .btn {
    width: 100%;
  }

  .business-pending-kpi-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .business-pending-kpi-footer small {
    white-space: normal;
  }

  .business-revenue-mix-placeholder > div {
    grid-template-columns: 95px minmax(0, 1fr) 26px;
    gap: 7px;
  }

  .business-outlook-detail-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .business-outlook-detail-list strong {
    text-align: left;
  }

  .business-revenue-layout {
    grid-template-rows: minmax(250px, 1fr) auto;
    grid-template-columns: 1fr;
    height: auto;
  }

  .business-dashboard-insight-grid > .business-revenue-card {
    height: 660px;
  }

  .business-revenue-content {
    contain: none;
    height: 100%;
    max-height: none;
    position: static;
    overflow: visible;
  }

  .business-forecast-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 10px;
  }

  .business-forecast-panel h4, .business-forecast-panel > em {
    grid-column: 1 / -1;
  }

  .business-funnel-row {
    grid-template-columns: 28px minmax(80px, 1fr) 54px 32px;
  }

  .business-funnel-track {
    display: none;
  }
}

.fcdr-report-page {
  gap: 16px;
}

.fcdr-view-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}

.fcdr-view-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8px;
}

.fcdr-workspace {
  gap: 16px;
  display: grid;
}

.fcdr-filter-card {
  overflow: visible;
  border-radius: 20px !important;
  padding: 14px !important;
}

.fcdr-filter-heading, .fcdr-section-heading {
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  display: flex;
}

.fcdr-filter-heading {
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
  padding: 1px 1px 11px;
}

.fcdr-filter-heading > div, .fcdr-section-heading > div {
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px 14px;
  display: flex;
}

.fcdr-filter-heading strong, .fcdr-section-heading strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
}

.fcdr-filter-heading span, .fcdr-section-heading span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.fcdr-section-heading > span {
  background: #dcfce7;
  border-radius: 999px;
  flex: none;
  padding: 6px 10px;
  color: #187a3b !important;
  font-weight: 800 !important;
}

.fcdr-filter-heading .clinical-data-status {
  flex: none;
  margin-left: auto;
}

.fcdr-filter-grid {
  padding: 0;
}

.fcdr-filter-grid label {
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  display: flex;
}

.fcdr-filter-grid label > span {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 10px;
  font-weight: 900;
}

.fcdr-filter-grid select, .fcdr-filter-grid input {
  border: 1px solid var(--border);
  background: var(--surface);
  width: 100%;
  min-width: 0;
  height: 38px;
  color: var(--text);
  border-radius: 11px;
  outline: none;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  transition: border-color .2s, box-shadow .2s;
}

.fcdr-filter-grid select:focus, .fcdr-filter-grid input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px #e91e631a;
}

.fcdr-search-field {
  grid-column: span 4;
}

.fcdr-filter-grid .btn:disabled {
  cursor: not-allowed;
  opacity: .58;
  box-shadow: none;
}

.fcdr-filter-note {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  margin-top: 10px;
  padding: 9px 1px 1px;
  font-size: 11px;
  font-weight: 700;
}

.fcdr-section-heading {
  padding: 2px 4px 0;
}

.fcdr-structure-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  display: grid;
}

.fcdr-structure-card {
  border: 1px solid var(--border);
  background: var(--surface);
  min-height: 190px;
  box-shadow: var(--shadow);
  border-radius: 20px;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 22px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  display: grid;
}

.fcdr-structure-card:hover {
  border-color: color-mix(in srgb, var(--primary) 26%, var(--border));
  transform: translateY(-3px);
  box-shadow: 0 18px 38px #3723401a;
}

.fcdr-structure-card > div:nth-child(2) {
  align-content: start;
  gap: 8px;
  display: grid;
}

.fcdr-structure-card strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
}

.fcdr-structure-card span {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
}

.fcdr-structure-icon {
  background: color-mix(in srgb, var(--primary) 10%, var(--surface));
  width: 48px;
  height: 48px;
  color: var(--primary);
  border-radius: 15px;
  place-items: center;
  font-size: 15px;
  font-weight: 900;
  display: grid;
}

.fcdr-structure-state {
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
  border-radius: 999px;
  grid-column: 1 / -1;
  align-self: end;
  width: max-content;
  padding: 6px 10px;
  color: var(--primary) !important;
  font-weight: 800 !important;
}

.fcdr-outcome-subtabs {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border-radius: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 7px;
  display: grid;
}

.fcdr-outcome-subtabs button {
  min-width: 0;
  min-height: 64px;
  color: var(--text-muted);
  text-align: left;
  cursor: pointer;
  background: none;
  border: 1px solid #0000;
  border-radius: 13px;
  gap: 3px;
  padding: 11px 16px;
  transition: color .2s, background .2s, border-color .2s, box-shadow .2s;
  display: grid;
}

.fcdr-outcome-subtabs button:hover {
  border-color: color-mix(in srgb, var(--primary) 18%, var(--border));
  background: color-mix(in srgb, var(--primary) 4%, var(--surface));
  color: var(--text);
}

.fcdr-outcome-subtabs button.active {
  border-color: color-mix(in srgb, var(--primary) 26%, var(--border));
  background: linear-gradient(135deg, var(--primary), #c50a5a);
  color: #fff;
  box-shadow: 0 10px 24px #db0f6433;
}

.fcdr-outcome-subtabs strong {
  font-size: 14px;
  font-weight: 900;
}

.fcdr-outcome-subtabs span {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  overflow: hidden;
}

.fcdr-outcome-subtabs button.active span {
  color: #ffffffd1;
}

.fcdr-outcome-panel {
  gap: 16px;
  min-width: 0;
  display: grid;
}

.fcdr-outcome-hero, .fcdr-intelligence-brief {
  border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 6%, var(--surface)), var(--surface));
  box-shadow: var(--shadow-sm);
  border-radius: 18px;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  display: flex;
}

.fcdr-outcome-hero > div, .fcdr-intelligence-brief > div {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.fcdr-outcome-hero > div > span, .fcdr-intelligence-brief > div > span {
  color: var(--primary);
  letter-spacing: .07em;
  text-transform: uppercase;
  font-size: 10.5px;
  font-weight: 900;
}

.fcdr-outcome-hero > div > strong, .fcdr-intelligence-brief > div > strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
}

.fcdr-intelligence-brief small {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.fcdr-outcome-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  display: grid;
}

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

.fcdr-outcome-kpi-grid .fcdr-kpi-card {
  min-height: 146px;
}

.fcdr-intelligence-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  display: grid;
}

.fcdr-return-card, .fcdr-key-results-card {
  min-height: 390px;
}

.fcdr-return-intervals {
  align-content: center;
  gap: 13px;
  min-height: 285px;
  padding: 18px 2px 4px;
  display: grid;
}

.fcdr-return-row {
  grid-template-columns: minmax(112px, .75fr) minmax(120px, 2fr) minmax(88px, max-content);
  align-items: center;
  gap: 11px;
  display: grid;
}

.fcdr-return-row > span {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.fcdr-return-row > strong {
  color: var(--text-muted);
  text-align: right;
  font-size: 13px;
  font-weight: 900;
}

.fcdr-return-row .fcdr-stage-track i {
  background: #8257ec;
}

.fcdr-key-results-list {
  counter-reset: fcdr-result;
  align-content: center;
  gap: 0;
  min-height: 285px;
  margin: 0;
  padding: 18px 0 4px;
  list-style: none;
  display: grid;
}

.fcdr-key-results-list li {
  border-bottom: 1px solid var(--border);
  counter-increment: fcdr-result;
  grid-template-columns: auto minmax(0, 1fr) minmax(90px, .7fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 16px 2px;
  display: grid;
}

.fcdr-key-results-list li:last-child {
  border-bottom: 0;
}

.fcdr-key-results-list li:before {
  background: color-mix(in srgb, var(--primary) 9%, var(--surface));
  width: 30px;
  height: 30px;
  color: var(--primary);
  content: counter(fcdr-result);
  border-radius: 50%;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
  display: grid;
}

.fcdr-key-results-list span {
  min-width: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.fcdr-key-results-list strong {
  min-width: 0;
  color: var(--text-muted);
  overflow-wrap: anywhere;
  text-align: right;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
}

.fcdr-care-activity {
  gap: 3px;
  min-width: 145px;
  display: grid;
}

.fcdr-care-activity strong, .fcdr-care-activity span, .fcdr-care-activity small {
  line-height: 1.3;
  display: block;
}

.fcdr-care-activity strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
}

.fcdr-care-activity span, .fcdr-care-activity small {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}

.fcdr-outcome-status {
  white-space: nowrap;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  width: max-content;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
}

.fcdr-outcome-status.active {
  background: color-mix(in srgb, #14b8a6 14%, var(--surface));
  color: #0f8f82;
}

.fcdr-outcome-status.dropout {
  background: color-mix(in srgb, #e60058 12%, var(--surface));
  color: #cf0050;
}

.fcdr-outcome-status.converted {
  background: color-mix(in srgb, #22a447 14%, var(--surface));
  color: #16833a;
}

.fcdr-outcome-method-note {
  border: 1px solid color-mix(in srgb, #8257ec 20%, var(--border));
  background: color-mix(in srgb, #8257ec 5%, var(--surface));
  color: var(--text-muted);
  border-radius: 14px;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  display: flex;
}

.fcdr-outcome-method-note strong {
  color: var(--text);
  flex: none;
  font-weight: 900;
}

.fcdr-classic-content, .fcdr-table-stack {
  gap: 16px;
  min-width: 0;
  display: grid;
}

.fcdr-method-note {
  border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
  background: color-mix(in srgb, var(--primary) 4%, var(--surface));
  color: var(--text-muted);
  border-radius: 14px;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  display: flex;
}

.fcdr-method-note strong {
  color: var(--text);
  flex: none;
  font-weight: 900;
}

.fcdr-kpi-grid {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
  display: grid;
}

.fcdr-kpi-card {
  border: 1px solid var(--border);
  background: var(--surface);
  min-width: 0;
  min-height: 190px;
  box-shadow: var(--shadow-sm);
  border-radius: 17px;
  grid-template-rows: auto auto 1fr;
  gap: 5px;
  padding: 16px 14px 14px 18px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  display: grid;
  position: relative;
  overflow: hidden;
}

.fcdr-kpi-card:before {
  background: var(--fcdr-kpi-accent, #38a7e5);
  content: "";
  border-radius: 17px 0 0 17px;
  width: 5px;
  position: absolute;
  inset: 0 auto 0 0;
}

.fcdr-kpi-card:hover {
  border-color: color-mix(in srgb, var(--fcdr-kpi-accent) 32%, var(--border));
  transform: translateY(-2px);
  box-shadow: 0 13px 27px #3626411a;
}

.fcdr-kpi-card.blue {
  --fcdr-kpi-accent: #38a7e5;
}

.fcdr-kpi-card.teal {
  --fcdr-kpi-accent: #31b8a3;
}

.fcdr-kpi-card.amber {
  --fcdr-kpi-accent: #f2a516;
}

.fcdr-kpi-card.orange {
  --fcdr-kpi-accent: #f37525;
}

.fcdr-kpi-card.violet {
  --fcdr-kpi-accent: #8257ec;
}

.fcdr-kpi-card.cyan {
  --fcdr-kpi-accent: #0891b2;
}

.fcdr-kpi-card.green {
  --fcdr-kpi-accent: #42b966;
}

.fcdr-kpi-card.pink {
  --fcdr-kpi-accent: #df0b66;
}

.fcdr-kpi-title {
  color: var(--text);
  letter-spacing: .035em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
}

.fcdr-kpi-value {
  color: var(--text);
  font-family: Outfit, Inter, sans-serif;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.fcdr-kpi-description {
  color: var(--text-muted);
  align-self: end;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  display: grid;
}

.fcdr-kpi-description > strong {
  color: var(--text-muted);
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  display: block;
}

.fcdr-kpi-description > span, .fcdr-kpi-description > small {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  display: block;
}

.fcdr-kpi-description > small b {
  font-weight: 900;
}

.fcdr-chart-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  display: grid;
}

.fcdr-chart-card, .fcdr-table-card {
  border: 1px solid var(--border);
  background: var(--surface);
  min-width: 0;
  box-shadow: var(--shadow);
  border-radius: 20px;
  overflow: hidden;
}

.fcdr-table-card {
  --fcdr-table-grid: #b7c1cf;
}

.fcdr-chart-card {
  grid-template-rows: auto auto auto;
  align-content: start;
  min-height: 350px;
  padding: 19px;
  display: grid;
}

.fcdr-clinical-insight-card {
  --fcdr-chart-accent: #e91e63;
  --fcdr-chart-accent-deep: #be185d;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 0;
  transition: transform .18s, box-shadow .18s;
  position: relative;
}

.fcdr-clinical-insight-card.conversion {
  --fcdr-chart-accent: #22c55e;
  --fcdr-chart-accent-deep: #15803d;
}

.fcdr-dropout-revenue-card {
  --fcdr-chart-accent: #6366f1;
  --fcdr-chart-accent-deep: #4338ca;
}

.fcdr-clinical-insight-card:before {
  content: none;
}

.fcdr-clinical-insight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px #0f172a17;
}

.fcdr-clinical-insight-card > .fcdr-card-heading {
  border-bottom: 0;
  padding: 0;
}

.fcdr-clinical-insight-card > .fcdr-card-heading:before {
  content: none;
}

.fcdr-clinical-insight-card .fcdr-card-heading > div > strong {
  color: var(--text);
}

.fcdr-clinical-insight-card .fcdr-pending-badge {
  border: 1px solid color-mix(in srgb, var(--fcdr-chart-accent) 20%, transparent);
  background: color-mix(in srgb, var(--fcdr-chart-accent) 10%, var(--surface));
  color: var(--fcdr-chart-accent-deep) !important;
}

.fcdr-card-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  display: flex;
}

.fcdr-card-heading > div {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.fcdr-card-heading strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.fcdr-card-heading span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.fcdr-pending-badge {
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
  white-space: nowrap;
  border-radius: 999px;
  flex: none;
  padding: 6px 9px;
  color: var(--primary) !important;
  font-size: 10px !important;
  font-weight: 900 !important;
}

.fcdr-stage-chart {
  align-content: start;
  gap: 11px;
  width: 100%;
  min-height: 0;
  padding: 20px 2px 12px;
  display: grid;
}

.fcdr-stage-row {
  border-radius: 8px;
  grid-template-columns: minmax(145px, .8fr) minmax(120px, 2fr) minmax(112px, max-content);
  align-items: center;
  gap: 12px;
  transition: background-color .16s, transform .16s;
  display: grid;
}

.fcdr-clinical-insight-card .fcdr-stage-row:hover {
  background: color-mix(in srgb, var(--fcdr-chart-accent) 4%, transparent);
  transform: translateX(2px);
}

.fcdr-stage-row > span {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.fcdr-stage-row > strong {
  min-width: 112px;
  color: var(--text-muted);
  text-align: right;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 900;
}

.fcdr-stage-track {
  border: 1px solid color-mix(in srgb, var(--text-muted) 16%, var(--border));
  background-color: color-mix(in srgb, var(--text-muted) 7%, var(--surface));
  background-image: linear-gradient(to right,
    transparent calc(25% - 1px), color-mix(in srgb, var(--text-muted) 20%, transparent) 25%, transparent calc(25% + 1px),
    transparent calc(50% - 1px), color-mix(in srgb, var(--text-muted) 20%, transparent) 50%, transparent calc(50% + 1px),
    transparent calc(75% - 1px), color-mix(in srgb, var(--text-muted) 20%, transparent) 75%, transparent calc(75% + 1px));
  border-radius: 6px;
  height: 20px;
  overflow: hidden;
}

.fcdr-stage-track i {
  background: linear-gradient(90deg, #be185d, #ec4899);
  border-radius: 5px;
  width: 0;
  min-width: 2px;
  height: 100%;
  transition: filter .16s, width .24s;
  display: block;
  box-shadow: 0 2px 8px #ec48993d, inset 0 -1px #0f172a24;
}

.fcdr-stage-row:nth-child(6n+2) .fcdr-stage-track i {
  background: linear-gradient(90deg, #6d28d9, #a78bfa);
}

.fcdr-stage-row:nth-child(6n+3) .fcdr-stage-track i {
  background: linear-gradient(90deg, #1d4ed8, #60a5fa);
}

.fcdr-stage-row:nth-child(6n+4) .fcdr-stage-track i {
  background: linear-gradient(90deg, #0f766e, #2dd4bf);
}

.fcdr-stage-row:nth-child(6n+5) .fcdr-stage-track i {
  background: linear-gradient(90deg, #b45309, #fbbf24);
}

.fcdr-stage-row:nth-child(6n+6) .fcdr-stage-track i {
  background: linear-gradient(90deg, #b91c1c, #fb7185);
}

.fcdr-chart-card.conversion .fcdr-stage-track i {
  background: linear-gradient(90deg, #15803d, #4ade80);
}

.fcdr-chart-card.conversion .fcdr-stage-row:nth-child(6n+2) .fcdr-stage-track i {
  background: linear-gradient(90deg, #0f766e, #2dd4bf);
}

.fcdr-chart-card.conversion .fcdr-stage-row:nth-child(6n+3) .fcdr-stage-track i {
  background: linear-gradient(90deg, #0369a1, #38bdf8);
}

.fcdr-chart-card.conversion .fcdr-stage-row:nth-child(6n+4) .fcdr-stage-track i {
  background: linear-gradient(90deg, #4338ca, #818cf8);
}

.fcdr-chart-card.conversion .fcdr-stage-row:nth-child(6n+5) .fcdr-stage-track i {
  background: linear-gradient(90deg, #a16207, #facc15);
}

.fcdr-chart-card.conversion .fcdr-stage-row:nth-child(6n+6) .fcdr-stage-track i {
  background: linear-gradient(90deg, #c2410c, #fb923c);
}

.fcdr-clinical-insight-card .fcdr-stage-row:hover .fcdr-stage-track i {
  filter: brightness(.92) saturate(1.1);
}

.fcdr-package-conversion-card {
  min-height: 300px;
}

.fcdr-package-chart {
  gap: 13px;
}

.fcdr-package-axis {
  grid-template-columns: minmax(145px, .8fr) minmax(120px, 2fr) minmax(112px, max-content);
  align-items: end;
  gap: 12px;
  margin-bottom: -5px;
  display: grid;
}

.fcdr-package-axis > div {
  color: var(--text-muted);
  justify-content: space-between;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  display: flex;
}

.fcdr-package-conversion-card .fcdr-stage-track {
  border: 1px solid color-mix(in srgb, var(--text-muted) 18%, var(--border));
  background-color: color-mix(in srgb, var(--text-muted) 7%, var(--surface));
  background-image: linear-gradient(to right,
    transparent calc(25% - 1px), color-mix(in srgb, var(--text-muted) 22%, transparent) 25%, transparent calc(25% + 1px),
    transparent calc(50% - 1px), color-mix(in srgb, var(--text-muted) 22%, transparent) 50%, transparent calc(50% + 1px),
    transparent calc(75% - 1px), color-mix(in srgb, var(--text-muted) 22%, transparent) 75%, transparent calc(75% + 1px));
  border-radius: 6px;
  height: 22px;
}

.fcdr-package-conversion-card .fcdr-stage-track i {
  border-radius: 5px;
  min-width: 2px;
  transition: filter .16s, width .22s;
  box-shadow: inset 0 -1px #0f172a29;
}

.fcdr-package-conversion-card .fcdr-stage-row:hover .fcdr-stage-track i {
  filter: brightness(.9) saturate(1.08);
}

.fcdr-dropout-status-card {
  min-height: 350px;
}

.fcdr-dropout-status-card .fcdr-stage-track i {
  box-shadow: inset 0 -1px #0f172a24;
}

.fcdr-dropout-revenue-card {
  min-height: 0;
  padding-bottom: 22px;
}

.fcdr-dropout-revenue-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 17px;
  display: grid;
}

.fcdr-dropout-revenue-summary > span {
  border: 1px solid color-mix(in srgb, var(--fcdr-chart-accent) 16%, var(--border));
  background: color-mix(in srgb, var(--fcdr-chart-accent) 5%, var(--surface));
  min-width: 0;
  color: var(--text-muted);
  border-radius: 12px;
  gap: 3px;
  padding: 11px 13px;
  font-size: 11px;
  font-weight: 750;
  display: grid;
}

.fcdr-dropout-revenue-summary strong {
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
}

.fcdr-dropout-revenue-chart {
  gap: 12px;
  padding: 18px 2px 0;
  display: grid;
}

.fcdr-dropout-revenue-row {
  border-radius: 8px;
  grid-template-columns: minmax(175px, .8fr) minmax(220px, 2fr) minmax(175px, max-content);
  align-items: center;
  gap: 14px;
  transition: background-color .16s, transform .16s;
  display: grid;
}

.fcdr-dropout-revenue-row:hover {
  background: color-mix(in srgb, var(--fcdr-chart-accent) 4%, transparent);
  transform: translateX(2px);
}

.fcdr-dropout-revenue-row > span {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.fcdr-dropout-revenue-row > span strong {
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 850;
  overflow: hidden;
}

.fcdr-dropout-revenue-row > span small {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 750;
}

.fcdr-dropout-revenue-row > strong {
  color: var(--text);
  text-align: right;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 900;
}

.fcdr-dropout-revenue-track {
  border: 1px solid color-mix(in srgb, var(--text-muted) 18%, var(--border));
  background-color: color-mix(in srgb, var(--text-muted) 7%, var(--surface));
  background-image: linear-gradient(to right,
    transparent calc(25% - 1px), color-mix(in srgb, var(--text-muted) 22%, transparent) 25%, transparent calc(25% + 1px),
    transparent calc(50% - 1px), color-mix(in srgb, var(--text-muted) 22%, transparent) 50%, transparent calc(50% + 1px),
    transparent calc(75% - 1px), color-mix(in srgb, var(--text-muted) 22%, transparent) 75%, transparent calc(75% + 1px));
  border-radius: 6px;
  height: 22px;
  overflow: hidden;
}

.fcdr-dropout-revenue-track i {
  border-radius: 5px;
  min-width: 2px;
  height: 100%;
  transition: filter .16s, width .24s;
  display: block;
  box-shadow: inset 0 -1px #0f172a29;
}

.fcdr-dropout-revenue-row:hover .fcdr-dropout-revenue-track i {
  filter: brightness(.9) saturate(1.1);
}

@media (prefers-reduced-motion: reduce) {
  .fcdr-clinical-insight-card, .fcdr-stage-row, .fcdr-stage-track i, .fcdr-dropout-revenue-row, .fcdr-dropout-revenue-track i {
    transition: none;
  }

  .fcdr-clinical-insight-card:hover, .fcdr-clinical-insight-card .fcdr-stage-row:hover, .fcdr-dropout-revenue-row:hover {
    transform: none;
  }
}

.fcdr-conversion-month-card {
  min-height: 410px;
}

.fcdr-conversion-month-chart-body {
  height: 270px;
  margin-top: 12px;
}

.fcdr-conversion-timing-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding-top: 13px;
  display: grid;
}

.fcdr-conversion-timing-summary span {
  color: var(--text-muted);
  text-align: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.25;
  display: grid;
}

.fcdr-conversion-timing-summary strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.fcdr-chart-footnote {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  padding-top: 11px;
  font-size: 11px;
  font-weight: 700;
}

.fcdr-table-heading {
  padding: 18px 20px 15px;
}

.fcdr-table-heading-actions {
  flex-flow: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px !important;
  display: flex !important;
}

.fcdr-table-control {
  align-items: center;
  gap: 8px;
  min-width: 0;
  display: flex;
}

.fcdr-table-control > span {
  color: var(--text-muted);
  letter-spacing: .035em;
  text-transform: uppercase;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 900;
}

.fcdr-table-control select, .fcdr-table-control input {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  min-width: 150px;
  min-height: 38px;
  color: var(--text);
  border-radius: 10px;
  padding: 8px 34px 8px 11px;
  font-size: 12px;
  font-weight: 800;
}

.fcdr-table-control input {
  width: 210px;
  padding-right: 11px;
}

.fcdr-table-search-button {
  min-height: 38px;
}

.fcdr-package-bill {
  gap: 3px;
  min-width: 180px;
  display: grid;
}

.fcdr-package-bill strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
}

.fcdr-package-bill small {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 750;
}

.fcdr-table-scroll {
  box-sizing: border-box;
  border: 1px solid var(--fcdr-table-grid);
  scrollbar-width: thin;
  width: 100%;
  overflow-x: auto;
}

.fcdr-data-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 1180px;
  color: var(--text);
}

.fcdr-table-card.wide .fcdr-data-table {
  min-width: 1500px;
}

.fcdr-data-table th {
  border-right: 1px solid var(--fcdr-table-grid);
  border-bottom: 2px solid var(--fcdr-table-grid);
  background: color-mix(in srgb, var(--text-muted) 6%, var(--surface));
  color: var(--text-muted);
  letter-spacing: .035em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 13px 12px;
  font-size: 10.5px;
  font-weight: 900;
}

.fcdr-data-table td {
  border-right: 1px solid var(--fcdr-table-grid);
  border-bottom: 1px solid var(--fcdr-table-grid);
  padding: 16px 12px;
  font-size: 12px;
  font-weight: 700;
}

.fcdr-patient-details .fcdr-data-table {
  table-layout: fixed;
  min-width: 0;
}

.fcdr-patient-details .fcdr-data-table :is(th, td) {
  overflow-wrap: anywhere;
  vertical-align: top;
  padding: 11px 5px;
}

.fcdr-patient-details .fcdr-data-table th {
  text-align: center;
  white-space: normal;
  line-height: 1.15;
}

.fcdr-patient-details .fcdr-data-table td {
  font-size: 10.5px;
  line-height: 1.3;
}

.fcdr-patient-details .fcdr-patient-id {
  width: 6%;
}

.fcdr-patient-details .fcdr-patient-name {
  width: 10%;
}

.fcdr-patient-details .fcdr-patient-centre {
  width: 7%;
}

.fcdr-patient-details .fcdr-patient-date {
  text-align: center;
  font-variant-numeric: tabular-nums;
  width: 7%;
}

.fcdr-patient-details .fcdr-patient-package {
  width: 12%;
}

.fcdr-patient-details .fcdr-patient-days {
  text-align: center;
  font-variant-numeric: tabular-nums;
  width: 7%;
}

.fcdr-patient-details .fcdr-patient-category {
  text-align: center;
  width: 9%;
}

.fcdr-patient-details .fcdr-package-bill {
  min-width: 0;
}

.fcdr-data-table :is(th, td):last-child {
  border-right: 0;
}

.fcdr-data-table tbody tr:last-child td {
  border-bottom: 0;
}

.fcdr-data-table:has(tfoot) tbody tr:last-child td {
  border-bottom: 1px solid var(--fcdr-table-grid);
}

.fcdr-centre-breakdown .fcdr-data-table {
  table-layout: fixed;
  --fcdr-total-column: #38a7e5;
  --fcdr-second-column: #4f7ee8;
  --fcdr-third-column: #7164df;
  --fcdr-fourth-column: #26a6b5;
  --fcdr-fifth-column: #b26bc5;
  --fcdr-age-30-column: #31b8a3;
  --fcdr-age-60-column: #f2a516;
  --fcdr-age-90-column: #f37525;
  --fcdr-age-90-plus-column: #8257ec;
  --fcdr-active-follow-up-column: #0891b2;
  --fcdr-converted-column: #42b966;
  --fcdr-dropout-column: #df0b66;
  min-width: 0;
}

.fcdr-centre-breakdown .fcdr-data-table th, .fcdr-centre-breakdown .fcdr-data-table td {
  padding-inline: 7px;
}

.fcdr-centre-breakdown .fcdr-data-table th {
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.15;
}

.fcdr-centre-breakdown .fcdr-data-table .fcdr-centre-name {
  overflow-wrap: anywhere;
  width: 13%;
}

.fcdr-centre-breakdown .fcdr-data-table .fcdr-numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.fcdr-centre-breakdown .fcdr-data-table :is(th, td).fcdr-centre-total {
  background: color-mix(in srgb, var(--fcdr-total-column) 10%, var(--surface));
}

.fcdr-centre-breakdown .fcdr-data-table :is(th, td).fcdr-visit-second {
  background: color-mix(in srgb, var(--fcdr-second-column) 10%, var(--surface));
}

.fcdr-centre-breakdown .fcdr-data-table :is(th, td).fcdr-visit-third {
  background: color-mix(in srgb, var(--fcdr-third-column) 10%, var(--surface));
}

.fcdr-centre-breakdown .fcdr-data-table :is(th, td).fcdr-visit-fourth {
  background: color-mix(in srgb, var(--fcdr-fourth-column) 10%, var(--surface));
}

.fcdr-centre-breakdown .fcdr-data-table :is(th, td).fcdr-visit-fifth-plus {
  background: color-mix(in srgb, var(--fcdr-fifth-column) 10%, var(--surface));
}

.fcdr-centre-breakdown .fcdr-data-table :is(th, td).fcdr-age-0-30 {
  background: color-mix(in srgb, var(--fcdr-age-30-column) 11%, var(--surface));
}

.fcdr-centre-breakdown .fcdr-data-table :is(th, td).fcdr-age-31-60 {
  background: color-mix(in srgb, var(--fcdr-age-60-column) 11%, var(--surface));
}

.fcdr-centre-breakdown .fcdr-data-table :is(th, td).fcdr-age-61-90 {
  background: color-mix(in srgb, var(--fcdr-age-90-column) 11%, var(--surface));
}

.fcdr-centre-breakdown .fcdr-data-table :is(th, td).fcdr-age-90-plus {
  background: color-mix(in srgb, var(--fcdr-age-90-plus-column) 11%, var(--surface));
}

.fcdr-centre-breakdown .fcdr-data-table :is(th, td).fcdr-active-follow-up {
  background: color-mix(in srgb, var(--fcdr-active-follow-up-column) 11%, var(--surface));
}

.fcdr-centre-breakdown .fcdr-data-table :is(th, td).fcdr-converted {
  background: color-mix(in srgb, var(--fcdr-converted-column) 11%, var(--surface));
}

.fcdr-centre-breakdown .fcdr-data-table :is(th, td).fcdr-dropout {
  background: color-mix(in srgb, var(--fcdr-dropout-column) 11%, var(--surface));
}

.fcdr-centre-breakdown .fcdr-data-table thead th {
  border-bottom-color: var(--border-strong);
  color: var(--text);
}

.fcdr-centre-breakdown .fcdr-data-table tfoot td {
  border-top: 2px solid var(--fcdr-table-grid);
  color: var(--text);
  border-bottom: 0;
  font-size: 12.5px;
  font-weight: 900;
}

.fcdr-centre-breakdown .fcdr-data-table tfoot .fcdr-centre-name {
  background: color-mix(in srgb, var(--text-muted) 8%, var(--surface));
}

.fcdr-outcome-centre-breakdown .fcdr-data-table .fcdr-numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.fcdr-outcome-centre-breakdown .fcdr-data-table tfoot td {
  border-top: 2px solid var(--fcdr-table-grid);
  background: color-mix(in srgb, var(--text-muted) 6%, var(--surface));
  color: var(--text);
  border-bottom: 0;
  font-weight: 900;
}

.fcdr-outcome-patient-records .fcdr-data-table {
  table-layout: fixed;
  min-width: 0;
}

.fcdr-outcome-patient-records .fcdr-data-table :is(th, td) {
  overflow-wrap: anywhere;
  vertical-align: top;
  padding-inline: 9px;
}

.fcdr-outcome-patient-records .fcdr-data-table th {
  white-space: normal;
  line-height: 1.2;
}

.fcdr-outcome-patient-records .fcdr-package-bill {
  min-width: 0;
}

.fcdr-outcome-patient-records .fcdr-outcome-patient-id {
  width: 8%;
}

.fcdr-outcome-patient-records .fcdr-outcome-patient-name {
  width: 12%;
}

.fcdr-outcome-patient-records .fcdr-outcome-patient-centre {
  width: 10%;
}

.fcdr-outcome-patient-records .fcdr-outcome-patient-registration {
  text-align: center;
  width: 10%;
}

.fcdr-outcome-patient-records .fcdr-outcome-patient-care {
  width: 19%;
}

.fcdr-outcome-patient-records .fcdr-outcome-patient-package {
  width: 16%;
}

.fcdr-outcome-patient-records .fcdr-outcome-patient-status {
  text-align: center;
  width: 10%;
}

.fcdr-outcome-patient-records .fcdr-outcome-patient-consideration {
  width: 15%;
}

.fcdr-table-empty {
  text-align: center;
  height: 150px;
}

.fcdr-table-empty strong, .fcdr-table-empty span {
  display: block;
}

.fcdr-table-empty strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.fcdr-table-empty span {
  color: var(--text-muted);
  margin-top: 6px;
  font-size: 12px;
  font-weight: 650;
}

.fcdr-table-footer {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  font-size: 12px;
  font-weight: 800;
  display: flex;
}

.fcdr-pagination-controls {
  align-items: center;
  gap: 8px;
  display: flex;
}

.fcdr-pagination-controls > span {
  min-width: 90px;
  color: var(--text);
  text-align: center;
  font-weight: 900;
}

body.dark-mode .fcdr-view-tabs, body.dark-mode .fcdr-filter-card, body.dark-mode .fcdr-structure-card, body.dark-mode .fcdr-kpi-card, body.dark-mode .fcdr-chart-card, body.dark-mode .fcdr-table-card, body.dark-mode .fcdr-outcome-subtabs, body.dark-mode .fcdr-outcome-hero, body.dark-mode .fcdr-intelligence-brief, body.dark-mode .fcdr-clinical-insight-card {
  background: #151c2d;
}

body.dark-mode .fcdr-table-card {
  --fcdr-table-grid: #526078;
}

body.dark-mode .fcdr-filter-grid select, body.dark-mode .fcdr-filter-grid input, body.dark-mode .fcdr-table-control select, body.dark-mode .fcdr-table-control input {
  background: #0f172a85;
}

body.dark-mode .fcdr-section-heading > span {
  background: #22c55e29;
  color: #86efac !important;
}

body.dark-mode .fcdr-method-note {
  background: #e11d6b0e;
}

body.dark-mode .fcdr-stage-track {
  background-color: #94a3b829;
}

body.dark-mode .fcdr-dropout-revenue-summary > span {
  background: #0f172a5c;
}

body.dark-mode .fcdr-dropout-revenue-track {
  background-color: #94a3b81f;
}

body.dark-mode .fcdr-data-table th {
  background: #202a3d;
}

@media (max-width: 1180px) {
  .fcdr-search-field {
    grid-column: span 2;
  }

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

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

  .fcdr-outcome-kpi-grid.intelligence {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .fcdr-centre-breakdown .fcdr-data-table {
    table-layout: auto;
    min-width: 960px;
  }

  .fcdr-outcome-patient-records .fcdr-data-table {
    min-width: 980px;
  }

  .fcdr-patient-details .fcdr-data-table {
    table-layout: fixed;
    min-width: 1320px;
  }
}

@media (max-width: 980px) {
  .fcdr-outcome-kpi-grid, .fcdr-outcome-kpi-grid.intelligence {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fcdr-intelligence-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .fcdr-view-tabs, .fcdr-filter-grid, .fcdr-structure-grid, .fcdr-outcome-subtabs {
    grid-template-columns: 1fr;
  }

  .fcdr-table-heading-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .fcdr-table-control {
    width: 100%;
    min-width: 0;
  }

  .fcdr-table-control select {
    flex: 1;
    min-width: 0;
  }

  .fcdr-table-control input {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  .fcdr-table-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .fcdr-pagination-controls {
    justify-content: space-between;
  }

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

  .fcdr-chart-grid {
    grid-template-columns: 1fr;
  }

  .fcdr-search-field {
    grid-column: auto;
  }

  .fcdr-filter-heading, .fcdr-section-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .fcdr-filter-heading .clinical-data-status, .fcdr-section-heading > span {
    align-self: flex-start;
  }

  .fcdr-method-note {
    display: grid;
  }

  .fcdr-outcome-hero, .fcdr-intelligence-brief, .fcdr-outcome-method-note, .fcdr-card-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .fcdr-pending-badge {
    align-self: flex-start;
  }

  .fcdr-dropout-revenue-summary {
    grid-template-columns: 1fr;
  }

  .fcdr-dropout-revenue-row {
    grid-template-columns: minmax(120px, .8fr) minmax(100px, 1.4fr) minmax(138px, max-content);
    gap: 8px;
  }
}

@media (max-width: 440px) {
  .fcdr-view-tabs > button {
    padding: 10px 12px;
  }

  .fcdr-kpi-grid, .fcdr-outcome-kpi-grid, .fcdr-outcome-kpi-grid.intelligence {
    grid-template-columns: 1fr;
  }

  .fcdr-stage-row {
    grid-template-columns: minmax(94px, .9fr) minmax(64px, 1.4fr) minmax(76px, max-content);
    gap: 7px;
  }

  .fcdr-stage-row > span {
    font-size: 11px;
  }

  .fcdr-stage-row > strong {
    min-width: 76px;
    font-size: 11px;
  }

  .fcdr-dropout-revenue-row {
    grid-template-columns: 1fr;
    gap: 5px;
    padding-bottom: 8px;
  }

  .fcdr-dropout-revenue-row > strong {
    text-align: left;
  }
}

.business-kpi-link {
  color: var(--business-kpi-accent);
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  align-items: center;
  gap: 4px;
  padding: 0;
  font-size: 9px;
  font-weight: 950;
  display: inline-flex;
  position: absolute;
  bottom: 9px;
  right: 12px;
}

.business-kpi-link:hover {
  text-decoration: underline;
}

.business-kpi-link svg {
  width: 11px;
  height: 11px;
}

.business-dashboard-pending-kpi:has(.business-kpi-link) .business-pending-kpi-footer small {
  padding-right: 82px;
}

.business-anc-drawer {
  width: min(1180px, 96vw);
  padding: 26px;
}

.business-anc-drawer-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-right: 44px;
  display: flex;
}

.business-anc-drawer-heading .btn {
  flex: none;
  min-height: 40px;
}

.business-anc-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
  display: grid;
}

.business-anc-summary-grid > div {
  border: 1px solid var(--border);
  background: var(--surface-muted);
  border-radius: 15px;
  gap: 5px;
  min-height: 74px;
  padding: 13px 14px;
  display: grid;
}

.business-anc-summary-grid > div.emphasis {
  border-color: color-mix(in srgb, #0ea5e9 35%, var(--border));
  background: color-mix(in srgb, #0ea5e9 8%, var(--surface));
}

.business-anc-summary-grid span {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 10px;
  font-weight: 850;
}

.business-anc-summary-grid strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 950;
}

.business-anc-search {
  gap: 7px;
  margin: 18px 0 12px;
  display: grid;
}

.business-anc-search > label {
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
}

.business-anc-search > div {
  gap: 8px;
  display: flex;
}

.business-anc-search input {
  border: 1px solid var(--border);
  background: var(--surface);
  min-width: 180px;
  height: 40px;
  color: var(--text);
  font: inherit;
  border-radius: 11px;
  flex: auto;
  padding: 0 13px;
  font-size: 12px;
}

.business-anc-table-wrap {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: auto;
}

.business-anc-table {
  border-collapse: collapse;
  background: var(--surface);
  width: 100%;
  min-width: 930px;
}

.business-anc-table th {
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--text-muted);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 11px 12px;
  font-size: 10px;
  font-weight: 900;
}

.business-anc-table td {
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
  padding: 12px;
  font-size: 11px;
  font-weight: 750;
}

.business-anc-table tbody tr:last-child td {
  border-bottom: 0;
}

.business-anc-table td > strong, .business-anc-table td > span {
  display: block;
}

.business-anc-table td > span {
  color: var(--text-muted);
  margin-top: 3px;
  font-size: 9px;
  font-weight: 700;
}

.business-anc-table-state {
  text-align: center;
  height: 130px;
  color: var(--text-muted) !important;
  vertical-align: middle !important;
}

.business-anc-stage {
  border-radius: 999px;
  width: max-content;
  padding: 4px 8px;
  margin: 0 !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  display: inline-flex !important;
}

.business-anc-stage.within_20 {
  background: #0ea5e91f;
  color: #0369a1 !important;
}

.business-anc-stage.beyond_20 {
  background: #22c55e1f;
  color: #15803d !important;
}

.business-anc-stage.pending {
  background: #f59e0b24;
  color: #b45309 !important;
}

.business-anc-pagination {
  color: var(--text-muted);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 13px;
  font-size: 11px;
  font-weight: 800;
  display: flex;
}

.business-anc-pagination > div {
  gap: 8px;
  display: flex;
}

body.dark-mode .business-anc-stage.within_20 {
  color: #7dd3fc !important;
}

body.dark-mode .business-anc-stage.beyond_20 {
  color: #86efac !important;
}

body.dark-mode .business-anc-stage.pending {
  color: #fcd34d !important;
}

@media (max-width: 880px) {
  .business-anc-drawer {
    width: 100vw;
    padding: 20px 16px;
  }

  .business-anc-drawer-heading {
    flex-direction: column;
    align-items: stretch;
    padding-right: 42px;
  }

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

@media (max-width: 520px) {
  .business-anc-summary-grid {
    grid-template-columns: 1fr;
  }

  .business-anc-search > div {
    flex-wrap: wrap;
  }

  .business-anc-search input {
    flex-basis: 100%;
  }

  .business-anc-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .business-anc-pagination > div {
    justify-content: space-between;
  }
}

.cookie-consent-layer {
  z-index: 100000;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  background: #0f172a7a;
  align-items: end;
  padding: 18px;
  display: grid;
  position: fixed;
  inset: 0;
}

.cookie-consent {
  border: 1px solid color-mix(in srgb,var(--primary, #d90064) 24%,var(--border, #e5e7eb));
  background: var(--surface-solid, #fff);
  width: min(820px, 100%);
  color: var(--text, #111827);
  border-radius: 22px;
  margin: 0 auto;
  padding: 24px;
  box-shadow: 0 28px 90px #0f172a4d;
}

.cookie-consent-heading {
  align-items: center;
  gap: 12px;
  display: flex;
}

.cookie-consent-heading > span {
  background: color-mix(in srgb,var(--primary, #d90064) 11%,var(--surface-solid, #fff));
  width: 42px;
  height: 42px;
  color: var(--primary, #d90064);
  border-radius: 13px;
  place-items: center;
  display: grid;
}

.cookie-consent-heading p {
  color: var(--primary, #d90064);
  letter-spacing: .13em;
  margin: 0;
  font-size: 9px;
  font-weight: 900;
}

.cookie-consent-heading h2 {
  margin: 3px 0 0;
  font: 850 22px Outfit, sans-serif;
}

.cookie-consent > p {
  color: var(--text-muted, #64748b);
  font-size: 13px;
  line-height: 1.6;
}

.cookie-policy-link {
  color: var(--primary, #d90064);
  font-size: 11px;
  font-weight: 800;
}

.cookie-categories {
  gap: 8px;
  margin: 16px 0;
  display: grid;
}

.cookie-categories label {
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  display: flex;
}

.cookie-categories strong, .cookie-categories small {
  display: block;
}

.cookie-categories strong {
  font-size: 12px;
}

.cookie-categories small {
  color: var(--text-muted, #64748b);
  margin-top: 3px;
  font-size: 10px;
}

.cookie-categories input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary, #d90064);
}

.cookie-consent-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 18px;
  display: flex;
}

.cookie-consent-actions button {
  cursor: pointer;
  border-radius: 11px;
  min-height: 42px;
  padding: 0 15px;
  font-size: 11px;
  font-weight: 850;
}

.cookie-secondary {
  border: 1px solid var(--border, #e5e7eb);
  background: var(--surface-solid, #fff);
  color: var(--text, #111827);
}

.cookie-primary {
  border: 1px solid var(--primary, #d90064);
  background: var(--primary, #d90064);
  color: #fff;
}

.cookie-settings-trigger {
  z-index: 99990;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--surface-solid, #fff);
  min-height: 34px;
  color: var(--text, #111827);
  cursor: pointer;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 10px;
  font-weight: 800;
  position: fixed;
  bottom: 12px;
  left: 12px;
  box-shadow: 0 7px 22px #0f172a24;
}

@media (max-width: 640px) {
  .cookie-consent-layer {
    padding: 8px;
  }

  .cookie-consent {
    border-radius: 17px;
    padding: 18px;
  }

  .cookie-consent-actions {
    display: grid;
  }

  .cookie-consent-actions button {
    width: 100%;
  }
}

.login-policy-links {
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  margin-top: 14px;
  display: flex;
}

.login-policy-links a {
  color: var(--text-muted);
  text-underline-offset: 3px;
  font-size: 9px;
  font-weight: 750;
}

.login-policy-links a:hover {
  color: var(--primary);
}

.legal-page-shell {
  background: radial-gradient(circle at 10% 0%,#d9006414,transparent 35%),var(--background, #f8fafc);
  min-height: 100vh;
  color: var(--text, #111827);
  padding: clamp(14px, 3vw, 42px);
}

.legal-page-card {
  border: 1px solid var(--border, #e5e7eb);
  background: var(--surface-solid, #fff);
  border-radius: 28px;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 48px);
  box-shadow: 0 24px 70px #23141f1c;
}

.legal-topbar {
  border-bottom: 1px solid var(--border, #e5e7eb);
  color: var(--text-muted, #64748b);
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  font-size: 12px;
  font-weight: 850;
  display: flex;
}

.legal-topbar .legal-brand-link {
  margin-right: 0;
}

.legal-topbar img {
  width: 112px;
  height: auto;
  display: block;
}

.legal-login-link {
  color: var(--primary, #d90064);
  margin-left: auto;
  font-weight: 850;
  text-decoration: none;
}

.legal-login-link:hover {
  text-decoration: underline;
}

.legal-login-link:focus-visible {
  outline: 3px solid color-mix(in srgb,var(--primary, #d90064) 32%,transparent);
  outline-offset: 4px;
  border-radius: 4px;
}

.legal-print {
  border: 1px solid var(--border, #e5e7eb);
  background: var(--surface-solid, #fff);
  min-height: 38px;
  color: var(--text, #111827);
  cursor: pointer;
  border-radius: 10px;
  padding: 0 14px;
  font-weight: 800;
}

.legal-hero {
  color: #fff;
  background: linear-gradient(135deg, #9d174d, #e5006d 58%, #f08db6);
  border-radius: 24px;
  margin: 28px 0;
  padding: clamp(24px, 4vw, 44px);
}

.legal-hero > p:first-child {
  letter-spacing: .16em;
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 900;
}

.legal-hero h1 {
  max-width: 780px;
  margin: 0 0 12px;
  font: 900 clamp(32px, 5vw, 54px) / 1.05 Outfit, sans-serif;
}

.legal-hero p:last-child {
  opacity: .9;
  max-width: 760px;
  margin: 0;
  line-height: 1.65;
}

.legal-document-control {
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0 0 26px;
  display: grid;
}

.legal-document-control div {
  border: 1px solid var(--border, #e5e7eb);
  background: color-mix(in srgb,var(--primary, #d90064) 3%,var(--surface-solid, #fff));
  border-radius: 14px;
  padding: 14px;
}

.legal-document-control dt {
  color: var(--text-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 10px;
  font-weight: 900;
}

.legal-document-control dd {
  margin: 5px 0 0;
  font-size: 12px;
  font-weight: 800;
}

.legal-intro {
  border-left: 4px solid var(--primary, #d90064);
  background: color-mix(in srgb,var(--primary, #d90064) 5%,var(--surface-solid, #fff));
  border-radius: 0 14px 14px 0;
  max-width: 900px;
  margin: 0 auto 22px;
  padding: 20px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.75;
}

.legal-sections {
  max-width: 900px;
  margin: 0 auto;
}

.legal-sections section {
  border-bottom: 1px solid var(--border, #e5e7eb);
  padding: 22px 0;
}

.legal-sections h2, .legal-related h2 {
  margin: 0 0 12px;
  font: 850 22px / 1.25 Outfit, sans-serif;
}

.legal-sections p, .legal-sections li {
  color: var(--text-muted, #64748b);
  font-size: 14px;
  line-height: 1.75;
}

.legal-sections p {
  margin: 0 0 10px;
}

.legal-sections ul {
  margin: 7px 0;
  padding-left: 24px;
}

.legal-sections li {
  margin: 6px 0;
}

.legal-sections a, .legal-related a, .legal-site-footer a {
  color: var(--primary, #d90064);
  text-underline-offset: 3px;
  font-weight: 750;
}

.legal-related {
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 18px;
  max-width: 900px;
  margin: 28px auto;
  padding: 20px;
}

.legal-related nav {
  flex-wrap: wrap;
  gap: 10px 18px;
  display: flex;
}

.legal-site-footer {
  border-top: 1px solid var(--border, #e5e7eb);
  color: var(--text-muted, #64748b);
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  padding-top: 22px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
}

.legal-site-footer nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 15px;
  display: flex;
}

@media (max-width: 760px) {
  .legal-page-shell {
    padding: 8px;
  }

  .legal-page-card {
    border-radius: 20px;
    padding: 17px;
  }

  .legal-document-control {
    grid-template-columns: 1fr 1fr;
  }

  .legal-site-footer {
    display: grid;
  }

  .legal-site-footer nav {
    justify-content: flex-start;
  }

  .legal-topbar span {
    display: none;
  }
}

@media print {
  .legal-page-shell {
    background: #fff;
    padding: 0;
  }

  .legal-page-card {
    box-shadow: none;
    border: 0;
    padding: 0;
  }

  .legal-print, .cookie-consent-layer, .cookie-settings-trigger {
    display: none !important;
  }

  .legal-hero {
    color: #111;
    background: #fff;
    border: 1px solid #ddd;
  }

  .legal-site-footer {
    break-inside: avoid;
  }
}

/*# sourceMappingURL=_1sv0yfv._.css.map*/