/* ===================================================
   Alliance ERP — Design System
   =================================================== */

:root {
  --color-primary: #0d9488;        /* teal-600 */
  --color-primary-dark: #0f766e;   /* teal-700 */
  --color-primary-soft: #ccfbf1;   /* teal-100 */

  --color-sidebar-bg: #0f172a;     /* slate-900 */
  --color-sidebar-text: #94a3b8;   /* slate-400 */
  --color-sidebar-active: #0d9488;
  --color-sidebar-hover-bg: #1e293b;

  --color-bg: #f8fafc;
  --color-card: #ffffff;
  --color-border: #e2e8f0;
  --color-text: #1e293b;
  --color-text-muted: #64748b;

  --sidebar-width: 260px;
  --topbar-height: 64px;
  --border-radius: 0.5rem;
  --transition: 0.2s ease;

  font-family: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 0.875rem;
}

/* ===================== APP LAYOUT ===================== */

.app-wrapper {
  display: flex;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left var(--transition);
}

.content-area {
  flex: 1;
  padding: 1.5rem;
}

/* ===================== SIDEBAR ===================== */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--color-sidebar-bg);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow-y: auto;
  transition: transform var(--transition);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.brand-icon {
  font-size: 1.5rem;
  color: var(--color-primary);
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.02em;
}

.sidebar-body {
  flex: 1;
  padding: 1rem 0;
}

.sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-section-title {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-sidebar-text);
  padding: 0.875rem 1rem 0.25rem;
  opacity: 0.6;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  color: var(--color-sidebar-text);
  text-decoration: none;
  border-radius: 0.375rem;
  margin: 0 0.5rem;
  transition: background var(--transition), color var(--transition);
  font-size: 0.875rem;
}

.sidebar-link:hover {
  background: var(--color-sidebar-hover-bg);
  color: #f1f5f9;
}

.sidebar-link.active {
  background: rgba(13, 148, 136, 0.15);
  color: #2dd4bf;
}

.sidebar-link-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.sidebar-link-icon {
  font-size: 1rem;
  width: 1rem;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-sidebar-hover-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-sidebar-text);
  flex-shrink: 0;
  overflow: hidden;
}

.sidebar-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sidebar-user-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 0.6875rem;
  color: var(--color-sidebar-text);
  text-transform: capitalize;
}

/* ===================== TOPBAR ===================== */

.topbar {
  height: var(--topbar-height);
  background: var(--color-card);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-toggle-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}

.sidebar-toggle-btn:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

.topbar-user-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 0.375rem 0.75rem;
  color: var(--color-text);
  cursor: pointer;
  font-size: 0.875rem;
  transition: background var(--transition);
}

.topbar-user-btn:hover {
  background: var(--color-bg);
}

.topbar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  overflow: hidden;
}

.topbar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===================== FOOTER ===================== */

.app-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ===================== PAGE HEADER ===================== */

.page-header {
  margin-bottom: 1.5rem;
}

.page-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--color-text);
}

.page-subtitle {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ===================== CARDS ===================== */

.card {
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  background: var(--color-card);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  background: transparent;
}

.card-title {
  font-size: 0.9375rem;
  font-weight: 600;
}

/* ===================== STAT CARDS ===================== */

.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.stat-card-body {
  display: flex;
  flex-direction: column;
}

.stat-card-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-text);
}

.stat-card-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

