@charset "UTF-8";
/* ════════════════════════════════════════════════════════════
   1. TOKENS → :root custom properties (light) + legacy aliases
   ════════════════════════════════════════════════════════════ */
:root,
[data-theme=light] {
  --font: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  --surface-page: #f3f5fb;
  --surface-card: #ffffff;
  --surface-subtle: #f7f9fd;
  --surface-inset: #eef1f8;
  --border: #e5e9f2;
  --border-strong: #d0d6e4;
  --border-default: #e5e9f2;
  --border-focus: #1251a0;
  --text-primary: #0b1220;
  --text-secondary: #49526a;
  --text-muted: #5d6678;
  --text-inverse: #ffffff;
  --brand: #1251a0;
  --brand-hover: #0d3f7e;
  --brand-active: #09305f;
  --brand-soft: #eaf2fb;
  --brand-ring: rgba(18, 81, 160, 0.2);
  --brand-grad: linear-gradient(135deg, #1251a0 0%, #2b73c4 100%);
  --brand-grad-soft:linear-gradient(135deg, rgba(18, 81, 160, 0.06), rgba(43, 115, 196, 0.06));
  --brand-glow: 0 6px 18px -6px rgba(18, 81, 160, 0.45);
  --brand-primary: #1251a0;
  --brand-subtle: #eaf2fb;
  --accent: #2b8bd6;
  --accent-soft: #e9f3fc;
  --success: #1f9d6b;
  --success-soft: #e7f7f0;
  --success-border: #b7e6cf;
  --warn: #c5810b;
  --warn-soft: #fdf4e3;
  --warn-border: #f3d8a0;
  --error: #df3b3b;
  --error-soft: #fdeeee;
  --error-border: #f6c9c9;
  --info: #0e7490;
  --info-soft: #e0f5fa;
  --info-border: #a8dbe8;
  --success-bg: #e7f7f0;
  --success-text: #147a4f;
  --warn-bg: #fdf4e3;
  --warn-text: #8a5a06;
  --warn-icon: #c5810b;
  --error-bg: #fdeeee;
  --error-text: #c92a2a;
  --input-bg: #ffffff;
  --input-border: #d0d6e4;
  --input-text: #0b1220;
  --input-label: #49526a;
  --input-label-active: #1251a0;
  --strength-1: #df3b3b;
  --strength-2: #ef7a23;
  --strength-3: #d9a90a;
  --strength-4: #1f9d6b;
  --panel-bg: linear-gradient(155deg, #0a1a36 0%, #123763 55%, #0c2747 100%);
  --shadow-xs: 0 1px 2px rgba(16, 30, 70, 0.06);
  --shadow-sm: 0 2px 4px rgba(16, 30, 70, 0.07), 0 1px 2px rgba(16, 30, 70, 0.05);
  --shadow-md: 0 6px 14px -4px rgba(16, 30, 70, 0.12), 0 2px 5px -2px rgba(16, 30, 70, 0.08);
  --shadow-lg: 0 14px 30px -8px rgba(16, 30, 70, 0.16), 0 4px 10px -4px rgba(16, 30, 70, 0.1);
  --shadow-xl: 0 28px 56px -16px rgba(16, 30, 70, 0.22);
  --shadow-btn: 0 4px 12px -4px rgba(18, 81, 160, 0.4);
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;
  --r-full: 999px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --t-fast: 140ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-base: 240ms cubic-bezier(0.32, 0.9, 0.4, 1);
  --sidebar-grad: linear-gradient(185deg, #0c1426 0%, #0a1120 100%);
  --tooltip-bg: #0b1220;
  --tooltip-text: #eef2fa;
  --skeleton-base: rgba(73, 82, 106, 0.12);
  --skeleton-highlight: rgba(73, 82, 106, 0.22);
}

/* ════════════════════════════════════════════════════════════
   2. TOKENS — DARK
   ════════════════════════════════════════════════════════════ */
[data-theme=dark] {
  --surface-page: #090d16;
  --surface-card: #131a29;
  --surface-subtle: #1a2233;
  --surface-inset: #212a3e;
  --border: #232c42;
  --border-strong: #313b56;
  --border-default: #232c42;
  --text-primary: #eef2fa;
  --text-secondary: #9aa3bb;
  --text-muted: #7d86a0;
  --brand: #4ea1ea;
  --brand-hover: #74b6f0;
  --brand-active: #9bccf5;
  --brand-soft: rgba(78, 161, 234, 0.16);
  --brand-ring: rgba(78, 161, 234, 0.32);
  --brand-grad: linear-gradient(135deg, #1c5aa6 0%, #3a82cf 100%);
  --brand-grad-soft:linear-gradient(135deg, rgba(78, 161, 234, 0.1), rgba(78, 161, 234, 0.1));
  --brand-glow: 0 6px 20px -6px rgba(78, 161, 234, 0.4);
  --brand-primary: #4ea1ea;
  --brand-subtle: rgba(78, 161, 234, 0.16);
  --accent: #45a7ec;
  --accent-soft: rgba(69, 167, 236, 0.14);
  --success: #34c98a;
  --success-soft: rgba(31, 157, 107, 0.16);
  --success-border: rgba(52, 201, 138, 0.32);
  --warn: #e3a83a;
  --warn-soft: rgba(197, 129, 11, 0.18);
  --warn-border: rgba(227, 168, 58, 0.32);
  --error: #f06a6a;
  --error-soft: rgba(223, 59, 59, 0.16);
  --error-border: rgba(240, 106, 106, 0.32);
  --info: #4bc7d8;
  --info-soft: rgba(14, 116, 144, 0.22);
  --info-border: rgba(75, 199, 216, 0.32);
  --success-bg: rgba(31, 157, 107, 0.16);
  --success-text: #34c98a;
  --warn-bg: rgba(197, 129, 11, 0.18);
  --warn-text: #e3a83a;
  --warn-icon: #e3a83a;
  --error-bg: rgba(223, 59, 59, 0.16);
  --error-text: #f06a6a;
  --input-bg: #1a2233;
  --input-border: #313b56;
  --input-text: #eef2fa;
  --input-label: #69718c;
  --input-label-active: #4ea1ea;
  --panel-bg: linear-gradient(155deg, #060d1c 0%, #0c2244 55%, #081730 100%);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 14px -4px rgba(0, 0, 0, 0.6), 0 2px 5px -2px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 14px 30px -8px rgba(0, 0, 0, 0.7), 0 4px 10px -4px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 28px 56px -16px rgba(0, 0, 0, 0.8);
  --shadow-btn: 0 4px 14px -4px rgba(78, 161, 234, 0.5);
  --sidebar-grad: linear-gradient(185deg, #070c18 0%, #05080f 100%);
  --tooltip-bg: #2a3656;
  --tooltip-text: #eef2fa;
  --skeleton-base: rgba(255, 255, 255, 0.05);
  --skeleton-highlight: rgba(255, 255, 255, 0.11);
}

/* ════════════════════════════════════════════════════════════
   3. RESET / BASE
   ════════════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden], .u-hidden {
  display: none !important;
}

/* 2026-07-27 — Readability: root bumped 16px->17px (whole di-system admin scales ~6.25% larger,
   rem-based; body 15->16px, table cells 14->~15px). Fixes live-user reading strain (100% laptop users). */
html {
  height: 100%;
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
  /* 2026-07-09 QA (Naveen): always reserve the window scrollbar gutter so centered content doesn't jump
     horizontally between a tall page (scrollbar shown) and a short one (no scrollbar). Fixes the "position
     shift" felt when switching between the doctor sub-pages (Profile/Clinics/Contacts/Settings). */
  scrollbar-gutter: stable;
}

body {
  height: 100%;
  font-family: var(--font);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--t-fast), color var(--t-fast);
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color var(--t-fast);
}

a:hover {
  color: var(--brand-hover);
}

img {
  max-width: 100%;
  display: block;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--r-full);
  border: 2px solid var(--surface-page);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

::selection {
  background: var(--brand-soft);
  color: var(--brand);
}

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

/* ════════════════════════════════════════════════════════════
   4. TOOLTIP (#tt-root — JS-positioned, overflow-immune)
   ════════════════════════════════════════════════════════════ */
#tt-root {
  position: fixed;
  z-index: 100000;
  background: var(--tooltip-bg);
  color: var(--tooltip-text);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.4;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  max-width: 240px;
  text-align: center;
  pointer-events: none;
  white-space: normal;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(2px);
  transition: opacity var(--t-fast), transform var(--t-fast);
  display: none;
}

#tt-root.tt-visible {
  opacity: 1;
  transform: translateY(0);
}

#tt-root::before {
  content: "";
  position: absolute;
  border: 5px solid transparent;
}

#tt-root.tt-top::before {
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-top-color: var(--tooltip-bg);
}

#tt-root.tt-bottom::before {
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-color: var(--tooltip-bg);
}

