/* ─────────────────────────────────────────
   VARIABLES & RESET
───────────────────────────────────────── */
:root {
  --bg:          #EBF4F6;
  --white:       #FFFFFF;
  --border:      rgba(0,160,150,0.15);
  --border-soft: rgba(0,160,150,0.1);

  --teal-1:      #0D7377;  /* sidebar bg */
  --teal-2:      #0A9396;  /* sidebar hover/accent */
  --teal-3:      #00C9B1;  /* accent cyan */
  --teal-dark:   #085457;  /* deep teal */

  --gradient:    linear-gradient(135deg, #00C9B1 0%, #0066FF 100%);

  --text-dark:   #0D2B35;
  --text-mid:    #2A4A5A;
  --text-muted:  #7A9EAA;

  --shadow-sm:   0 2px 8px rgba(0,100,120,0.06);
  --shadow-md:   0 6px 20px rgba(0,100,120,0.1);
  --shadow-lg:   0 12px 40px rgba(0,100,120,0.14);

  --radius:      10px;
  --radius-lg:   16px;

  --success:     #007A50;
  --danger:      #C0392B;
  --info:        #0055CC;
  --warning:     #B7791F;
}

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

body {
  font-family: 'Sora', sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }

/* ─────────────────────────────────────────
   FLASH MESSAGES
───────────────────────────────────────── */
.flash-container {
  position: fixed; top: 16px; right: 16px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px; max-width: 360px;
}
.flash {
  padding: 12px 16px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: slideIn 0.25s ease;
}
@keyframes slideIn { from { opacity:0; transform: translateX(20px); } to { opacity:1; transform: translateX(0); } }
.flash button { background: none; border: none; cursor: pointer; font-size: 14px; opacity: 0.6; }
.flash button:hover { opacity: 1; }
.flash-success { background: #E6FAF2; color: var(--success); border: 1px solid #A3E4C8; }
.flash-error   { background: #FEE8E8; color: var(--danger);  border: 1px solid #F5BCBC; }
.flash-info    { background: #E8F4FF; color: var(--info);    border: 1px solid #B3D4F5; }

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

/* ─────────────────────────────────────────
   SIDEBAR
───────────────────────────────────────── */
.sidebar {
  width: 245px; flex-shrink: 0;
  background: var(--teal-1);
  display: flex; flex-direction: column;
  position: sticky; top: 0;
  height: 100vh; overflow-y: auto;
}

.sidebar-brand {
  padding: 22px 18px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; gap: 12px;
}
.brand-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; box-shadow: 0 4px 12px rgba(0,200,180,0.3);
}
.brand-name { font-size: 16px; font-weight: 700; color: #fff; }
.brand-sub   { font-size: 10px; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.1em; }

.sidebar-section { padding: 16px 12px 4px; }
.sidebar-section-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
  padding: 0 8px; margin-bottom: 6px;
}

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px; cursor: pointer;
  color: rgba(255,255,255,0.72); font-size: 13px; font-weight: 400;
  transition: all 0.15s; margin-bottom: 2px;
}
.nav-item:hover { background: rgba(255,255,255,0.12); color: #fff; }
.nav-item.active { background: rgba(255,255,255,0.18); color: #fff; font-weight: 600; }
.nav-icon { width: 18px; text-align: center; font-size: 15px; flex-shrink: 0; }

.nav-role-badge {
  margin-left: auto; font-size: 9px; font-weight: 700;
  padding: 2px 7px; border-radius: 20px;
  background: rgba(255,255,255,0.2); color: rgba(255,255,255,0.9);
  text-transform: uppercase; letter-spacing: 0.06em;
}

.sidebar-bottom {
  margin-top: auto; padding: 14px 12px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; border-radius: 8px; margin-bottom: 8px;
}
.sidebar-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
}
.sidebar-username { font-size: 13px; font-weight: 600; color: #fff; }
.sidebar-userrole { font-size: 11px; color: rgba(255,255,255,0.45); }

.sidebar-logout-btn {
  display: block; text-align: center; padding: 7px;
  border-radius: 8px; font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,0.6); transition: all 0.15s;
  border: 1px solid rgba(255,255,255,0.15);
}
.sidebar-logout-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ─────────────────────────────────────────
   MAIN CONTENT
───────────────────────────────────────── */
.main-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 0 28px; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.topbar-left {}
.page-title    { font-size: 17px; font-weight: 700; color: var(--text-dark); }
.breadcrumb    { font-size: 11px; color: var(--text-muted); }
.topbar-right  { display: flex; gap: 10px; align-items: center; }

.topbar-btn {
  padding: 8px 16px; border-radius: 8px; border: 1.5px solid var(--border);
  background: var(--white); color: var(--text-mid); font-family: 'Sora', sans-serif;
  font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.15s;
}
.topbar-btn:hover { border-color: var(--teal-3); color: var(--teal-1); }
.topbar-btn.primary { background: var(--gradient); border: none; color: #fff; }
.topbar-btn.primary:hover { opacity: 0.9; transform: translateY(-1px); }

.content-body { padding: 28px; flex: 1; }

/* ─────────────────────────────────────────
   STATS GRID
───────────────────────────────────────── */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px; margin-bottom: 28px;
}
.stat-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px;
  box-shadow: var(--shadow-sm); transition: all 0.2s;
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-icon  { font-size: 22px; margin-bottom: 10px; }
.stat-value { font-size: 30px; font-weight: 700; color: var(--text-dark); letter-spacing: -0.02em; }
.stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }

/* ─────────────────────────────────────────
   SECTION HEADER
───────────────────────────────────────── */
.section-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.section-title { font-size: 14px; font-weight: 700; color: var(--text-dark); }

/* ─────────────────────────────────────────
   MINISTRY GRID
───────────────────────────────────────── */
.ministry-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px; margin-bottom: 28px;
}
.ministry-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 14px;
  text-align: center; cursor: pointer; transition: all 0.18s;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.ministry-card:hover {
  border-color: var(--teal-3); box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.ministry-icon  { font-size: 26px; }
.ministry-name  { font-size: 12px; font-weight: 600; color: var(--text-dark); line-height: 1.3; }
.ministry-count { font-size: 11px; color: var(--text-muted); }

/* ─────────────────────────────────────────
   CARD
───────────────────────────────────────── */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden;
  margin-bottom: 24px;
}
.card-header {
  padding: 16px 22px; border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.card-title { font-size: 14px; font-weight: 700; color: var(--text-dark); }

/* ─────────────────────────────────────────
   TABLE
───────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead tr { background: rgba(235,248,250,0.7); }
th {
  padding: 11px 16px; text-align: left;
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.08em; text-transform: uppercase;
  border-bottom: 1px solid var(--border-soft);
}
td {
  padding: 13px 16px; color: var(--text-mid);
  border-bottom: 1px solid var(--border-soft); vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(0,201,177,0.04); }

.avatar-cell { display: flex; align-items: center; gap: 10px; }
.table-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
}
.text-muted { color: var(--text-muted); font-size: 12px; }

/* ─────────────────────────────────────────
   BADGES
───────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
}
.badge-admin  { background: rgba(0,201,177,0.12); color: var(--teal-1); }
.badge-user   { background: rgba(0,100,255,0.09); color: var(--info);   }

.role-badge-admin  { background: rgba(0,201,177,0.12); color: var(--teal-1); display:inline-block; padding:2px 8px; border-radius:20px; font-size:11px; font-weight:600; }
.role-badge-leader { background: rgba(183,121,31,0.12); color: var(--warning); display:inline-block; padding:2px 8px; border-radius:20px; font-size:11px; font-weight:600; }
.role-badge-member { background: rgba(0,100,255,0.09); color: var(--info); display:inline-block; padding:2px 8px; border-radius:20px; font-size:11px; font-weight:600; }

.ministry-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.ministry-tag {
  font-size: 11px; padding: 2px 8px; border-radius: 20px;
  background: rgba(0,160,150,0.08); color: var(--teal-1);
}
.ministry-tag em { font-style: normal; color: var(--text-muted); }
.ministry-tag.role-leader { background: rgba(183,121,31,0.1); color: var(--warning); }
.ministry-tag.role-admin  { background: rgba(0,201,177,0.12); color: var(--teal-1); }

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn {
  padding: 8px 16px; border-radius: 8px; border: none; cursor: pointer;
  font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 500;
  transition: all 0.18s; display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary { background: var(--gradient); color: #fff; }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--text-mid);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--teal-3); color: var(--teal-1); }
.btn-danger { background: #FEE8E8; color: var(--danger); border: 1.5px solid #F5BCBC; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { padding: 5px 12px; font-size: 12px; }

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

/* ─────────────────────────────────────────
   SEARCH
───────────────────────────────────────── */
.search-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.search-input {
  padding: 8px 14px; border: 1.5px solid var(--border); border-radius: 8px;
  font-family: 'Sora', sans-serif; font-size: 13px; background: var(--bg);
  color: var(--text-dark); outline: none; transition: all 0.2s; width: 200px;
}
.search-input:focus { border-color: var(--teal-3); background: var(--white); width: 240px; }

/* ─────────────────────────────────────────
   ACTIVITY LOG
───────────────────────────────────────── */
.activity-list { padding: 6px 22px 16px; }
.activity-item { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border-soft); }
.activity-item:last-child { border-bottom: none; }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-3); margin-top: 5px; flex-shrink: 0; }
.activity-text { font-size: 13px; color: var(--text-mid); line-height: 1.4; }
.activity-time { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ─────────────────────────────────────────
   WELCOME BANNER
───────────────────────────────────────── */
.welcome-banner {
  background: linear-gradient(135deg, var(--teal-1) 0%, var(--teal-2) 100%);
  border-radius: var(--radius-lg); padding: 26px 32px; margin-bottom: 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.welcome-banner h2 { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.welcome-banner p  { font-size: 13px; color: rgba(255,255,255,0.7); }
.welcome-badge {
  background: rgba(255,255,255,0.18); color: #fff;
  padding: 7px 16px; border-radius: 20px; font-size: 12px; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.25);
}

.role-pill {
  display: inline-block; padding: 2px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
}
.role-pill.role-admin  { background: rgba(255,255,255,0.25); color: #fff; }
.role-pill.role-leader { background: rgba(255,220,100,0.3);  color: #FFE066; }
.role-pill.role-member { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.85); }

/* ─────────────────────────────────────────
   MODAL
───────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,30,40,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white); border-radius: var(--radius-lg);
  width: 100%; max-width: 440px;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px); transition: transform 0.25s;
  max-height: 90vh; display: flex; flex-direction: column;
}
.modal-lg { max-width: 600px; }
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header {
  padding: 20px 26px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.modal-title { font-size: 16px; font-weight: 700; color: var(--text-dark); }
.modal-close {
  width: 28px; height: 28px; border-radius: 6px; border: none;
  background: var(--bg); cursor: pointer; font-size: 14px; color: var(--text-muted);
  transition: all 0.15s;
}
.modal-close:hover { background: #ddd; color: var(--text-dark); }
.modal-body {
  padding: 22px 26px; overflow-y: auto;
}
.modal-footer {
  padding: 14px 26px 20px; display: flex; gap: 10px; justify-content: flex-end;
  border-top: 1px solid var(--border-soft); flex-shrink: 0;
}
.modal-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }

/* ─────────────────────────────────────────
   FORM ELEMENTS
───────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 11px; font-weight: 600;
  color: var(--text-mid); margin-bottom: 7px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.form-input {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-family: 'Sora', sans-serif; font-size: 13px;
  background: var(--bg); color: var(--text-dark); outline: none;
  transition: all 0.2s;
}
.form-input:focus {
  border-color: var(--teal-3); background: var(--white);
  box-shadow: 0 0 0 3px rgba(0,201,177,0.1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-hint { font-size: 0.78rem; color: #7B8FA1; margin-top: 4px; }
.required { color: #EF4444; margin-left: 2px; }

/* ─────────────────────────────────────────
   MINISTRY CHECKBOX GRID
───────────────────────────────────────── */
.ministry-checkbox-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  max-height: 280px; overflow-y: auto;
  border: 1px solid var(--border); border-radius: 8px; padding: 12px;
  background: var(--bg);
}
.ministry-checkbox-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px 8px; border-radius: 6px; transition: background 0.15s;
}
.ministry-checkbox-row:hover { background: rgba(0,201,177,0.06); }
.checkbox-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 500; color: var(--text-mid); cursor: pointer;
}
.checkbox-label input[type="checkbox"] { accent-color: var(--teal-1); width: 14px; height: 14px; }
.role-select {
  padding: 3px 7px; border-radius: 6px; border: 1px solid var(--border);
  font-family: 'Sora', sans-serif; font-size: 11px; color: var(--text-mid);
  background: var(--white); cursor: pointer; transition: all 0.15s;
}
.role-select:disabled { opacity: 0.35; cursor: not-allowed; }
.role-select:not(:disabled) { border-color: var(--teal-3); }

