/* ============================================================
   HANU — Single Design Token File
   One file. One truth. Do not add another CSS file.
   Do not add inline <style> blocks in any view.
   Change a variable here → whole app updates.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

/* ── Tokens ─────────────────────────────────────────── */
:root {
  --primary:        #1C3557;   /* navy — navbar, buttons, headings */
  --primary-hover:  #243d61;
  --accent:         #E8920A;   /* amber — key numbers, alerts, CTAs */
  --accent-soft:    #FEF3E2;
  --bg:             #F4F5F7;   /* page background */
  --surface:        #FFFFFF;   /* cards, panels */
  --border:         #DDE1E8;
  --text:           #111827;   /* body text */
  --text-muted:     #6B7280;
  --success:        #16A34A;
  --success-soft:   #DCFCE7;
  --danger:         #DC2626;
  --danger-soft:    #FEE2E2;
  --warning:        #D97706;
  --warning-soft:   #FEF3C7;
  --radius:         10px;
  --radius-sm:      6px;
  --shadow:         0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:      0 4px 12px rgba(0,0,0,0.10);

  /* legacy aliases — keeps old views working during migration */
  --hanu-navy:          var(--primary);
  --hanu-navy-light:    var(--primary-hover);
  --hanu-saffron:       var(--accent);
  --hanu-saffron-light: #F5A623;
  --hanu-bg:            var(--bg);
  --hanu-card-bg:       var(--surface);
  --hanu-border:        var(--border);
  --hanu-text-main:     var(--text);
  --hanu-text-muted:    var(--text-muted);
  --hanu-radius:        var(--radius);
  --hanu-indigo:        var(--primary);
  --hanu-glass-border:  var(--border);
}

/* ── Reset & Base ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  margin-bottom: 80px; /* space for mobile bottom nav */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.3;
}

a { color: var(--primary); }
a:hover { color: var(--primary-hover); }

/* ── Navbar — top bar (mobile + desktop) ─────────────── */
.navbar {
  background: var(--primary) !important;
  border-bottom: none !important;
  padding: 0 1rem;
  height: 56px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}
.navbar-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff !important;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.2px;
}
.brand-mark {
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #fff; font-weight: 700;
  flex-shrink: 0;
}
.navbar .nav-link {
  color: rgba(255,255,255,0.80) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem !important;
  transition: color 0.15s;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #fff !important;
}
.navbar-toggler {
  border-color: rgba(255,255,255,0.3) !important;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C255%2C255%2C0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}
.navbar .dropdown-menu {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  box-shadow: var(--shadow-md);
}
.navbar .dropdown-item {
  color: var(--text);
  font-weight: 500;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  transition: background 0.12s;
}
.navbar .dropdown-item:hover {
  background: var(--bg);
  color: var(--primary);
}
.navbar .dropdown-divider {
  border-color: var(--border);
  margin: 4px 0;
}

/* search button in navbar */
.erp-search-btn {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius-sm);
  padding: 5px 11px;
  font-size: 0.82rem;
  display: flex; align-items: center; gap: 7px;
  transition: background 0.15s;
  font-family: 'Outfit', sans-serif;
}
.erp-search-btn:hover {
  background: rgba(255,255,255,0.20);
  color: #fff;
}
.erp-search-btn kbd {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.75);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.65rem;
}