/* ════════════════════════════════════════════════════════════
   5. BRAND LOGO + THEME TOGGLE
   ════════════════════════════════════════════════════════════ */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.brand-logo__img {
  display: block;
  width: auto;
  transition: filter var(--t-base);
}

.brand-logo__badge {
  font-family: var(--font);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--r-xs);
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all var(--t-base);
}

.brand-logo--on-dark .brand-logo__img {
  filter: brightness(0) invert(1);
}

.brand-logo--on-dark .brand-logo__badge {
  background: rgba(255, 255, 255, 0.12);
  color: #cfe2fb;
}

[data-theme=dark] .brand-logo__img {
  filter: brightness(0) invert(1);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-card);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-base);
  outline: none;
}

.theme-toggle:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* ════════════════════════════════════════════════════════════
   6. APP SHELL — layout / sidebar / topbar / page-content
      (FRESH: light content, dark sidebar with SOLID-BRAND pills)
   ════════════════════════════════════════════════════════════ */
.dash-wrap {
  display: flex;
  min-height: 100vh;
  background: var(--surface-page);
}

.dash-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin-left: 248px;
  transition: margin-left var(--t-base);
}

/* ── Sidebar ── */
.sidebar {
  width: 248px;
  flex-shrink: 0;
  background: var(--sidebar-grad);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 400;
  transition: transform var(--t-base), width var(--t-base);
  overflow-x: hidden;
  overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border: none;
}

.sidebar--collapsed {
  width: 72px;
}

.sidebar--collapsed ~ .dash-main,
.sidebar--collapsed + .dash-main {
  margin-left: 72px;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 24, 0.6);
  z-index: 399;
  backdrop-filter: blur(3px);
}

.sidebar-overlay--visible {
  display: block;
}

.sidebar .brand-logo__img {
  filter: brightness(0) invert(1);
}

.sidebar .brand-logo__badge {
  background: rgba(255, 255, 255, 0.12);
  color: #cfe2fb;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 64px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar__brand-logo {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  transition: opacity var(--t-base), width var(--t-base);
}

.sidebar--collapsed .sidebar__brand-logo {
  opacity: 0;
  width: 0;
}

.sidebar__toggle {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.09);
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.sidebar__toggle:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.sidebar__nav {
  flex: 1;
  padding: 14px 0;
}

.sidebar__group-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
  padding: 18px 22px 7px;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity var(--t-base);
}

.sidebar--collapsed .sidebar__group-label {
  opacity: 0;
  height: 18px;
  padding-top: 10px;
}

/* nav item = inset rounded pill */
.sidebar__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  margin: 2px 12px;
  width: calc(100% - 24px);
  border-radius: var(--r-md);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: none;
  background: none;
  text-align: left;
  transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-base);
}

.sidebar__item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.sidebar__item--active {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--brand-glow);
}

.sidebar__item--active:hover {
  background: var(--brand-hover);
  color: #fff;
}

.sidebar__item-icon {
  font-size: 0.9375rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
  color: inherit;
  opacity: 0.95;
}

.sidebar__item-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar--collapsed .sidebar__item {
  justify-content: center;
  padding: 11px 0;
  margin: 2px 12px;
}

.sidebar--collapsed .sidebar__item-icon {
  width: auto;
}

.sidebar--collapsed .sidebar__item-text,
.sidebar--collapsed .sidebar__item-chevron {
  display: none;
}

.sidebar__item-chevron {
  font-size: 0.625rem;
  transition: transform var(--t-base);
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.4);
}

.sidebar__item--open .sidebar__item-chevron {
  transform: rotate(90deg);
}

.sidebar__sub {
  list-style: none;
  display: none;
  padding: 2px 0 4px;
}

.sidebar__sub--open {
  display: block;
}

.sidebar--collapsed .sidebar__sub {
  display: none !important;
}

.sidebar__sub-item {
  display: flex;
  align-items: center;
  gap: 9px;
  position: relative;
  padding: 7px 14px 7px 50px;
  margin: 1px 12px;
  border-radius: var(--r-sm);
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.8125rem;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  transition: background var(--t-fast), color var(--t-fast);
}

.sidebar__sub-item::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%);
  transition: background var(--t-fast);
}

.sidebar__sub-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
}