/* ─────────────────────────────────────────
   LOGIN PAGE
───────────────────────────────────────── */
.login-body { background: var(--bg); }
.login-page {
  min-height: 100vh; display: grid; place-items: center;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(0,180,160,0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(0,100,200,0.07) 0%, transparent 50%);
  padding: 40px 20px;
}
.login-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 420px; overflow: hidden;
}
.login-header {
  background: var(--teal-1); padding: 34px 40px 26px; text-align: center;
}
.login-logo {
  width: 46px; height: 46px; margin: 0 auto 14px;
  background: var(--gradient); border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; box-shadow: 0 4px 16px rgba(0,200,180,0.35);
}
.login-title {
  font-family: 'Sora', sans-serif; font-size: 24px; font-weight: 700;
  color: #fff; letter-spacing: -0.01em;
}
.login-subtitle { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 4px; letter-spacing: 0.08em; }
.login-body { padding: 32px 40px; }
.login-btn {
  width: 100%; padding: 12px;
  background: var(--gradient); color: #fff;
  border: none; border-radius: 8px; cursor: pointer;
  font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 600;
  letter-spacing: 0.02em; transition: all 0.2s; margin-top: 6px;
  box-shadow: 0 4px 16px rgba(0,150,255,0.25);
}
.login-btn:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,150,255,0.3); }
.login-footer { text-align: center; margin-top: 20px; font-size: 11px; color: var(--text-muted); }

