/* ============================================================
   ELS911 Portal — Global Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');
@import './tokens.css';

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── App Shell ──────────────────────────────────────────── */
.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-body {
  display: flex;
  flex: 1;
  padding-top: var(--header-height);
}

/* ── Top Header ─────────────────────────────────────────── */
.top-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: var(--navy-700);
  display: flex;
  align-items: center;
  padding: 0 var(--space-6);
  gap: var(--space-4);
  z-index: var(--z-sticky);
  box-shadow: var(--shadow-navy);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.header-logo-badge {
  background: var(--red-600);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: var(--weight-black);
  font-size: var(--text-lg);
  letter-spacing: 0.04em;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
}

.header-logo-sub {
  color: var(--navy-200);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
  max-width: 130px;
}

.header-divider {
  width: 1px;
  height: 28px;
  background: var(--navy-500);
  flex-shrink: 0;
}

.header-page-title {
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: var(--text-xl);
  letter-spacing: 0.02em;
  flex: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
}

.header-icon-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-200);
  transition: background var(--transition-fast), color var(--transition-fast);
  position: relative;
}
.header-icon-btn:hover {
  background: var(--navy-600);
  color: var(--white);
}
.header-icon-btn .badge {
  position: absolute;
  top: 4px; right: 4px;
  width: 8px; height: 8px;
  border-radius: var(--radius-full);
  background: var(--red-500);
  border: 2px solid var(--navy-700);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
  position: relative;
}
.user-menu:hover { background: var(--navy-600); }

.user-avatar {
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  background: var(--red-600);
  color: var(--white);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.user-info { text-align: left; }
.user-name {
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 1.2;
}
.user-role {
  color: var(--navy-200);
  font-size: var(--text-xs);
  text-transform: capitalize;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--navy-800);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: width var(--transition-slow);
  position: fixed;
  top: var(--header-height);
  bottom: 0;
  left: 0;
  z-index: var(--z-dropdown);
}

.sidebar.collapsed { width: var(--sidebar-collapsed); }
.sidebar.collapsed .nav-label,
.sidebar.collapsed .nav-group-label { display: none; }
.sidebar.collapsed .nav-item { justify-content: center; }
.sidebar.collapsed .nav-item .nav-icon { margin: 0; }

.sidebar-collapse-btn {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--navy-600);
}
.sidebar-collapse-btn button {
  background: none; border: none; cursor: pointer;
  color: var(--navy-200);
  padding: var(--space-1);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
  display: flex;
}
.sidebar-collapse-btn button:hover { color: var(--white); }

.nav-group {
  padding: var(--space-4) 0 var(--space-2);
}

.nav-group-label {
  padding: 0 var(--space-4) var(--space-2);
  color: var(--navy-200);
  font-size: 0.65rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  color: var(--navy-200);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
  text-decoration: none;
  border-left: 3px solid transparent;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}
.nav-item:hover {
  background: rgba(255,255,255,.06);
  color: var(--white);
}
.nav-item.active {
  background: rgba(178,34,52,.15);
  color: var(--white);
  border-left-color: var(--red-600);
}
.nav-item .nav-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
}
.nav-item.active .nav-icon,
.nav-item:hover .nav-icon { opacity: 1; }

.nav-badge {
  margin-left: auto;
  background: var(--red-600);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: var(--weight-bold);
  padding: 2px 6px;
  border-radius: var(--radius-full);
  min-width: 18px;
  text-align: center;
}

.sidebar-footer {
  margin-top: auto;
  padding: var(--space-4);
  border-top: 1px solid var(--navy-600);
}

/* ── Main Content ────────────────────────────────────────── */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: var(--content-padding);
  min-height: calc(100vh - var(--header-height));
  transition: margin-left var(--transition-slow);
}
.main-content.sidebar-collapsed { margin-left: var(--sidebar-collapsed); }