.sidebar__sub-item--active {
  color: #fff;
  font-weight: 600;
}

.sidebar__sub-item--active::before {
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-ring);
}

.sidebar__footer {
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.sidebar__logout {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 14px;
  color: rgba(244, 128, 128, 0.85);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--r-md);
  border: none;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  transition: background var(--t-fast), color var(--t-fast);
}

.sidebar__logout:hover {
  background: rgba(223, 59, 59, 0.14);
  color: #ff9d9d;
}

.sidebar--collapsed .sidebar__logout {
  justify-content: center;
}

.sidebar--collapsed .sidebar__logout span {
  display: none;
}

/* ── Topbar ── */
.topbar {
  height: 64px;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--surface-card) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 26px;
  position: sticky;
  top: 0;
  z-index: 300;
}

.topbar__mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
}

.topbar__mobile-toggle:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.topbar__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
  /* 2026-06-22 — BUG-MA-U26: truncate long dynamic titles so topbar doesn't h-scroll @375 */
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar__user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 5px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--surface-card);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.topbar__user:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-ring);
}

.topbar__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--brand-grad);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Page content ── */
.page-content {
  flex: 1;
  padding: 30px 28px;
  min-height: 0;
}

/* ════════════════════════════════════════════════════════════
   7. TYPOGRAPHY + PAGE HEADER + BREADCRUMB + HERO
   ════════════════════════════════════════════════════════════ */
.di-display {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.06;
  color: var(--text-primary);
}

.di-h1 {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.14;
  color: var(--text-primary);
}

.di-h2 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text-primary);
}

.di-h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.di-muted {
  color: var(--text-muted);
}

.di-secondary {
  color: var(--text-secondary);
}

.di-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brand);
}

.di-eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.di-gradient-text {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.di-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.di-page-header__titles {
  min-width: 0;
}

.di-page-header__title {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.di-page-header__sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.di-page-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.di-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.di-breadcrumb a:hover {
  color: var(--brand);
}

.di-breadcrumb__sep {
  opacity: 0.5;
}

.di-breadcrumb__current {
  color: var(--text-secondary);
  font-weight: 600;
}

.di-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--brand-grad);
  color: #fff;
  padding: 2rem 2.25rem;
  box-shadow: var(--brand-glow);
}

.di-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px 180px at 88% -50%, rgba(255, 255, 255, 0.18), transparent 65%);
}

.di-hero__inner {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.di-hero__eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.85;
}

.di-hero__title {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.14;
  margin-top: 0.5rem;
}

.di-hero__sub {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  max-width: 48ch;
  opacity: 0.9;
}

.di-hero__actions {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.di-hero__stat {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
  position: relative;
  flex-wrap: wrap;
}

.di-hero__stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.di-hero__stat-val {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.di-hero__stat-lbl {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* ════════════════════════════════════════════════════════════
   8. BUTTONS (di-btn — JS: --primary/ghost/danger/warn/sm, __spinner)
   ════════════════════════════════════════════════════════════ */
.di-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 40px;
  padding: 0 1.15rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast), color var(--t-fast), filter var(--t-fast);
}

.di-btn:active {
  transform: translateY(1px);
}

.di-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-ring);
}

.di-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.di-btn--sm {
  height: 32px;
  padding: 0 0.8rem;
  font-size: 0.8125rem;
  border-radius: var(--r-sm);
}

.di-btn--lg {
  height: 48px;
  padding: 0 1.6rem;
  font-size: 0.9375rem;
}

.di-btn--block {
  width: 100%;
}

/* 2026-06-11 — REL_25.17: square icon-only button (recurring need — PractitionerProfile row actions). Additive, no existing page affected. */
.di-btn--icon {
  padding: 0;
  width: 40px;
  flex-shrink: 0;
}

.di-btn--icon.di-btn--sm {
  width: 32px;
}

.di-btn--icon.di-btn--lg {
  width: 48px;
}

/* 2026-06-13 — REL_31: mobile a11y — standard buttons meet the 44px touch-target (WCAG 2.5.5); --sm stays compact for dense UI. All pages benefit. */
@media (max-width: 767px) {
  .di-btn:not(.di-btn--sm) {
    min-height: 44px;
  }
  .di-btn--icon:not(.di-btn--sm) {
    width: 44px;
  }
}
.di-btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-btn);
}

.di-btn--primary:hover:not(:disabled) {
  background: var(--brand-hover);
  transform: translateY(-1px);
}

.di-btn--secondary {
  background: var(--surface-card);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.di-btn--secondary:hover:not(:disabled) {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

.di-btn--ghost {
  background: transparent;
  color: var(--text-secondary);
}

.di-btn--ghost:hover:not(:disabled) {
  background: var(--surface-inset);
  color: var(--text-primary);
}

.di-btn--danger {
  /* 2026-06-22 — BUG-MA-U30 a11y: --error 4.35 → --error-text 5.47 AA (white text, app-wide) */
  background: var(--error-text);
  color: #fff;
}

.di-btn--danger:hover:not(:disabled) {
  filter: brightness(0.94);
  transform: translateY(-1px);
}

.di-btn--warn {
  background: var(--warn-soft);
  border-color: var(--warn-border);
  color: var(--warn);
}

.di-btn--warn:hover:not(:disabled) {
  background: var(--warn);
  color: #fff;
  border-color: var(--warn);
}

.di-btn--white {
  background: #fff;
  color: var(--brand);
}

.di-btn--white:hover:not(:disabled) {
  filter: brightness(0.96);
  transform: translateY(-1px);
}

.di-btn--on-grad {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(6px);
  border-color: rgba(255, 255, 255, 0.3);
}

.di-btn--on-grad:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.28);
}

.di-btn__spinner {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: di-spin 0.6s linear infinite;
}

@keyframes di-spin {
  to {
    transform: rotate(360deg);
  }
}
/* ════════════════════════════════════════════════════════════
   9. FORM FIELDS
   ════════════════════════════════════════════════════════════ */
.di-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

.di-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.di-label__req {
  color: var(--error);
  margin-left: 2px;
}

.di-input, .di-select, .di-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text-primary);
  /* 2026-06-18 — subtle fill so the control reads clearly on white cards; brightens on focus (advanced filled control, app-wide) */
  background-color: var(--surface-inset);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 0 0.9375rem;
  height: 44px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
}

.di-input::placeholder, .di-textarea::placeholder {
  color: var(--text-muted);
}

.di-input:hover, .di-select:hover, .di-textarea:hover {
  border-color: var(--text-muted);
}

