/* ============================================================
   Loyalty Pharmaceuticals — Global Styles
   Mobile-first, professional design
   ============================================================ */

:root {
  --primary: #1a56db;
  --primary-dark: #1342b8;
  --primary-light: #e8f0fe;
  --success: #059669;
  --success-light: #d1fae5;
  --warning: #d97706;
  --warning-light: #fef3c7;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --sidebar-width: 260px;
  --topbar-height: 60px;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 17px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

/* ─── LOGIN ──────────────────────────────────────────────── */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 38%),
    radial-gradient(circle at 85% 80%, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 42%),
    linear-gradient(135deg, #1f8f5a 0%, #136741 52%, #0c4a2f 100%);
  padding: 20px;
}

.login-screen::before,
.login-screen::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.login-screen::before {
  width: 360px;
  height: 360px;
  right: -100px;
  top: -80px;
  background: rgba(255, 255, 255, 0.16);
}

.login-screen::after {
  width: 300px;
  height: 300px;
  left: -90px;
  bottom: -110px;
  background: rgba(255, 255, 255, 0.1);
}

#molecule-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.login-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 18px 44px rgba(3, 19, 58, 0.32);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.login-logo {
  text-align: center;
  margin-bottom: 28px;
}
.login-logo-img {
  width: 285px;
  height: 285px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}
.login-tagline {
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.85rem;
  margin-top: -16px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(3, 19, 58, 0.25);
}

.login-screen .btn-primary {
  background: #facc15;
  color: #1f2937;
}

.login-screen .btn-primary:hover {
  background: #eab308;
}

/* ─── APP LAYOUT ─────────────────────────────────────────── */
.app {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background: #fff;
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  transition: transform .25s ease;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--gray-100);
  min-height: var(--topbar-height);
}
.sidebar-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
  background: #fff;
}
.brand-text {
  font-weight: 800;
  font-size: 0.96rem;
  color: var(--primary);
  flex: 1;
  line-height: 1.2;
}
.sidebar-close { display: none; background: none; border: none; cursor: pointer; font-size: 1rem; color: var(--gray-500); }

.sidebar-nav {
  flex: 1;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--gray-700);
  font-size: 0.9rem;
  transition: background .15s, color .15s;
  cursor: pointer;
  position: relative;
}
.nav-item:hover { background: var(--gray-100); color: var(--primary); }
.nav-item.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.nav-icon { font-size: 1.1rem; width: 24px; text-align: center; }

.badge {
  margin-left: auto;
  background: var(--warning);
  color: white;
  border-radius: 12px;
  font-size: 0.7rem;
  padding: 2px 7px;
  font-weight: 600;
}
.badge-red { background: var(--danger); }

