/* ============================================================
   TrainPro — Main Stylesheet
   ============================================================ */

/* ---------- Reset & Variables ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #4f46e5;
  --primary-dark:  #3730a3;
  --primary-light: #ede9fe;
  --secondary:     #06b6d4;
  --success:       #10b981;
  --warning:       #f59e0b;
  --danger:        #ef4444;
  --info:          #3b82f6;

  --bg:            #f8fafc;
  --card-bg:       #ffffff;
  --sidebar-bg:    #1e1b4b;
  --sidebar-text:  #c7d2fe;
  --sidebar-hover: rgba(255,255,255,.08);
  --sidebar-active:#4f46e5;

  --text-primary:  #1e293b;
  --text-secondary:#64748b;
  --text-muted:    #94a3b8;
  --border:        #e2e8f0;

  --radius:        .75rem;
  --radius-sm:     .375rem;
  --shadow:        0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:     0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg:     0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.05);

  --sidebar-width: 250px;
  --topbar-height: 64px;

  --font: 'Inter', sans-serif;
  --transition: .2s ease;
}

html { font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  transition: width var(--transition), transform var(--transition);
  overflow: hidden;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.logo i {
  font-size: 1.5rem;
  color: #818cf8;
}

.sidebar-toggle {
  background: none;
  border: none;
  color: var(--sidebar-text);
  font-size: 1rem;
  cursor: pointer;
  padding: .375rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  display: none;
}

.sidebar-toggle:hover { background: var(--sidebar-hover); }

.sidebar-nav { flex: 1; padding: 1rem 0; overflow-y: auto; }
.sidebar-nav ul { list-style: none; }
.sidebar-nav li { margin: .125rem 0; }

.nav-link {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .75rem 1.25rem;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  border-radius: 0;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
  margin: 0 .5rem;
  border-radius: var(--radius-sm);
}

.nav-link i { width: 1.25rem; text-align: center; font-size: .95rem; }
.nav-link:hover { background: var(--sidebar-hover); color: #fff; }
.nav-link.active { background: var(--sidebar-active); color: #fff; font-weight: 600; }

/* ── Sidebar User Widget ── */
.sidebar-user-widget {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .875rem 1rem;
  margin: .5rem .5rem 0;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}

.sidebar-user-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: .03em;
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

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

.sidebar-user-role {
  font-size: .7rem;
  color: rgba(255,255,255,.5);
  white-space: nowrap;
}

.sidebar-logout-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,.45);
  cursor: pointer;
  padding: .375rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  font-size: .9rem;
  flex-shrink: 0;
}
.sidebar-logout-btn:hover {
  background: rgba(239,68,68,.2);
  color: #fca5a5;
}

.sidebar-footer {
  padding: .75rem 1.25rem;
  font-size: .75rem;
  color: rgba(255,255,255,.3);
  border-top: 1px solid rgba(255,255,255,.08);
}

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

/* TOP BAR */
.topbar {
  height: var(--topbar-height);
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: var(--shadow);
}

.topbar-left { display: flex; align-items: center; gap: 1rem; }

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

.topbar-date {
  font-size: .85rem;
  color: var(--text-secondary);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: .625rem;
}

/* Topbar user chip */
.topbar-user {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .3rem .75rem .3rem .4rem;
  background: #f1f5f9;
  border-radius: 2rem;
  border: 1px solid var(--border);
  cursor: default;
}

.topbar-user-avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: .03em;
  flex-shrink: 0;
}

.topbar-user-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.topbar-logout {
  color: var(--text-secondary);
}
.topbar-logout:hover {
  background: #fef2f2 !important;
  color: #ef4444 !important;
}

.mobile-menu-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  display: none;
  padding: .25rem;
}

/* PAGE CONTAINER */
.page-container { padding: 1.5rem; flex: 1; }

/* PAGES */
.page { display: none; }
.page.active { display: block; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.card-header h3 {
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--text-primary);
}

.card-header h3 i { color: var(--primary); }

.card-body { padding: 1.25rem; }