.di-input:focus, .di-select:focus, .di-textarea:focus {
  outline: none;
  border-color: var(--brand);
  background-color: var(--surface-card);
  box-shadow: 0 0 0 3.5px var(--brand-ring);
}

.di-textarea {
  height: auto;
  padding: 0.7rem 0.9375rem;
  min-height: 96px;
  resize: vertical;
  line-height: 1.5;
}

.di-select {
  appearance: none;
  cursor: pointer;
  padding-right: 2.1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238990a6' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
}

/* 2026-06-11 — compact variant for dense in-table controls (shared; opt-in — old pages unaffected) */
.di-input--sm, .di-select--sm {
  height: 36px;
  font-size: 0.8125rem;
  border-radius: var(--r-sm);
}

.di-select--sm {
  padding-right: 1.8rem;
  background-position: right 0.65rem center;
}

.di-field__help {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.di-field__error {
  font-size: 0.75rem;
  /* 2026-07-02 — QA FIND-MA-PC-A11Y: --error (#df3b3b) on white is only 4.35:1 — fails WCAG AA (4.5:1) for this
     0.75rem text. Small validation text uses a darker red (#c62828 = 5.6:1); borders/icons keep --error (3:1 ok). App-wide. */
  color: #c62828;
  font-weight: 600;
}

/* 2026-07-02 — di-system shared Searchable Select (DiSearchSelect): type-to-filter over a long native <select>.
   Native stays source-of-truth (hidden); a button + body-portalled panel is layered over it. */
.di-ss { position: relative; }
.di-ss__native { display: none !important; }
.di-ss__btn { display: flex; align-items: center; gap: 0.5rem; width: 100%; text-align: left; cursor: pointer; }
.di-ss__btn > span { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.di-ss__btn--ph > span { color: var(--text-muted); }
.di-ss__btn:disabled { opacity: 0.6; cursor: not-allowed; }
.di-ss__caret { flex: 0 0 auto; font-size: 0.7rem; color: var(--text-muted); }
.di-ss__panel { position: fixed; z-index: 10000; background: var(--surface-card); border: 1px solid var(--border-strong); border-radius: var(--r-md, 8px); box-shadow: var(--shadow-lg, 0 8px 24px rgba(0,0,0,0.16)); padding: 0.5rem; max-height: 280px; display: flex; flex-direction: column; }
.di-ss__search { margin-bottom: 0.4rem; }
.di-ss__list { list-style: none; margin: 0; padding: 0; overflow-y: auto; }
.di-ss__opt { padding: 0.5rem 0.6rem; border-radius: var(--r-sm, 6px); cursor: pointer; font-size: 0.875rem; color: var(--text-primary); }
.di-ss__opt:hover { background: var(--surface-inset, var(--surface-subtle)); }
.di-ss__opt--active { background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.di-ss__opt--sel { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.di-ss__empty { padding: 0.6rem; font-size: 0.8125rem; color: var(--text-muted); text-align: center; }
/* creatable "Add …" row — commits a brand-new (typed) value */
.di-ss__add { display: flex; align-items: center; gap: 0.15rem; color: var(--brand); font-weight: 600; border-top: 1px dashed var(--border-strong); }
.di-ss__add:first-child { border-top: 0; border-bottom: 1px dashed var(--border-strong); margin-bottom: 0.15rem; }
.di-ss__add:hover, .di-ss__add.di-ss__opt--active { background: var(--brand-soft); box-shadow: none; }
.di-ss__add-ic { font-size: 0.7rem; }
.di-ss__add strong { font-weight: 700; }

.di-field--error .di-input, .di-field--error .di-select, .di-field--error .di-textarea {
  border-color: var(--error);
}

.di-field--error .di-input:focus {
  box-shadow: 0 0 0 3.5px var(--error-soft);
}

/* 2026-06-25 — QA FIND-MA-HC2: input-level error modifier. HospitalGroup.js + HospitalClinic.js toggle
   `.di-input--error` directly on the input (not via parent .di-field--error), but no rule existed →
   invalid inputs showed NO red border. App-wide fix. */
.di-input--error, .di-select--error, .di-textarea--error {
  border-color: var(--error);
}
.di-input--error:focus, .di-select--error:focus, .di-textarea--error:focus {
  border-color: var(--error);
  box-shadow: 0 0 0 3.5px var(--error-soft);
}

.di-search {
  position: relative;
}

.di-search__icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.8125rem;
  pointer-events: none;
}

.di-search .di-input {
  padding-left: 2.4rem;
}

/* 2026-06-25 — QA (NewDoctorSignup C8 S4, app-wide): hide the native grey search clear-×
   on type=search inputs — it clashes with the branded di-input (no CSS reboot resets it). */
.di-input[type=search]::-webkit-search-cancel-button,
.di-input[type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.di-check {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.di-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  cursor: pointer;
}

.di-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.di-switch input {
  position: absolute;
  opacity: 0;
}

.di-switch__track {
  width: 44px;
  height: 24px;
  border-radius: var(--r-full);
  background: var(--border-strong);
  transition: background var(--t-base);
  position: relative;
}

.di-switch__track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base);
}

.di-switch input:checked + .di-switch__track {
  background: var(--brand);
}

.di-switch input:checked + .di-switch__track::after {
  transform: translateX(20px);
}

.di-switch input:focus-visible + .di-switch__track {
  box-shadow: 0 0 0 3px var(--brand-ring);
}
/* 2026-07-06 — QA: a disabled switch must read as disabled (was visually identical to enabled).
   grayscale so a disabled ON (brand-blue) toggle no longer looks like an active tappable switch. */
.di-switch input:disabled + .di-switch__track {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(1);
}

/* 2026-06-12 — di-multiselect: SHARED searchable multi-select (chips + checklist panel). Replaces select2.
   JS factory: window.DiMultiSelect.create(mountEl, {options:[{value,label}], selected:[], placeholder, onChange}). */
.di-multiselect {
  position: relative;
}

.di-multiselect__control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.35rem 0.5rem;
  cursor: text;
  background: var(--surface-inset);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-md);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.di-multiselect__control:hover {
  border-color: var(--text-muted);
}

.di-multiselect--open .di-multiselect__control {
  border-color: var(--brand);
  box-shadow: 0 0 0 3.5px var(--brand-ring);
}

.di-multiselect__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  height: 26px;
  padding: 0 0.2rem 0 0.6rem;
  border-radius: var(--r-sm);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid transparent;
}

.di-multiselect__chip-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  border-radius: 50%;
  font-size: 0.9rem;
  line-height: 1;
}
.di-multiselect__chip-x:hover {
  background: var(--surface-inset);
}

