/* ============================================================
   QHSE.REPORT — Shared Design System
   Colors: #E84E10 (orange) · #1A2FBE (blue)
   Fonts:  Space Grotesk (headings) · DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --orange:       #E84E10;
  --orange-dark:  #c43d08;
  --orange-light: #ff6b2b;
  --blue:         #1A2FBE;
  --blue-dark:    #1425a0;
  --blue-light:   #2d45d4;
  --ink:          #0f1117;
  --ink-muted:    #4a4f5e;
  --surface:      #f7f8fc;
  --border:       #e2e5f0;
  --white:        #ffffff;

  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    16px;
  --radius-xl:    20px;

  --shadow-sm:    0 2px 8px rgba(15,17,23,0.06);
  --shadow-md:    0 8px 24px rgba(15,17,23,0.09);
  --shadow-lg:    0 16px 48px rgba(15,17,23,0.12);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-y: scroll;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--surface);
  color: var(--ink);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 15%, rgba(26,47,190,.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 85%, rgba(232,78,16,.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, .font-display {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
}

/* ── Scrollbar ──────────────────────────────────────────── */
.custom-scroll::-webkit-scrollbar       { width: 5px; }
.custom-scroll::-webkit-scrollbar-track { background: transparent; }
.custom-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }

/* ── Page wrapper ───────────────────────────────────────── */
.page-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 2rem 1rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Site header ────────────────────────────────────────── */
.site-header {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
  flex-wrap: wrap;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-badge {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(26,47,190,.28);
  flex-shrink: 0;
}

.logo-badge svg { width: 22px; height: 22px; color: white; }

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.logo-text span { color: var(--orange); }

.header-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--border);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  padding: 0.55rem 1.1rem;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: white;
  box-shadow: 0 4px 14px rgba(232,78,16,.32);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--orange-dark), var(--orange));
  box-shadow: 0 6px 20px rgba(232,78,16,.42);
  transform: translateY(-1px);
}

.btn-blue {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: white;
  box-shadow: 0 4px 14px rgba(26,47,190,.25);
}
.btn-blue:hover {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: var(--surface); }

.btn-dark {
  background: var(--ink);
  color: white;
}
.btn-dark:hover { background: #1e2330; }

.btn-success {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: white;
  box-shadow: 0 4px 14px rgba(22,163,74,.28);
}
.btn-success:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(22,163,74,.38); }

.btn-danger {
  background: #ef4444;
  color: white;
}
.btn-danger:hover { background: #dc2626; }

.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.78rem; }
.btn-lg { padding: 0.85rem 1.75rem; font-size: 0.95rem; border-radius: var(--radius-md); }
.btn-full { width: 100%; }

.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.card-sm {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
}

.account-card {
  background: var(--white);
  border-color: var(--border);
  color: var(--ink);
}

.account-card h1 {
  font-size: 1.85rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.account-card .subtitle {
  color: var(--ink-muted);
  margin-bottom: 1.4rem;
  font-size: 0.95rem;
}

.account-info-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.info-row__meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.info-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.info-value {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.info-value.password {
  letter-spacing: 0.35em;
}

.account-form-panel .form-section {
  display: none;
  margin-top: 1rem;
}

.account-form-panel .form-section.active {
  display: block;
}

.btn-ghost {
  min-width: 90px;
}

/* ── Form elements ──────────────────────────────────────── */
.field-wrap { display: flex; flex-direction: column; }

.field-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.45rem;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.field-label .optional { font-weight: 400; color: var(--ink-muted); font-size: 0.75rem; }

.field-input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.field-input::placeholder { color: #b0b5c5; }

.field-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,47,190,.1);
}

.field-input.has-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.08);
}

select.field-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234a4f5e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

textarea.field-input { height: 110px; resize: vertical; line-height: 1.6; }

.error-msg {
  font-size: 0.75rem;
  font-weight: 500;
  color: #ef4444;
  margin-top: 0.4rem;
  display: none;
  align-items: center;
  gap: 0.3rem;
}

.error-msg.visible { display: flex; }

/* ── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 5px;
}

.badge-blue   { background: rgba(26,47,190,.09);  color: var(--blue); }
.badge-orange { background: rgba(232,78,16,.09);  color: var(--orange); }
.badge-green  { background: #dcfce7; color: #16a34a; }
.badge-red    { background: #fee2e2; color: #dc2626; }
.badge-gray   { background: #f1f5f9; color: #64748b; }
.badge-purple { background: rgba(124,58,237,.09); color: #7c3aed; }
.badge-ink    { background: var(--ink); color: white; }
.badge-wpi    { background: rgba(26,47,190,.09);  color: var(--blue); }
.badge-dev    { background: rgba(232,78,16,.09);  color: var(--orange); }

/* ── Modal ──────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,17,23,.55);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.hidden { display: none; }

.modal-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
  max-width: 520px;
  animation: modalIn 0.22s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
}

.modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}
.modal-close:hover { background: var(--border); color: var(--ink); }

.modal-body  { padding: 1.5rem; flex: 1; overflow-y: auto; }
.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

/* ── Notification toast ─────────────────────────────────── */
#notification {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  max-width: 340px;
  z-index: 99999;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: slideInRight 0.25s ease;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

#notification.hidden { display: none; }
#notification.success { background: #16a34a; }
#notification.error   { background: #dc2626; }
#notification.info    { background: var(--blue); }

/* ── Table ──────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table thead {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.data-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}

.data-table th.center { text-align: center; }
.data-table th.right  { text-align: right; }

.data-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  cursor: pointer;
}

.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(26,47,190,.03); }

.data-table td {
  padding: 0.875rem 1rem;
  vertical-align: middle;
  color: var(--ink);
}

.data-table td.muted  { color: var(--ink-muted); }
.data-table td.center { text-align: center; }
.data-table td.right  { text-align: right; }
.data-table td.mono   { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 0.8rem; }

/* ── Filter panel ───────────────────────────────────────── */
.filter-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.filter-panel-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-panel-title::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .filter-grid { grid-template-columns: repeat(4, 1fr); }
}