/* ── Page Header ─────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.page-header-info { flex: 1; }
.page-eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-600);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.page-eyebrow::before {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--red-600);
}
.page-title {
  font-family: var(--font-heading);
  font-weight: var(--weight-extrabold);
  font-size: var(--text-3xl);
  color: var(--navy-700);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.page-subtitle {
  color: var(--gray-500);
  margin-top: var(--space-1);
  font-size: var(--text-sm);
}
.page-actions {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  flex-shrink: 0;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-base);
  white-space: nowrap;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--red-600);
  color: var(--white);
  border-color: var(--red-600);
  box-shadow: var(--shadow-red);
}
.btn-primary:hover:not(:disabled) {
  background: var(--red-700);
  border-color: var(--red-700);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(178,34,52,.35);
}

.btn-navy {
  background: var(--navy-700);
  color: var(--white);
  border-color: var(--navy-700);
  box-shadow: var(--shadow-navy);
}
.btn-navy:hover:not(:disabled) {
  background: var(--navy-800);
  border-color: var(--navy-800);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--navy-700);
  border-color: var(--gray-200);
}
.btn-outline:hover:not(:disabled) {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  border-color: transparent;
}
.btn-ghost:hover:not(:disabled) {
  background: var(--gray-100);
  color: var(--gray-800);
}

.btn-danger {
  background: var(--red-600);
  color: var(--white);
  border-color: var(--red-600);
}

.btn-sm {
  padding: 0.3rem 0.75rem;
  font-size: var(--text-xs);
}
.btn-lg {
  padding: 0.75rem 2rem;
  font-size: var(--text-base);
}
.btn-icon {
  padding: 0.5rem;
  width: 36px; height: 36px;
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.card-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.card-title {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
  color: var(--navy-700);
  letter-spacing: 0.01em;
}
.card-actions { margin-left: auto; display: flex; gap: var(--space-2); }
.card-body { padding: var(--space-6); }
.card-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border);
  background: var(--gray-50);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* ── Stat Card ───────────────────────────────────────────── */
.stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.stat-card.red::before   { background: var(--red-600); }
.stat-card.navy::before  { background: var(--navy-700); }
.stat-card.sky::before   { background: var(--sky-500); }
.stat-card.green::before { background: var(--green-500); }
.stat-card.gold::before  { background: var(--gold-600); }

.stat-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.stat-value {
  font-family: var(--font-heading);
  font-weight: var(--weight-black);
  font-size: var(--text-4xl);
  color: var(--navy-700);
  line-height: 1;
}
.stat-delta {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--green-600);
}
.stat-icon {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  opacity: 0.12;
}

/* ── Badges / Pills ──────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.badge-red     { background: var(--red-100);    color: var(--red-700); }
.badge-navy    { background: var(--navy-100);   color: var(--navy-700); }
.badge-sky     { background: var(--sky-100);    color: #1d4ed8; }
.badge-green   { background: var(--green-100);  color: var(--green-600); }
.badge-gold    { background: var(--gold-100);   color: #92400e; }
.badge-gray    { background: var(--gray-100);   color: var(--gray-600); }
.badge-purple  { background: var(--purple-100); color: var(--purple-600); }

.badge-dot::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: var(--radius-full);
  background: currentColor;
}

/* ── Tables ──────────────────────────────────────────────── */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
thead th {
  background: var(--gray-50);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-weight: var(--weight-semibold);
  color: var(--gray-600);
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}
thead th:first-child { border-radius: var(--radius-md) 0 0 0; }
thead th:last-child  { border-radius: 0 var(--radius-md) 0 0; }
tbody tr {
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition-fast);
}
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--gray-50); }
tbody td {
  padding: var(--space-4);
  color: var(--gray-700);
  vertical-align: middle;
}

/* ── Forms ───────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.form-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--gray-700);
}
.form-label .required { color: var(--red-600); margin-left: 2px; }
.form-input,
.form-select,
.form-textarea {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 0.6rem var(--space-4);
  font-size: var(--text-sm);
  color: var(--gray-900);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(0,40,104,.1);
}
.form-input.error { border-color: var(--red-500); }
.form-hint {
  font-size: var(--text-xs);
  color: var(--gray-400);
}
.form-error {
  font-size: var(--text-xs);
  color: var(--red-600);
}
.form-textarea { resize: vertical; min-height: 100px; }

/* ── Modals ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(.97);
  transition: transform var(--transition-base);
}
.modal-overlay.active .modal { transform: none; }
.modal-header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.modal-title {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: var(--text-xl);
  color: var(--navy-700);
  flex: 1;
}
.modal-close {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-400);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.modal-close:hover { background: var(--gray-100); color: var(--gray-700); }
.modal-body { padding: var(--space-6); overflow-y: auto; flex: 1; }
.modal-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
}

/* ── Toasts ──────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  pointer-events: none;
}
.toast {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 300px;
  max-width: 420px;
  border-left: 4px solid var(--gray-300);
  pointer-events: all;
  animation: toastIn var(--transition-base) ease;
}
@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.toast.success { border-left-color: var(--green-500); }
.toast.error   { border-left-color: var(--red-600); }
.toast.warning { border-left-color: var(--orange-500); }
.toast.info    { border-left-color: var(--sky-500); }
.toast-icon { width: 20px; height: 20px; flex-shrink: 0; }
.toast-message { font-size: var(--text-sm); font-weight: var(--weight-medium); flex: 1; }

/* ── Empty State ─────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-16);
  text-align: center;
  gap: var(--space-4);
}
.empty-icon {
  width: 64px; height: 64px;
  opacity: 0.25;
  color: var(--navy-700);
}
.empty-title {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: var(--text-xl);
  color: var(--gray-600);
}
.empty-text {
  font-size: var(--text-sm);
  color: var(--gray-400);
  max-width: 320px;
}

/* ── Loading ─────────────────────────────────────────────── */
.spinner {
  width: 24px; height: 24px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--navy-700);
  border-radius: var(--radius-full);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-50) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  border-radius: var(--radius-sm);
  animation: shimmer 1.5s ease-in-out infinite;
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ── Dropdown ────────────────────────────────────────────── */
.dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  min-width: 180px;
  z-index: var(--z-dropdown);
  padding: var(--space-2) 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}
