/* ─── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  --navy:       #1B2A5E;
  --navy-dark:  #0F1F4E;
  --navy-hover: #243570;
  --blue:       #2563EB;
  --blue-light: #3B82F6;
  --blue-50:    #EFF6FF;
  --blue-100:   #DBEAFE;
  --bg:         #F8FAFC;
  --card:       #FFFFFF;
  --border:     #E2E8F0;
  --text-1:     #1E293B;
  --text-2:     #64748B;
  --text-3:     #94A3B8;
  --green:      #22C55E;
  --green-bg:   #DCFCE7;
  --green-text: #16A34A;
  --orange:     #F59E0B;
  --orange-bg:  #FEF3C7;
  --orange-text:#D97706;
  --red:        #EF4444;
  --red-bg:     #FEE2E2;
  --red-text:   #DC2626;
  --purple:     #8B5CF6;
  --purple-bg:  #EDE9FE;
  --purple-text:#7C3AED;
  --teal:       #0891B2;
  --sidebar-w:  220px;
  --topbar-h:   60px;
  --radius:     10px;
  --shadow:     0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
}

/* ─── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; font-size: 14px; color: var(--text-1); background: var(--bg); }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
svg { display: block; flex-shrink: 0; }

/* ─── SCREEN ROUTER ─────────────────────────────────────────── */
.screen { display: none; }
.screen.active { display: flex; }