.filter-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* ── Admin header actions ───────────────────────────────── */
.header-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* ── Question / Category items ──────────────────────────── */
.manage-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  background: var(--white);
  transition: border-color 0.2s;
}

.manage-item.inactive {
  background: var(--surface);
  opacity: 0.65;
}

.manage-item-drag {
  cursor: grab;
  color: #cbd5e1;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.manage-item-drag:active { cursor: grabbing; }

.manage-item-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════
   NAVBAR HEADER - Dynamic Role-Based Navigation
   ════════════════════════════════════════════════════════════ */

/* Main navbar header */
.navbar-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 70px;
}

/* Brand section (logo + app name) */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.navbar-logo {
  width: 128px;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.navbar-logo svg {
  width: 100%;
  height: 100%;
}

.navbar-title {
  display: none;
}

.app-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Desktop Navigation */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  justify-content: center;
}

.desktop-nav {
  display: flex !important;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
  position: relative;
  border-bottom: 3px solid transparent;
}

.nav-link:hover {
  color: var(--orange);
  background: rgba(232, 78, 16, 0.06);
}

.nav-link.active {
  color: var(--white);
  background: var(--orange);
  border-bottom: 3px solid var(--orange-dark);
  box-shadow: 0 4px 12px rgba(232, 78, 16, 0.25);
}

.nav-link.active:hover {
  background: var(--orange-dark);
}

.nav-icon {
  font-size: 1rem;
}

.nav-label {
  font-family: 'DM Sans', sans-serif;
}

/* Right side: welcome message & logout */
.navbar-end {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.welcome-message {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.welcome-text {
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 500;
}

.welcome-text strong {
  font-weight: 700;
  color: var(--orange);
}

.logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.25s ease;
  border: 2px solid var(--ink);
}

.logout-btn:hover {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(15, 17, 23, 0.15);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation Menu */
.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  animation: slideDown 0.3s ease;
  z-index: 999;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-nav.active {
  display: block;
}

.mobile-nav-content {
  padding: 1rem 0;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  color: var(--ink-muted);
  text-decoration: none;
  border-left: 4px solid transparent;
  transition: all 0.25s ease;
  font-weight: 500;
}

.mobile-nav-link:hover {
  background: var(--surface);
  color: var(--orange);
  border-left: 4px solid var(--orange);
}

.mobile-nav-link.active {
  background: rgba(232, 78, 16, 0.1);
  color: var(--orange);
  border-left: 4px solid var(--orange);
  font-weight: 600;
}

.mobile-nav-divider {
  height: 1px;
  background: var(--border);
  margin: 0.75rem 0;
}

.mobile-user-info {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-welcome {
  font-size: 0.9rem;
  color: var(--ink);
}

.mobile-welcome strong {
  font-weight: 700;
  color: var(--orange);
}

.mobile-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

.mobile-logout-btn:hover {
  background: var(--orange);
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar-container {
    padding: 0 1rem;
    height: 60px;
    gap: 1rem;
  }

  .navbar-logo {
    width: 128px;
    height: 128px;
  }

  .app-name {
    display: none;
  }

  .desktop-nav {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .navbar-end {
    gap: 1rem;
  }

  .welcome-message {
    display: none;
  }

  .logout-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .navbar-container {
    padding: 0 0.75rem;
    height: 55px;
  }

  .navbar-brand {
    gap: 0.5rem;
  }

  .logout-btn {
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
    min-width: auto;
  }

  .mobile-nav-link {
    padding: 0.65rem 1rem;
  }

  .mobile-user-info {
    padding: 0.75rem 1rem;
  }
}

/* Add padding to body when header is fixed */
body.has-navbar-header {
  padding-top: 70px;
}

@media (max-width: 768px) {
  body.has-navbar-header {
    padding-top: 60px;
  }
}

@media (max-width: 480px) {
  body.has-navbar-header {
    padding-top: 55px;
  }
}

/* ── History entries ────────────────────────────────────── */
.history-entry {
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
}

.history-entry-action {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.82rem;
  margin-bottom: 0.3rem;
}

.history-entry-meta { color: var(--ink-muted); font-size: 0.75rem; line-height: 1.6; }

/* ── Version pill ───────────────────────────────────────── */
.version-entry {
  padding: 0.6rem 0.85rem;
  border-left: 3px solid var(--border);
  margin-bottom: 0.75rem;
}
.version-entry.active-version { border-left-color: #16a34a; }

/* ── Report modal printable area ────────────────────────── */
#printable-area { background: var(--white); }

.report-meta-block {
  border-left: 2px solid var(--border);
  padding-left: 1rem;
}

.report-meta-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.3rem;
}

/* ── Responsive tweaks ──────────────────────────────────── */
@media (max-width: 768px) {
  .site-header { margin-bottom: 1.5rem; }
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .manage-item-actions { gap: 0.35rem; }
}

@media (max-width: 480px) {
  .page-wrap  { padding: 1.25rem 0.85rem 3rem; }
  .filter-grid { grid-template-columns: 1fr; }
}

/* ── Print ──────────────────────────────────────────────── */
@media print {
  .no-print { display: none !important; }
  #report-modal {
    position: absolute;
    inset: 0;
    background: white;
    display: block !important;
    overflow: visible;
    z-index: 9999;
  }
  .report-card {
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    height: auto !important;
  }
  body { background: white !important; padding: 0 !important; }
}