/* guide button */
.erp-guide-btn {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius-sm);
  padding: 5px 11px;
  font-size: 0.82rem;
  display: flex; align-items: center; gap: 6px;
  transition: background 0.15s;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
}
.erp-guide-btn:hover { background: rgba(255,255,255,0.14); color: #fff; }

.erp-wallet-pill {
    display: flex;
    align-items: center;
    padding: 6px 14px;
    background: rgba(255,215,0,0.15); /* Subtle Gold */
    border: 1px solid rgba(255,215,0,0.3);
    border-radius: 50px;
    color: #FFD700;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.erp-wallet-pill:hover {
    background: rgba(255,215,0,0.25);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.erp-wallet-pill i { font-size: 1rem; }

/* ── Sidebar — desktop only (≥992px) ────────────────── */
:root {
  --sidebar-w: 230px;
}
#sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--primary);
  display: flex; flex-direction: column;
  z-index: 1040;
  transition: transform 0.25s ease;
  overflow-y: auto; overflow-x: hidden;
}
#sidebar::-webkit-scrollbar { width: 3px; }
#sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }

.sb-brand {
  padding: 18px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; gap: 10px;
}
.sb-brand-icon {
  width: 32px; height: 32px;
  border-radius: 7px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem; color: #fff; font-weight: 700;
}
.sb-brand-name { font-size: 0.9rem; font-weight: 700; color: #fff; line-height: 1.2; }
.sb-brand-sub  { font-size: 0.68rem; color: rgba(255,255,255,0.45); }

.sb-section {
  padding: 14px 16px 4px;
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.sb-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.85rem; font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.13s;
  margin: 1px 6px 1px 0;
  border-radius: 0 6px 6px 0;
}
.sb-item:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
  text-decoration: none;
}
.sb-item.active {
  background: rgba(232,146,10,0.15);
  color: #fff;
  border-left-color: var(--accent);
  font-weight: 600;
}
.sb-item i { font-size: 0.95rem; width: 18px; text-align: center; flex-shrink: 0; }
.sb-superadmin-badge {
  display: inline-flex; align-items: center;
  background: rgba(220,38,38,0.2); color: #fca5a5;
  font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 4px;
  margin-left: auto; flex-shrink: 0;
}
.sb-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 12px 16px;
}
.sb-user-name { font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.85); }
.sb-user-role  { font-size: 0.68rem; color: rgba(255,255,255,0.4); }

#mainContent {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex; flex-direction: column;
}
#topBar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 24px;
  display: flex; align-items: center; gap: 12px;
  position: sticky; top: 0; z-index: 1030;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
#topBar .erp-search-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
#topBar .erp-search-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
#topBar .erp-search-btn kbd {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
#pageBody { padding: 24px; flex: 1; }

#sidebarToggle {
  display: none;
  background: none; border: none;
  color: var(--text); font-size: 1.2rem;
  cursor: pointer; padding: 4px;
}
#sbOverlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.45); z-index: 1039;
}

/* ── Mobile bottom nav (≤768px) ──────────────────────── */
#mobileBottomNav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 60px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 1050;
  align-items: stretch;
}
.mob-nav-item {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.62rem; font-weight: 500;
  border: none; background: none;
  cursor: pointer;
  transition: color 0.15s;
  padding: 6px 4px;
}
.mob-nav-item i { font-size: 1.2rem; }
.mob-nav-item.active { color: var(--primary); }
.mob-nav-item:hover  { color: var(--primary); text-decoration: none; }

/* ── Cards ────────────────────────────────────────────── */
.glass-card,
.hanu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transition: border-color 0.15s;
}
.glass-card:hover { border-color: var(--primary); }

.elite-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, box-shadow 0.15s;
  text-decoration: none !important;
  display: flex; flex-direction: column;
}
.elite-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

