:root {
  --ds-font-sans: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --ds-font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ds-space-1: .25rem;
  --ds-space-2: .5rem;
  --ds-space-3: .75rem;
  --ds-space-4: 1rem;
  --ds-space-5: 1.25rem;
  --ds-space-6: 1.5rem;
  --ds-space-8: 2rem;
  --ds-text-xs: .72rem;
  --ds-text-sm: .8rem;
  --ds-text-md: .875rem;
  --ds-text-lg: .95rem;
  --ds-text-xl: 1.12rem;
  --ds-text-2xl: 1.38rem;
  --ds-title-page: clamp(1.18rem, 1.05vw, 1.38rem);
  --ds-title-section: .9rem;
  --ds-title-card: .82rem;
  --ds-text-meta: .72rem;
  --ds-text-badge: .68rem;
  --ds-radius-sm: .25rem;
  --ds-radius-md: .45rem;
  --ds-radius-lg: .62rem;
  --ds-radius-xl: .75rem;
  --ds-shadow-xs: 0 1px 2px rgba(15, 23, 42, .045), 0 4px 10px rgba(15, 23, 42, .028);
  --ds-shadow-sm: 0 6px 14px rgba(15, 23, 42, .06);
  --ds-shadow-md: 0 12px 24px rgba(15, 23, 42, .07);
  --ds-surface-canvas: #f5f7fa;
  --ds-surface-base: #ffffff;
  --ds-surface-muted: #f8fafc;
  --ds-surface-subtle: #eef4f7;
  --ds-border: #d9e2ec;
  --ds-border-strong: #c6d3df;
  --ds-ink: #172033;
  --ds-ink-muted: #5f6f85;
  --ds-ink-soft: #7b8aa0;
  --ds-primary: #1f5f8f;
  --ds-primary-strong: #17496f;
  --ds-primary-soft: #e8f1f7;
  --ds-accent: #1f5f8f;
  --ds-accent-soft: #e8f1f7;
  --ds-info: #2f6f9f;
  --ds-success: #237a57;
  --ds-warning: #a15c12;
  --ds-danger: #b42318;
  --ds-expired: #8f2c1f;
  --ds-suspended: #475569;
  --ds-over-limit: #93370d;
  --ds-chart-1: #1f5f8f;
  --ds-chart-2: #6f879b;
  --ds-chart-3: #237a57;
  --ds-chart-4: #a15c12;
  --ds-chart-5: #8a96a6;
  --ds-chart-6: #4c6174;
  --bs-primary: var(--ds-primary);
  --bs-primary-rgb: 31, 95, 143;
  --bs-body-color: var(--ds-ink);
  --bs-body-bg: var(--ds-surface-canvas);
  --bs-border-color: var(--ds-border);
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 15px;
  }
}

@media (min-width: 1440px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  background: var(--ds-surface-canvas);
  color: var(--ds-ink);
  font-family: var(--ds-font-sans);
  margin-bottom: 38px;
}

body > .container-fluid {
  padding-left: .55rem;
  padding-right: .55rem;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ds-ink);
  font-weight: 600;
  letter-spacing: -.018em;
}

.btn {
  border-radius: var(--ds-radius-md);
  border-width: 1px;
  font-weight: 500;
}

.btn-primary {
  background: var(--ds-primary);
  border-color: var(--ds-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--ds-primary-strong);
  border-color: var(--ds-primary-strong);
}

.btn-outline-primary {
  border-color: rgba(31, 95, 143, .42);
  color: var(--ds-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--ds-primary);
  border-color: var(--ds-primary);
}

.form-control,
.form-select {
  border-color: var(--ds-border);
  border-radius: var(--ds-radius-md);
  min-height: 2.3rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--ds-primary);
  box-shadow: 0 0 0 .18rem rgba(31, 95, 143, .16);
}

.card,
.enterprise-card,
.filter-panel,
.chart-panel,
.saas-widget,
.unified-card {
  background: var(--ds-surface-base);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  box-shadow: var(--ds-shadow-xs);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.card:hover,
.enterprise-card:hover,
.filter-panel:hover,
.chart-panel:hover,
.saas-widget:hover,
.unified-card:hover {
  border-color: var(--ds-border-strong);
  box-shadow: var(--ds-shadow-sm);
  transform: translateY(-1px);
}

.card {
  --bs-card-border-color: var(--ds-border);
  --bs-card-border-radius: var(--ds-radius-lg);
  --bs-card-box-shadow: var(--ds-shadow-xs);
}

.card-header,
.enterprise-card-header,
.unified-card-header {
  align-items: center;
  background: var(--ds-surface-muted);
  border-bottom: 1px solid var(--ds-border);
  display: flex;
  gap: var(--ds-space-2);
  justify-content: space-between;
  padding: .4rem .65rem;
}

.card-body,
.enterprise-card-body,
.unified-card-body {
  padding: .62rem;
}

.enterprise-page {
  display: grid;
  gap: .48rem;
  padding: .48rem 0;
}

.enterprise-page + .enterprise-page {
  padding-top: 0;
}

.enterprise-page-title {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-2);
  justify-content: space-between;
}

.enterprise-page-title h1 {
  font-size: var(--ds-title-page);
  font-weight: 600;
  line-height: 1.2;
}

.enterprise-page-title .small,
.enterprise-page .text-muted.small {
  font-size: var(--ds-text-meta);
  font-weight: 400;
}