/* CARD GRID */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  padding-bottom: 1rem;
}

/* TRAINING CARD */
.training-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.training-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.training-card-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.training-card-header h4 { font-size: 1rem; font-weight: 600; }
.training-badge {
  font-size: .7rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 50px;
  background: rgba(255,255,255,.2);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.training-card-body { padding: 1.25rem; }

.training-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .625rem;
  margin-bottom: 1rem;
}

.training-meta-item {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .8rem;
  color: var(--text-secondary);
}
.training-meta-item i { color: var(--primary); width: 1rem; text-align: center; }

.training-price {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .75rem;
}
.training-price small { font-size: .7rem; font-weight: 400; color: var(--text-muted); }

.training-card-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ============================================================
   STATS GRID
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

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

.stat-icon {
  width: 3rem;
  height: 3rem;
  border-radius: .625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.stat-icon.blue { background: #dbeafe; color: var(--info); }
.stat-icon.green { background: #d1fae5; color: var(--success); }
.stat-icon.yellow { background: #fef3c7; color: var(--warning); }
.stat-icon.red { background: #fee2e2; color: var(--danger); }

.stat-label { font-size: .75rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .04em; }
.stat-value { font-size: 1.75rem; font-weight: 800; color: var(--text-primary); line-height: 1; }

/* ============================================================
   DASHBOARD GRID
   ============================================================ */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

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

/* ============================================================
   DATA TABLE
   ============================================================ */
.table-responsive { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}

.data-table th {
  background: #f8fafc;
  padding: .75rem 1rem;
  text-align: left;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

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

.data-table tbody tr:hover { background: #f8fafc; }
.data-table tbody tr:last-child td { border-bottom: none; }

/* ============================================================
   BADGES / STATUS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .625rem;
  border-radius: 50px;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}

.badge-pending    { background: #fef3c7; color: #d97706; }
.badge-confirmed  { background: #d1fae5; color: #059669; }
.badge-cancelled  { background: #fee2e2; color: #dc2626; }
.badge-waitlist   { background: #e0e7ff; color: #4338ca; }
.badge-draft      { background: #f1f5f9; color: #64748b; }
.badge-sent       { background: #dbeafe; color: #1d4ed8; }
.badge-accepted   { background: #d1fae5; color: #059669; }
.badge-rejected   { background: #fee2e2; color: #dc2626; }
.badge-converted  { background: #ede9fe; color: #7c3aed; }
.badge-paid       { background: #d1fae5; color: #059669; }
.badge-unpaid     { background: #fef3c7; color: #d97706; }
.badge-overdue    { background: #fee2e2; color: #dc2626; }
.badge-partial    { background: #dbeafe; color: #1d4ed8; }
.badge-active     { background: #d1fae5; color: #059669; }
.badge-inactive   { background: #f1f5f9; color: #64748b; }
.badge-completed  { background: #ede9fe; color: #7c3aed; }
.badge-refunded   { background: #e0e7ff; color: #4338ca; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .6rem 1.125rem;
  border-radius: var(--radius-sm);
  border: none;
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: var(--font);
  text-decoration: none;
}

.btn-primary   { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }

.btn-success   { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; }

.btn-warning   { background: var(--warning); color: #fff; }
.btn-warning:hover { background: #d97706; }

.btn-danger    { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }

.btn-outline   { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }

.btn-ghost     { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: #f1f5f9; color: var(--text-primary); }

.btn-sm { padding: .35rem .75rem; font-size: .8rem; }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { display: flex; flex-direction: column; gap: .375rem; }

.form-group label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .03em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: .6rem .875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-family: var(--font);
  color: var(--text-primary);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}

.form-group textarea { resize: vertical; min-height: 80px; }
.required { color: var(--danger); }
.text-muted { color: var(--text-muted); font-weight: 400; font-size: .75rem; }

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-grid-2 .span-2 { grid-column: span 2; }

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: .75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

.section-divider {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  padding: .75rem 0 .5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

/* ============================================================
   PRICE SUMMARY
   ============================================================ */
.price-summary {
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .375rem 0;
  font-size: .9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.price-row:last-child { border-bottom: none; }
.price-row.total {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  padding-top: .625rem;
}

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 200;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
  backdrop-filter: blur(2px);
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 580px;
  animation: modalIn .25s ease;
  margin: auto;
}

.modal-lg { max-width: 800px; }
.modal-sm { max-width: 420px; }

@keyframes modalIn {
  from { opacity: 0; transform: translateY(-20px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 { font-size: 1.1rem; font-weight: 700; }

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: .375rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.modal-close:hover { background: #f1f5f9; color: var(--text-primary); }

.modal-body { padding: 1.5rem; }

/* ============================================================
   FILTER & SEARCH BAR
   ============================================================ */
.page-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .5rem .875rem;
  flex: 1;
  max-width: 360px;
  box-shadow: var(--shadow);
}

.search-box i { color: var(--text-muted); font-size: .875rem; }

.search-box input {
  border: none;
  outline: none;
  font-size: .875rem;
  font-family: var(--font);
  background: transparent;
  color: var(--text-primary);
  width: 100%;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  font-size: .85rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.filter-bar select {
  padding: .4rem .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  background: var(--card-bg);
  font-family: var(--font);
  cursor: pointer;
}

/* ============================================================
   EMAIL PAGE
   ============================================================ */
.email-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 900px) {
  .email-layout { grid-template-columns: 1fr; }
}

.recipients-list { max-height: 340px; overflow-y: auto; }

.recipient-item {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .5rem .25rem;
  border-bottom: 1px solid var(--border);
  font-size: .875rem;
}
.recipient-item:last-child { border-bottom: none; }
.recipient-item input[type=checkbox] { cursor: pointer; width: 1rem; height: 1rem; }

.recipient-info { flex: 1; }
.recipient-name { font-weight: 600; }
.recipient-email { font-size: .75rem; color: var(--text-muted); }

.email-action-bar { display: flex; justify-content: flex-end; gap: .75rem; margin-top: 1rem; }

.email-preview-area { margin-top: 1.25rem; }

#email-preview-content {
  font-family: var(--font);
  line-height: 1.6;
  color: var(--text-primary);
  background: #f8fafc;
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  white-space: pre-wrap;
}

/* ============================================================
   INVOICE PRINT VIEW
   ============================================================ */
.invoice-doc {
  background: #fff;
  padding: 2rem;
  font-size: .9rem;
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto;
}

.invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--primary);
}

.invoice-brand { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.invoice-brand span { font-weight: 300; color: var(--text-muted); }

.invoice-meta { text-align: right; }
.invoice-number { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); }
.invoice-date { font-size: .8rem; color: var(--text-muted); }

.invoice-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.invoice-party h4 {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: .5rem;
}

.invoice-party p { font-size: .875rem; color: var(--text-primary); }

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: .875rem;
}

.invoice-table th {
  background: var(--primary);
  color: #fff;
  padding: .75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: .8rem;
}

.invoice-table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.invoice-totals { max-width: 300px; margin-left: auto; }
.invoice-totals .price-row { font-size: .9rem; }

.invoice-notes {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--text-secondary);
}

/* ============================================================
   LOADING / EMPTY STATES
   ============================================================ */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 2rem;
  color: var(--text-muted);
  font-size: .9rem;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-muted);
}

.empty-state i { font-size: 2.5rem; margin-bottom: 1rem; opacity: .5; }
.empty-state h4 { font-size: 1rem; color: var(--text-secondary); margin-bottom: .5rem; }
.empty-state p { font-size: .85rem; }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--text-primary);
  color: #fff;
  padding: .875rem 1.25rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 500;
  z-index: 999;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
  max-width: 360px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: .625rem;
}

.toast.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }
.toast.warning { background: var(--warning); }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }

