/**
 * gudang.css — Stylesheet utama aplikasi Gudang TB Cahaya Nabila
 *
 * Dipakai oleh : Views/layouts/gudang.php
 * Dependensi   : Google Fonts (Inter), CSS Variables
 * Scope        : Layout gudang, sidebar, topbar, cards, form, tabel, badge, alert
 *
 * @updated 2026-09-18
 */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --primary:       #16a34a;
  --primary-dark:  #15803d;
  --primary-light: #dcfce7;
  --primary-xlight:#f0fdf4;
  --accent:        #f59e0b;
  --danger:        #dc2626;
  --danger-light:  #fef2f2;
  --warning:       #f97316;
  --warning-light: #fff7ed;
  --info:          #3b82f6;
  --info-light:    #eff6ff;
  --gray-50:       #f9fafb;
  --gray-100:      #f3f4f6;
  --gray-200:      #e5e7eb;
  --gray-300:      #d1d5db;
  --gray-400:      #9ca3af;
  --gray-500:      #6b7280;
  --gray-600:      #4b5563;
  --gray-700:      #374151;
  --gray-800:      #1f2937;
  --gray-900:      #111827;
  --white:         #ffffff;
  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     16px;
  --shadow:        0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:     0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg:     0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --sidebar-w:     240px;
  --topbar-h:      60px;
  --transition:    .2s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }

/* ============================================================
   LAYOUT — SIDEBAR + MAIN
   ============================================================ */
.app-wrapper { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--gray-900);
  display: flex;
  flex-direction: column;
  z-index: 200;
  transform: translateX(-100%);
  transition: transform var(--transition);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }

@media (min-width: 768px) {
  .sidebar { transform: translateX(0); }
  .main-content { margin-left: var(--sidebar-w); }
}

/* Sidebar brand */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-brand .brand-icon {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.brand-name { font-size: .82rem; font-weight: 700; color: var(--white); line-height: 1.2; }
.brand-sub  { font-size: .65rem; color: var(--gray-400); }

.sidebar-close {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--gray-300);
  font-size: 1rem;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  transition: background var(--transition), color var(--transition);
}
.sidebar-close:hover, .sidebar-close:active {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}
@media (min-width: 768px) { .sidebar-close { display: none !important; } }

/* Sidebar nav */
.sidebar-nav { flex: 1; padding: 12px 8px; }
.nav-label {
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-500);
  padding: 8px 8px 4px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--gray-300);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  margin-bottom: 2px;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: var(--white); }
.nav-item.active { background: var(--primary); color: var(--white); }
.nav-item .icon { font-size: 1.1rem; width: 20px; text-align: center; flex-shrink: 0; }
.nav-item .badge {
  margin-left: auto;
  background: var(--danger);
  color: var(--white);
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
}