/* ─────────────────────────────────────────
   MINISTRY SELECTOR
───────────────────────────────────────── */
.selector-body { background: var(--bg); }
.selector-page { min-height: 100vh; padding: 60px 24px 40px; }
.selector-header { text-align: center; margin-bottom: 40px; }
.selector-logo {
  width: 52px; height: 52px; margin: 0 auto 18px;
  background: var(--gradient); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; box-shadow: 0 6px 20px rgba(0,200,180,0.3);
}
.selector-title { font-size: 26px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.selector-sub   { font-size: 14px; color: var(--text-muted); }

.selector-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px; max-width: 860px; margin: 0 auto 36px;
}
.selector-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px 16px;
  text-align: center; cursor: pointer; transition: all 0.2s;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.selector-card:hover {
  border-color: var(--teal-3); box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.selector-icon { font-size: 32px; }
.selector-name { font-size: 14px; font-weight: 700; color: var(--text-dark); }
.selector-role {
  font-size: 11px; font-weight: 600; padding: 3px 12px; border-radius: 20px;
}
.role-admin  { background: rgba(0,201,177,0.12); color: var(--teal-1); }
.role-leader { background: rgba(183,121,31,0.12); color: var(--warning); }
.role-member { background: rgba(0,100,255,0.09); color: var(--info); }

.selector-footer { text-align: center; }
.selector-logout { font-size: 13px; color: var(--text-muted); }
.selector-logout:hover { color: var(--teal-1); }

/* ─────────────────────────────────────────
   CHANGE PASSWORD PAGE
───────────────────────────────────────── */
.cp-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
  max-width: 860px;
}
@media (max-width: 768px) {
  .cp-layout { grid-template-columns: 1fr; }
}

.cp-card { margin-bottom: 0; }

.cp-body { padding: 28px 28px 32px; }

/* input with eye toggle */
.input-wrap { position: relative; }
.input-wrap .form-input { padding-right: 44px; }
.eye-btn {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  font-size: 16px; color: var(--text-muted);
  transition: color 0.15s; padding: 4px;
  line-height: 1;
}
.eye-btn:hover { color: var(--teal-1); }

.cp-divider {
  border: none; border-top: 1px solid var(--border-soft);
  margin: 20px 0;
}

/* Strength meter */
.strength-bar-wrap {
  height: 4px; background: var(--border);
  border-radius: 4px; margin-top: 8px; overflow: hidden;
}
.strength-bar {
  height: 100%; width: 0;
  border-radius: 4px;
  transition: width 0.3s, background 0.3s;
}
.strength-label {
  font-size: 11px; font-weight: 600;
  margin-top: 5px; min-height: 16px;
  letter-spacing: 0.04em;
}

/* Match message */
.match-msg {
  font-size: 12px; font-weight: 500;
  margin-top: 6px; min-height: 18px;
}

/* Rules checklist */
.cp-rules {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 20px 0 24px;
}
.cp-rules-title {
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.cp-rule {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color 0.2s;
}
.rule-icon {
  font-size: 13px; width: 16px;
  text-align: center; flex-shrink: 0;
}

/* Submit button */
.cp-submit {
  width: 100%; justify-content: center;
  padding: 13px; font-size: 14px; font-weight: 600;
  transition: all 0.2s;
}
.cp-submit:disabled {
  opacity: 0.4; cursor: not-allowed; transform: none !important;
}

/* Info panel */
.cp-info-panel { display: flex; flex-direction: column; gap: 16px; }

.cp-info-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow-sm);
}
.cp-info-card-alt {
  background: linear-gradient(135deg, var(--teal-1), var(--teal-2));
  border: none;
}
.cp-info-icon { font-size: 24px; margin-bottom: 10px; }
.cp-info-title {
  font-size: 13px; font-weight: 700;
  color: var(--text-dark); margin-bottom: 12px;
}
.cp-info-card-alt .cp-info-title,
.cp-info-card-alt .cp-info-icon { color: #fff; }

.cp-info-list {
  list-style: none; padding: 0;
  display: flex; flex-direction: column; gap: 7px;
}
.cp-info-list li {
  font-size: 12px; color: var(--text-muted);
  padding-left: 14px; position: relative; line-height: 1.4;
}
.cp-info-list li::before {
  content: '·'; position: absolute; left: 0;
  color: var(--teal-3); font-weight: 700;
}

.cp-user-detail { display: flex; align-items: center; gap: 12px; }
.cp-user-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
}
.cp-user-name { font-size: 14px; font-weight: 700; color: #fff; }
.cp-user-role { font-size: 11px; color: rgba(255,255,255,0.65); margin-top: 2px; }

/* ─────────────────────────────────────────
   EMPTY STATE
───────────────────────────────────────── */
.empty-state { text-align: center; padding: 28px; color: var(--text-muted); font-size: 13px; }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 768px) {
  .content-body { padding: 16px; }
  .topbar { padding: 0 16px 0 56px; } /* leave space for hamburger */
  .form-row { grid-template-columns: 1fr; }
  .ministry-checkbox-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .search-input { width: 140px; }
  .search-input:focus { width: 160px; }

  /* Sidebar becomes a slide-in overlay */
  .sidebar {
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(.4,0,.2,1);
    box-shadow: 4px 0 24px rgba(0,0,0,0.18);
  }
  .sidebar.open {
    transform: translateX(0);
  }

  /* Backdrop */
  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 999;
  }
  .sidebar-backdrop.open {
    display: block;
  }

  /* Hamburger button */
  .sidebar-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 998;
    background: var(--teal-1);
    border: none;
    border-radius: 8px;
    width: 38px;
    height: 38px;
    padding: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  }
  .sidebar-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all .2s;
  }

  /* Close button inside sidebar */
  .sidebar-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
  }
  .sidebar-close-btn:hover { background: rgba(255,255,255,0.25); }

  /* Main content takes full width */
  .main-content { width: 100%; min-width: 0; }
}

