/* Shared visual language with the patient cabinet; load after existing styles. */
:root {
  --doctor-primary: var(--theme-primary);
  --doctor-brand: var(--theme-brand);
  --doctor-light: var(--viz-2);
  --doctor-soft: var(--theme-soft);
  --doctor-selected: var(--theme-soft-selected);
  --doctor-aqua: var(--theme-primary);
  --doctor-canvas: var(--theme-canvas);
  --doctor-heading: #0f172a;
  --doctor-text: #334155;
  --doctor-muted: #64748b;
  --doctor-border: #e2e8f0;
  --doctor-shadow: 0 2px 8px rgb(15 23 42 / 5%);
  --color-primary: var(--theme-primary);
  --color-primary-dark: var(--theme-primary-hover);
  --color-primary-light: var(--viz-2);
  --color-primary-soft: var(--theme-soft);
  --color-secondary: var(--theme-soft);
  --color-success: var(--theme-primary);
  --color-warning: #d97706;
  --color-danger: #dc2626;
  --color-background: var(--theme-canvas);
  --color-surface: #fff;
  --color-text: #334155;
  --color-text-primary: #0f172a;
  --color-text-secondary: #64748b;
  --color-border: #e2e8f0;
  --primary-color: var(--theme-primary);
  --primary-dark: var(--theme-primary-hover);
  --primary-light: var(--viz-2);
  --secondary-color: var(--theme-soft);
  --medical-primary: var(--theme-primary);
  --medical-secondary: var(--theme-soft);
  --medical-light: var(--theme-soft);
  --medical-aqua: var(--theme-primary);
  --bs-primary: var(--theme-primary);
  --bs-primary-rgb: var(--theme-primary-rgb, 3, 105, 161);
  --bs-link-color: var(--theme-primary);
  --bs-link-color-rgb: var(--theme-primary-rgb, 3, 105, 161);
  --bs-link-hover-color: var(--theme-primary-hover);
  --bs-link-hover-color-rgb: var(--theme-primary-hover-rgb, 7, 89, 133);
}
body.doctor-cabinet, body.stats-page, body.login-page {
  margin: 0; color: var(--doctor-text); background: var(--doctor-canvas);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px; line-height: 1.5; font-variant-numeric: tabular-nums;
  scrollbar-color: #cbd5e1 var(--doctor-canvas); scrollbar-width: thin;
}
:is(.doctor-cabinet, .stats-page, .login-page) ::selection { color: #0c4a6e; background: var(--theme-highlight); }
:is(.doctor-cabinet, .stats-page, .login-page) a { text-underline-offset: 3px; }
:is(.doctor-cabinet, .stats-page, .login-page) :focus-visible {
  outline: 3px solid var(--doctor-light); outline-offset: 3px;
}
.doctor-cabinet .main-nav {
  position: fixed; inset: 0 0 auto 268px; z-index: 1030; height: 72px;
  min-height: 72px; padding: 0; background: #fff; border: 0;
  border-bottom: 1px solid var(--doctor-border); border-radius: 0; box-shadow: none;
}
.doctor-cabinet .main-nav > .container-fluid {
  display: flex; flex-direction: row; align-items: center; gap: 0;
  height: 100%; padding: 0 32px;
}
.doctor-cabinet .nav-content { width: 100%; min-height: 72px; gap: 16px; }
.doctor-cabinet .main-menu-wrapper { display: none; }
.doctor-cabinet .brand-logo-link { display: flex; align-items: center; min-width: 0; }
.doctor-cabinet .brand-logo-img { max-width: 180px; max-height: 36px; object-fit: contain; }
.doctor-cabinet .user-menu-btn { position: relative; margin-left: auto; }
.doctor-cabinet .btn-user-select {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 40px; padding: 8px 12px; color: var(--doctor-heading);
  background: #fff; border: 1px solid var(--doctor-border);
  border-radius: 10px; font-size: 13px; box-shadow: none;
}
.doctor-cabinet .btn-user-select:hover { background: var(--doctor-soft); }
.doctor-cabinet .user-dropdown-menu {
  top: calc(100% + 10px); right: 0; min-width: 210px; padding: 6px;
  background: #fff; border: 1px solid var(--doctor-border); border-radius: 12px;
  box-shadow: 0 12px 28px rgb(15 23 42 / 10%);
}
.doctor-cabinet .user-dropdown-menu a { border-radius: 8px; font-size: 13px; }
.doctor-cabinet #sidebar-col {
  position: fixed; inset: 0 auto 0 0; z-index: 1040; width: 268px;
  height: 100dvh; margin: 0; padding: 0; background: #fff;
  border-right: 1px solid var(--doctor-border); overflow-y: auto;
}
.doctor-cabinet .sidebar-menu {
  position: static; top: auto; display: flex; flex-direction: column;
  min-height: 100%; margin: 0; padding: 0 14px 18px;
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
}
.doctor-sidebar-brand {
  display: flex; align-items: center; gap: 12px; min-height: 88px;
  margin: 0 -14px 18px; padding: 16px 18px; color: var(--doctor-heading);
  border-bottom: 1px solid var(--doctor-border); text-decoration: none;
}
.doctor-sidebar-brand:hover { color: var(--doctor-heading); }
.doctor-sidebar-brand-icon {
  display: grid; place-items: center; flex: 0 0 40px; height: 40px;
  color: #fff; background: var(--doctor-brand);
  border-radius: 12px; font-size: 21px;
}
.doctor-sidebar-brand strong { display: block; color: var(--doctor-primary); font-size: 15px; font-weight: 700; }
.doctor-sidebar-brand small { display: block; margin-top: 2px; color: var(--doctor-muted); font-size: 12px; }
.doctor-cabinet .sidebar-menu .menu-item {
  display: flex; align-items: center; gap: 11px; min-height: 42px;
  margin: 0 0 5px; padding: 10px 13px; color: var(--doctor-text);
  background: transparent; border: 0; border-radius: 12px;
  font-size: 13px; font-weight: 500; line-height: 1.4;
  text-decoration: none; box-shadow: none; transform: none;
}
.doctor-cabinet .sidebar-menu .menu-item i { width: 20px; font-size: 18px; }
.doctor-cabinet .sidebar-menu .menu-item:hover { background: var(--doctor-soft); }
.doctor-cabinet .sidebar-menu .menu-item.active {
  color: #fff; background: var(--doctor-primary); font-weight: 600;
}
.doctor-cabinet .sidebar-menu .menu-item.active i { color: inherit; }
.doctor-cabinet .sidebar-menu .doctor-sidebar-help {
  margin-top: auto; border-top: 1px solid var(--doctor-border); border-radius: 0 0 12px 12px;
}
.doctor-cabinet .main-content {
  width: auto; max-width: none; min-height: calc(100dvh - 64px);
  margin: 0 0 0 268px; padding: 102px 32px 48px;
}
.doctor-cabinet .main-content > .container-fluid { max-width: 1400px; margin: 0 auto; padding: 0; }
.doctor-cabinet #main-content-col { flex: 0 0 100%; width: 100%; max-width: 100%; min-width: 0; }
.doctor-cabinet .page-title, .stats-page .stats-page-title {
  margin: 0 0 24px; color: var(--doctor-heading); font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 700; line-height: 1.25; letter-spacing: -.021em;
}
.doctor-cabinet .site-footer {
  margin-left: 268px; padding: 20px 32px; color: var(--doctor-muted);
  background: transparent; border-top: 1px solid var(--doctor-border); font-size: 12px;
}
.doctor-cabinet :is(.burger-btn, .bottom-nav, .burger-overlay, .burger-drawer) { display: none; }
/* Legacy appointment decoration used !important; retain selection without animation. */
.doctor-cabinet :is(.sidebar-menu .menu-item, .burger-nav-item, .bottom-nav-item).appointment-highlight {
  color: var(--doctor-primary) !important; background: var(--doctor-soft) !important;
  border-color: transparent !important; box-shadow: none !important;
  animation: none !important; transform: none !important;
}
.doctor-cabinet :is(.sidebar-menu .menu-item, .burger-nav-item).appointment-highlight.active {
  color: #fff !important; background: var(--doctor-primary) !important;
}
.doctor-cabinet .sidebar-menu .appointment-highlight i { color: var(--doctor-primary) !important; }
.doctor-cabinet .sidebar-menu .appointment-highlight.active i { color: #fff !important; }
.doctor-cabinet .appointment-highlight::before,
.doctor-cabinet .appointment-highlight::after { display: none !important; }
:is(.doctor-cabinet, .stats-page) :is(
  .module-shell, .doc-profile-card, .cc-dash-card, .onec-stat-card, .onec-donut-card,
  .onec-stats-panel, .filter-card-shell, .selection-card, .appt-sel-card,
  .appt-svc-card, .stat-card, .metric-card, .card, .trend-card, .kpi-card,
  .dash-team-card, .section-mini-card
) {
  color: var(--doctor-text); background: #fff; border: 1px solid var(--doctor-border);
  border-radius: 14px; box-shadow: var(--doctor-shadow); transform: none;
}
:is(.doctor-cabinet, .stats-page) :is(
  .module-shell, .doc-profile-card, .cc-dash-card, .onec-stat-card, .onec-donut-card,
  .onec-stats-panel, .selection-card, .appt-sel-card, .appt-svc-card, .stat-card,
  .metric-card, .card, .trend-card, .kpi-card, .dash-team-card, .section-mini-card
):hover { box-shadow: var(--doctor-shadow); transform: none; }
:is(.doctor-cabinet, .stats-page) :is(.onec-stat-card-gradient, .onec-stat-card-gradient-fill) { display: none; }
.doctor-cabinet #missedRevenueCardWrap .cc-dash-card,
.doctor-cabinet #kkCalcCardWrap .cc-dash-card { border-left-width: 1px !important; }
:is(.doctor-cabinet, .stats-page) :is(
  .doc-profile-card-header, .card-header, .module-header, .module-shell-header,
  .onec-stats-panel-header, .cc-dash-card-header
) {
  min-height: 48px; padding: 12px 16px; color: var(--doctor-heading); background: #fff;
  border-bottom: 1px solid var(--doctor-border); border-radius: 14px 14px 0 0;
  font-size: 14px; font-weight: 650;
}
:is(.doctor-cabinet, .stats-page) :is(.doc-profile-card-body, .card-body, .module-body, .module-shell-body) { padding: 20px; }
:is(.doctor-cabinet, .stats-page) :is(
  .card-title, .module-title, .dash-section-heading, .cc-dash-title, .onec-panel-title,
  .filter-title, .cc-dash-card-title, .trend-card-title, .onec-donut-card-title,
  .kpi-card-title, .dash-team-card-title, .section-mini-card-title
) { color: var(--doctor-heading); font-size: 14px; font-weight: 650; line-height: 1.4; letter-spacing: normal; }
:is(.doctor-cabinet, .stats-page) .step-main-title {
  color: var(--doctor-heading); font-size: clamp(20px, 2vw, 26px);
  font-weight: 700; line-height: 1.3; letter-spacing: -.021em;
}
:is(.doctor-cabinet, .stats-page) :is(.filter-card-shell, .selection-card) { padding: 18px; }
:is(.doctor-cabinet, .stats-page) :is(.form-control, .form-select, .filter-input-control, .form-input-modern) {
  min-height: 42px; padding: 10px 12px; color: var(--doctor-heading); background-color: #fff;
  border: 1px solid var(--doctor-border); border-radius: 10px;
  font-family: inherit; font-size: 14px; box-shadow: none;
}
:is(.doctor-cabinet, .stats-page) textarea.form-control { min-height: 108px; resize: vertical; }
:is(.doctor-cabinet, .stats-page) :is(.form-control, .form-select, .filter-input-control, .form-input-modern):focus {
  border-color: var(--doctor-light); box-shadow: 0 0 0 3px rgb(56 189 248 / 14%);
}
:is(.doctor-cabinet, .stats-page) :is(.form-label, .form-label-modern) {
  margin-bottom: 6px; color: var(--doctor-text); font-size: 13px; font-weight: 600;
}
:is(.doctor-cabinet, .stats-page) :is(
  .btn, .appt-continue-btn, .btn-appointment, .btn-step-next,
  .btn-filter-reset, .admin-subtab-btn, .onec-stats-chip
) {
  min-height: 38px; border-radius: 10px; font-family: inherit; font-size: 13px;
  font-weight: 600; line-height: 1.4; box-shadow: none; transform: none;
}
:is(.doctor-cabinet, .stats-page) :is(
  .btn-primary, .btn-filter-apply, .btn-appointment, .btn-step-next, .appt-continue-btn.active
) { color: #fff; background: var(--doctor-primary); border: 1px solid var(--doctor-primary); border-radius: 10px; }
:is(.doctor-cabinet, .stats-page) :is(
  .btn-primary, .btn-filter-apply, .btn-appointment, .btn-step-next, .appt-continue-btn.active
):hover { color: #fff; background: var(--doctor-primary); border-color: var(--doctor-primary); transform: none; box-shadow: none; }
:is(.doctor-cabinet, .stats-page) :is(
  .btn-outline-primary, .btn-quick-select, .btn-filter-reset, .admin-subtab-btn, .onec-stats-chip
) { color: var(--doctor-primary); background: #fff; border: 1px solid var(--doctor-border); border-radius: 10px; box-shadow: none; }
:is(.doctor-cabinet, .stats-page) :is(
  .btn-outline-primary, .btn-quick-select, .btn-filter-reset, .admin-subtab-btn, .onec-stats-chip
):hover { color: var(--doctor-primary); background: var(--doctor-soft); border-color: var(--doctor-light); }
:is(.doctor-cabinet, .stats-page) :is(
  .btn-quick-select.active, .appt-sel-card.selected, .appt-sel-card.active,
  .appt-svc-card.selected, .appt-svc-card.active, .selection-card.selected, .selection-card.active,
  .admin-subtab-btn.active, .admin-subtab-btn[aria-selected="true"],
  .onec-stats-chip.active, .onec-stats-chip[aria-pressed="true"]
) { color: var(--doctor-primary); background: var(--doctor-selected); border-color: var(--doctor-light); box-shadow: none; }
:is(.doctor-cabinet, .stats-page) :is(button, .btn):disabled { cursor: not-allowed; opacity: .55; }
:is(.doctor-cabinet, .stats-page) .nav-tabs { gap: 4px; border-bottom-color: var(--doctor-border); }
:is(.doctor-cabinet, .stats-page) .nav-tabs .nav-link { padding: 10px 14px; color: var(--doctor-muted); border-radius: 10px 10px 0 0; font-size: 13px; }
:is(.doctor-cabinet, .stats-page) .nav-tabs .nav-link.active {
  color: var(--doctor-primary); background: #fff;
  border-color: var(--doctor-border) var(--doctor-border) #fff; font-weight: 600;
}
:is(.doctor-cabinet, .stats-page) :is(.table, .admin-table, .cc-journal-table) { width: 100%; color: var(--doctor-text); font-size: 13px; }
:is(.doctor-cabinet, .stats-page) :is(.table, .admin-table, .cc-journal-table) > thead > tr > th {
  padding: 12px 14px; color: var(--doctor-muted); background: #f8fafc;
  border-bottom: 1px solid var(--doctor-border); font-size: 12px; font-weight: 600;
}
:is(.doctor-cabinet, .stats-page) :is(.table, .admin-table, .cc-journal-table) > tbody > tr > td {
  padding: 13px 14px; border-bottom: 1px solid var(--doctor-border); vertical-align: middle;
}
:is(.doctor-cabinet, .stats-page) .table-hover > tbody > tr:hover > * {
  --bs-table-accent-bg: var(--doctor-soft); --bs-table-bg-state: var(--doctor-soft);
}
:is(.doctor-cabinet, .stats-page) :is(.admin-table, .cc-journal-table) tbody tr:hover { background: var(--doctor-soft); }
:is(.doctor-cabinet, .stats-page) .progress { height: 7px; background: #e8f5f3; border-radius: 10px; }
:is(.doctor-cabinet, .stats-page) .progress-bar:not(.bg-danger):not(.bg-warning):not(.bg-success) { background: var(--doctor-aqua); }
:is(.doctor-cabinet, .stats-page) .modal-content {
  background: #fff; border: 1px solid var(--doctor-border); border-radius: 16px;
  box-shadow: 0 20px 60px rgb(15 23 42 / 16%);
}
:is(.doctor-cabinet, .stats-page) .modal-header { padding: 16px 20px; border-bottom-color: var(--doctor-border); }
:is(.doctor-cabinet, .stats-page) .modal-title { color: var(--doctor-heading); font-size: 18px; font-weight: 650; }
:is(.doctor-cabinet, .stats-page) .modal-body { padding: 20px; }
:is(.doctor-cabinet, .stats-page) .modal-footer { padding: 14px 20px; border-top-color: var(--doctor-border); }
.stats-page .stats-topbar { padding: 18px 32px; background: #fff; border-bottom: 1px solid var(--doctor-border); box-shadow: none; }
.stats-page .stats-topbar-inner { max-width: 1400px; margin: auto; }
.stats-page .stats-page-title { margin-bottom: 8px; }
.stats-page .stats-page-subtitle { color: var(--doctor-muted); font-size: 14px; }
.stats-page .stats-back-link { color: var(--doctor-primary); font-size: 13px; }
body.login-page { display: block; min-height: 100dvh; height: auto; overflow-x: hidden; overflow-y: auto; }
.login-page .login-background { position: fixed; inset: 0; z-index: -1; background: var(--doctor-canvas); }
.login-page .login-shapes { display: none; }
.login-page .login-container {
  display: flex; align-items: center; justify-content: center; width: 100%;
  max-width: 500px; min-height: 100dvh; height: auto; margin: 0 auto; padding: 40px 20px;
}
.login-page .login-card {
  width: 100%; max-width: 460px; height: auto; max-height: none; padding: 36px;
  color: var(--doctor-text); background: #fff; border: 1px solid var(--doctor-border);
  border-radius: 16px; box-shadow: var(--doctor-shadow); overflow: visible; backdrop-filter: none;
}
.login-page .login-title { color: var(--doctor-heading); font-size: 28px; font-weight: 700; letter-spacing: -.021em; }
.login-page :is(.login-subtitle, .login-footer) { color: var(--doctor-muted); font-size: 13px; }
.login-page .form-label-modern { margin-bottom: 6px; color: var(--doctor-text); font-size: 13px; font-weight: 600; }
.login-page .form-input-modern { min-height: 46px; color: var(--doctor-heading); background: #fff; border: 1px solid var(--doctor-border); border-radius: 10px; font-size: 14px; box-shadow: none; }
.login-page .form-input-modern:focus { border-color: var(--doctor-light); box-shadow: 0 0 0 3px rgb(56 189 248 / 14%); }
.login-page .btn-login-primary { min-height: 46px; padding: 12px 18px; color: #fff; background: var(--doctor-primary); border: 1px solid var(--doctor-primary); border-radius: 10px; font-size: 14px; font-weight: 600; box-shadow: none; transform: none; }
.login-page .btn-login-primary:hover { background: var(--doctor-primary); border-color: var(--doctor-primary); box-shadow: none; transform: none; }
.login-page .login-link { color: var(--doctor-primary); }
.login-page :is(.login-card, .btn-login-primary)::before,
.login-page :is(.login-card, .btn-login-primary)::after { display: none; }
@media (max-width: 1023.98px) {
  .doctor-cabinet #sidebar-col { display: none; }
  .doctor-cabinet .main-nav { left: 0; height: 62px; min-height: 62px; }
  .doctor-cabinet .main-nav > .container-fluid { padding: 0 16px; }
  .doctor-cabinet .nav-content { min-height: 62px; gap: 8px; }
  .doctor-cabinet .brand-logo-img { max-width: 130px; max-height: 30px; }
  .doctor-cabinet .btn-user-select { max-width: 190px; min-height: 44px; padding: 6px 9px; font-size: 12px; }
  .doctor-cabinet #doctorName { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .doctor-cabinet .burger-btn {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px;
    width: 44px; height: 44px; padding: 0; color: var(--doctor-heading);
    background: #fff; border: 1px solid var(--doctor-border); border-radius: 10px; font-size: 22px;
  }
  .doctor-cabinet .main-content { min-height: 100dvh; margin-left: 0; padding: 84px 16px calc(94px + env(safe-area-inset-bottom)); }
  .doctor-cabinet .page-title { margin-bottom: 20px; font-size: 24px; }
  .doctor-cabinet .main-content > .container-fluid > .row { --bs-gutter-y: 12px; }
  .doctor-cabinet .site-footer { margin-left: 0; padding: 16px 16px calc(86px + env(safe-area-inset-bottom)); }
  .doctor-cabinet .bottom-nav {
    position: fixed; inset: auto 0 0; z-index: 1035; display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; height: auto; min-height: 68px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: #fff;
    border: 0; border-top: 1px solid var(--doctor-border); border-radius: 0;
    box-shadow: 0 -2px 10px rgb(15 23 42 / 4%);
  }
  .doctor-cabinet .bottom-nav-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; min-width: 0; min-height: 54px; margin: 0; padding: 6px 2px;
    color: var(--doctor-muted); background: transparent; border: 0; border-radius: 10px;
    font-size: 10px; line-height: 1.2; text-decoration: none; box-shadow: none; transform: none;
  }
  .doctor-cabinet .bottom-nav-item > i { font-size: 21px; }
  .doctor-cabinet .bottom-nav-item.active { color: var(--doctor-primary); background: var(--doctor-soft); }
  .doctor-cabinet .bottom-nav-fab {
    display: grid; place-items: center; width: 30px; height: 26px; margin: 0;
    color: var(--doctor-primary); background: var(--doctor-selected);
    border: 0; border-radius: 8px; box-shadow: none; transform: none;
  }
  .doctor-cabinet .bottom-nav-fab i { font-size: 21px; }
  .doctor-cabinet .burger-overlay {
    position: fixed; inset: 0; z-index: 1050; display: block;
    background: rgb(15 23 42 / 35%); opacity: 0; visibility: hidden;
    transition: opacity .18s ease, visibility .18s ease;
  }
  .doctor-cabinet .burger-overlay.open { opacity: 1; visibility: visible; }
  .doctor-cabinet .burger-drawer {
    position: fixed; inset: 0 0 0 auto; z-index: 1060; display: flex; flex-direction: column;
    width: min(340px, 90vw); height: 100dvh; padding-bottom: env(safe-area-inset-bottom);
    background: #fff; border-left: 1px solid var(--doctor-border);
    box-shadow: -12px 0 40px rgb(15 23 42 / 12%); visibility: hidden;
    transform: translateX(100%); transition: transform .2s ease, visibility .2s ease;
  }
  .doctor-cabinet .burger-drawer.open { visibility: visible; transform: translateX(0); }
  .doctor-cabinet .burger-drawer-header {
    display: flex; align-items: center; justify-content: space-between; min-height: 72px;
    padding: 16px 20px; color: var(--doctor-heading); background: #fff;
    border-bottom: 1px solid var(--doctor-border); font-size: 16px; font-weight: 650;
  }
  .doctor-cabinet .burger-drawer-title { color: var(--doctor-heading); }
  .doctor-cabinet .burger-close-btn {
    display: grid; place-items: center; width: 44px; height: 44px;
    color: var(--doctor-muted); background: transparent; border: 1px solid var(--doctor-border); border-radius: 10px;
  }
  .doctor-cabinet .burger-drawer-nav { flex: 1; padding: 16px 14px; overflow-y: auto; }
  .doctor-cabinet .burger-nav-item {
    display: flex; align-items: center; gap: 12px; min-height: 44px; margin-bottom: 5px;
    padding: 11px 13px; color: var(--doctor-text); background: transparent; border: 0;
    border-radius: 12px; font-size: 13px; text-decoration: none; box-shadow: none;
  }
  .doctor-cabinet .burger-nav-item.active { color: #fff; background: var(--doctor-primary); }
  .doctor-cabinet .burger-nav-item i { font-size: 18px; }
  .doctor-cabinet .burger-nav-item.active i { color: #fff; }
  :is(.doctor-cabinet, .stats-page) :is(.doc-profile-card-body, .card-body, .module-body, .module-shell-body, .filter-card-shell, .selection-card) { padding: 16px; }
  .stats-page .stats-topbar { padding: 18px 16px; }
}
@media (max-width: 575.98px) {
  .doctor-cabinet .brand-logo-img { max-width: 90px; }
  .doctor-cabinet .user-menu-btn { min-width: 0; gap: 5px; }
  .doctor-cabinet #userRoleBadge { display: none !important; }
  .doctor-cabinet #tokenBalanceBadge { max-width: 72px; padding: 5px 7px !important; font-size: 11px !important; white-space: nowrap; }
  .doctor-cabinet .btn-user-select { min-width: 0; max-width: 130px; gap: 5px; padding: 6px; }
  .doctor-cabinet .main-content { padding-left: 12px; padding-right: 12px; }
  .login-page .login-container { padding: 24px 16px; }
  .login-page .login-card { padding: 26px 22px; }
  .login-page .login-title { font-size: 25px; }
}
.doctor-cabinet .stats-horiz-nav { display: none; }
.doctor-cabinet .dash-section-heading {
  color: var(--doctor-heading); font-size: 18px; font-weight: 650;
  letter-spacing: normal; text-transform: none; border: 0;
}
.doctor-cabinet .service-card,
:is(.doctor-cabinet, .stats-page) .admin-stat-card {
  color: var(--doctor-text); background: #fff;
  border: 1px solid var(--doctor-border); border-radius: 14px;
  box-shadow: var(--doctor-shadow); opacity: 1; animation: none; transform: none;
}
.doctor-cabinet .service-card:hover {
  background: var(--doctor-soft); border-color: var(--doctor-light);
  box-shadow: var(--doctor-shadow); transform: none;
}
.doctor-cabinet .service-card.service-card-highlight {
  color: var(--doctor-text); background: var(--doctor-soft);
  border-color: var(--theme-highlight); box-shadow: var(--doctor-shadow);
}
.doctor-cabinet .service-card h6 {
  color: var(--doctor-primary); font-size: 14px; font-weight: 650;
}
.doctor-cabinet .service-card p {
  color: var(--doctor-muted); font-size: 13px; line-height: 1.5;
}
.doctor-cabinet .service-card .service-icon {
  color: var(--doctor-primary); background: var(--doctor-selected); border-radius: 12px;
}
.doctor-cabinet .service-card .service-icon i { color: var(--doctor-primary); }
.doctor-cabinet .kpi-card::before { display: none; }
.doctor-cabinet .kpi-label {
  color: var(--doctor-muted); font-size: 12px; font-weight: 500;
  letter-spacing: normal; text-transform: none;
}
.doctor-cabinet .kpi-value {
  color: var(--doctor-heading); font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 700; line-height: 1.2; letter-spacing: -.02em;
}
.doctor-cabinet .kpi-trend { font-size: 12px; }
.doctor-cabinet .trend-card-title { text-transform: none; letter-spacing: normal; }
.doctor-cabinet .token-progress-bar-bg {
  height: 7px; background: #e8f5f3; border-radius: 10px; overflow: hidden;
}
.doctor-cabinet .token-progress-bar-fill {
  height: 100%; background: var(--doctor-aqua); border-radius: inherit;
}
:is(.doctor-cabinet, .stats-page) .doc-profile-card-header {
  color: var(--doctor-heading); background: #fff;
}
:is(.doctor-cabinet, .stats-page) .doc-profile-card-header :is(h2, h3, h4, h5, h6) {
  color: var(--doctor-heading);
}
:is(.doctor-cabinet, .stats-page) .doc-profile-card-header i { color: var(--doctor-muted); }
:is(.doctor-cabinet, .stats-page) .stats-btn-primary {
  color: #fff; background: var(--doctor-primary); border: 1px solid var(--doctor-primary);
  border-radius: 10px; box-shadow: none; transform: none;
}
:is(.doctor-cabinet, .stats-page) .stats-btn-primary:hover {
  color: #fff; background: var(--doctor-primary); border-color: var(--doctor-primary);
  box-shadow: none; transform: none;
}
:is(.doctor-cabinet, .stats-page) .admin-stat-icon {
  display: grid; place-items: center; width: 48px; height: 48px;
  color: var(--doctor-primary); background: var(--doctor-selected); border-radius: 12px;
}
:is(.doctor-cabinet, .stats-page) :is(.admin-stat-card--green, .admin-stat-card--teal) .admin-stat-icon {
  color: var(--theme-primary-hover); background: #effcfb;
}
:is(.doctor-cabinet, .stats-page) .admin-stat-card--orange .admin-stat-icon {
  color: #b45309; background: #fffbeb;
}
.doctor-cabinet .section-intro {
  padding: 0; color: var(--doctor-text); background: transparent;
  border: 0; border-radius: 0; box-shadow: none; text-align: left !important;
}
.doctor-cabinet .section-intro h2 {
  color: var(--doctor-heading); font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 700; line-height: 1.25; letter-spacing: -.021em;
}
.doctor-cabinet .section-intro p { color: var(--doctor-muted); font-size: 14px; }
.doctor-cabinet .filter-group-label {
  color: var(--doctor-text); font-size: 13px; font-weight: 600;
  text-transform: none; letter-spacing: normal;
}
:is(.doctor-cabinet, .stats-page) .btn-onec-link {
  color: var(--doctor-primary); background: var(--doctor-soft);
  border: 1px solid var(--theme-highlight); border-radius: 10px; box-shadow: none; transform: none;
}
:is(.doctor-cabinet, .stats-page) .btn-onec-link:hover {
  color: var(--doctor-primary); background: var(--doctor-selected);
  border-color: var(--doctor-light); box-shadow: none; transform: none;
}
:is(.doctor-cabinet, .stats-page) .btn-onec-link:disabled { cursor: not-allowed; opacity: .55; }
:is(.doctor-cabinet, .stats-page) .doc-profile-label.accent { color: var(--doctor-muted); }
@media (prefers-reduced-motion: reduce) {
  :is(.doctor-cabinet, .stats-page, .login-page) *,
  :is(.doctor-cabinet, .stats-page, .login-page) *::before,
  :is(.doctor-cabinet, .stats-page, .login-page) *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

/* Dialogs follow the patient cabinet's white, compact dialog language. */
:is(.doctor-cabinet, .stats-page, .login-page) .swal2-container { padding: 16px; }
:is(.doctor-cabinet, .stats-page, .login-page) .swal2-popup {
  width: min(440px, 100%); max-width: calc(100vw - 32px); padding: 28px 28px 24px;
  border: 1px solid var(--doctor-border); border-radius: 16px; background: #fff;
  box-shadow: 0 20px 52px rgb(15 23 42 / 18%); color: var(--doctor-heading); font: 14px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
:is(.doctor-cabinet, .stats-page, .login-page) .swal2-title { padding: 0; color: var(--doctor-heading); font-size: 21px; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; overflow-wrap: anywhere; }
:is(.doctor-cabinet, .stats-page, .login-page) .swal2-html-container { margin: 10px 0 0; color: #475569; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
:is(.doctor-cabinet, .stats-page, .login-page) .swal2-actions { flex-direction: row; align-items: stretch; gap: 8px; margin: 22px 0 0; }
:is(.doctor-cabinet, .stats-page, .login-page) .swal2-styled { min-height: 42px; margin: 0; padding: 10px 18px; border-radius: 10px; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; box-shadow: none !important; }
:is(.doctor-cabinet, .stats-page, .login-page) .swal2-confirm { background-color: var(--doctor-primary); color: #fff; }
:is(.doctor-cabinet, .stats-page, .login-page) .swal2-cancel { border: 1px solid var(--doctor-border); background: #fff !important; color: var(--doctor-text) !important; }
:is(.doctor-cabinet, .stats-page, .login-page) :is(.swal2-input, .swal2-textarea, .swal2-select) { max-width: 100%; border: 1px solid var(--doctor-border); border-radius: 9px; color: var(--doctor-heading); box-shadow: none; font: inherit; }
:is(.doctor-cabinet, .stats-page, .login-page) :is(.swal2-input, .swal2-textarea, .swal2-select):focus { border-color: var(--doctor-primary); outline: 3px solid var(--theme-soft-selected); }
:is(.doctor-cabinet, .stats-page, .login-page) .swal2-icon { width: 56px; height: 56px; margin: 0 auto 18px; border-width: 2px; font-size: 12px; }
:is(.doctor-cabinet, .stats-page, .login-page) .modal-content { border: 1px solid var(--doctor-border) !important; border-radius: 16px !important; background: #fff !important; color: var(--doctor-heading); box-shadow: 0 20px 52px rgb(15 23 42 / 18%) !important; }
:is(.doctor-cabinet, .stats-page, .login-page) :is(.modal-header, .modal-footer) { padding: 16px 20px !important; background: #fff !important; border-color: var(--doctor-border) !important; gap: 8px; flex-wrap: wrap; }
:is(.doctor-cabinet, .stats-page, .login-page) .modal-title { color: var(--doctor-heading) !important; font-size: 18px !important; }
:is(.doctor-cabinet, .stats-page, .login-page) .modal .btn-close { filter: none !important; opacity: .65; }
:is(.doctor-cabinet, .stats-page, .login-page) .swal2-success { color: var(--doctor-primary) !important; border-color: var(--theme-highlight) !important; }
:is(.doctor-cabinet, .stats-page, .login-page) .swal2-success [class^="swal2-success-line"] { background-color: var(--doctor-primary) !important; }
:is(.doctor-cabinet, .stats-page, .login-page) .swal2-success .swal2-success-ring { border-color: var(--theme-highlight) !important; }
:is(.doctor-cabinet, .stats-page, .login-page) .modal-body { padding: 20px !important; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  :is(.doctor-cabinet, .stats-page, .login-page) .swal2-popup { padding: 24px 18px 20px; }
  :is(.doctor-cabinet, .stats-page, .login-page) .swal2-title { font-size: 19px; }
  :is(.doctor-cabinet, .stats-page, .login-page) .swal2-actions { width: 100%; flex-wrap: wrap; }
  :is(.doctor-cabinet, .stats-page, .login-page) .swal2-styled { flex: 1; }
}
