/* ============================================
   GTCons Warehouse – Modern UI
   Clean, refined, beautiful design system
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Noto+Sans+Armenian:wght@400;500;600;700&display=swap');

:root {
  /* Palette – refined slate + indigo */
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: #e0e7ff;
  --primary-subtle: rgba(99, 102, 241, 0.08);
  --accent: #0ea5e9;
  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --info: #3b82f6;

  /* Neutrals */
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;

  /* Sidebar */
  --sidebar-bg: #0f172a;
  --sidebar-text: rgba(255,255,255,0.9);
  --sidebar-text-muted: rgba(255,255,255,0.6);
  --sidebar-hover: rgba(255,255,255,0.06);
  --sidebar-active: rgba(99, 102, 241, 0.2);
  --sidebar-border: rgba(255,255,255,0.06);

  /* UI */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-glow: 0 0 0 3px var(--primary-light);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.2s var(--ease);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Plus Jakarta Sans', 'Noto Sans Armenian', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Login ---------- */
#login-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(160deg, #1e1b4b 0%, #312e81 40%, #4c1d95 100%);
  position: relative;
  overflow: hidden;
}

#login-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.25), transparent),
              radial-gradient(ellipse 60% 40% at 100% 100%, rgba(139, 92, 246, 0.15), transparent);
  pointer-events: none;
}

#login-section.hidden { display: none !important; }
#login-section:not(.hidden) { display: flex !important; }

.login-card {
  background: var(--surface);
  max-width: 420px;
  width: 100%;
  padding: 48px 40px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255,255,255,0.08);
  animation: cardIn 0.5s var(--ease);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-card .login-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 32px;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.login-card h1 {
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.login-card .login-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.5;
}

.login-error {
  display: none;
  background: var(--danger-light);
  color: #b91c1c;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.login-error.show { display: block; animation: shake 0.4s ease; }

@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.login-card .form-group { margin-bottom: 20px; }

.login-card label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.login-card input[type="password"] {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.login-card input[type="password"]::placeholder { color: var(--text-subtle); }

.login-card input[type="password"]:hover { border-color: var(--text-subtle); }

.login-card input[type="password"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.login-card .btn-login {
  width: 100%;
  margin-top: 8px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.login-card .btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.login-card .btn-login:active { transform: translateY(0); }

/* ---------- Dashboard layout – horizontal (top bar + content) ---------- */
#dashboard-section {
  display: none;
  min-height: 100vh;
  flex-direction: column;
  overflow: hidden;
}

#dashboard-section.visible { display: flex; }
#dashboard-section.visible .main-content { display: block; }

/* Horizontal top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  min-height: 64px;
  padding: 0 24px;
  background: var(--sidebar-bg);
  border-bottom: 1px solid var(--sidebar-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.topbar-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.topbar-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.topbar-nav .nav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  margin: 0;
  color: var(--sidebar-text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: none;
  border-bottom: 3px solid transparent;
  width: auto;
  transition: all var(--transition);
  cursor: pointer;
  background: none;
  font-family: inherit;
}

.topbar-nav .nav-item:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-text);
}

.topbar-nav .nav-item.active {
  background: var(--sidebar-active);
  color: #fff;
  border-bottom-color: var(--primary);
}

.nav-item .nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.9;
  font-size: 16px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sidebar-text-muted);
  font-size: 14px;
}

.btn-logout-topbar {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  background: rgba(255,255,255,0.08);
  color: var(--sidebar-text);
  border: 1px solid var(--sidebar-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
  font-family: inherit;
}

.btn-logout-topbar:hover {
  background: rgba(255,255,255,0.12);
}

/* Main content – full width below top bar */
.main-content {
  flex: 1;
  width: 100%;
  margin: 0;
  padding: 28px 32px 48px;
  min-height: calc(100vh - 64px);
  background: var(--bg);
}

.view { display: none; }
.view.active { display: block; animation: viewIn 0.25s var(--ease); }

@keyframes viewIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Page header */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 14px;
  letter-spacing: -0.02em;
}

.page-header h1 .page-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-subtle);
  color: var(--primary);
  border-radius: var(--radius-sm);
  font-size: 20px;
}

.page-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* Search */
.search-wrap {
  position: relative;
  width: 260px;
}

.search-wrap .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--text-subtle);
  pointer-events: none;
}

.search-wrap input {
  width: 100%;
  padding: 11px 16px 11px 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-wrap input::placeholder { color: var(--text-subtle); }
.search-wrap input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, #6d28d9 100%);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border-light);
  border-color: var(--text-subtle);
}

.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-info { background: var(--info); color: #fff; }

.btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  color: #fff;
  border-color: transparent;
}

.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-icon { padding: 10px; min-width: 40px; min-height: 40px; }
.btn-icon svg { width: 18px; height: 18px; }

/* Cards */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  border: 1px solid var(--border-light);
}

.card-title-icon { margin-right: 6px; opacity: 0.9; }
.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}