/* Sidebar footer */
.sidebar-footer {
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.user-info:hover {
  background: rgba(255,255,255,.08);
}
.user-avatar {
  width: 34px; height: 34px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700; color: var(--white); flex-shrink: 0;
  object-fit: cover;
  border: 1.5px solid rgba(255,255,255,0.2);
}
.user-name  { font-size: .8rem; font-weight: 600; color: var(--white); }
.user-role  { font-size: .65rem; color: var(--gray-400); }
.btn-install-pwa {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-install-pwa:hover {
  background: var(--primary-dark);
}
.btn-logout {
  display: flex; align-items: center; gap: 6px;
  margin-top: 6px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  color: var(--gray-400);
  font-size: .8rem;
  transition: color var(--transition), background var(--transition);
  width: 100%;
}
.btn-logout:hover { color: var(--danger); background: rgba(220,38,38,.1); }

/* Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 150;
}
.sidebar-overlay.show { display: block; }
@media (min-width: 768px) { .sidebar-overlay { display: none !important; } }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  height: var(--topbar-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  z-index: 100;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.topbar-toggle {
  background: none; border: none; cursor: pointer;
  font-size: 1.3rem; color: var(--gray-700);
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.topbar-toggle:hover { background: var(--gray-100); }
@media (min-width: 768px) { .topbar-toggle { display: none; } }

.topbar-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-date {
  font-size: .75rem;
  color: var(--gray-500);
  white-space: nowrap;
}
@media (max-width: 500px) {
  .topbar-date { display: none; }
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content { flex: 1; min-width: 0; }
.page-content {
  padding: 14px 12px 76px 12px;
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .page-content { padding: 24px 24px 36px 24px; }
}

.page-header { margin-bottom: 16px; }
.page-header h1 { font-size: 1.25rem; font-weight: 800; color: var(--gray-900); line-height: 1.3; }
.page-header p  { font-size: .82rem; color: var(--gray-500); margin-top: 3px; }

/* ============================================================
   STAT CARDS (Dashboard)
   ============================================================ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
@media (min-width: 640px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform var(--transition), box-shadow var(--transition);
}
@media (min-width: 640px) {
  .stat-card { padding: 16px; gap: 6px; }
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.stat-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
}
@media (min-width: 640px) {
  .stat-icon { width: 40px; height: 40px; font-size: 1.25rem; }
}
.stat-icon.green   { background: var(--primary-light); }
.stat-icon.blue    { background: var(--info-light); }
.stat-icon.amber   { background: var(--warning-light); }
.stat-icon.red     { background: var(--danger-light); }

.stat-value { font-size: 1.35rem; font-weight: 800; color: var(--gray-900); line-height: 1.1; }
@media (min-width: 640px) {
  .stat-value { font-size: 1.5rem; }
}
.stat-label { font-size: .72rem; color: var(--gray-500); font-weight: 600; }
.stat-sub   { font-size: .68rem; color: var(--gray-400); }

/* ============================================================
   CARDS (generic)
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  overflow: hidden;
}
.card-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-title { font-size: .88rem; font-weight: 700; color: var(--gray-800); }
.card-body  { padding: 14px; }
@media (min-width: 640px) {
  .card-header { padding: 14px 16px; }
  .card-body  { padding: 16px; }
}

/* ============================================================
   ALERT STRIP (stok menipis)
   ============================================================ */
.alert-strip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: .85rem;
}
.alert-strip.warning { background: var(--warning-light); border-left: 4px solid var(--warning); }
.alert-strip.danger  { background: var(--danger-light);  border-left: 4px solid var(--danger); }
.alert-strip.success { background: var(--primary-light); border-left: 4px solid var(--primary); }
.alert-strip.info    { background: var(--info-light);    border-left: 4px solid var(--info); }
.alert-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.alert-text strong { display: block; font-weight: 600; margin-bottom: 2px; }

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash {
  padding: 12px 14px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: .875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideDown .3s ease;
}
@keyframes slideDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:none; } }
.flash.success { background: var(--primary-light); color: var(--primary-dark); border-left: 4px solid var(--primary); }
.flash.error   { background: var(--danger-light);  color: var(--danger);        border-left: 4px solid var(--danger); }
.flash.info    { background: var(--info-light);    color: var(--info);          border-left: 4px solid var(--info); }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.form-label .req { color: var(--danger); margin-left: 2px; }
.form-control {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 16px; /* Mencegah auto-zoom browser HP / iOS */
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22,163,74,.15);
}
.form-control.is-invalid { border-color: var(--danger); }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-hint { font-size: .75rem; color: var(--gray-500); margin-top: 4px; }
.form-error { font-size: .75rem; color: var(--danger); margin-top: 4px; }