/* ── Buttons ─────────────────────────────────────────── */
.btn-primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
}
.btn-premium {
  background: var(--primary);
  color: #fff !important;
  border: none;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.btn-premium:hover { background: var(--primary-hover); }

.btn-accent {
  background: var(--accent);
  color: #fff !important;
  border: none;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.btn-accent:hover { background: #CF7F08; }

/* keep legacy class names working */
.btn-indigo { background: var(--primary); color: #fff !important; border: none; }
.btn-saffron { background: var(--accent); color: #fff !important; border: none; }

/* ── Forms ───────────────────────────────────────────── */
.form-control,
.form-select {
  border-color: var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface);
}
.form-control:focus,
.form-select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(28,53,87,0.10) !important;
  background: var(--surface) !important;
}
.form-label {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

@media (max-width: 991px) {
  #sidebar      { transform: translateX(-100%); }
  #sidebar.sb-open { transform: translateX(0); }
  #mainContent  { margin-left: 0; }
  #sidebarToggle { display: block; }
  #sbOverlay.active { display: block; }
  #pageBody     { padding: 16px; }
  .dossier-container { grid-template-columns: 1fr; }
  .profile-pane { position: static; }
}

/* --- Premium Form Checks --- */
.form-check-input {
    background-color: #f8fafc;
    border: 1.5px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}
.form-check-input:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(28,53,87,0.08);
}
.form-check-input:checked {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 2px 4px rgba(28,53,87,0.2);
}
.form-switch .form-check-input {
    width: 2.8em;
    min-height: 1.4em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23cbd5e1'/%3e%3c/svg%3e") !important;
    background-position: left center;
}
.form-switch .form-check-input:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e") !important;
    background-position: right center;
}
.form-check-label {
    cursor: pointer;
    font-weight: 500;
    padding-left: 4px;
    user-select: none;
}

/* ── Labels / Section headers ────────────────────────── */
.section-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* ── Badges ──────────────────────────────────────────── */
.badge-paid    { background: var(--success-soft); color: var(--success); font-weight: 600; font-size: 0.72rem; padding: 3px 9px; border-radius: 20px; }
.badge-due     { background: var(--warning-soft); color: var(--warning); font-weight: 600; font-size: 0.72rem; padding: 3px 9px; border-radius: 20px; }
.badge-overdue { background: var(--danger-soft);  color: var(--danger);  font-weight: 600; font-size: 0.72rem; padding: 3px 9px; border-radius: 20px; }
.badge-accent  { background: var(--accent-soft);  color: var(--accent);  font-weight: 600; font-size: 0.72rem; padding: 3px 9px; border-radius: 20px; }

/* ── Tables ──────────────────────────────────────────── */
.table {
  font-size: 0.88rem;
  color: var(--text);
}
.table thead th {
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
}
.table tbody tr:hover { background: #F7F8FA; }
.table tbody td { padding: 11px 14px; border-color: var(--border); vertical-align: middle; }

/* ── Amount display — large readable numbers ─────────── */
.amount-lg   { font-size: 1.3rem; font-weight: 700; color: var(--text); }
.amount-md   { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.amount-success { color: var(--success); font-weight: 700; }
.amount-danger  { color: var(--danger);  font-weight: 700; }
.balance-positive { color: var(--success); font-weight: 700; font-size: 1.05rem; }
.balance-negative { color: var(--danger);  font-weight: 700; font-size: 1.05rem; }
.balance-zero     { color: var(--text-muted); font-weight: 600; font-size: 1.05rem; }

/* ── Trip Form ───────────────────────────────────────── */
.trip-form-body,
.trip-form-body input,
.trip-form-body select,
.trip-form-body textarea,
.trip-form-body button,
.trip-form-body label {
  font-family: 'Outfit', sans-serif;
}
.form-section { padding: 1rem 1.25rem; }
.form-section + .form-section { border-top: 1px solid var(--border); }

.trip-top-bar {
  position: sticky; top: 56px;
  background: var(--surface); z-index: 500;
  border-bottom: 1px solid var(--border);
  padding: 0.55rem 0; margin-bottom: 1rem;
}
.summary-panel { position: sticky; top: 112px; }
.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.25rem 0; font-size: 0.85rem;
}
.summary-divider { border: none; border-top: 1px solid var(--border); margin: 0.35rem 0; }
.summary-total-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.95rem; font-weight: 600; padding: 0.3rem 0;
}
.trip-error-pill {
  background: var(--danger-soft); border: 1px solid #FCA5A5; color: var(--danger);
  border-radius: 20px; padding: 0.3rem 0.8rem; font-size: 0.8rem; font-weight: 500;
  max-width: 400px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Trip accordion */
.trip-accordion .accordion-button {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--text-muted);
  padding: 0.75rem 1.25rem; background: transparent; box-shadow: none;
}
.trip-accordion .accordion-button:not(.collapsed) { color: var(--text); background: transparent; box-shadow: none; }
.trip-accordion .accordion-button::after { width: 0.8rem; height: 0.8rem; background-size: 0.8rem; }
.trip-accordion .accordion-item { border: none; border-top: 1px solid var(--border); }
.trip-accordion .accordion-body { padding: 0 1.25rem 1rem; }

/* Mobile trip summary bar */
.mobile-summary-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--primary); color: #fff;
  padding: 0.6rem 1rem; z-index: 1000;
  align-items: center; justify-content: space-between;
  font-size: 0.85rem;
}