/* Desktop — hide hamburger and close btn */
@media (min-width: 769px) {
  .sidebar-hamburger { display: none; }
  .sidebar-backdrop  { display: none; }
  .sidebar-close-btn { display: none; }
}

/* ─────────────────────────────────────────
   PROFILE PAGE
───────────────────────────────────────── */
.profile-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) { .profile-layout { grid-template-columns: 1fr; } }

/* ── Left column ── */
.profile-left { display: flex; flex-direction: column; gap: 20px; }

.profile-avatar-card {
  text-align: center;
  padding: 28px 20px 22px;
  margin-bottom: 0;
}
.pav-wrap {
  position: relative;
  width: 96px; height: 96px;
  margin: 0 auto 14px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid var(--border);
  box-shadow: var(--shadow-md);
}
.pav-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.pav-initials {
  width: 100%; height: 100%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 700; color: #fff;
}
.pav-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s;
  color: #fff; font-size: 12px; font-weight: 600;
}
.pav-wrap:hover .pav-overlay { opacity: 1; }
.pav-name    { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 2px; }
.pav-username { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.pav-badge   { margin-bottom: 10px; }
.pav-joined  { font-size: 11px; color: var(--text-muted); margin-top: 6px; }

/* Ministry list on left */
.profile-ministry-card { margin-bottom: 0; }
.pmin-list { padding: 6px 14px 12px; }
.pmin-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 6px; border-bottom: 1px solid var(--border-soft);
}
.pmin-row:last-child { border-bottom: none; }
.pmin-icon { font-size: 18px; flex-shrink: 0; }
.pmin-name  { font-size: 13px; font-weight: 500; color: var(--text-dark); }
.pmin-role  {
  font-size: 10px; font-weight: 600; padding: 2px 8px;
  border-radius: 20px; text-transform: capitalize; display: inline-block; margin-top: 2px;
}
.pmin-info { display: flex; flex-direction: column; }

/* ── Right column ── */
.profile-right { display: flex; flex-direction: column; gap: 20px; }

.profile-form { padding: 24px 28px 28px; }

.pf-section-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 14px; margin-top: 4px;
  padding-bottom: 6px; border-bottom: 1px solid var(--border-soft);
}

/* Photo upload area */
.photo-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px; text-align: center;
  cursor: pointer; transition: all 0.2s;
  background: var(--bg);
  margin-bottom: 14px;
}
.photo-upload-area:hover {
  border-color: var(--teal-3);
  background: rgba(0,201,177,0.04);
}
.pua-icon  { font-size: 28px; margin-bottom: 6px; }
.pua-text  { font-size: 13px; font-weight: 500; color: var(--text-mid); }
.pua-hint  { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.pua-selected { font-size: 12px; color: var(--teal-1); font-weight: 600; margin-top: 6px; }

/* Preview strip */
.photo-preview-strip {
  display: flex; align-items: center; gap: 14px;
  background: rgba(0,201,177,0.05);
  border: 1px solid rgba(0,201,177,0.2);
  border-radius: var(--radius); padding: 10px 14px;
  margin-bottom: 14px;
}
.photo-preview-strip img {
  width: 48px; height: 48px; object-fit: cover;
  border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--border);
}
.photo-preview-info { flex: 1; min-width: 0; }
.photo-preview-name { font-size: 13px; font-weight: 500; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo-preview-size { font-size: 11px; color: var(--text-muted); }
.photo-remove-btn {
  background: none; border: none; cursor: pointer;
  font-size: 12px; color: var(--danger); font-weight: 500;
  transition: color 0.15s; flex-shrink: 0;
}
.photo-remove-btn:hover { color: #8B0000; }

.profile-form-footer {
  display: flex; gap: 10px; align-items: center;
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--border-soft);
}

/* Account details card */
.profile-account-card { margin-bottom: 0; }
.pac-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; padding: 4px 0 8px;
}
.pac-item {
  padding: 14px 22px;
  border-bottom: 1px solid var(--border-soft);
}
.pac-item:nth-child(odd) { border-right: 1px solid var(--border-soft); }
.pac-item:nth-last-child(-n+2) { border-bottom: none; }
.pac-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 5px; }
.pac-value { font-size: 13px; font-weight: 500; color: var(--text-dark); }

@media (max-width: 600px) {
  .pac-grid { grid-template-columns: 1fr; }
  .pac-item:nth-child(odd) { border-right: none; }
  .pac-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--border-soft); }
  .pac-item:last-child { border-bottom: none; }
}

/* ─────────────────────────────────────────
   ANNOUNCEMENTS
───────────────────────────────────────── */

/* ── Topbar count bubble ── */
.ann-topbar-count {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gradient); color: #fff;
  font-size: 10px; font-weight: 700; margin-left: 5px;
}