/* ============================================================
   DASH MINI LIST
   ============================================================ */
.mini-list { list-style: none; }
.mini-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .625rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .875rem;
  gap: .5rem;
}
.mini-list li:last-child { border-bottom: none; }
.mini-list .name { font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-list .meta { font-size: .75rem; color: var(--text-muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-toggle { display: flex; }
  .mobile-menu-btn { display: flex; }
  .main-content { margin-left: 0; }

  .form-grid-2 { grid-template-columns: 1fr; }
  .form-grid-2 .span-2 { grid-column: span 1; }

  .stats-grid { grid-template-columns: 1fr 1fr; }

  .page-container { padding: 1rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .page-actions { flex-direction: column; align-items: stretch; }
  .search-box { max-width: 100%; }
  .topbar { padding: 0 1rem; }
  .modal { margin: 0; border-radius: var(--radius) var(--radius) 0 0; }
  .modal-overlay { align-items: flex-end; padding: 0; }
}

/* ============================================================
   TOPBAR ICON BUTTON
   ============================================================ */
.topbar-icon-btn {
  position: relative;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: .4rem .5rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  margin-left: .75rem;
}
.topbar-icon-btn:hover { background: #f1f5f9; color: var(--primary); }

/* ============================================================
   UNREAD BADGE
   ============================================================ */
.msg-unread-badge {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--danger);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  min-width: 1rem;
  height: 1rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 .2rem;
  line-height: 1;
}
.nav-link { position: relative; }
.nav-link .msg-unread-badge { top: 50%; right: .75rem; transform: translateY(-50%); position: absolute; }

/* ============================================================
   MESSAGING — IDENTITY BAR
   ============================================================ */
.msg-identity-bar {
  background: var(--primary-light);
  border: 1px solid #c7d2fe;
  border-radius: var(--radius);
  padding: .75rem 1.25rem;
  margin-bottom: 1.25rem;
}
.msg-identity-inner {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  font-size: .875rem;
  color: var(--primary-dark);
  font-weight: 500;
}
.msg-identity-inner i { font-size: 1.1rem; }
.msg-identity-inner select {
  padding: .375rem .75rem;
  border: 1px solid #a5b4fc;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-family: var(--font);
  background: #fff;
  color: var(--text-primary);
  cursor: pointer;
  flex: 1;
  min-width: 200px;
  max-width: 320px;
}
.msg-identity-inner select:focus { outline: none; border-color: var(--primary); }

/* ============================================================
   MESSAGING LAYOUT
   ============================================================ */
.msg-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  height: calc(100vh - 250px);
  min-height: 520px;
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* SIDEBAR */
.msg-sidebar {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: #fafafa;
  overflow: hidden;
}

.msg-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.125rem;
  border-bottom: 1px solid var(--border);
  gap: .5rem;
  background: var(--card-bg);
}

.msg-sidebar-header h3 {
  font-size: .95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--text-primary);
}
.msg-sidebar-header h3 i { color: var(--primary); }

.msg-search {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .625rem 1rem;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}
.msg-search i { color: var(--text-muted); font-size: .8rem; }
.msg-search input {
  border: none;
  outline: none;
  font-size: .875rem;
  font-family: var(--font);
  background: transparent;
  color: var(--text-primary);
  width: 100%;
}

.msg-conversations-list {
  flex: 1;
  overflow-y: auto;
}

/* Conversation item */
.msg-conv-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .875rem 1.125rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  position: relative;
}
.msg-conv-item:hover { background: #f1f5f9; }
.msg-conv-item.active { background: var(--primary-light); }
.msg-conv-item.has-unread { background: #f0f4ff; }

.msg-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  position: relative;
}

.msg-avatar-status {
  position: absolute;
  bottom: 0; right: 0;
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  border: 2px solid #fff;
}
.msg-avatar-status.online  { background: var(--success); }
.msg-avatar-status.away    { background: var(--warning); }
.msg-avatar-status.offline { background: var(--text-muted); }

.msg-conv-info { flex: 1; min-width: 0; }
.msg-conv-name {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msg-conv-preview {
  font-size: .75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: .1rem;
}
.msg-conv-time {
  font-size: .7rem;
  color: var(--text-muted);
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .25rem;
}
.msg-conv-unread-count {
  background: var(--primary);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  min-width: 1.1rem;
  height: 1.1rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 .2rem;
}

/* CHAT AREA */
.msg-chat-area {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
}

.msg-chat-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  text-align: center;
  padding: 2rem;
  gap: .75rem;
}
.msg-chat-empty i { font-size: 3rem; opacity: .3; }
.msg-chat-empty h3 { font-size: 1.1rem; color: var(--text-secondary); }
.msg-chat-empty p { font-size: .875rem; max-width: 300px; }

.msg-chat-window {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.msg-chat-header {
  padding: .875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .875rem;
  background: var(--card-bg);
  flex-shrink: 0;
}

.msg-chat-header-info { flex: 1; }
.msg-chat-header-name { font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.msg-chat-header-sub { font-size: .75rem; color: var(--text-muted); }

.msg-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  background: #f8fafc;
}

/* Individual messages */
.msg-bubble-row {
  display: flex;
  gap: .625rem;
  align-items: flex-end;
  max-width: 80%;
}
.msg-bubble-row.mine {
  flex-direction: row-reverse;
  align-self: flex-end;
}
.msg-bubble-row.theirs { align-self: flex-start; }

.msg-bubble {
  padding: .625rem 1rem;
  border-radius: 1.125rem;
  font-size: .875rem;
  line-height: 1.5;
  word-break: break-word;
  max-width: 100%;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.msg-bubble-row.mine .msg-bubble {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: .25rem;
}
.msg-bubble-row.theirs .msg-bubble {
  background: var(--card-bg);
  color: var(--text-primary);
  border-bottom-left-radius: .25rem;
  border: 1px solid var(--border);
}

/* Broadcast bubble */
.msg-bubble-row.broadcast {
  align-self: center;
  max-width: 90%;
}
.msg-bubble-row.broadcast .msg-bubble {
  background: #fef3c7;
  color: #78350f;
  border: 1px solid #fde68a;
  border-radius: 1rem;
  font-style: italic;
  text-align: center;
}

.msg-bubble-meta {
  font-size: .7rem;
  color: var(--text-muted);
  margin-top: .25rem;
  white-space: nowrap;
}
.msg-bubble-row.mine .msg-bubble-meta { text-align: right; }

.msg-sender-name {
  font-size: .7rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: .15rem;
}

/* Date divider */
.msg-date-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: .5rem 0;
}
.msg-date-divider span {
  font-size: .7rem;
  color: var(--text-muted);
  white-space: nowrap;
  padding: .2rem .75rem;
  background: #e2e8f0;
  border-radius: 50px;
}
.msg-date-divider::before,
.msg-date-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Input area */
.msg-chat-input-area {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--card-bg);
  flex-shrink: 0;
}

.msg-chat-input-box {
  display: flex;
  gap: .625rem;
  align-items: flex-end;
}

.msg-chat-input-box textarea {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: .625rem 1rem;
  font-size: .9rem;
  font-family: var(--font);
  color: var(--text-primary);
  resize: none;
  outline: none;
  transition: border-color var(--transition);
  max-height: 120px;
  overflow-y: auto;
  line-height: 1.5;
}
.msg-chat-input-box textarea:focus { border-color: var(--primary); }

.msg-send-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  padding: 0;
  justify-content: center;
  flex-shrink: 0;
}