.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-avatar {
  width: 36px; height: 36px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.user-details { flex: 1; min-width: 0; }
.user-details span { display: block; }
.user-details span:first-child { font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 0.72rem; color: var(--gray-500); text-transform: capitalize; }

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

.topbar {
  height: var(--topbar-height);
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.hamburger { display: none; background: none; border: none; cursor: pointer; font-size: 1.3rem; color: var(--gray-700); }
.page-title { font-size: 1.1rem; font-weight: 700; flex: 1; color: var(--gray-900); }
.topbar-right { display: flex; gap: 8px; }

.notif-btn { position: relative; }
.notif-dot {
  position: absolute;
  top: 4px; right: 4px;
  width: 8px; height: 8px;
  background: var(--danger);
  border-radius: 50%;
}

.page-content { padding: 24px 20px; }

/* ─── DASHBOARD STATS ────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 132px;
}
.stat-icon { font-size: 1.8rem; }
.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gray-900);
  white-space: nowrap;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 0.78rem; color: var(--gray-500); font-weight: 500; }
.stat-card.danger .stat-value { color: var(--danger); }
.stat-card.warning .stat-value { color: var(--warning); }
.stat-card.success .stat-value { color: var(--success); }

/* ─── CARDS ──────────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.card-title { font-weight: 700; font-size: 0.95rem; }
.card-body { padding: 20px; }

/* ─── TABLE ──────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
thead { background: var(--gray-50); }
th { padding: 10px 14px; text-align: left; font-weight: 600; color: var(--gray-500); font-size: 0.8rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gray-50); }

/* ─── FORMS ──────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 5px; color: var(--gray-700); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

input, select, textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--gray-900);
  background: #fff;
  transition: border-color .15s;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,.1);
}
textarea { resize: vertical; min-height: 80px; }

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 160px;
}
.search-input-wrap input { padding-left: 36px; }
.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--gray-500);
  pointer-events: none;
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background .15s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-success { background: var(--success); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-warning { background: var(--warning); color: white; }
.btn-outline { background: transparent; border: 1.5px solid var(--gray-300); color: var(--gray-700); }
.btn-outline:hover { background: var(--gray-50); }
.btn-sm { padding: 5px 11px; font-size: 0.8rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 6px;
  border-radius: 6px;
  transition: background .15s;
  position: relative;
}
.btn-icon:hover { background: var(--gray-100); }

/* ─── BADGES / STATUS ────────────────────────────────────── */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}
.status-issued   { background: var(--primary-light); color: var(--primary); }
.status-paid     { background: var(--success-light); color: var(--success); }
.status-draft    { background: var(--gray-100); color: var(--gray-500); }
.status-overdue  { background: var(--danger-light); color: var(--danger); }
.status-cancelled{ background: var(--gray-200); color: var(--gray-500); }
.status-partially_paid { background: var(--warning-light); color: var(--warning); }

/* ─── ALERTS ─────────────────────────────────────────────── */
.alert {
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 16px;
}
.alert-error   { background: var(--danger-light); color: var(--danger); border-left: 3px solid var(--danger); }
.alert-success { background: var(--success-light); color: var(--success); border-left: 3px solid var(--success); }
.alert-warning { background: var(--warning-light); color: var(--warning); border-left: 3px solid var(--warning); }

/* ─── MODAL ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.modal {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 580px;
  margin: auto;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h3 { font-size: 1rem; font-weight: 700; }
.modal-close { background: none; border: none; cursor: pointer; font-size: 1rem; color: var(--gray-500); padding: 4px; }
.modal-body { padding: 20px; max-height: 75vh; overflow-y: auto; }
.modal-footer { padding: 14px 20px; border-top: 1px solid var(--gray-100); display: flex; justify-content: flex-end; gap: 10px; }

/* ─── TOAST ──────────────────────────────────────────────── */
#toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--gray-900);
  color: white;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: slideIn .25s ease;
  max-width: 320px;
}
.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }
.toast.warning { background: var(--warning); }
@keyframes slideIn { from { opacity:0; transform: translateX(40px); } to { opacity:1; transform: none; } }

/* ─── EMPTY STATE ────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-500);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state p { margin-top: 6px; font-size: 0.875rem; }

/* ─── LOADING ────────────────────────────────────────────── */
.loading { display: flex; align-items: center; justify-content: center; padding: 60px; }
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── INVOICE ITEMS TABLE ────────────────────────────────── */
.item-row { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 8px; align-items: start; margin-bottom: 8px; }
.item-total { padding: 9px 12px; background: var(--gray-50); border-radius: 8px; font-weight: 600; text-align: right; min-width: 90px; }

/* ─── CLIENTS PAGE ──────────────────────────────────────── */
.clients-card-shell {
  border: 1px solid var(--gray-100);
}

.clients-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 20px 16px;
}

.client-overview-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.04);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.client-overview-label {
  font-size: 0.76rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.client-overview-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
}

.clients-table-wrap {
  border-top: 1px solid var(--gray-100);
}
.clients-table-wrap table { min-width: 640px; }

.client-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.client-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.client-actions {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.client-balance-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 10px;
  border: 1px solid transparent;
}

