/* =======================================================================
   Digital Training Institute — CMS Design System
   Palette: ink navy + warm gold, on a warm paper surface.
   Display type: Bebas Neue (condensed caps, brand tie-in with the
   course landing pages). Body/data type: Manrope.
   Signature element: the "journey rail" — a vertical line of stage dots
   in the sidebar, echoing the real lead -> student -> certificate flow.
   ======================================================================= */

:root{
  --ink:        #14161f;
  --ink-2:      #1c2030;
  --ink-3:      #262c42;
  --paper:      #f6f4ee;
  --surface:    #ffffff;
  --line:       #e5e0d3;
  --line-soft:  #efeade;

  --gold:       #c8992f;
  --gold-dark:  #9c7420;
  --gold-soft:  #f5e6bd;

  --text:       #191b22;
  --muted:      #6c7086;
  --muted-2:    #9a9db0;

  --success:    #2f8f5b;
  --success-soft: #e2f3ea;
  --danger:     #c4433a;
  --danger-soft: #fbe9e7;
  --warn:       #c9791c;
  --warn-soft:  #fbecd6;
  --info:       #3568c8;
  --info-soft:  #e7edfb;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(20,22,31,.06);
  --shadow: 0 6px 20px rgba(20,22,31,.08);
  --shadow-lg: 0 20px 48px rgba(20,22,31,.16);

  --sidebar-w: 248px;
  --topbar-h: 64px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; }
