:root {
  --navy: #1B3A6B;
  --navy-dark: #122850;
  --teal: #0F6E56;
  --teal-light: #E1F5EE;
  --sidebar-width: 260px;
  --topbar-height: 64px;
  --brand-primary: #1B3A6B;
  --brand-accent: #5DCAA5;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background: #F4F6FA; color: #1A1A2E; min-height: 100vh; }

/* ── AUTH SCREEN ─────────────────────────────────────────── */
#auth-screen {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; background: linear-gradient(135deg, #1B3A6B 0%, #0F6E56 100%);
  padding: 16px;
}
.auth-card {
  background: #fff; border-radius: 16px; padding: 40px 36px; width: 100%; max-width: 400px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo-icon {
  width: 56px; height: 56px; border-radius: 14px; background: var(--brand-primary);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.auth-logo-name { font-size: 22px; font-weight: 700; color: #1A1A2E; }
.auth-logo-sub  { font-size: 13px; color: #9CA3AF; margin-top: 2px; }
.auth-error { background: #FEF2F2; border: 1px solid #FECACA; color: #A32D2D; border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px; display: none; }

/* ── APP SHELL ───────────────────────────────────────────── */
#app { display: none; }
#app.visible { display: block; }

/* ── SIDEBAR ─────────────────────────────────────────────── */
#admin-sidebar {
  position: fixed; top: 0; left: 0; width: var(--sidebar-width); height: 100vh;
  background: var(--brand-primary); z-index: 1050; display: flex; flex-direction: column;
  transition: transform 0.3s ease; overflow-y: auto;
}
#admin-sidebar .brand { padding: 18px 22px 14px; border-bottom: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; gap: 10px; }
#admin-sidebar .brand-logo {
  width: 36px; height: 36px; border-radius: 9px; background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden;
}
#admin-sidebar .brand-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
#admin-sidebar .brand-logo svg { display: block; }
.brand-text-wrap { overflow: hidden; }
#admin-sidebar .brand-name { color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 0.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#admin-sidebar .brand-sub  { color: rgba(255,255,255,0.45); font-size: 10px; letter-spacing: 0.5px; text-transform: uppercase; }
#admin-sidebar nav { padding: 10px 0; flex: 1; }
.nav-section-label { color: rgba(255,255,255,0.35); font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; padding: 10px 22px 4px; }
#admin-sidebar .nav-link {
  display: flex; align-items: center; gap: 11px; padding: 9px 22px; color: rgba(255,255,255,0.7);
  text-decoration: none; font-size: 13.5px; font-weight: 400; border-left: 3px solid transparent; transition: all 0.15s;
}
#admin-sidebar .nav-link:hover { color: #fff; background: rgba(255,255,255,0.06); }
#admin-sidebar .nav-link.active { color: #fff; background: rgba(255,255,255,0.1); border-left-color: var(--brand-accent); font-weight: 500; }
#admin-sidebar .nav-link svg { width: 17px; height: 17px; opacity: 0.8; flex-shrink: 0; }
#admin-sidebar .nav-link.active svg { opacity: 1; }
.sidebar-footer { padding: 14px 22px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 11px; color: rgba(255,255,255,0.3); }

/* ── TOPBAR ──────────────────────────────────────────────── */
#topbar {
  position: fixed; top: 0; left: var(--sidebar-width); right: 0; height: var(--topbar-height);
  background: #fff; border-bottom: 1px solid #E8ECF3; display: flex; align-items: center;
  justify-content: space-between; padding: 0 24px; z-index: 1000; gap: 14px;
}
.page-title { font-size: 17px; font-weight: 600; color: #1A1A2E; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-user { font-size: 12px; color: #6B7280; display: flex; align-items: center; gap: 6px; }
.topbar-user::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #5DCAA5; display: inline-block; }
.logout-btn { background: none; border: 1px solid #E5E7EB; border-radius: 7px; padding: 5px 12px; font-size: 12px; color: #6B7280; cursor: pointer; transition: all 0.15s; }
.logout-btn:hover { background: #FEF2F2; color: #A32D2D; border-color: #FECACA; }

/* ── MAIN ────────────────────────────────────────────────── */
#main { margin-left: var(--sidebar-width); padding-top: var(--topbar-height); min-height: 100vh; }
.page-content { padding: 24px; }
.page { display: none; }
.page.active { display: block; }

/* ── STAT CARDS ──────────────────────────────────────────── */
.stat-card { background: #fff; border-radius: 12px; padding: 18px 20px; border: 1px solid #E8ECF3; position: relative; overflow: hidden; }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--accent, var(--navy)); }
.stat-label { font-size: 11px; font-weight: 600; color: #9CA3AF; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.stat-value { font-size: 30px; font-weight: 700; color: #1A1A2E; line-height: 1; margin-bottom: 3px; }
.stat-sub   { font-size: 11px; color: #9CA3AF; }
.stat-icon  { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); opacity: 0.07; }
.stat-icon svg { width: 52px; height: 52px; }

/* ── CARD PANEL ──────────────────────────────────────────── */
.card-panel { background: #fff; border-radius: 12px; border: 1px solid #E8ECF3; overflow: hidden; }
.card-panel-header { padding: 14px 20px; border-bottom: 1px solid #F3F4F6; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-panel-title  { font-size: 14px; font-weight: 600; color: #1A1A2E; }

/* ── TABLES ──────────────────────────────────────────────── */
.ams-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ams-table thead th { background: #F8FAFC; padding: 9px 14px; text-align: left; font-size: 11px; font-weight: 600; color: #6B7280; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid #E8ECF3; white-space: nowrap; }
.ams-table tbody td { padding: 11px 14px; border-bottom: 1px solid #F3F4F6; color: #374151; vertical-align: middle; }
.ams-table tbody tr:last-child td { border-bottom: none; }
.ams-table tbody tr:hover { background: #FAFBFD; }

/* ── STATUS BADGES ───────────────────────────────────────── */
.badge-status { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.badge-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.8; }
.status-available    { background: #E6F1FB; color: #185FA5; }
.status-assigned     { background: #EAF3DE; color: #3B6D11; }
.status-faulty       { background: #FCEBEB; color: #A32D2D; }
.status-repair       { background: #FAEEDA; color: #854F0B; }
.status-decommissioned { background: #F3F4F6; color: #6B7280; }
.status-lost         { background: #FAECE7; color: #993C1D; }
.status-active       { background: #EAF3DE; color: #3B6D11; }
.status-inactive     { background: #F3F4F6; color: #6B7280; }
.status-open         { background: #FCEBEB; color: #A32D2D; }
.status-in-progress  { background: #FAEEDA; color: #854F0B; }
.status-resolved     { background: #EAF3DE; color: #3B6D11; }
.status-admin        { background: #EEEDFE; color: #3C3489; }
.status-user         { background: #E6F1FB; color: #185FA5; }
.status-viewer       { background: #F3F4F6; color: #6B7280; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-navy { background: var(--brand-primary); color: #fff; border: none; border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 500; cursor: pointer; transition: background 0.15s; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap; }
.btn-navy:hover { background: var(--navy-dark); color: #fff; }
.btn-teal { background: #0F6E56; color: #fff; border: none; border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap; transition: background 0.15s; }
.btn-teal:hover { background: #085041; }
.btn-outline { background: transparent; color: #374151; border: 1px solid #D1D5DB; border-radius: 8px; padding: 7px 14px; font-size: 13px; cursor: pointer; transition: all 0.15s; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap; }
.btn-outline:hover { background: #F9FAFB; border-color: #9CA3AF; }
.btn-danger { background: #FEF2F2; color: #A32D2D; border: 1px solid #FECACA; border-radius: 8px; padding: 7px 14px; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: all 0.15s; white-space: nowrap; }
.btn-danger:hover { background: #FEE2E2; }
.btn-icon { background: none; border: 1px solid #E5E7EB; border-radius: 6px; padding: 5px 7px; cursor: pointer; color: #6B7280; transition: all 0.15s; line-height: 1; display: inline-flex; align-items: center; }
.btn-icon:hover { background: #F9FAFB; color: #374151; }
.btn-icon.danger:hover { background: #FEF2F2; color: #DC2626; border-color: #FECACA; }
.btn-icon.success { color: #0F6E56; border-color: #9FE1CB; }
.btn-icon.success:hover { background: #E1F5EE; }
.btn-sm { padding: 5px 10px !important; font-size: 12px !important; }

/* ── FORMS ───────────────────────────────────────────────── */
.form-label { font-size: 12.5px; font-weight: 500; color: #374151; margin-bottom: 5px; display: block; }
.form-control, .form-select { width: 100%; padding: 8px 11px; border: 1px solid #D1D5DB; border-radius: 8px; font-size: 13px; color: #1A1A2E; background: #fff; outline: none; transition: border-color 0.15s, box-shadow 0.15s; font-family: inherit; }
.form-control:focus, .form-select:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(27,58,107,0.1); }
.form-control::placeholder { color: #9CA3AF; }
textarea.form-control { resize: vertical; min-height: 72px; }
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: #9CA3AF; pointer-events: none; }
.search-wrap .form-control { padding-left: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }
.col-full { grid-column: 1 / -1; }
.checkbox-group { display: flex; align-items: center; gap: 8px; }
.checkbox-group input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--brand-primary); cursor: pointer; }
.checkbox-group label { font-size: 13px; color: #374151; cursor: pointer; }

/* ── MODALS ──────────────────────────────────────────────── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000; align-items: flex-start; justify-content: center; padding: 24px 16px; overflow-y: auto; }
.modal-overlay.show { display: flex; }
.modal-box { background: #fff; border-radius: 14px; width: 100%; max-width: 540px; box-shadow: 0 20px 60px rgba(0,0,0,0.2); margin: auto; }
.modal-box.wide { max-width: 680px; }
.modal-box.narrow { max-width: 420px; }
.modal-header { padding: 18px 22px 14px; border-bottom: 1px solid #F3F4F6; display: flex; align-items: center; justify-content: space-between; }
.modal-header h5 { font-size: 15px; font-weight: 600; color: #1A1A2E; }
.modal-body { padding: 18px 22px; }
.modal-footer { padding: 14px 22px; border-top: 1px solid #F3F4F6; display: flex; justify-content: flex-end; gap: 8px; }
.btn-close-modal { background: none; border: none; color: #9CA3AF; cursor: pointer; font-size: 22px; line-height: 1; padding: 0; display: flex; align-items: center; }
.btn-close-modal:hover { color: #374151; }

/* ── AVATAR ──────────────────────────────────────────────── */
.avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; flex-shrink: 0; }
.avatar-navy { background: #DBEAFE; color: #1B3A6B; }
.avatar-teal { background: #E1F5EE; color: #0F6E56; }
.avatar-lg { width: 48px; height: 48px; font-size: 16px; }

/* ── TIMELINE ────────────────────────────────────────────── */
.timeline { list-style: none; }
.timeline-item { display: flex; gap: 14px; padding-bottom: 18px; position: relative; }
.timeline-item:not(:last-child)::before { content: ''; position: absolute; left: 14px; top: 32px; width: 2px; height: calc(100% - 32px); background: #E8ECF3; }
.timeline-dot { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 12px; }
.timeline-body { flex: 1; padding-top: 3px; }
.timeline-title { font-size: 13px; font-weight: 500; color: #1A1A2E; }
.timeline-meta  { font-size: 11px; color: #9CA3AF; margin-top: 2px; }
.timeline-reason { font-size: 12px; color: #6B7280; margin-top: 5px; padding: 7px 10px; background: #F8FAFC; border-radius: 6px; border-left: 3px solid #E5E7EB; }

/* ── EMPTY STATE ─────────────────────────────────────────── */
.empty-state { text-align: center; padding: 48px 24px; color: #9CA3AF; }
.empty-state svg { margin-bottom: 10px; opacity: 0.35; }
.empty-state p { font-size: 13.5px; }

/* ── DETAIL ROWS ─────────────────────────────────────────── */
.detail-row { display: flex; gap: 8px; padding: 9px 0; border-bottom: 1px solid #F3F4F6; align-items: flex-start; }
.detail-row:last-child { border-bottom: none; }
.detail-label { font-size: 11.5px; color: #9CA3AF; min-width: 130px; font-weight: 500; padding-top: 1px; flex-shrink: 0; }
.detail-value { font-size: 13px; color: #1A1A2E; }

/* ── SECTION HEADING ─────────────────────────────────────── */
.section-sub { font-size: 11px; font-weight: 600; color: #9CA3AF; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }

/* ── BACKUP / EXPORT ─────────────────────────────────────── */
.backup-card { background: #F8FAFC; border: 1px solid #E8ECF3; border-radius: 10px; padding: 18px 20px; margin-bottom: 16px; }
.backup-card h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.backup-card p  { font-size: 13px; color: #6B7280; margin-bottom: 14px; }
.column-toggle { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.col-check { display: flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid #E5E7EB; border-radius: 6px; cursor: pointer; font-size: 12.5px; background: #fff; }
.col-check input { accent-color: var(--brand-primary); width: 14px; height: 14px; }
.col-check:has(input:checked) { border-color: var(--brand-primary); background: #EEF2FF; color: var(--brand-primary); }

/* ── BRANDING PAGE ───────────────────────────────────────── */
.brand-preview { background: var(--brand-primary); border-radius: 10px; padding: 16px 20px; display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.brand-preview-icon { width: 42px; height: 42px; border-radius: 10px; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.brand-preview-icon img { width: 100%; height: 100%; object-fit: cover; }
.brand-preview-name { color: #fff; font-size: 16px; font-weight: 700; }
.brand-preview-sub  { color: rgba(255,255,255,0.5); font-size: 11px; }
.color-swatch-row   { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.color-swatch { width: 32px; height: 32px; border-radius: 6px; cursor: pointer; border: 2px solid transparent; transition: all 0.15s; }
.color-swatch.selected { border-color: #1A1A2E; transform: scale(1.15); }

/* ── TOAST ───────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 7px; }
.toast-msg { background: #1A1A2E; color: #fff; padding: 11px 18px; border-radius: 9px; font-size: 13px; font-weight: 500; min-width: 200px; max-width: 300px; display: flex; align-items: center; gap: 8px; animation: slideUp 0.25s ease; }
.toast-msg.success { border-left: 4px solid #5DCAA5; }
.toast-msg.error   { border-left: 4px solid #E24B4A; }
@keyframes slideUp { from { opacity:0; transform: translateY(12px); } to { opacity:1; transform: translateY(0); } }

/* ── SETTINGS TABS ───────────────────────────────────────── */
.tab-bar { display: flex; gap: 4px; border-bottom: 1px solid #E8ECF3; margin-bottom: 20px; }
.tab-btn { padding: 8px 16px; font-size: 13px; font-weight: 500; color: #6B7280; border: none; background: none; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all 0.15s; }
.tab-btn:hover { color: #374151; }
.tab-btn.active { color: var(--brand-primary); border-bottom-color: var(--brand-primary); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  #admin-sidebar { transform: translateX(-100%); }
  #admin-sidebar.open { transform: translateX(0); }
  #topbar { left: 0; padding: 0 14px; }
  #main { margin-left: 0; }
  .page-content { padding: 14px; }
  .menu-toggle { display: block; }
  .sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1040; }
  .sidebar-backdrop.show { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .form-row.three { grid-template-columns: 1fr; }
  .hide-mobile { display: none !important; }
}
@media (max-width: 576px) {
  .stat-value { font-size: 24px !important; }
  .card-panel-header { gap: 8px; }
}

/* ── USER APP ─────────────────────────────────────────────── */
#user-app{display:none;}
#user-topbar{position:fixed;top:0;left:0;right:0;height:var(--topbar-height);background:var(--brand-primary);display:flex;align-items:center;justify-content:space-between;padding:0 20px;z-index:1000;gap:12px;}
.user-brand{display:flex;align-items:center;gap:10px;}
.user-brand-logo{width:32px;height:32px;border-radius:8px;background:rgba(255,255,255,0.15);display:flex;align-items:center;justify-content:center;overflow:hidden;}
.user-brand-logo img{width:100%;height:100%;object-fit:cover;border-radius:8px;}
.user-brand-name{color:#fff;font-size:15px;font-weight:700;}
.user-brand-sub{color:rgba(255,255,255,0.5);font-size:10px;text-transform:uppercase;letter-spacing:.5px;}
#user-bottom-nav{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #E8ECF3;display:flex;z-index:999;box-shadow:0 -4px 20px rgba(0,0,0,0.06);}
.user-nav-btn{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:10px 4px;border:none;background:none;cursor:pointer;color:#9CA3AF;font-size:10px;font-weight:500;transition:all 0.15s;text-decoration:none;border-top:2px solid transparent;}
.user-nav-btn:hover{color:var(--brand-primary);}
.user-nav-btn.active{color:var(--brand-primary);border-top-color:var(--brand-primary);}
.user-nav-btn svg{width:20px;height:20px;}
#user-main{padding-top:calc(var(--topbar-height)+12px);padding-bottom:84px;min-height:100vh;}
.user-content{padding:16px;max-width:700px;margin:0 auto;}
.user-page{display:none;}
.user-page.active{display:block;animation:fadeIn 0.2s ease;}
.user-stat-row{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:18px;}
.user-stat{background:#fff;border-radius:10px;padding:12px 14px;border:1px solid #E8ECF3;text-align:center;}
.user-stat-val{font-size:26px;font-weight:700;color:#1A1A2E;line-height:1;}
.user-stat-lbl{font-size:10px;color:#9CA3AF;font-weight:500;margin-top:4px;text-transform:uppercase;letter-spacing:.4px;}
.avatar-circle{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,0.2);display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;color:#fff;flex-shrink:0;}

/* User asset card */
.user-asset-card{background:#fff;border-radius:12px;border:1px solid #E8ECF3;overflow:hidden;}
.uac-header{display:flex;align-items:flex-start;gap:14px;padding:16px 18px 12px;}
.uac-icon{font-size:28px;line-height:1;flex-shrink:0;}
.uac-main{flex:1;min-width:0;}
.uac-brand{font-size:15px;font-weight:600;color:#1A1A2E;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.uac-meta{font-size:12px;color:#6B7280;margin-top:2px;}
.uac-tag{font-weight:600;color:#185FA5;}
.uac-details{display:grid;grid-template-columns:1fr 1fr;gap:0;border-top:1px solid #F3F4F6;}
.uac-detail{padding:10px 18px;border-bottom:1px solid #F3F4F6;}
.uac-detail:nth-child(odd){border-right:1px solid #F3F4F6;}
.uac-detail span{display:block;font-size:10px;color:#9CA3AF;text-transform:uppercase;letter-spacing:.4px;font-weight:500;margin-bottom:2px;}
.uac-detail strong{font-size:13px;color:#1A1A2E;font-weight:500;}
.uac-actions{display:flex;gap:8px;padding:12px 18px;border-top:1px solid #F3F4F6;flex-wrap:wrap;}

/* Priority badges */
.status-low{background:#F3F4F6;color:#6B7280;}
.status-medium{background:#FAEEDA;color:#854F0B;}
.status-high{background:#FCEBEB;color:#A32D2D;}
.status-critical{background:#FAECE7;color:#7F1D1D;}

/* Admin-specific overrides */
#admin-app{display:none;}
.admin-page{display:none;}
.admin-page.active{display:block;animation:fadeIn 0.2s ease;}
#admin-main{margin-left:var(--sidebar-width);padding-top:var(--topbar-height);min-height:100vh;}
#admin-topbar{position:fixed;top:0;left:var(--sidebar-width);right:0;height:var(--topbar-height);background:#fff;border-bottom:1px solid #E8ECF3;display:flex;align-items:center;justify-content:space-between;padding:0 22px;z-index:1000;gap:14px;}
.topbar-user-label{font-size:12px;color:#6B7280;display:flex;align-items:center;gap:6px;}
.topbar-user-label::before{content:'';width:7px;height:7px;border-radius:50%;background:#5DCAA5;display:inline-block;}
.topbar-role-badge{background:#F3F4F6;padding:2px 7px;border-radius:4px;font-size:10px;color:#6B7280;font-weight:600;text-transform:uppercase;}

/* Decommission warning */
.decomm-warning{background:#FEF9F0;border:1px solid #FAC775;border-radius:8px;padding:12px 14px;font-size:13px;color:#854F0B;margin-bottom:14px;}

/* Image thumbnail in tables */
.img-thumb{height:36px;width:52px;object-fit:cover;border-radius:5px;border:1px solid #E8ECF3;cursor:pointer;}
.img-thumb:hover{opacity:.85;}

@media(max-width:768px){
  #admin-sidebar{transform:translateX(-100%);}
  #admin-sidebar.open{transform:translateX(0);}
  #admin-topbar{left:0;padding:0 14px;}
  #admin-main{margin-left:0;}
  .page-content{padding:14px;}
  .menu-toggle{display:block;}
  .form-row{grid-template-columns:1fr;}
  .hide-mobile{display:none!important;}
  .user-stat-row{grid-template-columns:repeat(2,1fr);}
  .toast-container{right:10px;bottom:72px;}
}
@media(max-width:420px){
  .uac-details{grid-template-columns:1fr;}
  .uac-detail:nth-child(odd){border-right:none;}
  .user-stat-row{grid-template-columns:repeat(2,1fr);}
}

/* ── SELECTOR ALIASES (ensure v3 CSS works with v4 HTML) ─── */
#admin-topbar {
  position: fixed; top: 0; left: var(--sidebar-width); right: 0;
  height: var(--topbar-height); background: #fff;
  border-bottom: 1px solid #E8ECF3; display: flex; align-items: center;
  justify-content: space-between; padding: 0 24px; z-index: 1000; gap: 14px;
}
#admin-main {
  margin-left: var(--sidebar-width);
  padding-top: var(--topbar-height);
  min-height: 100vh;
}
.admin-page { display: none; }
.admin-page.active { display: block; animation: fadeIn 0.2s ease; }
@media (max-width: 768px) {
  #admin-topbar { left: 0; }
  #admin-main { margin-left: 0; }
}