.msg-input-hint {
  font-size: .7rem;
  color: var(--text-muted);
  margin-top: .375rem;
}
.msg-input-hint kbd {
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: .2rem;
  padding: .05rem .3rem;
  font-family: monospace;
  font-size: .65rem;
}

/* Broadcast modal area */
.broadcast-compose {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 1rem;
}

/* Typing indicator */
.msg-typing {
  display: flex;
  gap: .3rem;
  align-items: center;
  padding: .5rem .75rem;
  align-self: flex-start;
}
.msg-typing span {
  width: .45rem;
  height: .45rem;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typingBounce 1.2s infinite;
}
.msg-typing span:nth-child(2) { animation-delay: .2s; }
.msg-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

/* Responsive */
@media (max-width: 768px) {
  .msg-layout { grid-template-columns: 1fr; height: auto; }
  .msg-sidebar { height: 320px; border-right: none; border-bottom: 1px solid var(--border); }
  .msg-chat-area { height: 480px; }
}

/* ============================================================
   EXPORT BUTTON GROUP
   ============================================================ */
.export-btn-group {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

/* ============================================================
   PAYMENT RECEIVED TOGGLE
   ============================================================ */
.th-payment-recv { min-width: 140px; text-align: center; }

.payment-recv-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  user-select: none;
}