body{
  margin:0;
  font-family:'Manrope', system-ui, sans-serif;
  background: var(--paper);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4{ margin: 0; font-weight: 700; letter-spacing: .01em; }
p{ margin: 0; }
a{ color: inherit; }
button{ font-family: inherit; }
ul{ margin:0; padding:0; list-style:none; }

.eyebrow{
  font-family:'Bebas Neue', sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted);
}
.display{
  font-family:'Bebas Neue', sans-serif;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-weight: 400;
}
.page-title{ font-size: 30px; line-height: 1; }
.section-title{ font-size: 20px; line-height: 1; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* =========================== App shell =========================== */
.app-shell{ display:flex; min-height:100vh; }

.sidebar{
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--ink);
  color: #eceaf6;
  display:flex;
  flex-direction: column;
  position: fixed;
  top:0; left:0; bottom:0;
  z-index: 40;
  transition: transform .25s ease;
}
.sidebar-brand{
  display:flex; align-items:center; gap:10px;
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-brand .mark{
  width:34px; height:34px; border-radius:8px;
  background: linear-gradient(155deg, var(--gold), var(--gold-dark));
  display:flex; align-items:center; justify-content:center;
  font-family:'Bebas Neue', sans-serif; font-size:18px; color: var(--ink);
  flex: none;
}
.sidebar-brand .name{
  font-family:'Bebas Neue', sans-serif;
  font-size: 18px; letter-spacing: .04em; line-height:1.15;
  text-transform: uppercase;
}
.sidebar-brand .name small{
  display:block; font-family:'Manrope',sans-serif; text-transform:none;
  letter-spacing:0; font-size:11px; color:#9a9db0; font-weight:500;
}

.nav-scroll{ flex:1; overflow-y:auto; padding: 14px 12px 12px; }
.nav-rail{ position:relative; padding-left: 18px; }
.nav-rail::before{
  content:"";
  position:absolute; left:5px; top:6px; bottom:6px; width:1px;
  background: rgba(255,255,255,.12);
}
.nav-item{
  position:relative;
  display:flex; align-items:center; gap:10px;
  padding: 9px 12px 9px 10px;
  margin: 2px 0;
  border-radius: 8px;
  color: #c7c8db;
  font-size: 13.5px; font-weight: 600;
  cursor:pointer;
  text-decoration:none;
}
.nav-item::before{
  content:"";
  position:absolute; left:-17px; top:50%; transform: translateY(-50%);
  width:9px; height:9px; border-radius:50%;
  background: var(--ink-3);
  border: 2px solid var(--ink);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12);
}
.nav-item:hover{ background: rgba(255,255,255,.06); color:#fff; }
.nav-item.active{ background: rgba(200,153,47,.14); color:#fff; }
.nav-item.active::before{ background: var(--gold); box-shadow: 0 0 0 3px rgba(200,153,47,.25); }
.nav-item .ic{ width:16px; text-align:center; opacity:.85; }
.nav-group-label{
  font-family:'Bebas Neue', sans-serif; font-size:11px; letter-spacing:.14em;
  color:#666a82; margin: 16px 0 4px 10px;
}
.sidebar-foot{
  padding: 14px 18px 18px; border-top: 1px solid rgba(255,255,255,.08);
  font-size: 12px; color:#7d8098;
}

.main{
  flex:1;
  margin-left: var(--sidebar-w);
  min-width:0;
  display:flex; flex-direction:column;
}
.topbar{
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display:flex; align-items:center; justify-content:space-between;
  padding: 0 22px;
  position: sticky; top:0; z-index: 30;
  gap: 16px;
}
.topbar-left{ display:flex; align-items:center; gap:14px; min-width:0; }
.burger{
  display:none; border:1px solid var(--line); background:var(--surface);
  border-radius:8px; width:36px; height:36px; cursor:pointer; color:var(--text);
}
.search-box{
  display:flex; align-items:center; gap:8px;
  background: var(--paper); border:1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; width: 300px; max-width: 40vw;
  color: var(--muted);
}
.search-box input{
  border:none; background:transparent; outline:none; font-size:13px;
  width:100%; color:var(--text);
}
.topbar-right{ display:flex; align-items:center; gap:14px; flex:none; }
.role-pill{
  font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:uppercase;
  background: var(--gold-soft); color: var(--gold-dark);
  padding: 4px 10px; border-radius: 999px;
}
.user-chip{
  display:flex; align-items:center; gap:10px; cursor:pointer;
  padding: 6px 8px; border-radius: 999px;
}
.user-chip:hover{ background: var(--paper); }
.avatar{
  width: 32px; height:32px; border-radius:50%;
  background: var(--ink); color:#fff; display:flex; align-items:center; justify-content:center;
  font-family:'Bebas Neue',sans-serif; font-size:14px; flex:none;
}
.user-chip .who{ line-height:1.2; }
.user-chip .who .n{ font-weight:700; font-size:13px; }
.user-chip .who .r{ font-size:11px; color:var(--muted); }

.content{ padding: 26px 30px 60px; flex:1; }
.content-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap: 16px; margin-bottom: 22px; flex-wrap: wrap;
}
.content-head .sub{ color:var(--muted); font-size:13px; margin-top:4px; }

/* =========================== Buttons =========================== */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border-radius: 8px; border: 1px solid transparent;
  padding: 9px 16px; font-size: 13.5px; font-weight: 700;
  cursor:pointer; white-space:nowrap; line-height:1;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{ background: var(--ink); color:#fff; }
.btn-primary:hover{ background: var(--ink-2); }
.btn-gold{ background: var(--gold); color: var(--ink); }
.btn-gold:hover{ background: var(--gold-dark); color:#fff; }
.btn-ghost{ background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover{ background: var(--paper); }
.btn-danger{ background: var(--danger-soft); color: var(--danger); }
.btn-danger:hover{ background: var(--danger); color:#fff; }
.btn-sm{ padding: 6px 11px; font-size:12.5px; border-radius:7px; }
.btn-icon{ padding: 8px; border-radius: 8px; }
.btn[disabled]{ opacity:.5; cursor:not-allowed; }

/* =========================== Cards / grid =========================== */
.card{
  background: var(--surface); border:1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.card-pad{ padding: 20px; }
.card-head{
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line-soft); gap:12px; flex-wrap:wrap;
}
.card-head h3{ font-size:15px; }
.card-body{ padding: 18px 20px; }

.stat-grid{
  display:grid; grid-template-columns: repeat(4, 1fr); gap:14px; margin-bottom: 18px;
}
.stat-card{
  background: var(--surface); border:1px solid var(--line);
  border-radius: var(--radius-lg); padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  position:relative; overflow:hidden;
}
.stat-card .label{ font-size:11.5px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; }
.stat-card .value{ font-family:'Bebas Neue',sans-serif; font-size:30px; margin-top:6px; letter-spacing:.01em; }
.stat-card .foot{ margin-top:6px; font-size:12px; color:var(--muted-2); }
.stat-card .bar{ position:absolute; left:0; top:0; bottom:0; width:4px; background: var(--gold); }
.stat-card.tone-success .bar{ background: var(--success); }
.stat-card.tone-danger .bar{ background: var(--danger); }
.stat-card.tone-info .bar{ background: var(--info); }

.grid-2{ display:grid; grid-template-columns: 1.4fr 1fr; gap:16px; }
.grid-2-even{ display:grid; grid-template-columns: 1fr 1fr; gap:16px; }
.stack{ display:flex; flex-direction:column; gap:16px; }

/* =========================== Tables =========================== */
.table-wrap{ overflow-x:auto; }
table.data{ width:100%; border-collapse: collapse; font-size:13.5px; }
table.data th{
  text-align:left; font-size:11px; text-transform:uppercase; letter-spacing:.05em;
  color: var(--muted); font-weight:700; padding: 10px 16px; border-bottom:1px solid var(--line);
  background: var(--paper); white-space:nowrap;
}
table.data td{
  padding: 12px 16px; border-bottom: 1px solid var(--line-soft); vertical-align:middle;
}
table.data tbody tr:hover{ background: var(--paper); }
table.data .num{ text-align:right; font-variant-numeric: tabular-nums; }
.row-actions{ display:flex; gap:6px; justify-content:flex-end; }
.cell-main{ font-weight:700; }
.cell-sub{ font-size:12px; color:var(--muted); margin-top:2px; }

/* =========================== Badges =========================== */
.badge{
  display:inline-flex; align-items:center; gap:5px;
  font-size:11px; font-weight:700; padding: 4px 9px; border-radius:999px;
  text-transform:capitalize; white-space:nowrap;
}
.badge::before{ content:""; width:6px; height:6px; border-radius:50%; background:currentColor; }
.badge-gray{ background:#eef0f4; color:#616580; }
.badge-gold{ background: var(--gold-soft); color: var(--gold-dark); }
.badge-success{ background: var(--success-soft); color: var(--success); }
.badge-danger{ background: var(--danger-soft); color: var(--danger); }
.badge-warn{ background: var(--warn-soft); color: var(--warn); }
.badge-info{ background: var(--info-soft); color: var(--info); }

/* =========================== Filters / toolbar =========================== */
.toolbar{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:16px;
}
.toolbar .spacer{ flex:1; }
.field-input, select.field-input, textarea.field-input{
  border:1px solid var(--line); background: var(--surface); border-radius:8px;
  padding: 9px 12px; font-size:13.5px; font-family:inherit; color:var(--text);
  width:100%;
}
textarea.field-input{ resize:vertical; min-height:80px; }
.field-input:focus{ outline:none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,153,47,.15); }
.filter-input{ min-width:160px; }

/* =========================== Forms =========================== */
.form-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:14px 16px; }
.form-grid.cols-1{ grid-template-columns: 1fr; }
.form-grid.cols-3{ grid-template-columns: 1fr 1fr 1fr; }
.field{ display:flex; flex-direction:column; gap:6px; }
.field.span-2{ grid-column: span 2; }
.field label{ font-size:12.5px; font-weight:700; color: var(--text); }
.field .hint{ font-size:11.5px; color: var(--muted); }
.form-actions{
  display:flex; justify-content:flex-end; gap:10px; margin-top: 20px;
  padding-top:16px; border-top:1px solid var(--line-soft);
}

/* =========================== Modal =========================== */
.modal-overlay{
  position:fixed; inset:0; background: rgba(20,22,31,.5);
  display:flex; align-items:flex-start; justify-content:center;
  padding: 40px 20px; overflow-y:auto; z-index:100;
}
.modal{
  background: var(--surface); border-radius: var(--radius-lg);
  width: 100%; max-width: 640px; box-shadow: var(--shadow-lg);
  animation: modal-in .16s ease;
}
.modal.modal-lg{ max-width: 900px; }
.modal.modal-sm{ max-width: 420px; }
@keyframes modal-in{ from{ opacity:0; transform: translateY(8px);} to{opacity:1; transform:translateY(0);} }
.modal-head{
  display:flex; align-items:center; justify-content:space-between;
  padding: 18px 22px; border-bottom:1px solid var(--line-soft);
}
.modal-head h3{ font-size:17px; }
.modal-close{
  background:none; border:none; cursor:pointer; color:var(--muted);
  width:30px; height:30px; border-radius:8px; font-size:16px;
}
.modal-close:hover{ background: var(--paper); color:var(--text); }
.modal-body{ padding: 20px 22px; max-height: 72vh; overflow-y:auto; }

/* =========================== Tabs =========================== */
.tabs{ display:flex; gap:4px; border-bottom:1px solid var(--line); margin-bottom:18px; flex-wrap:wrap; }
.tab{
  padding: 10px 16px; font-size:13px; font-weight:700; color:var(--muted);
  cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-1px;
}
.tab:hover{ color:var(--text); }
.tab.active{ color: var(--ink); border-color: var(--gold); }

/* =========================== Stepper (onboarding wizard) =========================== */
.stepper{ display:flex; align-items:center; margin-bottom: 24px; flex-wrap:wrap; gap: 4px; }
.step{ display:flex; align-items:center; gap:8px; color: var(--muted-2); }
.step .dot{
  width:26px; height:26px; border-radius:50%; background: var(--paper); border:1.5px solid var(--line);
  display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:800; flex:none;
}
.step.done .dot{ background: var(--success); border-color: var(--success); color:#fff; }
.step.active .dot{ background: var(--gold); border-color: var(--gold); color:var(--ink); }
.step.active .label, .step.done .label{ color: var(--text); }
.step .label{ font-size:12.5px; font-weight:700; white-space:nowrap; }
.step-line{ width: 26px; height:1px; background: var(--line); margin: 0 4px; }

/* =========================== Misc =========================== */
.empty-state{
  text-align:center; padding: 54px 20px; color: var(--muted);
}
.empty-state .glyph{ font-size:30px; margin-bottom:10px; }
.empty-state .title{ font-weight:700; color:var(--text); margin-bottom:4px; }

.loading-row{ padding: 40px; text-align:center; color: var(--muted); font-size:13px; }
.divider{ height:1px; background: var(--line-soft); margin: 18px 0; }

.toast-stack{
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  display:flex; flex-direction:column; gap:8px; align-items:flex-end;
}
.toast{
  background: var(--ink); color:#fff; padding: 11px 16px; border-radius: 9px;
  font-size:13px; font-weight:600; box-shadow: var(--shadow-lg);
  animation: toast-in .18s ease; max-width: 340px;
}
.toast.success{ background: var(--success); }
.toast.error{ background: var(--danger); }
@keyframes toast-in{ from{ opacity:0; transform: translateY(6px);} to{opacity:1; transform:translateY(0);} }

.progress-track{ height:8px; border-radius:999px; background: var(--line-soft); overflow:hidden; }
.progress-fill{ height:100%; background: linear-gradient(90deg, var(--gold), var(--gold-dark)); }

.chart-box{ position:relative; height: 240px; }
.chart-box.small{ height: 190px; }

.list-clean li{ display:flex; align-items:center; justify-content:space-between; padding: 10px 0; border-bottom:1px solid var(--line-soft); }
.list-clean li:last-child{ border-bottom:none; }

.kv{ display:grid; grid-template-columns: 140px 1fr; gap: 8px 14px; font-size:13.5px; }
.kv dt{ color: var(--muted); font-weight:600; }
.kv dd{ margin:0; font-weight:600; }

.link-btn{ background:none; border:none; color: var(--gold-dark); font-weight:700; cursor:pointer; padding:0; font-size:inherit; }
.link-btn:hover{ text-decoration: underline; }

.text-muted{ color: var(--muted); }
.text-danger{ color: var(--danger); }
.text-success{ color: var(--success); }
.mt-0{ margin-top:0; }

/* =========================== Responsive =========================== */
@media (max-width: 1080px){
  .stat-grid{ grid-template-columns: repeat(2,1fr); }
  .grid-2{ grid-template-columns: 1fr; }
}
@media (max-width: 900px){
  .sidebar{ transform: translateX(-100%); }
  .sidebar.open{ transform: translateX(0); }
  .main{ margin-left:0; }
  .burger{ display:inline-flex; align-items:center; justify-content:center; }
  .search-box{ display:none; }
}
@media (max-width: 620px){
  .stat-grid{ grid-template-columns: 1fr 1fr; }
  .form-grid, .form-grid.cols-3{ grid-template-columns: 1fr; }
  .field.span-2{ grid-column: span 1; }
  .content{ padding: 18px 16px 48px; }
}

/* =========================== Auth pages (login/verify) =========================== */
.auth-screen{
  min-height:100vh; display:flex; align-items:center; justify-content:center;
  background: var(--ink);
  background-image: radial-gradient(circle at 15% 20%, rgba(200,153,47,.18), transparent 40%),
                     radial-gradient(circle at 85% 80%, rgba(200,153,47,.12), transparent 45%);
  padding: 24px;
}
.auth-card{
  width:100%; max-width: 400px; background: var(--surface);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 32px 30px;
}
.auth-brand{ display:flex; align-items:center; gap:12px; margin-bottom: 22px; }
.auth-brand .mark{
  width:42px; height:42px; border-radius:10px;
  background: linear-gradient(155deg, var(--gold), var(--gold-dark));
  display:flex; align-items:center; justify-content:center;
  font-family:'Bebas Neue',sans-serif; font-size:22px; color: var(--ink); flex:none;
}
.auth-brand .t{ font-family:'Bebas Neue',sans-serif; font-size:20px; letter-spacing:.03em; text-transform:uppercase; }
.auth-brand .t small{ display:block; font-family:'Manrope',sans-serif; text-transform:none; font-size:11.5px; color:var(--muted); font-weight:600; letter-spacing:0; }
.auth-error{
  background: var(--danger-soft); color: var(--danger); border-radius:8px;
  padding: 10px 12px; font-size:13px; font-weight:600; margin-bottom:14px; display:none;
}
.auth-foot{ margin-top:18px; font-size:12px; color: var(--muted-2); text-align:center; }

.cert-frame{
  background: var(--surface); border:6px solid var(--ink); border-radius: 4px;
  padding: 44px 40px; text-align:center; position:relative;
}
.cert-frame::before{
  content:""; position:absolute; inset:10px; border:1px solid var(--gold); pointer-events:none;
}
.cert-frame .cert-eyebrow{ letter-spacing:.2em; }
.cert-frame .cert-name{ font-family:'Bebas Neue',sans-serif; font-size:38px; margin:14px 0 6px; }
.cert-frame .cert-course{ font-size:16px; font-weight:700; margin-bottom:18px; }
.cert-frame .cert-meta{ display:flex; justify-content:center; gap:26px; font-size:12.5px; color:var(--muted); margin-top:22px; flex-wrap:wrap; }

/* =========================== Autocomplete / picker =========================== */
.autocomplete{ position:relative; }
.autocomplete-list{
  position:absolute; left:0; right:0; top:calc(100% + 4px); z-index: 60;
  background: var(--surface); border:1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); max-height: 220px; overflow-y:auto;
}
.autocomplete-item{ padding: 9px 12px; cursor:pointer; font-size:13px; border-bottom:1px solid var(--line-soft); }
.autocomplete-item:last-child{ border-bottom:none; }
.autocomplete-item:hover, .autocomplete-item.active{ background: var(--paper); }
.autocomplete-item .sub{ font-size:11.5px; color:var(--muted); margin-top:1px; }
.picked-chip{
  display:inline-flex; align-items:center; gap:8px; background: var(--gold-soft); color: var(--gold-dark);
  padding: 8px 12px; border-radius: 8px; font-weight:700; font-size:13px; margin-top:6px;
}
.picked-chip button{ background:none; border:none; color: var(--gold-dark); cursor:pointer; font-size:14px; line-height:1; }

/* =========================== Document rows / upload =========================== */
.doc-row{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding: 11px 14px; border:1px solid var(--line); border-radius: var(--radius); margin-bottom:8px;
  background: var(--surface);
}
.doc-row .info{ display:flex; align-items:center; gap:10px; min-width:0; }
.doc-row .ic-box{
  width:34px; height:34px; border-radius:8px; background: var(--paper); color: var(--gold-dark);
  display:flex; align-items:center; justify-content:center; flex:none;
}
.doc-row .name{ font-weight:700; font-size:13px; }
.doc-row .meta{ font-size:11.5px; color:var(--muted); }
.upload-row{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-top:6px; }
.upload-row select{ max-width:220px; }

/* =========================== Wizard footer / steps content =========================== */
.wizard-body{ min-height: 260px; }
.wizard-foot{
  display:flex; justify-content:space-between; align-items:center; margin-top:22px;
  padding-top:16px; border-top:1px solid var(--line-soft);
}
.summary-block{ margin-bottom:18px; }
.summary-block h4{ font-size:12.5px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); margin-bottom:8px; }

/* =========================== Spinner =========================== */
.spinner{
  width:14px; height:14px; border-radius:50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color:#fff;
  animation: spin .7s linear infinite; display:inline-block;
}
.btn-ghost .spinner, .btn-danger .spinner{ border-color: rgba(20,22,31,.2); border-top-color: var(--ink); }
@keyframes spin{ to{ transform: rotate(360deg); } }

/* =========================== Attendance marking =========================== */
.attend-toggle{ display:inline-flex; border:1px solid var(--line); border-radius:8px; overflow:hidden; }
.attend-btn{
  border:none; background: var(--surface); color: var(--muted); font-size:12.5px; font-weight:700;
  padding: 8px 14px; cursor:pointer; border-right:1px solid var(--line); transition: background .12s ease, color .12s ease;
}
.attend-btn:last-child{ border-right:none; }
.attend-btn:hover{ background: var(--paper); color: var(--text); }
.attend-btn.present.active{ background: var(--success); color:#fff; }
.attend-btn.late.active{ background: var(--warn); color:#fff; }
.attend-btn.absent.active{ background: var(--danger); color:#fff; }

/* =========================== Checkbox rows (instructor assign, etc) =========================== */
.check-row{
  display:flex; align-items:center; gap:10px; padding:9px 10px; border-radius:8px; cursor:pointer; font-size:13.5px;
}
.check-row:hover{ background: var(--paper); }
.check-row input[type=checkbox]{ width:16px; height:16px; accent-color: var(--gold); flex:none; }
.check-row .cell-sub{ margin-left:auto; }

/* =========================== Profile header =========================== */
.profile-head{
  display:flex; align-items:center; gap:16px; margin-bottom:20px; flex-wrap:wrap;
}
.profile-head .avatar-lg{
  width:56px; height:56px; border-radius:14px; background: var(--ink); color:#fff;
  display:flex; align-items:center; justify-content:center; font-family:'Bebas Neue',sans-serif; font-size:22px; flex:none;
}
.profile-head .id-line{ color:var(--muted); font-size:12.5px; margin-top:2px; }
.profile-actions{ display:flex; gap:8px; margin-left:auto; flex-wrap:wrap; }

.fee-bar-row{ display:flex; justify-content:space-between; font-size:12.5px; color:var(--muted); margin-bottom:6px; }