.dropdown-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: none;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--gray-700);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.dropdown-item:hover { background: var(--gray-50); }
.dropdown-item.danger { color: var(--red-600); }
.dropdown-item.danger:hover { background: var(--red-50); }
.dropdown-separator {
  height: 1px;
  background: var(--gray-100);
  margin: var(--space-2) 0;
}

/* ── Search ──────────────────────────────────────────────── */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
}
.search-box .search-icon {
  position: absolute;
  left: var(--space-3);
  width: 16px; height: 16px;
  color: var(--gray-400);
  pointer-events: none;
}
.search-box input {
  padding-left: 2.25rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--gray-900);
  height: 36px;
  min-width: 240px;
}
.search-box input:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(0,40,104,.1);
}

/* ── Divider stripe (ELS911 brand element) ───────────────── */
.brand-stripe {
  height: 4px;
  background: linear-gradient(90deg,
    var(--red-600) 0 33%,
    var(--white)   33% 67%,
    var(--sky-500) 67% 100%);
}

/* ── Hamburger button (mobile only) ──────────────────────── */
.hamburger-btn {
  display: none;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  cursor: pointer;
  align-items: center; justify-content: center;
  color: var(--navy-200);
  transition: background var(--transition-fast), color var(--transition-fast);
  flex-shrink: 0;
}
.hamburger-btn:hover { background: var(--navy-600); color: var(--white); }

/* ── Sidebar overlay (mobile) ────────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: calc(var(--z-dropdown) - 1);
  cursor: pointer;
}
.sidebar-overlay.active { display: block; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1040px) {
  .sidebar { width: var(--sidebar-collapsed); }
  .sidebar .nav-label,
  .sidebar .nav-group-label { display: none; }
  .sidebar .nav-item { justify-content: center; padding: var(--space-3); }
  .sidebar .nav-item .nav-icon { margin: 0; }
  .main-content { margin-left: var(--sidebar-collapsed); }
}
@media (max-width: 768px) {
  .header-logo-sub { display: none; }
  .header-divider { display: none; }
}
@media (max-width: 600px) {
  :root {
    --header-height: 52px;
    --content-padding: var(--space-4);
  }
  .hamburger-btn { display: flex; }
  /* Mobile sidebar: hidden off-screen, slides in as overlay */
  .sidebar {
    display: flex !important;
    width: var(--sidebar-width) !important;
    transform: translateX(-100%);
    transition: transform var(--transition-base);
    z-index: var(--z-overlay);
  }
  .sidebar .nav-label,
  .sidebar .nav-group-label { display: initial !important; }
  .sidebar .nav-item { justify-content: flex-start !important; padding: var(--space-3) var(--space-4) !important; }
  .sidebar.mobile-open { transform: translateX(0); }
  .main-content { margin-left: 0 !important; }
  /* Compact header text on mobile */
  .header-page-title { font-size: var(--text-lg); }
  .user-info { display: none; }
  /* Page header stacks on mobile */
  .page-header { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
  .page-actions { width: 100%; }
  /* Hide less-important table columns on mobile */
  table thead th:nth-child(2),
  table tbody td:nth-child(2),
  table thead th:nth-child(4),
  table tbody td:nth-child(4),
  table thead th:nth-child(5),
  table tbody td:nth-child(5) { display: none; }
}