.payment-recv-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
  pointer-events: none;
}

.payment-recv-label {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .3rem .75rem;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  transition: all .15s ease;
  cursor: pointer;
  white-space: nowrap;
}

.payment-recv-label.recv-no {
  background: #f1f5f9;
  color: var(--text-muted);
  border-color: var(--border);
}
.payment-recv-label.recv-no:hover {
  background: #dcfce7;
  color: #15803d;
  border-color: #86efac;
}

.payment-recv-label.recv-yes {
  background: #dcfce7;
  color: #15803d;
  border-color: #86efac;
}
.payment-recv-label.recv-yes:hover {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

/* Paid row highlight */
tr.row-paid td {
  background: #f0fdf4;
}
tr.row-paid:hover td {
  background: #dcfce7;
}

/* ============================================================
   ATTENDANCE & COMPLETION — REGISTRATIONS TABLE
   ============================================================ */

/* Column header widths */
.th-attendance { min-width: 170px; }
.th-completion { min-width: 200px; }

/* Cell wrapper */
.attendance-cell,
.completion-cell {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

/* Present / Absent button pair */
.attend-btn-group {
  display: flex;
  gap: .25rem;
}

.attend-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .6rem;
  font-size: .72rem;
  font-weight: 600;
  border-radius: 50px;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: var(--font);
  transition: all .15s ease;
  background: #f1f5f9;
  color: var(--text-secondary);
  white-space: nowrap;
}

.attend-btn:hover { filter: brightness(.95); }

/* Present button */
.attend-btn.attend-present {
  border-color: #bbf7d0;
  color: #15803d;
  background: #f0fdf4;
}
.attend-btn.attend-present.active,
.attend-btn.attend-present:hover {
  background: #dcfce7;
  border-color: #4ade80;
  color: #15803d;
  box-shadow: 0 0 0 2px #bbf7d0;
}

/* Absent button */
.attend-btn.attend-absent {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fff5f5;
}
.attend-btn.attend-absent.active,
.attend-btn.attend-absent:hover {
  background: #fee2e2;
  border-color: #f87171;
  color: #b91c1c;
  box-shadow: 0 0 0 2px #fecaca;
}

/* Attendance result badge (shown below buttons) */
.badge-attend-present {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  font-size: .7rem;
  font-weight: 600;
  padding: .15rem .6rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

.badge-attend-absent {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
  font-size: .7rem;
  font-weight: 600;
  padding: .15rem .6rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

.attend-unset {
  font-size: .7rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Completion dropdown */
.completion-select {
  padding: .35rem .65rem;
  border-radius: var(--radius-sm);
  font-size: .78rem;
  font-family: var(--font);
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
  width: 100%;
  transition: border-color .15s, background .15s;
  color: var(--text-secondary);
}
.completion-select:focus { outline: none; border-color: var(--primary); }

.completion-select.completion-complete {
  background: #dcfce7;
  border-color: #86efac;
  color: #15803d;
}

.completion-select.completion-incomplete {
  background: #fef9c3;
  border-color: #fde047;
  color: #854d0e;
}

/* ============================================================
   EXPENSES PAGE
   ============================================================ */

/* Summary strip */
.exp-summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.exp-summary-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.exp-sum-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  font-weight: 600;
}

.exp-sum-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--danger);
}

.exp-sum-value.po      { color: var(--primary); }
.exp-sum-value.pc      { color: var(--secondary); }
.exp-sum-value.neutral { color: var(--text-primary); }

/* Category badge */
.exp-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .78rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.exp-cat-badge i { color: var(--primary); }

/* Type badge */
.exp-type-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .75rem;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}

