/* ══════════════════════════════════════════════════════════════════════
   MARAMBE TRADERS LIMITED ERP — Custom Styles  v3 (Mobile-First)
   ══════════════════════════════════════════════════════════════════════ */

/* ── CSS Variables ────────────────────────────────────────────────── */
:root {
  --primary:       #1a1a2e;
  --primary-light: #16213e;
  --accent:        #0f3460;
  --gold:          #e94560;
  --gold-dark:     #c73652;
  --sidebar-width: 260px;
  --topbar-height: 58px;
  --radius:        12px;
  --shadow:        0 2px 12px rgba(0,0,0,.07);
  --shadow-md:     0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.14);
  --border:        #e9ecef;
  --text-muted:    #6c757d;
  --bg:            #f2f4f8;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--primary);
  margin: 0;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); }
a:hover { color: var(--gold-dark); }

/* ══════════════════════════════════════════════════════════════════════
   AUTH PAGE
   ══════════════════════════════════════════════════════════════════════ */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(145deg, #1a1a2e 0%, #16213e 55%, #0f3460 100%);
  padding: 1rem;
}

.auth-card {
  background: white;
  border-radius: 20px;
  padding: 2.25rem 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}

.auth-logo {
  width: 58px; height: 58px;
  background: var(--gold);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: white;
  margin: 0 auto 1rem;
}

@media (max-width: 420px) {
  .auth-card { padding: 1.75rem 1.5rem; border-radius: 16px; }
}

/* ══════════════════════════════════════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════════════════════════════════════ */
.sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--sidebar-width);
  background: var(--primary);
  display: flex;
  flex-direction: column;
  z-index: 1050;
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
  overscroll-behavior: contain;
}