/* ── Banner strip on ministry dashboard ── */
.ann-banner-strip {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  margin-bottom: 24px; overflow: hidden;
}
.ann-banner-label {
  padding: 12px 18px 10px; font-size: 12px; color: var(--text-muted);
  border-bottom: 1px solid var(--border-soft);
}
.ann-banner-item {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
  border-left: 3px solid transparent;
  transition: background 0.15s;
}
.ann-banner-item:hover { background: rgba(0,201,177,0.03); }
.ann-banner-normal  { border-left-color: var(--border); }
.ann-banner-info    { border-left-color: #3B82F6; background: rgba(59,130,246,0.03); }
.ann-banner-urgent  { border-left-color: #EF4444; background: rgba(239,68,68,0.03); }
.ann-banner-pinned  { background: rgba(0,201,177,0.04) !important; border-left-color: var(--teal-3) !important; }

.ann-banner-left { display: flex; align-items: flex-start; gap: 10px; flex: 1; min-width: 0; }
.ann-banner-pin  { font-size: 14px; flex-shrink: 0; }
.ann-banner-urgent-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #EF4444;
  flex-shrink: 0; margin-top: 5px;
}
.ann-banner-title { font-size: 13px; font-weight: 600; color: var(--text-dark); margin-bottom: 3px; }
.ann-banner-body  { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.ann-banner-date  { font-size: 11px; color: var(--text-muted); flex-shrink: 0; padding-top: 2px; }
.ann-banner-viewall {
  display: block; text-align: center; padding: 10px;
  font-size: 12px; font-weight: 600; color: var(--teal-1);
  transition: background 0.15s;
}
.ann-banner-viewall:hover { background: rgba(0,201,177,0.06); }

/* ── Full announcements page ── */
.ann-list { display: flex; flex-direction: column; gap: 16px; }

.ann-card {
  background: var(--white); border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  overflow: hidden; transition: box-shadow 0.2s;
}
.ann-card:hover { box-shadow: var(--shadow-md); }
.ann-priority-normal { border-left-color: #CBD5E1; }
.ann-priority-info   { border-left-color: #3B82F6; }
.ann-priority-urgent { border-left-color: #EF4444; }
.ann-pinned {
  border-left-color: var(--teal-3) !important;
  background: linear-gradient(to right, rgba(0,201,177,0.03), transparent 40%);
}
.ann-expired   { opacity: 0.55; }
.ann-scheduled { opacity: 0.75; }

.ann-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px 0; flex-wrap: wrap; gap: 8px;
}
.ann-header-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.ann-pin-badge {
  font-size: 11px; font-weight: 600;
  background: rgba(0,201,177,0.12); color: var(--teal-1);
  padding: 3px 9px; border-radius: 20px;
}
.ann-priority-badge {
  font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px;
}
.ann-badge-normal  { background: rgba(100,116,139,0.1); color: #64748B; }
.ann-badge-info    { background: rgba(59,130,246,0.1);  color: #2563EB; }
.ann-badge-urgent  { background: rgba(239,68,68,0.1);   color: #DC2626; }
.ann-status-badge  { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px; }
.ann-badge-expired   { background: rgba(107,114,128,0.1); color: #6B7280; }
.ann-badge-scheduled { background: rgba(245,158,11,0.1);  color: #D97706; }

.ann-actions { display: flex; gap: 4px; }
.ann-action-btn {
  width: 30px; height: 30px; border-radius: 7px; border: none;
  background: var(--bg); cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.ann-action-btn:hover { background: rgba(0,201,177,0.12); }
.ann-action-del:hover { background: rgba(220,38,38,0.1) !important; }

.ann-title {
  font-size: 17px; font-weight: 700; color: var(--text-dark);
  padding: 10px 18px 0;
}
.ann-image-wrap {
  padding: 12px 18px 0;
}
.ann-image {
  width: 100%; max-height: 320px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--border);
}
.ann-body {
  font-size: 14px; color: var(--text-mid); line-height: 1.65;
  padding: 10px 18px 0;
}
.ann-footer {
  padding: 12px 18px 14px; margin-top: 10px;
  border-top: 1px solid var(--border-soft);
}
.ann-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ann-author { display: flex; align-items: center; gap: 7px; }
.ann-author-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gradient);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.ann-dot     { color: var(--text-muted); }
.ann-date, .ann-expiry { font-size: 12px; color: var(--text-muted); }
.ann-expiry  { color: #D97706; }

/* Empty state */
.ann-empty {
  text-align: center; padding: 80px 20px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.ann-empty-icon  { font-size: 52px; margin-bottom: 14px; }
.ann-empty-title { font-size: 18px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.ann-empty-sub   { font-size: 13px; color: var(--text-muted); }

/* Modal textarea */
.form-textarea {
  min-height: 110px; resize: vertical;
}
.form-optional {
  font-size: 10px; font-weight: 400; color: var(--text-muted);
  text-transform: none; letter-spacing: 0;
}

/* Modal image preview */
.ann-modal-img-preview {
  width: 100%; max-height: 200px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--border);
  margin-top: 10px;
}

/* ─────────────────────────────────────────
   GLC MODULE
───────────────────────────────────────── */

/* Class grid */
.glc-class-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.glc-class-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px;
  transition: all 0.18s;
}
.glc-class-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.glc-class-header { display: flex; align-items: center; justify-content: space-between; }
.glc-class-status { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.glc-status-completed  { background: rgba(0,149,127,0.12); color: #00957F; }
.glc-status-inprogress { background: rgba(59,130,246,0.1); color: #2563EB; }
.glc-card-actions { display: flex; gap: 4px; }
.glc-class-name { font-size: 16px; font-weight: 700; color: var(--text-dark); text-decoration: none; }
.glc-class-name:hover { color: var(--teal-1); }
.glc-class-meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 8px; }
.glc-class-open-btn {
  display: inline-block; margin-top: 4px; padding: 8px 16px;
  background: var(--gradient); color: #fff; border-radius: 8px;
  font-size: 12px; font-weight: 600; text-align: center;
  transition: opacity 0.15s;
}
.glc-class-open-btn:hover { opacity: 0.88; }

/* Class detail banner */
.glc-detail-banner {
  border-radius: var(--radius-lg); padding: 22px 28px; margin-bottom: 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.glc-banner-inprogress { background: linear-gradient(135deg, #1E6BBA, #2563EB); }
.glc-banner-completed  { background: linear-gradient(135deg, #007A50, #00957F); }
.glc-banner-title  { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.glc-banner-sub    { font-size: 13px; color: rgba(255,255,255,0.7); }
.glc-banner-status { background: rgba(255,255,255,0.2); color: #fff; padding: 7px 16px; border-radius: 20px; font-size: 12px; font-weight: 600; border: 1px solid rgba(255,255,255,0.25); }

/* Book card */
.glc-book-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 16px;
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.glc-book-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; background: rgba(235,248,250,0.6);
  border-bottom: 1px solid var(--border-soft);
}
.glc-book-title  { font-size: 14px; font-weight: 700; color: var(--text-dark); }
.glc-book-actions { display: flex; align-items: center; gap: 6px; }

/* Session rows */
.glc-session-list { padding: 6px 0; }
.glc-session-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 18px; border-bottom: 1px solid var(--border-soft);
  gap: 12px; flex-wrap: wrap;
}
.glc-session-row:last-child { border-bottom: none; }
.glc-session-row:hover { background: rgba(0,201,177,0.03); }
.glc-session-left { flex: 1; min-width: 0; }
.glc-session-name { font-size: 13px; font-weight: 600; color: var(--text-dark); text-decoration: none; }
.glc-session-name:hover { color: var(--teal-1); }
.glc-session-meta { font-size: 11px; color: var(--text-muted); margin-top: 3px; display: flex; gap: 10px; }
.glc-session-right { display: flex; align-items: center; gap: 6px; }
.glc-session-empty { padding: 14px 18px; font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 12px; }

/* Reports */
.glc-report-tabs { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.glc-tab {
  padding: 8px 18px; border-radius: 8px; font-size: 13px; font-weight: 500;
  color: var(--text-mid); background: var(--white); border: 1.5px solid var(--border);
  transition: all 0.15s;
}
.glc-tab:hover { border-color: var(--teal-3); color: var(--teal-1); }
.glc-tab.active { background: var(--gradient); color: #fff; border-color: transparent; }

.glc-filter-bar { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }

/* Graduation summary stats */
.glc-grad-summary {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr));
  gap: 14px; margin-bottom: 24px;
}
.glc-grad-stat {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); text-align: center;
}
.glc-pct-bar-wrap { height: 5px; background: var(--border); border-radius: 4px; margin-bottom: 4px; overflow: hidden; width: 80px; }
.glc-pct-bar { height: 100%; border-radius: 4px; transition: width 0.3s; }

/* Certificate */
.cert-page {
  background: #fff; margin: 0 auto 40px;
  max-width: 750px; border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,80,100,0.13);
}
.cert-border {
  border: 6px double #0D7377; margin: 12px; border-radius: 6px; padding: 0;
}
.cert-inner {
  border: 1.5px solid #a8d5d7; margin: 10px; padding: 40px 50px;
  text-align: center; border-radius: 4px;
  background: linear-gradient(135deg, rgba(0,201,177,0.03), rgba(0,100,255,0.02));
}
.cert-top-ornament { color: #0D7377; font-size: 18px; letter-spacing: 14px; margin-bottom: 18px; opacity: 0.5; }
.cert-church { font-size: 13px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #0D7377; margin-bottom: 4px; }
.cert-presents { font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: #7A9EAA; margin-bottom: 10px; }
.cert-type { font-size: 28px; font-weight: 700; color: #0D2B35; letter-spacing: -0.02em; margin-bottom: 18px; }
.cert-to { font-size: 13px; color: #7A9EAA; margin-bottom: 10px; font-style: italic; }
.cert-name { font-size: 34px; font-weight: 700; color: #0D7377; margin-bottom: 16px; letter-spacing: -0.01em; }
.cert-divider { width: 120px; height: 2px; background: linear-gradient(to right, transparent, #0D7377, transparent); margin: 0 auto 18px; }
.cert-body { font-size: 14px; color: #2A4A5A; line-height: 1.8; margin-bottom: 12px; }
.cert-attendance { font-size: 12px; color: #7A9EAA; margin-bottom: 32px; }
.cert-date-line { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 10px; }
.cert-sig-block { flex: 1; text-align: center; }
.cert-sig-line { border-bottom: 1.5px solid #b0cdd0; margin-bottom: 8px; height: 32px; }
.cert-sig-label { font-size: 10px; color: #7A9EAA; letter-spacing: 0.08em; text-transform: uppercase; }
.cert-date-block { flex: 1; text-align: center; }
.cert-date-value { font-size: 13px; font-weight: 600; color: #0D2B35; margin-bottom: 8px; padding-top: 14px; }
.cert-bottom-ornament { font-size: 12px; color: #7A9EAA; margin-top: 24px; letter-spacing: 0.1em; font-style: italic; }

/* ─────────────────────────────────────────
   SESSION DETAIL — ATTENDANCE TOGGLE
───────────────────────────────────────── */
.glc-sess-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .glc-sess-grid { grid-template-columns: 1fr; }
}

.glc-checklist { display: flex; flex-direction: column; max-height: 520px; overflow-y: auto; }

.glc-check-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-bottom: 1px solid var(--border-soft);
  transition: background 0.15s;
}
.glc-check-row:hover { background: rgba(0,201,177,0.04); }
.glc-check-present  { background: rgba(0,201,177,0.06); }

.glc-check-label { display: flex; align-items: center; gap: 10px; cursor: pointer; flex: 1; }
.glc-check-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--border); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
  transition: all 0.2s;
}
.glc-check-avatar-on { background: var(--gradient); color: #fff; }
.glc-check-name  { font-size: 13px; font-weight: 600; color: var(--text-dark); }
.glc-check-sub   { font-size: 11px; color: var(--text-muted); }

.glc-toggle-btn {
  padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--border); background: var(--bg); color: var(--text-muted);
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.glc-toggle-btn:hover { border-color: var(--teal-3); color: var(--teal-1); }
.glc-toggle-on {
  background: var(--gradient); color: #fff;
  border-color: transparent;
}
.glc-toggle-on:hover { opacity: 0.88; }

/* ─────────────────────────────────────────
   ATTENDEE PROFILE
───────────────────────────────────────── */
.att-profile-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .att-profile-grid { grid-template-columns: 1fr; }
}

.att-profile-hero {
  display: flex; align-items: center; gap: 16px;
  padding: 20px; border-bottom: 1px solid var(--border-soft);
}
.att-profile-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gradient); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; flex-shrink: 0;
}
.att-profile-name  { font-size: 17px; font-weight: 700; color: var(--text-dark); }
.att-profile-since { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.att-profile-fields { padding: 12px 20px 16px; display: flex; flex-direction: column; gap: 10px; }
.att-field-label { font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }
.att-field-val   { font-size: 13px; font-weight: 500; color: var(--text-dark); }

.att-class-row { padding: 14px 20px; border-bottom: 1px solid var(--border-soft); }
.att-class-row:last-child { border-bottom: none; }
.att-class-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.att-class-name { font-size: 13px; font-weight: 600; color: var(--text-dark); }

.att-grad-badge { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px; }
.att-grad-yes { background: rgba(0,201,177,0.12); color: var(--teal-1); }
.att-grad-no  { background: rgba(100,116,139,0.1); color: #64748B; }

.att-progress-bar-wrap {
  height: 6px; background: var(--border-soft); border-radius: 3px; overflow: hidden; margin-bottom: 6px;
}
.att-progress-bar {
  height: 100%; background: var(--gradient); border-radius: 3px;
  transition: width 0.4s ease;
}
.att-class-meta  { font-size: 11px; color: var(--text-muted); }
.att-threshold   { color: #CBD5E1; }

/* ─────────────────────────────────────────
   ATTENDEE PROFILE
───────────────────────────────────────── */
.profile-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .profile-grid { grid-template-columns: 1fr; }
}
.att-avatar-lg {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: #fff;
  margin: 0 auto 14px;
}
.att-profile-name  { text-align:center; font-size:18px; font-weight:700; color:var(--text-dark); }
.att-profile-since { text-align:center; font-size:12px; color:var(--text-muted); margin-bottom:20px; }
.att-info-rows     { display:flex; flex-direction:column; gap:10px; }
.att-info-row      { display:flex; flex-direction:column; gap:2px; }
.att-info-label    { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; color:var(--text-muted); }
.att-info-val      { font-size:13px; color:var(--text-dark); }
.att-right-col     { display:flex; flex-direction:column; gap:0; }

.att-class-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--border-soft);
}
.att-class-row:last-child { border-bottom: none; }
.att-class-name  { font-size:14px; font-weight:600; color:var(--text-dark); margin-bottom:3px; }
.att-class-sub   { font-size:12px; color:var(--text-muted); margin-bottom:8px; }
.att-progress-bar-wrap {
  height: 6px; border-radius: 20px; background: var(--border);
  width: 200px; overflow: hidden;
}
.att-progress-bar { height: 100%; border-radius: 20px; transition: width .4s; }
.att-class-right  { text-align: right; flex-shrink: 0; margin-left: 20px; }
.att-pct          { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.att-pct-pass     { color: var(--teal-1); }
.att-pct-fail     { color: #F59E0B; }
.att-grad-badge   { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.att-grad-yes     { background: rgba(0,201,177,0.12); color: var(--teal-1); }
.att-grad-no      { background: rgba(245,158,11,0.1);  color: #D97706; }

/* ─────────────────────────────────────────
   SESSION DETAIL — TOGGLE + QR
───────────────────────────────────────── */
.sess-detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 1000px) {
  .sess-detail-grid { grid-template-columns: 1fr; }
}

.att-toggle-list { max-height: 480px; overflow-y: auto; }
.att-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-bottom: 1px solid var(--border-soft);
  transition: background .15s;
}
.att-toggle-row:hover   { background: var(--bg); }
.att-toggle-present     { background: rgba(0,201,177,0.04); }
.att-toggle-info        { display: flex; align-items: center; gap: 10px; }
.att-toggle-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.att-toggle-name    { font-size: 13px; font-weight: 600; color: var(--text-dark); }
.att-toggle-contact { font-size: 11px; color: var(--text-muted); }
.att-toggle-btn {
  font-size: 11px; font-weight: 700; padding: 5px 12px;
  border-radius: 20px; border: none; cursor: pointer; transition: all .15s;
  white-space: nowrap;
}
.att-toggle-on  { background: rgba(0,201,177,0.15); color: var(--teal-1); }
.att-toggle-off { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }
.att-toggle-on:hover  { background: rgba(0,201,177,0.25); }
.att-toggle-off:hover { background: var(--border); }

/* ─────────────────────────────────────────
   GLC — ATTENDEES + PROFILE + SESSION DETAIL
───────────────────────────────────────── */

/* Attendees list count badge */
.glc-att-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 22px; padding: 0 7px;
  border-radius: 20px; background: rgba(0,201,177,0.12);
  color: var(--teal-1); font-size: 12px; font-weight: 700;
}

/* Attendee profile grid */
.glc-profile-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .glc-profile-grid { grid-template-columns: 1fr; }
}

.glc-profile-info-card { padding: 24px; }
.glc-profile-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; color: #fff;
  margin: 0 auto 12px;
}
.glc-profile-name {
  text-align: center; font-size: 18px; font-weight: 700;
  color: var(--text-dark); margin-bottom: 18px;
}
.glc-profile-meta { display: flex; flex-direction: column; gap: 10px; }
.glc-profile-field {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border-soft);
}
.glc-pf-label { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }
.glc-pf-value { font-size: 13px; color: var(--text-dark); text-align: right; }

/* Class progress */
.glc-profile-section-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-muted);
  margin: 20px 0 12px; padding-top: 12px;
  border-top: 1px solid var(--border);
}
.glc-cp-row { margin-bottom: 14px; }
.glc-cp-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.glc-cp-name { font-size: 13px; font-weight: 600; color: var(--text-dark); }
.glc-cp-badge {
  font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px;
}
.glc-cp-graduated  { background: rgba(0,201,177,0.12); color: var(--teal-1); }
.glc-cp-inprogress { background: rgba(245,158,11,0.12); color: #D97706; }
.glc-progress-bar {
  height: 6px; background: var(--border); border-radius: 3px; overflow: hidden;
}
.glc-progress-fill {
  height: 100%; background: #D97706; border-radius: 3px; transition: width 0.4s;
}
.glc-progress-grad { background: var(--gradient); }
.glc-cp-sub { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* Class divider row in sessions table */
.glc-cls-divider-row td {
  background: rgba(0,201,177,0.05); padding: 7px 14px !important;
  border-top: 2px solid rgba(0,201,177,0.15) !important;
}
.glc-cls-divider-label {
  font-size: 11px; font-weight: 700; color: var(--teal-1);
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* Table link */
.table-link { color: var(--text-dark); text-decoration: none; }
.table-link:hover { color: var(--teal-1); }

/* Session detail grid */
.glc-session-detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 1000px) {
  .glc-session-detail-grid { grid-template-columns: 1fr; }
}

/* Manual attendance panel */
.glc-manual-list { max-height: 480px; overflow-y: auto; }
.glc-manual-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-bottom: 1px solid var(--border-soft);
  transition: background 0.15s;
}
.glc-manual-row:hover { background: rgba(0,201,177,0.03); }
.glc-manual-present { background: rgba(0,201,177,0.06) !important; }
.glc-manual-present:hover { background: rgba(0,201,177,0.1) !important; }

/* QR code URL display */
.glc-qr-url {
  font-size: 11px; color: var(--text-muted); word-break: break-all;
  margin-top: 10px; padding: 8px 12px;
  background: var(--bg); border-radius: 6px; border: 1px solid var(--border-soft);
}

/* ─────────────────────────────────────────
   GLC DASHBOARD STATS
───────────────────────────────────────── */
.glc-stats-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
@media (max-width: 1100px) { .glc-stats-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .glc-stats-row { grid-template-columns: repeat(2, 1fr); } }

.glc-stat-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 18px 16px; text-align: center;
  transition: box-shadow .2s, transform .2s;
}
.glc-stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.glc-stat-icon  { font-size: 24px; margin-bottom: 8px; }
.glc-stat-val   { font-size: 28px; font-weight: 800; color: var(--text-dark);
                  background: var(--gradient); -webkit-background-clip: text;
                  -webkit-text-fill-color: transparent; line-height: 1.1; }
.glc-stat-label { font-size: 11px; color: var(--text-muted); margin-top: 5px;
                  font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }

/* ─────────────────────────────────────────
   DUPLICATE DETECTION
───────────────────────────────────────── */
.dup-group-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  margin-bottom: 24px; overflow: hidden;
}
.dup-group-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px; background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.dup-group-label { font-size: 12px; font-weight: 700; color: var(--text-muted);
                   text-transform: uppercase; letter-spacing: .5px; }
.dup-group-count { font-size: 11px; color: var(--text-muted); }

.dup-cards-row {
  display: flex; gap: 0;
  overflow-x: auto;
}
.dup-att-card {
  flex: 1; min-width: 200px; padding: 20px 18px;
  border-right: 1px solid var(--border-soft);
  transition: background .2s;
  position: relative;
}
.dup-att-card:last-child { border-right: none; }
.dup-card-keeper  { background: rgba(0,201,177,0.05); border-top: 3px solid var(--teal-3) !important; }
.dup-card-discard { background: rgba(239,68,68,0.03); opacity: .75; }

.dup-keep-label {
  display: flex; align-items: center; gap: 7px; cursor: pointer;
  margin-bottom: 14px;
}
.dup-radio { accent-color: var(--teal-1); width: 15px; height: 15px; }
.dup-keep-text { font-size: 11px; font-weight: 700; color: var(--teal-1);
                 text-transform: uppercase; letter-spacing: .4px; }

.dup-att-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: #fff;
  margin: 0 auto 10px;
}
.dup-att-name   { text-align: center; font-size: 15px; font-weight: 700; color: var(--text-dark); }
.dup-att-id     { text-align: center; font-size: 11px; color: var(--text-muted); margin-bottom: 14px; }

.dup-att-details   { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.dup-detail-row    { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--text-mid); }
.dup-detail-label  { flex-shrink: 0; }

.dup-att-badge      { text-align: center; margin-bottom: 10px; }
.dup-sessions-badge {
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
  background: rgba(0,102,255,0.08); color: #2563EB;
}
.dup-view-link {
  display: block; text-align: center; font-size: 11px;
  color: var(--teal-1); font-weight: 600;
}

.dup-merge-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-top: 1px solid var(--border);
  flex-wrap: wrap; gap: 10px;
}
.dup-merge-note { font-size: 12px; color: var(--text-muted); margin: 0; }

/* ─────────────────────────────────────────
   IMPORT PAGE
───────────────────────────────────────── */
.import-step {
  display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 24px;
}
.import-step-num {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: var(--gradient); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; margin-top: 2px;
}
.import-step-body { flex: 1; }

.import-col-table { display: flex; flex-direction: column; gap: 0; }
.import-col-row {
  display: grid; grid-template-columns: 24px 110px 1fr;
  gap: 8px; padding: 7px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 12px; align-items: start;
}
.import-col-header {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .4px; color: var(--text-muted);
}
.import-col-a { color:#2563EB; font-weight:700; }
.import-col-b { color:#0D7377; font-weight:700; }
.import-col-c { color:#7C3AED; font-weight:700; }
.import-col-d { color:#D97706; font-weight:700; }
.import-col-note { color: var(--text-muted); font-size: 11px; line-height: 1.5; }

/* ─────────────────────────────────────────
   IMPORT PREVIEW
───────────────────────────────────────── */
.import-badge {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 600; padding: 4px 12px;
  border-radius: 20px;
}
.import-badge-new      { background: rgba(0,201,177,0.12); color: var(--teal-1); }
.import-badge-existing { background: rgba(59,130,246,0.1);  color: #2563EB; }
.import-badge-skip     { background: rgba(107,114,128,0.1); color: #6B7280; }

.import-row-new  { background: rgba(0,201,177,0.03); }
.import-row-skip { opacity: .55; }

.import-status-badge {
  font-size: 11px; font-weight: 700; padding: 3px 9px;
  border-radius: 20px; white-space: nowrap;
}
.import-status-new      { background: rgba(0,201,177,0.12); color: var(--teal-1); }
.import-status-existing { background: rgba(59,130,246,0.1);  color: #2563EB; }
.import-status-skip     { background: rgba(107,114,128,0.1); color: #6B7280; }

/* ─────────────────────────────────────────
   CERTIFICATE MINI PREVIEW
───────────────────────────────────────── */
.cert-preview-mini {
  position: relative; width: 100%; height: 90px;
  background: #EFF9FC; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--border);
}
.cert-mini-bg { position: absolute; inset: 0; }
.cert-mini-tri {
  position: absolute; width: 0; height: 0;
}
.cert-mini-tri-tl {
  left: 0; bottom: 0;
  border-left: 55px solid #1A8C9E;
  border-top: 90px solid transparent;
}
.cert-mini-tri-tr {
  right: 0; bottom: 0;
  border-right: 55px solid #1A8C9E;
  border-top: 90px solid transparent;
}
.cert-mini-body {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; height: 100%; gap: 4px;
}
.cert-mini-title { font-size: 9px; font-weight: 700; color: #1A2733; letter-spacing: .3px; }
.cert-mini-name  {
  font-size: 10px; font-weight: 800; color: #1A8C9E;
  border: 1px solid #1A8C9E; padding: 2px 14px; border-radius: 3px;
  background: white;
}
.cert-mini-class { font-size: 8px; color: #718096; }

/* ─────────────────────────────────────────
   E-SIGNATURE UPLOAD
───────────────────────────────────────── */
.esig-upload-area {
  display: flex; align-items: center; gap: 8px;
  border: 1.5px dashed var(--border); border-radius: 6px;
  padding: 8px 12px; cursor: pointer; transition: border-color .2s, background .2s;
  background: var(--white);
}
.esig-upload-area:hover { border-color: var(--teal-3); background: rgba(0,201,177,0.03); }
.esig-icon  { font-size: 14px; }
.esig-label { font-size: 12px; color: var(--text-muted); }

/* ─────────────────────────────────────────
   GRADUATION STATUS BADGES
───────────────────────────────────────── */
.grad-status-badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.grad-yes     { background: #e6f9f0; color: #1a8a5a; border: 1px solid #b2e8cf; }
.grad-pending { background: #fff8e6; color: #b07d00; border: 1px solid #f5d87a; }
.grad-no      { background: #f5f5f5; color: #999;    border: 1px solid #e0e0e0; }

.btn-ghost-sm {
  background: none; border: 1px solid var(--border); border-radius: 5px;
  padding: 2px 8px; font-size: 11px; color: var(--text-muted);
  cursor: pointer; transition: all .15s;
}
.btn-ghost-sm:hover { border-color: var(--teal-3); color: var(--teal-1); }
.grad-tag-btn { color: var(--teal-1); border-color: var(--teal-3); }
.grad-tag-btn:hover { background: var(--teal-3); color: #fff; }

.bar-graduated { background: linear-gradient(90deg, #1a8a5a, #00c9b1) !important; }

/* ── Graduation filter buttons (reports page) ── */
.grad-filter-btns {
  display: flex; gap: 6px; align-items: center;
}
.grad-filter-btn {
  padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--border); color: var(--text-muted);
  background: #fff; text-decoration: none; transition: all .15s;
  white-space: nowrap;
}
.grad-filter-btn:hover   { border-color: var(--teal-1); color: var(--teal-1); }
.grad-filter-btn.active  { background: var(--teal-1); color: #fff; border-color: var(--teal-1); }
.grad-filter-yes.active  { background: #1a8a5a; border-color: #1a8a5a; }
.grad-filter-no.active   { background: #DC2626; border-color: #DC2626; }

/* ── Print styles ── */
.print-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 6px; font-size: 0.82rem; font-weight: 600;
  border: 1px solid var(--border); background: #fff; color: #374151;
  cursor: pointer; transition: all .15s; text-decoration: none;
}
.print-btn:hover { border-color: var(--teal-1); color: var(--teal-1); background: #F0FDFC; }

@media print {
  .sidebar, .topbar, .report-tabs, .print-btn,
  .topbar-btn, .btn, .modal-overlay, .cal-nav-btn,
  .cal-today-btn, .flash-container { display: none !important; }
  .main-content { margin: 0 !important; padding: 0 !important; }
  .content-body { padding: 0 !important; }
  .card { box-shadow: none !important; border: 1px solid #ddd !important; break-inside: avoid; }
  .app-layout { display: block !important; }
  .print-section { display: block !important; }
  /* Hide all tabs except the one marked for printing */
  [id^="tab-"] { display: none !important; }
  .printing { display: block !important; }
  body { font-size: 12px; }
  .stats-row, .stats-grid { break-inside: avoid; }
}