.di-multiselect__search {
  flex: 1;
  min-width: 90px;
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text-primary);
  height: 28px;
  padding: 0 0.2rem;
}
.di-multiselect__search::placeholder {
  color: var(--text-muted);
}

.di-multiselect__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 30;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  max-height: 260px;
  overflow-y: auto;
  padding: 0.3rem;
  display: none;
}

.di-multiselect--open .di-multiselect__panel {
  display: block;
}

.di-multiselect__option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.6rem;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  color: var(--text-primary);
  cursor: pointer;
}
.di-multiselect__option:hover {
  background: var(--surface-subtle);
}
.di-multiselect__option--active {
  background: var(--brand-soft);
}
.di-multiselect__option--kbd {
  background: var(--surface-subtle);
  box-shadow: inset 0 0 0 1.5px var(--brand);
}
.di-multiselect__option { /* 2026-06-18 — keyboard-highlighted row */ }

.di-multiselect__option input {
  width: 17px;
  height: 17px;
  accent-color: var(--brand);
  cursor: pointer;
  flex-shrink: 0;
}

.di-multiselect__empty {
  padding: 0.85rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

/* ════════════════════════════════════════════════════════════
   10. CARD + STAT
   ════════════════════════════════════════════════════════════ */
.di-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: clip;
  transition: box-shadow var(--t-base), transform var(--t-base), border-color var(--t-base);
}

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

.di-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid var(--border);
}

.di-card__title {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.di-card__body {
  padding: 1.35rem;
}

.di-card__body--flush {
  padding: 0;
}

.di-card__footer {
  padding: 1rem 1.35rem;
  border-top: 1px solid var(--border);
  background: var(--surface-subtle);
}

.di-card--feature {
  background: var(--brand-grad);
  color: #fff;
  border: none;
  box-shadow: var(--brand-glow);
  position: relative;
}

.di-card--feature::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(360px 160px at 90% -30%, rgba(255, 255, 255, 0.22), transparent 70%);
}

.di-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.di-stat {
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-base), transform var(--t-base), border-color var(--t-base);
}

.di-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--brand);
  opacity: 0.9;
}

.di-stat:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.di-stat:active {
  transform: translateY(0);
}

.di-stat--green::before {
  background: var(--success);
}

.di-stat--amber::before {
  background: var(--warn);
}

.di-stat--teal::before {
  background: var(--accent);
}

.di-stat--error::before {
  background: var(--error);
}

.di-stat__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  background: var(--brand-soft);
  color: var(--brand);
}

.di-stat--green .di-stat__icon {
  background: var(--success-soft);
  color: var(--success);
}

.di-stat--amber .di-stat__icon {
  background: var(--warn-soft);
  color: var(--warn);
}

.di-stat--teal .di-stat__icon {
  background: var(--accent-soft);
  color: var(--accent);
}

.di-stat--error .di-stat__icon {
  background: var(--error-soft);
  color: var(--error);
}

/* extra categorical accents (decorative — stat cards only, brand stays blue) */
.di-stat--orange::before {
  background: #d97a12;
}

.di-stat--purple::before {
  background: #7257d8;
}

.di-stat--indigo::before {
  background: #4f5fd6;
}

.di-stat--pink::before {
  background: #d6457f;
}

.di-stat--orange .di-stat__icon {
  background: rgba(217, 122, 18, 0.12);
  color: #b9650b;
}

.di-stat--purple .di-stat__icon {
  background: rgba(114, 87, 216, 0.12);
  color: #6247c4;
}

.di-stat--indigo .di-stat__icon {
  background: rgba(79, 95, 214, 0.12);
  color: #4250c2;
}

.di-stat--pink .di-stat__icon {
  background: rgba(214, 69, 127, 0.12);
  color: #c23a6f;
}

[data-theme=dark] .di-stat--orange .di-stat__icon {
  color: #e8a04a;
}

[data-theme=dark] .di-stat--purple .di-stat__icon {
  color: #9d86f0;
}

[data-theme=dark] .di-stat--indigo .di-stat__icon {
  color: #8290ee;
}

[data-theme=dark] .di-stat--pink .di-stat__icon {
  color: #ec76a4;
}

/* 2026-07-27 — Readability bump (17px root) made the longest stat label wrap to 2 lines,
   pushing that card's number below its single-line-label siblings. Reserve a fixed 2-line
   label height so every card's value starts at the same Y — stat row stays aligned. */
.di-stat__label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.35;
  min-height: 2.7em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.di-stat__value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--text-primary);
}

.di-stat__trend {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  border-radius: var(--r-full);
}

.di-stat__trend--up {
  color: var(--success);
  background: var(--success-soft);
}

.di-stat__trend--down {
  color: var(--error);
  background: var(--error-soft);
}

.di-stat__trend:empty {
  display: none;
}

.di-stat__trend--link {
  cursor: pointer;
}

.di-stat__trend--link:hover {
  filter: brightness(0.95);
}

/* ════════════════════════════════════════════════════════════
   11. TABLE
   ════════════════════════════════════════════════════════════ */
.di-table-wrap {
  overflow-x: auto;
  position: relative;
  /* 2026-06-25 — QA (NewDoctorSignup C8 S3, app-wide): horizontal scroll-shadow hint so
     off-screen columns are discoverable on narrow screens. Self-hiding — the surface-card
     "cover" gradients (local) sit over the shadow gradients (scroll) and only reveal the
     shadow at an edge that has more content. No effect when the table fits. */
  background:
    linear-gradient(to right, var(--surface-card) 30%, rgba(0, 0, 0, 0)) left center,
    linear-gradient(to left, var(--surface-card) 30%, rgba(0, 0, 0, 0)) right center,
    radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0)) left center,
    radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0)) right center;
  background-repeat: no-repeat;
  background-size: 36px 100%, 36px 100%, 14px 100%, 14px 100%;
  background-attachment: local, local, scroll, scroll;
}

.di-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
} /* REL_32: 13px→14px cell readability (all pages) */
/* 2026-07-08 QA (Naveen: SubscriptionOrder amount header vs values misaligned): header default text-align via low-specificity `thead th` (0,0,2) so a page's single-class numeric-column selector (e.g. .so-th--amount{text-align:right}, .hc-th--num{text-align:center}) can override it. Previously `.di-table thead th` (0,1,2) beat `.xx-th--num` (0,1,0) → numeric headers stuck left while cells were right. NOTE (2026-07-09): was `:where(.di-table thead th)` but the build-time Bundler & Minifier can't parse `:where()` → build error. di-system.css loads ONLY in modern layouts where every table is `.di-table` (verified no non-di-table tables), so bare `thead th` is functionally equivalent AND minifier-safe. */
thead th { text-align: left; }
.di-table thead th {
  padding: 0.8rem 1.15rem;
  white-space: nowrap;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--border);
}