.client-balance-pill.due {
  background: #fff1f1;
  color: #b91c1c;
  border-color: #fecaca;
}

.client-balance-pill.clear {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.client-statement-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  background: #fafcff;
}

/* ─── INVOICES PAGE ─────────────────────────────────────── */
.invoices-card-shell { border: 1px solid var(--gray-100); }

.invoices-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 20px 16px;
}

.invoice-overview-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.04);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.invoice-overview-label {
  font-size: 0.76rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.invoice-overview-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-900);
}

.invoices-table-wrap { border-top: 1px solid var(--gray-100); }
.invoices-table-wrap table { min-width: 640px; }

.invoice-name-cell .text-muted { margin-top: 2px; }

.invoice-total-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 10px;
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.invoice-actions {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ─── PAYMENTS PAGE ─────────────────────────────────────── */
.payments-card-shell { border: 1px solid var(--gray-100); }

.payments-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 20px;
}

.payment-overview-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.04);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.payment-overview-label {
  font-size: 0.76rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.payment-overview-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-900);
}

.payments-table-wrap { border-top: 1px solid var(--gray-100); }
.payments-table-wrap table { min-width: 640px; }

.payment-amount-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 10px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

/* ─── NOTIFICATION ITEMS ─────────────────────────────────── */
.notif-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
}
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: var(--primary-light); margin: 0 -20px; padding: 14px 20px; border-radius: 8px; }
.notif-dot-indicator { width: 10px; height: 10px; background: var(--primary); border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.notif-content .notif-title { font-weight: 600; font-size: 0.875rem; }
.notif-content .notif-message { font-size: 0.8rem; color: var(--gray-500); margin-top: 2px; }
.notif-content .notif-time { font-size: 0.75rem; color: var(--gray-400); margin-top: 4px; }

/* ─── PROGRESS BAR ───────────────────────────────────────── */
.progress-bar-wrap { background: var(--gray-200); border-radius: 4px; height: 8px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--primary); border-radius: 4px; transition: width .3s; }
.progress-bar.low { background: var(--danger); }
.progress-bar.medium { background: var(--warning); }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: block; }
  .hamburger { display: block; }
  .main-content { margin-left: 0; }
  .stats-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal { border-radius: 16px 16px 0 0; max-width: 100%; }
  .page-content { padding: 14px 12px; }
  .card-header { padding: 12px 14px; }
  .card-title { font-size: 0.9rem; }
  .btn { padding: 8px 12px; font-size: 0.82rem; }
  .btn-sm { padding: 4px 8px; font-size: 0.74rem; }

  .search-input-wrap input {
    font-size: 0.84rem;
    padding-left: 64px;
  }
  .search-icon {
    left: 8px;
    font-size: 0.72rem;
    letter-spacing: 0.01em;
  }

  table { font-size: 0.82rem; }
  th, td { padding: 9px 10px; }

  .item-row { grid-template-columns: 1fr 1fr; }
  .clients-overview { grid-template-columns: 1fr; padding: 0 14px 14px; }
  .invoices-overview { grid-template-columns: 1fr; padding: 0 14px 14px; }
  .payments-overview { grid-template-columns: 1fr; padding: 14px; }

  .client-avatar {
    width: 30px;
    height: 30px;
    font-size: 0.78rem;
  }
  .client-name-cell { align-items: flex-start; }
  .client-balance-pill,
  .invoice-total-pill,
  .payment-amount-pill {
    font-size: 0.72rem;
    padding: 4px 8px;
  }
  .client-actions,
  .invoice-actions {
    gap: 4px;
    display: flex;
    flex-wrap: wrap;
  }
  .client-statement-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 400px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ─── OVERLAY (mobile sidebar backdrop) ──────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 99;
}
.sidebar-overlay.visible { display: block; }

/* ─── UTILITY ────────────────────────────────────────────── */
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); font-size: 0.85rem; }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.fw-bold { font-weight: 700; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .two-col { grid-template-columns: 1fr; } }