/* ─── SIDEBAR ────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  position: relative; /* FIX: was `fixed`, which conflicted with the
                          inline position:relative override used on every
                          screen and caused inconsistent offsets. The
                          sidebar is meant to flow normally inside
                          .full-screen-layout (display:flex). */
  top: 0; left: 0;
  z-index: 100;
  overflow-y: auto;
  flex-shrink: 0;
}
.sidebar-logo {
  padding: 20px 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  width: 36px; height: 36px;
  background: var(--blue);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-text { color: #fff; }
.logo-text strong { display: block; font-size: 14px; font-weight: 800; letter-spacing: 0.05em; }
.logo-text span { font-size: 9px; font-weight: 400; letter-spacing: 0.08em; opacity: 0.65; text-transform: uppercase; }
.nav { flex: 1; padding: 12px 0; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border-radius: 0;
}
.nav-item:hover { background: var(--navy-hover); color: #fff; }
.nav-item.active { background: var(--blue); color: #fff; }
.nav-icon { width: 18px; height: 18px; opacity: 0.85; flex-shrink: 0; }
.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; gap: 10px; align-items: flex-start;
}
.sidebar-footer-icon { width: 20px; height: 20px; flex-shrink: 0; color: rgba(255,255,255,0.4); margin-top: 2px; }
.sidebar-footer p { font-size: 11px; color: rgba(255,255,255,0.45); line-height: 1.5; }
.sidebar-footer strong { color: rgba(255,255,255,0.7); font-weight: 600; }

/* ─── APP SHELL ──────────────────────────────────────────────── */
.app-shell {
  margin-left: 0; /* FIX: sidebar is in-flow (flex item, position:relative),
                     so no extra offset is needed here. The previous
                     margin-left: var(--sidebar-w) double-counted the
                     220px sidebar width, creating a large gap between
                     the sidebar and the page content. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ─── TOPBAR ─────────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-2);
  flex: 1;
}
.breadcrumb .crumb-active { color: var(--text-1); font-weight: 600; }
.breadcrumb-sep { color: var(--text-3); }
.company-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-1);
  font-weight: 500;
  cursor: pointer;
}
.topbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--text-3);
  min-width: 200px;
}
.notif-btn {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.notif-badge {
  position: absolute;
  top: -2px; right: -2px;
  width: 16px; height: 16px;
  background: var(--red);
  border-radius: 50%;
  font-size: 9px;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.user-info strong { display: block; font-size: 13px; font-weight: 600; }
.user-info span { font-size: 11px; color: var(--text-2); }

/* ─── PAGE CONTENT ───────────────────────────────────────────── */
.page-content { padding: 24px; flex: 1; }
.page-header { margin-bottom: 20px; }
.page-title { font-size: 22px; font-weight: 700; color: var(--text-1); }
.page-subtitle { font-size: 13px; color: var(--text-2); margin-top: 3px; }

/* ─── STAT CARDS ─────────────────────────────────────────────── */
.stat-row { display: grid; gap: 16px; margin-bottom: 20px; }
.stat-row-5 { grid-template-columns: repeat(5, 1fr); }
.stat-row-4 { grid-template-columns: repeat(4, 1fr); }
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.stat-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-icon.blue   { background: #EFF6FF; color: var(--blue); }
.stat-icon.green  { background: var(--green-bg); color: var(--green-text); }
.stat-icon.orange { background: var(--orange-bg); color: var(--orange-text); }
.stat-icon.red    { background: var(--red-bg); color: var(--red-text); }
.stat-icon.purple { background: var(--purple-bg); color: var(--purple-text); }
.stat-num { font-size: 28px; font-weight: 700; line-height: 1.1; color: var(--text-1); }
.stat-label { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.stat-sub { font-size: 12px; margin-top: 4px; }
.stat-sub.green  { color: var(--green-text); }
.stat-sub.orange { color: var(--orange-text); }
.stat-sub.red    { color: var(--red-text); }

/* ─── CARDS ──────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-title { font-size: 15px; font-weight: 600; }
.card-link { font-size: 13px; color: var(--blue); font-weight: 500; }
.card-body { padding: 16px 20px; }

/* ─── TABLES ─────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  background: var(--bg);
  padding: 10px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody tr { border-bottom: 1px solid var(--border); transition: background 0.1s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: #F8FAFC; }
tbody td { padding: 12px 16px; font-size: 13px; color: var(--text-1); }
.td-muted { color: var(--text-2); }
.td-link { color: var(--blue); font-weight: 500; cursor: pointer; }

/* ─── BADGES ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-green   { background: var(--green-bg);  color: var(--green-text); }
.badge-orange  { background: var(--orange-bg); color: var(--orange-text); }
.badge-red     { background: var(--red-bg);    color: var(--red-text); }
.badge-purple  { background: var(--purple-bg); color: var(--purple-text); }
.badge-blue    { background: var(--blue-100);  color: #1D4ED8; }
.badge-gray    { background: #F1F5F9; color: #64748B; }

.days-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}
.days-red    { background: var(--red-bg);    color: var(--red-text); }
.days-orange { background: var(--orange-bg); color: var(--orange-text); }
.days-amber  { background: #FEF9C3; color: #92400E; }
.days-green  { background: var(--green-bg);  color: var(--green-text); }

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  transition: opacity 0.15s, background 0.15s;
}
.btn:hover { opacity: 0.88; }
.btn-primary  { background: var(--blue); color: #fff; }
.btn-outline  { background: transparent; color: var(--text-1); border: 1px solid var(--border); }
.btn-danger   { background: var(--red-bg); color: var(--red-text); border: 1px solid #FECACA; }
.btn-success  { background: var(--green-bg); color: var(--green-text); border: 1px solid #BBF7D0; }
.btn-sm { padding: 5px 12px; font-size: 12px; }

/* ─── FORM ELEMENTS ──────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-1);
  margin-bottom: 6px;
}
.form-label .req { color: var(--red); }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 13px;
  color: var(--text-1);
  background: var(--card);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-3); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.form-textarea { resize: vertical; min-height: 80px; }
.input-icon-wrap { position: relative; }
.input-icon-wrap .form-input { padding-left: 36px; }
.input-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-3); width: 16px; height: 16px; }

/* ─── PAGINATION ─────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}
.pag-info { font-size: 13px; color: var(--text-2); flex: 1; }
.pag-btn {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--card);
  cursor: pointer;
  transition: all 0.1s;
}
.pag-btn:hover { background: var(--bg); color: var(--text-1); }
.pag-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ─── NDT METHOD ICONS ───────────────────────────────────────── */
.method-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
}
.method-dot { width: 8px; height: 8px; border-radius: 50%; }
.m-ut  .method-dot { background: var(--blue); }
.m-rt  .method-dot { background: var(--green-text); }
.m-mt  .method-dot { background: var(--purple); }
.m-pt  .method-dot { background: #EA580C; }
.m-ect .method-dot { background: var(--teal); }
.m-ut  { color: var(--blue); }
.m-rt  { color: var(--green-text); }
.m-mt  { color: var(--purple); }
.m-pt  { color: #EA580C; }
.m-ect { color: var(--teal); }

/* ─── CHECK ICONS ────────────────────────────────────────────── */
.check-yes { color: var(--green-text); font-size: 16px; }
.check-no  { color: #CBD5E1; font-size: 16px; }

/* ─── FILTERS ROW ────────────────────────────────────────────── */
.filters-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.filter-select {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 13px;
  color: var(--text-1);
  background: var(--card);
  cursor: pointer;
  outline: none;
  min-width: 130px;
}
.filter-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--card);
  font-size: 13px;
  flex: 1;
  max-width: 220px;
}
.filter-search input { border: none; outline: none; background: transparent; color: var(--text-1); width: 100%; }
.filter-search input::placeholder { color: var(--text-3); }
.btn-reset { color: var(--text-2); font-size: 13px; display: flex; align-items: center; gap: 4px; background: none; border: none; cursor: pointer; }

/* ─── EXPORT BTNS ────────────────────────────────────────────── */
.export-row { display: flex; gap: 8px; align-items: center; }

/* ─── GRID LAYOUTS ───────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-3-right { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.col-span-2 { grid-column: span 2; }

/* ─── WORKFLOW STEPS ─────────────────────────────────────────── */
.workflow-steps { display: flex; flex-direction: column; gap: 0; }
.wf-step { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; position: relative; }
.wf-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 15px; top: 40px;
  width: 2px; bottom: 0;
  background: var(--border);
}
.wf-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
  z-index: 1;
  position: relative;
}
.wf-num.done    { background: var(--blue); color: #fff; }
.wf-num.pending { background: var(--border); color: var(--text-2); }
.wf-num.active  { background: var(--orange-bg); color: var(--orange-text); border: 2px solid var(--orange); }
.wf-title { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.wf-desc  { font-size: 12px; color: var(--text-2); }
.wf-status { margin-left: auto; flex-shrink: 0; }

/* ─── DONUT CHART (CSS) ──────────────────────────────────────── */
.donut-wrap { display: flex; align-items: center; gap: 20px; }
.donut-svg { flex-shrink: 0; }
.donut-legend { display: flex; flex-direction: column; gap: 8px; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.legend-label { color: var(--text-2); }
.legend-pct { font-weight: 700; color: var(--text-1); }
.legend-count { color: var(--text-2); font-size: 12px; }

/* ─── CALENDAR SPECIFIC ──────────────────────────────────────── */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.cal-header-cell { background: var(--bg); padding: 8px; text-align: center; font-size: 12px; font-weight: 600; color: var(--text-2); }
.cal-cell { background: var(--card); padding: 6px; min-height: 90px; }
.cal-cell.other-month .cal-day { color: var(--text-3); }
.cal-day { font-size: 12px; font-weight: 500; margin-bottom: 4px; }
.cal-event { font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 4px; margin-bottom: 2px; line-height: 1.4; }
.cal-event.training { background: #DBEAFE; color: #1D4ED8; }
.cal-event.training-alt { background: #EDE9FE; color: #7C3AED; }

/* ─── LOGIN SPECIFIC ─────────────────────────────────────────── */
.login-screen {
  min-height: 100vh;
  background: linear-gradient(135deg, #0F1F4E 0%, #1B2A5E 50%, #243570 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}
.login-bg-pattern {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 40px);
  pointer-events: none;
}
.login-card {
  background: rgba(255,255,255,0.97);
  border-radius: 18px;
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
}
.login-logo { text-align: center; margin-bottom: 24px; }
.login-logo .logo-hex {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.login-title { font-size: 22px; font-weight: 700; color: var(--text-1); text-align: center; }
.login-sub   { font-size: 13px; color: var(--text-2); text-align: center; margin-top: 4px; margin-bottom: 28px; }
.login-footer-bar {
  background: var(--navy-dark);
  margin-top: 32px;
  padding: 28px 40px;
  width: 100%;
  max-width: 900px;
  border-radius: 14px;
  display: flex; gap: 32px; justify-content: center;
}
.login-footer-item { display: flex; gap: 12px; align-items: flex-start; flex: 1; }
.login-footer-item strong { display: block; font-size: 13px; color: rgba(255,255,255,0.9); font-weight: 600; }
.login-footer-item p { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 3px; }

/* ─── HEXAGON FLOATERS ───────────────────────────────────────── */
.hex-float {
  position: absolute;
  width: 90px; height: 90px;
  background: rgba(255,255,255,0.06);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 9px; font-weight: 600; letter-spacing: 0.05em; text-align: center; gap: 6px;
}

/* ─── QUICK ACTIONS ──────────────────────────────────────────── */
.quick-actions { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 20px; }
.qa-btn {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-1);
  text-align: center;
}
.qa-btn:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
.qa-icon { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }

/* ─── TABS ────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tab {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.tab:hover { color: var(--text-1); }
.tab.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }

/* ─── FILTER CHIPS ───────────────────────────────────────────── */
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  color: var(--text-2);
  background: var(--card);
  transition: all 0.1s;
}
.chip.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ─── QUERY CONVERSATION ─────────────────────────────────────── */
.chat-bubble {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.chat-bubble.received { background: #EFF6FF; border-color: #BFDBFE; }
.chat-meta { font-size: 11px; color: var(--text-2); margin-bottom: 4px; display: flex; justify-content: space-between; }
.chat-meta strong { color: var(--text-1); }
.chat-text { font-size: 13px; }

/* ─── CERT TEMPLATE ──────────────────────────────────────────── */
.cert-preview {
  border: 3px solid #C9A84C;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  background: linear-gradient(135deg, #FFFBF0 0%, #FFF8E1 100%);
  box-shadow: inset 0 0 30px rgba(201,168,76,0.1);
}
.cert-preview .cert-logo { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: var(--navy); margin-bottom: 6px; }
.cert-preview h3 { font-size: 14px; font-weight: 800; letter-spacing: 0.06em; color: var(--navy); margin-bottom: 10px; border-bottom: 1px solid #C9A84C; padding-bottom: 10px; }
.cert-preview p { font-size: 11px; color: var(--text-2); line-height: 1.6; }
.cert-preview .cert-placeholder { background: rgba(201,168,76,0.15); border-radius: 4px; padding: 1px 6px; font-weight: 600; color: #92400E; font-size: 10px; }
.cert-meta-row { display: flex; justify-content: space-between; margin-top: 12px; font-size: 10px; color: var(--text-2); }
.cert-sig { margin-top: 8px; border-top: 1px solid #C9A84C; padding-top: 8px; font-size: 10px; font-style: italic; color: var(--navy); }

/* ─── PERM TABLE ─────────────────────────────────────────────── */
.perm-table { width: 100%; font-size: 12px; }
.perm-table th { padding: 8px 10px; text-align: center; font-weight: 600; color: var(--text-2); background: var(--bg); border-bottom: 1px solid var(--border); }
.perm-table th:first-child { text-align: left; }
.perm-table td { padding: 8px 10px; text-align: center; border-bottom: 1px solid var(--border); }
.perm-table td:first-child { text-align: left; font-weight: 500; }
.perm-table tr:last-child td { border-bottom: none; }

/* ─── SECTION ─────────────────────────────────────────────────── */
.section-heading { font-size: 14px; font-weight: 700; color: var(--blue); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }

/* ─── UPLOAD ZONE ────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 32px;
  text-align: center;
  color: var(--text-2);
  font-size: 13px;
  transition: border-color 0.15s;
}
.upload-zone:hover { border-color: var(--blue); }
.upload-zone .upload-icon { font-size: 32px; margin-bottom: 8px; }
.uploaded-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 12px;
}
.uploaded-file .file-pdf-badge {
  background: #FEE2E2; color: var(--red-text);
  font-size: 10px; font-weight: 700;
  padding: 4px 8px; border-radius: 5px;
}
.uploaded-file .file-info { flex: 1; }
.uploaded-file .file-name { font-size: 13px; font-weight: 600; }
.uploaded-file .file-meta { font-size: 11px; color: var(--text-2); }
.file-actions { display: flex; gap: 6px; }
.file-action-btn { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 6px; border: 1px solid var(--border); background: var(--card); cursor: pointer; color: var(--text-2); transition: all 0.1s; }
.file-action-btn:hover { color: var(--text-1); }

/* ─── NOTE BOX ───────────────────────────────────────────────── */
.note-box { background: #FFFBEB; border: 1px solid #FCD34D; border-radius: 8px; padding: 12px 16px; font-size: 12px; color: #92400E; }
.note-box strong { font-weight: 700; }

/* ─── DOC UPLOAD LIST ─────────────────────────────────────────── */
.doc-upload-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.doc-upload-item:last-child { border-bottom: none; }
.doc-upload-label { display: flex; align-items: center; gap: 8px; }
.doc-icon-circle { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.doc-red    { background: var(--red-bg); color: var(--red-text); }
.doc-blue   { background: var(--blue-100); color: #1D4ED8; }
.doc-green  { background: var(--green-bg); color: var(--green-text); }
.doc-orange { background: var(--orange-bg); color: var(--orange-text); }
.doc-purple { background: var(--purple-bg); color: var(--purple-text); }

/* ─── COVERAGE MATRIX ────────────────────────────────────────── */
.emp-pill { display: flex; align-items: center; gap: 8px; }
.emp-avatar { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0; }
.av-r { background: #2563EB; }
.av-a { background: #16A34A; }
.av-b { background: #7C3AED; }
.av-h { background: #EA580C; }
.av-g { background: #0891B2; }
.emp-name-code small { font-size: 11px; color: var(--text-2); display: block; }

/* ─── UPCOMING SESSION LIST ──────────────────────────────────── */
.session-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.session-item:last-child { border-bottom: none; }
.session-date-badge { background: var(--blue-100); color: #1D4ED8; border-radius: 7px; padding: 4px 8px; font-size: 11px; font-weight: 700; text-align: center; min-width: 50px; flex-shrink: 0; }
.session-info { flex: 1; }
.session-title { font-size: 13px; font-weight: 600; }
.session-loc { font-size: 11px; color: var(--text-2); }
.days-left-pill { background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; flex-shrink: 0; }

/* ─── TRAINER AVATAR ─────────────────────────────────────────── */
.trainer-pill { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.trainer-av { width: 24px; height: 24px; border-radius: 50%; background: #C7D2FE; color: #3730A3; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ─── NOTIFICATION ACTIVITY ──────────────────────────────────── */
.activity-icon { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }

/* ─── SCROLLABLE LAYOUT ──────────────────────────────────────── */
.full-screen-layout { display: flex; min-height: 100vh; }

/* ─── PRINT HELPER ───────────────────────────────────────────── */
.nav-router {
  position: fixed;
  top: 0; right: 0;
  z-index: 999;
  background: rgba(255,255,255,0.95);
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-bottom-left-radius: 10px;
  padding: 10px 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 420px;
}
.nav-router button {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-1);
  cursor: pointer;
  transition: all 0.1s;
}
.nav-router button:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.nav-router button.current { background: var(--blue); color: #fff; border-color: var(--blue); }
.nav-router a { text-decoration: none; }

/* ─── INCLUDE PLACEHOLDERS (avoid layout jump while partials load) ─ */
.full-screen-layout { min-height: 100vh; }