.di-table tbody td {
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  vertical-align: middle;
}

.di-table tbody tr {
  transition: background var(--t-fast);
}

.di-table tbody tr:hover td {
  background: var(--surface-subtle);
}

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

/* 2026-06-14 REL_42 (GAP-MA-031): dark table-header text was ~4.38:1 (< WCAG AA 4.5) — brighter secondary token lifts it. Benefits every admin table. */
[data-theme=dark] .di-table thead th {
  color: var(--text-secondary);
}

.di-cell-user {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.di-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--r-md);
  background: var(--brand-grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

.di-avatar--soft {
  background: var(--brand-soft);
  color: var(--brand);
}

/* ════════════════════════════════════════════════════════════
   12. CHIPS / BADGES
   ════════════════════════════════════════════════════════════ */
.di-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 36px;
  padding: 0 1rem;
  border-radius: var(--r-full);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--surface-card);
  color: var(--text-secondary);
  border: 1.5px solid var(--border-strong);
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}

.di-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.di-chip:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-ring);
} /* 2026-06-15 REL_43: branded keyboard focus ring (was UA default) — all chip usages */
.di-chip--active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: var(--shadow-btn);
}
.di-chip--active:hover {
  color: #fff;
  border-color: var(--brand);
}

/* 2026-06-14 — REL_42: removable read-out pill (shared; replaces page-local vd-chip + supersedes lu-chip on its next touch).
   A non-toggle soft-brand pill with a round remove (×) button. Dark-mode handled via tokens. */
.di-chip--removable {
  height: 30px;
  padding: 0 0.35rem 0 0.75rem;
  gap: 0.35rem;
  cursor: default;
  background: var(--brand-soft);
  color: var(--brand);
  border-color: transparent;
  font-size: 0.78rem;
}

.di-chip--removable:hover {
  border-color: transparent;
  color: var(--brand);
}

.di-chip__text {
  white-space: nowrap;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.di-chip__x {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: inherit;
  cursor: pointer;
  font-size: 0.78rem;
  line-height: 1;
  transition: background var(--t-fast), color var(--t-fast);
}

.di-chip__x:hover {
  background: var(--error);
  color: #fff;
}

.di-chip__x:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-ring);
}

[data-theme=dark] .di-chip__x {
  background: rgba(255, 255, 255, 0.12);
}

.di-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.33rem;
  height: 24px;
  padding: 0 0.6rem;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  white-space: nowrap;
} /* REL_32: 11px→12px readability */
.di-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.di-badge--success {
  background: var(--success-soft);
  color: var(--success-text);
  border-color: var(--success-border);
} /* 2026-06-18 U18b/U19: AA-safe text token */
.di-badge--warn {
  background: var(--warn-soft);
  color: var(--warn-text);
  border-color: var(--warn-border);
}

.di-badge--error {
  background: var(--error-soft);
  color: var(--error-text);
  border-color: var(--error-border);
}

.di-badge--info {
  background: var(--info-soft);
  color: var(--info);
  border-color: var(--info-border);
}

.di-badge--neutral {
  background: var(--surface-inset);
  color: var(--text-secondary);
  border-color: var(--border-strong);
}

/* di-tag — 2026-06-13 (REL_36): read-only soft label pill (specialities, categories, attributes). NOT interactive —
   cf. di-chip (clickable 36px filter) and di-badge (status). Reuse for any static tag; don't roll a page-local one. */
.di-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.6rem;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid transparent;
  white-space: nowrap;
}

.di-tag--neutral {
  background: var(--surface-inset);
  color: var(--text-secondary);
}

/* ════════════════════════════════════════════════════════════
   13. TABS
   ════════════════════════════════════════════════════════════ */
.di-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1.5px solid var(--border);
}

.di-tab {
  padding: 0.75rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color var(--t-fast);
}

.di-tab:hover {
  color: var(--text-primary);
}

.di-tab--active {
  color: var(--brand);
}

.di-tab--active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1.5px;
  height: 2.5px;
  background: var(--brand);
  border-radius: 3px 3px 0 0;
}

.di-tab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-ring);
  border-radius: var(--r-xs) var(--r-xs) 0 0;
} /* 2026-06-16 REL_51: branded keyboard focus ring (was UA default) — all di-tabs usages */
/* 2026-06-16 — REL_51: doctor-context sub-nav (shared _ProviderContextNav partial; di-tabs strip + right-aligned back-link). Anchor links composing .di-tabs. */
.pp-subnav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0 0 1.25rem;
}

.pp-subnav__tabs {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
} /* padding-bottom keeps the .di-tab--active underline (bottom:-1.5px) from being clipped by the scroll overflow */
.pp-subnav .di-tab {
  text-decoration: none;
  white-space: nowrap;
} /* di-tab is a <button> reset; here used on <a> nav links */
.pp-subnav__back {
  flex: 0 0 auto;
  text-decoration: none;
}

@media (max-width: 575px) {
  .pp-subnav {
    gap: 0.6rem;
  }
  .pp-subnav__back {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }
} /* min-height 44px = mobile touch target (di-btn--sm is 32px) */
/* 2026-06-16 — REL_52: shared doctor-identity hero (avatar + name + Verified + speciality tags + contact line).
   Promoted from REL_51's page-local pc-identity; reused by _ProviderIdentityHero partial across Contacts + Settings. */
.pp-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.1rem;
}

.pp-identity__avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--r-full);
  flex: 0 0 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.pp-identity__avatar--initials {
  background: var(--brand-soft);
}