/* Stats grid – horizontal row */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.stat-card .stat-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.stat-card .stat-icon.blue {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.stat-card .stat-icon.green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.stat-card .stat-icon.orange {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.stat-card .stat-icon.purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

.stat-card .stat-value {
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.stat-card .stat-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Tables */
.table-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  border: 1px solid var(--border-light);
}

.table-card .table-wrap { overflow-x: auto; }

.table-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.table-card thead {
  background: var(--bg);
}

.table-card th {
  padding: 16px 20px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.table-card td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
}

.table-card tbody tr {
  transition: background var(--transition);
}

.table-card tbody tr:hover td {
  background: var(--primary-subtle);
}

.table-card tbody tr:last-child td { border-bottom: none; }

.table-card .empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  font-size: 15px;
}

.table-card .empty-state.error-state {
  color: var(--danger, #b91c1c);
}

/* Materials page – big full-width table */
#materials-view .table-card {
  width: 100%;
  max-width: none;
}

#materials-view .table-card .table-wrap {
  width: 100%;
  overflow-x: auto;
}

#materials-view .table-card table {
  width: 100%;
  min-width: 100%;
  font-size: 16px;
}

#materials-view .table-card th,
#materials-view .table-card td {
  padding: 18px 22px;
}

#materials-view .table-card th {
  font-size: 13px;
}

/* Admin panel – Materials & Tools management tables: same big style as materials page */
#admin-view .card.table-card {
  width: 100%;
  max-width: none;
}

#admin-view .card.table-card .table-wrap {
  width: 100%;
  overflow-x: auto;
}

#admin-view .card.table-card table {
  width: 100%;
  min-width: 100%;
  font-size: 16px;
}

#admin-view .card.table-card th,
#admin-view .card.table-card td {
  padding: 18px 22px;
}

#admin-view .card.table-card th {
  font-size: 13px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
}

.badge-success { background: var(--success-light); color: #065f46; }
.badge-warning { background: var(--warning-light); color: #92400e; }
.badge-danger { background: var(--danger-light); color: #991b1b; }

/* Forms */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.form-group { margin-bottom: 22px; }

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:hover,
.form-group select:hover { border-color: var(--text-subtle); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.error-message {
  display: none;
  background: var(--danger-light);
  color: #b91c1c;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
}

.error-message.show { display: block; }

.readonly-input { background: var(--bg); color: var(--text-muted); cursor: default; }
.form-readonly { margin: 0 0 22px; font-size: 15px; color: var(--text); }

/* Admin tabs */
.admin-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
}

.admin-tab {
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 600;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: color var(--transition), border-color var(--transition);
}

.admin-tab:hover { color: var(--text); }

.admin-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* Modals */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active { display: flex; animation: overlayIn 0.2s var(--ease); }

@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  animation: modalIn 0.3s var(--ease);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-light);
}

.modal-header h2 {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.modal-close {
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: var(--bg);
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.modal-close:hover {
  background: var(--border-light);
  color: var(--text);
}

.modal-body { padding: 28px; }
.modal-footer {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  padding: 20px 28px;
  border-top: 1px solid var(--border-light);
  background: var(--bg);
}

.modal-content.modal-confirm { max-width: 420px; }
.modal-confirm-message {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

/* Toast */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: var(--success);
  color: #fff;
  padding: 16px 22px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  font-size: 15px;
  font-weight: 500;
  animation: toastIn 0.35s var(--ease);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

/* Placement filter */
.placement-filter {
  margin-bottom: 24px;
}

/* In/Out filter bar */
.inout-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
}

.inout-filter-bar .form-group {
  margin-bottom: 0;
}

.inout-filter-bar .form-group label {
  margin-bottom: 6px;
}

/* Table action buttons */
.table-card .table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.table-card .btn-icon {
  border-radius: var(--radius-sm);
  transition: transform var(--transition);
}

.table-card .btn-icon:hover {
  transform: scale(1.05);
}

.placement-filter label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.placement-filter select {
  max-width: 320px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
}

/* Scroll list (recent items) */
.scroll-list {
  max-height: 400px;
  overflow-y: auto;
}

.scroll-list::-webkit-scrollbar { width: 6px; }
.scroll-list::-webkit-scrollbar-track { background: var(--border-light); border-radius: 3px; }
.scroll-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* Dashboard recent lists – horizontal: two columns side by side */
.dashboard-recent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.dashboard-recent-grid .card {
  min-height: 320px;
}

.scroll-list .recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 15px;
  color: var(--text);
  transition: background var(--transition);
}

.scroll-list .recent-item:last-child { border-bottom: none; }
.scroll-list .recent-item:hover { background: var(--primary-subtle); padding-left: 12px; padding-right: 12px; margin: 0 -12px; border-radius: var(--radius-sm); }

.scroll-list .recent-item .recent-qty {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1200px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-recent-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .topbar {
    padding: 12px 16px;
    min-height: auto;
  }

  .topbar-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .topbar-nav .nav-item {
    flex-shrink: 0;
    padding: 8px 12px;
    font-size: 13px;
  }

  .main-content {
    padding: 20px 16px 40px;
  }

  .stats-grid { grid-template-columns: 1fr; }
  .dashboard-recent-grid { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .page-actions { width: 100%; }
  .search-wrap { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .modal-content { max-width: 95%; }
  .login-card { padding: 36px 28px; }
}

.hidden { display: none !important; }