/* ── Layout shells ───────────────────────────────────── */
.cockpit-shell {
  background: var(--bg);
  min-height: calc(100vh - 100px);
  padding: 1rem 0;
}
.elite-mosaic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px; padding: 8px 0;
}
.elite-input-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px; margin-bottom: 12px;
}
.elite-input-group label {
  display: block; font-size: 0.75rem; font-weight: 600;
  color: var(--primary); margin-bottom: 2px;
}
.elite-input-group input,
.elite-input-group select,
.elite-input-group textarea {
  background: transparent !important; border: none !important;
  color: var(--text) !important; font-size: 0.95rem !important;
  font-weight: 500;
}

/* ── Status pills ────────────────────────────────────── */
.status-active  { background: var(--success-soft); color: var(--success); }
.status-pending { background: var(--warning-soft); color: var(--warning); }
.status-expired { background: var(--danger-soft);  color: var(--danger);  }
.elite-status-pill {
  padding: 3px 10px; border-radius: 100px;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase;
}

/* ── Footer ──────────────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border) !important;
  padding: 24px 0; margin-top: 40px;
  color: var(--text-muted); font-size: 0.82rem;
}

/* ── Utility ─────────────────────────────────────────── */
.smaller { font-size: 0.75rem; }
.text-accent { color: var(--accent) !important; }
.text-primary-brand { color: var(--primary) !important; }
.bg-accent-soft { background: var(--accent-soft); }
.border-accent { border-color: var(--accent) !important; }
.last-child-border-0:last-child { border-bottom: 0 !important; }

/* ── Responsive ──────────────────────────────────────── */

/* Tablet: sidebar collapses, top nav appears */
@media (max-width: 991px) {
  #sidebar      { transform: translateX(-100%); }
  #sidebar.sb-open { transform: translateX(0); }
  #mainContent  { margin-left: 0; }
  #sidebarToggle { display: block; }
  #sbOverlay.active { display: block; }
  #pageBody     { padding: 16px; }
  .dossier-container { grid-template-columns: 1fr; }
  .profile-pane { position: static; }
}

/* Mobile: bottom nav, large touch targets, card lists */
@media (max-width: 767px) {
  body { font-size: 15px; margin-bottom: 70px; }

  #mobileBottomNav { display: flex; }

  .summary-panel { position: static; }
  .mobile-summary-bar { display: flex !important; bottom: 60px; }

  /* larger tap targets */
  .btn, .btn-sm { min-height: 44px; display: inline-flex; align-items: center; }
  .btn-sm { min-height: 38px; padding: 6px 12px; }
  .form-control, .form-select { min-height: 46px; font-size: 16px; } /* 16px prevents iOS zoom */

  /* amounts must be readable at a glance */
  .amount-lg { font-size: 1.5rem; }
  .h2, h2 { font-size: 1.25rem; }
  .h3, h3 { font-size: 1.1rem; }

  /* full-width cards on mobile */
  .glass-card, .hanu-card, .elite-card { border-radius: var(--radius-sm); }

  /* table → card switch handled per-view, but ensure no overflow cut */
  .table-responsive { border: none; }

  /* hide desktop-only nav items */
  .d-desk-only { display: none !important; }
}

/* [NEW] Mobile-Specific Global Spacing */
@media (max-width: 576px) {
    #top-toolbar { padding: 0 12px !important; height: 56px; }
    .page-content { padding: 12px 10px !important; }
    .glass-card, .hanu-card { padding: 1rem !important; margin-bottom: 12px !important; }
    .h2, h2 { font-size: 1.2rem !important; }
    .h5, h5 { font-size: 0.95rem !important; }
    .btn { font-size: 0.85rem !important; padding: 6px 12px !important; min-height: 38px !important; }
    .erp-search-btn { padding: 4px 8px !important; }
}