.sidebar-header {
  padding: 1.1rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.sidebar-brand { display: flex; align-items: center; gap: .7rem; }

.brand-icon {
  width: 40px; height: 40px;
  background: var(--gold);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; color: white; flex-shrink: 0;
}

.brand-name { color: white; font-weight: 700; font-size: .92rem; line-height: 1.2; }
.brand-sub  { color: rgba(255,255,255,.45); font-size: .65rem; text-transform: uppercase; letter-spacing: .6px; }

.sidebar-close {
  width: 40px; height: 40px;
  background: none; border: none;
  color: rgba(255,255,255,.5);
  font-size: 1.15rem; cursor: pointer;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.sidebar-close:hover { background: rgba(255,255,255,.1); color: white; }

.sidebar-nav { padding: .6rem 0; flex: 1; }

.nav-section {
  color: rgba(255,255,255,.3);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: .8rem 1.25rem .3rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .62rem 1.25rem;
  color: rgba(255,255,255,.68);
  text-decoration: none;
  transition: all .14s;
  font-size: .875rem;
  font-weight: 500;
  margin: 1px .5rem;
  border-radius: 8px;
  -webkit-tap-highlight-color: transparent;
}

.nav-item i { font-size: 1.1rem; width: 20px; text-align: center; flex-shrink: 0; }
.nav-item:hover { background: rgba(255,255,255,.09); color: white; }
.nav-item.active { background: var(--gold); color: white !important; }

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}

.user-info { display: flex; align-items: center; gap: .7rem; }
.user-avatar {
  width: 38px; height: 38px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: .88rem; flex-shrink: 0;
}
.user-name { color: white; font-size: .85rem; font-weight: 600; }
.user-details { overflow: hidden; }

[class^="badge-role-"] {
  font-size: .62rem; font-weight: 600; padding: .15rem .5rem;
  border-radius: 4px; text-transform: uppercase; display: inline-block; margin-top: 2px;
}
.badge-role-owner      { background: #fde68a; color: #78350f; }
.badge-role-director   { background: #c7d2fe; color: #3730a3; }
.badge-role-manager    { background: #a7f3d0; color: #065f46; }
.badge-role-store_keeper { background: #fed7aa; color: #9a3412; }
.badge-role-staff      { background: rgba(255,255,255,.15); color: white; }

/* ── Sidebar overlay ──────────────────────────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.52);
  z-index: 1040;
  backdrop-filter: blur(1px);
}

/* ══════════════════════════════════════════════════════════════════════
   MAIN LAYOUT
   ══════════════════════════════════════════════════════════════════════ */
.main-wrapper {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-bar {
  height: var(--topbar-height);
  background: white;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 0 1.25rem;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

.sidebar-toggle {
  background: none; border: none;
  font-size: 1.4rem;
  color: #6c757d; cursor: pointer;
  padding: .2rem;
  border-radius: 6px;
  display: none;
  -webkit-tap-highlight-color: transparent;
}

.page-title { font-weight: 600; font-size: .98rem; flex: 1; color: var(--primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.top-bar-right {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-shrink: 0;
}

.top-avatar-sm {
  width: 34px; height: 34px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: .78rem; flex-shrink: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.main-content {
  flex: 1;
  padding: 1.1rem;
}

.messages-container { margin-bottom: .9rem; }
.alert { border-radius: 10px; font-size: .875rem; }

/* ══════════════════════════════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════════════════════════════ */
.card {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: white;
}
.card-header {
  background: none;
  border-bottom: 1px solid #f0f2f5;
  padding: .9rem 1.1rem;
  font-weight: 600;
  font-size: .9rem;
}

/* ── Stat Cards ────────────────────────────────────────────────────── */
.stat-card {
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
  display: flex;
  align-items: center;
  gap: .85rem;
  background: white;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.stat-icon {
  width: 50px; height: 50px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.stat-icon.blue   { background: #dbeafe; color: #2563eb; }
.stat-icon.green  { background: #d1fae5; color: #059669; }
.stat-icon.red    { background: #fee2e2; color: #dc2626; }
.stat-icon.orange { background: #ffedd5; color: #ea580c; }
.stat-icon.purple { background: #ede9fe; color: #7c3aed; }
.stat-icon.yellow { background: #fef3c7; color: #d97706; }

.stat-label { font-size: .77rem; color: var(--text-muted); font-weight: 500; }
.stat-value { font-size: clamp(.92rem, 3.2vw, 1.35rem); font-weight: 700; color: var(--primary); line-height: 1.2; word-break: break-all; }
.stat-sub   { font-size: .72rem; color: var(--text-muted); }

/* ══════════════════════════════════════════════════════════════════════
   TABLES
   ══════════════════════════════════════════════════════════════════════ */
.table { font-size: .875rem; }
.table > thead > tr > th {
  background: #f8f9fa;
  color: #495057;
  font-weight: 600;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 2px solid #eaecf0;
  padding: .7rem 1rem;
  white-space: nowrap;
}
.table > tbody > tr > td { padding: .72rem 1rem; vertical-align: middle; border-color: #f3f4f6; }
.table-hover tbody tr:hover { background: #f9fafb; }

/* ── Badges & Status ────────────────────────────────────────────────── */
.badge { font-size: .68rem; font-weight: 600; padding: .28em .6em; border-radius: 6px; }
.status-completed  { background: #d1fae5; color: #065f46; }
.status-partial    { background: #fef3c7; color: #92400e; }
.status-pending    { background: #dbeafe; color: #1e40af; }
.status-cancelled  { background: #fee2e2; color: #991b1b; }
.status-paid       { background: #d1fae5; color: #065f46; }
.status-active     { background: #dbeafe; color: #1e40af; }
.status-settled    { background: #d1fae5; color: #065f46; }
.status-overdue    { background: #fee2e2; color: #991b1b; }

/* ── Forms ─────────────────────────────────────────────────────────── */
.form-control, .form-select {
  border-radius: 8px;
  border-color: #e2e8f0;
  font-size: .875rem;
  padding: .5rem .75rem;
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(233,69,96,.1);
}
.form-label { font-weight: 500; font-size: .84rem; color: #374151; margin-bottom: .35rem; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn { border-radius: 8px; font-weight: 500; font-size: .875rem; }
.btn-primary { background: var(--gold); border-color: var(--gold); }
.btn-primary:hover, .btn-primary:active { background: var(--gold-dark); border-color: var(--gold-dark); }

/* ── Progress bar ─────────────────────────────────────────────────── */
.progress { height: 7px; border-radius: 4px; background: #f0f2f5; }
.progress-bar { border-radius: 4px; }

/* ── Chart container ─────────────────────────────────────────────── */
.chart-container { position: relative; height: 230px; }

/* ── Stock status ─────────────────────────────────────────────────── */
.stock-low { color: #d97706; font-weight: 600; }
.stock-out { color: #dc2626; font-weight: 700; }
.stock-ok  { color: #059669; }

/* ── Print ─────────────────────────────────────────────────────────── */
@media print {
  .sidebar, .top-bar, .mobile-bottom-nav, .no-print { display: none !important; }
  .main-wrapper { margin: 0; }
  .main-content { padding: 0; }
  body { background: white; }
}

/* ── Payslip ─────────────────────────────────────────────────────── */
.payslip-header {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 1.5rem;
}
.payslip-row { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid #f0f0f0; }
.payslip-total { font-size: 1.2rem; font-weight: 700; color: var(--primary); }

/* ══════════════════════════════════════════════════════════════════════
   MOBILE BOTTOM NAVIGATION
   ══════════════════════════════════════════════════════════════════════ */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: calc(60px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--primary);
  display: flex;
  align-items: stretch;
  z-index: 1030;
  box-shadow: 0 -3px 16px rgba(0,0,0,.18);
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .2px;
  border: none;
  background: none;
  cursor: pointer;
  padding: .3rem 0;
  transition: color .14s, background .14s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.mobile-nav-item i { font-size: 1.3rem; line-height: 1; }
.mobile-nav-item.active { color: var(--gold); }
.mobile-nav-item.active::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 2px;
  background: var(--gold);
  border-radius: 0 0 4px 4px;
}
.mobile-nav-item:active { background: rgba(255,255,255,.06); }

.mobile-nav-item.pos-btn {
  color: white;
  background: rgba(233,69,96,.2);
}
.mobile-nav-item.pos-btn.active,
.mobile-nav-item.pos-btn:hover {
  background: rgba(233,69,96,.35);
  color: white;
}
.mobile-nav-item.pos-btn.active::before { background: white; }

/* ══════════════════════════════════════════════════════════════════════
   MOBILE LIST CARD COMPONENT  (.m-list / .m-item)
   ══════════════════════════════════════════════════════════════════════ */
.m-list { display: flex; flex-direction: column; }

a.m-item, .m-item {
  display: flex;
  align-items: center;
  padding: 13px 15px;
  border-bottom: 1px solid #f2f4f7;
  background: white;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: background .1s;
}
a.m-item:hover, .m-item:hover   { background: #fafbfd; }
a.m-item:active, .m-item:active { background: #f3f5f8; }
.m-item:last-child { border-bottom: none; }

.m-icon {
  width: 43px; height: 43px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  margin-right: 12px;
}

.m-body { flex: 1; min-width: 0; }

.m-title {
  font-size: .88rem; font-weight: 700; color: #1e293b;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.3;
}
.m-sub {
  font-size: .72rem; color: #94a3b8;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 2px;
}
.m-sub2 {
  font-size: .7rem; color: #dc2626; font-weight: 600;
  margin-top: 3px;
}

.m-right {
  text-align: right;
  flex-shrink: 0;
  margin-left: 10px;
}
.m-amount {
  font-size: .9rem; font-weight: 700; color: #1e293b; white-space: nowrap;
}
.m-amount.danger { color: #dc2626; }
.m-time {
  font-size: .67rem; color: #94a3b8; margin-top: 3px; white-space: nowrap;
}
.m-chevron {
  color: #d1d5db; font-size: .75rem;
  margin-left: 6px; flex-shrink: 0;
}

/* Progress in m-item */
.m-progress-wrap { margin-top: 5px; }
.m-progress { height: 3px; border-radius: 2px; background: #f0f2f5; overflow: hidden; }
.m-progress-bar { height: 100%; background: #10b981; border-radius: 2px; transition: width .3s; }

/* ══════════════════════════════════════════════════════════════════════
   PRODUCT CARD GRID  (2-col mobile)
   ══════════════════════════════════════════════════════════════════════ */
.p-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.p-card {
  background: white;
  border-radius: 12px;
  padding: 13px 12px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.p-card:active { transform: scale(.98); }

.p-card-name {
  font-size: .82rem; font-weight: 700; color: #1e293b;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  line-height: 1.3; min-height: 2.2em;
}
.p-card-sku  { font-size: .62rem; color: #94a3b8; font-family: monospace; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-card-cat  { font-size: .67rem; color: #64748b; margin-top: 2px; margin-bottom: 6px; }
.p-card-price { font-size: .84rem; font-weight: 800; color: var(--gold); margin-top: 6px; }
.p-card-stock { font-size: .7rem; font-weight: 600; margin-top: 3px; margin-bottom: auto; }
.p-card-actions {
  display: flex; gap: 5px; margin-top: 10px;
}
.p-card-actions .btn {
  flex: 1; font-size: .7rem; padding: .3rem .1rem;
  min-height: 32px; border-radius: 7px;
}

/* ══════════════════════════════════════════════════════════════════════
   SECTION HEADER  (.sec-hd)
   ══════════════════════════════════════════════════════════════════════ */
.sec-hd {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: .8rem; gap: .5rem;
}
.sec-title { font-size: .95rem; font-weight: 700; color: var(--primary); margin: 0; }

/* ══════════════════════════════════════════════════════════════════════
   FILTER BAR
   ══════════════════════════════════════════════════════════════════════ */
.filter-bar {
  background: white;
  border-radius: var(--radius);
  padding: .85rem;
  box-shadow: var(--shadow);
  margin-bottom: .9rem;
}

/* ══════════════════════════════════════════════════════════════════════
   EMPTY STATE
   ══════════════════════════════════════════════════════════════════════ */
.empty-state {
  text-align: center; padding: 3rem 1.5rem; color: #94a3b8;
}
.empty-state i { font-size: 2.8rem; display: block; margin-bottom: .75rem; opacity: .4; }
.empty-state p { font-size: .9rem; font-weight: 600; color: #64748b; margin: 0 0 .3rem; }
.empty-state small { font-size: .78rem; }

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE — DESKTOP SIDEBAR ACTIVE
   ══════════════════════════════════════════════════════════════════════ */
@media (min-width: 992px) {
  .sidebar-overlay { display: none !important; }
}

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET & MOBILE  (< 992px)
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-overlay.open { display: block; }

  .main-wrapper { margin-left: 0; }
  .sidebar-toggle { display: flex; }

  /* Content above bottom nav */
  .main-content {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .stat-value { font-size: clamp(.88rem, 3vw, 1.35rem); }
}

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE  (< 768px)
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
  /* iOS input zoom fix — CRITICAL */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="tel"],
  input[type="date"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Touch target sizing */
  .btn:not(.btn-sm):not(.qs-btn):not(.co-complete):not(.co-clear):not(.mob-tab) {
    min-height: 42px;
  }
  .btn-sm { min-height: 36px; }

  /* Tighter topbar */
  .top-bar { padding: 0 .85rem; gap: .6rem; }
  .page-title { font-size: .88rem; }

  /* Stat cards smaller on phone */
  .stat-card { padding: .85rem .75rem; gap: .65rem; }
  .stat-icon { width: 42px; height: 42px; font-size: 1.2rem; border-radius: 10px; }
  .stat-label { font-size: .71rem; }

  /* Main content padding */
  .main-content { padding: .75rem; }

  /* Card header */
  .card-header { padding: .8rem 1rem; font-size: .87rem; }

  /* Tables on mobile — min width + horizontal scroll */
  .table-responsive { -webkit-overflow-scrolling: touch; }
}

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE — SMALL PHONES  (< 400px)
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 399.98px) {
  .main-content { padding: .6rem; }
  .p-card-grid { gap: 7px; }
  .p-card { padding: 11px 10px; }
  .p-card-name { font-size: .78rem; }
}

/* ══════════════════════════════════════════════════════════════════════
   GLOBAL STOCK ALERT BANNER
   ══════════════════════════════════════════════════════════════════════ */
.g-stock-bar {
  position: sticky;
  top: var(--topbar-height);
  z-index: 190;
  border-bottom: 1px solid transparent;
  animation: g-pulse 2.8s ease-in-out infinite;
}
.g-stock-bar--danger {
  background: #fef2f2;
  border-color: #fecaca;
  animation-name: g-pulse-danger;
}
.g-stock-bar--warn {
  background: #fffbeb;
  border-color: #fde68a;
  animation-name: g-pulse-warn;
}

@keyframes g-pulse-danger {
  0%, 100% { background: #fef2f2; }
  50%       { background: #fee2e2; }
}
@keyframes g-pulse-warn {
  0%, 100% { background: #fffbeb; }
  50%       { background: #fef3c7; }
}

.g-stock-bar__inner {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem 1.25rem;
  flex-wrap: wrap;
}
.g-stock-bar__icon {
  font-size: 1.05rem;
  flex-shrink: 0;
  line-height: 1;
}
.g-stock-bar--danger .g-stock-bar__icon { color: #dc2626; }
.g-stock-bar--warn   .g-stock-bar__icon { color: #d97706; }

.g-stock-bar__msg {
  flex: 1;
  font-size: .82rem;
  color: #1e293b;
  line-height: 1.4;
}
.g-stock-bar--danger .g-stock-bar__msg strong { color: #dc2626; }
.g-stock-bar--warn   .g-stock-bar__msg strong { color: #92400e; }

.g-stock-bar__link {
  display: inline-flex;
  align-items: center;
  font-size: .78rem;
  font-weight: 700;
  padding: .28rem .8rem;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity .14s;
}
.g-stock-bar__link:hover { opacity: .8; }
.g-stock-bar--danger .g-stock-bar__link { background: #dc2626; color: #fff; }
.g-stock-bar--warn   .g-stock-bar__link { background: #d97706; color: #fff; }

.g-stock-bar__close {
  background: none;
  border: none;
  font-size: .85rem;
  cursor: pointer;
  padding: .2rem .4rem;
  border-radius: 6px;
  flex-shrink: 0;
  line-height: 1;
  opacity: .55;
  transition: opacity .14s;
  -webkit-tap-highlight-color: transparent;
}
.g-stock-bar__close:hover { opacity: 1; }
.g-stock-bar--danger .g-stock-bar__close { color: #dc2626; }
.g-stock-bar--warn   .g-stock-bar__close { color: #92400e; }

/* Hidden when dismissed for session */
.g-stock-bar.g-stock-bar--hidden { display: none !important; }

@media (max-width: 767.98px) {
  .g-stock-bar__inner { padding: .4rem .85rem; gap: .45rem; }
  .g-stock-bar__msg   { font-size: .78rem; }
  .g-stock-bar__link  { font-size: .73rem; padding: .22rem .65rem; }
}

/* ── App Footer ──────────────────────────────────────────────── */
.app-footer {
  text-align: center;
  padding: .65rem 1rem 4.5rem; /* extra bottom padding clears mobile nav */
  font-size: .72rem;
  color: #94a3b8;
  letter-spacing: .3px;
  border-top: 1px solid rgba(0,0,0,.06);
  margin-top: auto;
}
.app-footer strong { color: #64748b; }
@media (min-width: 992px) {
  .app-footer { padding-bottom: .65rem; }
}
