:root {
  --admin-dark: #1d2327;
  --admin-hover: #2c3338;
  --blue: #2271b1;
  --blue-dark: #135e96;
  --blue-soft: #f0f6fc;
  --green: #008a20;
  --green-soft: #edfaef;
  --amber: #996800;
  --amber-soft: #fcf9e8;
  --red: #b32d2e;
  --red-soft: #fcf0f1;
  --text: #1d2327;
  --text-soft: #50575e;
  --text-faint: #646970;
  --border: #c3c4c7;
  --border-light: #dcdcde;
  --canvas: #f0f0f1;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body {
  min-height: 100vh;
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 13px;
  line-height: 1.45;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 23px; font-weight: 400; line-height: 1.25; }
h2 { margin-bottom: 5px; font-size: 14px; font-weight: 600; line-height: 1.35; }
h3 { margin-bottom: 4px; font-size: 13px; line-height: 1.35; }
hr { margin: 18px 0; border: 0; border-top: 1px solid var(--border-light); }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.grow { min-width: 0; flex: 1; }
.muted { color: var(--text-faint); }
.small { font-size: 11px; }
.preline { white-space: pre-line; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Salesforce/WordPress-style admin shell */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: 220px;
  flex-direction: column;
  background: var(--admin-dark);
  color: #f0f0f1;
}
.brand {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-bottom: 1px solid #3c434a;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}
.brand:hover { color: #fff; text-decoration: none; }
.brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 2px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.brand-accent { color: inherit; }
.nav { display: flex; flex: 1; flex-direction: column; padding: 8px 0; }
.nav-link {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  color: #dcdcde;
  font-weight: 400;
}
.nav-link:hover { background: var(--admin-hover); color: #72aee6; text-decoration: none; }
.nav-link.active { position: relative; background: var(--blue); color: #fff; }
.nav-link.active::after {
  position: absolute;
  right: 0;
  border-width: 8px 8px 8px 0;
  border-style: solid;
  border-color: transparent var(--canvas) transparent transparent;
  content: "";
}
.nav-icon { width: 18px; color: #a7aaad; font-size: 16px; line-height: 1; text-align: center; }
.nav-link.active .nav-icon { color: #fff; }
.nav-section { margin: 19px 14px 5px; color: #8c8f94; font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.sidebar-user {
  display: flex;
  min-height: 61px;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #3c434a;
  background: #23282d;
}
.sidebar-user-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.sidebar-user-copy strong { overflow: hidden; color: #f0f0f1; font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-copy span { color: #a7aaad; font-size: 10px; }
.app-main { min-height: 100vh; margin-left: 220px; }
.topbar {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border-light);
  background: #fff;
}
.topbar > :last-child { display: flex; align-items: center; gap: 7px; }
.topbar-actions { display: flex; align-items: center; gap: 7px; }
.topbar-actions form { display: flex; margin: 0; }
.topbar-context { margin-bottom: 1px; color: var(--text-faint); font-size: 10px; }
.topbar-context span { padding: 0 3px; color: #a7aaad; }
.content { width: min(1500px, 100%); margin: 0 auto; padding: 20px 24px 34px; }
.app-footer { padding: 14px 24px 22px; color: var(--text-faint); font-size: 10px; text-align: center; }
.eyebrow { margin-bottom: 3px; color: var(--text-faint); font-size: 10px; font-weight: 600; letter-spacing: .035em; text-transform: uppercase; }
.eyebrow.light { color: var(--text-faint); }
.panel-description { margin: 0; color: var(--text-faint); font-size: 11px; }

/* Compact controls */
.button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f6f7f7;
  color: #2c3338;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  box-shadow: 0 1px 0 var(--border);
}
.button:hover { border-color: #8c8f94; background: #f0f0f1; color: var(--text); text-decoration: none; }
.button.primary { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 1px 0 var(--blue-dark); }
.button.primary:hover { border-color: var(--blue-dark); background: var(--blue-dark); color: #fff; }
.button.secondary { border-color: var(--blue); background: #fff; color: var(--blue); box-shadow: none; }
.button.secondary:hover { border-color: var(--blue-dark); background: var(--blue-soft); color: var(--blue-dark); }
.button.accent { border-color: var(--blue); background: var(--blue); color: #fff; }
.button.danger { border-color: var(--red); background: #fff; color: var(--red); box-shadow: none; }
.button.danger:hover { border-color: #8f2424; background: var(--red-soft); color: #8f2424; }
.button.compare-button { border-color: var(--blue); background: #fff; color: var(--blue); box-shadow: none; }
.button:disabled { cursor: default; opacity: .5; }
.button.disabled, .button.disabled:hover { cursor: not-allowed; border-color: var(--border); background: #f6f7f7; color: var(--text-faint); opacity: .72; }
.button.full { width: 100%; }
.button.small { min-height: 27px; padding: 3px 8px; font-size: 11px; }
.icon-button { padding: 2px 5px; border: 0; background: transparent; color: var(--text-faint); cursor: pointer; font-size: 18px; line-height: 1; }
.icon-button:hover { color: var(--red); }
.icon-button.inverse { color: #a7aaad; }
.text-link { font-size: 11px; font-weight: 500; }
input, select, textarea {
  width: 100%;
  min-height: 32px;
  padding: 4px 8px;
  border: 1px solid #8c8f94;
  border-radius: var(--radius);
  outline: none;
  background: #fff;
  color: var(--text);
}
textarea { padding: 7px 8px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
label { color: #3c434a; font-size: 11px; font-weight: 500; }
label > input, label > select, label > textarea { display: block; margin-top: 4px; font-weight: 400; }
.field label { display: block; margin-bottom: 4px; }
.field-help { display: block; margin-top: 5px; color: var(--text-faint); font-size: 9px; }
.field .field-clear { display: flex; margin-top: 7px; }
.stacked-form { display: grid; gap: 13px; margin-top: 18px; }
.checkbox-line { display: flex; align-items: center; gap: 7px; font-weight: 400; }
.checkbox-line input { width: 15px; min-height: 15px; margin: 0; }

/* Flat panels and dashboard widgets */
.panel {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
}
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: -16px -16px 14px; padding: 11px 13px; border-bottom: 1px solid var(--border-light); }
.panel-header h2 { margin-bottom: 0; }
.two-column { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(285px, .75fr); gap: 16px; }
.dashboard-search { display: flex; min-height: 73px; align-items: center; gap: 24px; margin-bottom: 16px; padding: 14px 16px; border-left: 4px solid var(--blue); }
.dashboard-search-copy { min-width: 280px; }
.dashboard-search-copy h2 { margin: 0; font-size: 15px; }
.dashboard-search-copy p { margin: 2px 0 0; color: var(--text-faint); font-size: 11px; }
.dashboard-search-form { display: grid; min-width: 430px; grid-template-columns: 120px 150px auto; align-items: end; gap: 8px; }
.dashboard-search-form.dashboard-member-search-form {
  width: min(680px, 100%);
  min-width: 0;
  margin-left: auto;
  grid-template-columns: minmax(145px, 1.3fr) 125px 135px 88px auto;
  align-items: center;
}
.dashboard-member-search-form input { min-width: 0; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.metric-card { display: flex; min-height: 100px; flex-direction: column; padding: 0 13px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: 0 1px 1px rgba(0,0,0,.04); }
.metric-label { margin: 0 -13px 8px; padding: 7px 10px; border-bottom: 1px solid var(--border-light); background: #f6f7f7; color: #3c434a; font-size: 11px; font-weight: 600; }
.metric-card strong { margin: 0 0 4px; font-size: 24px; font-weight: 400; line-height: 1.15; }
.metric-card small { margin-top: auto; color: var(--text-faint); font-size: 10px; }
.metric-card .metric-status { font-size: 17px; }
.metric-status.good { color: var(--green); }
.source-panel { background: #fff; }
.carrier-update-scroll {
  height: 252px;
  padding-right: 6px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.carrier-update-row { height: 84px; min-height: 84px; }
.carrier-update-logo {
  display: flex;
  width: 82px;
  height: 42px;
  flex: 0 0 82px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.carrier-update-logo img {
  display: block;
  max-width: 76px;
  max-height: 34px;
  object-fit: contain;
}
.carrier-update-logo.wellcare-logo img { width: 100%; height: 100%; }
.agent-resource-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 0 -1px -1px;
  padding: 14px 1px 1px;
  border-top: 1px solid #dcdcde;
  background: #fff;
}

/* Notices, labels and compact rows */
.flash-stack { display: grid; gap: 7px; margin-bottom: 14px; }
.flash { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border: 1px solid var(--border-light); border-left: 4px solid var(--blue); border-radius: 0; background: #fff; box-shadow: 0 1px 1px rgba(0,0,0,.04); font-size: 12px; }
.flash-success { border-left-color: var(--green); }
.flash-error { border-left-color: var(--red); }
.flash-close { border: 0; background: transparent; color: var(--text-faint); cursor: pointer; font-size: 16px; }
.notice { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 14px; padding: 9px 11px; border: 1px solid var(--border-light); border-left: 4px solid var(--blue); border-radius: 0; background: #fff; color: var(--text-soft); font-size: 11px; }
.notice strong { color: var(--text); white-space: nowrap; }
.notice.warning { border-left-color: #dba617; }
.notice.danger { border-left-color: var(--red); }
.empty { padding: 32px 16px; color: var(--text-faint); text-align: center; }
.empty.compact { padding: 19px 8px; }
.empty h2, .empty h3 { color: var(--text); }
.list-rows { display: grid; }
.list-row { display: flex; min-height: 52px; align-items: center; gap: 9px; padding: 8px 2px; border-bottom: 1px solid #eee; color: var(--text); }
.list-row:last-child { border-bottom: 0; }
.list-row:hover { color: var(--text); text-decoration: none; }
.list-row .grow { display: flex; flex-direction: column; }
.list-row small { color: var(--text-faint); font-size: 10px; }
.avatar { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #646970; color: #fff; font-size: 10px; font-weight: 600; }
.avatar.soft { background: #dcdcde; color: #2c3338; }
.avatar.xl { width: 48px; height: 48px; font-size: 14px; }
.status, .pill { display: inline-flex; width: max-content; min-height: 19px; align-items: center; padding: 1px 6px; border: 1px solid var(--border-light); border-radius: 2px; background: #f6f7f7; color: var(--text-soft); white-space: nowrap; font-size: 9px; font-weight: 600; }
.status-lead, .status-running { border-color: #a7d0ef; background: var(--blue-soft); color: var(--blue-dark); }
.status-quoted { border-color: #e5d18b; background: var(--amber-soft); color: var(--amber); }
.status-enrolled, .status-completed { border-color: #a7d7ad; background: var(--green-soft); color: var(--green); }
.status-closed, .status-failed { border-color: #efb5b5; background: var(--red-soft); color: var(--red); }
.pill.category { border-color: #a7d0ef; background: var(--blue-soft); color: var(--blue-dark); }
.pill.danger { border-color: #efb5b5; background: var(--red-soft); color: var(--red); }
.pill-row { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }

/* Plan finder */
.plan-search-ai-open svg { width: 15px; height: 15px; fill: currentColor; }
.search-panel { margin-bottom: 14px; padding: 13px; }
.search-form { display: grid; grid-template-columns: 110px repeat(3, minmax(145px, 1fr)) auto; gap: 9px; align-items: end; }
.or-divider { align-self: center; color: var(--text-faint); font-size: 10px; text-align: center; }
.advanced-filters { grid-column: 1 / -2; padding-top: 8px; border-top: 1px solid var(--border-light); }
.advanced-filters summary { width: max-content; color: var(--blue); cursor: pointer; font-size: 11px; }
.advanced-grid { display: grid; grid-template-columns: minmax(260px, 420px); gap: 9px; margin-top: 9px; }
.search-submit { grid-column: -2 / -1; }
.geography-notice { display: block; }
.geography-notice > div:first-child { display: flex; gap: 7px; margin-bottom: 7px; }
.choice-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.choice-pill { padding: 3px 7px; border: 1px solid var(--border); border-radius: 2px; background: #f6f7f7; color: var(--text-soft); font-size: 10px; }
.choice-pill.selected { border-color: var(--blue); background: var(--blue); color: #fff; }
.results-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 18px 0 9px; }
.results-toolbar h2 { margin-bottom: 0; font-size: 16px; font-weight: 400; }
.compare-button-slot { display: flex; min-width: 154px; min-height: 32px; justify-content: flex-end; }
.button.compare-button.is-sticky {
  position: fixed;
  top: 82px;
  right: max(24px, calc((100vw - 1720px) / 2 + 24px));
  z-index: 70;
  box-shadow: 0 2px 7px rgba(29, 35, 39, .18);
}
.ai-filter-notice { justify-content: space-between; }
.ai-filter-notice > div { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.ai-filter-notice > div span { overflow: hidden; color: var(--text-soft); text-overflow: ellipsis; white-space: nowrap; }
.ai-filter-notice .button { flex: 0 0 auto; }
.plan-search-ai-backdrop {
  position: fixed;
  inset: 0;
  z-index: 84;
  background: rgba(29, 35, 39, .42);
  opacity: 0;
  transition: opacity .18s ease;
}
.plan-search-ai-backdrop.open { opacity: 1; }
.plan-search-ai-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 85;
  display: flex;
  width: min(520px, 100vw);
  height: 100vh;
  flex-direction: column;
  border-left: 1px solid #3c434a;
  background: #151b20;
  color: #f0f0f1;
  box-shadow: -10px 0 28px rgba(29, 35, 39, .24);
  transform: translateX(102%);
  transition: transform .2s ease;
  visibility: hidden;
}
.plan-search-ai-drawer.open { transform: translateX(0); visibility: visible; }
.plan-search-ai-header {
  display: flex;
  min-height: 70px;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #3c434a;
  background: #1d2327;
}
.plan-search-ai-header .eyebrow { margin-bottom: 1px; color: #a7aaad; }
.plan-search-ai-header h2 { margin: 0; color: #fff; font-size: 14px; }
.plan-search-ai-mark { display: inline-flex; color: #72aee6; }
.plan-search-ai-mark svg { width: 21px; height: 21px; fill: currentColor; }
.plan-search-ai-close {
  margin-left: auto;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #a7aaad;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}
.plan-search-ai-close:hover, .plan-search-ai-close:focus-visible { color: #fff; outline: 0; }
.plan-search-ai-body { display: flex; min-height: 0; flex: 1; flex-direction: column; overflow-y: auto; }
.plan-search-ai-context { display: flex; flex-direction: column; gap: 2px; padding: 11px 16px; border-bottom: 1px solid #3c434a; background: #23282d; }
.plan-search-ai-context strong { color: #f0f0f1; font-size: 10px; text-transform: uppercase; }
.plan-search-ai-context span { color: #a7aaad; font-size: 11px; }
.plan-search-ai-messages { display: grid; gap: 10px; padding: 16px; }
.plan-search-ai-message { width: fit-content; max-width: 92%; padding: 9px 10px; border-left: 2px solid #72aee6; background: #23282d; color: #f0f0f1; font-size: 12px; line-height: 1.5; white-space: pre-wrap; }
.plan-search-ai-message.user { margin-left: auto; border-right: 2px solid #8c8f94; border-left: 0; background: #2c3338; color: #fff; }
.plan-search-ai-message.loading { color: #a7aaad; }
.plan-search-ai-examples { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 16px; }
.plan-search-ai-examples button { padding: 5px 8px; border: 1px solid #50575e; border-radius: 2px; background: #23282d; color: #c3c4c7; cursor: pointer; font-size: 10px; }
.plan-search-ai-examples button:hover, .plan-search-ai-examples button:focus-visible { border-color: #72aee6; color: #fff; outline: 0; }
.plan-search-ai-form { display: grid; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid #3c434a; background: #1d2327; }
.plan-search-ai-form textarea { width: 100%; resize: vertical; border-color: #50575e; background: #2c3338; color: #fff; }
.plan-search-ai-form textarea::placeholder { color: #a7aaad; }
.plan-search-ai-form textarea:focus { border-color: #72aee6; box-shadow: 0 0 0 1px #72aee6; outline: 0; }
.plan-search-ai-form .button { width: 100%; }
.plan-search-ai-form .button:disabled { opacity: .55; }
.plan-list { display: grid; gap: 7px; }
.plan-card { position: relative; min-height: 96px; padding: 17px 54px 17px 17px; border: 1px solid var(--border); border-left: 3px solid var(--blue); border-radius: var(--radius); background: #fff; box-shadow: 0 1px 1px rgba(0,0,0,.035); cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.plan-card:hover, .plan-card:focus-visible { border-color: #8c8f94; border-left-color: var(--blue-dark); box-shadow: 0 2px 5px rgba(0,0,0,.07); outline: 0; }
.plan-card.expanded { border-left-color: var(--blue-dark); box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.plan-card.sanctioned { border-left-color: var(--red); }
.compare-check { position: absolute; top: 7px; right: 9px; display: flex; align-items: center; gap: 4px; color: var(--text-faint); font-size: 9px; font-weight: 400; }
.compare-check input { width: 14px; min-height: 14px; margin: 0; }
.plan-ai-trigger {
  position: absolute;
  top: 29px;
  right: 8px;
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border: 1px solid #72aee6;
  border-radius: 2px;
  background: #fff;
  color: var(--blue);
  cursor: pointer;
  font-size: 9px;
  font-weight: 600;
}
.plan-ai-trigger:hover, .plan-ai-trigger:focus-visible { border-color: var(--blue-dark); background: var(--blue-soft); color: var(--blue-dark); outline: 0; }
.plan-ai-trigger svg { width: 13px; height: 13px; fill: currentColor; }
.plan-ai-panel {
  width: min(620px, 100%);
  margin: 14px 0 2px auto;
  overflow: hidden;
  border: 1px solid #3c434a;
  border-radius: 3px;
  background: #151b20;
  color: #f0f0f1;
  cursor: default;
  box-shadow: 0 2px 8px rgba(29, 35, 39, .16);
}
.plan-ai-panel[hidden] { display: none; }
.plan-ai-header { display: flex; min-height: 34px; align-items: center; gap: 7px; padding: 6px 9px; border-bottom: 1px solid #3c434a; background: #1d2327; }
.plan-ai-header strong { font-size: 10px; font-weight: 600; }
.plan-ai-mark { display: inline-flex; color: #72aee6; }
.plan-ai-mark svg { width: 14px; height: 14px; fill: currentColor; }
.plan-ai-close { margin-left: auto; padding: 0 3px; border: 0; background: transparent; color: #a7aaad; cursor: pointer; font-size: 18px; line-height: 1; }
.plan-ai-close:hover, .plan-ai-close:focus-visible { color: #fff; outline: 0; }
.plan-ai-messages { display: grid; max-height: 210px; gap: 8px; padding: 10px; overflow-y: auto; }
.plan-ai-message { width: fit-content; max-width: 92%; padding: 7px 8px; border-left: 2px solid #72aee6; background: #23282d; color: #f0f0f1; font-size: 11px; line-height: 1.45; white-space: pre-wrap; }
.plan-ai-message.user { margin-left: auto; border-right: 2px solid #8c8f94; border-left: 0; background: #2c3338; color: #fff; }
.plan-ai-message.loading { color: #a7aaad; }
.plan-ai-caret { display: inline-block; width: 1px; height: 12px; margin-left: 2px; background: #72aee6; vertical-align: -2px; animation: plan-ai-caret 1s steps(1) infinite; }
.plan-ai-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; padding: 8px; border-top: 1px solid #3c434a; background: #1d2327; }
.plan-ai-form input { min-height: 31px; border-color: #50575e; background: #2c3338; color: #fff; }
.plan-ai-form input::placeholder { color: #a7aaad; }
.plan-ai-form input:focus { border-color: #72aee6; box-shadow: 0 0 0 1px #72aee6; }
.plan-ai-form button { min-width: 54px; min-height: 31px; padding: 4px 10px; border: 1px solid var(--blue); border-radius: 2px; background: var(--blue); color: #fff; cursor: pointer; font-size: 10px; font-weight: 600; }
.plan-ai-form button:hover, .plan-ai-form button:focus-visible { border-color: #72aee6; background: var(--blue-dark); outline: 0; }
.plan-ai-form button:disabled { cursor: default; opacity: .55; }
@keyframes plan-ai-caret { 0%, 48% { opacity: 1; } 49%, 100% { opacity: 0; } }
.plan-card-summary { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(280px, .9fr); gap: 24px; align-items: center; min-height: 60px; }
.plan-identity { display: flex; min-width: 0; align-items: center; gap: 14px; }
.plan-carrier-logo { display: flex; width: 76px; height: 48px; flex: 0 0 76px; align-items: center; justify-content: center; overflow: hidden; border: 0; background: transparent; }
.plan-carrier-logo img { display: block; max-width: 72px; max-height: 44px; object-fit: contain; }
.plan-identity h3 { margin-bottom: 2px; font-size: 13px; font-weight: 600; }
.plan-identity p { margin-bottom: 0; color: var(--text-faint); font-size: 10px; }
.plan-identity .plan-sanction-warning { margin-top: 4px; color: var(--red); font-weight: 600; }
.carrier-logo-text { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border: 1px solid var(--border-light); border-radius: 2px; background: #f6f7f7; color: #3c434a; font-size: 11px; font-weight: 600; }
.carrier-logo-text.large { width: 52px; height: 52px; font-size: 14px; }
.plan-facts { display: grid; gap: 12px; margin: 0; }
.plan-facts-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plan-facts-details { grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 15px 0 1px; border-top: 1px solid var(--border-light); }
.plan-facts-details .medicaid-eligibility { grid-column: 1 / -1; padding-top: 11px; border-top: 1px solid var(--border-light); }
.plan-facts dt { color: var(--text-faint); font-size: 8px; font-weight: 600; text-transform: uppercase; }
.plan-facts dd { margin: 3px 0 0; font-size: 12px; font-weight: 600; }
.plan-card-expanded { margin-top: 15px; }
.plan-card-expanded[hidden] { display: none; }
.plan-card-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; padding-top: 14px; }
.plan-card-actions .button { min-height: 32px; padding: 6px 9px; font-size: 10px; text-align: center; }
.plan-card-toggle { position: absolute; right: 13px; bottom: 12px; display: grid; width: 30px; min-height: 30px; place-items: center; padding: 0; border: 0; border-radius: 2px; background: transparent; color: var(--blue); cursor: pointer; }
.plan-card-toggle:hover, .plan-card-toggle:focus-visible { background: var(--blue-soft); outline: 1px solid #72aee6; }
.plan-card-toggle svg { width: 20px; height: 20px; fill: currentColor; transition: transform .15s ease; }
.plan-card.expanded .plan-card-toggle svg { transform: rotate(180deg); }
.stars { color: #dba617; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 17px 0; font-size: 11px; }

/* Client provider drawer */
.plan-context-actions { display: flex; justify-content: flex-end; gap: 7px; margin: 0 0 7px; }
.doctors-button svg, .medications-button svg, .provider-search-form .button svg { width: 15px; height: 15px; fill: currentColor; }
.medication-search-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.medication-search-form .button { grid-column: auto; white-space: nowrap; }
.provider-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(29, 35, 39, .38);
  opacity: 0;
  transition: opacity .18s ease;
}
.provider-drawer-backdrop.open { opacity: 1; }
.provider-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 81;
  display: flex;
  width: min(500px, 100vw);
  height: 100vh;
  flex-direction: column;
  border-left: 1px solid #8c8f94;
  background: #fff;
  box-shadow: -8px 0 24px rgba(29, 35, 39, .18);
  transform: translateX(102%);
  transition: transform .2s ease;
  visibility: hidden;
}
.provider-drawer.open { transform: translateX(0); visibility: visible; }
.provider-drawer-header {
  display: flex;
  min-height: 86px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-light);
  background: #f6f7f7;
}
.provider-drawer-header .eyebrow { color: var(--blue-dark); }
.provider-drawer-header h2 { margin: 0 0 2px; font-size: 19px; font-weight: 500; }
.provider-drawer-header p:last-child { margin: 0; color: var(--text-faint); font-size: 10px; }
.provider-drawer-close, .provider-remove-button {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
}
.provider-drawer-close:hover { border-color: var(--border); background: #fff; color: var(--text); }
.provider-drawer-close svg { width: 18px; height: 18px; fill: currentColor; }
.provider-drawer-body { flex: 1; min-height: 0; overflow-y: auto; }
.provider-section { padding: 18px 20px; border-bottom: 1px solid var(--border-light); }
.provider-search-section {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #fff;
  box-shadow: 0 2px 5px rgba(29, 35, 39, .08);
}
.provider-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.provider-section-heading h3 { margin: 0 0 2px; font-size: 13px; }
.provider-section-heading p { margin: 0; color: var(--text-faint); font-size: 10px; }
.provider-empty { margin: 0; padding: 13px; border: 1px dashed var(--border); background: #f9f9f9; color: var(--text-faint); font-size: 11px; text-align: center; }
.saved-doctor-list { display: grid; gap: 8px; }
.provider-result-list { display: none; }
.provider-result-list:not(:empty) {
  display: grid;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  background: #f6f7f7;
}
.saved-doctor-card, .provider-result-card { padding: 12px; border: 1px solid var(--border-light); border-left: 3px solid var(--blue); background: #fff; }
.provider-result-card { border-left-color: #8c8f94; }
.provider-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.provider-card-heading > div { display: flex; min-width: 0; flex-direction: column; }
.provider-card-heading strong { color: var(--text); font-size: 12px; }
.provider-card-heading span { margin-top: 2px; color: var(--text-soft); font-size: 10px; }
.saved-doctor-card p, .provider-result-card p { margin: 8px 0; color: var(--text-soft); font-size: 10px; line-height: 1.5; }
.provider-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--text-faint); font-size: 9px; }
.provider-result-card .provider-card-meta { margin-bottom: 9px; }
.provider-remove-button { width: 26px; height: 26px; }
.provider-remove-button:hover { border-color: #efb5b5; background: var(--red-soft); color: var(--red); }
.provider-remove-button:disabled { cursor: wait; opacity: .55; }
.provider-remove-button svg { width: 15px; height: 15px; fill: currentColor; }
.provider-search-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.provider-search-form label { display: block; }
.provider-search-form input { margin-top: 4px; }
.provider-search-form .button { grid-column: 1 / -1; }
.provider-search-status { min-height: 22px; padding: 11px 0 3px; color: var(--text-faint); font-size: 10px; }
.provider-search-status.error { color: var(--red); }
.provider-result-card .button { width: 100%; min-height: 29px; font-size: 10px; }
.provider-drawer-footer { padding: 11px 20px; border-top: 1px solid var(--border-light); background: #f6f7f7; color: var(--text-faint); font-size: 9px; line-height: 1.45; }
body.provider-drawer-open { overflow: hidden; }

/* Detail and cases */
.plan-detail-hero, .case-summary { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; padding: 14px 16px; border: 1px solid var(--border); border-left: 4px solid var(--blue); border-radius: var(--radius); background: #fff; box-shadow: 0 1px 1px rgba(0,0,0,.04); }
.plan-detail-hero h2, .case-summary h2 { margin-bottom: 2px; font-size: 18px; font-weight: 400; }
.plan-detail-hero p, .case-summary p { margin-bottom: 3px; color: var(--text-faint); }
.plan-detail-hero .mono { color: var(--text-faint); font-size: 10px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.detail-main, .detail-side { display: grid; gap: 12px; }
.sticky-panel { position: sticky; top: 14px; }
#save-plan-form label { display: block; margin-top: 9px; }
#save-plan-form label:first-of-type { margin-top: 0; }
#save-plan-form .button { margin-top: 9px; }
.definition-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; border: 1px solid var(--border-light); }
.definition-grid div { min-height: 67px; padding: 10px; border-right: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.definition-grid div:nth-child(3n) { border-right: 0; }
.definition-grid dt, .stacked-definition dt, .summary-inline dt { color: var(--text-faint); font-size: 8px; font-weight: 600; text-transform: uppercase; }
.definition-grid dd, .stacked-definition dd, .summary-inline dd { margin: 4px 0 0; font-size: 11px; font-weight: 500; }
.definition-grid .wide { grid-column: span 2; }
.area-details summary { color: var(--blue); cursor: pointer; font-size: 11px; }
.area-grid { display: grid; max-height: 260px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 10px; overflow: auto; }
.area-grid span { padding: 5px 6px; border: 1px solid #eee; background: #f6f7f7; font-size: 9px; }
.count-badge { padding: 2px 6px; border: 1px solid var(--border-light); background: #f6f7f7; color: var(--text-faint); font-size: 9px; }
.source-card { font-size: 11px; }
.summary-inline { display: grid; min-width: 280px; grid-template-columns: repeat(2, 1fr); gap: 13px; margin: 0; }
.stacked-definition { display: grid; gap: 0; margin: 12px 0 0; }
.stacked-definition div { padding: 9px 0; border-bottom: 1px solid var(--border-light); }
.saved-plan-list { display: grid; gap: 6px; }
.saved-plan { display: flex; align-items: center; gap: 9px; padding: 9px; border: 1px solid var(--border-light); background: #fff; }
.saved-plan h3 { margin: 3px 0 2px; }
.saved-plan p { margin-bottom: 0; color: var(--text-faint); font-size: 10px; }
.saved-plan.current-plan { border-left: 3px solid var(--blue); background: #fff; }
.saved-plan.past-plan { border-left: 3px solid #8c8f94; background: #f6f7f7; }
.panel-subsection-header { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border-light); }
.panel-subsection-header .eyebrow { margin: 0; }
.panel-subsection-header h2 { margin: 0; font-size: 13px; }
.panel-subsection-header .pill { margin-left: auto; }
.plan-history-list { margin-top: 9px; }
.sensitive-field-list { display: grid; margin-top: 10px; border: 1px solid var(--border-light); }
.sensitive-field-row { display: flex; min-height: 58px; align-items: center; gap: 10px; padding: 8px 9px; border-bottom: 1px solid var(--border-light); }
.sensitive-field-row:last-child { border-bottom: 0; }
.sensitive-field-row .grow { display: flex; flex-direction: column; gap: 3px; }
.sensitive-field-row small { color: var(--text-faint); font-size: 9px; }
.sensitive-field-row strong { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 11px; font-weight: 600; letter-spacing: .025em; }
.sensitive-reveal-button { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text-faint); cursor: pointer; }
.sensitive-reveal-button:hover { background: var(--blue-soft); color: var(--blue-dark); }
.sensitive-reveal-button:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.sensitive-reveal-button:disabled { cursor: wait; opacity: .55; }
.visibility-icon { grid-area: 1 / 1; width: 18px; height: 18px; }

/* Forms and data tables */
.form-layout { display: grid; gap: 12px; }
.form-section { max-width: 1050px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.field.wide { grid-column: 1 / -1; }
.form-actions { display: flex; max-width: 1050px; justify-content: flex-end; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 7px 9px; border-bottom: 1px solid var(--border); background: #f6f7f7; color: #3c434a; font-size: 9px; font-weight: 600; text-align: left; text-transform: uppercase; }
.data-table td { padding: 9px; border-bottom: 1px solid var(--border-light); font-size: 11px; vertical-align: middle; }
.data-table td > small { display: block; margin-top: 2px; color: var(--text-faint); font-size: 9px; }
.data-table tr:last-child td { border-bottom: 0; }
.clickable-row { cursor: pointer; }
.clickable-row:hover td { background: var(--blue-soft); }
.hash { display: block; max-width: 125px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.error-text { color: var(--red) !important; }
.admin-users { align-items: start; }
.client-list-header { align-items: flex-end; }
.client-list-search { display: grid; grid-template-columns: minmax(240px, 360px) auto auto; align-items: end; gap: 6px; }
.client-list-search label { margin: 0; }
.client-case-table th:last-child, .client-case-table td:last-child { width: 230px; text-align: right; }
.client-case-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.client-import-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr); gap: 16px; align-items: start; }
.client-import-panel .stacked-form { max-width: 650px; }
.client-import-panel input[type="file"] { min-height: 40px; padding: 7px; }
.client-import-panel .button[type="submit"] { width: max-content; }
.client-import-notice { margin: 0; }
.client-import-fields > p:not(.eyebrow) { margin-bottom: 11px; color: var(--text-soft); font-size: 11px; }
.import-field-list { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.import-field-list code { padding: 3px 5px; border: 1px solid var(--border-light); border-radius: 2px; background: #f6f7f7; color: #3c434a; font-size: 9px; }
.client-import-fields .import-zip-note { margin-bottom: 0; padding-top: 11px; border-top: 1px solid var(--border-light); line-height: 1.55; }
.import-results { margin-top: 16px; }
.import-message-group { margin-top: 12px; padding: 10px 12px; border-left: 4px solid var(--border); background: #f6f7f7; }
.import-message-group h3 { margin-bottom: 6px; }
.import-message-group ul { max-height: 260px; margin: 0; padding-left: 19px; overflow: auto; }
.import-message-group li { margin: 3px 0; font-size: 10px; }
.import-errors { border-left-color: var(--red); background: var(--red-soft); }
.import-warnings { border-left-color: #dba617; background: var(--amber-soft); }
.import-clean-result { margin: 0; color: var(--green); }
.integration-settings-layout { align-items: start; }
.integration-settings-panel { max-width: 820px; }
.crm-settings-form { margin-top: 16px; }
.integration-form-actions { justify-content: flex-start; }
.disconnect-integration-form { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border-light); }
.integration-summary-panel > p:not(.eyebrow) { color: var(--text-soft); font-size: 11px; line-height: 1.6; }
.integration-security-notice { margin: 16px 0 0; }
.crm-push-status { margin-top: 14px; }
.crm-push-status p { margin: 4px 0 0; color: var(--text-faint); font-size: 10px; }
.carrier-access-panel { padding-bottom: 12px; }
.carrier-access-header { align-items: center; }
.carrier-access-tools { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.carrier-access-tools label { width: min(420px, 100%); }
.carrier-access-actions { display: flex; gap: 6px; }
.carrier-access-table-wrap { max-height: 58vh; border: 1px solid var(--border-light); }
.carrier-access-table thead { position: sticky; top: 0; z-index: 1; }
.carrier-access-table th:first-child, .carrier-access-table td:first-child { width: 70px; text-align: center; }
.carrier-access-table th:last-child, .carrier-access-table td:last-child { width: 120px; text-align: right; }
.carrier-access-table input[type="checkbox"] { width: 16px; min-height: 16px; margin: 0; }
.carrier-access-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; }

/* Comparison */
.compare-scroll { overflow-x: auto; padding: 0; }
.compare-table { width: 100%; min-width: 720px; border-collapse: collapse; table-layout: fixed; }
.compare-table th, .compare-table td { padding: 9px 11px; border-right: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); text-align: left; vertical-align: top; }
.compare-table th:first-child { width: 210px; background: #f6f7f7; }
.compare-table thead th { background: #fff; }
.compare-table thead th:not(:first-child) a { display: block; margin: 6px 0 2px; color: var(--text); font-size: 12px; }
.compare-table thead small { display: block; color: var(--text-faint); font-size: 9px; font-weight: 400; }
.compare-table tbody th { color: #3c434a; font-size: 10px; font-weight: 600; }
.compare-table td { font-size: 11px; font-weight: 500; }

/* Public MedicareZulu landing page */
.marketing-body {
  min-height: 100vh;
  background: #fff;
  color: #17212b;
  font-size: 15px;
}
.landing-container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.landing-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #dfe3e7;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}
.landing-nav { display: flex; min-height: 68px; align-items: center; gap: 30px; }
.landing-brand { color: #111820; font-size: 19px; font-weight: 700; letter-spacing: -.025em; }
.landing-brand:hover { color: #111820; text-decoration: none; }
.landing-nav-links { display: flex; align-items: center; gap: 27px; margin-left: 30px; }
.landing-nav-links a, .landing-text-link { color: #3d4b57; font-size: 13px; font-weight: 600; }
.landing-nav-links a:hover, .landing-text-link:hover { color: var(--blue); text-decoration: none; }
.landing-nav-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.landing-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 17px;
  border: 1px solid #2b7fbe;
  border-radius: 3px;
  background: #2b7fbe;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 1px 0 #135e96;
}
.landing-button:hover { border-color: #135e96; background: #135e96; color: #fff; text-decoration: none; }
.landing-button-small { min-height: 36px; padding: 7px 13px; font-size: 12px; }
.landing-button-large { min-height: 48px; padding: 12px 20px; font-size: 14px; }
.landing-button-ghost { border-color: #61717f; background: transparent; color: #eef5fa; box-shadow: none; }
.landing-button-ghost:hover { border-color: #eef5fa; background: rgba(255,255,255,.07); color: #fff; }
.landing-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 88px;
  background: linear-gradient(135deg, #111820 0%, #19242d 58%, #10161c 100%);
  color: #fff;
}
.landing-hero::before {
  position: absolute;
  top: -250px;
  left: 48%;
  width: 700px;
  height: 700px;
  border: 1px solid rgba(114,174,230,.18);
  border-radius: 50%;
  content: "";
}
.landing-hero::after {
  position: absolute;
  right: -160px;
  bottom: -260px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(114,174,230,.12);
  border-radius: 50%;
  content: "";
}
.landing-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .83fr) minmax(560px, 1.17fr); align-items: center; gap: 58px; }
.landing-kicker { margin-bottom: 14px; color: #2b7fbe; font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.landing-hero .landing-kicker { color: #72aee6; }
.landing-hero h1 { max-width: 620px; margin: 0; color: #fff; font-size: clamp(39px, 4.5vw, 61px); font-weight: 700; letter-spacing: -.045em; line-height: 1.04; }
.landing-lead { max-width: 590px; margin: 25px 0 0; color: #c5d0d9; font-size: 17px; line-height: 1.68; }
.landing-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 31px; }
.landing-trust-list { display: flex; flex-wrap: wrap; gap: 16px 22px; margin: 28px 0 0; padding: 0; color: #aab8c3; font-size: 11px; list-style: none; }
.landing-trust-list li { display: flex; align-items: center; gap: 7px; }
.landing-trust-list span { color: #72aee6; font-weight: 800; }
.landing-product-frame { overflow: hidden; border: 1px solid #475663; border-radius: 5px; background: #eef0f2; box-shadow: 0 28px 70px rgba(0,0,0,.38); transform: rotate(.35deg); }
.landing-product-topbar { display: flex; min-height: 61px; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 14px; border-bottom: 1px solid #dcdcde; background: #fff; color: #1d2327; }
.landing-product-topbar > div { display: flex; flex-direction: column; }
.landing-product-topbar small { color: #646970; font-size: 8px; }
.landing-product-topbar strong { font-size: 16px; font-weight: 500; }
.landing-ai-button { display: inline-flex; min-height: 30px; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 2px; background: var(--blue); color: #fff; font-size: 9px; font-weight: 700; }
.landing-ai-button svg { width: 12px; height: 12px; fill: currentColor; }
.landing-product-body { padding: 13px; }
.landing-search-demo { display: grid; grid-template-columns: .7fr 1.3fr 1.1fr auto; gap: 7px; padding: 10px; border: 1px solid #c3c4c7; background: #fff; }
.landing-search-demo > div { display: flex; min-width: 0; min-height: 47px; flex-direction: column; gap: 5px; padding: 5px 7px; border: 1px solid #8c8f94; background: #fff; }
.landing-search-demo small, .landing-results-demo-head small, .landing-demo-fact small { color: #646970; font-size: 7px; text-transform: uppercase; }
.landing-search-demo strong { overflow: hidden; color: #2c3338; font-size: 9px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.landing-search-demo > span { display: inline-flex; min-height: 34px; align-self: end; align-items: center; padding: 6px 9px; border-radius: 2px; background: var(--blue); color: #fff; font-size: 8px; font-weight: 700; }
.landing-ai-filter-demo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 9px; padding: 8px 10px; border: 1px solid #dcdcde; border-left: 3px solid var(--blue); background: #fff; color: #2c3338; }
.landing-ai-filter-demo > div { display: flex; flex-direction: column; }
.landing-ai-filter-demo strong { font-size: 8px; }
.landing-ai-filter-demo small { color: #50575e; font-size: 8px; }
.landing-ai-filter-demo > span { color: #008a20; font-size: 7px; font-weight: 700; text-transform: uppercase; }
.landing-results-demo-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 12px 1px 7px; color: #1d2327; }
.landing-results-demo-head > div { display: flex; flex-direction: column; }
.landing-results-demo-head strong { font-size: 10px; font-weight: 500; }
.landing-results-demo-head > span { color: var(--blue); font-size: 8px; }
.landing-plan-demo { position: relative; display: grid; min-height: 72px; grid-template-columns: 40px minmax(180px, 1fr) 83px 70px; align-items: center; gap: 10px; margin-top: 6px; padding: 10px 65px 10px 11px; border: 1px solid #c3c4c7; border-left: 3px solid var(--blue); background: #fff; color: #1d2327; }
.landing-demo-logo { display: grid; width: 36px; height: 36px; place-items: center; background: #f0ece2; color: #8e24aa; font-size: 18px; font-weight: 800; }
.landing-demo-logo-alt { background: #eef1f8; color: #1f3c88; font-family: Georgia, serif; font-size: 16px; }
.landing-demo-name { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.landing-demo-name strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.landing-demo-name small { color: #646970; font-size: 7px; }
.landing-demo-fact { display: flex; flex-direction: column; gap: 3px; }
.landing-demo-fact strong { font-size: 9px; }
.landing-demo-ask { position: absolute; top: 25px; right: 8px; padding: 4px 6px; border: 1px solid #72aee6; color: var(--blue); font-size: 7px; font-weight: 700; }
.landing-proof { border-bottom: 1px solid #e1e5e8; background: #fff; }
.landing-proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.landing-proof-grid > div { display: flex; min-height: 112px; flex-direction: column; justify-content: center; padding: 20px 27px; border-right: 1px solid #e1e5e8; }
.landing-proof-grid > div:first-child { border-left: 1px solid #e1e5e8; }
.landing-proof-grid strong { margin-bottom: 5px; color: #17212b; font-size: 17px; }
.landing-proof-grid span { color: #66737e; font-size: 12px; }
.landing-section { padding: 102px 0; background: #fff; }
.landing-section-heading { max-width: 720px; margin: 0 auto 49px; text-align: center; }
.landing-section-heading h2, .landing-agency-copy h2, .landing-final-cta h2 { margin: 0; color: #17212b; font-size: clamp(31px, 3.4vw, 45px); font-weight: 700; letter-spacing: -.035em; line-height: 1.13; }
.landing-section-heading > p:last-child { max-width: 650px; margin: 17px auto 0; color: #66737e; font-size: 16px; line-height: 1.65; }
.landing-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #dfe3e7; border-left: 1px solid #dfe3e7; }
.landing-feature-card { min-height: 255px; padding: 32px; border-right: 1px solid #dfe3e7; border-bottom: 1px solid #dfe3e7; background: #fff; }
.landing-feature-card:hover { background: #f8fafb; }
.landing-feature-icon { display: grid; width: 39px; height: 39px; margin-bottom: 25px; place-items: center; border: 1px solid #acd1ec; background: #f0f6fc; color: var(--blue); font-size: 20px; font-weight: 700; }
.landing-feature-card h3 { margin: 0 0 11px; color: #17212b; font-size: 17px; }
.landing-feature-card p { margin: 0; color: #66737e; font-size: 13px; line-height: 1.7; }
.landing-workflow-section { border-top: 1px solid #e1e5e8; border-bottom: 1px solid #e1e5e8; background: #f4f6f8; }
.landing-workflow-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(480px, 1.15fr); gap: 95px; align-items: start; }
.landing-section-heading-left { margin: 0; text-align: left; }
.landing-section-heading-left > p:last-of-type { margin-right: 0; margin-left: 0; }
.landing-inline-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 25px; color: var(--blue); font-size: 13px; font-weight: 700; }
.landing-inline-link:hover { color: var(--blue-dark); text-decoration: none; }
.landing-step-list { margin: 0; padding: 0; border-top: 1px solid #cdd3d8; list-style: none; }
.landing-step-list li { display: grid; grid-template-columns: 55px 1fr; gap: 22px; padding: 27px 0; border-bottom: 1px solid #cdd3d8; }
.landing-step-list li > span { color: var(--blue); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 800; }
.landing-step-list strong { display: block; margin-bottom: 6px; color: #17212b; font-size: 17px; }
.landing-step-list p { margin: 0; color: #66737e; font-size: 13px; line-height: 1.65; }
.landing-agency-section { background: #fff; }
.landing-agency-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(430px, .9fr); align-items: center; gap: 90px; }
.landing-agency-copy > p:not(.landing-kicker) { margin: 21px 0 0; color: #66737e; font-size: 16px; line-height: 1.68; }
.landing-agency-copy ul { display: grid; gap: 11px; margin: 25px 0 0; padding: 0; color: #33424f; font-size: 13px; list-style: none; }
.landing-agency-copy li { position: relative; padding-left: 22px; }
.landing-agency-copy li::before { position: absolute; top: 1px; left: 0; color: var(--blue); font-weight: 800; content: "✓"; }
.landing-agency-panel { overflow: hidden; border: 1px solid #c8ced3; border-top: 3px solid var(--blue); background: #fff; box-shadow: 0 24px 50px rgba(23,33,43,.12); }
.landing-agency-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid #dfe3e7; background: #f6f7f7; }
.landing-agency-panel-head span { color: #17212b; font-size: 12px; font-weight: 700; }
.landing-agency-panel-head small { color: #66737e; font-size: 9px; }
.landing-agency-row { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid #e6e9eb; }
.landing-agency-avatar { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: #1d2327; color: #fff; font-size: 10px; font-style: normal; font-weight: 700; }
.landing-agency-avatar-agent { background: #646970; }
.landing-agency-row > div { display: flex; flex-direction: column; }
.landing-agency-row strong { color: #17212b; font-size: 12px; }
.landing-agency-row small { color: #66737e; font-size: 9px; }
.landing-agency-row em { padding: 3px 7px; border: 1px solid #a7d7ad; background: #edfaef; color: #008a20; font-size: 8px; font-style: normal; font-weight: 700; }
.landing-agency-control { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 16px; background: #f8fafb; }
.landing-agency-control > div { display: flex; flex-direction: column; }
.landing-agency-control strong { color: #17212b; font-size: 11px; }
.landing-agency-control small { color: #66737e; font-size: 9px; }
.landing-agency-control > span { color: var(--blue); font-size: 9px; font-weight: 700; }
.landing-final-cta { padding: 70px 0; background: #17212b; color: #fff; }
.landing-final-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 55px; }
.landing-final-cta h2 { color: #fff; font-size: clamp(29px, 3.1vw, 41px); }
.landing-final-actions { display: flex; min-width: 245px; align-items: center; flex-direction: column; gap: 14px; }
.landing-text-link-light { color: #c5d0d9; font-size: 11px; }
.landing-text-link-light:hover { color: #fff; }
.landing-footer { padding: 28px 0; border-top: 1px solid #dfe3e7; background: #fff; }
.landing-footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 35px; }
.landing-footer strong { color: #17212b; font-size: 15px; }
.landing-footer p { max-width: 670px; margin: 0; color: #7a858e; font-size: 9px; line-height: 1.5; }
.landing-footer-inner > div { display: flex; gap: 18px; }
.landing-footer a { font-size: 10px; font-weight: 600; }

@media (max-width: 1040px) {
  .landing-hero { padding-top: 72px; }
  .landing-hero-grid { grid-template-columns: 1fr; }
  .landing-hero-copy { max-width: 740px; }
  .landing-product-frame { width: min(760px, 100%); transform: none; }
  .landing-feature-card { padding: 27px; }
  .landing-workflow-layout, .landing-agency-layout { gap: 55px; }
}

@media (max-width: 820px) {
  .landing-nav-links { display: none; }
  .landing-proof-grid { grid-template-columns: repeat(2, 1fr); }
  .landing-proof-grid > div:nth-child(3) { border-left: 1px solid #e1e5e8; }
  .landing-proof-grid > div:nth-child(-n+2) { border-bottom: 1px solid #e1e5e8; }
  .landing-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .landing-workflow-layout, .landing-agency-layout { grid-template-columns: 1fr; }
  .landing-final-cta-inner { align-items: flex-start; flex-direction: column; }
  .landing-final-actions { align-items: flex-start; }
  .landing-footer-inner { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 620px) {
  .landing-container { width: min(1180px, calc(100% - 28px)); }
  .landing-header { position: static; }
  .landing-nav { min-height: 61px; gap: 15px; }
  .landing-brand { font-size: 16px; }
  .landing-nav-actions { gap: 11px; }
  .landing-nav-actions .landing-text-link { display: none; }
  .landing-button-small { min-height: 34px; padding: 6px 10px; }
  .landing-hero { padding: 58px 0 60px; }
  .landing-hero-grid { gap: 42px; }
  .landing-hero h1 { font-size: 39px; }
  .landing-lead { font-size: 15px; }
  .landing-hero-actions { align-items: stretch; flex-direction: column; }
  .landing-hero-actions .landing-button { width: 100%; }
  .landing-trust-list { align-items: flex-start; flex-direction: column; gap: 9px; }
  .landing-product-frame { overflow-x: auto; }
  .landing-product-topbar, .landing-product-body { min-width: 570px; }
  .landing-proof-grid, .landing-feature-grid { grid-template-columns: 1fr; }
  .landing-proof-grid > div { min-height: 92px; border-left: 1px solid #e1e5e8; border-bottom: 1px solid #e1e5e8; }
  .landing-section { padding: 72px 0; }
  .landing-section-heading { margin-bottom: 35px; }
  .landing-section-heading h2, .landing-agency-copy h2 { font-size: 32px; }
  .landing-feature-card { min-height: 0; }
  .landing-step-list li { grid-template-columns: 42px 1fr; gap: 12px; }
  .landing-agency-panel { overflow-x: auto; }
  .landing-agency-panel > * { min-width: 390px; }
  .landing-final-cta { padding: 55px 0; }
}

/* Refined public landing page: restrained insurance-software presentation */
.marketing-body { background: #fff; color: #1d2327; font-size: 14px; }
.landing-header { position: relative; border-bottom-color: #dcdcde; background: #fff; backdrop-filter: none; }
.landing-nav { min-height: 64px; }
.landing-brand { font-size: 18px; letter-spacing: -.015em; }
.landing-nav-links { margin-left: 42px; }
.landing-nav-links a, .landing-text-link { color: #50575e; font-size: 12px; font-weight: 600; }
.landing-button { border-radius: 2px; background: #2271b1; box-shadow: none; }
.landing-button:hover { background: #135e96; }
.landing-hero-refined { padding: 72px 0 78px; background: #f3f5f6; color: #1d2327; }
.landing-hero-refined::before, .landing-hero-refined::after { display: none; }
.landing-hero-grid-refined { grid-template-columns: minmax(360px, .76fr) minmax(570px, 1.24fr); gap: 68px; }
.landing-hero-copy-refined .landing-kicker { margin-bottom: 13px; color: #2271b1; font-size: 10px; letter-spacing: .075em; }
.landing-hero-copy-refined h1 { color: #1d2327; font-size: clamp(39px, 4vw, 52px); font-weight: 650; letter-spacing: -.035em; line-height: 1.08; }
.landing-hero-copy-refined .landing-lead { margin-top: 21px; color: #50575e; font-size: 16px; line-height: 1.65; }
.landing-hero-copy-refined .landing-hero-actions { margin-top: 27px; }
.landing-button-outline { border-color: #8c8f94; background: #fff; color: #2c3338; box-shadow: none; }
.landing-button-outline:hover { border-color: #50575e; background: #f6f7f7; color: #1d2327; }
.landing-hero-note { margin: 18px 0 0; color: #787c82; font-size: 10px; }
.landing-product-frame-refined { border-color: #b7bcc1; border-radius: 2px; box-shadow: 0 12px 30px rgba(29,35,39,.12); transform: none; }
.landing-product-frame-refined .landing-product-topbar { min-height: 58px; }
.landing-product-frame-refined .landing-product-body { background: #f0f0f1; }
.landing-product-frame-refined .landing-plan-demo { min-height: 69px; }
.landing-product-frame-refined .landing-demo-ask { background: #fff; }
.landing-data-strip { border-top: 1px solid #dcdcde; border-bottom: 1px solid #dcdcde; background: #fff; }
.landing-data-strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.landing-data-strip-grid > div { display: flex; min-height: 96px; flex-direction: column; justify-content: center; padding: 18px 28px; border-right: 1px solid #dcdcde; }
.landing-data-strip-grid > div:first-child { border-left: 1px solid #dcdcde; }
.landing-data-strip-grid strong { margin-bottom: 4px; color: #1d2327; font-size: 13px; }
.landing-data-strip-grid span { color: #646970; font-size: 10px; line-height: 1.45; }
.landing-product-section { padding: 88px 0 92px; }
.landing-simple-heading { display: grid; grid-template-columns: 130px minmax(0, 560px) minmax(260px, 1fr); align-items: start; gap: 32px; margin-bottom: 42px; }
.landing-simple-heading > span, .landing-section-label { padding-top: 7px; color: #2271b1; font-size: 10px; font-weight: 700; letter-spacing: .065em; text-transform: uppercase; }
.landing-simple-heading h2 { margin: 0; color: #1d2327; font-size: 34px; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
.landing-simple-heading p { margin: 5px 0 0; color: #646970; font-size: 13px; line-height: 1.7; }
.landing-capability-list { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid #c3c4c7; border-left: 1px solid #c3c4c7; }
.landing-capability-list article { display: grid; min-height: 176px; grid-template-columns: 38px 1fr; gap: 18px; padding: 29px; border-right: 1px solid #c3c4c7; border-bottom: 1px solid #c3c4c7; background: #fff; }
.landing-capability-list article > span { color: #787c82; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }
.landing-capability-list h3 { margin: 0 0 7px; color: #1d2327; font-size: 15px; font-weight: 600; }
.landing-capability-list p { margin: 0; color: #646970; font-size: 12px; line-height: 1.65; }
.landing-document-section { padding: 82px 0; background: #1d2327; color: #f0f0f1; }
.landing-document-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(440px, 1.05fr); align-items: start; gap: 90px; }
.landing-document-copy .landing-section-label { display: block; margin-bottom: 16px; padding: 0; color: #72aee6; }
.landing-document-copy h2 { margin: 0; color: #fff; font-size: 34px; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
.landing-document-copy p { margin: 19px 0 0; color: #c3c4c7; font-size: 13px; line-height: 1.75; }
.landing-document-process { border-top: 1px solid #50575e; }
.landing-document-process > div { display: grid; grid-template-columns: 35px 1fr; gap: 18px; padding: 19px 0; border-bottom: 1px solid #50575e; }
.landing-document-process > div > span { color: #72aee6; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }
.landing-document-process p { display: flex; margin: 0; flex-direction: column; gap: 4px; }
.landing-document-process strong { color: #f0f0f1; font-size: 12px; }
.landing-document-process small { color: #a7aaad; font-size: 10px; }
.landing-agency-section-refined { padding: 88px 0; background: #f6f7f7; }
.landing-agency-layout-refined { gap: 95px; }
.landing-agency-copy-refined .landing-section-label { display: block; margin-bottom: 15px; padding: 0; }
.landing-agency-copy-refined h2 { font-size: 34px; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
.landing-agency-copy-refined > p:not(.landing-kicker) { margin-top: 18px; font-size: 13px; line-height: 1.75; }
.landing-agency-copy-refined ul { font-size: 12px; }
.landing-agency-panel-refined { border-radius: 0; border-top-width: 2px; box-shadow: 0 8px 24px rgba(29,35,39,.08); }
.landing-final-cta-refined { padding: 56px 0; background: #fff; color: #1d2327; border-top: 1px solid #dcdcde; }
.landing-final-cta-refined .landing-section-label { display: block; margin-bottom: 8px; padding: 0; }
.landing-final-cta-refined h2 { color: #1d2327; font-size: 30px; font-weight: 600; letter-spacing: -.02em; }
.landing-final-actions-refined { min-width: 270px; align-items: flex-end; }
.landing-final-actions-refined .landing-text-link-light { color: #50575e; }
.landing-final-actions-refined .landing-text-link-light:hover { color: #2271b1; }
.landing-footer { background: #f6f7f7; }

@media (max-width: 1040px) {
  .landing-hero-grid-refined { grid-template-columns: 1fr; gap: 45px; }
  .landing-hero-copy-refined { max-width: 680px; }
  .landing-product-frame-refined { width: min(800px, 100%); }
  .landing-simple-heading { grid-template-columns: 100px 1fr; }
  .landing-simple-heading p { grid-column: 2; }
  .landing-document-layout { gap: 55px; }
}

@media (max-width: 760px) {
  .landing-data-strip-grid { grid-template-columns: 1fr; }
  .landing-data-strip-grid > div { min-height: 80px; border-bottom: 1px solid #dcdcde; border-left: 1px solid #dcdcde; }
  .landing-capability-list { grid-template-columns: 1fr; }
  .landing-simple-heading { grid-template-columns: 1fr; gap: 12px; }
  .landing-simple-heading p { grid-column: auto; }
  .landing-document-layout { grid-template-columns: 1fr; gap: 42px; }
  .landing-final-actions-refined { align-items: flex-start; }
}

@media (max-width: 620px) {
  .landing-hero-refined { padding: 50px 0 56px; }
  .landing-hero-copy-refined h1 { font-size: 37px; }
  .landing-product-section, .landing-agency-section-refined { padding: 67px 0; }
  .landing-document-section { padding: 62px 0; }
  .landing-simple-heading h2, .landing-document-copy h2, .landing-agency-copy-refined h2 { font-size: 29px; }
  .landing-capability-list article { min-height: 0; padding: 24px 20px; }
  .landing-final-cta-refined { padding: 47px 0; }
}

/* WordPress-like sign in */
.auth-body { display: grid; min-height: 100vh; place-items: center; padding: 30px 16px; background: #f0f0f1; }
.auth-shell { width: min(360px, 100%); }
.auth-brand { justify-content: center; margin-bottom: 18px; border: 0; color: var(--text); font-size: 18px; }
.auth-brand:hover { color: var(--text); }
.auth-card { padding: 24px; border: 1px solid var(--border); border-radius: 0; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.auth-card h1 { margin: 3px 0 5px; font-size: 21px; font-weight: 400; }
.auth-source { margin: 14px 0 0; color: var(--text-faint); font-size: 9px; text-align: center; }

@media (max-width: 1160px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-search { align-items: flex-start; flex-direction: column; gap: 10px; }
  .dashboard-search-form.dashboard-member-search-form { width: 100%; margin-left: 0; }
  .search-form { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
  .or-divider { display: none; }
  .advanced-filters { grid-column: 1 / -2; }
  .search-submit { grid-column: -2 / -1; }
  .plan-card-summary { grid-template-columns: minmax(240px, 1fr) minmax(250px, .8fr); }
  .plan-facts-details { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
  .sidebar { position: static; width: 100%; }
  .brand { min-height: 48px; }
  .nav { flex: none; flex-direction: row; overflow-x: auto; padding: 0; }
  .nav-link { white-space: nowrap; }
  .nav-link.active::after, .nav-section, .sidebar-user { display: none; }
  .app-main { margin-left: 0; }
  .topbar { padding: 11px 16px; }
  .content { padding: 16px; }
  .button.compare-button.is-sticky { top: 12px; right: 16px; }
  .two-column, .detail-layout, .client-import-layout { grid-template-columns: 1fr; }
  .dashboard-search { align-items: flex-start; flex-direction: column; gap: 10px; }
  .dashboard-search-form { min-width: 0; width: 100%; }
  .sticky-panel { position: static; }
  .definition-grid { grid-template-columns: repeat(2, 1fr); }
  .definition-grid div:nth-child(3n) { border-right: 1px solid var(--border-light); }
  .definition-grid div:nth-child(2n) { border-right: 0; }
  .search-form { grid-template-columns: repeat(2, 1fr); }
  .or-divider { display: none; }
  .advanced-filters, .search-submit { grid-column: 1 / -1; }
  .plan-card-summary { grid-template-columns: 1fr; gap: 13px; }
  .plan-card-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-card-actions .enroll-action, .plan-card-actions .details-action { grid-column: auto; }
  .client-list-header { align-items: stretch; flex-direction: column; }
  .client-list-search { width: 100%; grid-template-columns: minmax(180px, 1fr) auto auto; }
}

@media (max-width: 600px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .content { padding: 12px 9px 25px; }
  .metric-grid, .form-grid, .advanced-grid, .search-form, .definition-grid, .area-grid { grid-template-columns: 1fr; }
  .dashboard-search-form, .dashboard-search-form.dashboard-member-search-form { grid-template-columns: 1fr; }
  .definition-grid div { border-right: 0 !important; }
  .plan-facts-details { grid-template-columns: repeat(2, 1fr); }
  .plan-card-actions { grid-template-columns: 1fr; }
  .plan-ai-panel { width: 100%; }
  .plan-detail-hero, .case-summary { align-items: flex-start; flex-wrap: wrap; }
  .summary-inline { min-width: 100%; }
  .results-toolbar { align-items: flex-start; flex-direction: column; }
  .compare-button-slot { justify-content: flex-start; }
  .button.compare-button.is-sticky { right: 9px; }
  .geography-notice > div:first-child, .notice { flex-direction: column; }
  .carrier-access-tools { align-items: stretch; flex-direction: column; }
  .client-list-search { grid-template-columns: 1fr; }
  .provider-search-form { grid-template-columns: 1fr; }
  .provider-drawer { width: 100vw; }
  .plan-search-ai-drawer { width: 100vw; }
  .ai-filter-notice { align-items: stretch; }
  .ai-filter-notice > div span { white-space: normal; }
}

/* MedicareZulu agent RTS carrier management */
.rts-header { align-items: center; }
.rts-header-actions, .rts-actions, .rts-footer { display: flex; align-items: center; gap: 8px; }
.rts-user-email { margin: 4px 0 0; color: var(--text-faint); font-size: 11px; }
.rts-tools { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.rts-tools label { width: min(420px, 100%); }
.rts-table-wrap { max-height: 58vh; border: 1px solid var(--border-light); }
.rts-table th:first-child, .rts-table td:first-child { width: 70px; text-align: center; }
.rts-table th:last-child, .rts-table td:last-child { width: 120px; text-align: right; }
.rts-table input[type="checkbox"] { width: 16px; min-height: 16px; margin: 0; }
.rts-footer { justify-content: space-between; margin: 14px -16px -16px; padding: 11px 13px; border-top: 1px solid var(--border-light); }
.list-row .rts-user-button { flex: 0 0 auto; }
@media (max-width: 760px) {
  .rts-header, .rts-tools, .rts-footer { align-items: stretch; flex-direction: column; }
  .rts-header-actions { flex-wrap: wrap; }
}

/* MedicareZulu RTS at a glance */
.admin-users-rts-actions { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.rts-overview-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.rts-overview-summary article { display: flex; min-height: 76px; flex-direction: column; justify-content: center; padding: 12px 14px; border: 1px solid var(--border); background: #fff; }
.rts-overview-summary span { color: var(--text-faint); font-size: 10px; font-weight: 600; text-transform: uppercase; }
.rts-overview-summary strong { margin-top: 3px; font-size: 24px; font-weight: 500; }
.rts-overview-header { align-items: center; }
.rts-overview-tools { display: grid; grid-template-columns: minmax(220px, 1fr) 260px; gap: 12px; margin-bottom: 14px; }
.rts-agent-list { display: grid; gap: 12px; }
.rts-agent-card { border: 1px solid var(--border); background: #fff; }
.rts-agent-card > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-bottom: 1px solid var(--border-light); background: #f8f9fa; }
.rts-agent-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rts-agent-identity h3 { margin: 0; font-size: 14px; }
.rts-agent-identity p { margin: 2px 0 0; color: var(--text-faint); font-size: 10px; }
.rts-agent-progress { display: grid; grid-template-columns: auto auto auto; align-items: center; gap: 7px; text-align: right; }
.rts-agent-progress strong { font-size: 14px; }
.rts-agent-progress span { color: var(--text-faint); font-size: 10px; }
.rts-readiness-columns { display: grid; grid-template-columns: 1fr 1fr; }
.rts-readiness-columns > section { min-width: 0; padding: 12px 14px 14px; }
.rts-readiness-columns > section + section { border-left: 1px solid var(--border-light); }
.rts-readiness-columns h4 { display: flex; justify-content: space-between; margin: 0 0 9px; font-size: 11px; text-transform: uppercase; }
.rts-readiness-columns h4 span { color: var(--text-faint); }
.rts-carrier-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.rts-carrier-tag { display: inline-flex; padding: 3px 6px; border: 1px solid var(--border-light); border-radius: 2px; font-size: 10px; line-height: 1.25; }
.rts-carrier-tag.ready { border-color: #a7d7ad; background: var(--green-soft); color: var(--green); }
.rts-carrier-tag.not-ready { border-color: #dfc3c3; background: #fff7f7; color: #8a2424; }
.rts-empty-state { margin: 0; color: var(--text-faint); font-size: 11px; }
.rts-empty-state.complete { color: var(--green); }
@media (max-width: 800px) {
  .rts-overview-summary, .rts-overview-tools, .rts-readiness-columns { grid-template-columns: 1fr; }
  .rts-readiness-columns > section + section { border-top: 1px solid var(--border-light); border-left: 0; }
  .rts-agent-card > header { align-items: flex-start; flex-direction: column; }
  .rts-agent-progress { grid-template-columns: auto auto; text-align: left; }
  .rts-agent-progress .button { grid-column: 1 / -1; }
}

/* MedicareZulu plan-tile RTS status */
.plan-rts-tile {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
  position: relative;
}

.plan-rts-warning {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0.16rem 0.48rem;
  border: 1px solid #fca5a5;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.1;
}

.plan-rts-details {
  position: relative;
}

.plan-rts-details > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  min-height: 1.5rem;
  padding: 0.16rem 0.48rem;
  border: 1px solid #93c5fd;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  list-style: none;
  line-height: 1.1;
  user-select: none;
}

.plan-rts-details > summary::-webkit-details-marker {
  display: none;
}

.plan-rts-details > summary::after {
  content: "▾";
  font-size: 0.65rem;
}

.plan-rts-details[open] > summary::after {
  content: "▴";
}

.plan-rts-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.12rem;
  height: 1.12rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #1e40af;
  font-size: 0.66rem;
}

.plan-rts-dropdown {
  position: absolute;
  z-index: 60;
  top: calc(100% + 0.42rem);
  left: 0;
  width: min(22rem, 78vw);
  padding: 0.8rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.55rem;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
  color: #1f2937;
}

.plan-rts-dropdown > strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
}

.plan-rts-dropdown ul {
  display: grid;
  gap: 0.2rem;
  max-height: 15rem;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.plan-rts-dropdown li {
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr);
  align-items: center;
  gap: 0.48rem;
  padding: 0.38rem;
  border-radius: 0.35rem;
  background: #f8fafc;
}
.sidebar-brand-logo {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 190px;
  overflow: hidden;
}

.medicarezulu-sidebar-logo {
  display: block;
  width: 100%;
  max-width: 180px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.mz-white-label-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 190px;
}
.landing-brand-logo {
  display: block;
  width: 180px;
  max-width: 100%;
  height: 54px;
  object-fit: contain;
  object-position: left center;
}
.auth-brand-logo {
  display: block;
  width: 180px;
  max-width: 100%;
  height: 54px;
  object-fit: contain;
  object-position: left center;
}
.mz-white-label-brand img {
  display: block;
  max-width: 175px;
  max-height: 58px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.plan-rts-avatar {
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: #dbeafe;
  color: #1e40af;
  font-size: 0.75rem;
  font-weight: 800;
}

.plan-rts-dropdown li strong,
.plan-rts-dropdown li small {
  display: block;
  overflow-wrap: anywhere;
}

.plan-rts-dropdown li strong {
  font-size: 0.76rem;
}

.plan-rts-dropdown li small,
.plan-rts-dropdown p {
  margin: 0;
  color: #64748b;
  font-size: 0.7rem;
}

@media (max-width: 640px) {
  .plan-rts-dropdown {
    width: min(19rem, calc(100vw - 3rem));
  }
}

/* MedicareZulu retained client registry */
.registry-search-panel {
  display: grid;
  gap: 1rem;
}

.registry-search-panel .panel-header p:last-child {
  max-width: 760px;
  margin: 0.35rem 0 0;
  color: var(--text-faint);
}

.registry-search-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 0.75rem;
}

.registry-search-form .button {
  white-space: nowrap;
}

.registry-errors {
  padding: 0.7rem 0.85rem;
  border: 1px solid #fca5a5;
  border-radius: var(--radius);
  background: #fef2f2;
  color: #991b1b;
}

.registry-errors p {
  margin: 0;
}

.registry-results {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.registry-results-heading h2 {
  margin: 0.1rem 0 0;
}

.registry-client-card {
  display: grid;
  gap: 0.9rem;
}

.registry-client-header,
.registry-client-identity,
.registry-section-heading {
  display: flex;
  align-items: center;
}

.registry-client-header {
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-light);
}

.registry-client-identity {
  min-width: 0;
  gap: 0.65rem;
}

.registry-client-identity h3,
.registry-client-identity p,
.registry-client-sections h4,
.registry-client-sections p {
  margin: 0;
}

.registry-client-identity p,
.registry-client-sections p,
.registry-medical-list span {
  color: var(--text-faint);
  font-size: 0.76rem;
}

.registry-client-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.registry-client-sections > section {
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: #fff;
}

.registry-section-heading {
  justify-content: space-between;
  gap: 0.5rem;
}

.registry-medical-list {
  display: grid;
  gap: 0.45rem;
  max-height: 13rem;
  margin: 0.55rem 0 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.registry-medical-list li {
  display: grid;
  gap: 0.08rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-light);
}

.registry-medical-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.registry-medical-list strong {
  overflow-wrap: anywhere;
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .registry-search-form,
  .registry-client-sections {
    grid-template-columns: 1fr;
  }

  .registry-search-form .button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .registry-client-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* MedicareZulu retained client dashboard lookup v2 */
/* Dashboard retained-client lookup and read-only plan context */
.mz-search-group-header .mz-client-help {
  max-width: 520px;
  text-align: right;
  line-height: 1.35;
  white-space: normal;
}

.mz-plan-search-actions {
  display: flex;
  flex-direction: column;
  align-self: end;
  gap: 6px;
}

.mz-plan-search-actions .button {
  min-height: 36px;
  white-space: nowrap;
}

.mz-client-lookup-result {
  margin: 0 10px 10px;
  padding: 10px 12px;
  border: 1px solid #c3c4c7;
  border-radius: 2px;
  background: #f6f7f7;
  color: #1d2327;
  font-size: 11px;
}

.mz-client-lookup-result.found {
  border-left: 4px solid #00a32a;
  background: #f0f8f1;
}

.mz-client-lookup-result.not-found {
  border-left: 4px solid #dba617;
  background: #fff8e5;
}

.mz-client-lookup-result.error {
  border-left: 4px solid #d63638;
  background: #fcf0f1;
}

.mz-client-found-heading,
.mz-client-found-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mz-client-found-heading strong {
  font-size: 12px;
}

.mz-client-found-heading span,
.mz-client-found-actions span,
.mz-client-match-note {
  color: #646970;
}

.mz-client-found-detail {
  display: grid;
  gap: 3px;
  margin: 7px 0;
}

.mz-client-found-detail p {
  margin: 0;
}

.registry-plan-client-context {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-left: 4px solid #2271b1;
}

.registry-plan-client-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #dcdcde;
}

.registry-plan-client-heading h2,
.registry-plan-client-heading p {
  margin: 0;
}

.registry-plan-client-heading h2 {
  margin: 2px 0 3px;
  font-size: 16px;
}

.registry-plan-client-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(180px, 1fr) minmax(180px, 1fr);
  gap: 18px;
  padding-top: 12px;
}

.registry-plan-client-grid p {
  margin: 4px 0 0;
  color: #50575e;
}

.registry-plan-client-grid ul {
  margin: 5px 0 0 18px;
  padding: 0;
}

.registry-plan-client-grid li {
  margin: 2px 0;
}

.registry-current-plan-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 7px;
  padding: 2px 6px;
  border: 1px solid #dba617;
  border-radius: 2px;
  background: #fff8e5;
  color: #7a4b00;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  vertical-align: middle;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .mz-plan-search-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-end;
  }
}

@media (max-width: 760px) {
  .mz-search-group-header .mz-client-help {
    max-width: none;
    text-align: left;
  }

  .mz-search-group-header,
  .mz-client-found-heading,
  .mz-client-found-actions,
  .registry-plan-client-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .mz-plan-search-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .registry-plan-client-grid {
    grid-template-columns: 1fr;
  }
}

/* MedicareZulu bulk soft-delete v8 */
.mz-bulk-client-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #dcdcde;
  background: #fff;
}

.mz-bulk-select-all,
.mz-case-select-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mz-bulk-select-all input,
.mz-client-bulk-checkbox {
  width: 16px;
  height: 16px;
  margin: 0;
}

.mz-case-select-control {
  margin-right: 8px;
  vertical-align: middle;
}

.mz-bulk-selected-count {
  color: #646970;
  font-size: 12px;
}

#mz-delete-selected-clients {
  margin-left: auto;
}

#mz-delete-selected-clients:disabled {
  opacity: .55;
  cursor: not-allowed;
}

@media (max-width: 720px) {
  .mz-bulk-client-toolbar {
    flex-wrap: wrap;
  }
  #mz-delete-selected-clients {
    width: 100%;
    margin-left: 0;
  }
}

/* MedicareZulu bulk toolbar inline v9 */
.mz-bulk-client-toolbar {
  margin: 0;
  padding: 8px 0;
  border: 0;
  background: transparent;
}

/* MedicareZulu settings tabs v10 */
.mz-settings-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 16px;
  border-bottom: 1px solid #dcdcde;
}

.mz-settings-tab {
  appearance: none;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  padding: 10px 14px 9px;
  color: #50575e;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.mz-settings-tab:hover { color: #135e96; }
.mz-settings-tab.is-active {
  border-bottom-color: #2271b1;
  color: #1d2327;
}
.mz-settings-panel[hidden] { display: none !important; }
.mz-privacy-panel { max-width: 720px; }
.mz-password-card { padding: 18px; }
.mz-password-card h2 { margin: 0 0 4px; }
.mz-password-card .panel-description { margin: 0 0 18px; }
.mz-password-form {
  display: grid;
  gap: 14px;
  max-width: 460px;
}
.mz-password-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}
.mz-password-form input { width: 100%; }
.mz-password-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 2px;
}
@media (max-width: 640px) {
  .mz-settings-tabs { overflow-x: auto; }
  .mz-settings-tab { white-space: nowrap; }
}

/* MedicareZulu white labeling v11 */
.mz-white-label-panel { max-width: 820px; }
.mz-white-label-card { padding: 18px; }
.mz-white-label-card h2 { margin: 0 0 4px; }
.mz-white-label-card .panel-description { margin: 0 0 18px; }
.mz-white-label-form { display: grid; gap: 18px; }
.mz-white-label-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mz-white-label-form label { display: grid; gap: 6px; font-weight: 600; }
.mz-white-label-form input[type="text"], .mz-white-label-form input[type="file"] { width: 100%; }
.mz-brand-color-row { display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: 10px; }
.mz-brand-color-row input[type="color"] { width: 54px; height: 38px; padding: 2px; }
.mz-current-logo { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid #dcdcde; border-radius: 4px; }
.mz-current-logo img { max-width: 180px; max-height: 56px; object-fit: contain; }
.mz-white-label-actions { display: flex; justify-content: flex-start; }
.mz-white-label-brand { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; }
.mz-white-label-brand img { display: block; max-height: 38px; max-width: 150px; object-fit: contain; }
@media (max-width: 700px) { .mz-white-label-grid { grid-template-columns: 1fr; } }

/* MedicareZulu white-label default colors v12 */
.mz-white-label-actions { gap: 10px; flex-wrap: wrap; }

/* MedicareZulu show-only-RTS filter v10 */
.rts-only-filter-field {
  display: flex;
  align-items: end;
}
.rts-only-filter {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin: 0;
  font-weight: 600;
  cursor: pointer;
}
.rts-only-filter input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 auto;
}

/* MedicareZulu plan-year switcher v1 */
.plan-year-switcher {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  margin: 0 0 2px;
}

.plan-year-segmented {
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #b8c0c8;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03);
}

.plan-year-segmented input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.plan-year-segmented label {
  min-width: 58px;
  padding: 6px 13px;
  margin: 0;
  border-right: 1px solid #b8c0c8;
  color: #50575e;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

.plan-year-segmented label:last-of-type {
  border-right: 0;
}

.plan-year-segmented input[type="radio"]:checked + label {
  color: #fff;
  background: var(--mz-plan-year-active, #2271b1);
}

.plan-year-segmented input[type="radio"]:focus-visible + label {
  position: relative;
  z-index: 1;
  outline: 2px solid #2271b1;
  outline-offset: -2px;
}

.plan-year-segmented label:hover {
  background: #f0f6fc;
}

.plan-year-segmented input[type="radio"]:checked + label:hover {
  background: var(--mz-plan-year-active, #2271b1);
}

/* MedicareZulu landing legal links v1 */
.mz-landing-legal-links {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  line-height: 1.4;
}
.mz-landing-legal-links a {
  color: inherit;
  opacity: 0.78;
  text-decoration: none;
  font-weight: 700;
}
.mz-landing-legal-links a:hover {
  opacity: 1;
  text-decoration: underline;
}
.mz-landing-legal-links span { opacity: 0.4; }


/* MedicareZulu CRM-style client workspace v1 */
.mz-clients-page { background: #eef1f4; }
.mz-clients-page .app-main { background: #eef1f4; }
.mz-clients-page .topbar {
  min-height: 52px;
  padding: 8px 18px;
  border-bottom: 1px solid #111820;
  background: #0d1013;
  color: #fff;
}
.mz-clients-page .topbar > div:first-child { display: none; }
.mz-clients-page .topbar .mz-native-client-actions { display: flex; gap: 8px; }
.mz-clients-page .topbar .button { border-color: #303843; box-shadow: none; }
.mz-clients-page .topbar .button.secondary { background: #161b20; color: #f7f9fb; }
.mz-clients-page .topbar .button.primary { background: #1478e8; color: #fff; }
.mz-clients-page .content { width: 100%; max-width: none; padding: 0; }
.mz-clients-workspace { min-width: 960px; color: #1c232b; font-size: 12px; }
.mz-crm-commandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 54px;
  padding: 8px 18px;
  border-bottom: 1px solid #cfd5dc;
  background: #fff;
}
.mz-command-search {
  display: flex;
  align-items: center;
  width: min(620px, 58vw);
  height: 34px;
  border: 1px solid #c8cfd7;
  border-radius: 4px;
  background: #f8f9fa;
}
.mz-command-search .mz-search-icon { padding-left: 10px; color: #66717d; font-size: 18px; }
.mz-command-search input { width: 100%; height: 100%; padding: 0 10px; border: 0; outline: 0; background: transparent; color: #20262c; font-size: 12px; }
.mz-command-actions { display: flex; align-items: center; gap: 17px; white-space: nowrap; }
.mz-command-actions a { color: #20262c; font-size: 11px; font-weight: 600; text-decoration: none; }
.mz-command-actions a:first-child { color: #0969da; }
.mz-client-list-shell { background: #fff; }
.mz-client-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 18px 8px; }
.mz-client-page-heading h2 { margin: 0; color: #111820; font-size: 24px; letter-spacing: -.02em; }
.mz-client-page-heading p { margin: 3px 0 0; color: #68737e; font-size: 11px; }
.mz-heading-actions { display: flex; gap: 8px; }
.mz-ui-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 31px;
  padding: 0 12px;
  border: 1px solid #cdd4dc;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}
.mz-ui-button-light { background: #fff; color: #222a32; }
.mz-ui-button-blue { border-color: #1478e8; background: #1478e8; color: #fff; }
.mz-client-tabs { display: flex; gap: 24px; overflow-x: auto; padding: 0 18px; border-bottom: 1px solid #d7dde3; white-space: nowrap; }
.mz-client-tabs a { position: relative; padding: 11px 0 10px; color: #59636d; font-size: 11px; text-decoration: none; }
.mz-client-tabs a.active { color: #111820; font-weight: 700; }
.mz-client-tabs a.active::after { content: ''; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: #1478e8; }
.mz-client-filterbar { display: grid; grid-template-columns: minmax(220px, 1.25fr) repeat(4, minmax(115px, .72fr)) auto auto; gap: 10px; align-items: stretch; padding: 14px 18px 11px; }
.mz-filter-search { display: flex; align-items: center; min-width: 0; border: 1px solid #d2d8df; border-radius: 4px; background: #fff; }
.mz-filter-search span { padding-left: 9px; color: #6e7781; font-size: 16px; }
.mz-filter-search input { width: 100%; min-width: 0; padding: 8px; border: 0; outline: none; background: transparent; font-size: 11px; }
.mz-filter-chip { display: flex; flex-direction: column; justify-content: center; position: relative; min-height: 37px; padding: 5px 25px 5px 9px; border: 1px solid #d2d8df; border-radius: 4px; color: #56606a; font-size: 9px; line-height: 1.05; }
.mz-filter-chip strong { margin-top: 2px; color: #1f252b; font-size: 10px; font-weight: 500; }
.mz-filter-chip::after { content: '⌄'; position: absolute; right: 8px; top: 12px; color: #4f5963; }
.mz-clear-filter, .mz-filter-button { display: flex; align-items: center; justify-content: center; min-width: 64px; padding: 0 10px; border: 1px solid #d2d8df; border-radius: 4px; background: #fff; color: #27313a; font-size: 10px; text-decoration: none; }
.mz-filter-button { border-color: #a8cff8; color: #0769d6; font-weight: 600; }
.mz-client-count-row { display: flex; align-items: center; justify-content: space-between; padding: 0 18px 8px; color: #343b42; font-size: 10px; }
.mz-client-count-row div { display: flex; gap: 18px; color: #286cb6; }
.mz-client-table-wrap { overflow-x: auto; border-top: 1px solid #d9dee4; border-bottom: 1px solid #cfd5dc; }
.mz-client-grid { width: 100%; min-width: 1280px; border-collapse: collapse; table-layout: fixed; }
.mz-client-grid th { padding: 7px 8px; border-right: 1px solid #e0e4e8; border-bottom: 1px solid #d3d8de; background: #f4f6f8; color: #303840; font-size: 9px; font-weight: 600; text-align: left; text-transform: none; white-space: nowrap; }
.mz-client-grid th:nth-child(1) { width: 34px; }
.mz-client-grid th:nth-child(2) { width: 150px; }
.mz-client-grid th:nth-child(3) { width: 50px; }
.mz-client-grid th:nth-child(4) { width: 118px; }
.mz-client-grid th:nth-child(5) { width: 175px; }
.mz-client-grid th:nth-child(6) { width: 125px; }
.mz-client-grid th:nth-child(7) { width: 92px; }
.mz-client-grid th:nth-child(8) { width: 92px; }
.mz-client-grid th:nth-child(9) { width: 175px; }
.mz-client-grid th:nth-child(10) { width: 108px; }
.mz-client-grid td { height: 44px; padding: 6px 8px; border-right: 1px solid #edf0f2; border-bottom: 1px solid #e3e7ea; color: #30373e; font-size: 10px; vertical-align: middle; }
.mz-client-grid tbody tr { cursor: pointer; }
.mz-client-grid tbody tr:hover td { background: #f7fbff; }
.mz-client-grid tbody tr.selected td { background: #eaf4ff; }
.mz-client-grid tbody tr.selected td:first-child { box-shadow: inset 3px 0 #1478e8; }
.mz-client-grid a { color: #066ddd; text-decoration: none; }
.mz-client-grid strong { font-weight: 600; }
.mz-client-grid small { display: block; margin-top: 2px; overflow: hidden; color: #6d7781; font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.mz-check-col { text-align: center !important; }
.mz-client-name-cell strong { color: #0969da; }
.mz-notes-cell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mz-muted { color: #8b949e; }
.mz-grid-status { display: inline-flex; align-items: center; min-height: 20px; padding: 0 7px; border-radius: 4px; background: #e9edf1; color: #47515b; font-size: 9px; font-weight: 600; white-space: nowrap; }
.mz-grid-status-lead { background: #e8f2ff; color: #1565b5; }
.mz-grid-status-quoted { background: #fff0c9; color: #7b5800; }
.mz-grid-status-enrolled { background: #dff5e6; color: #216b37; }
.mz-grid-status-closed { background: #f0e7e7; color: #7b3a3a; }
.mz-client-empty { padding: 48px 24px; text-align: center; }
.mz-client-empty h3 { margin: 0 0 5px; font-size: 16px; }
.mz-client-empty p { color: #6d7781; }
.mz-client-empty a { color: #0969da; }
.mz-client-detail-grid { display: grid; grid-template-columns: 320px minmax(540px, 1fr) 260px; gap: 8px; padding: 8px; background: #eef1f4; }
.mz-client-card { border: 1px solid #d3d9df; border-radius: 4px; background: #fff; box-shadow: 0 1px 1px rgba(16,24,32,.03); }
.mz-profile-card { padding: 14px; }
.mz-profile-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding-bottom: 12px; }
.mz-profile-title-row h2 { margin: 0; font-size: 18px; }
.mz-profile-title-row p { margin: 4px 0 0; color: #5e6872; font-size: 9.5px; }
.mz-active-badge { padding: 4px 8px; border-radius: 4px; background: #dff5e6; color: #216b37; font-size: 9px; font-weight: 600; }
.mz-profile-dl, .mz-coverage-dl, .mz-side-dl { margin: 0; }
.mz-profile-dl > div, .mz-coverage-dl > div, .mz-side-dl > div { display: grid; grid-template-columns: 96px 1fr; gap: 8px; padding: 5px 0; }
.mz-profile-dl dt, .mz-coverage-dl dt, .mz-side-dl dt { color: #5f6973; font-size: 9.5px; }
.mz-profile-dl dd, .mz-coverage-dl dd, .mz-side-dl dd { margin: 0; color: #1f252b; font-size: 9.5px; overflow-wrap: anywhere; }
.mz-comm-row { display: flex; gap: 18px; margin: 11px -14px 0; padding: 9px 14px; border-top: 1px solid #e0e4e8; border-bottom: 1px solid #e0e4e8; color: #313a43; font-size: 10px; }
.mz-profile-tags { display: flex; flex-wrap: wrap; gap: 5px; padding: 12px 0; }
.mz-profile-tags span { padding: 4px 7px; border-radius: 4px; background: #e9edf1; color: #48515a; font-size: 8.5px; }
.mz-profile-dl-bottom { border-top: 1px solid #e0e4e8; padding-top: 6px; }
.mz-profile-actions { display: flex; gap: 8px; padding-top: 12px; }
.mz-profile-actions a { flex: 1; padding: 7px; border: 1px solid #cbd3db; border-radius: 4px; color: #0969da; font-size: 9px; font-weight: 600; text-align: center; text-decoration: none; }
.mz-medicare-card { min-width: 0; }
.mz-detail-tabs { display: flex; gap: 24px; overflow-x: auto; padding: 0 14px; border-bottom: 1px solid #d8dde2; white-space: nowrap; }
.mz-detail-tabs a { position: relative; padding: 10px 0 9px; color: #46515c; font-size: 9.5px; text-decoration: none; }
.mz-detail-tabs a.active { color: #0969da; font-weight: 600; }
.mz-detail-tabs a.active::after { content: ''; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: #1478e8; }
.mz-coverage-panel { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(230px, .9fr); gap: 14px; margin: 10px; padding: 10px; border: 1px solid #dce1e5; border-radius: 4px; }
.mz-coverage-panel h3, .mz-plan-options h3, .mz-key-considerations h3, .mz-compact-card h3 { margin: 0 0 7px; color: #151b20; font-size: 11px; }
.mz-coverage-callout { padding: 12px; border: 1px solid #f2caca; border-radius: 4px; background: #fff0f0; }
.mz-coverage-callout strong { color: #bd3636; font-size: 11px; }
.mz-coverage-callout p { margin: 5px 0 10px; color: #5e6064; font-size: 9px; line-height: 1.4; }
.mz-coverage-callout .mz-ui-button { min-height: 27px; }
.mz-plan-options { margin: 0 10px 10px; }
.mz-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mz-section-heading a { color: #0969da; font-size: 9px; text-decoration: none; }
.mz-plan-options table { width: 100%; border-collapse: collapse; border: 1px solid #dce1e5; }
.mz-plan-options th { padding: 6px 7px; background: #f4f6f8; color: #4b5560; font-size: 8px; font-weight: 600; text-align: left; }
.mz-plan-options td { padding: 6px 7px; border-top: 1px solid #e4e8eb; font-size: 8.7px; }
.mz-plan-options td a { color: #0969da; text-decoration: none; }
.mz-mini-action { float: right; padding: 3px 7px; border-radius: 3px; background: #1478e8; color: #fff !important; font-weight: 600; }
.mz-no-plans { padding: 13px; border: 1px solid #dde2e6; color: #66717b; font-size: 9px; }
.mz-key-considerations { margin: 0 10px 10px; padding-top: 2px; }
.mz-key-considerations p { margin: 4px 0; color: #3d454d; font-size: 9px; }
.mz-key-considerations p span { margin-right: 5px; color: #e34a3f; }
.mz-detail-side-stack { display: flex; flex-direction: column; gap: 8px; }
.mz-compact-card { padding: 11px; }
.mz-side-dl > div { grid-template-columns: 1fr auto; border-top: 1px solid #edf0f2; }
.mz-side-dl > div:first-child { border-top: 0; }
.mz-check-list { list-style: none; margin: 0; padding: 0; }
.mz-check-list li { position: relative; padding: 5px 0 5px 18px; border-top: 1px solid #edf0f2; color: #6f7881; font-size: 9px; }
.mz-check-list li::before { content: '○'; position: absolute; left: 1px; color: #a2aab2; }
.mz-check-list li.done { color: #2f3a42; }
.mz-check-list li.done::before { content: '●'; color: #20a34a; }
.mz-side-actions { display: grid; gap: 6px; }
.mz-side-actions a, .mz-side-actions button { display: block; width: 100%; padding: 7px; border: 1px solid #cbd3db; border-radius: 4px; background: #fff; color: #0969da; font: inherit; font-size: 9px; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer; }
.mz-side-actions form { margin: 0; }
@media (max-width: 1280px) {
  .mz-client-detail-grid { grid-template-columns: 280px minmax(520px, 1fr); }
  .mz-detail-side-stack { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); }
  .mz-client-filterbar { grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(120px, .6fr)) auto; }
  .mz-client-filterbar .mz-filter-chip:nth-of-type(3), .mz-client-filterbar .mz-filter-chip:nth-of-type(4) { display: none; }
}
@media (max-width: 980px) {
  .mz-clients-workspace { min-width: 0; }
  .mz-command-actions span { display: none; }
  .mz-client-detail-grid { grid-template-columns: 1fr; }
  .mz-detail-side-stack { grid-column: auto; grid-template-columns: 1fr; }
  .mz-client-filterbar { grid-template-columns: 1fr auto; }
  .mz-client-filterbar .mz-filter-chip { display: none; }
  .mz-coverage-panel { grid-template-columns: 1fr; }
}

/* =====================================================================
   MedicareZulu Clients reference CRM layout v2
   Pixel-oriented reconstruction of the supplied desktop Clients mockup.
   Scoped to /clients so the rest of MedicareZulu is unchanged.
   ===================================================================== */
body.mz-clients-reference-page {
  min-width: 1070px;
  background: #eef1f4;
  overflow-x: auto;
}
body.mz-clients-reference-page > .sidebar,
body.mz-clients-reference-page .app-main > .topbar,
body.mz-clients-reference-page .app-main > .app-footer { display: none !important; }
body.mz-clients-reference-page > .app-main { margin-left: 0 !important; min-height: 100vh; }
body.mz-clients-reference-page .app-main > .content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.mz-clients-reference-page .content > .flash-stack {
  position: fixed;
  z-index: 1000;
  top: 56px;
  right: 16px;
  width: min(420px, calc(100vw - 32px));
}
body.mz-clients-reference-page a:hover { text-decoration: none; }

.mz-reference-crm {
  --ref-blue: #0878e8;
  --ref-blue-deep: #066bd4;
  --ref-border: #d6dde4;
  --ref-border-soft: #e5e9ed;
  --ref-text: #171b1f;
  --ref-muted: #5e6974;
  --ref-soft: #f5f7f9;
  width: 100%;
  min-width: 1180px;
  min-height: 100vh;
  background: #eef1f4;
  color: var(--ref-text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  line-height: 1.25;
}
.mz-reference-crm *, .mz-reference-crm *::before, .mz-reference-crm *::after { box-sizing: border-box; }
.mz-reference-crm button, .mz-reference-crm input, .mz-reference-crm select { font: inherit; }
.mz-reference-crm .mz-ref-icon { width: 15px; height: 15px; flex: 0 0 auto; }

/* Top half: exactly like the supplied reference, with the sidebar ending at the details split. */
.mz-ref-upper {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  height: 542px;
  overflow: hidden;
  border-bottom: 1px solid #cfd6dc;
  background: #fff;
}
.mz-ref-sidebar {
  height: 542px;
  overflow: hidden;
  background: linear-gradient(180deg, #15191d 0%, #15191d 74%, #181d21 100%);
  color: #f5f7f9;
}
.mz-ref-brand {
  display: flex;
  height: 48px;
  align-items: center;
  gap: 6px;
  padding: 0 15px;
  border-bottom: 1px solid #242b31;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.7px;
  line-height: 1;
  white-space: nowrap;
}
.mz-ref-brand:hover { color: #fff; }
.mz-ref-brand-mark { width: 23px; height: 20px; color: #2f9af7; flex: 0 0 auto; }
.mz-ref-brand > span > span { color: #2f9af7; }
.mz-ref-nav { padding: 3px 4px 0; }
.mz-ref-nav a {
  position: relative;
  display: flex;
  height: 42px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-radius: 4px;
  color: #eef1f4;
  font-size: 12px;
  font-weight: 500;
}
.mz-ref-nav a .mz-ref-icon { width: 18px; height: 18px; color: #e6ebef; }
.mz-ref-nav a.active {
  background: linear-gradient(90deg, #1379d7 0%, #157edc 100%);
  color: #fff;
}
.mz-ref-nav a.active::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -4px;
  width: 4px;
  border-radius: 0 3px 3px 0;
  background: #58b8ff;
  content: "";
}

.mz-ref-upper-main { min-width: 0; height: 542px; background: #fff; }
.mz-ref-blackbar {
  display: flex;
  height: 49px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 17px 0 182px;
  background: #15191d;
  color: #fff;
}
.mz-ref-global-search {
  position: relative;
  display: flex;
  width: min(424px, 39vw);
  height: 34px;
  align-items: center;
  margin-left: 0;
  border-radius: 4px;
  background: #f5f6f7;
  color: #69727b;
}
.mz-ref-global-search .mz-ref-icon { width: 17px; height: 17px; margin-left: 11px; }
.mz-ref-global-search input {
  min-height: 0;
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  outline: none;
  background: transparent;
  box-shadow: none;
  color: #5e6873;
  font-size: 13px;
}
.mz-ref-global-search input:focus { border: 0; box-shadow: none; }
.mz-ref-top-actions { display: flex; align-items: center; gap: 17px; white-space: nowrap; }
.mz-ref-top-actions > a { display: inline-flex; position: relative; align-items: center; gap: 5px; color: #fff; font-size: 10.5px; font-weight: 600; }
.mz-ref-top-actions > a .mz-ref-icon { width: 14px; height: 14px; }
.mz-ref-task-link b {
  position: absolute;
  top: -9px;
  right: -9px;
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border-radius: 50%;
  background: #ef3e3e;
  color: #fff;
  font-size: 8px;
}
.mz-ref-user-avatar { display: grid; width: 36px; height: 36px; place-items: center; margin-left: 2px; border-radius: 50%; background: #3499e9; color: #fff; font-size: 15px; }
.mz-ref-user-copy { display: flex; flex-direction: column; margin-left: -7px; line-height: 1.15; }
.mz-ref-user-copy strong { color: #fff; font-size: 11px; font-weight: 700; }
.mz-ref-user-copy span { margin-top: 2px; color: #c8cdd1; font-size: 9px; }
.mz-ref-chevron { color: #4aa7ed; font-size: 17px; line-height: 1; }

.mz-ref-client-list-area { height: 493px; overflow: hidden; background: #fff; }
.mz-ref-title-row {
  display: flex;
  height: 62px;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px 0 17px;
}
.mz-ref-title-row h1 { margin: 0; color: #11161a; font-size: 26px; font-weight: 700; line-height: 1; letter-spacing: -.5px; }
.mz-ref-title-actions { display: flex; align-items: center; gap: 10px; }
.mz-ref-btn {
  display: inline-flex;
  height: 34px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 14px;
  border: 1px solid #d3d9df;
  border-radius: 4px;
  background: #fff;
  color: #1e252b;
  font-size: 11px;
  font-weight: 600;
}
.mz-ref-btn .mz-ref-icon { width: 15px; height: 15px; }
.mz-ref-btn-primary { border-color: var(--ref-blue); background: var(--ref-blue); color: #fff; }
.mz-ref-btn-primary:hover { color: #fff; background: var(--ref-blue-deep); }
.mz-ref-btn-muted:hover { color: #1e252b; background: #f7f8f9; }

.mz-ref-view-tabs {
  display: flex;
  height: 33px;
  align-items: flex-end;
  gap: 0;
  padding: 0 16px;
  border-bottom: 1px solid #d7dde3;
  overflow: hidden;
  white-space: nowrap;
}
.mz-ref-view-tabs a {
  position: relative;
  display: flex;
  height: 33px;
  align-items: center;
  padding: 0 17px;
  color: #58626c;
  font-size: 10.5px;
  font-weight: 500;
}
.mz-ref-view-tabs a:first-child { padding-left: 0; padding-right: 20px; }
.mz-ref-view-tabs a.active { color: #12171c; font-weight: 700; }
.mz-ref-view-tabs a.active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: #1686f1; content: ""; }

.mz-ref-filterbar {
  display: grid;
  grid-template-columns: minmax(245px, 2.2fr) minmax(110px, 1.05fr) minmax(115px, 1.05fr) minmax(120px, 1.08fr) minmax(110px, 1fr) 58px 84px;
  gap: 12px;
  height: 64px;
  align-items: center;
  padding: 0 13px 0 15px;
}
.mz-ref-list-search {
  display: flex;
  height: 39px;
  align-items: center;
  border: 1px solid #d1d8de;
  border-radius: 4px;
  background: #fff;
  color: #6d7781;
}
.mz-ref-list-search .mz-ref-icon { width: 15px; height: 15px; margin-left: 9px; }
.mz-ref-list-search input {
  min-height: 0;
  height: 37px;
  padding: 0 8px;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: #59636d;
  font-size: 10.5px;
}
.mz-ref-list-search input:focus { border: 0; box-shadow: none; }
.mz-ref-select {
  position: relative;
  display: block;
  height: 39px;
  padding: 5px 7px 2px;
  border: 1px solid #d1d8de;
  border-radius: 4px;
  background: #fff;
  color: #474f57;
  font-size: 9px;
  font-weight: 400;
  overflow: hidden;
}
.mz-ref-select span { display: block; margin-bottom: -1px; line-height: 1; }
.mz-ref-select select {
  width: 100%;
  min-height: 17px;
  height: 18px;
  padding: 0 16px 0 0;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: #20262c;
  font-size: 10px;
  line-height: 18px;
}
.mz-ref-select select:focus { border: 0; box-shadow: none; }
.mz-ref-clear {
  display: flex;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d4dbe1;
  border-radius: 4px;
  background: #fff;
  color: #232a30;
  font-size: 10px;
}
.mz-ref-filter-btn {
  display: flex;
  height: 34px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid #94c5f4;
  border-radius: 4px;
  background: #fff;
  color: #086fd9;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}
.mz-ref-filter-btn .mz-ref-icon { width: 14px; height: 14px; }

.mz-ref-count-row {
  display: flex;
  height: 39px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 15px;
  border-top: 1px solid #edf0f2;
  color: #343c43;
}
.mz-ref-count-row > strong { font-size: 10.5px; font-weight: 600; }
.mz-ref-count-actions { display: flex; align-items: center; gap: 12px; }
.mz-ref-count-actions button {
  display: inline-flex;
  height: 29px;
  align-items: center;
  gap: 5px;
  padding: 0 7px;
  border: 0;
  background: transparent;
  color: #096ddb;
  font-size: 10px;
  cursor: pointer;
}
.mz-ref-count-actions button:last-child { padding: 0 10px; border: 1px solid #d4dbe1; border-radius: 4px; color: #28313a; }
.mz-ref-count-actions .mz-ref-icon { width: 13px; height: 13px; }

.mz-ref-table-wrap {
  height: 295px;
  overflow: auto;
  border-top: 1px solid #d7dde3;
  background: #fff;
  scrollbar-width: thin;
}
.mz-ref-client-table {
  width: 100%;
  min-width: 1250px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  color: #2b333a;
}
.mz-ref-client-table thead th {
  position: sticky;
  z-index: 2;
  top: 0;
  height: 38px;
  padding: 0 9px;
  border-right: 1px solid #dfe4e8;
  border-bottom: 1px solid #d3d9df;
  background: #f3f5f7;
  color: #333b43;
  font-size: 9.5px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
.mz-ref-client-table thead th span { margin-left: 3px; color: #7f8992; font-size: 9px; }
.mz-ref-client-table thead th:nth-child(1) { width: 34px; }
.mz-ref-client-table thead th:nth-child(2) { width: 126px; }
.mz-ref-client-table thead th:nth-child(3) { width: 42px; }
.mz-ref-client-table thead th:nth-child(4) { width: 105px; }
.mz-ref-client-table thead th:nth-child(5) { width: 150px; }
.mz-ref-client-table thead th:nth-child(6) { width: 128px; }
.mz-ref-client-table thead th:nth-child(7) { width: 106px; }
.mz-ref-client-table thead th:nth-child(8) { width: 123px; }
.mz-ref-client-table thead th:nth-child(9) { width: 225px; }
.mz-ref-client-table thead th:nth-child(10) { width: 160px; }
.mz-ref-client-table thead th:nth-child(11) { width: 166px; }
.mz-ref-client-table td {
  height: 37px;
  padding: 0 9px;
  overflow: hidden;
  border-right: 1px solid #e9edf0;
  border-bottom: 1px solid #e2e6e9;
  background: #fff;
  color: #333b42;
  font-size: 9.5px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}
.mz-ref-client-table tbody tr { cursor: pointer; }
.mz-ref-client-table tbody tr:hover td { background: #f8fbfe; }
.mz-ref-client-table tbody tr.selected td { background: #eaf4ff; }
.mz-ref-client-table tbody tr.selected td:first-child { box-shadow: inset 3px 0 #1688f2; }
.mz-ref-client-table .check { width: 34px; text-align: center; }
.mz-ref-client-table input[type="checkbox"] { width: 14px; height: 14px; min-height: 0; margin: 0; accent-color: #1487ef; }
.mz-ref-client-table .client-name a, .mz-ref-client-table .mz-ref-next-action { color: #006fdc; font-weight: 600; }
.mz-ref-client-table .notes { color: #353d44; }
.mz-ref-plan-status {
  display: inline-flex;
  min-height: 21px;
  align-items: center;
  padding: 0 7px;
  border-radius: 4px;
  background: #f4e4bd;
  color: #785500;
  font-size: 9px;
  font-weight: 600;
}
.mz-ref-plan-status.status-enrolled { background: #ccefd9; color: #176f39; }
.mz-ref-plan-status.status-lead { background: #dfeefe; color: #246aaf; }
.mz-ref-plan-status.status-quoted { background: #ffe6a9; color: #795300; }
.mz-ref-plan-status.status-closed { background: #ffd4d2; color: #a32b25; }
.mz-ref-empty { display: grid; height: 100%; place-items: center; color: #6c7680; font-size: 12px; }
.mz-ref-empty a { color: #0878e8; }

/* Full-width lower details area, exactly like the reference image. */
.mz-ref-details {
  display: grid;
  grid-template-columns: 400px minmax(620px, 1fr) 300px;
  gap: 8px;
  min-height: 482px;
  padding: 8px 4px 4px;
  background: #eef1f4;
}
.mz-ref-profile-panel,
.mz-ref-medicare-panel,
.mz-ref-right-card {
  border: 1px solid #d3dae0;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 1px rgba(23, 31, 38, .03);
}
.mz-ref-profile-panel { min-width: 0; padding: 12px 18px; overflow: hidden; }
.mz-ref-profile-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-bottom: 9px; }
.mz-ref-profile-heading h2 { margin: 0; color: #12171b; font-size: 18px; font-weight: 700; line-height: 1.12; }
.mz-ref-profile-heading p { margin: 7px 0 0; color: #4f5a64; font-size: 9.5px; }
.mz-ref-profile-heading > span { display: inline-flex; min-height: 23px; align-items: center; padding: 0 9px; border-radius: 4px; background: #d8f1df; color: #246a3c; font-size: 9px; font-weight: 600; }
.mz-ref-profile-contact-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; row-gap: 8px; padding-top: 2px; }
.mz-ref-profile-contact-grid > div { display: grid; grid-template-columns: 82px minmax(0, 1fr); align-items: center; }
.mz-ref-profile-contact-grid > div.wide { grid-column: 1 / -1; grid-template-columns: 82px minmax(0, 1fr); }
.mz-ref-profile-contact-grid span { color: #4f5962; font-size: 9.5px; }
.mz-ref-profile-contact-grid a { overflow: hidden; color: #006bd8; font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.mz-ref-profile-contact-grid strong { overflow: hidden; color: #303840; font-size: 9.5px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.mz-ref-communication-row {
  display: grid;
  grid-template-columns: 154px repeat(3, auto);
  gap: 13px;
  align-items: center;
  margin: 13px -18px 0;
  padding: 9px 18px;
  border-top: 1px solid #dde2e6;
  border-bottom: 1px solid #dde2e6;
  color: #2c343b;
}
.mz-ref-communication-row > span { font-size: 9.5px; }
.mz-ref-communication-row b { display: inline-flex; align-items: center; gap: 5px; font-size: 9.5px; font-weight: 500; }
.mz-ref-communication-row b .mz-ref-icon { width: 14px; height: 14px; }
.mz-ref-tags-block { padding: 11px 0 13px; border-bottom: 1px solid #dde2e6; }
.mz-ref-tags-block > .label { display: block; margin-bottom: 11px; color: #4b555f; font-size: 9.5px; }
.mz-ref-tags-block > div { display: flex; flex-wrap: wrap; gap: 5px; padding-left: 92px; }
.mz-ref-tags-block em { display: inline-flex; min-height: 22px; align-items: center; padding: 0 7px; border-radius: 4px; background: #e8ecef; color: #4d565e; font-size: 8.7px; font-style: normal; }
.mz-ref-profile-meta { margin: 0; }
.mz-ref-profile-meta > div { display: grid; grid-template-columns: 92px 1fr; align-items: center; min-height: 39px; border-bottom: 1px solid #e1e5e8; }
.mz-ref-profile-meta > div:last-child { border-bottom: 0; }
.mz-ref-profile-meta dt { color: #4f5962; font-size: 9.5px; }
.mz-ref-profile-meta dd { margin: 0; color: #30383f; font-size: 9.5px; }
.mz-ref-profile-meta a { color: #006edb; }

.mz-ref-medicare-panel { min-width: 0; overflow: hidden; }
.mz-ref-detail-tabs { display: flex; height: 38px; align-items: flex-end; padding: 0 18px; border-bottom: 1px solid #d9dfe4; overflow: hidden; white-space: nowrap; }
.mz-ref-detail-tabs a { position: relative; display: flex; height: 38px; align-items: center; padding: 0 19px; color: #4e5963; font-size: 9.5px; }
.mz-ref-detail-tabs a:first-child { padding-left: 0; }
.mz-ref-detail-tabs a.active { color: #006edc; font-weight: 600; }
.mz-ref-detail-tabs a.active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: #1086f1; content: ""; }
.mz-ref-current-coverage {
  display: grid;
  grid-template-columns: minmax(285px, 1.1fr) minmax(310px, .9fr);
  gap: 10px;
  margin: 10px 10px 0;
  padding: 9px 10px;
  border: 1px solid #dce2e7;
  border-radius: 4px;
}
.mz-ref-current-copy h3, .mz-ref-plan-options h3, .mz-ref-key-considerations h3, .mz-ref-right-card h3 { margin: 0; color: #14191d; font-size: 11px; font-weight: 700; }
.mz-ref-current-copy dl { margin: 7px 0 0; }
.mz-ref-current-copy dl > div { display: grid; grid-template-columns: 95px minmax(0, 1fr); min-height: 22px; align-items: center; }
.mz-ref-current-copy dt { color: #4e5963; font-size: 9px; }
.mz-ref-current-copy dd { margin: 0; overflow: hidden; color: #2d353c; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.mz-ref-plan-alert {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 8px;
  min-height: 105px;
  padding: 12px 12px 10px;
  border-radius: 5px;
  background: #fee8e7;
}
.mz-ref-alert-symbol { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: #f64c42; color: #fff; font-size: 14px; font-weight: 700; }
.mz-ref-plan-alert strong { color: #d43b34; font-size: 11px; }
.mz-ref-plan-alert p { margin: 7px 0 9px; color: #4c555d; font-size: 9px; line-height: 1.3; }
.mz-ref-plan-alert > div > div { display: flex; align-items: center; gap: 8px; }
.mz-ref-plan-alert a { color: #0875de; font-size: 8.8px; }
.mz-ref-alert-btn { display: inline-flex; min-height: 32px; align-items: center; padding: 0 14px; border-radius: 4px; background: #087cf0; color: #fff !important; font-weight: 600; }

.mz-ref-plan-options { margin: 10px 10px 0; }
.mz-ref-plan-options h3 { margin: 0 0 6px; }
.mz-ref-plan-options table { width: 100%; border-collapse: collapse; table-layout: fixed; border: 1px solid #dbe1e6; }
.mz-ref-plan-options th { height: 23px; padding: 0 8px; border-right: 1px solid #dfe4e8; background: #f2f4f6; color: #3e474f; font-size: 8px; font-weight: 600; text-align: left; white-space: nowrap; }
.mz-ref-plan-options th:nth-child(1) { width: 20%; }
.mz-ref-plan-options th:nth-child(2) { width: 13%; }
.mz-ref-plan-options th:nth-child(3) { width: 10%; }
.mz-ref-plan-options th:nth-child(4) { width: 18%; }
.mz-ref-plan-options th:nth-child(5) { width: 19%; }
.mz-ref-plan-options th:nth-child(6) { width: 20%; }
.mz-ref-plan-options th:nth-child(7) { width: 68px; }
.mz-ref-plan-options td { height: 28px; padding: 0 8px; overflow: hidden; border-top: 1px solid #e1e6ea; border-right: 1px solid #e5e9ec; color: #343c43; font-size: 8.3px; text-overflow: ellipsis; white-space: nowrap; }
.mz-ref-plan-options td a { color: #006fdc; font-weight: 600; }
.mz-ref-plan-options .good { color: #1b9b4c; font-weight: 700; }
.mz-ref-plan-options .neutral { color: #9199a0; }
.mz-ref-compare-small { display: inline-flex; min-height: 21px; align-items: center; justify-content: center; padding: 0 7px; border-radius: 3px; background: #087cf0; color: #fff !important; font-size: 8px; }
.mz-ref-no-plan-options { display: flex; height: 72px; align-items: center; justify-content: center; border: 1px solid #dce2e7; color: #68727b; font-size: 9px; }
.mz-ref-no-plan-options a { margin-left: 3px; color: #0878e8; }
.mz-ref-key-considerations { margin: 10px 10px 0; }
.mz-ref-key-considerations h3 { margin-bottom: 5px; }
.mz-ref-key-considerations p { margin: 3px 0; overflow: hidden; color: #3c454d; font-size: 8.8px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.mz-ref-key-considerations p span { display: inline-grid; width: 13px; height: 13px; place-items: center; margin-right: 5px; border-radius: 50%; background: #ef5046; color: #fff; font-size: 8px; font-weight: 700; }

.mz-ref-detail-right { display: flex; min-width: 0; flex-direction: column; gap: 8px; }
.mz-ref-right-card { padding: 10px 12px; }
.mz-ref-right-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.mz-ref-right-title a { color: #0876de; font-size: 8.5px; }
.mz-ref-right-card dl { margin: 0; }
.mz-ref-right-card dl > div { display: grid; grid-template-columns: 1fr auto; min-height: 26px; align-items: center; border-bottom: 1px solid #e5e9ec; }
.mz-ref-right-card dl > div:last-child { border-bottom: 0; }
.mz-ref-right-card dt, .mz-ref-right-card dd { font-size: 8.8px; }
.mz-ref-right-card dt { color: #3d464e; }
.mz-ref-right-card dd { margin: 0; color: #3d464e; }
.mz-ref-compliance-list { list-style: none; margin: 6px 0 0; padding: 0; }
.mz-ref-compliance-list li { display: grid; grid-template-columns: 15px minmax(0, 1fr) auto; min-height: 27px; align-items: center; border-bottom: 1px solid #e5e9ec; }
.mz-ref-compliance-list li:last-child { border-bottom: 0; }
.mz-ref-compliance-list .neutral-dot { color: #9aa3ab; font-size: 17px; line-height: 1; }
.mz-ref-compliance-list strong { color: #30383f; font-size: 8.8px; font-weight: 500; }
.mz-ref-compliance-list em { color: #6f7880; font-size: 8.3px; font-style: normal; }
.mz-ref-communications { flex: 1; min-height: 185px; }
.mz-ref-comms-row { display: grid; grid-template-columns: 67px 63px minmax(0, 1fr); min-height: 34px; align-items: center; border-top: 1px solid #e5e9ec; color: #394149; }
.mz-ref-comms-row span, .mz-ref-comms-row b, .mz-ref-comms-row p { font-size: 8px; }
.mz-ref-comms-row b { font-weight: 500; }
.mz-ref-comms-row p { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mz-ref-comms-row.empty { color: #79838c; }
.mz-ref-no-selection { display: grid; grid-template-columns: 1fr; place-items: center; color: #6d7680; font-size: 13px; }

@media (max-width: 1320px) {
  .mz-ref-blackbar { padding-left: 80px; }
  .mz-ref-top-actions { gap: 10px; }
  .mz-ref-top-actions > a span { display: none; }
  .mz-ref-details { grid-template-columns: 350px minmax(570px, 1fr) 270px; }
  .mz-ref-filterbar { gap: 7px; grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(95px, 1fr)) 52px 75px; }
}


/* =====================================================================
   MedicareZulu Clients reference CRM layout v3
   Preserve the application's CURRENT native sidebar exactly as-is.
   Only the Clients workspace to its right uses the reference CRM layout.
   ===================================================================== */
body.mz-clients-reference-page {
  min-width: 1400px;
  background: #eef1f4;
  overflow-x: auto;
}

/* Restore the existing sidebar from base.html, including white-label colors,
   current navigation, logo, active state, and signed-in user area. */
body.mz-clients-reference-page > .sidebar {
  display: flex !important;
}

/* Keep the reference page's own dark command bar, so only the native topbar
   remains hidden on this page. */
body.mz-clients-reference-page .app-main > .topbar,
body.mz-clients-reference-page .app-main > .app-footer {
  display: none !important;
}
body.mz-clients-reference-page > .app-main {
  margin-left: 220px !important;
  min-height: 100vh;
}
body.mz-clients-reference-page .app-main > .content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* No second/fake CRM sidebar. */
.mz-ref-sidebar { display: none !important; }
.mz-ref-upper {
  display: block !important;
  height: 542px;
  overflow: hidden;
  border-bottom: 1px solid #cfd6dc;
  background: #fff;
}
.mz-ref-upper-main {
  width: 100%;
  min-width: 0;
  height: 542px;
}
.mz-ref-blackbar {
  padding-left: 17px !important;
}

/* The lower client record stays to the right of the persistent current sidebar. */
.mz-ref-details {
  width: 100%;
  grid-template-columns: 400px minmax(620px, 1fr) 300px;
}

@media (max-width: 1500px) {
  body.mz-clients-reference-page { min-width: 1320px; }
  .mz-reference-crm { min-width: 1100px; }
  .mz-ref-details { grid-template-columns: 340px minmax(560px, 1fr) 260px; }
  .mz-ref-blackbar { padding-left: 17px !important; }
}

/* =====================================================================
   MedicareZulu Clients reference CRM layout v4
   Responsive pass: preserve the current native sidebar and desktop look,
   while making the Clients workspace scale cleanly on laptops/tablets.
   ===================================================================== */

/* Stop the reference reconstruction from forcing a desktop-width page. */
body.mz-clients-reference-page {
  min-width: 0 !important;
  overflow-x: hidden !important;
}
.mz-reference-crm {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-x: hidden;
}

/* Let the upper workspace grow naturally if controls wrap. On wide screens
   it still resolves to the same approximate 542px composition. */
.mz-ref-upper,
.mz-ref-upper-main {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}
.mz-ref-client-list-area {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}
.mz-ref-table-wrap {
  height: auto !important;
  max-height: 295px;
  overflow: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

/* Keep the command bar fluid instead of allowing its contents to push the
   whole page wider than the browser. */
.mz-ref-blackbar {
  min-width: 0;
  padding-left: 17px !important;
}
.mz-ref-global-search {
  width: clamp(260px, 40vw, 520px);
  min-width: 180px;
  flex: 1 1 420px;
}
.mz-ref-global-search input { min-width: 0; }
.mz-ref-top-actions {
  min-width: 0;
  flex: 0 1 auto;
}
.mz-ref-user-copy { min-width: 0; }

/* Make tab rows scroll within themselves rather than widening the page. */
.mz-ref-view-tabs,
.mz-ref-detail-tabs {
  overflow-x: auto !important;
  overflow-y: hidden;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.mz-ref-view-tabs a,
.mz-ref-detail-tabs a { flex: 0 0 auto; }

/* Flexible filters. */
.mz-ref-filterbar {
  height: auto !important;
  min-height: 64px;
}
.mz-ref-list-search,
.mz-ref-select,
.mz-ref-clear,
.mz-ref-filter-btn { min-width: 0; }

/* Keep the table scrolling inside its own viewport. */
.mz-ref-client-table {
  width: max(100%, 1070px);
  min-width: 1180px;
}

/* Fluid lower workspace. */
.mz-ref-details {
  width: 100% !important;
  min-width: 0;
  grid-template-columns: minmax(280px, 0.9fr) minmax(500px, 1.8fr) minmax(240px, 0.75fr);
  align-items: start;
}
.mz-ref-profile-panel,
.mz-ref-medicare-panel,
.mz-ref-detail-right,
.mz-ref-right-card { min-width: 0; }
.mz-ref-current-coverage { min-width: 0; }
.mz-ref-plan-options { min-width: 0; overflow-x: auto; }
.mz-ref-plan-options table { min-width: 640px; }

/* Large laptop / smaller desktop. Native sidebar remains unchanged. */
@media (max-width: 1500px) {
  body.mz-clients-reference-page > .app-main {
    margin-left: 220px !important;
  }
  .mz-ref-blackbar { gap: 12px; }
  .mz-ref-top-actions { gap: 11px; }
  .mz-ref-user-copy span { display: none; }
  .mz-ref-details {
    grid-template-columns: minmax(275px, .85fr) minmax(500px, 1.65fr) minmax(230px, .7fr) !important;
  }
  .mz-ref-filterbar {
    grid-template-columns: minmax(210px, 1.7fr) repeat(4, minmax(92px, 1fr)) 52px 76px !important;
    gap: 7px;
  }
}

/* 13-inch laptop / split-window range. Keep the visual hierarchy, but move
   the right rail under the first two columns instead of crushing all three. */
@media (max-width: 1320px) {
  .mz-ref-blackbar { padding-left: 14px !important; }
  .mz-ref-global-search { flex-basis: 340px; }
  .mz-ref-top-actions > a:nth-of-type(3),
  .mz-ref-top-actions > a:nth-of-type(4) { display: none; }
  .mz-ref-user-copy { display: none; }
  .mz-ref-title-row { padding-inline: 14px; }
  .mz-ref-view-tabs { padding-inline: 14px; }

  .mz-ref-filterbar {
    grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(105px, 1fr)) auto auto !important;
    grid-auto-rows: 39px;
    gap: 8px;
    padding: 10px 14px;
  }
  .mz-ref-filterbar .mz-ref-select:nth-of-type(4),
  .mz-ref-filterbar .mz-ref-select:nth-of-type(5) { display: none; }

  .mz-ref-details {
    grid-template-columns: minmax(290px, .75fr) minmax(520px, 1.6fr) !important;
  }
  .mz-ref-detail-right {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .mz-ref-communications { min-height: 0; }
  .mz-ref-current-coverage {
    grid-template-columns: minmax(250px, 1fr) minmax(265px, .9fr);
  }
}

/* Narrow laptop / portrait tablet. */
@media (max-width: 1080px) {
  .mz-ref-blackbar { min-height: 49px; height: auto; padding-block: 7px; }
  .mz-ref-global-search { width: auto; flex: 1 1 auto; }
  .mz-ref-top-actions > a:not(:first-child) { display: none; }
  .mz-ref-user-avatar { width: 32px; height: 32px; }
  .mz-ref-chevron { display: none; }

  .mz-ref-title-row {
    height: auto;
    min-height: 62px;
    gap: 10px;
    padding-block: 11px;
  }
  .mz-ref-title-row h1 { font-size: 23px; }
  .mz-ref-btn { padding-inline: 10px; }

  .mz-ref-filterbar {
    grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(110px, .55fr)) auto auto !important;
  }
  .mz-ref-filterbar .mz-ref-select:nth-of-type(3),
  .mz-ref-filterbar .mz-ref-select:nth-of-type(4),
  .mz-ref-filterbar .mz-ref-select:nth-of-type(5) { display: none; }

  .mz-ref-client-table {
    width: 900px;
    min-width: 980px;
  }
  .mz-ref-client-table thead th:nth-child(9),
  .mz-ref-client-table td:nth-child(9) { width: 180px; }

  .mz-ref-details {
    grid-template-columns: 1fr !important;
  }
  .mz-ref-profile-panel { padding-inline: 16px; }
  .mz-ref-detail-right {
    grid-column: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .mz-ref-current-coverage {
    grid-template-columns: minmax(250px, 1fr) minmax(260px, .9fr);
  }
}

/* At this breakpoint the existing/native MedicareZulu sidebar already turns
   into the application's horizontal top navigation. Match that behavior. */
@media (max-width: 880px) {
  body.mz-clients-reference-page > .app-main {
    margin-left: 0 !important;
  }
  .mz-ref-blackbar {
    gap: 8px;
    padding-inline: 12px !important;
  }
  .mz-ref-top-actions > a { display: none !important; }
  .mz-ref-user-avatar { margin-left: 0; }

  .mz-ref-title-row { padding-inline: 12px; }
  .mz-ref-title-actions .mz-ref-btn-muted { display: none; }
  .mz-ref-view-tabs { padding-inline: 12px; }

  .mz-ref-filterbar {
    grid-template-columns: minmax(0, 1fr) auto !important;
    padding: 10px 12px;
  }
  .mz-ref-filterbar .mz-ref-select,
  .mz-ref-clear { display: none !important; }
  .mz-ref-filter-btn { min-width: 82px; }
  .mz-ref-count-row { padding-inline: 12px; }

  .mz-ref-table-wrap { max-height: 330px; }
  .mz-ref-client-table {
    width: 980px;
    min-width: 980px;
  }

  .mz-ref-details { padding: 7px; }
  .mz-ref-detail-right { grid-template-columns: 1fr; }
  .mz-ref-current-coverage { grid-template-columns: 1fr; }
  .mz-ref-plan-alert { min-height: 0; }
}

/* Phone-sized browser. The page remains data-dense, but controls and profile
   sections become touch-friendly and usable instead of shrinking to illegibility. */
@media (max-width: 620px) {
  .mz-ref-blackbar { min-height: 54px; }
  .mz-ref-global-search { min-width: 0; }
  .mz-ref-global-search input { font-size: 12px; }
  .mz-ref-user-avatar { display: none; }

  .mz-ref-title-row h1 { font-size: 21px; }
  .mz-ref-title-actions .mz-ref-btn { height: 32px; padding-inline: 9px; }
  .mz-ref-title-actions .mz-ref-btn .mz-ref-icon { display: none; }
  .mz-ref-view-tabs a { padding-inline: 13px; }

  .mz-ref-count-actions > button:first-of-type { display: none; }
  .mz-ref-client-table {
    width: 900px;
    min-width: 900px;
  }

  .mz-ref-profile-contact-grid { grid-template-columns: 1fr; }
  .mz-ref-profile-contact-grid > div,
  .mz-ref-profile-contact-grid > div.wide {
    grid-column: auto;
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .mz-ref-communication-row {
    grid-template-columns: 1fr repeat(3, auto);
    gap: 8px;
  }
  .mz-ref-communication-row > span { grid-column: 1 / -1; }
  .mz-ref-tags-block > div { padding-left: 0; }
  .mz-ref-detail-tabs { padding-inline: 12px; }
  .mz-ref-detail-tabs a { padding-inline: 13px; }
  .mz-ref-current-coverage { margin-inline: 7px; padding: 8px; }
  .mz-ref-plan-options,
  .mz-ref-key-considerations { margin-inline: 7px; }
  .mz-ref-key-considerations p { white-space: normal; }
}


/* =====================================================================
   MedicareZulu Clients v5 - in-place client record tabs
   Each tab swaps the center workspace content without leaving Clients.
   ===================================================================== */
.mz-ref-detail-tabs { align-items: stretch; }
.mz-ref-detail-tabs button {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  height: 38px;
  align-items: center;
  padding: 0 19px;
  border: 0;
  background: transparent;
  color: #4e5963;
  font: inherit;
  font-size: 9.5px;
  cursor: pointer;
  white-space: nowrap;
}
.mz-ref-detail-tabs button:first-child { padding-left: 0; }
.mz-ref-detail-tabs button:hover { color: #006edc; }
.mz-ref-detail-tabs button.active { color: #006edc; font-weight: 600; }
.mz-ref-detail-tabs button.active::after {
  position: absolute; right: 0; bottom: -1px; left: 0; height: 2px;
  background: #1086f1; content: "";
}
.mz-ref-detail-tabs button:focus-visible { outline: 2px solid #1086f1; outline-offset: -2px; }
.mz-ref-tab-content { min-width: 0; }
.mz-ref-tab-panel { min-width: 0; padding-bottom: 10px; }
.mz-ref-tab-panel[hidden] { display: none !important; }
.mz-ref-panel-heading {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 54px; margin: 0 10px; padding: 10px 0 8px; border-bottom: 1px solid #e1e6ea;
}
.mz-ref-panel-heading h3 { margin: 0; color: #14191d; font-size: 12px; }
.mz-ref-panel-heading p { margin: 3px 0 0; color: #6b747c; font-size: 8.8px; }
.mz-ref-inline-action {
  display: inline-flex; min-height: 27px; align-items: center; justify-content: center;
  padding: 0 10px; border: 1px solid #cfd8e1; border-radius: 4px; color: #0876de;
  background: #fff; font-size: 8.6px; font-weight: 600; white-space: nowrap;
}
.mz-ref-tab-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px; }
.mz-ref-data-card { min-width: 0; border: 1px solid #dce2e7; border-radius: 4px; background: #fff; overflow: hidden; }
.mz-ref-data-card-title { display: flex; height: 34px; align-items: center; justify-content: space-between; padding: 0 10px; border-bottom: 1px solid #e1e6ea; background: #f7f9fa; }
.mz-ref-data-card-title h4 { margin: 0; color: #20272d; font-size: 10px; }
.mz-ref-data-card-title span { display: grid; min-width: 20px; height: 20px; place-items: center; padding: 0 5px; border-radius: 10px; background: #e9f3fd; color: #0876de; font-size: 8px; font-weight: 700; }
.mz-ref-record-list { max-height: 310px; overflow: auto; }
.mz-ref-record-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; align-items: center; min-height: 58px; padding: 8px 10px; border-bottom: 1px solid #edf0f2; }
.mz-ref-record-row:last-child { border-bottom: 0; }
.mz-ref-record-icon { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #eaf3fc; color: #0876de; font-size: 7px; font-weight: 800; }
.mz-ref-record-icon.rx { background: #eef8ef; color: #278b4c; }
.mz-ref-record-row strong { display: block; overflow: hidden; color: #222a31; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.mz-ref-record-row p { margin: 2px 0; overflow: hidden; color: #57616a; font-size: 8.1px; text-overflow: ellipsis; white-space: nowrap; }
.mz-ref-record-row small { display: block; overflow: hidden; color: #89929a; font-size: 7.5px; text-overflow: ellipsis; white-space: nowrap; }
.mz-ref-record-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; color: #6b757d; font-size: 7.5px; white-space: nowrap; }
.mz-ref-record-meta a { color: #0876de; }
.mz-ref-panel-empty { display: flex; min-height: 122px; flex-direction: column; align-items: center; justify-content: center; padding: 18px; color: #6e7881; text-align: center; }
.mz-ref-panel-empty.large { min-height: 250px; }
.mz-ref-panel-empty.compact { min-height: 90px; }
.mz-ref-panel-empty strong { color: #333b42; font-size: 10px; }
.mz-ref-panel-empty p { max-width: 360px; margin: 5px 0; font-size: 8.5px; line-height: 1.4; }
.mz-ref-panel-empty a { color: #0876de; font-size: 8.5px; font-weight: 600; }
.mz-ref-wide-table-wrap { margin: 10px; overflow: auto; border: 1px solid #dce2e7; }
.mz-ref-wide-table { width: 100%; min-width: 690px; border-collapse: collapse; background: #fff; }
.mz-ref-wide-table th { height: 27px; padding: 0 8px; border-right: 1px solid #e1e6ea; background: #f3f5f7; color: #48525b; font-size: 8px; font-weight: 600; text-align: left; white-space: nowrap; }
.mz-ref-wide-table td { height: 34px; padding: 0 8px; border-top: 1px solid #e5e9ec; color: #333c43; font-size: 8.2px; white-space: nowrap; }
.mz-ref-wide-table td a { color: #0876de; font-weight: 600; }
.mz-ref-wide-table .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 7.8px; }
.mz-ref-document-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 10px; }
.mz-ref-document-card { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 10px; min-height: 92px; align-items: center; padding: 12px; border: 1px solid #dce2e7; border-radius: 4px; background: #fff; }
.mz-ref-document-card.muted { opacity: .72; }
.mz-ref-doc-icon { display: grid; width: 40px; height: 48px; place-items: center; border: 1px solid #cad7e2; border-radius: 3px; background: #f4f8fb; color: #0876de; font-size: 8px; font-weight: 800; }
.mz-ref-document-card strong { display: block; color: #20272d; font-size: 10px; }
.mz-ref-document-card p { margin: 4px 0 7px; color: #66717a; font-size: 8px; line-height: 1.35; }
.mz-ref-document-card a { color: #0876de; font-size: 8.2px; font-weight: 600; }
.mz-ref-activity-list { margin: 10px; border: 1px solid #dce2e7; border-radius: 4px; background: #fff; }
.mz-ref-activity-list > article { display: grid; grid-template-columns: 112px 12px minmax(0, 1fr); gap: 8px; min-height: 52px; align-items: center; padding: 7px 12px; border-bottom: 1px solid #e7ebee; }
.mz-ref-activity-list > article:last-of-type { border-bottom: 0; }
.mz-ref-activity-list time { color: #7b858d; font-size: 7.8px; }
.mz-ref-activity-dot { width: 8px; height: 8px; border-radius: 50%; background: #1684ee; }
.mz-ref-activity-dot.good { background: #20a25c; }
.mz-ref-activity-list strong { display: block; color: #272f36; font-size: 9px; }
.mz-ref-activity-list p { margin: 3px 0 0; color: #657079; font-size: 8.1px; line-height: 1.35; }
.mz-ref-task-list { margin: 10px; border: 1px solid #dce2e7; border-radius: 4px; background: #fff; }
.mz-ref-task-list article { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 9px; min-height: 58px; align-items: center; padding: 8px 12px; border-bottom: 1px solid #e7ebee; }
.mz-ref-task-list article:last-child { border-bottom: 0; }
.mz-ref-task-list article > span { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: #fff0df; color: #ca7500; font-size: 9px; font-weight: 800; }
.mz-ref-task-list article.complete > span { background: #e3f5e9; color: #238b4d; }
.mz-ref-task-list strong { display: block; color: #293139; font-size: 9px; }
.mz-ref-task-list p { margin: 3px 0 0; color: #68727b; font-size: 8.1px; }
.mz-ref-task-list a { color: #0876de; font-size: 8.3px; font-weight: 600; }
.mz-ref-notes-sheet { margin: 10px; overflow: hidden; border: 1px solid #dce2e7; border-radius: 4px; background: #fff; }
.mz-ref-note-body { min-height: 230px; padding: 16px; color: #343d45; font-size: 9.5px; line-height: 1.55; white-space: pre-wrap; }
.mz-ref-notes-sheet footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; padding: 0 12px; border-top: 1px solid #e5e9ec; background: #f7f9fa; color: #77818a; font-size: 7.8px; }
.mz-ref-enrollment-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 10px; }
.mz-ref-enrollment-summary > div { min-height: 58px; padding: 10px; border: 1px solid #dce2e7; border-radius: 4px; background: #fff; }
.mz-ref-enrollment-summary span { display: block; margin-bottom: 7px; color: #79838b; font-size: 7.8px; }
.mz-ref-enrollment-summary strong { display: block; overflow: hidden; color: #252d34; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1180px) {
  .mz-ref-tab-split { grid-template-columns: 1fr; }
  .mz-ref-document-grid { grid-template-columns: 1fr; }
  .mz-ref-enrollment-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .mz-ref-detail-tabs button { padding-inline: 13px; font-size: 9px; }
  .mz-ref-panel-heading { align-items: flex-start; flex-direction: column; }
  .mz-ref-record-row { grid-template-columns: 30px minmax(0, 1fr); }
  .mz-ref-record-meta { grid-column: 2; align-items: flex-start; }
  .mz-ref-activity-list > article { grid-template-columns: 86px 10px minmax(0, 1fr); }
  .mz-ref-enrollment-summary { grid-template-columns: 1fr; }
  .mz-ref-notes-sheet footer { align-items: flex-start; flex-direction: column; padding-block: 8px; }
}

/* =====================================================================
   MedicareZulu global command header v6
   Replaces the old page-name topbar on every authenticated page.
   Uses the same base/white-label color as the current sidebar.
   ===================================================================== */
.mz-global-header {
  position: relative;
  z-index: 18;
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 18px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: var(--admin-dark);
  color: #fff;
}
.mz-global-header-search {
  display: flex;
  width: min(520px, 44vw);
  min-width: 240px;
  height: 36px;
  flex: 1 1 440px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 4px;
  background: #f5f6f7;
  color: #65707a;
}
.mz-global-header-search svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-left: 11px;
}
.mz-global-header-search input {
  min-width: 0;
  min-height: 0;
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: #2c3338;
  font-size: 13px;
}
.mz-global-header-search input:focus { border: 0; box-shadow: none; }
.mz-global-header-search input::placeholder { color: #69737d; opacity: 1; }
.mz-global-header-actions {
  display: flex;
  min-width: 0;
  flex: 0 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  white-space: nowrap;
}
.mz-global-page-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}
.mz-global-page-actions > a:empty,
.mz-global-page-actions > div:empty { display: none; }
.mz-global-page-actions .topbar-actions { display: flex; align-items: center; gap: 7px; }
.mz-global-page-actions form { display: flex; margin: 0; }
.mz-global-page-actions .button {
  min-height: 30px;
  border-color: rgba(255,255,255,.24);
  background: rgba(255,255,255,.08);
  color: #fff;
  box-shadow: none;
}
.mz-global-page-actions .button:hover {
  border-color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.14);
  color: #fff;
}
.mz-global-page-actions .button.primary,
.mz-global-page-actions .button.secondary {
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.10);
  color: #fff;
  box-shadow: none;
}
.mz-global-header-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #f6f7f7;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}
.mz-global-header-link:hover { color: #fff; text-decoration: none; opacity: .9; }
.mz-global-header-link svg { width: 16px; height: 16px; flex: 0 0 auto; }
.mz-global-task-badge {
  position: absolute;
  top: -10px;
  right: -8px;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 999px;
  background: #d63638;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}
.mz-global-user-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  background: #278ee8;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.mz-global-user-copy {
  display: flex;
  min-width: 0;
  max-width: 150px;
  flex-direction: column;
  line-height: 1.12;
}
.mz-global-user-copy strong {
  overflow: hidden;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
}
.mz-global-user-copy span {
  overflow: hidden;
  margin-top: 3px;
  color: rgba(255,255,255,.72);
  font-size: 9px;
  text-overflow: ellipsis;
}
.mz-global-user-chevron { color: #63b5f5; font-size: 15px; line-height: 1; }

/* Clients now uses the shared base header; suppress the duplicate header that
   was embedded in the reference page itself. */
body.mz-clients-reference-page .app-main > .mz-global-header { display: flex !important; }
body.mz-clients-reference-page .mz-ref-blackbar { display: none !important; }
body.mz-clients-reference-page .content > .flash-stack { top: 66px; }

@media (max-width: 1450px) {
  .mz-global-header { gap: 12px; padding-inline: 14px; }
  .mz-global-header-actions { gap: 11px; }
  .mz-global-user-copy span { display: none; }
  .mz-global-page-actions .button { padding-inline: 8px; }
}
@media (max-width: 1220px) {
  .mz-global-header-search { width: auto; min-width: 210px; }
  .mz-global-header-link:nth-of-type(3),
  .mz-global-header-link:nth-of-type(4) { display: none; }
  .mz-global-user-copy { display: none; }
}
@media (max-width: 1000px) {
  .mz-global-page-actions { display: none; }
  .mz-global-header-link span { display: none; }
  .mz-global-header-actions { gap: 12px; }
}
@media (max-width: 880px) {
  .mz-global-header {
    min-height: 54px;
    padding: 8px 12px;
  }
  .mz-global-header-search { min-width: 0; flex: 1 1 auto; }
  .mz-global-header-link:not(:first-of-type) { display: none; }
  .mz-global-user-chevron { display: none; }
}
@media (max-width: 560px) {
  .mz-global-header-search input { font-size: 12px; }
  .mz-global-header-link { display: none !important; }
  .mz-global-user-avatar { width: 32px; height: 32px; flex-basis: 32px; }
}

/* =====================================================================
   MedicareZulu global command header interactions v9
   ===================================================================== */
.mz-global-header-link:is(button) {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  font: inherit;
}
.mz-global-header-link:is(button):focus-visible,
.mz-global-user-button:focus-visible {
  outline: 2px solid rgba(255,255,255,.9);
  outline-offset: 4px;
  border-radius: 3px;
}
.mz-header-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.mz-header-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 120;
  width: min(310px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid #d7dde2;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(22,35,46,.22);
  color: #222b33;
  white-space: normal;
}
.mz-header-menu[hidden] { display: none !important; }
.mz-header-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 18px;
  width: 11px;
  height: 11px;
  border-top: 1px solid #d7dde2;
  border-left: 1px solid #d7dde2;
  background: #fff;
  transform: rotate(45deg);
}
.mz-header-menu-heading {
  position: relative;
  z-index: 1;
  padding: 13px 15px 11px;
  border-bottom: 1px solid #e5e9ec;
  background: #f7f9fa;
}
.mz-header-menu-heading strong,
.mz-header-account strong {
  display: block;
  color: #1f282f;
  font-size: 13px;
  font-weight: 750;
}
.mz-header-menu-heading span,
.mz-header-account span {
  display: block;
  margin-top: 3px;
  color: #6a747d;
  font-size: 10px;
  line-height: 1.35;
}
.mz-header-menu > a,
.mz-header-logout-form button {
  display: block;
  width: 100%;
  padding: 11px 15px;
  border: 0;
  border-bottom: 1px solid #edf0f2;
  background: #fff;
  color: #253039;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.mz-header-menu > a:last-child,
.mz-header-logout-form:last-child button { border-bottom: 0; }
.mz-header-menu > a:hover,
.mz-header-logout-form button:hover {
  background: #f3f7fa;
  color: #0b6bc9;
  text-decoration: none;
}
.mz-header-menu > a span,
.mz-header-logout-form button span {
  display: block;
  font-size: 11px;
  font-weight: 700;
}
.mz-header-menu > a small,
.mz-header-logout-form button small {
  display: block;
  margin-top: 3px;
  color: #737e87;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.35;
}
.mz-header-logout-form { margin: 0; }
.mz-header-user-wrap { margin-left: 1px; }
.mz-global-user-button {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.mz-global-user-button:hover .mz-global-user-copy strong { text-decoration: underline; }
.mz-header-user-menu { width: min(280px, calc(100vw - 28px)); }
.mz-header-account {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 13px 15px;
  border-bottom: 1px solid #e5e9ec;
  background: #f7f9fa;
}
.mz-header-account-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #278ee8;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.mz-header-account > div:last-child { min-width: 0; }
.mz-header-account span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mz-header-menu-tasks { width: min(300px, calc(100vw - 28px)); }
.mz-global-task-badge[hidden] { display: none !important; }

@media (max-width: 1220px) {
  .mz-header-help-wrap { display: none; }
}
@media (max-width: 1080px) {
  .mz-header-messages-wrap { display: none; }
}
@media (max-width: 880px) {
  .mz-header-tasks-wrap,
  .mz-header-messages-wrap,
  .mz-header-help-wrap { display: none; }
  .mz-global-user-button .mz-global-user-copy { display: none; }
  .mz-global-user-button .mz-global-user-chevron { display: inline; }
}
@media (max-width: 560px) {
  .mz-header-user-menu {
    position: fixed;
    top: 62px;
    right: 10px;
  }
}

/* MedicareZulu compliance workspace v10 */
.mz-compliance-page {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.mz-compliance-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.mz-compliance-heading h2 {
  margin: 2px 0 5px;
  color: #20292f;
  font-size: 24px;
  line-height: 1.1;
}
.mz-compliance-heading p:not(.eyebrow) {
  margin: 0;
  color: #6b757d;
  font-size: 12px;
}
.mz-compliance-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #dfe4e8;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.mz-compliance-stats article {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 14px 16px;
  border-right: 1px solid #e5e9ec;
}
.mz-compliance-stats article:last-child { border-right: 0; }
.mz-compliance-stats span,
.mz-compliance-stats small {
  color: #6c767e;
  font-size: 10px;
}
.mz-compliance-stats strong {
  color: #1f282f;
  font-size: 24px;
  line-height: 1;
}
.mz-compliance-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(130px, .7fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid #dfe4e8;
  border-radius: 6px;
  background: #fff;
}
.mz-compliance-filters label,
.mz-compliance-editor-form label {
  display: grid;
  gap: 5px;
  color: #4f5a62;
  font-size: 10px;
  font-weight: 700;
}
.mz-compliance-filters input,
.mz-compliance-filters select,
.mz-compliance-editor-form input,
.mz-compliance-editor-form select,
.mz-compliance-editor-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #cfd6db;
  border-radius: 4px;
  background: #fff;
  color: #20292f;
  font: inherit;
  font-size: 11px;
}
.mz-compliance-filters input,
.mz-compliance-filters select,
.mz-compliance-editor-form input,
.mz-compliance-editor-form select {
  height: 34px;
  padding: 0 9px;
}
.mz-compliance-editor-form textarea {
  min-height: 92px;
  padding: 9px;
  resize: vertical;
}
.mz-compliance-filter-actions {
  display: flex;
  gap: 7px;
  align-items: center;
}
.mz-compliance-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, .8fr);
  gap: 14px;
  align-items: start;
}
.mz-compliance-list-panel,
.mz-compliance-editor {
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.mz-compliance-list-header,
.mz-compliance-editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-bottom: 1px solid #e2e7ea;
  background: #f7f9fa;
}
.mz-compliance-list-header h3,
.mz-compliance-editor-heading h3 {
  margin: 0;
  color: #222c33;
  font-size: 14px;
}
.mz-compliance-list-header span,
.mz-compliance-editor-heading span {
  color: #737d84;
  font-size: 10px;
}
.mz-compliance-editor-heading .eyebrow { margin: 0 0 3px; }
.mz-compliance-editor-heading > a {
  flex: 0 0 auto;
  color: #0b6bc9;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}
.mz-compliance-table-wrap {
  max-width: 100%;
  overflow: auto;
}
.mz-compliance-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #fff;
}
.mz-compliance-table th {
  padding: 9px 10px;
  border-bottom: 1px solid #dfe4e8;
  background: #fbfcfc;
  color: #66727a;
  font-size: 9px;
  font-weight: 750;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.mz-compliance-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #edf0f2;
  color: #39434a;
  font-size: 10px;
  vertical-align: middle;
}
.mz-compliance-table tr.is-selected td { background: #eef6fd; }
.mz-compliance-table tbody tr:hover td { background: #f7fbff; }
.mz-compliance-client-link {
  display: grid;
  gap: 2px;
  color: #1f282f;
  text-decoration: none;
}
.mz-compliance-client-link strong { font-size: 11px; }
.mz-compliance-client-link span { color: #748089; font-size: 9px; }
.mz-compliance-pill {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}
.mz-compliance-pill.ok { background: #e7f4eb; color: #1c6b38; }
.mz-compliance-pill.warn { background: #fff0df; color: #8a5310; }
.mz-compliance-empty { padding: 28px !important; text-align: center; color: #78838a !important; }
.mz-compliance-editor-form {
  display: grid;
  gap: 0;
  background: #fff;
}
.mz-compliance-editor-form fieldset {
  margin: 0;
  padding: 14px 15px 15px;
  border: 0;
  border-bottom: 1px solid #e7ebee;
}
.mz-compliance-editor-form legend {
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  color: #273139;
  font-size: 11px;
  font-weight: 800;
}
.mz-compliance-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 10px;
}
.mz-compliance-span-2 { grid-column: 1 / -1; }
.mz-compliance-notes { padding: 14px 15px 15px; border-bottom: 1px solid #e7ebee; }
.mz-compliance-editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px;
  background: #f8fafb;
}
.mz-compliance-editor-actions > span {
  color: #7a858c;
  font-size: 9px;
}
.mz-compliance-no-client {
  display: grid;
  gap: 5px;
  padding: 36px 20px;
  text-align: center;
}
.mz-compliance-no-client strong { color: #283239; font-size: 13px; }
.mz-compliance-no-client span { color: #77828a; font-size: 10px; }
.mz-compliance-footnote {
  margin: -3px 0 0;
  color: #7d878e;
  font-size: 9px;
}

@media (max-width: 1220px) {
  .mz-compliance-filters {
    grid-template-columns: minmax(220px, 1.4fr) repeat(2, minmax(130px, .75fr)) auto;
  }
  .mz-compliance-filters label:nth-of-type(4) { grid-column: auto; }
  .mz-compliance-workspace { grid-template-columns: minmax(0, 1fr); }
  .mz-compliance-editor { order: -1; }
}
@media (max-width: 900px) {
  .mz-compliance-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mz-compliance-stats article:nth-child(2) { border-right: 0; }
  .mz-compliance-stats article:nth-child(-n+2) { border-bottom: 1px solid #e5e9ec; }
  .mz-compliance-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mz-compliance-search { grid-column: 1 / -1; }
  .mz-compliance-filter-actions { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .mz-compliance-heading { align-items: stretch; flex-direction: column; }
  .mz-compliance-heading .button { align-self: flex-start; }
  .mz-compliance-stats { grid-template-columns: 1fr; }
  .mz-compliance-stats article,
  .mz-compliance-stats article:nth-child(2) { border-right: 0; border-bottom: 1px solid #e5e9ec; }
  .mz-compliance-stats article:last-child { border-bottom: 0; }
  .mz-compliance-filters { grid-template-columns: 1fr; }
  .mz-compliance-search,
  .mz-compliance-filter-actions { grid-column: auto; }
  .mz-compliance-form-grid { grid-template-columns: 1fr; }
  .mz-compliance-span-2 { grid-column: auto; }
  .mz-compliance-editor-actions { align-items: stretch; flex-direction: column; }
  .mz-compliance-editor-actions .button { width: 100%; }
}


/* Clients workspace: compliance card mirrors the dedicated Compliance page. */
.mz-ref-compliance-list .mz-compliance-dot {
  width: 15px;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
}
.mz-ref-compliance-list .mz-compliance-dot.tracked { color: #1b9b4c; }
.mz-ref-compliance-list .mz-compliance-dot.untracked { color: #9aa3ab; font-size: 17px; }
.mz-ref-compliance-updated {
  padding-top: 7px;
  margin-top: 4px;
  border-top: 1px solid #e5e9ec;
  color: #7b858e;
  font-size: 8px;
}


/* Clients v12: full-profile Expand and soft-archive actions */
.mz-ref-client-table thead th:nth-child(12) { width: 132px; }
.mz-ref-client-table .mz-ref-row-actions {
  width: 132px;
  white-space: nowrap;
}
.mz-ref-row-actions,
.mz-ref-profile-heading-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.mz-ref-row-actions form,
.mz-ref-profile-heading-actions form {
  margin: 0;
}
.mz-ref-expand-btn,
.mz-ref-archive-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 4px;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}
.mz-ref-expand-btn {
  border: 1px solid #b8d8f7;
  background: #f4f9ff;
  color: #006fdc;
}
.mz-ref-expand-btn:hover {
  border-color: #1688f2;
  background: #eaf4ff;
  color: #005fbd;
}
.mz-ref-archive-btn {
  border: 1px solid #e0b5b5;
  background: #fff7f7;
  color: #a53a3a;
}
.mz-ref-archive-btn:hover {
  border-color: #d46666;
  background: #fff0f0;
  color: #8e2828;
}
.mz-ref-archived-label {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 4px;
  background: #eef1f4;
  color: #68727c;
  font-size: 9.5px;
  font-weight: 700;
}
.mz-ref-profile-heading-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}
.mz-ref-profile-heading-actions .mz-ref-profile-status {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  padding: 0 9px;
  border-radius: 4px;
  background: #d8f1df;
  color: #246a3c;
  font-size: 9px;
  font-weight: 600;
}
.mz-ref-expand-profile,
.mz-ref-archive-profile {
  min-height: 25px;
  padding-inline: 8px;
}

@media (max-width: 1180px) {
  .mz-ref-client-table { min-width: 1420px; }
}

@media (max-width: 720px) {
  .mz-ref-profile-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .mz-ref-profile-heading-actions {
    justify-content: flex-start;
    width: 100%;
  }
}


/* Clients toolbar bulk archive action */
.mz-ref-count-actions form#mz-ref-bulk-archive-form {
  display: inline-flex;
  margin: 0;
}

.mz-ref-count-actions .mz-ref-bulk-archive-toolbar {
  border-color: #d9a2a2;
  color: #b42318;
  background: #fff;
  font-weight: 700;
}

.mz-ref-count-actions .mz-ref-bulk-archive-toolbar:hover:not(:disabled) {
  border-color: #b42318;
  background: #fff4f2;
  color: #8f1c13;
}

.mz-ref-count-actions .mz-ref-bulk-archive-toolbar:disabled {
  border-color: #d9dee5;
  color: #9aa4b2;
  background: #f7f8fa;
  cursor: not-allowed;
  opacity: .72;
}

.mz-ref-count-actions .mz-ref-bulk-archive-toolbar span {
  min-width: 0;
}


/* Sidebar navigation icons: semantic line icons */
.nav-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  align-items: center;
  justify-content: center;
  color: #a7aaad;
  line-height: 1;
}
.nav-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-link:hover .nav-icon,
.nav-link.active .nav-icon {
  color: #fff;
}


/* Clients toolbar bulk Push to CRM */
.mz-ref-count-actions form#mz-ref-bulk-crm-form,
.mz-ref-count-actions form#mz-ref-bulk-archive-form {
  display: inline-flex;
  margin: 0;
}

.mz-ref-count-actions .mz-ref-bulk-crm-toolbar {
  border: 1px solid #8abced;
  border-radius: 4px;
  background: #eef7ff;
  color: #0869c9;
  font-weight: 700;
}

.mz-ref-count-actions .mz-ref-bulk-crm-toolbar:hover:not(:disabled) {
  border-color: #1688f2;
  background: #e1f1ff;
  color: #005fbd;
}

.mz-ref-count-actions .mz-ref-bulk-crm-toolbar:disabled {
  border-color: #d9dee5;
  background: #f7f8fa;
  color: #9aa4b2;
  cursor: not-allowed;
  opacity: .72;
}

.mz-ref-count-actions .mz-ref-bulk-crm-toolbar span {
  min-width: 0;
}


/* Client profile actions live below the global header instead of inside it. */
.case-profile-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

.case-profile-actions form {
  display: inline-flex;
  margin: 0;
}

.case-profile-actions .button {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .case-profile-actions {
    justify-content: flex-start;
  }

  .case-profile-actions .button,
  .case-profile-actions form {
    width: 100%;
  }

  .case-profile-actions form .button {
    width: 100%;
  }
}


/* Selected client's current plan on Plan Search */
.mz-current-plan-search-slot {
  margin: 0 0 22px;
}

.mz-current-plan-search-slot[hidden] {
  display: none !important;
}

.plan-card.mz-current-plan-card {
  border: 2px solid #16a34a;
  box-shadow: 0 0 0 1px rgba(22, 163, 74, .12), 0 8px 22px rgba(22, 163, 74, .08);
}

.mz-current-plan-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 3px 8px;
  border: 1px solid #86d59e;
  border-radius: 999px;
  background: #eaf8ef;
  color: #137a38;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .02em;
  text-transform: uppercase;
  vertical-align: middle;
}


/* Clients selected-profile actions v27 — compact, flat action rail */
.mz-ref-profile-heading {
  display: block;
  padding-bottom: 8px;
}

.mz-ref-profile-commands {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e3e7eb;
}

.mz-ref-profile-command,
.mz-ref-disposition-menu > summary {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 1px solid #cfd6dd;
  border-radius: 4px;
  background: #fff;
  color: #283540;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.mz-ref-profile-command {
  padding: 0 10px;
}

.mz-ref-profile-command:hover,
.mz-ref-disposition-menu > summary:hover {
  border-color: #9ba8b4;
  background: #f7f9fb;
  color: #17212a;
}

.mz-ref-profile-command.primary {
  border-color: #9ec9f2;
  color: #066fce;
}

.mz-ref-profile-command.primary:hover {
  border-color: #1688f2;
  background: #f3f8fe;
  color: #005eb8;
}

.mz-ref-disposition-menu {
  position: relative;
  margin: 0;
}

.mz-ref-disposition-menu > summary {
  gap: 6px;
  min-width: 132px;
  padding: 0 9px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.mz-ref-disposition-menu > summary::-webkit-details-marker {
  display: none;
}

.mz-ref-disposition-menu > summary span {
  color: #68737d;
  font-weight: 600;
}

.mz-ref-disposition-menu > summary strong {
  color: #24313b;
  font-weight: 700;
}

.mz-ref-disposition-menu > summary b {
  margin-left: 1px;
  color: #707b85;
  font-size: 11px;
  font-weight: 700;
}

.mz-ref-disposition-menu[open] > summary {
  border-color: #1688f2;
  box-shadow: 0 0 0 2px rgba(22, 136, 242, .10);
}

.mz-ref-disposition-popover {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  z-index: 30;
  width: 154px;
  padding: 5px;
  border: 1px solid #d5dbe1;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(28, 39, 49, .14);
}

.mz-ref-disposition-label {
  padding: 6px 8px 5px;
  color: #7a858f;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.mz-ref-disposition-popover form {
  display: block;
  margin: 0;
}

.mz-ref-disposition-popover button,
.mz-ref-disposition-current {
  display: flex;
  width: 100%;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  box-sizing: border-box;
  padding: 0 8px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #283540;
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  text-align: left;
}

.mz-ref-disposition-popover button {
  cursor: pointer;
}

.mz-ref-disposition-popover button:hover {
  background: #f3f6f8;
}

.mz-ref-disposition-current {
  background: #edf7f0;
  color: #247240;
}

.mz-ref-disposition-current span {
  font-weight: 800;
}

.mz-ref-profile-archive-form {
  display: inline-flex;
  margin: 0 0 0 2px;
  padding-left: 8px;
  border-left: 1px solid #dfe4e8;
}

.mz-ref-profile-archive-link {
  min-height: 30px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #a33d3d;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.mz-ref-profile-archive-link:hover {
  color: #812a2a;
  text-decoration: underline;
}

@media (max-width: 720px) {
  .mz-ref-profile-commands {
    align-items: stretch;
  }

  .mz-ref-profile-command,
  .mz-ref-disposition-menu > summary {
    min-height: 34px;
  }

  .mz-ref-disposition-popover {
    left: auto;
    right: 0;
  }
}


/* Clients v28 — actual client calendar + scheduled tasks */
@media (min-width: 1321px) {
  .mz-ref-details {
    grid-template-columns: 400px minmax(620px, 1fr) 350px;
  }
}

.mz-ref-calendar-card {
  min-height: 365px;
  padding: 12px 13px 11px;
}

.mz-ref-calendar-title {
  margin-bottom: 10px;
}

.mz-ref-calendar-title > div {
  min-width: 0;
}

.mz-ref-calendar-title h3 {
  margin: 0;
}

.mz-ref-calendar-title > div > span {
  display: block;
  margin-top: 2px;
  color: #7a848d;
  font-size: 7.8px;
}

.mz-ref-calendar-title > button {
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid #b9d6ef;
  border-radius: 4px;
  background: #f5faff;
  color: #0876de;
  font: inherit;
  font-size: 8.4px;
  font-weight: 700;
  cursor: pointer;
}

.mz-ref-calendar-title > button:hover {
  border-color: #1688f2;
  background: #edf7ff;
}

.mz-ref-calendar-toolbar {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  min-height: 31px;
  margin: 0 -2px 5px;
}

.mz-ref-calendar-toolbar strong {
  color: #222b33;
  font-size: 10px;
  text-align: center;
}

.mz-ref-calendar-toolbar button {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #5f6b75;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.mz-ref-calendar-toolbar button:hover {
  border-color: #d7dfe6;
  background: #f5f7f9;
  color: #0876de;
}

.mz-ref-calendar-weekdays,
.mz-ref-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.mz-ref-calendar-weekdays {
  margin-bottom: 3px;
}

.mz-ref-calendar-weekdays span {
  padding: 2px 0;
  color: #89929a;
  font-size: 6.8px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.mz-ref-calendar-grid {
  overflow: hidden;
  border: 1px solid #dce2e7;
  border-radius: 4px;
  background: #fff;
}

.mz-ref-calendar-day {
  position: relative;
  display: flex;
  min-width: 0;
  height: 36px;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 5px 5px;
  border: 0;
  border-right: 1px solid #edf0f2;
  border-bottom: 1px solid #edf0f2;
  background: #fff;
  color: #37414a;
  font: inherit;
  cursor: pointer;
}

.mz-ref-calendar-day:nth-child(7n) {
  border-right: 0;
}

.mz-ref-calendar-day:nth-last-child(-n + 7) {
  border-bottom: 0;
}

.mz-ref-calendar-day:hover {
  background: #f7fbff;
}

.mz-ref-calendar-day.outside {
  background: #fafbfc;
  color: #afb6bc;
}

.mz-ref-calendar-day.today .mz-ref-calendar-day-number {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: #087cf0;
  color: #fff;
}

.mz-ref-calendar-day.selected {
  box-shadow: inset 0 0 0 1.5px #1688f2;
  background: #f5faff;
}

.mz-ref-calendar-day-number {
  font-size: 8px;
  line-height: 1;
}

.mz-ref-calendar-markers {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.mz-ref-calendar-markers i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.mz-ref-calendar-markers i.system {
  background: #8a63d2;
}

.mz-ref-calendar-markers i.task {
  background: #1688f2;
}

.mz-ref-calendar-markers b {
  color: #69747e;
  font-size: 6px;
  font-weight: 700;
}

.mz-ref-calendar-add-form {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 7px;
  margin-top: 9px;
  padding: 8px;
  border: 1px solid #cfe0ef;
  border-radius: 4px;
  background: #f8fbfe;
}

.mz-ref-calendar-add-form[hidden] {
  display: none !important;
}

.mz-ref-calendar-add-form label {
  display: block;
  min-width: 0;
}

.mz-ref-calendar-add-form label span {
  display: block;
  margin-bottom: 3px;
  color: #69747e;
  font-size: 7px;
  font-weight: 700;
}

.mz-ref-calendar-add-form input {
  width: 100%;
  min-width: 0;
  height: 29px;
  min-height: 29px;
  padding: 0 7px;
  border: 1px solid #cfd7de;
  border-radius: 3px;
  background: #fff;
  font-size: 8.5px;
}

.mz-ref-calendar-form-actions {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-end;
  gap: 5px;
}

.mz-ref-calendar-form-actions button {
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid #cfd7de;
  border-radius: 3px;
  background: #fff;
  color: #4c5862;
  font: inherit;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.mz-ref-calendar-form-actions button[type="submit"] {
  border-color: #087cf0;
  background: #087cf0;
  color: #fff;
}

.mz-ref-calendar-day-agenda {
  margin-top: 9px;
  border-top: 1px solid #e2e7eb;
  padding-top: 8px;
}

.mz-ref-calendar-agenda-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.mz-ref-calendar-agenda-head strong {
  color: #303941;
  font-size: 8.8px;
}

.mz-ref-calendar-agenda-head span {
  color: #8a939b;
  font-size: 7.5px;
}

.mz-ref-calendar-agenda-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 20px;
  gap: 6px;
  align-items: center;
  min-height: 35px;
  border-top: 1px solid #edf0f2;
}

.mz-ref-calendar-agenda-item:first-child {
  border-top: 0;
}

.mz-ref-calendar-agenda-item > div strong,
.mz-ref-calendar-agenda-item > div small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mz-ref-calendar-agenda-item > div strong {
  color: #343d45;
  font-size: 8.2px;
  font-weight: 600;
}

.mz-ref-calendar-agenda-item > div small {
  margin-top: 2px;
  color: #89929a;
  font-size: 7px;
}

.mz-ref-calendar-agenda-item.complete > div strong {
  color: #879099;
  text-decoration: line-through;
}

.mz-ref-calendar-task-toggle,
.mz-ref-calendar-task-delete {
  margin: 0;
}

.mz-ref-calendar-task-toggle button {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  padding: 0;
  border: 1px solid #aeb8c1;
  border-radius: 50%;
  background: #fff;
  color: #1f8b4c;
  font-size: 9px;
  cursor: pointer;
}

.mz-ref-calendar-agenda-item.complete .mz-ref-calendar-task-toggle button {
  border-color: #8ac9a4;
  background: #eaf7ef;
}

.mz-ref-calendar-task-delete button {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #a0a8af;
  font-size: 14px;
  cursor: pointer;
}

.mz-ref-calendar-task-delete button:hover {
  color: #b13b36;
}

.mz-ref-calendar-event-mark {
  display: block;
  width: 7px;
  height: 7px;
  margin-left: 5px;
  border-radius: 50%;
  background: #8a63d2;
}

.mz-ref-calendar-agenda-empty {
  padding: 9px 2px 2px;
  color: #919aa2;
  font-size: 7.8px;
}

@media (max-width: 1320px) {
  .mz-ref-calendar-card {
    min-height: 350px;
  }
}

@media (max-width: 880px) {
  .mz-ref-calendar-card {
    min-height: 0;
  }
}


/* Clients v29 — Medicare Advantage has no client-specific renewal date column. */
.mz-ref-client-table thead th:nth-child(7) { width: 123px; }  /* plan status */
.mz-ref-client-table thead th:nth-child(8) { width: 225px; }  /* issues */
.mz-ref-client-table thead th:nth-child(9) { width: 160px; }  /* next action */
.mz-ref-client-table thead th:nth-child(10) { width: 166px; } /* notes */
.mz-ref-client-table thead th:nth-child(11) { width: 132px; } /* actions */

@media (max-width: 1100px) {
  .mz-ref-client-table thead th:nth-child(8),
  .mz-ref-client-table td:nth-child(8) { width: 180px; }
}


/* Clients v30 — working Export + Columns controls */
.mz-ref-columns-control {
  position: relative;
  display: inline-flex;
}

.mz-ref-columns-control > button[aria-expanded="true"] {
  border-color: #8fbde7;
  background: #f4f9fe;
}

.mz-ref-columns-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  width: 210px;
  padding: 6px;
  border: 1px solid #d3dbe2;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(31, 43, 53, .16);
}

.mz-ref-columns-popover[hidden] {
  display: none !important;
}

.mz-ref-columns-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 6px 6px;
  border-bottom: 1px solid #edf0f2;
  margin-bottom: 3px;
}

.mz-ref-columns-popover-head strong {
  color: #2e3942;
  font-size: 9px;
  font-weight: 700;
}

.mz-ref-columns-popover-head button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #0876de;
  font: inherit;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.mz-ref-columns-popover label {
  display: flex;
  min-height: 29px;
  align-items: center;
  gap: 8px;
  padding: 0 6px;
  border-radius: 3px;
  color: #3c4852;
  font-size: 8.5px;
  font-weight: 600;
  cursor: pointer;
}

.mz-ref-columns-popover label:hover {
  background: #f5f7f9;
}

.mz-ref-columns-popover input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #087cf0;
}

.mz-ref-client-table [data-mz-column][hidden] {
  display: none !important;
}