.pp-identity__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pp-identity__initials {
  color: var(--brand);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pp-identity__meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.pp-identity__namerow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.pp-identity__name {
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.pp-identity__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pp-identity__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.2rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.pp-identity__citem {
  position: relative;
  overflow-wrap: anywhere;
}

.pp-identity__citem + .pp-identity__citem::before {
  content: "·";
  position: absolute;
  left: -0.7rem;
  color: var(--text-muted);
}

/* ════════════════════════════════════════════════════════════
   14. PAGINATION
   ════════════════════════════════════════════════════════════ */
.di-pagination {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.di-page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  border-radius: var(--r-sm);
  background: var(--surface-card);
  border: 1.5px solid var(--border-strong);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}

.di-page-btn:hover:not(:disabled) {
  border-color: var(--brand);
  color: var(--brand);
}

.di-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.di-page-btn--active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* 2026-07-08 QA (Naveen-caught, app-wide): active page hover kept white text on blue bg via the generic :hover (color:var(--brand)) → text merged into background. Keep white text + darken bg on hover. */
.di-page-btn--active:hover:not(:disabled) {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: #fff;
}

.di-page-ellipsis {
  padding: 0 4px;
  color: var(--text-muted);
}

/* 2026-06-25 — QA (NewDoctorSignup C8 S4, app-wide): 44px touch target on mobile (WCAG 2.5.5) */
@media (max-width: 767px) {
  .di-page-btn {
    min-width: 44px;
    height: 44px;
  }
}

/* 2026-06-25 — QA (DIApprovalDoc C8 S3, app-wide): filter chips ≥44px touch target on mobile (WCAG 2.5.5).
   min-height floors above any page height override (e.g. .dia-chips 34px) without changing desktop density. */
@media (max-width: 767px) {
  .di-chip {
    min-height: 44px;
  }
}

/* ════════════════════════════════════════════════════════════
   15. ALERTS
   ════════════════════════════════════════════════════════════ */
.di-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.95rem 1.1rem;
  border-radius: var(--r-md);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid transparent;
}

.di-alert__icon {
  flex-shrink: 0;
  margin-top: 1px;
}

.di-alert--success {
  background: var(--success-soft);
  color: var(--success);
  border-color: var(--success-border);
}

.di-alert--warn {
  background: var(--warn-soft);
  /* 2026-07-06 — QA a11y: --warn (#c5810b) on --warn-soft = 2.94:1 fails WCAG AA for text; --warn-text
     (#8a5a06 light / #e3a83a dark) is the AA-compliant text token. Border/icon accent stays warn. */
  color: var(--warn-text);
  border-color: var(--warn-border);
}

.di-alert--error {
  background: var(--error-soft);
  color: var(--error);
  border-color: var(--error-border);
}

.di-alert--info {
  background: var(--info-soft);
  color: var(--info);
  border-color: var(--info-border);
}

.di-alert--fade-out {
  transition: opacity 0.4s;
  opacity: 0;
}

/* ════════════════════════════════════════════════════════════
   16. EMPTY STATE
   ════════════════════════════════════════════════════════════ */
.di-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.75rem 1.5rem;
  gap: 0.85rem;
}

.di-empty__icon {
  width: 66px;
  height: 66px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.6rem;
}

.di-empty__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.di-empty__text {
  font-size: 0.8125rem;
  color: var(--text-muted);
  max-width: 340px;
}

/* ════════════════════════════════════════════════════════════
   17. SKELETON
   ════════════════════════════════════════════════════════════ */
.di-skel, .skeleton {
  background: linear-gradient(90deg, var(--skeleton-base) 25%, var(--skeleton-highlight) 50%, var(--skeleton-base) 75%);
  background-size: 200% 100%;
  animation: di-shimmer 1.4s infinite linear;
  border-radius: var(--r-xs);
  display: inline-block;
}

@keyframes di-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
/* ════════════════════════════════════════════════════════════
   18. CONFIRM MODAL (di-modal — JS: DiModal; shown via removing u-hidden)
   ════════════════════════════════════════════════════════════ */
.di-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(8, 12, 24, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: di-overlay-in var(--t-fast);
  padding: 1rem;
} /* 2026-06-16 REL_53: above di-panel-overlay (1201) so a confirm DiModal opened from within a DiPanel (e.g. delete-photo) is clickable — was 1200 (behind panel) */
body.di-modal-open {
  overflow: hidden;
} /* REL_32: lock background scroll while a DiModal is open (a11y, INNOV-MA-132) */
@keyframes di-overlay-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.di-modal {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  width: min(440px, 100%);
  animation: di-modal-in var(--t-base);
}

@keyframes di-modal-in {
  from {
    transform: translateY(-14px) scale(0.96);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
.di-modal__header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.4rem 1.4rem 0.8rem;
}

.di-modal__icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  background: var(--error-soft);
  color: var(--error);
}
.di-modal__icon--brand {
  background: var(--brand-soft);
  color: var(--brand);
}
.di-modal__icon--success {
  background: var(--success-soft);
  color: var(--success-text);
}

.di-modal__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

/* 2026-06-13 — REL_31: × close button (top-right) on the shared confirm modal — all DiModal pages benefit */
.di-modal__close {
  margin-left: auto;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--r-md);
  transition: background var(--t-fast), color var(--t-fast);
}

.di-modal__close:hover {
  background: var(--surface-subtle);
  color: var(--text-primary);
}

.di-modal__body {
  padding: 0.25rem 1.4rem 1rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.55;
}

.di-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  padding: 0.9rem 1.4rem 1.4rem;
  flex-wrap: wrap;
}

/* ════════════════════════════════════════════════════════════
   19. TOAST (di-toast — JS: DiToast; shown via removing u-hidden)
   ════════════════════════════════════════════════════════════ */
.di-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.15rem;
  min-width: 220px;
  max-width: min(400px, 100vw - 2rem);
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--success);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  animation: di-toast-in var(--t-base);
}

@keyframes di-toast-in {
  from {
    transform: translateY(18px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.di-toast__icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  color: var(--success);
}

.di-toast--success {
  border-left-color: var(--success);
}

.di-toast--success .di-toast__icon {
  color: var(--success);
}

.di-toast--error {
  border-left-color: var(--error);
}

.di-toast--error .di-toast__icon {
  color: var(--error);
}

.di-toast--warn {
  border-left-color: var(--warn);
}

.di-toast--warn .di-toast__icon {
  color: var(--warn);
}

/* ════════════════════════════════════════════════════════════
   20. KEBAB DROPDOWN (di-kebab / di-dropdown — JS: DiDropdown)
   ════════════════════════════════════════════════════════════ */
.di-kebab-wrap {
  position: relative;
  display: inline-block;
}

.di-kebab-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-card);
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}

.di-kebab-btn:hover, .di-kebab-btn[aria-expanded=true] {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

.di-kebab-btn:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-ring);
} /* 2026-06-16 REL_49: branded keyboard focus ring (was UA default) — all kebab usages */
/* 2026-06-12 — REL_29: mobile a11y — enlarge the row-action tap target to >=44px on touch screens (shared, all admin pages benefit) */
@media (max-width: 767px) {
  .di-kebab-btn {
    width: 44px;
    height: 44px;
  }
}
.di-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 600;
  min-width: 168px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  padding: 0.3rem;
  animation: di-drop-in var(--t-fast);
}

@keyframes di-drop-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.di-dropdown--open {
  display: block;
}