.eyebrow,
.enterprise-kicker {
  color: var(--ds-ink-soft);
  display: block;
  font-size: var(--ds-text-meta);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.kpi-grid,
.ops-widget-grid {
  display: grid;
  gap: .45rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.kpi-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.kpi-grid > [class*="col-"] {
  width: auto;
}

.kpi-card,
.ops-widget {
  background: var(--ds-surface-base);
  border: 1px solid var(--ds-border);
  border-left: 3px solid var(--ds-primary);
  border-radius: var(--ds-radius-md);
  box-shadow: var(--ds-shadow-xs);
  min-height: 3.72rem;
  padding: .46rem .55rem;
}

.kpi-card > .d-flex {
  align-items: center !important;
  gap: .5rem !important;
}

.kpi-card-accent { border-left-color: var(--ds-success); }
.kpi-card-neutral { border-left-color: var(--ds-border-strong); }
.kpi-card-warning { border-left-color: var(--ds-warning); }
.kpi-card-danger { border-left-color: var(--ds-danger); }

.kpi-label,
.ops-widget-label {
  color: var(--ds-ink-soft);
  display: block;
  font-size: var(--ds-text-meta);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.kpi-value,
.ops-widget-value {
  color: var(--ds-ink);
  display: block;
  font-size: clamp(1.12rem, 1.18vw, 1.42rem);
  font-weight: 625;
  letter-spacing: -.025em;
  line-height: 1.15;
  margin-top: .12rem;
}

.kpi-note,
.ops-widget-note {
  color: var(--ds-ink-muted);
  font-size: var(--ds-text-meta);
  font-weight: 400;
  line-height: 1.25;
  margin: .1rem 0 0;
}

.chart-frame {
  height: 142px;
  position: relative;
}

.chart-frame-sm {
  height: 118px;
}

.enterprise-table {
  --bs-table-bg: transparent;
  --bs-table-hover-bg: var(--ds-surface-muted);
  font-size: var(--ds-text-xs);
}

.enterprise-table th {
  color: var(--ds-ink-soft);
  font-size: var(--ds-text-xs);
  font-weight: 600;
  letter-spacing: .05em;
  padding-bottom: var(--ds-space-1);
  text-transform: uppercase;
}

.enterprise-table td {
  padding-bottom: var(--ds-space-1);
  padding-top: var(--ds-space-1);
}

.status-token,
.badge,
.plan-badge {
  border-radius: 999px;
  font-size: var(--ds-text-badge);
  font-weight: 550;
  letter-spacing: .02em;
}

.enterprise-card-header h2,
.enterprise-card-header h3,
.enterprise-card-header h4,
.enterprise-card-header h5,
.unified-card-header h2,
.unified-card-header h3,
.unified-card-header h4,
.unified-card-header h5 {
  font-size: var(--ds-text-xl);
  line-height: 1.25;
}

.enterprise-card-header h6,
.chart-panel .enterprise-card-header h6,
.card-title {
  font-size: var(--ds-title-card);
  line-height: 1.25;
}

.dashboard-subscription-strip .card-body {
  padding: .5rem .55rem;
}

.dashboard-subscription-strip {
  border-color: #d3dee8;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.subscription-strip-layout {
  align-items: stretch;
  display: grid;
  gap: .45rem;
  grid-template-columns: minmax(250px, .72fr) minmax(520px, 1.28fr);
}

.subscription-plan-summary {
  align-items: center;
  background: #f3f7fa;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  display: flex;
  gap: .65rem;
  min-width: 0;
  min-height: 3.45rem;
  padding: .5rem .65rem;
}

.dashboard-subscription-strip h2 {
  color: var(--ds-ink);
  font-size: var(--ds-title-card);
  font-weight: 600;
  line-height: 1.25;
}

.dashboard-subscription-strip .ops-widget-grid {
  align-items: stretch;
  background: #f7fafc;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  gap: .36rem;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  padding: .36rem;
  width: 100%;
}

.dashboard-subscription-strip .ops-widget {
  align-items: center;
  background: var(--ds-surface-base);
  border-color: #dde6ef;
  border-left-width: 0;
  display: grid;
  height: 100%;
  min-height: 3.45rem;
  padding: .48rem .6rem;
}

.dashboard-subscription-strip .ops-widget-value {
  font-size: clamp(.95rem, .88vw, 1.08rem);
  font-weight: 625;
  letter-spacing: -.02em;
}

.dashboard-section-header {
  background: #eef4f8;
  border-bottom-color: #cfdce7;
  min-height: 2.28rem;
  padding-bottom: .34rem;
  padding-top: .34rem;
}

.dashboard-section-header h5 {
  color: #16263a;
  font-size: var(--ds-title-section);
  font-weight: 600 !important;
  letter-spacing: -.01em;
  line-height: 1.2;
}

.dashboard-section-header i {
  font-size: .95em;
}

.dashboard-header-actions .form-control-sm {
  font-size: var(--ds-text-xs);
  min-height: 1.68rem;
  padding-bottom: .16rem;
  padding-top: .16rem;
}

.dashboard-header-actions .btn-sm {
  font-size: var(--ds-text-xs);
  font-weight: 500;
  min-height: 1.68rem;
  padding: .12rem .42rem;
}

.dashboard-header-actions .btn-primary,
.dashboard-header-actions .btn-outline-primary {
  background: #f8fbfd;
  border-color: rgba(31, 95, 143, .34);
  color: var(--ds-primary);
}

.dashboard-header-actions .btn-primary:hover,
.dashboard-header-actions .btn-primary:focus,
.dashboard-header-actions .btn-outline-primary:hover,
.dashboard-header-actions .btn-outline-primary:focus {
  background: var(--ds-primary-soft);
  border-color: rgba(31, 95, 143, .5);
  color: var(--ds-primary-strong);
}

.dashboard-header-actions .btn-sm .bi {
  margin-right: .24rem;
}

.chart-card-body {
  padding-bottom: .5rem;
  padding-top: .42rem;
}

.chart-panel .enterprise-card-body.chart-frame {
  padding: .42rem .55rem .5rem;
}

.kpi-card .bi {
  color: var(--ds-primary) !important;
  font-size: .86rem !important;
  margin-top: 0;
  opacity: .86;
}

.enterprise-card-body .row.mt-2 {
  margin-top: .42rem !important;
}

.operations-command-grid {
  display: grid;
  gap: .48rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.ops-card {
  min-width: 0;
}

.ops-card:hover {
  transform: none;
}

.ops-span-3 { grid-column: span 3; }
.ops-span-4 { grid-column: span 4; }
.ops-span-6 { grid-column: span 6; }

.ops-skeleton-list {
  display: grid;
  gap: .45rem;
}

.ops-skeleton-list span {
  animation: ops-skeleton-pulse 1.2s ease-in-out infinite;
  background: linear-gradient(90deg, #eef3f7 0%, #f8fbfd 50%, #eef3f7 100%);
  border-radius: var(--ds-radius-md);
  display: block;
  height: 1.35rem;
}

.ops-skeleton-list span:nth-child(2) { width: 82%; }
.ops-skeleton-list span:nth-child(3) { width: 64%; }

@keyframes ops-skeleton-pulse {
  0%, 100% { opacity: .72; }
  50% { opacity: 1; }
}

.ops-metric-strip,
.ops-revenue-grid {
  display: grid;
  gap: .4rem;
}

.ops-metric-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ops-metric-strip > div,
.ops-revenue-grid > div,
.ops-revenue-total {
  background: var(--ds-surface-muted);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  min-width: 0;
  padding: .42rem .5rem;
}

.ops-metric-strip span,
.ops-revenue-grid span {
  color: var(--ds-ink-soft);
  display: block;
  font-size: var(--ds-text-badge);
  font-weight: 600;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.ops-metric-strip strong,
.ops-revenue-grid strong {
  color: var(--ds-ink);
  display: block;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-revenue-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ops-revenue-total {
  grid-column: span 2;
}

.ops-revenue-total strong {
  font-size: 1.34rem;
}

.ops-revenue-total em {
  display: block;
  font-size: var(--ds-text-meta);
  font-style: normal;
  margin-top: .12rem;
}

.ops-progress-row {
  display: grid;
  gap: .18rem;
  margin-top: .42rem;
}

.ops-progress-row > div:first-child {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.ops-progress-row span {
  color: var(--ds-ink-muted);
  font-size: var(--ds-text-xs);
}

.ops-progress-row strong {
  font-size: var(--ds-text-xs);
}

.ops-progress {
  background: #edf3f7;
  height: .42rem;
}

.ops-mini-chart {
  align-items: end;
  background: var(--ds-surface-muted);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  display: flex;
  gap: .18rem;
  height: 3.15rem;
  margin-top: .55rem;
  padding: .35rem;
}

.ops-mini-chart span {
  background: rgba(31, 95, 143, .68);
  border-radius: 999px 999px 0 0;
  flex: 1;
  min-width: .25rem;
}

.ops-mini-chart em,
.ops-empty-inline {
  color: var(--ds-ink-muted);
  font-size: var(--ds-text-xs);
  font-style: normal;
}

.ops-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: .32rem;
  margin-top: .48rem;
}

.ops-list,
.ops-feed,
.ops-timeline,
.ops-alert-list,
.ops-health-grid {
  display: grid;
  gap: .38rem;
}

.ops-list {
  margin-top: .5rem;
}

.ops-list-row,
.ops-feed-row,
.ops-timeline-row,
.ops-health-item {
  align-items: center;
  background: var(--ds-surface-muted);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  display: grid;
  gap: .45rem;
  min-width: 0;
  padding: .42rem .5rem;
}

.ops-list-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.ops-feed-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.ops-timeline-row,
.ops-health-item {
  grid-template-columns: auto minmax(0, 1fr);
}

.ops-list-row strong,
.ops-feed-row strong,
.ops-timeline-row strong,
.ops-health-item strong {
  display: block;
  font-size: var(--ds-text-sm);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-list-row span,
.ops-feed-row span,
.ops-timeline-row span,
.ops-health-item span {
  color: var(--ds-ink-muted);
  display: block;
  font-size: var(--ds-text-meta);
  line-height: 1.25;
}

.ops-list-row.is-warning { border-left: 3px solid var(--ds-warning); }
.ops-list-row.is-danger { border-left: 3px solid var(--ds-danger); }
.ops-list-row.is-active { border-left: 3px solid var(--ds-primary); }

.ops-alert {
  border: 1px solid var(--ds-border);
  border-left: 3px solid var(--ds-info);
  border-radius: var(--ds-radius-md);
  background: var(--ds-surface-muted);
  padding: .45rem .55rem;
}

.ops-alert-warning { border-left-color: var(--ds-warning); }
.ops-alert-danger { border-left-color: var(--ds-danger); }

.ops-alert-category {
  color: var(--ds-ink-soft);
  display: block;
  font-size: var(--ds-text-badge);
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.ops-alert strong {
  display: block;
  font-size: var(--ds-text-sm);
}

.ops-alert p {
  color: var(--ds-ink-muted);
  font-size: var(--ds-text-xs);
  margin: .08rem 0 0;
}

.ops-empty-good {
  align-items: center;
  background: #eef8f3;
  border: 1px solid #cfe8da;
  border-radius: var(--ds-radius-md);
  color: var(--ds-success);
  display: grid;
  gap: .16rem;
  justify-items: center;
  padding: 1rem .6rem;
  text-align: center;
}

.ops-empty-good span {
  color: var(--ds-ink-muted);
  font-size: var(--ds-text-xs);
}

.ops-status-dot {
  border-radius: 999px;
  display: inline-block;
  height: .62rem;
  width: .62rem;
}

.status-green,
.status-success { background: var(--ds-success); }
.status-yellow,
.status-warning,
.status-pending,
.status-info { background: var(--ds-warning); }
.status-red,
.status-danger,
.status-cancelled { background: var(--ds-danger); }

.quick-actions-grid {
  display: grid;
  gap: .34rem;
}

.quick-action {
  align-items: center;
  background: var(--ds-surface-muted);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  color: var(--ds-ink);
  display: grid;
  gap: .42rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: .42rem .5rem;
  text-decoration: none;
}

.quick-action:hover,
.quick-action:focus {
  border-color: rgba(31, 95, 143, .42);
  color: var(--ds-primary-strong);
}

.quick-action span {
  font-size: var(--ds-text-sm);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-action kbd {
  background: #e6edf3;
  color: var(--ds-ink-muted);
  font-size: .62rem;
  min-width: 1.1rem;
  padding: .08rem .22rem;
}

.ops-table td,
.ops-table th {
  white-space: nowrap;
}

.ops-row-actions {
  display: flex;
  gap: .38rem;
  justify-content: flex-end;
}

.ops-row-actions a,
.ops-row-actions button {
  background: transparent;
  border: 0;
  color: var(--ds-primary);
  font-size: var(--ds-text-xs);
  font-weight: 600;
  padding: 0;
  text-decoration: none;
}

.ops-health-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.enterprise-card-body .row.g-2 {
  --bs-gutter-x: .48rem;
  --bs-gutter-y: .48rem;
}

.enterprise-card-body .col-lg-6.mb-2 {
  margin-bottom: .28rem !important;
}

@media (max-width: 1366px) {
  body > .container-fluid {
    padding-left: .45rem;
    padding-right: .45rem;
  }

  .enterprise-page {
    gap: .42rem;
    padding-bottom: .42rem;
    padding-top: .42rem;
  }

  .subscription-strip-layout {
    grid-template-columns: minmax(225px, .68fr) minmax(490px, 1.32fr);
  }

  .dashboard-subscription-strip .ops-widget-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .kpi-grid {
    grid-template-columns: repeat(4, minmax(135px, 1fr));
  }

  .kpi-card,
  .ops-widget {
    padding-left: .55rem;
    padding-right: .55rem;
  }

  .chart-frame {
    height: 132px;
  }

  .chart-frame-sm {
    height: 112px;
  }

  .operations-command-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .ops-span-3,
  .ops-span-4 {
    grid-column: span 4;
  }

  .ops-span-6 {
    grid-column: span 8;
  }

  .ops-revenue-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .subscription-strip-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-subscription-strip .ops-widget-grid,
  .kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .operations-command-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-span-3,
  .ops-span-4,
  .ops-span-6 {
    grid-column: span 1;
  }

  .ops-revenue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-revenue-total {
    grid-column: span 2;
  }

  .ops-health-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .subscription-plan-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: .42rem;
  }

  .dashboard-header-actions {
    width: 100%;
  }

  .dashboard-header-actions .form-control-sm {
    flex: 1 1 auto;
  }

  .operations-command-grid,
  .ops-metric-strip,
  .ops-revenue-grid {
    grid-template-columns: 1fr;
  }

  .ops-span-3,
  .ops-span-4,
  .ops-span-6,
  .ops-revenue-total {
    grid-column: span 1;
  }

  .ops-feed-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .ops-feed-row > .text-end {
    grid-column: 2;
    text-align: left !important;
  }
}

.status-healthy,
.text-bg-success {
  background-color: #e5f4ec !important;
  color: var(--ds-success) !important;
}

.status-warning,
.text-bg-warning,
.bg-warning-subtle {
  background-color: #fff4df !important;
  color: var(--ds-warning) !important;
}

.status-danger,
.status-expired,
.text-bg-danger {
  background-color: #fdecea !important;
  color: var(--ds-danger) !important;
}

.status-suspended,
.text-bg-dark,
.text-bg-secondary {
  background-color: #eef2f6 !important;
  color: var(--ds-suspended) !important;
}

.status-over-limit {
  background-color: #fff1e7;
  color: var(--ds-over-limit);
}

.text-bg-primary,
.badge.bg-primary {
  background-color: var(--ds-primary-soft) !important;
  color: var(--ds-primary) !important;
}

.text-bg-info {
  background-color: #e6f2f8 !important;
  color: var(--ds-info) !important;
}

.text-bg-light {
  background-color: var(--ds-surface-muted) !important;
  color: var(--ds-ink-muted) !important;
}

.warning-banner,
.alert {
  border: 1px solid var(--ds-border);
  border-left-width: 4px;
  border-radius: var(--ds-radius-md);
}

.alert-warning,
.warning-banner {
  background-color: #fff8eb;
  border-left-color: var(--ds-warning);
  color: #70460f;
}

.alert-info {
  background-color: #edf6fb;
  border-left-color: var(--ds-info);
  color: #16466e;
}

.alert-danger {
  background-color: #fdf0ee;
  border-left-color: var(--ds-danger);
  color: #842218;
}

.empty-state,
.enterprise-empty-state {
  background: var(--ds-surface-muted);
  border: 1px dashed var(--ds-border-strong);
  border-radius: var(--ds-radius-md);
  color: var(--ds-ink-muted);
  display: grid;
  gap: .45rem;
  justify-items: center;
  padding: 1rem;
  text-align: center;
}

.empty-state strong,
.enterprise-empty-state strong {
  color: var(--ds-ink);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Professional Navbar Styling */
.navbar {
  min-height: 42px;
  padding: .12rem .34rem;
}

.navbar .container-fluid {
  padding-left: .32rem;
  padding-right: .32rem;
}

.navbar-brand {
  font-size: clamp(.78rem, .72vw, .9rem);
  letter-spacing: 0.2px;
  margin-right: .28rem;
  white-space: nowrap;
}

.navbar-brand i {
  font-size: .84rem !important;
}

.navbar-nav {
  gap: .03rem;
}

.navbar-nav .nav-link {
  padding: .2rem .3rem;
  color: var(--ds-ink-muted);
  font-size: clamp(.7rem, .62vw, .78rem);
  font-weight: 500;
  transition: color 0.2s ease;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
  border-radius: var(--ds-radius-sm);
}

.navbar-nav .nav-link i {
  font-size: .78em;
}

.navbar-nav .nav-link:hover {
  color: var(--ds-primary);
  background-color: rgba(31, 95, 143, .06);
}

.navbar-nav .nav-link.active {
  color: var(--ds-primary);
  font-weight: 600;
  border-bottom-color: var(--ds-primary);
  background-color: rgba(31, 95, 143, .06);
}

.navbar-nav .dropdown-toggle::after {
  margin-left: 0.18rem;
}

.navbar .badge,
.navbar .plan-badge {
  font-size: .62rem;
  line-height: 1;
  padding: .18rem .36rem;
}

.dropdown-menu {
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  box-shadow: var(--ds-shadow-sm);
  margin-top: 0.2rem;
}

.dropdown-item {
  padding: 0.34rem 0.7rem;
  font-size: var(--ds-text-xs);
  transition: background-color 0.15s ease;
}

.dropdown-item:hover {
  background-color: var(--ds-surface-muted);
  color: var(--ds-primary);
}

.dropdown-item:active {
  background-color: var(--ds-primary);
  color: white;
}

.dropdown-item-text {
  padding: 0.34rem 0.7rem;
  font-size: var(--ds-text-xs);
}

.navbar-toggler {
  border: 1px solid #dee2e6;
  padding: 0.2rem 0.42rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.1rem rgba(31, 95, 143, 0.25);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .navbar {
    padding: 0.16rem 0.35rem;
  }

  .navbar-brand {
    max-width: 8.75rem;
    font-size: 0.8rem;
    text-align: left;
    word-break: normal;
  }

  .navbar-brand i {
    margin-right: 0.25rem !important;
  }

  .navbar-nav .nav-link {
    padding-left: 0.28rem;
    padding-right: 0.28rem;
    font-size: 0.72rem;
  }

  .navbar-nav .nav-link i {
    margin-right: 0.16rem !important;
  }

  .navbar-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 1100px) and (min-width: 992px) {
  .navbar-brand {
    max-width: 7.5rem;
    font-size: 0.76rem;
  }

  .navbar-nav .nav-link {
    padding-left: 0.22rem;
    padding-right: 0.22rem;
    font-size: 0.68rem;
  }

  .navbar-nav .dropdown-toggle::after {
    margin-left: 0.2rem;
  }
}

@media (min-width: 992px) {
  .navbar-collapse {
    flex-wrap: nowrap;
  }

  .navbar-nav {
    flex-wrap: nowrap;
  }
}

@media (max-width: 991.98px) {
  .navbar-nav {
    margin-top: var(--ds-space-2);
  }
  
  .navbar-nav .nav-link {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid #e9ecef;
    white-space: normal;
  }
  
  .navbar-nav .nav-link.active {
    border-bottom: 2px solid var(--ds-primary);
    border-left: 3px solid var(--ds-primary);
  }
  
  .dropdown-menu {
    margin-left: 1rem;
    border: none;
    box-shadow: none;
    background-color: var(--ds-surface-muted);
  }
}

@media (max-width: 768px) {
  .navbar {
    min-height: 48px;
  }

  .navbar-brand {
    font-size: 1rem;
  }

  .navbar-nav .nav-link {
    border-radius: var(--ds-radius-md);
  }
}

@media (max-width: 576px) {
  .navbar {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .navbar-brand {
    max-width: calc(100vw - 4.5rem);
  }

  .navbar-brand i {
    margin-right: 0.4rem !important;
  }
}

/* Session Timeout Modal Styling */
#sessionTimeoutModal .modal-content {
  border-radius: 0.75rem;
  overflow: hidden;
}

#sessionTimeoutModal .modal-header {
  background: #fff4df;
  padding: 1.5rem;
}

.session-warning-icon {
  animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.session-countdown-display {
  position: relative;
}

.countdown-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #fdf0ee;
  border: 1px solid #f4b8b1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--ds-shadow-sm);
  animation: countdown-pulse 1s ease-in-out infinite;
  position: relative;
}

.countdown-circle::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.3);
  animation: countdown-ring 1s ease-in-out infinite;
}

@keyframes countdown-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(255, 107, 107, 0.5);
  }
}

@keyframes countdown-ring {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.countdown-text {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ds-danger);
  font-family: 'Courier New', 'Consolas', monospace;
  letter-spacing: 2px;
  z-index: 1;
  position: relative;
}

.bg-gradient-warning {
  background: #fff4df;
}

/* Session Status Indicator */
.session-status {
  font-size: 0.75rem;
  color: #6c757d;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
}

.session-status.warning {
  color: #856404;
  background-color: #fff3cd;
}

.session-status.expiring {
  color: #721c24;
  background-color: #f8d7da;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Toast Notifications */
.toast {
  min-width: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: var(--ds-radius-md);
}

.toast.show {
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Smooth transitions for session modals */
.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
  transform: translate(0, -50px);
}

.modal.show .modal-dialog {
  transform: translate(0, 0);
}

/* Masters hub — tile grid (registry-driven landing page) */
.masters-hub-page .masters-hub-tile .card {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.masters-hub-page .masters-hub-tile:hover .card {
  border-color: var(--bs-primary) !important;
  box-shadow: 0 0.25rem 0.75rem rgba(31, 95, 143, 0.12) !important;
}
.masters-hub-page .masters-hub-tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(31, 95, 143, 0.1);
  color: var(--bs-primary);
  font-size: 1.15rem;
}
.masters-hub-page .masters-hub-tile:hover .masters-hub-tile-icon {
  background-color: rgba(31, 95, 143, 0.18);
}

/* Healthcare operations dashboard */
.dashboard-ops-page {
  gap: .7rem;
}

.dashboard-ops-page .enterprise-page-title {
  padding: .1rem .05rem .2rem;
}

.dashboard-command-grid,
.dashboard-workflow-grid,
.dashboard-tertiary-grid {
  display: grid;
  gap: .7rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.dashboard-plan-card { grid-column: span 3; }
.dashboard-usage-card { grid-column: span 5; }
.dashboard-critical-card { grid-column: span 4; }
.dashboard-workload-card { grid-column: span 8; }
.dashboard-queue-card { grid-column: span 4; }

.dashboard-workflow-main {
  display: grid;
  gap: .7rem;
  grid-column: span 8;
  min-width: 0;
}

.dashboard-workflow-side {
  align-content: start;
  display: grid;
  gap: .7rem;
  grid-column: span 4;
  min-width: 0;
}

.dashboard-tertiary-grid > .ops-card:first-child {
  grid-column: span 7;
}

.dashboard-tertiary-grid > .ops-card:last-child {
  grid-column: span 5;
}

.dashboard-ops-page .enterprise-card,
.dashboard-ops-page .saas-widget,
.dashboard-analytics-page .chart-panel {
  border-color: rgba(207, 220, 231, .72);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .035);
}

.dashboard-ops-page .enterprise-card:hover,
.dashboard-ops-page .saas-widget:hover,
.dashboard-analytics-page .chart-panel:hover {
  border-color: rgba(191, 207, 221, .9);
  box-shadow: 0 4px 14px rgba(15, 23, 42, .055);
  transform: none;
}

.dashboard-ops-page .enterprise-card-header,
.dashboard-analytics-page .enterprise-card-header {
  background: transparent;
  border-bottom: 0;
  padding: .55rem .72rem .2rem;
}

.dashboard-ops-page .enterprise-card-body,
.dashboard-analytics-page .enterprise-card-body {
  padding: .48rem .72rem .72rem;
}

.dashboard-section-header h5 {
  font-size: .92rem;
}

.dashboard-section-header-critical h5 {
  color: #7a3f08;
}

.dashboard-refresh-link {
  color: var(--ds-ink-soft);
  font-size: var(--ds-text-xs);
  font-weight: 600;
  min-height: auto;
  padding: 0;
  text-decoration: none;
}

.dashboard-refresh-link:hover,
.dashboard-refresh-link:focus {
  color: var(--ds-primary);
  text-decoration: none;
}

.dashboard-subscription-strip {
  background: #fff;
}

.dashboard-subscription-strip .card-body {
  height: 100%;
  padding: .58rem .72rem;
}

.dashboard-ops-page .subscription-plan-summary,
.dashboard-ops-page .dashboard-subscription-strip .ops-widget-grid,
.dashboard-ops-page .dashboard-subscription-strip .ops-widget {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.dashboard-ops-page .subscription-plan-summary {
  min-height: 3.15rem;
}

.dashboard-ops-page .dashboard-subscription-strip .ops-widget-grid {
  align-items: center;
  gap: .75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  height: 100%;
}

.dashboard-ops-page .dashboard-subscription-strip .ops-widget {
  border-left: 1px solid rgba(207, 220, 231, .72);
  min-height: auto;
  padding-left: .72rem;
}

.dashboard-ops-page .ops-metric-strip > div,
.dashboard-ops-page .ops-revenue-grid > div,
.dashboard-ops-page .ops-revenue-total,
.dashboard-ops-page .ops-mini-chart,
.dashboard-ops-page .ops-list-row,
.dashboard-ops-page .ops-feed-row,
.dashboard-ops-page .ops-timeline-row,
.dashboard-ops-page .ops-health-item,
.dashboard-ops-page .quick-action {
  background: #f8fbfd;
  border-color: transparent;
}

.dashboard-revenue-card {
  border-color: rgba(31, 95, 143, .18) !important;
}

.dashboard-revenue-card .ops-revenue-total {
  background: #eef6fb;
}

.dashboard-quick-actions-card .enterprise-card-body {
  padding-top: .35rem;
}

.quick-actions-toolbar {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quick-actions-toolbar .quick-action {
  align-content: center;
  gap: .18rem;
  grid-template-columns: 1fr;
  justify-items: center;
  min-height: 3.1rem;
  padding: .42rem .28rem;
  text-align: center;
}

.quick-actions-toolbar .quick-action i {
  align-items: center;
  background: #eef5fa;
  border-radius: 999px;
  color: var(--ds-primary);
  display: inline-flex;
  font-size: .92rem;
  height: 1.85rem;
  justify-content: center;
  width: 1.85rem;
}

.quick-actions-toolbar .quick-action span {
  font-size: .72rem;
  max-width: 100%;
}

.quick-actions-toolbar .quick-action kbd {
  display: none;
}

.compact-table-body {
  min-height: 0;
}

.compact-table-body .table-responsive {
  max-height: 16.5rem;
  overflow-y: auto;
}

.dashboard-ops-page .enterprise-table {
  border-collapse: separate;
  border-spacing: 0;
}

.dashboard-ops-page .enterprise-table th {
  border-bottom-color: rgba(207, 220, 231, .72);
  padding-bottom: .35rem;
}

.dashboard-ops-page .enterprise-table td {
  border-bottom-color: rgba(226, 235, 243, .7);
  padding-bottom: .38rem;
  padding-top: .38rem;
}

.dashboard-ops-page .enterprise-empty-state,
.dashboard-ops-page .ops-empty-good {
  border: 0;
  min-height: 0;
  padding: .72rem;
}

.dashboard-activity-card .ops-timeline {
  max-height: 14rem;
  overflow-y: auto;
  padding-right: .2rem;
}

.dashboard-activity-card .ops-timeline-row {
  gap: .36rem;
  padding: .34rem .42rem;
}

.dashboard-activity-card .ops-timeline-row strong,
.dashboard-activity-card .ops-timeline-row span {
  font-size: .72rem;
}

.dashboard-health-card .ops-health-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-health-card .ops-health-item {
  align-items: start;
  gap: .32rem;
  padding: .34rem .42rem;
}

.dashboard-health-card .ops-health-item strong,
.dashboard-health-card .ops-health-item span {
  font-size: .7rem;
}

.dashboard-section-label {
  padding: .15rem .05rem 0;
}

.dashboard-section-label h2 {
  color: var(--ds-ink);
  font-size: 1rem;
  font-weight: 650;
  margin: .04rem 0 0;
}

.dashboard-analytics-section {
  display: grid;
  gap: .55rem;
  margin-top: .1rem;
}

.analytics-report-row {
  --bs-gutter-x: 0;
  --bs-gutter-y: .55rem;
}

.analytics-card {
  border-color: rgba(207, 220, 231, .62) !important;
  box-shadow: none !important;
}

.dashboard-analytics-page {
  padding-top: 0;
}

.dashboard-tertiary-page {
  padding-top: 0;
}

.dashboard-analytics-page .chart-frame {
  height: 108px;
}

.dashboard-ops-page .chart-frame-sm {
  height: 96px;
}

.dashboard-ops-page canvas[height="210"] {
  max-height: 96px;
}

@media (max-width: 991.98px) {
  .dashboard-command-grid,
  .dashboard-workflow-grid,
  .dashboard-tertiary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-plan-card,
  .dashboard-usage-card,
  .dashboard-critical-card,
  .dashboard-workload-card,
  .dashboard-queue-card,
  .dashboard-workflow-main,
  .dashboard-workflow-side,
  .dashboard-tertiary-grid > .ops-card:first-child,
  .dashboard-tertiary-grid > .ops-card:last-child {
    grid-column: span 2;
  }

  .dashboard-health-card .ops-health-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 576px) {
  .dashboard-command-grid,
  .dashboard-workflow-grid,
  .dashboard-tertiary-grid,
  .quick-actions-toolbar,
  .dashboard-health-card .ops-health-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-plan-card,
  .dashboard-usage-card,
  .dashboard-critical-card,
  .dashboard-workload-card,
  .dashboard-queue-card,
  .dashboard-workflow-main,
  .dashboard-workflow-side,
  .dashboard-tertiary-grid > .ops-card:first-child,
  .dashboard-tertiary-grid > .ops-card:last-child {
    grid-column: span 1;
  }

  .quick-actions-toolbar .quick-action {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    min-height: 2.6rem;
    text-align: left;
  }
}

/* Dashboard refinement pass: operational workspace */
.dashboard-ops-page {
  gap: .48rem;
  padding-bottom: .38rem;
  padding-top: .38rem;
}

.dashboard-ops-title {
  min-height: 0;
}

.dashboard-ops-title h1 {
  font-size: clamp(1.05rem, .9vw, 1.24rem);
}

.dashboard-license-row,
.dashboard-zone-grid,
.dashboard-tertiary-grid {
  display: grid;
  gap: .48rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.dashboard-license-row {
  align-items: stretch;
}

.dashboard-plan-card {
  grid-column: span 4;
}

.dashboard-usage-card {
  grid-column: span 8;
}

.dashboard-zone-grid {
  align-items: start;
}

.dashboard-primary-zone {
  display: grid;
  gap: .48rem;
  grid-column: span 8;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  min-width: 0;
}

.dashboard-sidebar-zone {
  align-content: start;
  display: grid;
  gap: .48rem;
  grid-column: span 4;
  min-width: 0;
}

.dashboard-primary-zone > .ops-card {
  grid-column: span 4;
}

.dashboard-primary-zone > .dashboard-revenue-card,
.dashboard-primary-zone > [data-widget-shell="patients"] {
  grid-column: span 8;
}

.dashboard-tertiary-grid > .ops-card,
.dashboard-tertiary-grid > .ops-card:first-child {
  grid-column: span 12;
}

.dashboard-ops-page .enterprise-card,
.dashboard-ops-page .saas-widget,
.dashboard-analytics-page .chart-panel {
  border-color: rgba(207, 220, 231, .7);
  border-radius: var(--ds-radius-lg);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .028);
}

.dashboard-ops-page .enterprise-card-header,
.dashboard-analytics-page .enterprise-card-header {
  padding: .44rem .62rem .14rem;
}

.dashboard-ops-page .enterprise-card-body,
.dashboard-analytics-page .enterprise-card-body {
  padding: .38rem .62rem .58rem;
}

.dashboard-section-header {
  min-height: 1.9rem;
}

.dashboard-section-header h5 {
  font-size: .82rem;
  letter-spacing: -.005em;
}

.dashboard-section-header i {
  color: var(--ds-primary);
}

.dashboard-refresh-link {
  font-size: .68rem;
}

.dashboard-subscription-strip .card-body {
  padding: .42rem .58rem;
}

.dashboard-ops-page .subscription-plan-summary {
  min-height: 2.45rem;
}

.dashboard-subscription-strip h2 {
  font-size: .8rem;
}

.dashboard-subscription-strip .ops-widget-value {
  font-size: .86rem;
}

.dashboard-ops-page .dashboard-subscription-strip .ops-widget-grid {
  gap: .5rem;
}

.dashboard-ops-page .dashboard-subscription-strip .ops-widget {
  padding-left: .52rem;
}

.ops-skeleton-list {
  gap: .32rem;
}

.ops-skeleton-list span {
  height: 1.05rem;
}

.ops-metric-strip,
.ops-revenue-grid {
  gap: .32rem;
}

.ops-metric-strip > div,
.ops-revenue-grid > div,
.ops-revenue-total,
.ops-list-row,
.ops-feed-row,
.ops-timeline-row,
.ops-health-item,
.quick-action {
  border-radius: var(--ds-radius-md);
  padding: .34rem .42rem;
}

.ops-metric-strip strong,
.ops-revenue-grid strong {
  font-size: .92rem;
}

.ops-metric-strip span,
.ops-revenue-grid span {
  font-size: .63rem;
}

.ops-revenue-total strong {
  font-size: 1.16rem;
}

.ops-progress-row {
  margin-top: .32rem;
}

.ops-progress {
  height: .34rem;
}

.ops-mini-chart {
  height: 2.35rem;
  margin-top: .38rem;
  padding: .28rem;
}

.ops-chip-row {
  gap: .25rem;
  margin-top: .35rem;
}

.ops-list,
.ops-feed,
.ops-timeline,
.ops-alert-list,
.ops-health-grid,
.ops-patient-list {
  display: grid;
  gap: .32rem;
}

.ops-list {
  margin-top: .38rem;
}

.ops-empty-inline {
  background: #f8fbfd;
  border-radius: var(--ds-radius-md);
  padding: .42rem .5rem;
}

.dashboard-ops-page .enterprise-empty-state,
.dashboard-ops-page .ops-empty-good {
  gap: .16rem;
  padding: .48rem .52rem;
}

.dashboard-attention-body {
  display: grid;
  gap: .38rem;
}

.dashboard-inline-divider {
  border-top: 1px solid rgba(207, 220, 231, .7);
}

.dashboard-attention-card .ops-alert,
.dashboard-attention-card .ops-health-item {
  padding: .34rem .42rem;
}

.dashboard-attention-card .ops-health-grid {
  grid-template-columns: 1fr;
}

.dashboard-attention-card .ops-empty-good {
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr);
  justify-items: start;
  text-align: left;
}

.quick-actions-toolbar {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quick-actions-toolbar .quick-action {
  gap: .16rem;
  min-height: 2.72rem;
  padding: .34rem .22rem;
}

.quick-actions-toolbar .quick-action i {
  font-size: .82rem;
  height: 1.58rem;
  width: 1.58rem;
}

.quick-actions-toolbar .quick-action span {
  font-size: .66rem;
  line-height: 1.15;
}

.ops-patient-row {
  align-items: center;
  background: #f8fbfd;
  border: 1px solid transparent;
  border-radius: var(--ds-radius-md);
  display: grid;
  gap: .48rem;
  grid-template-columns: auto minmax(0, 1.25fr) auto minmax(8rem, .8fr) auto;
  padding: .38rem .48rem;
}

.ops-avatar {
  align-items: center;
  background: var(--ds-primary-soft);
  border-radius: 999px;
  color: var(--ds-primary);
  display: inline-flex;
  font-size: .68rem;
  font-weight: 700;
  height: 1.8rem;
  justify-content: center;
  width: 1.8rem;
}

.ops-patient-main,
.ops-patient-meta {
  min-width: 0;
}

.ops-patient-main strong,
.ops-patient-meta strong {
  display: block;
  font-size: var(--ds-text-sm);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-patient-main span,
.ops-patient-meta span {
  color: var(--ds-ink-muted);
  display: block;
  font-size: var(--ds-text-meta);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-patient-meta {
  text-align: right;
}

.ops-row-actions {
  gap: .32rem;
}

.dashboard-feed-tabs {
  background: #edf4f8;
  border-radius: 999px;
  display: inline-flex;
  gap: .12rem;
  padding: .12rem;
}

.dashboard-feed-tabs button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--ds-ink-muted);
  font-size: .66rem;
  font-weight: 650;
  line-height: 1;
  padding: .24rem .42rem;
}

.dashboard-feed-tabs button.active {
  background: #fff;
  color: var(--ds-primary);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
}

.dashboard-feed-panel {
  display: none;
}

.dashboard-feed-panel.active {
  display: block;
}

.dashboard-activity-card .ops-feed,
.dashboard-activity-card .ops-timeline {
  max-height: 11.25rem;
  overflow-y: auto;
  padding-right: .12rem;
}

.dashboard-activity-card .ops-feed-row,
.dashboard-activity-card .ops-timeline-row {
  padding: .32rem .38rem;
}

.dashboard-activity-card .ops-feed-row strong,
.dashboard-activity-card .ops-feed-row span,
.dashboard-activity-card .ops-timeline-row strong,
.dashboard-activity-card .ops-timeline-row span {
  font-size: .7rem;
}

.dashboard-section-label {
  padding: .08rem .05rem 0;
}

.dashboard-section-label h2 {
  color: var(--ds-ink-muted);
  font-size: .78rem;
  letter-spacing: .06em;
  margin: 0;
  text-transform: uppercase;
}

.dashboard-analytics-section {
  gap: .42rem;
  margin-top: .04rem;
}

.analytics-report-row {
  --bs-gutter-y: .42rem;
}

.analytics-card {
  background: #fbfdff !important;
}

.chart-card-body {
  padding-bottom: .42rem;
  padding-top: .3rem;
}

.dashboard-analytics-page .chart-frame {
  height: 86px;
}

.dashboard-ops-page .chart-frame-sm {
  height: 78px;
}

.dashboard-ops-page canvas[height="210"] {
  max-height: 78px;
}

.dashboard-compact-empty {
  align-items: center;
  display: flex;
  gap: .45rem;
  justify-content: flex-start;
  text-align: left;
}

@media (max-width: 1199.98px) {
  .dashboard-primary-zone,
  .dashboard-sidebar-zone {
    grid-column: span 12;
  }

  .dashboard-sidebar-zone {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-activity-card {
    grid-column: span 2;
  }
}

@media (max-width: 991.98px) {
  .dashboard-license-row,
  .dashboard-zone-grid,
  .dashboard-tertiary-grid,
  .dashboard-primary-zone {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-plan-card,
  .dashboard-usage-card,
  .dashboard-primary-zone > .ops-card,
  .dashboard-primary-zone > .dashboard-revenue-card,
  .dashboard-primary-zone > [data-widget-shell="patients"],
  .dashboard-sidebar-zone,
  .dashboard-tertiary-grid > .ops-card,
  .dashboard-tertiary-grid > .ops-card:first-child {
    grid-column: span 2;
  }

  .ops-patient-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .ops-patient-meta,
  .ops-row-actions {
    grid-column: 2 / -1;
    text-align: left;
  }
}

@media (max-width: 576px) {
  .dashboard-license-row,
  .dashboard-zone-grid,
  .dashboard-tertiary-grid,
  .dashboard-primary-zone,
  .dashboard-sidebar-zone,
  .quick-actions-toolbar {
    grid-template-columns: 1fr;
  }

  .dashboard-plan-card,
  .dashboard-usage-card,
  .dashboard-primary-zone,
  .dashboard-primary-zone > .ops-card,
  .dashboard-primary-zone > .dashboard-revenue-card,
  .dashboard-primary-zone > [data-widget-shell="patients"],
  .dashboard-sidebar-zone,
  .dashboard-activity-card,
  .dashboard-tertiary-grid > .ops-card,
  .dashboard-tertiary-grid > .ops-card:first-child {
    grid-column: span 1;
  }
}

/* Dashboard refinement pass: hierarchy, depth, and reception workflow */
.dashboard-ops-page {
  gap: .75rem;
  padding-bottom: .75rem;
  padding-top: .75rem;
}

.dashboard-operational-header {
  align-items: stretch;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  border: 1px solid #cfdce7;
  border-radius: var(--ds-radius-xl);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .075), 0 1px 2px rgba(15, 23, 42, .05);
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(320px, 1.12fr) minmax(420px, .88fr);
  padding: 1rem;
}

.dashboard-operational-copy {
  align-content: center;
  display: grid;
  gap: .5rem;
  min-width: 0;
}

.dashboard-operational-copy h1 {
  color: #132033;
  font-size: clamp(1.65rem, 1.8vw, 2rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.08;
}

.dashboard-operational-copy p {
  color: var(--ds-ink-muted);
  font-size: .9rem;
  line-height: 1.45;
  max-width: 48rem;
}

.dashboard-plan-line {
  align-items: center;
  color: var(--ds-ink-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: .82rem;
  gap: .5rem;
}

.dashboard-plan-line strong {
  color: var(--ds-ink);
  font-size: .88rem;
  font-weight: 650;
}

.dashboard-header-kpis {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-header-kpis .ops-widget {
  align-content: center;
  background: #fff;
  border: 1px solid #d7e3ed;
  border-radius: var(--ds-radius-lg);
  box-shadow: 0 6px 16px rgba(15, 23, 42, .055);
  display: grid;
  gap: .25rem;
  min-height: 6.25rem;
  padding: .875rem;
  position: relative;
}

.dashboard-header-kpis .ops-widget i {
  align-items: center;
  background: var(--ds-primary-soft);
  border-radius: 999px;
  color: var(--ds-primary);
  display: inline-flex;
  font-size: .95rem;
  height: 2rem;
  justify-content: center;
  margin-bottom: .125rem;
  width: 2rem;
}

.dashboard-header-kpis .ops-widget-label,
.dashboard-ops-page .ops-widget-label,
.dashboard-ops-page .kpi-label {
  color: #68778c;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .055em;
}

.dashboard-header-kpis .ops-widget-value {
  color: #122036;
  font-size: clamp(1.55rem, 1.55vw, 1.9rem);
  font-weight: 750;
  letter-spacing: -.035em;
}

.dashboard-zone-grid,
.dashboard-primary-zone,
.dashboard-sidebar-zone,
.dashboard-tertiary-grid,
.dashboard-analytics-section {
  gap: .75rem;
}

.dashboard-primary-zone {
  grid-column: span 8;
}

.dashboard-sidebar-zone {
  grid-column: span 4;
}

.dashboard-primary-zone > .ops-card {
  grid-column: span 4;
}

.dashboard-primary-zone > .dashboard-revenue-card,
.dashboard-primary-zone > [data-widget-shell="patients"] {
  grid-column: span 8;
}

.dashboard-ops-page .enterprise-card,
.dashboard-ops-page .saas-widget,
.dashboard-analytics-page .chart-panel,
.dashboard-ops-page .chart-panel {
  border-color: #d4e0ea;
  border-radius: var(--ds-radius-xl);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
}

.dashboard-ops-page .enterprise-card:hover,
.dashboard-ops-page .saas-widget:hover,
.dashboard-analytics-page .chart-panel:hover,
.dashboard-ops-page .chart-panel:hover {
  border-color: #bfd0dd;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08), 0 2px 4px rgba(15, 23, 42, .04);
  transform: translateY(-1px);
}

.dashboard-primary-zone .enterprise-card {
  border-color: #c8d8e5;
}

.dashboard-primary-zone [data-widget-shell="appointments"],
.dashboard-primary-zone .dashboard-queue-card,
.dashboard-primary-zone .dashboard-revenue-card {
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .05);
}

.dashboard-primary-zone [data-widget-shell="appointments"] {
  border-top: 3px solid rgba(31, 95, 143, .72);
}

.dashboard-primary-zone .dashboard-queue-card {
  border-top: 3px solid rgba(35, 122, 87, .72);
}

.dashboard-revenue-card {
  border-color: rgba(31, 95, 143, .28) !important;
  border-top: 3px solid rgba(31, 95, 143, .72);
}

.dashboard-ops-page .enterprise-card-header,
.dashboard-analytics-page .enterprise-card-header {
  background: #fbfdff;
  border-bottom: 1px solid #dbe7f0;
  min-height: 3rem;
  padding: .75rem 1rem;
}

.dashboard-ops-page .enterprise-card-body,
.dashboard-analytics-page .enterprise-card-body {
  padding: 1rem;
}

.dashboard-section-header h5,
.dashboard-analytics-page .dashboard-section-header h5 {
  color: #132033;
  font-size: clamp(1.125rem, 1.05vw, 1.3rem);
  font-weight: 700 !important;
  letter-spacing: -.015em;
}

.dashboard-section-header i {
  color: var(--ds-primary);
  font-size: 1rem;
}

.dashboard-refresh-link {
  color: var(--ds-primary);
  font-size: .78rem;
}

.dashboard-header-actions .btn-sm,
.dashboard-header-actions .form-control-sm {
  font-size: .78rem;
  min-height: 2rem;
}

.ops-metric-strip,
.ops-revenue-grid,
.ops-list,
.ops-feed,
.ops-timeline,
.ops-alert-list,
.ops-health-grid,
.ops-patient-list,
.quick-actions-grid {
  gap: .5rem;
}

.ops-metric-strip > div,
.ops-revenue-grid > div,
.ops-revenue-total,
.ops-list-row,
.ops-feed-row,
.ops-timeline-row,
.ops-health-item,
.quick-action,
.ops-alert,
.ops-patient-row {
  background: #f8fbfd;
  border: 1px solid #dce7f0;
  border-radius: var(--ds-radius-lg);
  padding: .625rem .75rem;
}

.ops-metric-strip > div,
.ops-revenue-grid > div,
.ops-revenue-total {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}

.ops-metric-strip span,
.ops-revenue-grid span {
  color: #65768a;
  font-size: .76rem;
}

.ops-metric-strip strong,
.ops-revenue-grid strong {
  color: #122036;
  font-size: clamp(1.65rem, 1.7vw, 2.1rem);
  font-weight: 750;
  line-height: 1.05;
}

.ops-revenue-total {
  background: #eef6fb;
  border-color: #c9ddea;
}

.ops-revenue-total strong {
  color: var(--ds-primary-strong);
  font-size: clamp(1.8rem, 2.2vw, 2.35rem);
}

.ops-revenue-total em {
  font-size: .82rem;
  margin-top: .25rem;
}

.ops-mini-chart {
  background: #f6fafc;
  border-color: #dce7f0;
  height: 4.25rem;
  margin-top: .75rem;
  padding: .5rem;
}

.ops-progress-row {
  gap: .375rem;
  margin-top: .75rem;
}

.ops-progress {
  height: .5rem;
}

.ops-list-row strong,
.ops-feed-row strong,
.ops-timeline-row strong,
.ops-health-item strong,
.ops-patient-main strong,
.ops-patient-meta strong,
.quick-action span,
.ops-alert strong {
  color: #172033;
  font-size: .86rem;
}

.ops-list-row span,
.ops-feed-row span,
.ops-timeline-row span,
.ops-health-item span,
.ops-patient-main span,
.ops-patient-meta span,
.ops-alert p {
  color: var(--ds-ink-muted);
  font-size: .78rem;
}

.ops-alert-category {
  font-size: .74rem;
}

.quick-actions-toolbar {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-actions-toolbar .quick-action {
  gap: .375rem;
  min-height: 4.25rem;
  padding: .625rem .5rem;
}

.quick-actions-toolbar .quick-action i {
  box-shadow: 0 3px 8px rgba(31, 95, 143, .12);
  font-size: .95rem;
  height: 2rem;
  width: 2rem;
}

.quick-actions-toolbar .quick-action span {
  font-size: .78rem;
}

.dashboard-activity-card .ops-feed,
.dashboard-activity-card .ops-timeline {
  max-height: 14rem;
}

.dashboard-activity-card .ops-feed-row,
.dashboard-activity-card .ops-timeline-row {
  padding: .5rem .625rem;
}

.dashboard-activity-card .ops-feed-row strong,
.dashboard-activity-card .ops-feed-row span,
.dashboard-activity-card .ops-timeline-row strong,
.dashboard-activity-card .ops-timeline-row span {
  font-size: .78rem;
}

.ops-patient-row {
  gap: .75rem;
  grid-template-columns: auto minmax(0, 1.3fr) auto minmax(9rem, .8fr) auto;
  padding: .625rem .75rem;
}

.ops-avatar {
  font-size: .78rem;
  height: 2rem;
  width: 2rem;
}

.dashboard-section-label {
  background: #fff;
  border: 1px solid #d4e0ea;
  border-radius: var(--ds-radius-xl);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
  padding: .875rem 1rem;
}

.dashboard-section-label h2 {
  color: #132033;
  font-size: clamp(1.15rem, 1.25vw, 1.38rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin: .125rem 0 0;
  text-transform: none;
}

.dashboard-analytics-section {
  background: #eef4f8;
  border: 1px solid #d4e0ea;
  border-radius: var(--ds-radius-xl);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
  margin-top: .25rem;
  padding: .75rem;
}

.analytics-report-row {
  --bs-gutter-y: .75rem;
}

.analytics-card {
  background: #fff !important;
  border-color: #d4e0ea !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .055) !important;
}

.dashboard-analytics-page .chart-frame {
  height: 150px;
}

.dashboard-ops-page .chart-frame-sm {
  height: 132px;
}

.dashboard-ops-page canvas[height="210"] {
  max-height: 132px;
}

.dashboard-ops-page .kpi-grid {
  gap: .75rem;
}

.dashboard-ops-page .kpi-card {
  border-color: #d7e3ed;
  border-left-width: 4px;
  border-radius: var(--ds-radius-lg);
  box-shadow: 0 6px 16px rgba(15, 23, 42, .055);
  min-height: 6.5rem;
  padding: .875rem;
}

.dashboard-ops-page .kpi-card .bi {
  align-items: center;
  background: var(--ds-primary-soft);
  border-radius: 999px;
  display: inline-flex;
  font-size: 1rem !important;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.dashboard-ops-page .kpi-value {
  color: #122036;
  font-size: clamp(1.75rem, 2vw, 2.25rem);
  font-weight: 750;
}

.dashboard-ops-page .kpi-note {
  font-size: .78rem;
  margin-top: .25rem;
}

.compact-table-body .table-responsive {
  max-height: 18rem;
}

@media (max-width: 1199.98px) {
  .dashboard-operational-header {
    grid-template-columns: 1fr;
  }

  .dashboard-header-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-primary-zone,
  .dashboard-sidebar-zone {
    grid-column: span 12;
  }
}

@media (max-width: 991.98px) {
  .dashboard-operational-header,
  .dashboard-analytics-section {
    padding: .75rem;
  }

  .dashboard-header-kpis,
  .quick-actions-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 576px) {
  .dashboard-operational-header {
    gap: .75rem;
    padding: .75rem;
  }

  .dashboard-header-kpis,
  .quick-actions-toolbar {
    grid-template-columns: 1fr;
  }

  .dashboard-operational-copy h1 {
    font-size: 1.45rem;
  }

  .dashboard-header-kpis .ops-widget {
    min-height: 5rem;
  }
}

/* Final enterprise design-system refinement pass */
:root {
  --ds-space-card: 1rem;
  --ds-space-card-sm: .75rem;
  --ds-radius-sm: .42rem;
  --ds-radius-md: .62rem;
  --ds-radius-lg: .82rem;
  --ds-radius-xl: 1rem;
  --ds-shadow-xs: 0 1px 2px rgba(15, 23, 42, .045), 0 5px 12px rgba(15, 23, 42, .025);
  --ds-shadow-sm: 0 10px 24px rgba(15, 23, 42, .07), 0 1px 2px rgba(15, 23, 42, .045);
  --ds-shadow-md: 0 18px 42px rgba(15, 23, 42, .09), 0 2px 4px rgba(15, 23, 42, .045);
  --ds-surface-canvas: #f3f7fa;
  --ds-surface-base: #ffffff;
  --ds-surface-muted: #f8fbfd;
  --ds-surface-subtle: #edf4f8;
  --ds-border: #d5e0ea;
  --ds-border-strong: #bdccd9;
  --ds-ink: #132033;
  --ds-ink-muted: #53657a;
  --ds-ink-soft: #718197;
  --ds-primary: #17496f;
  --ds-primary-strong: #102f4d;
  --ds-primary-soft: #e8f1f7;
  --ds-accent: #2c7f83;
  --ds-accent-soft: #e7f4f3;
  --ds-success: #237a57;
  --ds-warning: #a86613;
  --ds-danger: #a63a32;
  --bs-primary: var(--ds-primary);
  --bs-primary-rgb: 23, 73, 111;
}

body {
  background:
    radial-gradient(circle at 6% 0%, rgba(23, 73, 111, .08), transparent 28rem),
    linear-gradient(180deg, #eef5f9 0%, var(--ds-surface-canvas) 18rem, #f7fafc 100%);
  color: var(--ds-ink);
  text-rendering: optimizeLegibility;
}

.dashboard-ops-page {
  gap: .875rem;
  margin-inline: auto;
  max-width: 1780px;
  padding-bottom: .9rem;
  padding-top: .9rem;
}

.dashboard-operational-header,
.dashboard-ops-page .enterprise-card,
.dashboard-ops-page .saas-widget,
.dashboard-ops-page .chart-panel,
.dashboard-analytics-page .chart-panel,
.dashboard-section-label,
.dashboard-analytics-section {
  border-color: var(--ds-border);
  border-radius: var(--ds-radius-xl);
}

.dashboard-operational-header {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(248, 252, 253, .96)),
    var(--ds-surface-base);
  box-shadow: var(--ds-shadow-md), inset 0 1px 0 rgba(255, 255, 255, .9);
  overflow: hidden;
  padding: clamp(1rem, 1.35vw, 1.35rem);
  position: relative;
}

.dashboard-operational-header::after {
  background: linear-gradient(90deg, var(--ds-primary), var(--ds-accent), transparent);
  bottom: 0;
  content: "";
  height: 3px;
  left: 0;
  opacity: .72;
  position: absolute;
  right: 0;
}

.dashboard-operational-copy h1 {
  color: var(--ds-ink);
  font-size: clamp(1.7rem, 1.9vw, 2.1rem);
  font-weight: 780;
  letter-spacing: -.04em;
}

.dashboard-operational-copy p,
.dashboard-plan-line {
  color: var(--ds-ink-muted);
  font-weight: 450;
}

.enterprise-kicker,
.eyebrow,
.dashboard-header-kpis .ops-widget-label,
.dashboard-ops-page .ops-widget-label,
.dashboard-ops-page .kpi-label {
  color: var(--ds-ink-soft);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .075em;
}

.dashboard-header-kpis .ops-widget,
.dashboard-ops-page .kpi-card,
.dashboard-ops-page .ops-metric-strip > div,
.dashboard-ops-page .ops-revenue-grid > div,
.dashboard-ops-page .ops-revenue-total,
.dashboard-ops-page .ops-list-row,
.dashboard-ops-page .ops-feed-row,
.dashboard-ops-page .ops-timeline-row,
.dashboard-ops-page .ops-health-item,
.dashboard-ops-page .quick-action,
.dashboard-ops-page .ops-alert,
.dashboard-ops-page .ops-patient-row {
  background: linear-gradient(180deg, #ffffff 0%, var(--ds-surface-muted) 100%);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  box-shadow: var(--ds-shadow-xs);
}

.dashboard-header-kpis .ops-widget,
.dashboard-ops-page .kpi-card {
  align-content: start;
  gap: .42rem;
  min-height: 6.35rem;
  padding: .95rem;
  position: relative;
}

.dashboard-header-kpis .ops-widget::after,
.dashboard-ops-page .kpi-card::after {
  background: linear-gradient(180deg, var(--ds-primary), var(--ds-accent));
  border-radius: 999px;
  content: "";
  height: 42%;
  left: -1px;
  min-height: 2.6rem;
  opacity: .9;
  position: absolute;
  top: .95rem;
  width: 3px;
}

.dashboard-header-kpis .ops-widget {
  overflow: hidden;
}

.dashboard-header-kpis .ops-widget i,
.dashboard-ops-page .kpi-card .bi,
.dashboard-ops-page .quick-actions-toolbar .quick-action i {
  background: var(--ds-primary-soft);
  border: 1px solid rgba(23, 73, 111, .12);
  border-radius: .78rem;
  color: var(--ds-primary);
  font-size: .96rem !important;
  height: 2.05rem;
  width: 2.05rem;
}

.dashboard-header-kpis .ops-widget-value,
.dashboard-ops-page .kpi-value,
.dashboard-ops-page .ops-metric-strip strong,
.dashboard-ops-page .ops-revenue-grid strong {
  color: var(--ds-ink);
  font-size: clamp(1.55rem, 1.85vw, 2.08rem);
  font-weight: 820;
  letter-spacing: -.045em;
  line-height: 1.02;
}

.dashboard-ops-page .enterprise-card,
.dashboard-ops-page .saas-widget,
.dashboard-ops-page .chart-panel,
.dashboard-analytics-page .chart-panel {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: var(--ds-shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .86);
}

.dashboard-ops-page .enterprise-card:hover,
.dashboard-ops-page .saas-widget:hover,
.dashboard-ops-page .chart-panel:hover,
.dashboard-analytics-page .chart-panel:hover {
  border-color: var(--ds-border-strong);
  box-shadow: var(--ds-shadow-md), inset 0 1px 0 rgba(255, 255, 255, .9);
  transform: translateY(-1px);
}

.dashboard-ops-page .enterprise-card-header,
.dashboard-analytics-page .enterprise-card-header {
  background: linear-gradient(180deg, #fbfdff 0%, #f6f9fc 100%);
  border-bottom: 1px solid #dfe8f1;
  min-height: 3rem;
  padding: .72rem var(--ds-space-card);
}

.dashboard-ops-page .enterprise-card-body,
.dashboard-analytics-page .enterprise-card-body {
  padding: var(--ds-space-card);
}

.dashboard-section-header h5,
.dashboard-analytics-page .dashboard-section-header h5 {
  color: var(--ds-ink);
  font-size: clamp(1rem, .95vw, 1.16rem);
  font-weight: 760 !important;
  letter-spacing: -.02em;
}

.dashboard-section-header i {
  color: var(--ds-primary);
  font-size: 1rem;
  line-height: 1;
}

.dashboard-refresh-link {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ds-primary);
  display: inline-flex;
  font-size: .78rem;
  font-weight: 700;
  gap: .3rem;
  min-height: 1.9rem;
  padding: .25rem .55rem;
}

.dashboard-refresh-link:hover,
.dashboard-refresh-link:focus {
  background: var(--ds-primary-soft);
  border-color: rgba(23, 73, 111, .18);
  color: var(--ds-primary-strong);
}

.dashboard-header-actions .btn-sm,
.dashboard-header-actions .form-control-sm,
.dashboard-ops-page .btn-sm {
  border-radius: var(--ds-radius-md);
  font-size: .78rem;
  font-weight: 700;
  min-height: 2rem;
}

.dashboard-header-actions .btn-primary,
.dashboard-header-actions .btn-outline-primary,
.dashboard-ops-page .btn-outline-primary {
  border-color: rgba(23, 73, 111, .28);
}

.dashboard-header-actions .btn-primary,
.dashboard-ops-page .btn-primary {
  background: var(--ds-primary);
  border-color: var(--ds-primary);
  box-shadow: 0 8px 18px rgba(23, 73, 111, .14);
}

.dashboard-header-actions .btn-outline-primary,
.dashboard-ops-page .btn-outline-primary {
  background: #ffffff;
  color: var(--ds-primary);
}

.dashboard-header-actions .btn-primary:hover,
.dashboard-header-actions .btn-primary:focus,
.dashboard-ops-page .btn-primary:hover,
.dashboard-ops-page .btn-primary:focus {
  background: var(--ds-primary-strong);
  border-color: var(--ds-primary-strong);
}

.dashboard-header-actions .btn-outline-primary:hover,
.dashboard-header-actions .btn-outline-primary:focus,
.dashboard-ops-page .btn-outline-primary:hover,
.dashboard-ops-page .btn-outline-primary:focus {
  background: var(--ds-primary-soft);
  border-color: rgba(23, 73, 111, .42);
  color: var(--ds-primary-strong);
}

.dashboard-ops-page .quick-actions-grid {
  gap: .55rem;
}

.dashboard-ops-page .quick-action {
  color: var(--ds-ink);
  transition: border-color .16s ease, box-shadow .16s ease, color .16s ease, transform .16s ease;
}

.dashboard-ops-page .quick-action:hover,
.dashboard-ops-page .quick-action:focus {
  border-color: rgba(23, 73, 111, .36);
  box-shadow: var(--ds-shadow-sm);
  color: var(--ds-primary-strong);
  transform: translateY(-1px);
}

.dashboard-ops-page .quick-actions-toolbar .quick-action {
  min-height: 4.15rem;
  padding: .65rem .55rem;
}

.dashboard-ops-page .quick-actions-toolbar .quick-action span {
  font-size: .78rem;
  font-weight: 750;
}

.dashboard-ops-page .ops-list-row strong,
.dashboard-ops-page .ops-feed-row strong,
.dashboard-ops-page .ops-timeline-row strong,
.dashboard-ops-page .ops-health-item strong,
.dashboard-ops-page .ops-patient-main strong,
.dashboard-ops-page .ops-patient-meta strong,
.dashboard-ops-page .quick-action span,
.dashboard-ops-page .ops-alert strong {
  color: var(--ds-ink);
  font-weight: 760;
}

.dashboard-ops-page .ops-list-row span,
.dashboard-ops-page .ops-feed-row span,
.dashboard-ops-page .ops-timeline-row span,
.dashboard-ops-page .ops-health-item span,
.dashboard-ops-page .ops-patient-main span,
.dashboard-ops-page .ops-patient-meta span,
.dashboard-ops-page .ops-alert p,
.dashboard-ops-page .kpi-note {
  color: var(--ds-ink-muted);
  font-weight: 450;
}

.dashboard-ops-page .ops-status-dot {
  box-shadow: 0 0 0 3px rgba(23, 73, 111, .08);
}

.dashboard-ops-page .status-green,
.dashboard-ops-page .status-success,
.dashboard-ops-page .text-bg-success {
  background-color: var(--ds-success) !important;
}

.dashboard-ops-page .status-yellow,
.dashboard-ops-page .status-warning,
.dashboard-ops-page .status-pending {
  background-color: var(--ds-warning) !important;
}

.dashboard-ops-page .status-red,
.dashboard-ops-page .status-danger,
.dashboard-ops-page .status-cancelled,
.dashboard-ops-page .text-bg-danger {
  background-color: var(--ds-danger) !important;
}

.dashboard-ops-page .text-bg-primary,
.dashboard-ops-page .status-info {
  background-color: var(--ds-primary) !important;
}

.dashboard-ops-page .enterprise-empty-state,
.dashboard-ops-page .ops-empty-good,
.dashboard-ops-page .ops-empty-inline {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(246, 250, 252, .96));
  border: 1px dashed var(--ds-border-strong);
  border-radius: var(--ds-radius-lg);
  color: var(--ds-ink-muted);
  display: grid;
  gap: .25rem;
  justify-items: center;
  min-height: 4.25rem;
  padding: 1rem;
  text-align: center;
}

.dashboard-ops-page .enterprise-empty-state i,
.dashboard-ops-page .ops-empty-good i {
  color: var(--ds-accent);
  font-size: 1.25rem;
}

.dashboard-ops-page .enterprise-empty-state strong,
.dashboard-ops-page .ops-empty-good strong {
  color: var(--ds-ink);
  font-weight: 760;
}

.dashboard-ops-page .ops-mini-chart,
.dashboard-ops-page .chart-frame,
.dashboard-analytics-page .chart-frame {
  background: linear-gradient(180deg, #f9fcfd, #f3f8fb);
  border-color: var(--ds-border);
  border-radius: var(--ds-radius-lg);
}

.dashboard-section-label,
.dashboard-analytics-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(239, 246, 250, .88));
  box-shadow: var(--ds-shadow-xs), inset 0 1px 0 rgba(255, 255, 255, .82);
}

@media (min-width: 1400px) {
  .dashboard-ops-page {
    padding-inline: .25rem;
  }
}

@media (min-width: 1800px) {
  .dashboard-ops-page {
    max-width: 1840px;
  }
}

@media (max-width: 1399.98px) {
  .dashboard-ops-page {
    gap: .75rem;
  }

  .dashboard-header-kpis .ops-widget,
  .dashboard-ops-page .kpi-card {
    min-height: 5.85rem;
    padding: .82rem;
  }

  .dashboard-header-kpis .ops-widget-value,
  .dashboard-ops-page .kpi-value,
  .dashboard-ops-page .ops-metric-strip strong,
  .dashboard-ops-page .ops-revenue-grid strong {
    font-size: clamp(1.42rem, 1.65vw, 1.82rem);
  }
}

@media (max-width: 991.98px) {
  .dashboard-ops-page .enterprise-card-header,
  .dashboard-analytics-page .enterprise-card-header,
  .dashboard-ops-page .enterprise-card-body,
  .dashboard-analytics-page .enterprise-card-body {
    padding: var(--ds-space-card-sm);
  }
}

/* Dashboard typography normalization: compact enterprise healthcare scale */
.dashboard-ops-page {
  --dashboard-text-helper: 11px;
  --dashboard-text-label: 11px;
  --dashboard-text-meta: 12px;
  --dashboard-text-body: 13px;
  --dashboard-text-secondary: 14px;
  --dashboard-text-section: 16px;
  --dashboard-text-card-title: 13px;
  line-height: 1.45;
}

.dashboard-operational-copy h1 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.18;
}

.dashboard-operational-copy p {
  font-size: var(--dashboard-text-secondary);
  font-weight: 400;
  line-height: 1.48;
}

.dashboard-plan-line {
  font-size: var(--dashboard-text-body);
  font-weight: 400;
  line-height: 1.38;
}

.dashboard-plan-line strong {
  font-size: var(--dashboard-text-body);
  font-weight: 500;
}

.dashboard-section-label h2 {
  font-size: var(--dashboard-text-section);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.28;
}

.dashboard-section-header h5,
.dashboard-analytics-page .dashboard-section-header h5 {
  font-size: var(--dashboard-text-card-title);
  font-weight: 600 !important;
  letter-spacing: 0;
  line-height: 1.32;
}

.dashboard-section-header i {
  font-size: 12px;
}

.enterprise-kicker,
.eyebrow {
  font-size: var(--dashboard-text-label);
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.3;
  text-transform: uppercase;
}

.dashboard-header-kpis .ops-widget-label,
.dashboard-ops-page .ops-widget-label,
.dashboard-ops-page .kpi-label,
.dashboard-ops-page .ops-metric-strip span,
.dashboard-ops-page .ops-revenue-grid span,
.dashboard-ops-page .ops-alert-category {
  font-size: var(--dashboard-text-label);
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.32;
  text-transform: none;
}

.dashboard-header-kpis .ops-widget-value {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.12;
}

.dashboard-ops-page .kpi-value {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.12;
}

.dashboard-ops-page .ops-metric-strip strong {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.12;
}

.dashboard-ops-page .ops-revenue-grid > div:not(.ops-revenue-total) strong {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.12;
}

.dashboard-ops-page .ops-revenue-total strong {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.dashboard-ops-page [data-widget-shell="multicentre"] .ops-metric-strip strong {
  font-size: var(--dashboard-text-body);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.35;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.dashboard-ops-page .kpi-note,
.dashboard-ops-page .ops-revenue-total em,
.dashboard-ops-page .ops-list-row span,
.dashboard-ops-page .ops-feed-row span,
.dashboard-ops-page .ops-timeline-row span,
.dashboard-ops-page .ops-health-item span,
.dashboard-ops-page .ops-patient-main span,
.dashboard-ops-page .ops-patient-meta span,
.dashboard-ops-page .ops-alert p,
.dashboard-ops-page .enterprise-empty-state span,
.dashboard-ops-page .ops-empty-good span,
.dashboard-ops-page .ops-empty-inline {
  font-size: var(--dashboard-text-meta);
  font-weight: 400;
  line-height: 1.38;
}

.dashboard-ops-page .ops-list-row strong,
.dashboard-ops-page .ops-feed-row strong,
.dashboard-ops-page .ops-timeline-row strong,
.dashboard-ops-page .ops-health-item strong,
.dashboard-ops-page .ops-patient-main strong,
.dashboard-ops-page .ops-patient-meta strong,
.dashboard-ops-page .ops-alert strong,
.dashboard-ops-page .enterprise-empty-state strong,
.dashboard-ops-page .ops-empty-good strong {
  font-size: var(--dashboard-text-body);
  font-weight: 500;
  line-height: 1.32;
}

.dashboard-ops-page .quick-action span,
.dashboard-ops-page .quick-actions-toolbar .quick-action span {
  font-size: var(--dashboard-text-meta);
  font-weight: 500;
  line-height: 1.24;
}

.dashboard-refresh-link {
  font-size: var(--dashboard-text-helper);
  font-weight: 500;
  line-height: 1.2;
}

.dashboard-header-actions .btn-sm,
.dashboard-header-actions .form-control-sm,
.dashboard-ops-page .btn-sm,
.dashboard-feed-tabs button {
  font-size: var(--dashboard-text-helper);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.22;
}

.dashboard-ops-page .quick-actions-toolbar .quick-action i,
.dashboard-header-kpis .ops-widget i,
.dashboard-ops-page .kpi-card .bi {
  font-size: 14px !important;
}

.dashboard-ops-page .status-token,
.dashboard-ops-page .badge,
.dashboard-ops-page .plan-badge,
.dashboard-ops-page .enterprise-table,
.dashboard-ops-page .enterprise-table th {
  font-size: var(--dashboard-text-helper);
  font-weight: 500;
  line-height: 1.28;
}

.dashboard-activity-card .ops-feed-row strong,
.dashboard-activity-card .ops-feed-row span,
.dashboard-activity-card .ops-timeline-row strong,
.dashboard-activity-card .ops-timeline-row span {
  font-size: var(--dashboard-text-meta);
  line-height: 1.34;
}

@media (max-width: 1399.98px) {
  .dashboard-header-kpis .ops-widget-value {
    font-size: 17px;
  }

  .dashboard-ops-page .kpi-value {
    font-size: 20px;
  }

  .dashboard-ops-page .ops-metric-strip strong {
    font-size: 19px;
  }

  .dashboard-ops-page .ops-revenue-grid > div:not(.ops-revenue-total) strong {
    font-size: 17px;
  }

  .dashboard-ops-page .ops-revenue-total strong {
    font-size: 22px;
  }
}

@media (max-width: 576px) {
  .dashboard-operational-copy h1 {
    font-size: 24px;
  }
}

/* Final dashboard cleanup: compact reception operations mode */
.dashboard-compact-mode {
  --dashboard-gap: .55rem;
  --dashboard-card-pad-x: .7rem;
  --dashboard-card-pad-y: .55rem;
  --dashboard-card-radius: .72rem;
  --dashboard-shadow: 0 3px 10px rgba(15, 23, 42, .045), 0 1px 2px rgba(15, 23, 42, .035);
  gap: var(--dashboard-gap);
  max-width: 1720px;
  padding-bottom: .6rem;
  padding-top: .6rem;
}

.dashboard-compact-mode.dashboard-analytics-page,
.dashboard-compact-mode.dashboard-tertiary-page {
  padding-top: 0;
}

.dashboard-compact-mode .dashboard-operational-header {
  box-shadow: var(--dashboard-shadow);
  gap: .75rem;
  grid-template-columns: minmax(280px, .9fr) minmax(440px, 1.1fr);
  padding: .75rem .85rem;
}

.dashboard-compact-mode .dashboard-operational-header::after {
  opacity: .45;
}

.dashboard-compact-mode .dashboard-operational-copy {
  gap: .32rem;
}

.dashboard-compact-mode .dashboard-operational-copy h1 {
  font-size: clamp(20px, 1.35vw, 24px);
  line-height: 1.16;
}

.dashboard-compact-mode .dashboard-operational-copy p {
  font-size: 13px;
  line-height: 1.38;
  max-width: 46rem;
}

.dashboard-compact-mode .dashboard-plan-line {
  font-size: 12px;
  gap: .36rem;
}

.dashboard-compact-mode .dashboard-header-kpis {
  gap: .5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-compact-mode .dashboard-header-kpis .ops-widget {
  box-shadow: none;
  gap: .18rem;
  min-height: 4.35rem;
  padding: .58rem .65rem;
}

.dashboard-compact-mode .dashboard-header-kpis .ops-widget::after,
.dashboard-compact-mode .kpi-card::after {
  display: none;
}

.dashboard-compact-mode .dashboard-header-kpis .ops-widget i,
.dashboard-compact-mode .kpi-card .bi,
.dashboard-compact-mode .quick-actions-toolbar .quick-action i {
  border-radius: .58rem;
  font-size: 13px !important;
  height: 1.65rem;
  width: 1.65rem;
}

.dashboard-compact-mode .dashboard-header-kpis .ops-widget-value {
  font-size: 16px;
  line-height: 1.12;
}

.dashboard-compact-mode .dashboard-zone-grid,
.dashboard-compact-mode .dashboard-primary-zone,
.dashboard-compact-mode .dashboard-sidebar-zone,
.dashboard-compact-mode .dashboard-tertiary-grid,
.dashboard-compact-mode .dashboard-analytics-section {
  gap: var(--dashboard-gap);
}

.dashboard-compact-mode .dashboard-zone-grid {
  align-items: stretch;
}

.dashboard-compact-mode .dashboard-primary-zone {
  grid-column: span 9;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.dashboard-compact-mode .dashboard-sidebar-zone {
  align-content: stretch;
  grid-column: span 3;
  grid-template-rows: auto auto auto minmax(0, 1fr);
}

.dashboard-compact-mode .dashboard-primary-zone > .ops-card,
.dashboard-compact-mode .dashboard-primary-zone > .dashboard-revenue-card,
.dashboard-compact-mode .dashboard-primary-zone > [data-widget-shell="patients"] {
  grid-column: span 6;
}

.dashboard-compact-mode .ops-card,
.dashboard-compact-mode .analytics-card,
.dashboard-compact-mode .chart-panel {
  min-width: 0;
}

.dashboard-compact-mode .ops-card {
  display: flex;
  flex-direction: column;
}

.dashboard-compact-mode .enterprise-card-body {
  flex: 1 1 auto;
  min-width: 0;
}

.dashboard-compact-mode .enterprise-card,
.dashboard-compact-mode .saas-widget,
.dashboard-compact-mode .chart-panel,
.dashboard-analytics-page.dashboard-compact-mode .chart-panel,
.dashboard-compact-mode .dashboard-section-label,
.dashboard-compact-mode .dashboard-analytics-section {
  border-color: #d5e0ea;
  border-radius: var(--dashboard-card-radius);
  box-shadow: var(--dashboard-shadow);
  transition: border-color .12s ease, box-shadow .12s ease;
}

.dashboard-compact-mode .enterprise-card:hover,
.dashboard-compact-mode .saas-widget:hover,
.dashboard-compact-mode .chart-panel:hover,
.dashboard-analytics-page.dashboard-compact-mode .chart-panel:hover {
  border-color: #c5d3df;
  box-shadow: var(--dashboard-shadow);
  transform: none;
}

.dashboard-compact-mode .enterprise-card-header,
.dashboard-analytics-page.dashboard-compact-mode .enterprise-card-header {
  background: #fbfdff;
  min-height: 2.3rem;
  padding: .48rem var(--dashboard-card-pad-x);
}

.dashboard-compact-mode .enterprise-card-body,
.dashboard-analytics-page.dashboard-compact-mode .enterprise-card-body {
  padding: var(--dashboard-card-pad-y) var(--dashboard-card-pad-x) .65rem;
}

.dashboard-compact-mode .dashboard-section-header h5,
.dashboard-analytics-page.dashboard-compact-mode .dashboard-section-header h5 {
  font-size: 13px;
  font-weight: 600 !important;
  line-height: 1.24;
}

.dashboard-compact-mode .dashboard-section-header i {
  font-size: 12px;
}

.dashboard-compact-mode .dashboard-refresh-link {
  border-radius: .5rem;
  font-size: 11px;
  gap: .2rem;
  min-height: 1.55rem;
  padding: .18rem .4rem;
}

html:not(.menu-permissions-ready) [data-permission-menu-code],
html:not(.menu-permissions-ready) [data-module-code],
html:not(.menu-permissions-ready) [data-feature-code] {
  visibility: hidden;
}

html.menu-permissions-ready [data-permission-menu-code].d-none,
html.menu-permissions-ready [data-module-code].d-none,
html.menu-permissions-ready [data-feature-code].d-none {
  visibility: hidden;
}

.dashboard-refresh-link.is-refreshing i {
  animation: dashboard-refresh-spin .8s linear infinite;
}

@keyframes dashboard-refresh-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.dashboard-compact-mode .dashboard-header-actions {
  align-items: center;
  display: flex;
  gap: .35rem;
}

.dashboard-compact-mode .dashboard-header-actions .btn-sm,
.dashboard-compact-mode .dashboard-header-actions .form-control-sm,
.dashboard-compact-mode .btn-sm {
  border-radius: .5rem;
  font-size: 11px;
  min-height: 1.75rem;
  padding: .22rem .5rem;
}

.dashboard-compact-mode .ops-metric-strip,
.dashboard-compact-mode .ops-revenue-grid,
.dashboard-compact-mode .ops-list,
.dashboard-compact-mode .ops-feed,
.dashboard-compact-mode .ops-timeline,
.dashboard-compact-mode .ops-alert-list,
.dashboard-compact-mode .ops-health-grid,
.dashboard-compact-mode .ops-patient-list,
.dashboard-compact-mode .quick-actions-grid {
  gap: .36rem;
}

.dashboard-compact-mode .ops-metric-strip > div,
.dashboard-compact-mode .ops-revenue-grid > div,
.dashboard-compact-mode .ops-revenue-total,
.dashboard-compact-mode .ops-list-row,
.dashboard-compact-mode .ops-feed-row,
.dashboard-compact-mode .ops-timeline-row,
.dashboard-compact-mode .ops-health-item,
.dashboard-compact-mode .quick-action,
.dashboard-compact-mode .ops-alert,
.dashboard-compact-mode .ops-patient-row {
  background: #f8fbfd;
  border-color: #dde7ef;
  border-radius: .58rem;
  box-shadow: none;
  padding: .42rem .5rem;
}

.dashboard-compact-mode .ops-metric-strip strong {
  font-size: 20px;
}

.dashboard-compact-mode .ops-revenue-grid > div:not(.ops-revenue-total) strong {
  font-size: 18px;
}

.dashboard-compact-mode .ops-revenue-total strong {
  font-size: 24px;
}

.dashboard-compact-mode .ops-metric-strip span,
.dashboard-compact-mode .ops-revenue-grid span,
.dashboard-compact-mode .ops-alert-category,
.dashboard-compact-mode .kpi-label,
.dashboard-compact-mode .ops-widget-label {
  color: var(--ds-ink-soft);
  font-size: 11px;
  line-height: 1.25;
}

.dashboard-compact-mode .ops-revenue-total em,
.dashboard-compact-mode .ops-list-row span,
.dashboard-compact-mode .ops-feed-row span,
.dashboard-compact-mode .ops-timeline-row span,
.dashboard-compact-mode .ops-health-item span,
.dashboard-compact-mode .ops-patient-main span,
.dashboard-compact-mode .ops-patient-meta span,
.dashboard-compact-mode .ops-alert p,
.dashboard-compact-mode .enterprise-empty-state span,
.dashboard-compact-mode .ops-empty-good span {
  font-size: 12px;
  line-height: 1.3;
}

.dashboard-compact-mode .ops-list-row strong,
.dashboard-compact-mode .ops-feed-row strong,
.dashboard-compact-mode .ops-timeline-row strong,
.dashboard-compact-mode .ops-health-item strong,
.dashboard-compact-mode .ops-patient-main strong,
.dashboard-compact-mode .ops-patient-meta strong,
.dashboard-compact-mode .ops-alert strong,
.dashboard-compact-mode .enterprise-empty-state strong,
.dashboard-compact-mode .ops-empty-good strong {
  font-size: 13px;
  line-height: 1.25;
}

.dashboard-compact-mode .ops-mini-chart {
  height: 2.75rem;
  margin-top: .42rem;
  padding: .3rem;
}

.dashboard-compact-mode .ops-progress-row {
  gap: .22rem;
  margin-top: .42rem;
}

.dashboard-compact-mode .ops-progress {
  height: .34rem;
}

.dashboard-compact-mode .quick-actions-toolbar {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-compact-mode .quick-actions-toolbar .quick-action {
  gap: .32rem;
  grid-template-columns: auto minmax(0, 1fr);
  justify-items: start;
  min-height: 2.45rem;
  padding: .42rem .5rem;
  text-align: left;
}

.dashboard-compact-mode .quick-actions-toolbar .quick-action span {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-compact-mode .ops-patient-row {
  gap: .5rem;
  grid-template-columns: auto minmax(0, 1.2fr) auto minmax(7.5rem, .8fr) auto;
}

.dashboard-compact-mode .ops-avatar {
  font-size: 11px;
  height: 1.65rem;
  width: 1.65rem;
}

.dashboard-compact-mode .compact-table-body .table-responsive {
  max-height: 14rem;
}

.dashboard-compact-mode .dashboard-activity-card .ops-feed,
.dashboard-compact-mode .dashboard-activity-card .ops-timeline {
  max-height: 12rem;
}

.dashboard-compact-mode .dashboard-attention-body {
  gap: .36rem;
}

.dashboard-compact-mode .dashboard-inline-divider {
  border-top-color: #dde7ef;
}

.dashboard-compact-mode .enterprise-empty-state,
.dashboard-compact-mode .ops-empty-good,
.dashboard-compact-mode .ops-empty-inline {
  min-height: 3rem;
  padding: .55rem;
}

.dashboard-compact-mode .dashboard-section-label {
  padding: .52rem .65rem;
}

.dashboard-compact-mode .dashboard-section-label h2 {
  font-size: 15px;
}

.dashboard-compact-mode .dashboard-analytics-section {
  margin-top: 0;
  padding: .55rem;
}

.dashboard-compact-mode .analytics-report-row {
  --bs-gutter-y: .55rem;
}

.dashboard-compact-mode .analytics-card {
  box-shadow: var(--dashboard-shadow) !important;
}

.dashboard-analytics-page.dashboard-compact-mode .chart-frame {
  height: 96px;
}

.dashboard-compact-mode .chart-card-body {
  padding-bottom: .5rem;
  padding-top: .42rem;
}

@media (min-width: 1600px) {
  .dashboard-compact-mode {
    --dashboard-gap: .6rem;
    max-width: 1760px;
  }
}

@media (max-width: 1399.98px) {
  .dashboard-compact-mode {
    --dashboard-gap: .48rem;
    max-width: 100%;
    padding-left: .45rem;
    padding-right: .45rem;
  }

  .dashboard-compact-mode .dashboard-operational-header {
    grid-template-columns: minmax(260px, .85fr) minmax(360px, 1.15fr);
  }

  .dashboard-compact-mode .dashboard-primary-zone {
    grid-column: span 8;
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .dashboard-compact-mode .dashboard-sidebar-zone {
    grid-column: span 4;
  }

  .dashboard-compact-mode .dashboard-primary-zone > .ops-card,
  .dashboard-compact-mode .dashboard-primary-zone > .dashboard-revenue-card,
  .dashboard-compact-mode .dashboard-primary-zone > [data-widget-shell="patients"] {
    grid-column: span 4;
  }
}

@media (max-width: 1199.98px) {
  .dashboard-compact-mode .dashboard-operational-header {
    grid-template-columns: 1fr;
  }

  .dashboard-compact-mode .dashboard-primary-zone,
  .dashboard-compact-mode .dashboard-sidebar-zone {
    grid-column: span 12;
  }

  .dashboard-compact-mode .dashboard-primary-zone {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-compact-mode .dashboard-sidebar-zone {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .dashboard-compact-mode .dashboard-primary-zone > .ops-card,
  .dashboard-compact-mode .dashboard-primary-zone > .dashboard-revenue-card,
  .dashboard-compact-mode .dashboard-primary-zone > [data-widget-shell="patients"] {
    grid-column: span 1;
  }

  .dashboard-compact-mode .dashboard-activity-card {
    grid-column: span 2;
  }
}

@media (max-width: 991.98px) {
  .dashboard-compact-mode {
    padding-left: .35rem;
    padding-right: .35rem;
  }

  .dashboard-compact-mode .dashboard-header-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-compact-mode .dashboard-operational-copy p {
    max-width: none;
  }

  .dashboard-compact-mode .ops-patient-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .dashboard-compact-mode .ops-patient-meta,
  .dashboard-compact-mode .ops-row-actions {
    grid-column: 2 / -1;
    text-align: left;
  }
}

@media (max-width: 767.98px) {
  .dashboard-compact-mode .dashboard-header-kpis,
  .dashboard-compact-mode .dashboard-primary-zone,
  .dashboard-compact-mode .dashboard-sidebar-zone,
  .dashboard-compact-mode .quick-actions-toolbar {
    grid-template-columns: 1fr;
  }

  .dashboard-compact-mode .dashboard-primary-zone > .ops-card,
  .dashboard-compact-mode .dashboard-primary-zone > .dashboard-revenue-card,
  .dashboard-compact-mode .dashboard-primary-zone > [data-widget-shell="patients"],
  .dashboard-compact-mode .dashboard-activity-card {
    grid-column: span 1;
  }

  .dashboard-compact-mode .ops-metric-strip,
  .dashboard-compact-mode .ops-revenue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-compact-mode .ops-revenue-total {
    grid-column: span 2;
  }
}

@media (max-width: 576px) {
  .dashboard-compact-mode .dashboard-operational-copy h1 {
    font-size: 21px;
  }

  .dashboard-compact-mode .ops-metric-strip,
  .dashboard-compact-mode .ops-revenue-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-compact-mode .ops-revenue-total {
    grid-column: span 1;
  }

  .dashboard-compact-mode .dashboard-header-actions {
    width: auto;
  }
}

/* Performance: reserve collection report layout to reduce CLS */
[id$="-collectionReportContainer"] {
  min-height: 320px;
}

.dashboard-command-search {
  align-items: center;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(31, 95, 143, .18);
  border-radius: .85rem;
  color: var(--ds-ink);
  display: flex;
  gap: .6rem;
  margin-top: .8rem;
  max-width: 34rem;
  padding: .55rem .75rem;
  text-align: left;
  width: 100%;
}

.dashboard-command-search span {
  color: var(--ds-ink-soft);
  flex: 1 1 auto;
  font-size: 13px;
}

.dashboard-command-search kbd,
.quick-action kbd {
  background: #eef5fb;
  border: 1px solid #d2e2ef;
  border-radius: .4rem;
  color: #1f5f8f;
  font-size: 11px;
  font-weight: 600;
  padding: .1rem .32rem;
}

.dashboard-ops-page .quick-actions-toolbar {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-ops-page .quick-actions-toolbar .quick-action {
  align-items: center;
  gap: .7rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 4.75rem;
  padding: .75rem;
  text-align: left;
}

.dashboard-ops-page .quick-actions-toolbar .quick-action i {
  font-size: 1.35rem;
}

.quick-action-copy {
  display: flex;
  flex-direction: column;
  gap: .12rem;
  min-width: 0;
}

.dashboard-ops-page .quick-action-copy strong {
  color: var(--ds-ink);
  font-size: .9rem;
  font-weight: 760;
  line-height: 1.15;
}

.dashboard-ops-page .quick-action-copy small {
  color: var(--ds-ink-muted);
  font-size: .76rem;
  line-height: 1.15;
}

.dashboard-ops-page .quick-actions-toolbar .quick-action kbd {
  white-space: nowrap;
}

.rcc-placeholder-subtext {
  color: var(--ds-ink);
  font-weight: 600;
}

body.rcc-drawer-open {
  overflow: hidden;
}

.rcc-backdrop {
  background: rgba(15, 23, 42, .42);
  inset: 0;
  position: fixed;
  z-index: 1075;
}

.rcc-drawer {
  background: #fff;
  border-left: 1px solid rgba(15, 23, 42, .12);
  box-shadow: -1rem 0 2.4rem rgba(15, 23, 42, .2);
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: min(620px, 100vw);
  position: fixed;
  right: 0;
  top: 0;
  width: 620px;
  z-index: 1080;
}

.rcc-drawer-center {
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 1rem;
  box-shadow: 0 1.2rem 3rem rgba(15, 23, 42, .24);
  height: auto;
  max-height: min(760px, calc(100vh - 2rem));
  right: 50%;
  top: 50%;
  transform: translate(50%, -50%);
  width: min(560px, calc(100vw - 2rem));
}

.rcc-drawer-header {
  align-items: flex-start;
  border-bottom: 1px solid #e4edf4;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem 1.1rem;
}

.rcc-drawer-header h2 {
  font-size: 21px;
  font-weight: 700;
  margin: .1rem 0 .2rem;
}

.rcc-drawer-header p {
  color: var(--ds-ink-soft);
  font-size: 13px;
}

.rcc-drawer-status {
  border-radius: 0;
  border-width: 0 0 1px;
}

.rcc-drawer-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1rem 1.1rem;
}

.rcc-drawer-footer {
  border-top: 1px solid #e4edf4;
  padding: .85rem 1.1rem;
}

.rcc-search-form {
  background: #f8fbfd;
  border: 1px solid #dde7ef;
  border-radius: .85rem;
  padding: .85rem;
}

.rcc-patient-results {
  display: grid;
  gap: .65rem;
  margin-top: .85rem;
}

.rcc-loading {
  align-items: center;
  color: var(--ds-ink-soft);
  display: flex;
  gap: .5rem;
  justify-content: center;
  min-height: 7rem;
}

.rcc-patient-card {
  background: #fff;
  border: 1px solid #dde7ef;
  border-radius: .85rem;
  box-shadow: 0 .35rem .9rem rgba(15, 23, 42, .04);
  display: grid;
  gap: .75rem;
  padding: .75rem;
}

.rcc-patient-main {
  align-items: center;
  display: flex;
  gap: .65rem;
  min-width: 0;
}

.rcc-patient-main strong,
.rcc-patient-main span,
.rcc-patient-main small {
  display: block;
}

.rcc-patient-main span,
.rcc-patient-main small {
  color: var(--ds-ink-soft);
  font-size: 12px;
}

.rcc-patient-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.rcc-placeholder {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  min-height: 15rem;
  padding: 2rem 1rem;
  text-align: center;
}

.rcc-placeholder > i {
  align-items: center;
  background: #eef5fb;
  border-radius: 50%;
  color: #1f5f8f;
  display: inline-flex;
  font-size: 28px;
  height: 4rem;
  justify-content: center;
  width: 4rem;
}

.rcc-placeholder h3 {
  font-size: 20px;
  font-weight: 700;
  margin: .4rem 0 0;
}

.rcc-placeholder p {
  color: var(--ds-ink-soft);
  max-width: 28rem;
}

@media (max-width: 767.98px) {
  .rcc-drawer,
  .rcc-drawer-center {
    border-radius: 0;
    height: 100vh;
    max-height: none;
    max-width: 100vw;
    right: 0;
    top: 0;
    transform: none;
    width: 100vw;
  }
}

.pharmacy-side-nav .nav-link.active {
  font-weight: 600;
}

.pharmacy-side-nav-group .pharmacy-side-nav-chevron {
  transition: transform 0.2s ease;
}

.pharmacy-side-nav-group button[aria-expanded="true"] .pharmacy-side-nav-chevron {
  transform: rotate(180deg);
}