.exp-type-po {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.exp-type-pc {
  background: #fae8ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

/* Payment type selector in modal */
.exp-type-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.exp-type-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1.25rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  transition: all .15s ease;
  background: #f8fafc;
}

.exp-type-option input { display: none; }

.exp-type-option i {
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: color .15s;
}

.exp-type-option:hover,
.exp-type-option.selected,
.exp-type-option:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.exp-type-option:hover i,
.exp-type-option.selected i,
.exp-type-option:has(input:checked) i {
  color: var(--primary);
}

/* ============================================================
   INCOME & EXPENSES (FINANCIAL) PAGE
   ============================================================ */

.fin-filter-bar {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

/* KPI grid */
.fin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.fin-kpi-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: box-shadow .2s;
}

.fin-kpi-card:hover { box-shadow: var(--shadow-md); }

.fin-kpi-icon {
  width: 3rem;
  height: 3rem;
  border-radius: .625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.fin-kpi-card.income          .fin-kpi-icon { background: #d1fae5; color: var(--success); }
.fin-kpi-card.expenses         .fin-kpi-icon { background: #fee2e2; color: var(--danger); }
.fin-kpi-card.net-positive     .fin-kpi-icon { background: #d1fae5; color: var(--success); }
.fin-kpi-card.net-negative     .fin-kpi-icon { background: #fee2e2; color: var(--danger); }
.fin-kpi-card.net              .fin-kpi-icon { background: #e0e7ff; color: var(--primary); }
.fin-kpi-card.po               .fin-kpi-icon { background: #dbeafe; color: var(--info); }
.fin-kpi-card.pc               .fin-kpi-icon { background: #fae8ff; color: #7e22ce; }

.fin-kpi-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  font-weight: 600;
}

.fin-kpi-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.fin-kpi-sub {
  font-size: .72rem;
  color: var(--text-muted);
  margin-top: .2rem;
}

/* Tables grid */
.fin-tables-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 960px) {
  .fin-tables-grid { grid-template-columns: 1fr; }
}

/* Expense type chips inside financial table */
.fin-type-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .15rem .55rem;
  border-radius: 50px;
  font-size: .7rem;
  font-weight: 600;
}

.chip-po { background: #dbeafe; color: #1d4ed8; }
.chip-pc { background: #fae8ff; color: #7e22ce; }

/* ============================================================
   NAV SECTION LABEL
   ============================================================ */
.nav-section-label {
  list-style: none;
  padding: .875rem 1.25rem .25rem;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.3);
}

/* ============================================================
   SHARE SIGNUP LINK — BUTTON & MODAL
   ============================================================ */
.btn-share {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  border: none;
}
.btn-share:hover { background: linear-gradient(135deg, #6d28d9, #3730a3); }

/* Share modal link box */
.share-link-box {
  display: flex;
  gap: .5rem;
  align-items: center;
}

.share-link-box input {
  flex: 1;
  padding: .6rem .875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-family: monospace;
  color: var(--text-secondary);
  background: #f8fafc;
  outline: none;
  cursor: text;
  min-width: 0;
}

.share-link-box input:focus { border-color: var(--primary); }

/* Copied confirmation */
.share-copied-msg {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .625rem;
  font-size: .825rem;
  font-weight: 600;
  color: var(--success);
  animation: fadeIn .25s ease;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Info note */
.share-info-box {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  margin-top: 1.25rem;
  background: #ede9fe;
  border: 1px solid #c4b5fd;
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  font-size: .8rem;
  color: #4c1d95;
  line-height: 1.5;
}
.share-info-box i { flex-shrink: 0; margin-top: .15rem; }

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .sidebar, .topbar, .modal-header .btn, .modal-close,
  .page-actions, .filter-bar { display: none !important; }
  .modal-overlay { position: static; background: none; padding: 0; }
  .modal { box-shadow: none; max-width: 100%; }
  .invoice-doc { padding: 0; }
}