.stok-badge-sm {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary-dark);
  margin-top: 4px;
}
.stok-badge-sm.low { background: var(--danger-light); color: var(--danger); }
.stok-badge-sm.empty { background: var(--gray-100); color: var(--gray-500); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 12px rgba(22,163,74,.3); }
.btn-secondary { background: var(--gray-100); color: var(--gray-700); }
.btn-secondary:hover { background: var(--gray-200); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #b91c1c; }
.btn-outline { background: transparent; border: 1.5px solid var(--gray-300); color: var(--gray-700); }
.btn-outline:hover { background: var(--gray-50); }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: .8rem; }
.btn-xs { min-height: 30px; padding: 4px 8px; font-size: .75rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  content-visibility: auto;
  contain-intrinsic-size: 1px 400px;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .84rem;
}
.table th {
  background: var(--gray-50);
  padding: 9px 12px;
  text-align: left;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--gray-500);
  border-bottom: 2px solid var(--gray-200);
  white-space: nowrap;
}
.table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--gray-50); }
.table-empty td { text-align: center; padding: 32px; color: var(--gray-400); }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  white-space: nowrap;
}
.badge-green  { background: var(--primary-light); color: var(--primary-dark); }
.badge-red    { background: var(--danger-light); color: var(--danger); }
.badge-amber  { background: var(--warning-light); color: #92400e; }
.badge-gray   { background: var(--gray-100); color: var(--gray-600); }
.badge-blue   { background: var(--info-light); color: #1d4ed8; }

/* ============================================================
   SEARCH BAR
   ============================================================ */
.search-wrap {
  position: relative;
  flex: 1;
}
.search-wrap .search-icon {
  position: absolute;
  left: 10px; top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: .9rem;
  pointer-events: none;
}
.search-wrap .form-control { padding-left: 32px; }

/* ============================================================
   TOOLBAR (above table)
   ============================================================ */
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

/* ============================================================
   MINI LIST (stok menipis di dashboard)
   ============================================================ */
.mini-list { list-style: none; }
.mini-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: .82rem;
  gap: 8px;
}
.mini-list li:last-child { border-bottom: none; }
.mini-list .item-name { color: var(--gray-700); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-list .item-stok { font-weight: 700; color: var(--danger); flex-shrink: 0; }

/* ============================================================
   RECENT ACTIVITY
   ============================================================ */
.activity-list { list-style: none; }
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}
.dot-green { background: var(--primary); }
.dot-red   { background: var(--danger); }
.activity-info { flex: 1; min-width: 0; }
.activity-name { font-size: .85rem; font-weight: 600; color: var(--gray-800); }
.activity-meta { font-size: .75rem; color: var(--gray-500); margin-top: 1px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}
.page-btn {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 600;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  cursor: pointer;
  transition: all var(--transition);
}
.page-btn:hover, .page-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ============================================================
   STOK NUMBER DISPLAY
   ============================================================ */
.stok-display {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.stok-display .stok-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-900);
}
.stok-display .stok-sat {
  font-size: .8rem;
  color: var(--gray-500);
  margin-top: 2px;
}
.stok-display.menipis { background: var(--danger-light); border-color: var(--danger); }
.stok-display.menipis .stok-num { color: var(--danger); }

/* ============================================================
   RESPONSIVE UTILS
   ============================================================ */
.d-none { display: none !important; }
@media (min-width: 640px) { .sm\:d-block { display: block !important; } }

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.spinner {
  width: 20px; height: 20px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .6s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   AUTH VIEWS
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, var(--primary-xlight) 0%, var(--white) 60%, var(--info-light) 100%);
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px 28px;
  width: 100%;
  max-width: 400px;
}
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-logo .logo-icon {
  width: 56px; height: 56px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin: 0 auto 10px;
}
.auth-logo h1 { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); }
.auth-logo p  { font-size: .8rem; color: var(--gray-500); }

/* ============================================================
   BOTTOM NAVIGATION (Mobile / HP App-like Navigation)
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  z-index: 120;
  box-shadow: 0 -3px 12px rgba(0,0,0,0.06);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
@media (min-width: 768px) {
  .bottom-nav { display: none !important; }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  color: var(--gray-500);
  font-size: .7rem;
  font-weight: 600;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition), transform .15s ease;
  padding: 4px 2px;
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav-item:active { transform: scale(.92); }
.bottom-nav-item.active { color: var(--primary); font-weight: 700; }
.bottom-nav-item .b-icon { font-size: 1.25rem; line-height: 1.1; margin-bottom: 2px; }
.bottom-nav-item .b-text { line-height: 1; }

/* ============================================================
   FILTER SCROLL (Riwayat & Toolbar per item)
   ============================================================ */
.filter-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.filter-scroll::-webkit-scrollbar { display: none; }

/* ============================================================
   MOBILE RESPONSIVE OVERRIDES (< 640px)
   ============================================================ */
@media (max-width: 639px) {
  .btn-group-mobile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  .btn-group-mobile .btn {
    width: 100%;
  }
  .toolbar form {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .toolbar form .btn {
    width: 100%;
  }
}