/* [NEW] Extra Small Phone Fixes (< 400px) */
@media (max-width: 399px) {
  #top-toolbar .btn-sm span { display: none !important; } /* Hide ALL text in toolbar buttons */
  .erp-search-btn span { display: none !important; }
  #top-toolbar .gap-2 { gap: 6px !important; }
}

/* Desktop: show sidebar, dense layout */
@media (min-width: 992px) {
  body { margin-bottom: 0; }
  #mobileBottomNav { display: none !important; }
  .d-mob-only { display: none !important; }

  /* wider content area */
  .container { max-width: 1200px; }

  /* denser table rows on big screens */
  .table tbody td { padding: 9px 14px; }
}


/* ── Mobile Card System ──────────────────────────── */
.mobile-card-list { display: none; flex-direction: column; gap: 12px; }
.mobile-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}
.mobile-card-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    border-bottom: 1px solid var(--bg);
    padding-bottom: 8px; margin-bottom: 8px;
}
.mobile-card-body { font-size: 0.9rem; }
.mobile-card-row { display: flex; justify-content: space-between; padding: 4px 0; }
.mobile-card-label { color: var(--text-muted); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.mobile-card-value { color: var(--text); font-weight: 500; }
.mobile-card-actions {
    margin-top: 10px; padding-top: 10px;
    border-top: 1px solid var(--bg);
    display: flex; gap: 8px;
}

@media (max-width: 767px) {
    .mobile-card-list { display: flex; }
    .desktop-table-view { display: none !important; }
}

/* ── Command bar ─────────────────────────────────────── */
.cmd-section-header {
  padding: 8px 18px 4px;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted);
}
.cmd-item {
  display: flex; align-items: center;
  padding: 9px 18px; cursor: pointer;
  transition: background 0.1s;
  text-decoration: none; color: inherit;
}
.cmd-item:hover, .cmd-item.active {
  background: var(--bg); color: inherit; text-decoration: none;
}
.cmd-item .cmd-icon {
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0; margin-right: 12px;
}
.cmd-item .cmd-label { font-size: 0.9rem; font-weight: 600; color: var(--text); line-height: 1.2; }
.cmd-item .cmd-sub   { font-size: 0.76rem; color: var(--text-muted); line-height: 1.3; }
.cmd-item .cmd-badge {
  margin-left: auto; font-size: 0.7rem;
  background: var(--bg); border-radius: 20px;
  padding: 2px 8px; color: var(--text-muted); flex-shrink: 0;
}

/* ── FAB — Mobile Navigation Launcher ────────────────── */
#fabQuickTrip {
  position: fixed; bottom: 75px; right: 20px;
  z-index: 1049; width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff; border: none;
  box-shadow: 0 4px 16px rgba(28,53,87,0.30);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
  opacity: 0.6; /* Semi-transparent when idle */
  backdrop-filter: blur(4px);
}
#fabQuickTrip:hover, #fabQuickTrip:active { 
  transform: scale(1.1); 
  box-shadow: 0 6px 22px rgba(28,53,87,0.45);
  opacity: 1; /* Fully opaque on interaction */
}

/* ── Dashboard Pulse Widgets ────────────────────────── */
.pulse-container {
  display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap;
}
.pulse-card {
  flex: 1; min-width: 140px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  transition: all 0.2s ease;
  text-decoration: none !important;
}
.pulse-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--primary); }
.pulse-icon-wrapper {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; position: relative;
}
.pulse-dot {
  position: absolute; top: -2px; right: -2px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger);
  border: 2px solid #fff;
}
.pulse-ping {
  animation: pulse-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes pulse-ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

@media (min-width: 768px) {
  #fabQuickTrip { display: none !important; } /* Hide on Desktop as requested */
}