.di-dropdown--up {
  top: auto;
  bottom: calc(100% + 6px);
}

.di-dropdown__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: var(--r-sm);
  background: none;
  border: none;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: background var(--t-fast);
}

.di-dropdown__item:hover {
  background: var(--surface-subtle);
}

.di-dropdown__item:focus-visible {
  outline: none;
  background: var(--surface-subtle);
  box-shadow: inset 0 0 0 2px var(--brand-ring);
} /* 2026-06-16 REL_49: branded keyboard focus ring (was UA default) — all dropdown items */
.di-dropdown__item--danger {
  color: var(--error);
}

.di-dropdown__item--danger:hover {
  background: var(--error-soft);
}

.di-dropdown__divider {
  height: 1px;
  background: var(--border);
  margin: 0.3rem 0;
}

/* ════════════════════════════════════════════════════════════
   21. PANEL MODAL (di-panel — JS: DiPanel)
   ════════════════════════════════════════════════════════════ */
.di-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 1201;
  background: rgba(8, 12, 24, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: di-overlay-in var(--t-fast);
  padding: 1rem;
}

.di-panel {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  animation: di-modal-in var(--t-base);
}

.di-panel--sm {
  width: min(500px, 100%);
}

.di-panel--md {
  width: min(620px, 100%);
}

.di-panel--lg {
  width: min(760px, 100%);
}

.di-panel--xl {
  width: min(960px, 100%);
}

.di-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.di-panel__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.di-panel__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}

.di-panel__close:hover {
  background: var(--surface-subtle);
  border-color: var(--border);
  color: var(--text-primary);
}

.di-panel__body {
  padding: 1.35rem;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.di-panel__footer {
  padding: 0.9rem 1.35rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
  align-items: center;
  flex-shrink: 0;
  background: var(--surface-card);
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .di-panel {
    max-height: calc(100vh - 24px);
  }
}
/* ════════════════════════════════════════════════════════════
   22. RESPONSIVE — shell + grids (mobile-first guards)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .di-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 992px) {
  .di-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    width: 248px !important;
    box-shadow: 6px 0 30px rgba(0, 0, 0, 0.35);
  }
  .sidebar--mobile-open {
    transform: translateX(0);
  }
  .dash-main {
    margin-left: 0 !important;
  }
  .topbar__mobile-toggle {
    display: flex;
  }
}
@media (max-width: 600px) {
  .di-stats {
    grid-template-columns: 1fr 1fr;
  }
  .page-content {
    padding: 18px 16px;
  }
  .topbar {
    padding: 0 16px;
  }
  .topbar__user-name {
    display: none;
  }
  .di-page-header__title {
    font-size: 1.2rem;
  }
}
@media (max-width: 380px) {
  .di-stats {
    grid-template-columns: 1fr;
  }
}
/* ════════════════════════════════════════════════════════════
   23. GLOBAL LOADER (di-loader-bar — JS: DiLoader, auto via fetch)
   2026-06-11 — REL_25.15: thin top progress bar, non-blocking.
   ════════════════════════════════════════════════════════════ */
.di-loader-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--brand), var(--brand-hover));
  box-shadow: 0 0 10px var(--brand);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease;
  will-change: transform, opacity;
}

.di-loader-bar--active {
  opacity: 1;
}

.di-loader-bar--done {
  transition: transform 0.2s ease, opacity 0.35s ease 0.1s;
  opacity: 0;
}

/* ── 2026-07-28 — DiCall (Phone Link click-to-dial button + setup panel) + DiCallQueue (call-center focus dialer) ── */
.di-call { display: inline-flex; align-items: center; justify-content: center; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: var(--brand); color: #fff; border: 0; text-decoration: none; font-size: 0.68rem; box-shadow: 0 1px 2px rgba(16, 30, 70, 0.18); transition: filter var(--t-fast), box-shadow var(--t-fast); }
.di-call:hover { filter: brightness(1.12); box-shadow: 0 2px 5px rgba(16, 30, 70, 0.28); }
.di-cell-actions { display: inline-flex; align-items: center; gap: 0.4rem; }
.di-call-setup__lead { font-size: 0.9rem; color: var(--text-secondary); margin: 0; }
.di-call-setup__steps { margin: 0.75rem 0 0; padding-left: 1.15rem; display: flex; flex-direction: column; gap: 0.5rem; }
.di-call-setup__steps li { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.55; }
.di-call-setup__note { margin-top: 0.9rem; }

.di-cq { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.di-cq__backdrop { position: absolute; inset: 0; background: rgba(8,12,24,0.6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.di-cq__dialog { position: relative; z-index: 1; width: min(720px, 96vw); max-height: 92vh; background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-xl); display: flex; flex-direction: column; overflow: hidden; }
.di-cq__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 1.15rem; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.di-cq__title { font-weight: 700; font-size: 0.95rem; color: var(--text-primary); }
.di-cq__nav { display: flex; align-items: center; gap: 0.5rem; }
.di-cq__counter { font-size: 0.8125rem; color: var(--text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.di-cq__close { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-card); color: var(--text-muted); font-size: 1rem; cursor: pointer; transition: background var(--t-fast), color var(--t-fast); }
.di-cq__close:hover { background: var(--surface-subtle); color: var(--text-primary); }
.di-cq__body { padding: 1.3rem 1.35rem; overflow-y: auto; }
.di-cq__foot { padding: 0.6rem 1.15rem; border-top: 1px solid var(--border); }
.di-cq__hint { font-size: 0.75rem; color: var(--text-muted); }
.di-cq__hint kbd { display: inline-block; padding: 0.05rem 0.35rem; margin: 0 0.1rem; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 4px; background: var(--surface-card); font-family: inherit; font-size: 0.7rem; color: var(--text-secondary); }
.di-cq-card__name { margin: 0 0 0.15rem; font-size: 1.15rem; font-weight: 800; color: var(--text-primary); }
.di-cq-card__meta { margin: 0 0 1rem; font-size: 0.8125rem; color: var(--text-muted); }
.di-cq-card__rows { display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 1.1rem; }
.di-cq-card__row { display: flex; align-items: baseline; gap: 0.6rem; font-size: 0.9rem; }
.di-cq-card__label { flex: 0 0 6rem; color: var(--text-muted); font-size: 0.8125rem; }
.di-cq-card__value { color: var(--text-primary); font-weight: 600; overflow-wrap: anywhere; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.di-cq-card__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.di-cq-call i { margin-right: 0.4rem; }
@media (max-width: 640px) { .di-cq { padding: 0; } .di-cq__dialog { width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; border: 0; } }