/* Soft backgrounds */
.bg-primary-soft { background: var(--color-primary-soft); }
.bg-teal-soft    { background: #ccfbf1; }
.bg-warning-soft { background: #fef9c3; }
.bg-success-soft { background: #dcfce7; }
.bg-danger-soft  { background: #fee2e2; }

.text-teal    { color: var(--color-primary); }
.text-primary { color: var(--color-primary) !important; }

/* ===================== TABLES ===================== */

.table th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 1rem;
}

.table td {
  padding: 0.875rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

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

.user-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1rem;
  flex-shrink: 0;
}

/* ===================== BADGES ===================== */

.role-badge {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  font-weight: 500;
  font-size: 0.6875rem;
  text-transform: capitalize;
}

/* ===================== ACTIVITY LIST ===================== */

.activity-list { }

.activity-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.activity-item:last-child { border-bottom: none; }

.activity-icon {
  font-size: 1.125rem;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
  display: flex;
  gap: 0.375rem;
}

.activity-user { font-weight: 600; }

/* ===================== FORM STYLES ===================== */

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.375rem;
}

.form-control, .form-select {
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.input-group-text {
  background: var(--color-bg);
  border-color: var(--color-border);
  color: var(--color-text-muted);
}

.form-check-card {
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 0.75rem;
  cursor: pointer;
  transition: border-color var(--transition);
}

.form-check-card:has(.form-check-input:checked) {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}

.form-check-card .form-check-input { margin-top: 0; }

.form-check-card .form-check-label {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  cursor: pointer;
}

.role-name {
  font-weight: 600;
  text-transform: capitalize;
}

.role-desc { font-size: 0.75rem; }

/* ===================== BUTTONS ===================== */

.btn-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: white;
}

.btn-outline-primary {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline-primary:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

/* ===================== EMPTY STATE ===================== */

.empty-state {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===================== ERROR PAGE ===================== */

.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 2rem;
}

.error-code {
  font-size: 6rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.error-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0.5rem 0;
}

.error-stack {
  background: #f1f5f9;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 1rem;
  font-size: 0.75rem;
  max-width: 100%;
  overflow-x: auto;
  text-align: left;
  margin: 1rem 0;
}

/* ===================== AUTH PAGE ===================== */

.auth-body {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  background: white;
  border-radius: 1rem;
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo .bi {
  font-size: 2.5rem;
  color: var(--color-primary);
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0.5rem 0 0.25rem;
}

.auth-subtitle {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}

.btn-auth {
  padding: 0.625rem 1.25rem;
}

.form-link {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.8125rem;
}

.form-link:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* ===================== FLASH MESSAGES ===================== */

.flash-msg {
  font-size: 0.875rem;
}

/* ===================== BREADCRUMB ===================== */

.breadcrumb {
  font-size: 0.8125rem;
  margin: 0;
}

.breadcrumb-item a {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: var(--color-text-muted);
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 991.98px) {
  .main-content {
    margin-left: 0;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 0 0 0 100vw rgba(0,0,0,0.4);
  }
}

/* ===================== PATIENTS ===================== */

.patient-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.patient-profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
  border: 3px solid var(--color-primary);
}

.patient-profile-header {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.info-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 2rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* ===================== TIMELINE ===================== */

.timeline-list { }

.timeline-item {
  display: flex;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.timeline-item:last-child { border-bottom: none; }

.timeline-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.timeline-content { flex: 1; min-width: 0; }

.timeline-type {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text);
}

.timeline-complaint {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0.25rem 0 0;
}

.timeline-meta {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  display: block;
  margin-top: 0.375rem;
}

/* ===================== MEDICAL RECORD ===================== */

.record-section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.375rem;
}

.record-content {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0;
}

/* ===================== INFO DL ===================== */

.info-dl { display: grid; gap: 0.5rem; }

.info-dl > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.info-dl dt {
  font-weight: 600;
  color: var(--color-text-muted);
}

.info-dl dd {
  margin: 0;
  color: var(--color-text);
}

/* ===================== NAV TABS ===================== */

.nav-tabs { border-bottom: 1px solid var(--color-border); }

.nav-tabs .nav-link {
  color: var(--color-text-muted);
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0;
  transition: color var(--transition), border-color var(--transition);
}

.nav-tabs .nav-link:hover {
  color: var(--color-text);
  border-bottom-color: var(--color-border);
}

.nav-tabs .nav-link.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  background: none;
}

.tab-content > .tab-pane { display: none; }

/* ===================== AGENDA / APPOINTMENTS ===================== */

.calendar-wrapper {
  height: 680px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1rem;
}

/* FullCalendar overrides */
.fc { font-family: var(--font-family); font-size: 0.875rem; }
.fc .fc-toolbar-title { font-size: 1rem; font-weight: 600; color: var(--color-text); }
.fc .fc-button-primary {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-text);
  font-size: 0.8125rem;
  padding: 0.3rem 0.75rem;
  box-shadow: none !important;
}
.fc .fc-button-primary:hover { background: var(--color-bg); }
.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.fc .fc-col-header-cell { font-weight: 600; font-size: 0.8125rem; color: var(--color-text-muted); }
.fc .fc-timegrid-slot { height: 2.5rem; }
.fc .fc-event {
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
}
.fc-event-inner { padding: 2px 4px; line-height: 1.3; }
.fc-event-inner .fc-event-time { font-weight: 600; }
.fc-event-inner .fc-event-patient { opacity: 0.9; }

/* Appointment status badges */
.badge-status-agendado      { background: #dbeafe; color: #1d4ed8; }
.badge-status-confirmado    { background: #dcfce7; color: #15803d; }
.badge-status-aguardando    { background: #fef9c3; color: #854d0e; }
.badge-status-em_atendimento { background: #f3e8ff; color: #7e22ce; }
.badge-status-atendido      { background: #d1fae5; color: #065f46; }
.badge-status-cancelado     { background: #fee2e2; color: #991b1b; }
.badge-status-reagendado    { background: #e0e7ff; color: #3730a3; }

/* Appointment list sidebar */
.appt-time-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  min-width: 3rem;
}

.appt-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--color-border);
}
.appt-list-item:last-child { border-bottom: none; }
.appt-list-info { flex: 1; min-width: 0; }
.appt-list-patient { font-weight: 500; font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt-list-detail { font-size: 0.75rem; color: var(--color-text-muted); }

/* Appointment show/detail */
.status-timeline { display: flex; flex-direction: column; gap: 0.5rem; }
.status-btn { text-align: left; }

/* ===================== AUTOCOMPLETE ===================== */

.autocomplete-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0; right: 0;
  background: #fff;
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 9999;
  max-height: 240px;
  overflow-y: auto;
  isolation: isolate;
}
.autocomplete-dropdown.show { display: block; }

.autocomplete-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.875rem;
  cursor: pointer;
  font-size: 0.875rem;
  gap: 0.5rem;
  transition: background var(--transition);
}
.autocomplete-item:hover,
.autocomplete-item-active { background: var(--color-bg); }

.autocomplete-item-active .autocomplete-name { color: var(--color-primary); }

.autocomplete-name { font-weight: 500; color: var(--color-text); }
.autocomplete-meta { font-size: 0.75rem; color: var(--color-text-muted); white-space: nowrap; }

.autocomplete-empty {
  padding: 0.625rem 0.875rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* ===================== CLINICAL RECORDS ===================== */

.clinical-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text);
}

.clinical-section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* SOAP section colors */
.soap-s .clinical-section-num { background: #3b82f6; }
.soap-o .clinical-section-num { background: #10b981; }
.soap-a .clinical-section-num { background: #f59e0b; }
.soap-p .clinical-section-num { background: #8b5cf6; }

/* EVA badge */
.eva-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.875rem;
}
.eva-low  { background: #d1fae5; color: #065f46; }
.eva-mid  { background: #fef9c3; color: #854d0e; }
.eva-high { background: #fee2e2; color: #991b1b; }

/* Record content */
.record-content { white-space: pre-wrap; font-size: 0.875rem; line-height: 1.6; color: var(--color-text); margin-bottom: 0; }
.record-section-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-muted); margin-bottom: 0.25rem; }

/* Profissionais admin */
.professional-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-primary-light, #e0e7ff);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.tab-content > .active   { display: block; }

/* ── Financial dashboard ─────────────────────────────────────────────────── */
.stat-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-card);
}
.stat-card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.375rem;
  flex-shrink: 0;
}
.stat-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 0.15rem;
}
.stat-card-value {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
}
.stat-card-sub {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.15rem;
}
