@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Playfair+Display:ital,wght@1,700&display=swap');

:root {
  --bg-dark: #0f1115;
  --bg-card: rgba(20, 22, 28, 0.65);
  --accent-gold: #D4AF37;
  --text-white: #F8F9FA;
  --text-muted: #ADB5BD;
  --sidebar-width: 280px;
  --glass-border: rgba(255, 255, 255, 0.1);
}

body {
  margin: 0;
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3 { margin: 0; }
.brand-name { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--accent-gold); letter-spacing: 1px; }

/* ------------------- LOGIN PAGE ------------------- */
.login-body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: radial-gradient(circle at top right, #1a0f2e 0%, var(--bg-dark) 80%);
  position: relative;
}

.login-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
}

.login-container {
  position: relative;
  z-index: 10;
  background: rgba(25, 27, 34, 0.75);
  backdrop-filter: blur(16px);
  padding: 50px 40px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  width: 100%;
  max-width: 400px;
  text-align: center;
  transform: translateY(0);
  animation: floatUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes floatUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.login-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid var(--accent-gold);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.login-container label {
  display: block;
  text-align: left;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.login-input {
  width: 100%;
  padding: 14px 15px;
  margin-bottom: 20px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-white);
  font-size: 1rem;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.login-input:focus {
  outline: none;
  border-color: var(--accent-gold);
  background: rgba(0,0,0,0.5);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.login-btn {
  width: 100%;
  background: linear-gradient(135deg, #D4AF37 0%, #AA8A2A 100%);
  color: #000;
  border: none;
  padding: 15px;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.error-message {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid #dc3545;
  color: #ff6b6b;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

/* ------------------- ADMIN DASHBOARD ------------------- */
.admin-panel {
  display: flex;
}

.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  background: rgba(18, 20, 26, 0.95);
  backdrop-filter: blur(20px);
  position: fixed;
  padding: 40px 25px;
  border-right: 1px solid var(--glass-border);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.sidebar nav {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.sidebar-nav-main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;
}

.sidebar-nav-main::-webkit-scrollbar {
  width: 6px;
}

.sidebar-nav-main::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.35);
  border-radius: 999px;
}

.logout-link {
  flex: 0 0 auto;
  margin-top: 14px;
  margin-bottom: 0;
  color: #ff6b6b;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
}

.logout-link:hover {
  background: rgba(255, 107, 107, 0.12);
  color: #ff8585;
}

.nav-link {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  text-decoration: none;
  padding: 14px 20px;
  margin-bottom: 10px;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-size: 1.05rem;
  font-weight: 400;
}

.nav-link i { margin-right: 15px; font-size: 1.2rem; }

.nav-link:hover, .nav-link.active {
  background: rgba(212, 175, 55, 0.1);
  color: var(--accent-gold);
  transform: translateX(5px);
}

.sidebar-subnav {
  display: grid;
  gap: 6px;
  margin: -8px 0 14px 58px;
}

.sidebar-subnav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 8px 10px;
  border-left: 2px solid rgba(255,255,255,0.12);
  border-radius: 0 8px 8px 0;
}

.sidebar-subnav-link:hover,
.sidebar-subnav-link.active {
  color: var(--accent-gold);
  border-left-color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.08);
}

.nav-group-label {
  margin: 18px 0 8px 8px;
  color: rgba(184, 190, 204, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.main-content {
  margin-left: var(--sidebar-width);
  padding: 50px 60px;
  flex: 1;
  background: radial-gradient(circle at top right, rgba(74, 43, 140, 0.1) 0%, var(--bg-dark) 50%);
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
}

.main-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(15, 17, 21, 0.9) 0%, rgba(15, 17, 21, 0.95) 100%);
  z-index: -1;
}

.user-profile {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.03);
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
}

.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-left: 15px;
  border: 2px solid var(--accent-gold);
}

.profile-avatar-fallback {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-left: 15px;
  border: 2px solid var(--accent-gold);
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent-gold);
  font-weight: 700;
}

.admin-mode-banner {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.12);
  color: var(--accent-gold);
  font-weight: 700;
}

.admin-mode-banner button {
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  background: var(--accent-gold);
  color: #12141a;
  font-weight: 800;
  cursor: pointer;
}

.profile-logo-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -10px 0 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.profile-logo-preview img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--glass-border);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.stat-card:hover { transform: translateY(-5px); }

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 4px; height: 100%;
  background: var(--accent-gold);
}

.stat-card h3 {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-card p {
  font-size: 3rem;
  color: var(--text-white);
  font-weight: 600;
  margin: 15px 0 0 0;
}

/* Tables */
.table-wrapper {
  margin-top: 40px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.data-table { width: 100%; border-collapse: collapse; }

.data-table th {
  text-align: left;
  padding: 15px;
  color: var(--accent-gold);
  border-bottom: 2px solid rgba(212, 175, 55, 0.3);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 20px 15px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--text-white);
}

.tenant-name {
  font-weight: 700;
  color: var(--text-white);
}

.tenant-subtext {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.tenant-mrr {
  color: #2ecc71 !important;
  font-weight: 800;
  white-space: nowrap;
}

.tenant-select,
.tenant-action-select {
  width: 100%;
  min-width: 150px;
  padding: 9px 10px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 10px;
  background: rgba(18, 20, 26, 0.95);
  color: var(--text-white);
  font-weight: 700;
  outline: none;
}

.tenant-action-select {
  min-width: 165px;
}

.tenant-select:focus,
.tenant-action-select:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.tenant-health,
.tenant-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.tenant-health.healthy,
.tenant-status.active {
  background: rgba(46, 204, 113, 0.16);
  color: #2ecc71;
}

.tenant-health.at-risk,
.tenant-status.pending {
  background: rgba(212, 175, 55, 0.16);
  color: var(--accent-gold);
}

.tenant-health.churn-risk,
.tenant-status.suspended,
.tenant-status.cancelled,
.tenant-status.inactive {
  background: rgba(255, 107, 107, 0.16);
  color: #ff6b6b;
}

.onboarding-meter {
  width: 92px;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}

.onboarding-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-gold), #2ecc71);
}

.plan-feature-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
}

.plan-feature-list li {
  margin: 4px 0;
}

.plan-entitlement-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.plan-entitlement-list span {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.12);
  color: var(--accent-gold);
  font-size: 0.72rem;
  font-weight: 800;
}

.plan-entitlement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 18px;
}

.plan-entitlement-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  color: var(--text-white);
  font-weight: 700;
}

.compact-metrics {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 22px;
}

.revenue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.revenue-panel {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.revenue-panel h4,
.table-wrapper h4 {
  margin: 0 0 18px;
  color: var(--accent-gold);
  font-size: 1rem;
}

.mini-chart,
.bar-list,
.risk-list {
  min-height: 220px;
}

.empty-state {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  border: 1px dashed rgba(212, 175, 55, 0.28);
  border-radius: 14px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.02);
}

.bar-row {
  margin-bottom: 16px;
}

.bar-row-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.bar-row-label strong {
  color: var(--text-white);
}

.bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}

.bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-gold), #2ecc71);
}

.line-bars {
  height: 220px;
  display: flex;
  align-items: end;
  gap: 12px;
  padding-top: 10px;
}

.line-bar {
  flex: 1;
  min-width: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  gap: 8px;
}

.line-bar span {
  width: 100%;
  max-width: 32px;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, var(--accent-gold), rgba(212, 175, 55, 0.28));
}

.line-bar small {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.risk-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.risk-item strong {
  display: block;
  color: var(--text-white);
}

.risk-item span:not(.tenant-health) {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.risk-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.risk-actions .tenant-action-select {
  min-width: 140px;
}

.expiry-alerts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.expiry-analytics-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
}

.expiry-analytics-row div {
  padding: 13px 14px;
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: 8px;
  background: rgba(255,255,255,0.025);
}

.expiry-analytics-row span,
.expiry-analytics-row small {
  display: block;
}

.expiry-analytics-row span {
  color: var(--text-white);
  font-size: 1.35rem;
  font-weight: 800;
}

.expiry-analytics-row small {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.expiry-panel h4 {
  margin-bottom: 16px;
}

.expiry-summary-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.expiry-summary-row div {
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
}

.expiry-summary-row span,
.expiry-summary-row small {
  display: block;
}

.expiry-summary-row span {
  color: var(--text-white);
  font-size: 1.7rem;
  font-weight: 800;
}

.expiry-summary-row small {
  color: var(--text-muted);
  margin-top: 4px;
}

.expiry-task-list {
  display: grid;
  gap: 12px;
}

.expiry-task-section {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
}

.expiry-task-section + .expiry-task-section {
  margin-top: 14px;
}

.expiry-task-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.expiry-task-section-head strong {
  color: var(--text-white);
  font-size: 1rem;
}

.expiry-task-section-head span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.expiry-task {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-left: 4px solid var(--accent-gold);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
}

.expiry-task.expiring_soon {
  border-color: rgba(80, 220, 135, 0.2);
  border-left-color: #50dc87;
  background: rgba(80, 220, 135, 0.045);
}

.expiry-task.expiring_today {
  border-color: rgba(245, 178, 66, 0.28);
  border-left-color: #f5b242;
  background: rgba(245, 178, 66, 0.06);
}

.expiry-task.expired_urgent,
.expiry-task.urgent {
  border-color: rgba(255, 107, 107, 0.35);
  border-left-color: #ff6b6b;
  background: rgba(255, 107, 107, 0.055);
}

.expiry-task-main strong {
  color: var(--text-white);
}

.expiry-task-main p {
  color: var(--text-muted);
  margin: 8px 0 0;
  font-size: 0.9rem;
}

.expiry-task-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.expiry-task-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-weight: 800;
}

.expiry-task.expiring_soon .expiry-task-badge {
  color: #50dc87;
  background: rgba(80, 220, 135, 0.12);
}

.expiry-task.expiring_today .expiry-task-badge {
  color: #f5b242;
  background: rgba(245, 178, 66, 0.14);
}

.expiry-task.expired_urgent .expiry-task-badge,
.expiry-task.urgent .expiry-task-badge {
  color: #ff8585;
  background: rgba(255, 107, 107, 0.14);
}

.expiry-task-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.expiry-task-actions button {
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(212, 175, 55, 0.12);
  color: var(--accent-gold);
  font-weight: 700;
  cursor: pointer;
}

.expiry-task-actions .review-btn {
  border-color: rgba(255, 107, 107, 0.35);
  background: rgba(255, 107, 107, 0.12);
  color: #ff8585;
}

.food-location {
  margin-top: 6px;
  color: var(--accent-gold);
  font-size: 0.82rem;
}

.food-workspace-tabs {
  display: flex;
  gap: 10px;
  margin: 0 0 18px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.food-workspace-tab {
  appearance: none;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.sidebar-subnav .food-workspace-tab {
  background: transparent;
  border-top: none;
  border-right: none;
  border-bottom: none;
  white-space: normal;
}

.food-workspace-tab:hover,
.food-workspace-tab.active {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.12);
}

.food-workspace-panel {
  display: none;
}

.food-workspace-panel.active {
  display: block;
}

.workspace-card {
  background: rgba(18, 20, 26, 0.82);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 22px;
}

.allergen-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 107, 107, 0.12);
  color: #ff8585;
  font-size: 0.82rem;
  font-weight: 800;
}

.recipe-ingredient-rows {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.recipe-ingredient-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 90px 90px auto auto;
  gap: 10px;
  align-items: start;
}

.recipe-ingredient-row .login-input {
  margin-bottom: 0;
}

.ingredient-search-wrap {
  position: relative;
}

.ingredient-source {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 5px;
}

.ingredient-suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  background: #14171d;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.35);
}

.ingredient-suggestions button {
  display: flex;
  width: 100%;
  cursor: pointer;
  flex-direction: column;
  gap: 2px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 12px;
  color: var(--text-white);
  background: transparent;
  text-align: left;
}

.ingredient-suggestions button:hover {
  background: rgba(212, 175, 55, 0.12);
}

.ingredient-suggestions span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.recipe-allergen-summary {
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  padding: 11px 13px;
  color: var(--text-muted);
  background: rgba(212, 175, 55, 0.06);
}

.recipe-ai-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.ai-action-btn {
  width: auto;
  padding: 10px 16px;
}

.ai-action-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.ai-usage-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  font-size: 0.86rem;
}

.recipe-ai-panel {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 8px;
  background: rgba(18, 20, 26, 0.72);
}

.recipe-ai-loading,
.recipe-ai-error,
.recipe-ai-safety {
  padding: 12px;
  border-radius: 8px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.035);
}

.recipe-ai-error {
  color: #ff8585;
  border: 1px solid rgba(255, 107, 107, 0.28);
}

.recipe-ai-summary {
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.08);
}

.recipe-ai-summary strong,
.recipe-ai-section h5 {
  color: var(--accent-gold);
}

.recipe-ai-summary p,
.recipe-ai-card p {
  margin: 6px 0 0;
}

.recipe-ai-section {
  margin-top: 14px;
}

.recipe-ai-card-grid {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.recipe-ai-card {
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.025);
}

.recipe-ai-card.ignored {
  opacity: 0.6;
}

.recipe-ai-suggestion {
  color: var(--text-white);
  font-weight: 700;
}

.recipe-ai-reason {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.ai-confidence,
.ai-testing-warning {
  display: inline-flex;
  margin-top: 8px;
  margin-right: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.ai-testing-warning {
  color: #f6b94b;
}

.recipe-ai-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.recipe-ai-safety {
  margin-top: 14px;
  font-size: 0.86rem;
}

.recipe-ai-selector-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 12px;
}

.recipe-ai-selector-list {
  display: grid;
  gap: 10px;
  margin: 8px 0 14px;
}

.recipe-selector-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.025);
  color: var(--text-white);
  text-align: left;
}

.recipe-selector-item span {
  color: var(--text-muted);
}

.recipe-selector-item.selected,
.recipe-selector-item:hover {
  border-color: rgba(212, 175, 55, 0.55);
  background: rgba(212, 175, 55, 0.1);
}

.marketing-ai-workspace,
.marketing-ai-history {
  margin-top: 18px;
}

.marketing-ai-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.marketing-ai-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 16px;
}

.marketing-ai-results {
  margin-top: 14px;
}

.marketing-ai-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.marketing-ai-card,
.marketing-saved-card {
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.025);
}

.marketing-ai-card h4 {
  margin: 0 0 8px;
  color: var(--accent-gold);
}

.marketing-ai-card p {
  color: var(--text-white);
  white-space: pre-wrap;
}

.marketing-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.marketing-saved-list {
  display: grid;
  gap: 10px;
}

.marketing-saved-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.marketing-saved-card strong,
.marketing-saved-card span,
.marketing-saved-card small {
  display: block;
}

.marketing-saved-card span,
.marketing-saved-card small {
  margin-top: 4px;
  color: var(--text-muted);
}

.assistant-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.assistant-action-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  cursor: pointer;
  padding: 18px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  color: var(--text-white);
  text-align: left;
}

.assistant-action-card:hover {
  border-color: rgba(212, 175, 55, 0.48);
  background: rgba(212, 175, 55, 0.08);
}

.assistant-action-card i {
  color: var(--accent-gold);
  font-size: 1.35rem;
}

.assistant-action-card span {
  color: var(--text-muted);
}

.assistant-input-panel,
.assistant-history-panel {
  margin-top: 18px;
}

.assistant-result-panel {
  margin-top: 18px;
}

.assistant-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.assistant-result-card {
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.025);
}

.assistant-result-card.wide {
  margin-bottom: 12px;
}

.assistant-result-card h4 {
  color: var(--accent-gold);
  margin: 0 0 8px;
}

.assistant-result-card ul {
  padding-left: 18px;
  color: var(--text-white);
}

.compact-table {
  margin-top: 0;
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

.settings-group {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.settings-group h4 {
  margin: 0 0 12px;
  color: var(--accent-gold);
}

.unit-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.unit-settings-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  color: var(--text-white);
  font-weight: 700;
}

.dashboard-errors {
  margin-top: 24px;
}

.filter-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 18px 0;
}

.filter-row .login-input {
  width: auto;
  min-width: 170px;
  margin: 0;
}

.slim-btn {
  width: auto !important;
  padding: 9px 14px !important;
  font-size: 0.86rem !important;
}

.danger-btn {
  background: rgba(255, 107, 107, 0.18) !important;
  color: #ff6b6b !important;
  border: 1px solid rgba(255, 107, 107, 0.32) !important;
}

.notification-wrap {
  position: relative;
}

.notification-bell {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.04);
  color: var(--accent-gold);
  cursor: pointer;
}

.notification-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ff6b6b;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.notification-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 54px;
  width: 340px;
  max-height: 430px;
  overflow: auto;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: rgba(18, 20, 26, 0.98);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  z-index: 3000;
}

.notification-dropdown.open {
  display: block;
}

.notification-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: var(--text-white);
}

.notification-head button {
  border: 0;
  background: transparent;
  color: var(--accent-gold);
  font-weight: 800;
  cursor: pointer;
}

.notification-item {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--text-muted);
}

.notification-item.unread {
  background: rgba(212, 175, 55, 0.08);
}

.notification-item strong,
.notification-item span,
.notification-item small {
  display: block;
}

.notification-item strong {
  color: var(--text-white);
  margin-bottom: 4px;
}

.notification-item small {
  color: var(--text-muted);
  margin-top: 6px;
  font-size: 0.72rem;
}

.flag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.flag-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 22px;
}

.flag-card strong,
.flag-card span {
  display: block;
}

.flag-card strong {
  color: var(--text-white);
}

.flag-card span {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 30px;
  flex: 0 0 auto;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch span {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
  transition: 0.2s ease;
}

.switch span::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  transition: 0.2s ease;
}

.switch input:checked + span {
  background: var(--accent-gold);
}

.switch input:checked + span::before {
  transform: translateX(24px);
}

.timeline-list {
  display: grid;
  gap: 12px;
  max-height: 520px;
  overflow: auto;
}

.timeline-item {
  position: relative;
  padding: 14px 14px 14px 22px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 18px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-gold);
}

.timeline-item strong,
.timeline-item span,
.timeline-item small {
  display: block;
}

.timeline-item strong {
  color: var(--text-white);
}

.timeline-item span {
  color: var(--text-muted);
  margin-top: 5px;
  word-break: break-word;
}

.timeline-item small {
  color: var(--text-muted);
  margin-top: 8px;
  font-size: 0.75rem;
}

.staff-avatar {
  width: 35px; height: 35px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: 10px;
}

.toast {
  position: fixed; top: 20px; right: 20px; padding: 15px 25px; border-radius: 10px;
  color: white; font-weight: 600; z-index: 9999; display: none;
  animation: slideIn 0.3s ease;
}
.toast.success { background: #2ecc71; }
.toast.error { background: #e74c3c; }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.form-row { display: flex; gap: 15px; align-items: center; }

/* ------------------- PRINT LABEL STYLES ------------------- */
@media print {
  @page {
    size: 90mm 29mm;
    margin: 0;
  }

  html,
  body {
    background: #fff !important;
    width: 90mm !important;
    height: 29mm !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  body * {
    visibility: hidden !important;
  }

  #printArea,
  #printArea * {
    visibility: visible !important;
  }

  body.label-printing .sidebar,
  body.label-printing .main-content,
  body.label-printing header,
  body.label-printing nav,
  body.label-printing .modal-overlay,
  body.label-printing #toast,
  body.label-printing #loadingOverlay {
    display: none !important;
  }

  #printArea {
    display: block !important;
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    width: 90mm !important;
    height: 29mm !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
    color: #000 !important;
  }

  .print-label-content {
    width: 90mm !important;
    height: 29mm !important;
    max-width: 90mm !important;
    max-height: 29mm !important;
    padding: 2.5mm 3mm !important;
    font-family: Arial, Helvetica, sans-serif !important;
    color: #000 !important;
    background: #fff !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .print-label-content h2 {
    font-size: 11pt !important;
    line-height: 1.05 !important;
    font-weight: 800 !important;
    margin: 0 0 1.2mm 0 !important;
    padding-bottom: 1mm !important;
    border-bottom: 0.3mm solid #000 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    color: #000 !important;
  }

  .print-label-content p {
    font-size: 8.5pt !important;
    line-height: 1.1 !important;
    margin: 0.5mm 0 !important;
    color: #000 !important;
  }

  .print-label-content .use-by {
    font-size: 10pt !important;
    line-height: 1.08 !important;
    font-weight: 800 !important;
    margin: 1mm 0 !important;
    padding: 1mm 0 !important;
    border-top: 0.25mm dashed #000 !important;
    border-bottom: 0.25mm dashed #000 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    color: #000 !important;
  }

  .print-label-content .label-location,
  .print-label-content .label-ingredients,
  .print-label-content .label-allergens {
    font-size: 7.5pt !important;
    line-height: 1.05 !important;
    max-height: 7mm !important;
    overflow: hidden !important;
    color: #000 !important;
  }
  
  .print-label-content .initial {
    font-size: 9pt !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    text-align: right;
    margin-top: auto;
    color: #000 !important;
  }

  #printArea.label-29x90,
  #printArea.label-29x90 .print-label-content,
  .print-label-content.label-29x90 {
    width: 90mm !important;
    height: 29mm !important;
  }
}

/* Final responsive hardening pass for Kenzi Core screens.
   This block intentionally lives at the end so older page-specific overrides do not win on phones/tablets. */
*, *::before, *::after {
  box-sizing: border-box;
}

img, svg, canvas, video {
  max-width: 100%;
  height: auto;
}

@media screen and (max-width: 1180px) {
  :root {
    --sidebar-width: 240px;
  }

  .main-content {
    padding: 32px 28px !important;
  }

  .dashboard-primary-metrics,
  .dashboard-secondary-metrics,
  .dashboard-overview-grid,
  .dashboard-action-grid,
  .dashboard-panels-grid,
  .dashboard-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #shoppingListSection .shopping-top-grid,
  #shoppingListSection .shopping-layout-grid,
  #shoppingListSection .shopping-procurement-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #shoppingListSection .shopping-right-sidebar,
  #shoppingListSection .shopping-top-sidebar {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  #shoppingListSection .shopping-top-grid .shopping-stats-row,
  #shoppingListSection .shopping-stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #foodSection.label-station-page .label-station-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
  }

  #foodSection.label-station-page .label-print-drawer {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    max-height: none !important;
  }

  #foodSection.label-station-page .label-print-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
  }

  .recipe-management-layout,
  .recipe-overview-grid,
  .recipe-detail-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .shopping-mode-topbar,
  .shopping-mode-workspace {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .shopping-mode-top-actions {
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
  }

  .shopping-mode-side {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}

@media screen and (max-width: 900px) {
  html {
    -webkit-text-size-adjust: 100%;
  }

  body {
    width: 100%;
    overflow-x: hidden !important;
  }

  .admin-panel {
    display: block !important;
    min-width: 0 !important;
  }

  .sidebar {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 12px 14px 8px !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    z-index: 2500 !important;
    overflow: visible !important;
  }

  .sidebar-header {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin: 0 0 8px !important;
  }

  .brand-name,
  .sidebar .brand-name {
    font-size: 1.35rem !important;
    line-height: 1.1 !important;
    margin: 0 !important;
  }

  .sidebar-brand-subtitle,
  .brand-subtitle {
    font-size: 0.68rem !important;
    line-height: 1.1 !important;
    margin: 2px 0 0 !important;
  }

  .sidebar nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 0 0 4px !important;
    margin: 0 !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .sidebar-nav-main {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-direction: row !important;
    gap: 8px !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .nav-link,
  .sidebar .nav-link,
  .logout-link {
    flex: 0 0 auto !important;
    min-height: 38px !important;
    height: 38px !important;
    padding: 8px 11px !important;
    margin: 0 !important;
    border-radius: 10px !important;
    font-size: 0.78rem !important;
    line-height: 1 !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    transform: none !important;
  }

  .nav-link i,
  .sidebar .nav-link i,
  .logout-link i {
    width: auto !important;
    min-width: 16px !important;
    margin-right: 7px !important;
    font-size: 0.9rem !important;
  }

  .nav-group-label,
  .sidebar-subnav {
    display: none !important;
  }

  .logout-link {
    border-top: 0 !important;
    margin-top: 0 !important;
  }

  .sidebar-profile-wrap,
  .user-profile {
    display: none !important;
  }

  .main-content {
    width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    padding: 18px 14px 34px !important;
    overflow-x: hidden !important;
  }

  .page-section {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  #globalHeader,
  .dashboard-global-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    margin: 0 0 16px !important;
  }

  .dashboard-title-block h1,
  #dynamicPageTitle h1,
  .page-title,
  .section-title {
    font-size: 26px !important;
    line-height: 1.12 !important;
  }

  .dashboard-title-block p,
  #dynamicPageTitle p {
    font-size: 13px !important;
    line-height: 18px !important;
  }

  .dashboard-header-actions,
  .dashboard-header-button-row,
  .top-actions {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .dashboard-search-wrap,
  .global-search,
  .search-bar {
    width: 100% !important;
    max-width: none !important;
  }

  input,
  select,
  textarea,
  .login-input {
    max-width: 100% !important;
  }

  input.login-input,
  select.login-input,
  textarea.login-input,
  .dashboard-search-wrap input,
  #foodSearchInput,
  #shoppingSearchInput {
    font-size: 16px !important;
  }

  .login-btn,
  .slim-btn,
  .secondary-btn,
  button:not(.icon-only):not(.dashboard-icon-button) {
    min-height: 44px;
  }

  .workspace-card,
  .dashboard-panel,
  .card,
  .modal-card,
  .settings-card {
    max-width: 100% !important;
  }

  .dashboard-primary-metrics,
  .dashboard-secondary-metrics,
  .dashboard-overview-grid,
  .dashboard-action-grid,
  .dashboard-panels-grid,
  .dashboard-metric-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .dashboard-metric-card,
  .dashboard-action-card,
  .dashboard-panel {
    min-width: 0 !important;
  }

  .table-wrapper,
  .data-table-wrapper,
  .logs-table-wrapper,
  .shopping-table-wrap,
  .mock-shopping-table,
  .recipe-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  table,
  .data-table,
  .activity-table {
    min-width: 640px;
  }

  .modal-overlay,
  .shopping-form-overlay {
    align-items: stretch !important;
    justify-content: stretch !important;
    padding: 0 !important;
  }

  .modal-content,
  .modal-card,
  .manage-menu-modal,
  .category-modal {
    width: 100% !important;
    max-width: none !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    overflow-y: auto !important;
  }

  #shoppingFormCard.workspace-card.shopping-form-card.shopping-slide-panel,
  #shoppingFormCard.shopping-slide-panel {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    padding: 18px 16px 0 !important;
  }

  .shopping-form-grid,
  .shopping-form-row,
  .shopping-details-grid,
  .shopping-more-grid,
  .shopping-form-actions {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .shopping-form-actions {
    flex-direction: column-reverse !important;
  }

  .shopping-form-actions .login-btn {
    width: 100% !important;
  }

  #shoppingListSection .shopping-page-header,
  #shoppingListSection .shopping-header-actions,
  #shoppingListSection .procurement-toolbar,
  #shoppingListSection .shopping-mode-card-head {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  #shoppingListSection .shopping-filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    overflow: visible !important;
  }

  #shoppingListSection .shopping-status-tabs {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
  }

  #shoppingListSection .shopping-status-tab {
    flex: 0 0 auto !important;
  }

  #shoppingListSection .shopping-item-card,
  #shoppingListSection .shopping-table-row,
  #shoppingListSection .mock-shopping-row {
    max-width: 100% !important;
    overflow: hidden !important;
  }

  #foodSection.label-station-page .label-station-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  #foodSection.label-station-page .label-station-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  #foodSection.label-station-page .food-label-action {
    width: 100% !important;
    min-height: 44px !important;
  }

  #foodSection.label-station-page .label-station-search-panel,
  #foodSection.label-station-page .label-station-section,
  #foodSection.label-station-page .label-print-drawer {
    padding: 14px !important;
    border-radius: 16px !important;
  }

  #foodSection.label-station-page .food-search-wrap {
    min-height: 54px !important;
  }

  #foodSection.label-station-page .label-horizontal-row {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 10px !important;
    overflow-x: auto !important;
    padding-bottom: 4px !important;
    -webkit-overflow-scrolling: touch;
  }

  #foodSection.label-station-page .label-mini-card {
    flex: 0 0 176px !important;
    width: 176px !important;
    min-width: 176px !important;
    min-height: 86px !important;
  }

  #foodSection.label-station-page .label-category-chips {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    padding-bottom: 4px !important;
    -webkit-overflow-scrolling: touch;
  }

  #foodSection.label-station-page .category-tab {
    flex: 0 0 auto !important;
  }

  #foodSection.label-station-page .label-print-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  #foodSection.label-station-page .label-batch-footer {
    position: sticky !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .shopping-mode-topbar,
  .shopping-mode-workspace,
  .shopping-mode-metrics,
  .shopping-mode-control-row,
  .shopping-mode-task-card,
  .shopping-mode-selected-bar {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .shopping-mode-store-select,
  .shopping-mode-add-btn,
  .shopping-mode-control-row > *,
  .shopping-mode-task-actions button {
    width: 100% !important;
  }

  .shopping-mode-side {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .recipe-toolbar,
  .recipe-form-grid,
  .recipe-meta-grid,
  .recipe-overview-grid,
  .recipe-modal-grid,
  .settings-grid,
  .staff-grid,
  .billing-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media screen and (max-width: 640px) {
  .main-content {
    padding: 14px 10px 28px !important;
  }

  .sidebar {
    padding: 10px 10px 6px !important;
  }

  .brand-name,
  .sidebar .brand-name {
    font-size: 1.18rem !important;
  }

  .sidebar-brand-subtitle,
  .brand-subtitle {
    display: none !important;
  }

  .nav-link,
  .sidebar .nav-link,
  .logout-link {
    height: 36px !important;
    min-height: 36px !important;
    padding: 7px 10px !important;
    font-size: 0.74rem !important;
  }

  .dashboard-title-block h1,
  #dynamicPageTitle h1,
  .page-title,
  .section-title {
    font-size: 23px !important;
  }

  .dashboard-date-chip,
  .dashboard-icon-button,
  .dashboard-shop-switcher,
  .dashboard-header-button-row > * {
    width: 100% !important;
  }

  .login-btn,
  .slim-btn,
  .secondary-btn {
    width: 100%;
  }

  #shoppingListSection .shopping-top-grid .shopping-stats-row,
  #shoppingListSection .shopping-stats-row,
  #shoppingListSection .shopping-filter-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #shoppingListSection .shopping-stat-card {
    height: auto !important;
    min-height: 76px !important;
  }

  #foodSection.label-station-page .label-station-actions,
  #foodSection.label-station-page .label-print-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #foodSection.label-station-page .label-mini-card {
    flex-basis: 154px !important;
    width: 154px !important;
    min-width: 154px !important;
  }

  #foodSection.label-station-page .label-print-card {
    min-height: 190px !important;
  }

  #foodSection.label-station-page .label-card-actions {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #foodSection.label-station-page .label-x2-btn,
  #foodSection.label-station-page .label-card-print-btn,
  #foodSection.label-station-page .label-print-now,
  #foodSection.label-station-page .label-add-queue {
    width: 100% !important;
    min-height: 46px !important;
  }

  .shopping-mode-title-block h2 {
    font-size: 24px !important;
    line-height: 30px !important;
  }

  .shopping-mode-metrics {
    padding: 14px !important;
    gap: 12px !important;
  }

  .shopping-mode-task-card {
    padding: 12px !important;
  }

  .shopping-mode-selected-bar {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 50 !important;
  }

  table,
  .data-table,
  .activity-table {
    min-width: 560px;
  }
}

@media screen and (max-width: 420px) {
  .main-content {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  #foodSection.label-station-page .label-mini-card {
    flex-basis: 142px !important;
    width: 142px !important;
    min-width: 142px !important;
  }

  #foodSection.label-station-page .label-mini-card strong {
    font-size: 13px !important;
  }

  .modal-content,
  .modal-card {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

/* ------------------- MODALS ------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: rgba(25, 27, 34, 0.95);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  padding: 30px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  position: relative;
  animation: floatUp 0.3s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 15px;
}

.modal-header h2 {
  font-family: 'Playfair Display', serif;
  color: var(--accent-gold);
  font-size: 1.5rem;
}

.close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}

.close-modal:hover {
  color: #ff6b6b;
}

/* ------------------- CATEGORY TABS ------------------- */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  overflow-x: visible;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.category-tab {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 600;
  transition: all 0.3s ease;
}

.category-tab:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-white);
}

.category-tab.active {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* ------------------- FOOD GRID ------------------- */
.food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.food-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--glass-border); /* Color coded left border */
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  backdrop-filter: blur(10px);
  cursor: pointer;
  position: relative;
}

.food-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
}

.food-card.selected {
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
  background: rgba(212, 175, 55, 0.05);
}

.food-card.selected::after {
  content: '\f058'; /* fa-check-circle */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 10px;
  right: 10px;
  color: var(--accent-gold);
  font-size: 1.2rem;
}

.food-icon {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 15px;
}

.food-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid var(--glass-border);
}

.food-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.food-life {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.food-print-count {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  margin-bottom: 15px;
}

/* Batch Print Support */
@media print {
  .batch-page {
    page-break-after: always;
    break-after: page;
  }
  .batch-page:last-child {
    page-break-after: auto;
    break-after: auto;
  }
}

/* ------------------- LANDING PAGE ------------------- */
.landing-body {
  background: radial-gradient(circle at top center, #1e1b3a 0%, var(--bg-dark) 60%);
  color: var(--text-white);
  font-family: 'Inter', sans-serif;
  overflow-x: auto;
}

/* Navbar */
.landing-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  background: rgba(15, 17, 21, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--glass-border);
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--accent-gold);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-link-item {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link-item:hover {
  color: var(--accent-gold);
}

.nav-actions {
  display: flex;
  gap: 15px;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #D4AF37 0%, #AA8A2A 100%);
  color: #000;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text-white);
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.btn-large {
  padding: 15px 30px;
  font-size: 1.1rem;
}

/* Hero Section */
.landing-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 5%;
  min-height: 80vh;
  gap: 50px;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  animation: floatUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(to right, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.hero-image-placeholder {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: floatUp 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mockup-frame {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 16/9;
  background: rgba(20, 22, 28, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 10px rgba(255,255,255,0.03);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text-muted);
  backdrop-filter: blur(10px);
}

.placeholder-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  color: var(--accent-gold);
  opacity: 0.5;
}

/* Features */
.landing-features {
  padding: 80px 5%;
  background: rgba(0,0,0,0.2);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--text-white);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-bottom: 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  background: rgba(255,255,255,0.05);
  border-color: rgba(212, 175, 55, 0.3);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: rgba(212, 175, 55, 0.1);
  color: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  margin: 0 auto 20px auto;
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Pricing */
.landing-pricing {
  padding: 80px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.price-card {
  background: rgba(20, 22, 28, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease;
}

.price-card:hover {
  transform: translateY(-10px);
}

.price-card.popular {
  border-color: var(--accent-gold);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.1) 0%, rgba(20, 22, 28, 0.8) 100%);
  transform: scale(1.05);
}

.price-card.popular:hover {
  transform: scale(1.05) translateY(-10px);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gold);
  color: #000;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.price-card h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 30px;
}

.price span {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 400;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
  text-align: left;
}

.price-features li {
  margin-bottom: 15px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-features li i {
  color: var(--accent-gold);
}

.price-card .btn-primary, .price-card .btn-ghost {
  justify-content: center;
}

.landing-footer {
  text-align: center;
  padding: 30px;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .admin-panel {
    display: block;
  }

  .sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    padding: 14px 14px 10px;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
  }

  .sidebar-header {
    margin-bottom: 10px;
  }

  .brand-name {
    font-size: 1.45rem;
  }

  .sidebar nav {
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar-nav-main {
    flex: 0 0 auto;
    display: flex;
    gap: 8px;
    overflow: visible;
    padding-right: 0;
  }

  .logout-link {
    margin-top: 0;
    border-top: 0;
  }

  .nav-group-label {
    flex: 0 0 auto;
    align-self: center;
    margin: 0 2px;
    font-size: 0.65rem;
  }

  .nav-link {
    flex: 0 0 auto;
    padding: 10px 12px;
    margin-bottom: 0;
    border-radius: 10px;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .nav-link i {
    margin-right: 8px;
    font-size: 1rem;
  }

  .nav-link:hover,
  .nav-link.active {
    transform: none;
  }

  .main-content {
    margin-left: 0;
    padding: 22px 14px 36px;
    min-height: auto;
  }

  .main-content > header {
    flex-direction: column;
    align-items: stretch !important;
    gap: 18px;
    margin-bottom: 24px !important;
  }

  .main-content > header h1 {
    font-size: 2rem !important;
  }

  .main-content > header > div:last-child {
    flex-direction: column;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .user-profile {
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 14px;
  }

  .admin-mode-banner {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
    width: 100%;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 20px;
  }

  .stat-card {
    padding: 20px;
    border-radius: 12px;
  }

  .stat-card p {
    font-size: 2.2rem;
  }

  .table-wrapper {
    padding: 16px;
    margin-top: 18px;
    border-radius: 12px;
    overflow-x: auto;
  }

  .data-table {
    min-width: 560px;
  }

  #shopsSection .data-table {
    min-width: 1180px;
  }

  .revenue-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .revenue-panel {
    padding: 18px;
    border-radius: 14px;
  }

  .compact-table .data-table {
    min-width: 760px;
  }

  .expiry-analytics-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recipe-ingredient-row {
    grid-template-columns: 1fr;
  }

  .marketing-ai-form-grid,
  .marketing-ai-card-grid,
  .recipe-ai-selector-controls,
  .assistant-action-grid,
  .assistant-result-grid {
    grid-template-columns: 1fr;
  }

  .marketing-saved-card {
    flex-direction: column;
  }

  .ingredient-suggestions {
    position: static;
    margin-top: 6px;
  }

  #usersSection > div:first-child,
  #foodSection > div:first-child,
  #batchActionBar {
    flex-direction: column;
    align-items: stretch !important;
    gap: 12px;
  }

  #foodSection > div:first-child > div {
    flex-wrap: wrap;
    align-items: stretch !important;
  }

  #printerStatus {
    width: 100%;
    min-height: 36px;
  }

  #foodSearchInput {
    font-size: 1rem !important;
    padding: 13px !important;
  }

  .category-tabs {
    gap: 8px;
  }

  .category-tab {
    padding: 9px 12px;
    font-size: 0.88rem;
  }

  .food-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .food-card {
    padding: 16px 10px;
    min-height: 160px;
  }

  .food-icon {
    font-size: 2rem;
  }

  .food-name {
    font-size: 1rem;
    overflow-wrap: anywhere;
  }

  .modal-overlay {
    align-items: flex-start;
    overflow-y: auto;
    padding: 14px;
    box-sizing: border-box;
  }

  .modal-content {
    width: 100%;
    max-width: none !important;
    padding: 20px;
    border-radius: 12px;
    margin: 0;
    box-sizing: border-box;
  }

  .modal-header h2 {
    font-size: 1.25rem;
  }

  #categoriesModal .modal-content > div:nth-child(2),
  #menuModal .modal-content > div:nth-child(2),
  #quickPrintModal .modal-content > div:last-child {
    flex-direction: column;
    align-items: stretch !important;
  }

  #categoriesModal .modal-content > div:nth-child(2) > div,
  #menuModal .modal-content > div:nth-child(2) > div {
    width: 100% !important;
  }

  .login-input,
  .login-btn,
  select,
  input {
    max-width: 100%;
  }

  .landing-hero {
    flex-direction: column;
    text-align: center;
    padding-top: 40px;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .price-card.popular {
    transform: none;
  }
.price-card.popular:hover {
    transform: translateY(-10px);
  }
  .nav-links {
    display: none;
  }
}

.section-heading-row,
.shopping-item-main,
.shopping-meta-row,
.shopping-actions,
.shopping-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading-row {
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.shopping-heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.shopping-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 24px;
}

.shopping-mini-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-gold);
  border-radius: 8px;
  padding: 14px 16px;
}

.shopping-mini-card span {
  display: block;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.shopping-mini-card strong {
  display: block;
  color: var(--text-white);
  font-size: 1.8rem;
  margin-top: 4px;
}

.shopping-mini-card.urgent {
  border-left-color: #e74c3c;
}

.shopping-mini-card.approved {
  border-left-color: #2ecc71;
}

.shopping-toolbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.shopping-toolbar #shoppingSearchInput {
  grid-column: span 2;
}

.procurement-toolbar {
  align-items: center;
  padding: 18px;
}

.shopping-select-all {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  font-weight: 800;
  cursor: pointer;
}

.shopping-select-all input,
.shopping-select-check input {
  accent-color: var(--accent-gold);
}

.shopping-staff-mode .procurement-toolbar {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.shopping-bulk-bar {
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.shopping-bulk-bar .login-input {
  max-width: 190px;
}

.shopping-mode-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  border-left: 4px solid var(--accent-gold);
}

.shopping-mode-header h4 {
  margin: 0 0 4px;
  color: var(--accent-gold);
}

.shopping-mode-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.shopping-mode-supplier-select {
  width: auto;
  min-width: 220px;
  margin: 0;
  min-height: 42px;
}

.shopping-mode-controls strong {
  color: var(--text-white);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 999px;
  padding: 9px 12px;
}

.shopping-mode-supplier-focus {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  border-left: 4px solid var(--accent-gold);
}

.shopping-mode-supplier-focus span,
.shopping-mode-supplier-focus em {
  color: var(--text-muted);
  font-style: normal;
}

.shopping-mode-supplier-focus strong {
  color: var(--accent-gold);
  font-size: 1.15rem;
}

.shopping-execution-mode .procurement-toolbar,
.shopping-execution-mode .shopping-staff-focus-bar,
.shopping-execution-mode .shopping-bulk-bar,
.shopping-execution-mode .shopping-status-tabs,
.shopping-execution-mode .shopping-category-manager,
.shopping-execution-mode .shopping-form-card {
  display: none !important;
}

.shopping-execution-mode .shopping-mode-group {
  padding: 18px;
}

.shopping-execution-mode .shopping-mode-list {
  gap: 16px;
}

.cook-step-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cook-step-card:hover {
  background: rgba(255,255,255,0.04);
}

.cook-step-card.active-step {
  border-left: 4px solid var(--accent-gold);
  background: rgba(212, 175, 55, 0.05);
}

.cook-step-card.completed {
  opacity: 0.6;
  border-left: 4px solid #2ecc71;
  background: var(--bg-card);
}

.cook-step-card.completed .cook-step-text {
  text-decoration: line-through;
}

.cook-step-checkbox {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 2px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s ease;
}

.cook-step-card.completed .cook-step-checkbox {
  background: #2ecc71;
  border-color: #2ecc71;
}

.cook-step-card.completed .cook-step-checkbox::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--bg-body);
  font-size: 18px;
}

.cook-step-text {
  color: var(--text-white);
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 0;
}

.shopping-execution-mode .shopping-item-card {
  padding: 18px;
}

.shopping-execution-mode .shopping-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.shopping-execution-mode .shopping-staff-action {
  min-height: 52px;
  justify-content: center;
  font-size: 1rem;
}

.shopping-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.shopping-panel-header h4 {
  color: var(--accent-gold);
  margin: 0;
}

.shopping-select-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-weight: 700;
}

.shopping-actions .primary-action {
  background: var(--accent-gold);
  color: #08090d;
}

.shopping-status-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.shopping-staff-focus-bar {
  display: none;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}

.shopping-status-tab {
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
}

.shopping-status-tab.active,
.shopping-status-tab:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.12);
}

.shopping-form-card,
.shopping-category-manager {
  margin-bottom: 18px;
}

.shopping-slide-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(100%, 540px);
  max-width: 540px;
  height: 100dvh;
  max-height: 100dvh;
  overflow-y: auto;
  box-sizing: border-box;
  z-index: 2100;
  border-radius: 14px 0 0 14px;
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: -18px 0 40px rgba(0, 0, 0, 0.45);
  padding: 24px 24px 0;
  transform: translateX(0);
  will-change: transform;
  animation: slideInRight 0.22s ease;
}

#shoppingFormCard.shopping-slide-panel {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: auto !important;
  bottom: auto !important;
  width: min(100%, 540px) !important;
  max-width: 540px !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  min-width: 0 !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
}

.shopping-drawer-backdrop,
body:has(#shoppingFormCard[style*="display: block"])::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2090;
  pointer-events: none;
}

.shopping-slide-panel::before {
  content: "Procurement request";
  display: inline-flex;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.shopping-small-modal {
  max-width: 440px;
}

.shopping-form-section {
  display: grid;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.shopping-form-section-label {
  color: var(--accent-gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shopping-item-search-field {
  position: relative;
}

.shopping-quantity-row,
.shopping-more-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.85fr);
  gap: 12px;
}

.shopping-more-options {
  grid-template-columns: 1fr;
}

.shopping-more-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-white);
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 800;
}

.shopping-more-toggle.open i {
  transform: rotate(180deg);
}

.shopping-form-error {
  border: 1px solid rgba(231, 76, 60, 0.55);
  background: rgba(231, 76, 60, 0.1);
  color: #ff9f98;
  border-radius: 8px;
  padding: 11px 12px;
  margin-bottom: 12px;
  font-weight: 800;
}

.shopping-form-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(18, 20, 26, 0.88), rgba(18, 20, 26, 1));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 0 18px;
  margin-top: 8px;
  justify-content: flex-end;
}

.shopping-slide-panel .shopping-form-section:last-of-type {
  padding-bottom: 82px;
}

.shopping-form-actions .login-btn {
  min-height: 48px;
}

.shopping-autocomplete-results {
  position: absolute;
  z-index: 30;
  width: 100%;
  max-height: 260px;
  overflow-y: auto;
  background: #151820;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-top: 4px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
}

.shopping-autocomplete-results:empty {
  display: none;
}

.shopping-autocomplete-results button {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: transparent;
  color: var(--text-white);
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
}

.shopping-autocomplete-results button:hover {
  background: rgba(212, 175, 55, 0.12);
}

.shopping-autocomplete-results span {
  display: block;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 3px;
}

.shopping-duplicate-warning {
  border: 1px solid rgba(243, 156, 18, 0.55);
  background: rgba(243, 156, 18, 0.1);
  color: #f8d58a;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 14px;
}

.shopping-list-container {
  display: grid;
  gap: 14px;
}

.shopping-group-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px;
}

.shopping-group-card h4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 12px;
  color: var(--accent-gold);
}

.shopping-group-card h4 span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.shopping-item-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-gold);
  border-radius: 8px;
  padding: 16px;
}

.shopping-item-card.status-purchased {
  border-left-color: #2ecc71;
}

.shopping-item-card.status-cancelled {
  border-left-color: #777;
  opacity: 0.82;
}

.shopping-item-card.status-approved {
  border-left-color: #3498db;
}

.shopping-item-card.status-not-available {
  border-left-color: #e67e22;
}

.shopping-item-main {
  justify-content: space-between;
  align-items: flex-start;
}

.shopping-item-card h4 {
  margin: 0 0 6px;
  color: var(--text-white);
}

.shopping-item-card p {
  margin: 0;
  color: var(--text-muted);
}

.shopping-note {
  margin-top: 8px !important;
  color: var(--text-white) !important;
}

.shopping-badges,
.shopping-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shopping-status-badge,
.shopping-priority-badge {
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.78rem;
  font-weight: 800;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.shopping-priority-badge.priority-urgent,
.shopping-priority-badge.priority-high {
  border-color: rgba(231, 76, 60, 0.6);
  color: #ff8d85;
}

.shopping-priority-badge.priority-low {
  color: #9fb2c7;
}

.shopping-meta-row {
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.86rem;
  margin-top: 14px;
}

.shopping-actions {
  flex-wrap: wrap;
  margin-top: 14px;
}

.shopping-staff-mode .shopping-actions {
  gap: 10px;
}

.shopping-staff-mode .shopping-staff-action {
  min-height: 46px;
  padding: 12px 16px;
  font-size: 0.98rem;
}

.shopping-staff-mode .shopping-item-card {
  padding: 18px;
}

.shopping-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 8px 10px;
}

.shopping-category-chip button {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  cursor: pointer;
}

.shopping-category-chip button.danger {
  color: #ff756e;
}

.shopping-empty-state {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--text-white) !important;
}

@media (max-width: 420px) {
  .food-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons,
  .nav-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-ghost {
    justify-content: center;
  }
}

@media (max-width: 820px) {
  .shopping-toolbar,
  .shopping-summary-grid {
    grid-template-columns: 1fr;
  }

  .shopping-toolbar #shoppingSearchInput {
    grid-column: auto;
  }

  .shopping-item-main,
  .section-heading-row {
    flex-direction: column;
    align-items: stretch;
  }

  .shopping-mode-header {
    align-items: stretch;
    flex-direction: column;
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-card);
    padding: 16px;
    margin: 0 -16px 16px;
    border-radius: 0;
    border-left: none;
    border-bottom: 2px solid var(--accent-gold);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
  }

  .shopping-mode-controls,
  .shopping-heading-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .shopping-mode-supplier-select,
  .shopping-mode-sort-select {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    font-size: 16px;
  }

  .shopping-execution-mode .shopping-card {
    padding: 20px 16px;
  }

  .shopping-execution-mode .slim-btn {
    min-height: 48px;
    font-size: 15px;
    width: 100%;
    justify-content: center;
  }

  .shopping-execution-mode .shopping-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
}

  .shopping-execution-mode .shopping-form-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

#shoppingFormCard.quick-add-mode .shopping-form-section:nth-of-type(2),
#shoppingFormCard.quick-add-mode .shopping-form-section:nth-of-type(3) {
  display: none !important;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .shopping-slide-panel,
  #shoppingFormCard.shopping-slide-panel {
    width: min(100%, 480px) !important;
    max-width: 480px !important;
  }
}

@media (max-width: 767px) {
  .shopping-slide-panel,
  #shoppingFormCard.shopping-slide-panel {
    width: 100% !important;
    max-width: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0;
    padding: 24px 18px 0;
  }
}

@media (max-width: 640px) {
  .shopping-quantity-row {
    grid-template-columns: 1fr;
  }

  .shopping-form-actions {
    flex-direction: column-reverse;
  }

  .shopping-form-actions .login-btn {
    width: 100%;
    min-height: 48px;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Final drawer width safety override */
#shoppingFormCard.shopping-slide-panel {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: auto !important;
  width: 540px !important;
  max-width: 540px !important;
  min-width: 0 !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
  transform: translateX(0) !important;
  border-radius: 14px 0 0 14px !important;
  box-shadow: -18px 0 40px rgba(0,0,0,0.45) !important;
  z-index: 2100 !important;
}

@media (max-width: 1024px) {
  #shoppingFormCard.shopping-slide-panel {
    width: 480px !important;
    max-width: 90vw !important;
    flex-basis: min(480px, 90vw) !important;
  }
}

@media (max-width: 768px) {
  #shoppingFormCard.shopping-slide-panel {
    width: 100vw !important;
    max-width: 100vw !important;
    flex-basis: 100vw !important;
    border-radius: 0 !important;
  }
}

/* --- SHOPPING LIST DASHBOARD MATCH --- */
#shoppingListSection {
  max-width: 100%;
}

.shopping-page-shell {
  display: grid;
  gap: 20px;
}

.shopping-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.shopping-title-block {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.shopping-title-icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 58px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.72);
  background: rgba(212, 175, 55, 0.08);
  color: var(--accent-gold);
  font-size: 1.35rem;
  box-shadow: 0 0 0 8px rgba(212, 175, 55, 0.025);
}

.shopping-title-block h3 {
  margin: 0;
  color: var(--text-white);
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.7rem, 2.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

.shopping-title-block p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.35;
}

.shopping-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 1 1 460px;
  min-width: 280px;
}

.shopping-header-search {
  position: relative;
  flex: 1 1 360px;
  max-width: 420px;
}

.shopping-header-search i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  z-index: 1;
}

.shopping-header-search .login-input {
  height: 44px;
  margin: 0;
  padding-left: 44px;
  border-radius: 8px;
  background: rgba(8, 12, 18, 0.76);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  font-size: 0.93rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.shopping-add-btn {
  width: auto;
  min-width: 150px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 8px;
  font-size: 0.96rem;
  font-weight: 900;
  white-space: nowrap;
}

.shopping-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 14px;
}

.shopping-metric-card {
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px 18px;
  border-radius: 8px;
  background: rgba(10, 15, 22, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.shopping-metric-icon {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 50px;
  border-radius: 12px;
  font-size: 1.18rem;
}

.shopping-metric-card span,
.shopping-metric-card em {
  display: block;
  color: var(--text-muted);
  font-style: normal;
}

.shopping-metric-card span {
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
}

.shopping-metric-card strong {
  display: block;
  margin: 6px 0 4px;
  color: var(--text-white);
  font-size: 1.75rem;
  font-weight: 850;
  line-height: 1;
}

.shopping-metric-card em {
  font-size: 0.78rem;
  font-weight: 600;
}

.shopping-metric-purple .shopping-metric-icon {
  background: rgba(155, 118, 255, 0.14);
  color: #a783ff;
  border: 1px solid rgba(155, 118, 255, 0.22);
}

.shopping-metric-orange .shopping-metric-icon {
  background: rgba(230, 126, 34, 0.14);
  color: #f39c12;
  border: 1px solid rgba(230, 126, 34, 0.24);
}

.shopping-metric-yellow .shopping-metric-icon {
  background: rgba(241, 196, 15, 0.14);
  color: #f1c40f;
  border: 1px solid rgba(241, 196, 15, 0.26);
}

.shopping-metric-green .shopping-metric-icon {
  background: rgba(46, 204, 113, 0.13);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.22);
}

.shopping-procurement-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 330px);
  gap: 20px;
  align-items: start;
}

.shopping-procurement-main {
  min-width: 0;
}

.shopping-side-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.shopping-filter-panel {
  padding: 14px;
  border-radius: 8px;
  background: rgba(10, 15, 22, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 16px;
}

.shopping-status-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 14px;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.shopping-status-tab {
  min-height: 36px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-muted);
  padding: 0 14px;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.shopping-status-tab.active,
.shopping-status-tab:hover {
  border-color: rgba(212, 175, 55, 0.55);
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.13);
}

.shopping-filter-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(126px, 1fr));
  gap: 10px;
}

.shopping-filter-row .login-input {
  height: 40px;
  min-height: 40px;
  margin: 0;
  border-radius: 8px;
  background: rgba(6, 10, 16, 0.72);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-white);
  font-size: 0.86rem;
  font-weight: 700;
}

.shopping-list-header {
  display: grid;
  grid-template-columns: 36px minmax(190px, 1.45fr) minmax(100px, 0.85fr) minmax(120px, 0.95fr) 72px 90px 88px 86px 68px;
  gap: 10px;
  align-items: center;
  padding: 0 14px 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.shopping-list-header input {
  margin: 0;
  cursor: pointer;
  accent-color: var(--accent-gold);
}

.shopping-list-header div:nth-last-child(-n + 2) {
  text-align: right;
}

.shopping-mode-card {
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.86);
  background: rgba(11, 16, 23, 0.78);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.shopping-mode-card-head {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 16px;
}

.shopping-mode-icon {
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 60px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.9);
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.06);
  font-size: 1.4rem;
}

.shopping-mode-card h4,
.shopping-side-card h4 {
  margin: 0;
  color: var(--text-white);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0;
}

.shopping-mode-card p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.42;
}

.shopping-mode-start-btn {
  width: 100%;
  min-height: 46px;
  border-radius: 8px;
  font-size: 0.98rem;
  font-weight: 900;
}

.shopping-side-card {
  padding: 18px;
  border-radius: 8px;
  background: rgba(10, 15, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.shopping-side-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.shopping-side-card-head .login-input {
  width: auto;
  min-width: 112px;
  height: 36px;
  min-height: 36px;
  margin: 0;
  border-radius: 8px;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.04);
}

.shopping-summary-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.shopping-summary-line strong {
  color: var(--text-white);
  font-weight: 900;
}

.shopping-side-actions {
  display: grid;
  gap: 8px;
}

.shopping-side-action {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 11px;
  align-items: center;
  width: 100%;
  padding: 10px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-white);
  text-align: left;
  cursor: pointer;
}

.shopping-side-action:hover {
  background: rgba(255, 255, 255, 0.055);
}

.shopping-side-action span {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.1);
}

.shopping-side-action strong {
  color: var(--text-white);
  font-size: 0.86rem;
  font-weight: 850;
}

.shopping-side-action em {
  color: var(--text-muted);
  font-size: 0.73rem;
  font-style: normal;
  font-weight: 600;
}

.shopping-empty-state {
  min-height: 84px;
  background: rgba(10, 15, 22, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 8px;
}

@media (max-width: 1320px) {
  .shopping-procurement-layout {
    grid-template-columns: 1fr;
  }

  .shopping-side-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .shopping-page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .shopping-header-actions {
    width: 100%;
    min-width: 0;
    justify-content: stretch;
  }

  .shopping-header-search {
    max-width: none;
  }

  .shopping-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shopping-filter-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .shopping-side-panel {
    grid-template-columns: 1fr;
  }

  .shopping-list-header {
    display: none;
  }
}

@media (max-width: 640px) {
  .shopping-title-block {
    align-items: flex-start;
  }

  .shopping-title-icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .shopping-header-actions {
    flex-direction: column;
  }

  .shopping-add-btn,
  .shopping-header-search {
    width: 100%;
  }

  .shopping-metrics-grid,
  .shopping-filter-row {
    grid-template-columns: 1fr;
  }
}

/* --- RECIPE MANAGEMENT REDESIGN --- */
.recipe-management-layout {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.recipe-management-main {
  flex: 1;
  min-width: 300px;
}

.recipe-management-sidebar {
  width: 320px;
  flex-shrink: 0;
}

.recipe-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  width: 100%;
  max-width: 288px; /* Force 288px max width for fidelity */
  height: 412px;
}

.recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  border-color: rgba(212, 175, 55, 0.3);
}

.recipe-card-image-area {
  height: 160px;
  background: rgba(0,0,0,0.4);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recipe-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #000;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
}

.recipe-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.recipe-card-title {
  margin: 0 0 4px;
  color: var(--text-white);
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.recipe-card-subtitle {
  color: var(--accent-gold);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0.2px;
  margin-bottom: 12px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.recipe-card-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: auto; /* Push buttons to bottom */
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  height: 24px;
}

.recipe-card-actions-stacked {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.start-cooking-btn {
  width: 100%;
  border-radius: 8px;
  height: 40px;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #000 !important;
}

.recipe-card-actions-split {
  display: flex;
  gap: 8px;
  width: 100%;
}

.recipe-card-actions-split .secondary-btn {
  flex: 1;
  border-radius: 8px;
  height: 40px;
  padding: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-white) !important;
}

@media (max-width: 820px) {
  .recipe-management-sidebar {
    width: 100%;
    order: 2; /* Ensure it stays below main grid */
  }
}

@media (max-width: 500px) {
  .recipe-card-actions {
    flex-wrap: wrap;
  }
  .recipe-card-actions .login-btn {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* --- SHOPPING LIST FINAL VISUAL OVERRIDES --- */
#shoppingListSection,
#shoppingListSection * {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  letter-spacing: 0;
}

#shoppingListSection .shopping-page-shell {
  gap: 18px !important;
}

#shoppingListSection .shopping-page-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  margin: 0 !important;
}

#shoppingListSection .shopping-title-icon {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  flex-basis: 56px !important;
  border-radius: 50% !important;
  font-size: 22px !important;
}

#shoppingListSection .shopping-title-block h3 {
  color: #fff !important;
  font-size: 30px !important;
  font-weight: 800 !important;
  line-height: 36px !important;
  letter-spacing: -0.03em !important;
  margin: 0 !important;
}

#shoppingListSection .shopping-title-block p {
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 20px !important;
  margin: 2px 0 0 !important;
}

#shoppingListSection .shopping-header-actions {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  gap: 12px !important;
}

#shoppingListSection .shopping-header-search {
  width: 420px !important;
  max-width: 420px !important;
  flex: 0 0 420px !important;
}

#shoppingListSection .shopping-header-search .login-input {
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  border-radius: 14px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  margin: 0 !important;
}

#shoppingListSection .shopping-add-btn {
  height: 48px !important;
  min-height: 48px !important;
  min-width: 150px !important;
  border-radius: 12px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  padding: 0 22px !important;
}

#shoppingListSection .shopping-layout-grid,
#shoppingListSection .shopping-procurement-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 320px !important;
  gap: 18px !important;
  align-items: start !important;
}

#shoppingListSection .shopping-metrics-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin-bottom: 0 !important;
}

#shoppingListSection .shopping-stat-card,
#shoppingListSection .shopping-metric-card {
  height: 104px !important;
  min-height: 104px !important;
  padding: 18px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  background: rgba(10, 15, 22, 0.78) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}

#shoppingListSection .shopping-stat-icon,
#shoppingListSection .shopping-metric-icon {
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  flex: 0 0 50px !important;
  border-radius: 12px !important;
  font-size: 20px !important;
}

#shoppingListSection .shopping-stat-card span,
#shoppingListSection .shopping-metric-card span {
  color: rgba(255, 255, 255, 0.70) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 16px !important;
}

#shoppingListSection .shopping-stat-card strong,
#shoppingListSection .shopping-metric-card strong {
  color: #fff !important;
  font-size: 22px !important;
  line-height: 26px !important;
  font-weight: 850 !important;
  letter-spacing: -0.02em !important;
  margin: 4px 0 3px !important;
}

#shoppingListSection .shopping-stat-card em,
#shoppingListSection .shopping-metric-card em {
  color: rgba(255, 255, 255, 0.58) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 16px !important;
}

#shoppingListSection .shopping-control-panel,
#shoppingListSection .shopping-filter-panel {
  padding: 14px !important;
  border-radius: 12px !important;
  background: rgba(10, 15, 22, 0.78) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  margin-bottom: 16px !important;
}

#shoppingListSection .shopping-status-tabs {
  gap: 10px !important;
  margin: 0 0 14px !important;
  padding-bottom: 14px !important;
}

#shoppingListSection .shopping-status-tab {
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 16px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

#shoppingListSection .shopping-status-tab.active,
#shoppingListSection .shopping-status-tab:hover {
  background: rgba(212, 175, 55, 0.18) !important;
  border-color: rgba(212, 175, 55, 0.45) !important;
  color: #d4af37 !important;
}

#shoppingListSection .shopping-filter-row {
  display: grid !important;
  grid-template-columns: minmax(210px, 1.4fr) repeat(4, minmax(135px, 1fr)) minmax(160px, 1fr) !important;
  gap: 10px !important;
}

#shoppingListSection .shopping-filter-row .login-input {
  height: 42px !important;
  min-height: 42px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  margin: 0 !important;
}

#shoppingListSection .shopping-list-header {
  font-size: 12px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.58) !important;
  line-height: 16px !important;
}

#shoppingListSection .shopping-item-card {
  min-height: 68px !important;
  padding: 12px 14px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

#shoppingListSection .shopping-item-card h4 {
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 18px !important;
}

#shoppingListSection .shopping-item-card p,
#shoppingListSection .shopping-meta-row {
  font-size: 12px !important;
  line-height: 16px !important;
}

#shoppingListSection .shopping-side-panel {
  width: 320px !important;
  min-width: 320px !important;
  gap: 16px !important;
}

#shoppingListSection .shopping-side-card,
#shoppingListSection .shopping-mode-card {
  padding: 18px !important;
  border-radius: 12px !important;
  background: rgba(10, 15, 22, 0.78) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

#shoppingListSection .shopping-mode-card {
  min-height: 150px !important;
  border-color: rgba(212, 175, 55, 0.82) !important;
}

#shoppingListSection .shopping-mode-card h4,
#shoppingListSection .shopping-side-card h4 {
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 22px !important;
}

#shoppingListSection .shopping-mode-card p,
#shoppingListSection .shopping-side-card,
#shoppingListSection .shopping-summary-line {
  font-size: 14px !important;
  line-height: 20px !important;
}

#shoppingListSection .shopping-mode-start-btn {
  height: 44px !important;
  min-height: 44px !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

@media (max-width: 1280px) {
  #shoppingListSection .shopping-stat-card,
  #shoppingListSection .shopping-metric-card,
  #shoppingListSection .shopping-side-card,
  #shoppingListSection .shopping-mode-card {
    padding: 14px !important;
  }

  #shoppingListSection .shopping-stat-card strong,
  #shoppingListSection .shopping-metric-card strong {
    font-size: 22px !important;
    line-height: 26px !important;
  }
}

@media (max-width: 1100px) {
  #shoppingListSection .shopping-layout-grid,
  #shoppingListSection .shopping-procurement-layout {
    grid-template-columns: 1fr !important;
  }

  #shoppingListSection .shopping-side-panel {
    width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 768px) {
  #shoppingListSection .shopping-page-header,
  #shoppingListSection .shopping-header-actions {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  #shoppingListSection .shopping-header-search {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
  }

  #shoppingListSection .shopping-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #shoppingListSection .shopping-filter-row {
    grid-template-columns: 1fr !important;
  }

  #shoppingListSection .shopping-procurement-main {
    overflow-x: auto !important;
  }
}

/* --- SHOPPING LIST PIXEL TIGHT FINAL OVERRIDE --- */
#shoppingListSection,
#shoppingListSection * {
  font-family: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

body:has(#shoppingListSection[style*="block"]) #globalHeader {
  margin-bottom: 20px !important;
}

#shoppingListSection .shopping-page-shell {
  max-width: 1280px !important;
  margin: 0 auto !important;
  gap: 14px !important;
}

#shoppingListSection .shopping-page-header {
  margin: 0 0 2px !important;
  gap: 14px !important;
}

#shoppingListSection .shopping-title-block {
  gap: 12px !important;
}

#shoppingListSection .shopping-title-block h3 {
  font-family: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 16px !important;
  line-height: 34px !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  color: #ffffff !important;
  margin: 0 !important;
}

#shoppingListSection .shopping-title-block p {
  font-size: 10px !important;
  line-height: 20px !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,.62) !important;
  margin: -6px 0 0 !important;
}

#shoppingListSection .shopping-title-icon {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  border-radius: 50% !important;
  font-size: 22px !important;
}

#shoppingListSection .shopping-header-search {
  width: 420px !important;
  max-width: 420px !important;
  flex: 0 0 420px !important;
}

#shoppingListSection .shopping-header-search .login-input {
  height: 44px !important;
  min-height: 44px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  padding-left: 44px !important;
}

#shoppingListSection .shopping-add-button,
#shoppingListSection .shopping-add-btn {
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 22px !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

#shoppingListSection .shopping-layout-grid,
#shoppingListSection .shopping-procurement-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 320px !important;
  gap: 18px !important;
  align-items: start !important;
}

#shoppingListSection .shopping-stats-row,
#shoppingListSection .shopping-metrics-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin: 0 0 18px !important;
}

#shoppingListSection .shopping-stat-card,
#shoppingListSection .shopping-metric-card {
  min-height: 104px !important;
  height: 104px !important;
  padding: 18px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  background: rgba(10,15,22,.78) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: none !important;
}

#shoppingListSection .shopping-stat-icon,
#shoppingListSection .shopping-metric-icon {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  flex: 0 0 48px !important;
  border-radius: 12px !important;
  font-size: 20px !important;
}

#shoppingListSection .shopping-stat-card small,
#shoppingListSection .shopping-metric-card small,
#shoppingListSection .shopping-stat-card span,
#shoppingListSection .shopping-metric-card span {
  font-size: 13px !important;
  line-height: 16px !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,.72) !important;
}

#shoppingListSection .shopping-stat-card strong,
#shoppingListSection .shopping-metric-card strong {
  font-size: 22px !important;
  line-height: 26px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: #ffffff !important;
  margin: 4px 0 2px !important;
}

#shoppingListSection .shopping-stat-card em,
#shoppingListSection .shopping-metric-card em {
  font-size: 13px !important;
  line-height: 16px !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,.55) !important;
}

#shoppingListSection .shopping-control-panel,
#shoppingListSection .shopping-filter-panel {
  padding: 14px !important;
  border-radius: 12px !important;
  margin-bottom: 14px !important;
  background: rgba(10,15,22,.78) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
}

#shoppingListSection .shopping-status-tabs {
  gap: 10px !important;
  margin: 0 0 14px !important;
  padding: 0 0 14px !important;
}

#shoppingListSection .shopping-status-tab {
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 16px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

#shoppingListSection .shopping-filter-row {
  gap: 10px !important;
}

#shoppingListSection .shopping-filter-row .login-input,
#shoppingListSection #shoppingSearchInput,
#shoppingListSection select.login-input {
  height: 42px !important;
  min-height: 42px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

#shoppingListSection table th,
#shoppingListSection .mock-shopping-header,
#shoppingListSection .shopping-list-header {
  font-size: 12px !important;
  line-height: 16px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,.62) !important;
}

#shoppingListSection .mock-item-text strong,
#shoppingListSection .shopping-item-card h4 {
  font-size: 15px !important;
  line-height: 19px !important;
  font-weight: 800 !important;
}

#shoppingListSection .mock-item-text small,
#shoppingListSection .shopping-item-card p {
  font-size: 13px !important;
  line-height: 18px !important;
  font-weight: 500 !important;
}

#shoppingListSection .shopping-status-badge,
#shoppingListSection .shopping-priority-badge {
  font-size: 12px !important;
  line-height: 14px !important;
  font-weight: 700 !important;
  padding: 5px 9px !important;
}

#shoppingListSection .shopping-right-sidebar,
#shoppingListSection .shopping-side-panel {
  width: 320px !important;
  min-width: 320px !important;
}

#shoppingListSection .shopping-mode-card,
#shoppingListSection .shopping-sidebar-panel,
#shoppingListSection .shopping-side-card {
  padding: 18px !important;
  border-radius: 12px !important;
  background: rgba(10,15,22,.78) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
}

#shoppingListSection .shopping-mode-card {
  min-height: 150px !important;
  border-color: rgba(212,175,55,.75) !important;
}

#shoppingListSection .shopping-mode-card h4,
#shoppingListSection .shopping-sidebar-panel h4,
#shoppingListSection .shopping-side-card h4 {
  font-size: 18px !important;
  line-height: 22px !important;
  font-weight: 800 !important;
}

#shoppingListSection .shopping-mode-card p {
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 500 !important;
}

#shoppingListSection .shopping-mode-card-head > span,
#shoppingListSection .shopping-mode-card-head > .shopping-mode-icon {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  flex-basis: 52px !important;
  font-size: 22px !important;
}

#shoppingListSection .shopping-mode-card .login-btn,
#shoppingListSection .shopping-sidebar-panel > .login-btn,
#shoppingListSection .shopping-mode-start-btn {
  height: 44px !important;
  min-height: 44px !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

.sidebar .nav-link {
  font-size: 16px !important;
  line-height: 22px !important;
  font-weight: 500 !important;
}

.sidebar .nav-link.active {
  font-weight: 700 !important;
}

@media (max-width: 1400px) {
  #shoppingListSection .shopping-stat-card strong,
  #shoppingListSection .shopping-metric-card strong {
    font-size: 20px !important;
    line-height: 24px !important;
  }
}

@media (max-width: 1280px) {
  #shoppingListSection .shopping-stat-card strong,
  #shoppingListSection .shopping-metric-card strong {
    font-size: 20px !important;
    line-height: 24px !important;
  }
}

@media (max-width: 1100px) {
  #shoppingListSection .shopping-layout-grid,
  #shoppingListSection .shopping-procurement-layout {
    grid-template-columns: 1fr !important;
  }

  #shoppingListSection .shopping-right-sidebar,
  #shoppingListSection .shopping-side-panel {
    width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 768px) {
  #shoppingListSection .shopping-stats-row,
  #shoppingListSection .shopping-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #shoppingListSection .shopping-stat-card strong,
  #shoppingListSection .shopping-metric-card strong {
    font-size: 20px !important;
    line-height: 24px !important;
  }
}

/* --- SHOPPING LIST MINI STAT CARDS LAST-WIN OVERRIDE --- */
#shoppingListSection .shopping-stats-row,
#shoppingListSection .shopping-metrics-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
}

#shoppingListSection .shopping-stat-card,
#shoppingListSection .shopping-metric-card {
  min-height: 72px !important;
  height: 72px !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: rgba(10,15,22,.82) !important;
  border: 1px solid rgba(255,255,255,.06) !important;
  box-shadow: none !important;
}

#shoppingListSection .shopping-stat-icon,
#shoppingListSection .shopping-metric-icon {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  flex: 0 0 32px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
}

#shoppingListSection .shopping-stat-card small,
#shoppingListSection .shopping-metric-card small,
#shoppingListSection .shopping-stat-card span,
#shoppingListSection .shopping-metric-card span {
  font-size: 10px !important;
  line-height: 12px !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,.62) !important;
  margin-bottom: 2px !important;
}

#shoppingListSection .shopping-stat-card strong,
#shoppingListSection .shopping-metric-card strong {
  font-size: 16px !important;
  line-height: 18px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: #ffffff !important;
  margin: 0 !important;
}

#shoppingListSection .shopping-stat-card em,
#shoppingListSection .shopping-metric-card em {
  font-size: 10px !important;
  line-height: 12px !important;
  font-style: normal !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,.50) !important;
}

@media (max-width: 768px) {
  #shoppingListSection .shopping-stats-row,
  #shoppingListSection .shopping-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* --- SHOPPING LIST RIGHT SIDEBAR ULTRA-COMPACT MICRO-UI --- */
#shoppingListSection .shopping-right-sidebar,
#shoppingListSection .shopping-side-panel {
  gap: 6px !important;
}

#shoppingListSection .shopping-sidebar-panel,
#shoppingListSection .shopping-side-card {
  padding: 10px !important;
  border-radius: 10px !important;
  min-height: 0 !important;
}

#shoppingListSection .shopping-side-card-head {
  gap: 6px !important;
  margin-bottom: 6px !important;
  align-items: center !important;
}

#shoppingListSection .shopping-side-card-head h4,
#shoppingListSection .shopping-sidebar-panel h4 {
  font-size: 12px !important;
  line-height: 14px !important;
  font-weight: 800 !important;
}

#shoppingListSection .shopping-side-card-head .login-input,
#shoppingListSection .shopping-sidebar-panel select.login-input {
  height: 24px !important;
  min-height: 24px !important;
  padding: 0 8px !important;
  border-radius: 7px !important;
  font-size: 10px !important;
  line-height: 12px !important;
}

#shoppingListSection .shopping-sidebar-link {
  font-size: 9px !important;
  line-height: 11px !important;
  padding: 0 !important;
}

#shoppingListSection .shopping-summary-row,
#shoppingListSection .shopping-summary-line {
  min-height: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 6px !important;
  font-size: 10px !important;
  line-height: 12px !important;
}

#shoppingListSection .shopping-summary-row + .shopping-summary-row,
#shoppingListSection .shopping-summary-line + .shopping-summary-line {
  margin-top: 2px !important;
}

#shoppingListSection .shopping-summary-row span,
#shoppingListSection .shopping-summary-line span,
#shoppingListSection .shopping-summary-row strong,
#shoppingListSection .shopping-summary-line strong {
  font-size: 10px !important;
  line-height: 12px !important;
  font-weight: 500 !important;
}

#shoppingListSection .shopping-sidebar-panel > .login-btn,
#shoppingListSection .shopping-sidebar-panel .review-btn,
#shoppingListSection .shopping-sidebar-panel .shopping-review-btn {
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  line-height: 14px !important;
  font-weight: 800 !important;
}

#shoppingListSection .shopping-top-suppliers-list {
  display: grid !important;
  gap: 2px !important;
}

#shoppingListSection .shopping-supplier-row {
  min-height: 26px !important;
  height: 26px !important;
  grid-template-columns: 24px minmax(0, 1fr) auto !important;
  gap: 6px !important;
  margin: 0 !important;
}

#shoppingListSection .shopping-supplier-row i,
#shoppingListSection .shopping-supplier-icon {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  border-radius: 7px !important;
  font-size: 12px !important;
}

#shoppingListSection .shopping-supplier-row strong {
  font-size: 11px !important;
  line-height: 12px !important;
  font-weight: 800 !important;
}

#shoppingListSection .shopping-supplier-row small {
  font-size: 9px !important;
  line-height: 10px !important;
}

#shoppingListSection .shopping-supplier-row em {
  font-size: 10px !important;
  line-height: 12px !important;
  font-weight: 700 !important;
}

#shoppingListSection .shopping-side-actions {
  display: grid !important;
  gap: 4px !important;
}

#shoppingListSection .shopping-quick-action,
#shoppingListSection .shopping-side-action {
  min-height: 28px !important;
  height: 28px !important;
  grid-template-columns: 22px minmax(0, 1fr) !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 2px 4px !important;
  border-radius: 7px !important;
  font-size: 10px !important;
  line-height: 12px !important;
}

#shoppingListSection .shopping-quick-action i,
#shoppingListSection .shopping-side-action i,
#shoppingListSection .shopping-quick-action span:first-child,
#shoppingListSection .shopping-side-action span:first-child {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
}

#shoppingListSection .shopping-quick-action strong,
#shoppingListSection .shopping-side-action strong {
  font-size: 10px !important;
  line-height: 11px !important;
  font-weight: 800 !important;
}

#shoppingListSection .shopping-quick-action small,
#shoppingListSection .shopping-side-action small,
#shoppingListSection .shopping-quick-action em,
#shoppingListSection .shopping-side-action em {
  font-size: 9px !important;
  line-height: 10px !important;
  font-weight: 400 !important;
}

#shoppingListSection .shopping-sidebar-empty {
  padding: 4px 0 !important;
  font-size: 10px !important;
  line-height: 12px !important;
}

/* --- SHOPPING LIST TARGET DASHBOARD ALIGNMENT OVERRIDE --- */
#shoppingListSection .shopping-page-shell {
  padding-top: 0 !important;
}

#shoppingListSection .shopping-layout-grid,
#shoppingListSection .shopping-procurement-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 320px !important;
  gap: 16px !important;
  align-items: start !important;
}

#shoppingListSection .shopping-right-sidebar,
#shoppingListSection .shopping-side-panel {
  width: 320px !important;
  max-width: 320px !important;
  min-width: 320px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

#shoppingListSection .shopping-stats-row,
#shoppingListSection .shopping-metrics-grid,
#shoppingListSection .shopping-mode-card {
  margin-top: 0 !important;
}

#shoppingListSection .shopping-stat-card,
#shoppingListSection .shopping-metric-card {
  height: 82px !important;
  min-height: 82px !important;
  max-height: 82px !important;
  padding: 14px 16px !important;
  border-radius: 14px !important;
  gap: 12px !important;
}

#shoppingListSection .shopping-mode-card {
  min-height: 148px !important;
  padding: 18px !important;
  border-radius: 14px !important;
}

#shoppingListSection .shopping-mode-card-head {
  margin-bottom: 14px !important;
  gap: 12px !important;
}

#shoppingListSection .shopping-mode-card h4 {
  font-size: 18px !important;
  line-height: 22px !important;
  font-weight: 800 !important;
  margin: 0 !important;
}

#shoppingListSection .shopping-mode-card p {
  font-size: 14px !important;
  line-height: 18px !important;
  margin-top: 4px !important;
  color: rgba(255,255,255,.68) !important;
}

#shoppingListSection .shopping-mode-card .login-btn,
#shoppingListSection .shopping-mode-start-btn {
  height: 42px !important;
  min-height: 42px !important;
  margin-top: 10px !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

#shoppingListSection .shopping-sidebar-panel,
#shoppingListSection .shopping-side-card {
  padding: 18px !important;
  border-radius: 14px !important;
}

#shoppingListSection .shopping-summary-row,
#shoppingListSection .shopping-summary-line {
  margin-bottom: 14px !important;
}

#shoppingListSection .shopping-supplier-row,
#shoppingListSection .shopping-quick-action,
#shoppingListSection .shopping-side-action {
  margin-bottom: 12px !important;
}

#shoppingListSection .shopping-supplier-row strong,
#shoppingListSection .shopping-quick-action strong,
#shoppingListSection .shopping-side-action strong {
  font-size: 14px !important;
  line-height: 16px !important;
}

#shoppingListSection .shopping-supplier-row small,
#shoppingListSection .shopping-quick-action small,
#shoppingListSection .shopping-side-action small,
#shoppingListSection .shopping-quick-action em,
#shoppingListSection .shopping-side-action em {
  font-size: 12px !important;
  line-height: 14px !important;
}

#shoppingListSection .shopping-control-panel,
#shoppingListSection .shopping-filter-panel {
  margin-top: 12px !important;
  padding: 14px !important;
  border-radius: 14px !important;
}

#shoppingListSection .shopping-status-tabs {
  margin-bottom: 12px !important;
}

@media (max-width: 1100px) {
  #shoppingListSection .shopping-layout-grid,
  #shoppingListSection .shopping-procurement-layout {
    grid-template-columns: 1fr !important;
  }

  #shoppingListSection .shopping-right-sidebar,
  #shoppingListSection .shopping-side-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

/* --- SHOPPING LIST TARGET STAT + RIGHT SIDEBAR TRUE LAST OVERRIDE --- */
#shoppingListSection .shopping-stats-row,
#shoppingListSection .shopping-metrics-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin-bottom: 18px !important;
}

#shoppingListSection .shopping-stat-card,
#shoppingListSection .shopping-metric-card {
  height: 84px !important;
  min-height: 84px !important;
  max-height: 84px !important;
  padding: 16px 18px !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  background: rgba(10, 15, 22, .82) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: none !important;
}

#shoppingListSection .shopping-stat-icon,
#shoppingListSection .shopping-metric-icon {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  flex: 0 0 42px !important;
  border-radius: 12px !important;
  font-size: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#shoppingListSection .shopping-stat-card small,
#shoppingListSection .shopping-metric-card small {
  display: block !important;
  font-size: 13px !important;
  line-height: 16px !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,.78) !important;
  margin: 0 !important;
}

#shoppingListSection .shopping-stat-card strong,
#shoppingListSection .shopping-metric-card strong {
  display: block !important;
  font-size: 24px !important;
  line-height: 28px !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  color: #fff !important;
  margin: 2px 0 1px !important;
}

#shoppingListSection .shopping-stat-card em,
#shoppingListSection .shopping-metric-card em {
  display: block !important;
  font-style: normal !important;
  font-size: 13px !important;
  line-height: 16px !important;
  font-weight: 400 !important;
  color: rgba(255,255,255,.58) !important;
  margin: 0 !important;
}

#shoppingListSection .shopping-layout-grid,
#shoppingListSection .shopping-procurement-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 320px !important;
  gap: 18px !important;
  align-items: start !important;
}

#shoppingListSection .shopping-right-sidebar,
#shoppingListSection .shopping-side-panel {
  width: 320px !important;
  max-width: 320px !important;
  min-width: 320px !important;
  display: grid !important;
  gap: 6px !important;
}

#shoppingListSection .shopping-mode-card,
#shoppingListSection .shopping-sidebar-panel {
  padding: 10px !important;
  border-radius: 10px !important;
  background: rgba(10, 15, 22, .82) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: none !important;
}

#shoppingListSection .shopping-mode-card {
  border-color: rgba(245, 181, 35, .9) !important;
  min-height: 150px !important;
}

#shoppingListSection .shopping-sidebar-panel {
  min-height: 0 !important;
}

#shoppingListSection .shopping-side-card-head {
  gap: 6px !important;
  margin-bottom: 6px !important;
  align-items: center !important;
}

#shoppingListSection .shopping-mode-card-head {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin-bottom: 16px !important;
}

#shoppingListSection .shopping-mode-card-head > span,
#shoppingListSection .shopping-mode-card-head > .shopping-mode-icon {
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  flex: 0 0 58px !important;
  border-radius: 50% !important;
  font-size: 26px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#shoppingListSection .shopping-mode-card h4,
#shoppingListSection .shopping-sidebar-panel h4 {
  font-size: 12px !important;
  line-height: 14px !important;
  font-weight: 800 !important;
  color: #fff !important;
  margin: 0 !important;
}

#shoppingListSection .shopping-mode-card p {
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 400 !important;
  color: rgba(255,255,255,.68) !important;
  margin: 4px 0 0 !important;
}

#shoppingListSection .shopping-mode-card .login-btn,
#shoppingListSection .shopping-sidebar-panel > .login-btn,
#shoppingListSection .shopping-mode-start-btn {
  height: 34px !important;
  min-height: 34px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  line-height: 14px !important;
  font-weight: 800 !important;
  padding: 0 10px !important;
}

#shoppingListSection .shopping-summary-row,
#shoppingListSection .shopping-summary-line {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  min-height: 14px !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 10px !important;
  line-height: 12px !important;
}

#shoppingListSection .shopping-summary-row + .shopping-summary-row,
#shoppingListSection .shopping-summary-line + .shopping-summary-line {
  margin-top: 2px !important;
}

#shoppingListSection .shopping-summary-row span,
#shoppingListSection .shopping-summary-line span {
  color: rgba(255,255,255,.72) !important;
  font-size: 10px !important;
  line-height: 12px !important;
  font-weight: 500 !important;
}

#shoppingListSection .shopping-summary-row strong,
#shoppingListSection .shopping-summary-line strong {
  color: #fff !important;
  font-size: 10px !important;
  line-height: 12px !important;
  font-weight: 500 !important;
}

#shoppingListSection .shopping-supplier-row {
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr) auto !important;
  min-height: 26px !important;
  height: 26px !important;
  gap: 6px !important;
  align-items: center !important;
  margin: 0 !important;
}

#shoppingListSection .shopping-top-suppliers-list {
  display: grid !important;
  gap: 2px !important;
}

#shoppingListSection .shopping-supplier-row i,
#shoppingListSection .shopping-supplier-icon {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  border-radius: 7px !important;
  font-size: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#shoppingListSection .shopping-supplier-row strong {
  font-size: 11px !important;
  line-height: 12px !important;
  font-weight: 800 !important;
  color: #fff !important;
}

#shoppingListSection .shopping-supplier-row small {
  font-size: 9px !important;
  line-height: 10px !important;
  color: rgba(255,255,255,.58) !important;
}

#shoppingListSection .shopping-supplier-row em {
  font-style: normal !important;
  font-size: 10px !important;
  line-height: 12px !important;
  font-weight: 700 !important;
  color: #fff !important;
}

#shoppingListSection .shopping-side-actions {
  display: grid !important;
  gap: 4px !important;
}

#shoppingListSection .shopping-quick-action,
#shoppingListSection .shopping-side-action {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr) !important;
  min-height: 28px !important;
  height: 28px !important;
  gap: 6px !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 2px 4px !important;
  border-radius: 7px !important;
  font-size: 10px !important;
  line-height: 12px !important;
}

#shoppingListSection .shopping-quick-action i,
#shoppingListSection .shopping-side-action i,
#shoppingListSection .shopping-quick-action span:first-child,
#shoppingListSection .shopping-side-action span:first-child {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#shoppingListSection .shopping-quick-action strong,
#shoppingListSection .shopping-side-action strong {
  display: block !important;
  font-size: 10px !important;
  line-height: 11px !important;
  font-weight: 800 !important;
  color: #fff !important;
}

#shoppingListSection .shopping-quick-action small,
#shoppingListSection .shopping-side-action small,
#shoppingListSection .shopping-quick-action em,
#shoppingListSection .shopping-side-action em {
  display: block !important;
  font-size: 9px !important;
  line-height: 10px !important;
  font-weight: 400 !important;
  color: rgba(255,255,255,.58) !important;
}

#shoppingListSection .shopping-sidebar-empty {
  padding: 4px 0 !important;
  font-size: 10px !important;
  line-height: 12px !important;
}

@media (max-width: 1100px) {
  #shoppingListSection .shopping-layout-grid,
  #shoppingListSection .shopping-procurement-layout {
    grid-template-columns: 1fr !important;
  }

  #shoppingListSection .shopping-right-sidebar,
  #shoppingListSection .shopping-side-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 768px) {
  #shoppingListSection .shopping-stats-row,
  #shoppingListSection .shopping-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* --- SHOPPING LIST TARGET STAT + RIGHT SIDEBAR TRUE LAST OVERRIDE --- */
#shoppingListSection .shopping-stats-row,
#shoppingListSection .shopping-metrics-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin-bottom: 18px !important;
}

#shoppingListSection .shopping-stat-card,
#shoppingListSection .shopping-metric-card {
  height: 84px !important;
  min-height: 84px !important;
  max-height: 84px !important;
  padding: 16px 18px !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  background: rgba(10, 15, 22, .82) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: none !important;
}

#shoppingListSection .shopping-stat-icon,
#shoppingListSection .shopping-metric-icon {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  flex: 0 0 42px !important;
  border-radius: 12px !important;
  font-size: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#shoppingListSection .shopping-stat-card small,
#shoppingListSection .shopping-metric-card small {
  display: block !important;
  font-size: 13px !important;
  line-height: 16px !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,.78) !important;
  margin: 0 !important;
}

#shoppingListSection .shopping-stat-card strong,
#shoppingListSection .shopping-metric-card strong {
  display: block !important;
  font-size: 24px !important;
  line-height: 28px !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  color: #fff !important;
  margin: 2px 0 1px !important;
}

#shoppingListSection .shopping-stat-card em,
#shoppingListSection .shopping-metric-card em {
  display: block !important;
  font-style: normal !important;
  font-size: 13px !important;
  line-height: 16px !important;
  font-weight: 400 !important;
  color: rgba(255,255,255,.58) !important;
  margin: 0 !important;
}

#shoppingListSection .shopping-layout-grid,
#shoppingListSection .shopping-procurement-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 320px !important;
  gap: 18px !important;
  align-items: start !important;
}

#shoppingListSection .shopping-right-sidebar,
#shoppingListSection .shopping-side-panel {
  width: 320px !important;
  max-width: 320px !important;
  min-width: 320px !important;
  display: grid !important;
  gap: 12px !important;
}

#shoppingListSection .shopping-mode-card,
#shoppingListSection .shopping-sidebar-panel {
  padding: 18px !important;
  border-radius: 12px !important;
  background: rgba(10, 15, 22, .82) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: none !important;
}

#shoppingListSection .shopping-mode-card {
  border-color: rgba(245, 181, 35, .9) !important;
  min-height: 150px !important;
}

#shoppingListSection .shopping-sidebar-panel {
  min-height: auto !important;
}

#shoppingListSection .shopping-mode-card-head {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin-bottom: 16px !important;
}

#shoppingListSection .shopping-mode-card-head > span,
#shoppingListSection .shopping-mode-card-head > .shopping-mode-icon {
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  flex: 0 0 58px !important;
  border-radius: 50% !important;
  font-size: 26px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#shoppingListSection .shopping-mode-card h4,
#shoppingListSection .shopping-sidebar-panel h4 {
  font-size: 18px !important;
  line-height: 22px !important;
  font-weight: 800 !important;
  color: #fff !important;
  margin: 0 !important;
}

#shoppingListSection .shopping-mode-card p {
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 400 !important;
  color: rgba(255,255,255,.68) !important;
  margin: 4px 0 0 !important;
}

#shoppingListSection .shopping-mode-card .login-btn,
#shoppingListSection .shopping-sidebar-panel > .login-btn,
#shoppingListSection .shopping-mode-start-btn {
  height: 44px !important;
  min-height: 44px !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  padding: 0 16px !important;
}

#shoppingListSection .shopping-summary-row,
#shoppingListSection .shopping-summary-line {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 18px !important;
  font-size: 14px !important;
  line-height: 18px !important;
}

#shoppingListSection .shopping-summary-row span,
#shoppingListSection .shopping-summary-line span {
  color: rgba(255,255,255,.72) !important;
  font-weight: 400 !important;
}

#shoppingListSection .shopping-summary-row strong,
#shoppingListSection .shopping-summary-line strong {
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

#shoppingListSection .shopping-supplier-row {
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: center !important;
  margin-bottom: 16px !important;
}

#shoppingListSection .shopping-supplier-row i,
#shoppingListSection .shopping-supplier-icon {
  width: 26px !important;
  height: 26px !important;
  font-size: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#shoppingListSection .shopping-supplier-row strong {
  font-size: 14px !important;
  line-height: 17px !important;
  font-weight: 800 !important;
  color: #fff !important;
}

#shoppingListSection .shopping-supplier-row small {
  font-size: 12px !important;
  line-height: 15px !important;
  color: rgba(255,255,255,.58) !important;
}

#shoppingListSection .shopping-supplier-row em {
  font-style: normal !important;
  font-size: 14px !important;
  line-height: 17px !important;
  font-weight: 700 !important;
  color: #fff !important;
}

#shoppingListSection .shopping-quick-action,
#shoppingListSection .shopping-side-action {
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: center !important;
  margin-bottom: 12px !important;
}

#shoppingListSection .shopping-quick-action i,
#shoppingListSection .shopping-side-action i,
#shoppingListSection .shopping-quick-action span:first-child,
#shoppingListSection .shopping-side-action span:first-child {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  border-radius: 7px !important;
  font-size: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#shoppingListSection .shopping-quick-action strong,
#shoppingListSection .shopping-side-action strong {
  display: block !important;
  font-size: 14px !important;
  line-height: 16px !important;
  font-weight: 800 !important;
  color: #fff !important;
}

#shoppingListSection .shopping-quick-action small,
#shoppingListSection .shopping-side-action small {
  display: block !important;
  font-size: 12px !important;
  line-height: 14px !important;
  font-weight: 400 !important;
  color: rgba(255,255,255,.58) !important;
}

@media (max-width: 1100px) {
  #shoppingListSection .shopping-layout-grid,
  #shoppingListSection .shopping-procurement-layout {
    grid-template-columns: 1fr !important;
  }

  #shoppingListSection .shopping-right-sidebar,
  #shoppingListSection .shopping-side-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 768px) {
  #shoppingListSection .shopping-stats-row,
  #shoppingListSection .shopping-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* --- SHOPPING LIST SIDEBAR + STAT TARGET FINAL OVERRIDE --- */
#shoppingListSection .shopping-stats-row,
#shoppingListSection .shopping-metrics-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin-bottom: 18px !important;
}

#shoppingListSection .shopping-stat-card,
#shoppingListSection .shopping-metric-card {
  height: 84px !important;
  min-height: 84px !important;
  max-height: 84px !important;
  padding: 16px 18px !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  background: rgba(10, 15, 22, .82) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

#shoppingListSection .shopping-stat-icon,
#shoppingListSection .shopping-metric-icon {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  flex: 0 0 42px !important;
  border-radius: 12px !important;
  font-size: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#shoppingListSection .shopping-stat-card small,
#shoppingListSection .shopping-metric-card small,
#shoppingListSection .shopping-stat-card span,
#shoppingListSection .shopping-metric-card span {
  display: block !important;
  font-size: 13px !important;
  line-height: 16px !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,.78) !important;
}

#shoppingListSection .shopping-stat-card strong,
#shoppingListSection .shopping-metric-card strong {
  display: block !important;
  font-size: 24px !important;
  line-height: 28px !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  color: #fff !important;
  margin: 2px 0 1px !important;
}

#shoppingListSection .shopping-stat-card em,
#shoppingListSection .shopping-metric-card em {
  display: block !important;
  font-style: normal !important;
  font-size: 13px !important;
  line-height: 16px !important;
  font-weight: 400 !important;
  color: rgba(255,255,255,.58) !important;
}

#shoppingListSection .shopping-layout-grid,
#shoppingListSection .shopping-procurement-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 320px !important;
  gap: 18px !important;
  align-items: start !important;
}

#shoppingListSection .shopping-right-sidebar,
#shoppingListSection .shopping-side-panel {
  width: 320px !important;
  max-width: 320px !important;
  min-width: 320px !important;
  display: grid !important;
  gap: 12px !important;
}

#shoppingListSection .shopping-mode-card,
#shoppingListSection .shopping-sidebar-panel {
  padding: 18px !important;
  border-radius: 12px !important;
  background: rgba(10, 15, 22, .82) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: none !important;
}

#shoppingListSection .shopping-mode-card {
  border-color: rgba(245, 181, 35, .9) !important;
  min-height: 150px !important;
}

#shoppingListSection .shopping-sidebar-panel {
  min-height: auto !important;
}

#shoppingListSection .shopping-mode-card-head {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin-bottom: 16px !important;
}

#shoppingListSection .shopping-mode-card-head > span,
#shoppingListSection .shopping-mode-card-head > .shopping-mode-icon {
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  flex: 0 0 58px !important;
  border-radius: 50% !important;
  font-size: 26px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#shoppingListSection .shopping-mode-card h4,
#shoppingListSection .shopping-sidebar-panel h4 {
  font-size: 18px !important;
  line-height: 22px !important;
  font-weight: 800 !important;
  color: #fff !important;
  margin: 0 !important;
}

#shoppingListSection .shopping-mode-card p {
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 400 !important;
  color: rgba(255,255,255,.68) !important;
  margin: 4px 0 0 !important;
}

#shoppingListSection .shopping-mode-card .login-btn,
#shoppingListSection .shopping-sidebar-panel > .login-btn,
#shoppingListSection .shopping-mode-start-btn {
  height: 44px !important;
  min-height: 44px !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  padding: 0 16px !important;
}

#shoppingListSection .shopping-summary-row,
#shoppingListSection .shopping-summary-line {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 18px !important;
  font-size: 14px !important;
  line-height: 18px !important;
}

#shoppingListSection .shopping-summary-row span,
#shoppingListSection .shopping-summary-line span {
  color: rgba(255,255,255,.72) !important;
  font-weight: 400 !important;
}

#shoppingListSection .shopping-summary-row strong,
#shoppingListSection .shopping-summary-line strong {
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

#shoppingListSection .shopping-sidebar-link {
  border: 0 !important;
  background: transparent !important;
  color: var(--accent-gold) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}

#shoppingListSection .shopping-supplier-row {
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: center !important;
  margin-bottom: 16px !important;
}

#shoppingListSection .shopping-supplier-row i,
#shoppingListSection .shopping-supplier-icon {
  width: 26px !important;
  height: 26px !important;
  font-size: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--text-muted) !important;
}

#shoppingListSection .shopping-supplier-row strong {
  font-size: 14px !important;
  line-height: 17px !important;
  font-weight: 800 !important;
  color: #fff !important;
}

#shoppingListSection .shopping-supplier-row small {
  display: block !important;
  font-size: 12px !important;
  line-height: 15px !important;
  color: rgba(255,255,255,.58) !important;
}

#shoppingListSection .shopping-supplier-row em {
  font-style: normal !important;
  font-size: 14px !important;
  line-height: 17px !important;
  font-weight: 700 !important;
  color: #fff !important;
}

#shoppingListSection .shopping-sidebar-empty {
  color: rgba(255,255,255,.58) !important;
  font-size: 12px !important;
  line-height: 16px !important;
}

#shoppingListSection .shopping-quick-action,
#shoppingListSection .shopping-side-action {
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: center !important;
  margin-bottom: 12px !important;
  padding: 0 !important;
}

#shoppingListSection .shopping-quick-action i,
#shoppingListSection .shopping-quick-action span:first-child,
#shoppingListSection .shopping-side-action i,
#shoppingListSection .shopping-side-action span:first-child {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  border-radius: 7px !important;
  font-size: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#shoppingListSection .shopping-quick-action strong,
#shoppingListSection .shopping-side-action strong {
  display: block !important;
  font-size: 14px !important;
  line-height: 16px !important;
  font-weight: 800 !important;
  color: #fff !important;
}

#shoppingListSection .shopping-quick-action small,
#shoppingListSection .shopping-quick-action em,
#shoppingListSection .shopping-side-action small,
#shoppingListSection .shopping-side-action em {
  display: block !important;
  font-size: 12px !important;
  line-height: 14px !important;
  font-weight: 400 !important;
  color: rgba(255,255,255,.58) !important;
}

@media (max-width: 1100px) {
  #shoppingListSection .shopping-layout-grid,
  #shoppingListSection .shopping-procurement-layout {
    grid-template-columns: 1fr !important;
  }

  #shoppingListSection .shopping-right-sidebar,
  #shoppingListSection .shopping-side-panel {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }
}

/* --- SHOPPING LIST MICRO-DENSITY PROPORTIONS --- */
#shoppingListSection .shopping-stats-row,
#shoppingListSection .shopping-metrics-grid {
  gap: 8px !important;
  margin-bottom: 10px !important;
}

#shoppingListSection .shopping-stat-card,
#shoppingListSection .shopping-metric-card {
  height: 68px !important;
  min-height: 68px !important;
  padding: 8px 10px !important;
  gap: 8px !important;
  border-radius: 8px !important;
}

#shoppingListSection .shopping-stat-icon,
#shoppingListSection .shopping-metric-icon {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  flex: 0 0 34px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
}

#shoppingListSection .shopping-stat-card strong,
#shoppingListSection .shopping-metric-card strong {
  font-size: 15px !important;
  line-height: 17px !important;
  font-weight: 800 !important;
  margin: 0 !important;
}

#shoppingListSection .shopping-stat-card small,
#shoppingListSection .shopping-metric-card small,
#shoppingListSection .shopping-stat-card span,
#shoppingListSection .shopping-metric-card span,
#shoppingListSection .shopping-stat-card em,
#shoppingListSection .shopping-metric-card em {
  font-size: 10px !important;
  line-height: 11px !important;
}

#shoppingListSection .shopping-control-panel,
#shoppingListSection .shopping-filter-panel {
  padding: 10px !important;
  margin-bottom: 10px !important;
  border-radius: 10px !important;
}

#shoppingListSection .shopping-status-tabs {
  gap: 6px !important;
  margin-bottom: 10px !important;
  padding-bottom: 10px !important;
}

#shoppingListSection .shopping-status-tab {
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 10px !important;
  border-radius: 7px !important;
  font-size: 11px !important;
  line-height: 14px !important;
  font-weight: 800 !important;
}

#shoppingListSection .shopping-filter-row {
  gap: 8px !important;
}

#shoppingListSection .shopping-filter-row .login-input,
#shoppingListSection #shoppingSearchInput,
#shoppingListSection select.login-input {
  height: 30px !important;
  min-height: 30px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-radius: 7px !important;
  font-size: 11px !important;
  line-height: 14px !important;
  font-weight: 700 !important;
}

#shoppingListSection .shopping-header-search .login-input {
  height: 32px !important;
  min-height: 32px !important;
  font-size: 11px !important;
  padding-left: 34px !important;
}

#shoppingListSection .shopping-header-search i {
  left: 12px !important;
  font-size: 12px !important;
}

#shoppingListSection .shopping-add-button,
#shoppingListSection .shopping-add-btn {
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 14px !important;
  border-radius: 7px !important;
  font-size: 12px !important;
}

#shoppingListSection .shopping-item-card {
  min-height: 52px !important;
  padding: 8px 10px !important;
  border-radius: 7px !important;
}

#shoppingListSection .shopping-item-card h4,
#shoppingListSection .mock-item-text strong {
  font-size: 13px !important;
  line-height: 16px !important;
}

#shoppingListSection .shopping-item-card p,
#shoppingListSection .shopping-item-card small,
#shoppingListSection .mock-item-text small,
#shoppingListSection .shopping-meta-row {
  font-size: 11px !important;
  line-height: 14px !important;
}

#shoppingListSection .shopping-status-badge,
#shoppingListSection .shopping-priority-badge {
  font-size: 10px !important;
  line-height: 12px !important;
  padding: 3px 7px !important;
}

/* --- SHOPPING LIST HIGH-DENSITY SAAS CALIBRATION --- */
#shoppingListSection .shopping-stats-row,
#shoppingListSection .shopping-metrics-grid {
  gap: 10px !important;
  margin-bottom: 12px !important;
}

#shoppingListSection .shopping-stat-card,
#shoppingListSection .shopping-metric-card {
  height: 68px !important;
  max-height: 68px !important;
  min-height: 68px !important;
  padding: 8px 12px !important;
  gap: 8px !important;
  overflow: hidden !important;
}

#shoppingListSection .shopping-stat-icon,
#shoppingListSection .shopping-metric-icon {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  flex: 0 0 34px !important;
  font-size: 13px !important;
}

#shoppingListSection .shopping-stat-card strong,
#shoppingListSection .shopping-metric-card strong {
  font-size: 15px !important;
  line-height: 17px !important;
  font-weight: 800 !important;
}

#shoppingListSection .shopping-stat-card small,
#shoppingListSection .shopping-metric-card small,
#shoppingListSection .shopping-stat-card span,
#shoppingListSection .shopping-metric-card span,
#shoppingListSection .shopping-stat-card em,
#shoppingListSection .shopping-metric-card em {
  font-size: 10px !important;
  line-height: 11px !important;
}

#shoppingListSection .shopping-control-panel,
#shoppingListSection .shopping-filter-panel {
  margin-top: 0 !important;
  margin-bottom: 10px !important;
  padding: 10px !important;
}

#shoppingListSection .shopping-status-tab,
#shoppingListSection .shopping-filter-row .login-input,
#shoppingListSection #shoppingSearchInput,
#shoppingListSection select.login-input {
  height: 30px !important;
  max-height: 30px !important;
  min-height: 30px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  font-size: 11px !important;
  line-height: 14px !important;
}

#shoppingListSection .shopping-status-tab {
  padding-left: 10px !important;
  padding-right: 10px !important;
}

#shoppingListSection .shopping-list-container {
  gap: 6px !important;
}

#shoppingListSection .mock-shopping-row,
#shoppingListSection .shopping-item-card {
  min-height: 52px !important;
  max-height: 52px !important;
  padding-top: 4px !important;
  padding-bottom: 4px !important;
  overflow: hidden !important;
}

#shoppingListSection .shopping-item-main,
#shoppingListSection .shopping-meta-row,
#shoppingListSection .shopping-actions {
  gap: 6px !important;
  margin-top: 4px !important;
}

#shoppingListSection .shopping-item-card h4,
#shoppingListSection .mock-item-text strong {
  font-size: 12px !important;
  line-height: 14px !important;
}

#shoppingListSection .shopping-item-card p,
#shoppingListSection .shopping-item-card small,
#shoppingListSection .mock-item-text small,
#shoppingListSection .shopping-meta-row {
  font-size: 10px !important;
  line-height: 12px !important;
}

/* --- SHOPPING LIST MINI STAT CARDS TRUE FINAL OVERRIDE --- */
#shoppingListSection .shopping-stats-row,
#shoppingListSection .shopping-metrics-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
}

#shoppingListSection .shopping-stat-card,
#shoppingListSection .shopping-metric-card {
  min-height: 72px !important;
  height: 72px !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: rgba(10,15,22,.82) !important;
  border: 1px solid rgba(255,255,255,.06) !important;
  box-shadow: none !important;
}

#shoppingListSection .shopping-stat-icon,
#shoppingListSection .shopping-metric-icon {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  flex: 0 0 32px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
}

#shoppingListSection .shopping-stat-card small,
#shoppingListSection .shopping-metric-card small,
#shoppingListSection .shopping-stat-card span,
#shoppingListSection .shopping-metric-card span {
  font-size: 10px !important;
  line-height: 12px !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,.62) !important;
  margin-bottom: 2px !important;
}

#shoppingListSection .shopping-stat-card strong,
#shoppingListSection .shopping-metric-card strong {
  font-size: 16px !important;
  line-height: 18px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: #ffffff !important;
  margin: 0 !important;
}

#shoppingListSection .shopping-stat-card em,
#shoppingListSection .shopping-metric-card em {
  font-size: 10px !important;
  line-height: 12px !important;
  font-style: normal !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,.50) !important;
}

@media (max-width: 768px) {
  #shoppingListSection .shopping-stats-row,
  #shoppingListSection .shopping-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* --- SHOPPING LIST MINI STAT CARDS ABSOLUTE FINAL OVERRIDE --- */
#shoppingListSection .shopping-stats-row,
#shoppingListSection .shopping-metrics-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
}

#shoppingListSection .shopping-stat-card,
#shoppingListSection .shopping-metric-card {
  min-height: 72px !important;
  height: 72px !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: rgba(10,15,22,.82) !important;
  border: 1px solid rgba(255,255,255,.06) !important;
  box-shadow: none !important;
}

#shoppingListSection .shopping-stat-icon,
#shoppingListSection .shopping-metric-icon {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  flex: 0 0 32px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
}

#shoppingListSection .shopping-stat-card small,
#shoppingListSection .shopping-metric-card small,
#shoppingListSection .shopping-stat-card span,
#shoppingListSection .shopping-metric-card span {
  font-size: 10px !important;
  line-height: 12px !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,.62) !important;
  margin-bottom: 2px !important;
}

#shoppingListSection .shopping-stat-card strong,
#shoppingListSection .shopping-metric-card strong {
  font-size: 16px !important;
  line-height: 18px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: #ffffff !important;
  margin: 0 !important;
}

#shoppingListSection .shopping-stat-card em,
#shoppingListSection .shopping-metric-card em {
  font-size: 10px !important;
  line-height: 12px !important;
  font-style: normal !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,.50) !important;
}

@media (max-width: 768px) {
  #shoppingListSection .shopping-stats-row,
  #shoppingListSection .shopping-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* --- SHOPPING LIST MINI STAT CARDS FINAL OVERRIDE --- */
#shoppingListSection .shopping-stats-row,
#shoppingListSection .shopping-metrics-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
}

#shoppingListSection .shopping-stat-card,
#shoppingListSection .shopping-metric-card {
  min-height: 72px !important;
  height: 72px !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: rgba(10,15,22,.82) !important;
  border: 1px solid rgba(255,255,255,.06) !important;
  box-shadow: none !important;
}

#shoppingListSection .shopping-stat-icon,
#shoppingListSection .shopping-metric-icon {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  flex: 0 0 32px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
}

#shoppingListSection .shopping-stat-card small,
#shoppingListSection .shopping-metric-card small,
#shoppingListSection .shopping-stat-card span,
#shoppingListSection .shopping-metric-card span {
  font-size: 10px !important;
  line-height: 12px !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,.62) !important;
  margin-bottom: 2px !important;
}

#shoppingListSection .shopping-stat-card strong,
#shoppingListSection .shopping-metric-card strong {
  font-size: 16px !important;
  line-height: 18px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: #ffffff !important;
  margin: 0 !important;
}

#shoppingListSection .shopping-stat-card em,
#shoppingListSection .shopping-metric-card em {
  font-size: 10px !important;
  line-height: 12px !important;
  font-style: normal !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,.50) !important;
}

@media (max-width: 768px) {
  #shoppingListSection .shopping-stats-row,
  #shoppingListSection .shopping-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* --- SHOPPING LIST TARGET SCREENSHOT TYPOGRAPHY MAP --- */
#shoppingListSection,
#shoppingListSection * {
  font-family: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

#shoppingListSection .shopping-page-shell {
  max-width: 1280px !important;
  gap: 18px !important;
}

#shoppingListSection .shopping-page-header {
  align-items: flex-start !important;
  margin-bottom: 10px !important;
}

#shoppingListSection .shopping-title-block {
  align-items: center !important;
  gap: 14px !important;
}

#shoppingListSection .shopping-title-icon {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  flex-basis: 56px !important;
  font-size: 22px !important;
  border-radius: 50% !important;
}

#shoppingListSection .shopping-title-block h3 {
  font-size: 44px !important;
  line-height: 48px !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  color: #ffffff !important;
  margin: 0 !important;
}

#shoppingListSection .shopping-title-block p,
#shoppingListSection #shoppingSectionSubtitle {
  font-size: 17px !important;
  line-height: 22px !important;
  font-weight: 500 !important;
  color: rgba(255, 255, 255, 0.66) !important;
  margin: 2px 0 0 !important;
}

#shoppingListSection .shopping-header-search {
  width: 420px !important;
  max-width: 420px !important;
  flex-basis: 420px !important;
}

#shoppingListSection .shopping-header-search .login-input,
#shoppingListSection #shoppingSearchInput {
  height: 54px !important;
  min-height: 54px !important;
  border-radius: 12px !important;
  font-size: 15px !important;
  line-height: 20px !important;
  font-weight: 500 !important;
  color: rgba(255, 255, 255, 0.78) !important;
}

#shoppingListSection .shopping-add-button,
#shoppingListSection .shopping-add-btn {
  height: 54px !important;
  min-height: 54px !important;
  border-radius: 12px !important;
  font-size: 15px !important;
  line-height: 20px !important;
  font-weight: 700 !important;
}

#shoppingListSection .shopping-stats-row,
#shoppingListSection .shopping-metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin-bottom: 18px !important;
}

#shoppingListSection .shopping-stat-card,
#shoppingListSection .shopping-metric-card {
  min-height: 136px !important;
  height: 136px !important;
  padding: 18px !important;
  gap: 16px !important;
  border-radius: 12px !important;
}

#shoppingListSection .shopping-stat-icon,
#shoppingListSection .shopping-metric-icon {
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  flex-basis: 64px !important;
  border-radius: 14px !important;
  font-size: 22px !important;
}

#shoppingListSection .shopping-stat-card small,
#shoppingListSection .shopping-metric-card small,
#shoppingListSection .shopping-stat-card span,
#shoppingListSection .shopping-metric-card span {
  font-size: 15px !important;
  line-height: 20px !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.72) !important;
}

#shoppingListSection .shopping-stat-card strong,
#shoppingListSection .shopping-metric-card strong {
  font-size: 22px !important;
  line-height: 26px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: #ffffff !important;
  margin: 5px 0 4px !important;
}

#shoppingListSection .shopping-stat-card em,
#shoppingListSection .shopping-metric-card em {
  font-size: 14px !important;
  line-height: 18px !important;
  font-weight: 500 !important;
  color: rgba(255, 255, 255, 0.60) !important;
}

#shoppingListSection .shopping-layout-grid,
#shoppingListSection .shopping-procurement-layout {
  grid-template-columns: minmax(0, 1fr) 320px !important;
  gap: 18px !important;
}

#shoppingListSection .shopping-control-panel,
#shoppingListSection .shopping-filter-panel {
  padding: 14px !important;
  border-radius: 12px !important;
}

#shoppingListSection .shopping-status-tabs {
  gap: 10px !important;
}

#shoppingListSection .shopping-status-tab {
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 16px !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  line-height: 20px !important;
  font-weight: 600 !important;
}

#shoppingListSection .shopping-filter-row .login-input,
#shoppingListSection select.login-input {
  height: 50px !important;
  min-height: 50px !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  line-height: 20px !important;
  font-weight: 600 !important;
}

#shoppingListSection #shoppingSortFilter {
  font-size: 14px !important;
  font-weight: 500 !important;
}

#shoppingListSection .shopping-list-header,
#shoppingListSection .mock-shopping-header,
#shoppingListSection table th {
  font-size: 13px !important;
  line-height: 18px !important;
  font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.62) !important;
}

#shoppingListSection .shopping-item-card {
  min-height: 88px !important;
  padding: 14px 16px !important;
}

#shoppingListSection .shopping-item-card h4,
#shoppingListSection .mock-item-text strong {
  font-size: 16px !important;
  line-height: 20px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
}

#shoppingListSection .shopping-item-card p,
#shoppingListSection .shopping-item-card small,
#shoppingListSection .mock-item-text small,
#shoppingListSection .shopping-meta-row {
  font-size: 13px !important;
  line-height: 18px !important;
  font-weight: 500 !important;
}

#shoppingListSection .shopping-item-card .shopping-meta-row,
#shoppingListSection .shopping-status-badge,
#shoppingListSection .shopping-priority-badge {
  font-size: 13px !important;
  line-height: 16px !important;
}

#shoppingListSection .shopping-status-badge,
#shoppingListSection .shopping-priority-badge {
  font-weight: 600 !important;
  padding: 5px 9px !important;
}

#shoppingListSection .shopping-actions .slim-btn,
#shoppingListSection .shopping-item-card button {
  font-size: 13px !important;
  line-height: 16px !important;
  font-weight: 700 !important;
}

#shoppingListSection .shopping-right-sidebar,
#shoppingListSection .shopping-side-panel {
  width: 320px !important;
  min-width: 320px !important;
}

#shoppingListSection .shopping-mode-card {
  min-height: 160px !important;
  padding: 18px !important;
}

#shoppingListSection .shopping-mode-card h4,
#shoppingListSection .shopping-sidebar-panel h4,
#shoppingListSection .shopping-side-card h4 {
  font-size: 15px !important;
  line-height: 20px !important;
  font-weight: 700 !important;
}

#shoppingListSection .shopping-mode-card p,
#shoppingListSection .shopping-summary-line,
#shoppingListSection .shopping-side-action strong,
#shoppingListSection .shopping-side-action em {
  font-size: 13px !important;
  line-height: 18px !important;
  font-weight: 500 !important;
}

#shoppingListSection .shopping-mode-card-head > span,
#shoppingListSection .shopping-mode-card-head > .shopping-mode-icon {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  flex-basis: 56px !important;
}

#shoppingListSection .shopping-mode-start-btn,
#shoppingListSection .shopping-mode-card .login-btn {
  height: 52px !important;
  min-height: 52px !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  line-height: 20px !important;
  font-weight: 700 !important;
}

#shoppingListSection .shopping-summary-line strong,
#shoppingListSection .shopping-side-card strong {
  font-size: 15px !important;
  line-height: 20px !important;
  font-weight: 600 !important;
}

.sidebar .nav-link {
  font-size: 16px !important;
  line-height: 22px !important;
  font-weight: 500 !important;
}

.sidebar .nav-link.active {
  font-weight: 700 !important;
}

@media (max-width: 1400px) {
  #shoppingListSection .shopping-stat-card strong,
  #shoppingListSection .shopping-metric-card strong {
    font-size: 22px !important;
    line-height: 26px !important;
  }
}

@media (max-width: 1280px) {
  #shoppingListSection .shopping-stat-card,
  #shoppingListSection .shopping-metric-card {
    min-height: 124px !important;
    height: 124px !important;
    padding: 14px !important;
  }

  #shoppingListSection .shopping-stat-card strong,
  #shoppingListSection .shopping-metric-card strong {
    font-size: 22px !important;
    line-height: 26px !important;
  }
}

@media (max-width: 1100px) {
  #shoppingListSection .shopping-layout-grid,
  #shoppingListSection .shopping-procurement-layout {
    grid-template-columns: 1fr !important;
  }

  #shoppingListSection .shopping-right-sidebar,
  #shoppingListSection .shopping-side-panel {
    width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 768px) {
  #shoppingListSection .shopping-title-block h3 {
    font-size: 32px !important;
    line-height: 38px !important;
  }

  #shoppingListSection .shopping-stats-row,
  #shoppingListSection .shopping-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* --- SHOPPING LIST COMPACT DASHBOARD FINAL OVERRIDE --- */
#shoppingListSection,
#shoppingListSection * {
  font-family: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif !important;
}

body:has(#shoppingListSection[style*="block"]) #globalHeader {
  margin-bottom: 20px !important;
}

#shoppingListSection .shopping-page-shell {
  max-width: 1280px !important;
  margin: 0 auto !important;
  gap: 14px !important;
}

#shoppingListSection .shopping-page-header {
  align-items: center !important;
  margin: 0 0 4px !important;
  gap: 14px !important;
}

#shoppingListSection .shopping-title-block {
  gap: 12px !important;
}

#shoppingListSection .shopping-title-block h3 {
  font-family: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 16px !important;
  line-height: 34px !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  color: #ffffff !important;
  margin: 0 !important;
}

#shoppingListSection .shopping-title-block p,
#shoppingListSection #shoppingSectionSubtitle {
  font-size: 10px !important;
  line-height: 20px !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,.62) !important;
  margin: -8px 0 0 !important;
}

#shoppingListSection .shopping-title-icon {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  flex-basis: 56px !important;
  border-radius: 50% !important;
  font-size: 22px !important;
}

#shoppingListSection .shopping-header-search {
  width: 420px !important;
  max-width: 420px !important;
  flex: 0 0 420px !important;
}

#shoppingListSection .shopping-header-search .login-input {
  height: 44px !important;
  min-height: 44px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  padding-left: 44px !important;
}

#shoppingListSection .shopping-add-button,
#shoppingListSection .shopping-add-btn {
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 22px !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

#shoppingListSection .shopping-layout-grid,
#shoppingListSection .shopping-procurement-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 320px !important;
  gap: 18px !important;
  align-items: start !important;
}

#shoppingListSection .shopping-stats-row,
#shoppingListSection .shopping-metrics-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin-bottom: 18px !important;
}

#shoppingListSection .shopping-stat-card,
#shoppingListSection .shopping-metric-card {
  min-height: 104px !important;
  height: 104px !important;
  padding: 18px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  background: rgba(10,15,22,.78) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: none !important;
}

#shoppingListSection .shopping-stat-icon,
#shoppingListSection .shopping-metric-icon {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  flex-basis: 48px !important;
  border-radius: 12px !important;
  font-size: 20px !important;
}

#shoppingListSection .shopping-stat-card small,
#shoppingListSection .shopping-metric-card small,
#shoppingListSection .shopping-stat-card span,
#shoppingListSection .shopping-metric-card span {
  font-size: 13px !important;
  line-height: 16px !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,.72) !important;
}

#shoppingListSection .shopping-stat-card strong,
#shoppingListSection .shopping-metric-card strong {
  font-size: 22px !important;
  line-height: 26px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: #ffffff !important;
  margin: 4px 0 2px !important;
}

#shoppingListSection .shopping-stat-card em,
#shoppingListSection .shopping-metric-card em {
  font-size: 13px !important;
  line-height: 16px !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,.55) !important;
}

#shoppingListSection .shopping-control-panel,
#shoppingListSection .shopping-filter-panel {
  padding: 14px !important;
  border-radius: 12px !important;
  margin-bottom: 14px !important;
  background: rgba(10,15,22,.78) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
}

#shoppingListSection .shopping-status-tabs {
  gap: 10px !important;
  margin-bottom: 14px !important;
}

#shoppingListSection .shopping-status-tab {
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 16px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

#shoppingListSection .shopping-filter-row {
  gap: 10px !important;
}

#shoppingListSection .shopping-filter-row .login-input,
#shoppingListSection #shoppingSearchInput,
#shoppingListSection select.login-input {
  height: 42px !important;
  min-height: 42px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

#shoppingListSection table th,
#shoppingListSection .mock-shopping-header,
#shoppingListSection .shopping-list-header {
  font-size: 12px !important;
  line-height: 16px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,.62) !important;
}

#shoppingListSection .mock-item-text strong,
#shoppingListSection .shopping-item-card h4 {
  font-size: 15px !important;
  line-height: 19px !important;
  font-weight: 800 !important;
}

#shoppingListSection .mock-item-text small,
#shoppingListSection .shopping-item-card p {
  font-size: 13px !important;
  line-height: 18px !important;
  font-weight: 500 !important;
}

#shoppingListSection .shopping-status-badge,
#shoppingListSection .shopping-priority-badge {
  font-size: 12px !important;
  line-height: 14px !important;
  font-weight: 700 !important;
  padding: 5px 9px !important;
}

#shoppingListSection .shopping-right-sidebar,
#shoppingListSection .shopping-side-panel {
  width: 320px !important;
  min-width: 320px !important;
}

#shoppingListSection .shopping-mode-card,
#shoppingListSection .shopping-sidebar-panel {
  padding: 18px !important;
  border-radius: 12px !important;
  background: rgba(10,15,22,.78) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
}

#shoppingListSection .shopping-mode-card {
  min-height: 150px !important;
}

#shoppingListSection .shopping-mode-card h4,
#shoppingListSection .shopping-sidebar-panel h4 {
  font-size: 18px !important;
  line-height: 22px !important;
  font-weight: 800 !important;
}

#shoppingListSection .shopping-mode-card p {
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 500 !important;
}

#shoppingListSection .shopping-mode-card-head > span,
#shoppingListSection .shopping-mode-card-head > .shopping-mode-icon {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  flex-basis: 52px !important;
  font-size: 22px !important;
}

#shoppingListSection .shopping-mode-card .login-btn,
#shoppingListSection .shopping-sidebar-panel > .login-btn,
#shoppingListSection .shopping-mode-start-btn {
  height: 44px !important;
  min-height: 44px !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

.sidebar .nav-link {
  font-size: 16px !important;
  line-height: 22px !important;
  font-weight: 500 !important;
}

.sidebar .nav-link.active {
  font-weight: 700 !important;
}

@media (max-width: 1400px) {
  #shoppingListSection .shopping-stat-card strong,
  #shoppingListSection .shopping-metric-card strong {
    font-size: 20px !important;
    line-height: 24px !important;
  }
}

@media (max-width: 1280px) {
  #shoppingListSection .shopping-stat-card strong,
  #shoppingListSection .shopping-metric-card strong {
    font-size: 20px !important;
    line-height: 24px !important;
  }
}

@media (max-width: 1100px) {
  #shoppingListSection .shopping-layout-grid,
  #shoppingListSection .shopping-procurement-layout {
    grid-template-columns: 1fr !important;
  }

  #shoppingListSection .shopping-right-sidebar,
  #shoppingListSection .shopping-side-panel {
    width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 768px) {
  #shoppingListSection .shopping-stats-row,
  #shoppingListSection .shopping-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #shoppingListSection .shopping-stat-card strong,
  #shoppingListSection .shopping-metric-card strong {
    font-size: 20px !important;
    line-height: 24px !important;
  }
}

/* --- SHOPPING LIST TARGET STAT + RIGHT SIDEBAR TRUE LAST OVERRIDE --- */
#shoppingListSection .shopping-stats-row,
#shoppingListSection .shopping-metrics-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin-bottom: 18px !important;
}

#shoppingListSection .shopping-stat-card,
#shoppingListSection .shopping-metric-card {
  height: 84px !important;
  min-height: 84px !important;
  max-height: 84px !important;
  padding: 16px 18px !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  background: rgba(10, 15, 22, .82) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: none !important;
}

#shoppingListSection .shopping-stat-icon,
#shoppingListSection .shopping-metric-icon {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  flex: 0 0 42px !important;
  border-radius: 12px !important;
  font-size: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#shoppingListSection .shopping-stat-card small,
#shoppingListSection .shopping-metric-card small {
  display: block !important;
  font-size: 13px !important;
  line-height: 16px !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,.78) !important;
  margin: 0 !important;
}

#shoppingListSection .shopping-stat-card strong,
#shoppingListSection .shopping-metric-card strong {
  display: block !important;
  font-size: 24px !important;
  line-height: 28px !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  color: #fff !important;
  margin: 2px 0 1px !important;
}

#shoppingListSection .shopping-stat-card em,
#shoppingListSection .shopping-metric-card em {
  display: block !important;
  font-style: normal !important;
  font-size: 13px !important;
  line-height: 16px !important;
  font-weight: 400 !important;
  color: rgba(255,255,255,.58) !important;
  margin: 0 !important;
}

#shoppingListSection .shopping-layout-grid,
#shoppingListSection .shopping-procurement-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 320px !important;
  gap: 18px !important;
  align-items: start !important;
}

#shoppingListSection .shopping-right-sidebar,
#shoppingListSection .shopping-side-panel {
  width: 320px !important;
  max-width: 320px !important;
  min-width: 320px !important;
  display: grid !important;
  gap: 12px !important;
}

#shoppingListSection .shopping-mode-card,
#shoppingListSection .shopping-sidebar-panel {
  padding: 18px !important;
  border-radius: 12px !important;
  background: rgba(10, 15, 22, .82) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: none !important;
}

#shoppingListSection .shopping-mode-card {
  border-color: rgba(245, 181, 35, .9) !important;
  min-height: 150px !important;
}

#shoppingListSection .shopping-sidebar-panel {
  min-height: auto !important;
}

#shoppingListSection .shopping-mode-card-head {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin-bottom: 16px !important;
}

#shoppingListSection .shopping-mode-card-head > span,
#shoppingListSection .shopping-mode-card-head > .shopping-mode-icon {
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  flex: 0 0 58px !important;
  border-radius: 50% !important;
  font-size: 26px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#shoppingListSection .shopping-mode-card h4,
#shoppingListSection .shopping-sidebar-panel h4 {
  font-size: 18px !important;
  line-height: 22px !important;
  font-weight: 800 !important;
  color: #fff !important;
  margin: 0 !important;
}

#shoppingListSection .shopping-mode-card p {
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 400 !important;
  color: rgba(255,255,255,.68) !important;
  margin: 4px 0 0 !important;
}

#shoppingListSection .shopping-mode-card .login-btn,
#shoppingListSection .shopping-sidebar-panel > .login-btn,
#shoppingListSection .shopping-mode-start-btn {
  height: 44px !important;
  min-height: 44px !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  padding: 0 16px !important;
}

#shoppingListSection .shopping-summary-row,
#shoppingListSection .shopping-summary-line {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 18px !important;
  font-size: 14px !important;
  line-height: 18px !important;
}

#shoppingListSection .shopping-summary-row span,
#shoppingListSection .shopping-summary-line span {
  color: rgba(255,255,255,.72) !important;
  font-weight: 400 !important;
}

#shoppingListSection .shopping-summary-row strong,
#shoppingListSection .shopping-summary-line strong {
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

#shoppingListSection .shopping-supplier-row {
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: center !important;
  margin-bottom: 16px !important;
}

#shoppingListSection .shopping-supplier-row i,
#shoppingListSection .shopping-supplier-icon {
  width: 26px !important;
  height: 26px !important;
  font-size: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#shoppingListSection .shopping-supplier-row strong {
  font-size: 14px !important;
  line-height: 17px !important;
  font-weight: 800 !important;
  color: #fff !important;
}

#shoppingListSection .shopping-supplier-row small {
  font-size: 12px !important;
  line-height: 15px !important;
  color: rgba(255,255,255,.58) !important;
}

#shoppingListSection .shopping-supplier-row em {
  font-style: normal !important;
  font-size: 14px !important;
  line-height: 17px !important;
  font-weight: 700 !important;
  color: #fff !important;
}

#shoppingListSection .shopping-quick-action,
#shoppingListSection .shopping-side-action {
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: center !important;
  margin-bottom: 12px !important;
}

#shoppingListSection .shopping-quick-action i,
#shoppingListSection .shopping-side-action i,
#shoppingListSection .shopping-quick-action span:first-child,
#shoppingListSection .shopping-side-action span:first-child {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  border-radius: 7px !important;
  font-size: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#shoppingListSection .shopping-quick-action strong,
#shoppingListSection .shopping-side-action strong {
  display: block !important;
  font-size: 14px !important;
  line-height: 16px !important;
  font-weight: 800 !important;
  color: #fff !important;
}

#shoppingListSection .shopping-quick-action small,
#shoppingListSection .shopping-side-action small {
  display: block !important;
  font-size: 12px !important;
  line-height: 14px !important;
  font-weight: 400 !important;
  color: rgba(255,255,255,.58) !important;
}

@media (max-width: 1100px) {
  #shoppingListSection .shopping-layout-grid,
  #shoppingListSection .shopping-procurement-layout {
    grid-template-columns: 1fr !important;
  }

  #shoppingListSection .shopping-right-sidebar,
  #shoppingListSection .shopping-side-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 768px) {
  #shoppingListSection .shopping-stats-row,
  #shoppingListSection .shopping-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* --- SHOPPING LIST RIGHT SIDEBAR ULTRA-COMPACT MICRO-UI TRUE EOF --- */
#shoppingListSection .shopping-right-sidebar,
#shoppingListSection .shopping-side-panel { gap: 6px !important; }
#shoppingListSection .shopping-sidebar-panel,
#shoppingListSection .shopping-side-card {
  padding: 10px !important;
  border-radius: 10px !important;
  min-height: 0 !important;
}
#shoppingListSection .shopping-side-card-head {
  gap: 6px !important;
  margin-bottom: 6px !important;
  align-items: center !important;
}
#shoppingListSection .shopping-side-card-head h4,
#shoppingListSection .shopping-sidebar-panel h4 {
  font-size: 12px !important;
  line-height: 14px !important;
  font-weight: 800 !important;
}
#shoppingListSection .shopping-side-card-head .login-input,
#shoppingListSection .shopping-sidebar-panel select.login-input {
  height: 24px !important;
  min-height: 24px !important;
  padding: 0 8px !important;
  border-radius: 7px !important;
  font-size: 10px !important;
  line-height: 12px !important;
}
#shoppingListSection .shopping-sidebar-link {
  font-size: 9px !important;
  line-height: 11px !important;
  padding: 0 !important;
}
#shoppingListSection .shopping-sidebar-panel > .login-btn,
#shoppingListSection .shopping-sidebar-panel .review-btn,
#shoppingListSection .shopping-sidebar-panel .shopping-review-btn {
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  line-height: 14px !important;
  font-weight: 800 !important;
}
#shoppingListSection .shopping-summary-row,
#shoppingListSection .shopping-summary-line {
  min-height: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 6px !important;
  font-size: 10px !important;
  line-height: 12px !important;
}
#shoppingListSection .shopping-summary-row + .shopping-summary-row,
#shoppingListSection .shopping-summary-line + .shopping-summary-line {
  margin-top: 2px !important;
}
#shoppingListSection .shopping-summary-row span,
#shoppingListSection .shopping-summary-line span,
#shoppingListSection .shopping-summary-row strong,
#shoppingListSection .shopping-summary-line strong {
  font-size: 10px !important;
  line-height: 12px !important;
  font-weight: 500 !important;
}
#shoppingListSection .shopping-top-suppliers-list {
  display: grid !important;
  gap: 2px !important;
}
#shoppingListSection .shopping-supplier-row {
  min-height: 26px !important;
  height: 26px !important;
  grid-template-columns: 24px minmax(0, 1fr) auto !important;
  gap: 6px !important;
  margin: 0 !important;
}
#shoppingListSection .shopping-supplier-row i,
#shoppingListSection .shopping-supplier-icon {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  border-radius: 7px !important;
  font-size: 12px !important;
}
#shoppingListSection .shopping-supplier-row strong {
  font-size: 11px !important;
  line-height: 12px !important;
  font-weight: 800 !important;
}
#shoppingListSection .shopping-supplier-row small {
  font-size: 9px !important;
  line-height: 10px !important;
}
#shoppingListSection .shopping-supplier-row em {
  font-size: 10px !important;
  line-height: 12px !important;
  font-weight: 700 !important;
}
#shoppingListSection .shopping-side-actions {
  display: grid !important;
  gap: 4px !important;
}
#shoppingListSection .shopping-quick-action,
#shoppingListSection .shopping-side-action {
  min-height: 28px !important;
  height: 28px !important;
  grid-template-columns: 22px minmax(0, 1fr) !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 2px 4px !important;
  border-radius: 7px !important;
  font-size: 10px !important;
  line-height: 12px !important;
}
#shoppingListSection .shopping-quick-action i,
#shoppingListSection .shopping-side-action i,
#shoppingListSection .shopping-quick-action span:first-child,
#shoppingListSection .shopping-side-action span:first-child {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
}
#shoppingListSection .shopping-quick-action strong,
#shoppingListSection .shopping-side-action strong {
  font-size: 10px !important;
  line-height: 11px !important;
  font-weight: 800 !important;
}
#shoppingListSection .shopping-quick-action small,
#shoppingListSection .shopping-side-action small,
#shoppingListSection .shopping-quick-action em,
#shoppingListSection .shopping-side-action em {
  font-size: 9px !important;
  line-height: 10px !important;
  font-weight: 400 !important;
}
#shoppingListSection .shopping-sidebar-empty {
  padding: 4px 0 !important;
  font-size: 10px !important;
  line-height: 12px !important;
}

/* --- SHOPPING LIST TARGET DASHBOARD ALIGNMENT ABSOLUTE EOF --- */
#shoppingListSection .shopping-page-shell { padding-top: 0 !important; }
#shoppingListSection .shopping-layout-grid,
#shoppingListSection .shopping-procurement-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 320px !important;
  gap: 16px !important;
  align-items: start !important;
}
#shoppingListSection .shopping-right-sidebar,
#shoppingListSection .shopping-side-panel {
  width: 320px !important;
  max-width: 320px !important;
  min-width: 320px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}
#shoppingListSection .shopping-stats-row,
#shoppingListSection .shopping-metrics-grid,
#shoppingListSection .shopping-mode-card { margin-top: 0 !important; }
#shoppingListSection .shopping-stat-card,
#shoppingListSection .shopping-metric-card {
  height: 82px !important;
  min-height: 82px !important;
  max-height: 82px !important;
  padding: 14px 16px !important;
  border-radius: 14px !important;
  gap: 12px !important;
}
#shoppingListSection .shopping-mode-card {
  min-height: 148px !important;
  padding: 18px !important;
  border-radius: 14px !important;
}
#shoppingListSection .shopping-mode-card-head {
  margin-bottom: 14px !important;
  gap: 12px !important;
}
#shoppingListSection .shopping-mode-card h4 {
  font-size: 18px !important;
  line-height: 22px !important;
  font-weight: 800 !important;
  margin: 0 !important;
}
#shoppingListSection .shopping-mode-card p {
  font-size: 14px !important;
  line-height: 18px !important;
  margin-top: 4px !important;
  color: rgba(255,255,255,.68) !important;
}
#shoppingListSection .shopping-mode-card .login-btn,
#shoppingListSection .shopping-mode-start-btn {
  height: 42px !important;
  min-height: 42px !important;
  margin-top: 10px !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}
#shoppingListSection .shopping-sidebar-panel,
#shoppingListSection .shopping-side-card {
  padding: 18px !important;
  border-radius: 14px !important;
}
#shoppingListSection .shopping-summary-row,
#shoppingListSection .shopping-summary-line { margin-bottom: 14px !important; }
#shoppingListSection .shopping-supplier-row,
#shoppingListSection .shopping-quick-action,
#shoppingListSection .shopping-side-action { margin-bottom: 12px !important; }
#shoppingListSection .shopping-supplier-row strong,
#shoppingListSection .shopping-quick-action strong,
#shoppingListSection .shopping-side-action strong {
  font-size: 14px !important;
  line-height: 16px !important;
}
#shoppingListSection .shopping-supplier-row small,
#shoppingListSection .shopping-quick-action small,
#shoppingListSection .shopping-side-action small,
#shoppingListSection .shopping-quick-action em,
#shoppingListSection .shopping-side-action em {
  font-size: 12px !important;
  line-height: 14px !important;
}
#shoppingListSection .shopping-control-panel,
#shoppingListSection .shopping-filter-panel {
  margin-top: 12px !important;
  padding: 14px !important;
  border-radius: 14px !important;
}
#shoppingListSection .shopping-status-tabs { margin-bottom: 12px !important; }
@media (max-width: 1100px) {
  #shoppingListSection .shopping-layout-grid,
  #shoppingListSection .shopping-procurement-layout { grid-template-columns: 1fr !important; }
  #shoppingListSection .shopping-right-sidebar,
  #shoppingListSection .shopping-side-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

/* --- SHOPPING LIST TOP GRID ROW ALIGNMENT TRUE EOF --- */
#shoppingListSection .shopping-top-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 320px !important;
  gap: 18px !important;
  align-items: start !important;
  margin-bottom: 18px !important;
}

#shoppingListSection .shopping-top-grid .shopping-stats-row,
#shoppingListSection .shopping-top-grid .shopping-metrics-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin: 0 !important;
}

#shoppingListSection .shopping-top-sidebar {
  width: 320px !important;
  max-width: 320px !important;
  min-width: 320px !important;
  margin: 0 !important;
  padding: 0 !important;
}

#shoppingListSection .shopping-top-sidebar .shopping-mode-card {
  margin: 0 !important;
}

#shoppingListSection .shopping-stat-card,
#shoppingListSection .shopping-metric-card {
  height: 102px !important;
  min-height: 102px !important;
  max-height: 102px !important;
  padding: 18px !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

#shoppingListSection .shopping-stat-icon,
#shoppingListSection .shopping-metric-icon {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  flex: 0 0 46px !important;
  border-radius: 12px !important;
  font-size: 20px !important;
}

#shoppingListSection .shopping-stat-card small,
#shoppingListSection .shopping-metric-card small {
  font-size: 13px !important;
  line-height: 16px !important;
}

#shoppingListSection .shopping-stat-card strong,
#shoppingListSection .shopping-metric-card strong {
  font-size: 24px !important;
  line-height: 28px !important;
}

#shoppingListSection .shopping-stat-card em,
#shoppingListSection .shopping-metric-card em {
  font-size: 13px !important;
  line-height: 16px !important;
}

#shoppingListSection .shopping-top-sidebar .shopping-mode-card {
  height: 102px !important;
  min-height: 102px !important;
  max-height: 102px !important;
  padding: 16px !important;
  border-radius: 14px !important;
}

#shoppingListSection .shopping-top-sidebar .shopping-mode-card-head {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}

#shoppingListSection .shopping-top-sidebar .shopping-mode-card-head > span,
#shoppingListSection .shopping-top-sidebar .shopping-mode-card-head > .shopping-mode-icon {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  flex: 0 0 46px !important;
  font-size: 20px !important;
}

#shoppingListSection .shopping-top-sidebar .shopping-mode-card h4 {
  font-size: 18px !important;
  line-height: 22px !important;
}

#shoppingListSection .shopping-top-sidebar .shopping-mode-card p {
  font-size: 13px !important;
  line-height: 16px !important;
}

#shoppingListSection .shopping-top-sidebar .shopping-mode-card .login-btn,
#shoppingListSection .shopping-top-sidebar .shopping-mode-start-btn {
  height: 34px !important;
  min-height: 34px !important;
  font-size: 14px !important;
  margin-top: 8px !important;
}

#shoppingListSection .shopping-layout-grid,
#shoppingListSection .shopping-procurement-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 320px !important;
  gap: 18px !important;
  align-items: start !important;
}

@media (max-width: 1100px) {
  #shoppingListSection .shopping-top-grid,
  #shoppingListSection .shopping-layout-grid,
  #shoppingListSection .shopping-procurement-layout {
    grid-template-columns: 1fr !important;
  }

  #shoppingListSection .shopping-top-sidebar,
  #shoppingListSection .shopping-right-sidebar,
  #shoppingListSection .shopping-side-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

/* --- SHOPPING LIST TOP GRID OVERLAP FIX TRUE EOF --- */
#shoppingListSection .shopping-top-grid {
  display: grid !important;
  grid-template-columns: minmax(0, calc(100% - 340px)) 320px !important;
  gap: 20px !important;
  align-items: start !important;
  margin-bottom: 18px !important;
}

#shoppingListSection .shopping-top-grid .shopping-stats-row,
#shoppingListSection .shopping-top-grid .shopping-metrics-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 0 !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

#shoppingListSection .shopping-stat-card,
#shoppingListSection .shopping-metric-card {
  height: 88px !important;
  min-height: 88px !important;
  max-height: 88px !important;
  padding: 12px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

#shoppingListSection .shopping-stat-icon,
#shoppingListSection .shopping-metric-icon {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  flex: 0 0 34px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
}

#shoppingListSection .shopping-stat-card small,
#shoppingListSection .shopping-metric-card small {
  font-size: 11px !important;
  line-height: 13px !important;
  margin-bottom: 2px !important;
}

#shoppingListSection .shopping-stat-card strong,
#shoppingListSection .shopping-metric-card strong {
  font-size: 18px !important;
  line-height: 20px !important;
  margin: 0 !important;
}

#shoppingListSection .shopping-stat-card em,
#shoppingListSection .shopping-metric-card em {
  font-size: 11px !important;
  line-height: 13px !important;
}

#shoppingListSection .shopping-top-sidebar {
  width: 320px !important;
  min-width: 320px !important;
  max-width: 320px !important;
  position: relative !important;
  z-index: 5 !important;
}

@media (max-width: 1100px) {
  #shoppingListSection .shopping-top-grid {
    grid-template-columns: 1fr !important;
  }

  #shoppingListSection .shopping-top-sidebar {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

/* --- SHOPPING LIST SVG ICON LOCK TRUE EOF --- */
#shoppingListSection .shopping-title-icon svg,
#shoppingListSection .shopping-stat-icon svg,
#shoppingListSection .shopping-metric-icon svg,
#shoppingListSection .shopping-mode-icon svg {
  display: block !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

#shoppingListSection .shopping-title-icon svg {
  width: 22px !important;
  height: 22px !important;
}

#shoppingListSection .shopping-stat-icon svg,
#shoppingListSection .shopping-metric-icon svg {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;
}

#shoppingListSection .shopping-mode-icon svg {
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 20px !important;
}

#shoppingListSection .shopping-title-icon i,
#shoppingListSection .shopping-stat-icon i,
#shoppingListSection .shopping-metric-icon i,
#shoppingListSection .shopping-mode-icon i {
  display: inline-block !important;
}

/* --- SHOPPING LIST START MODE VISIBILITY FIX TRUE EOF --- */
#shoppingListSection .shopping-top-sidebar .shopping-mode-card {
  height: auto !important;
  min-height: 118px !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 14px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

#shoppingListSection .shopping-top-sidebar .shopping-mode-card-head {
  margin-bottom: 10px !important;
  flex: 0 0 auto !important;
}

#shoppingListSection .shopping-top-sidebar .shopping-mode-card .login-btn,
#shoppingListSection .shopping-top-sidebar .shopping-mode-start-btn {
  position: relative !important;
  z-index: 2 !important;
  height: 34px !important;
  min-height: 34px !important;
  width: 100% !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
  overflow: visible !important;
}

/* --- SHOPPING LIST CONTROL LAYOUT + QUICK ACTION FIX ABSOLUTE EOF --- */
#shoppingListSection .shopping-layout-grid,
#shoppingListSection .shopping-procurement-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 320px !important;
  gap: 18px !important;
  align-items: start !important;
}

#shoppingListSection .shopping-main-column,
#shoppingListSection .shopping-procurement-main {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

#shoppingListSection .shopping-right-sidebar,
#shoppingListSection .shopping-side-panel {
  width: 320px !important;
  min-width: 320px !important;
  max-width: 320px !important;
  position: relative !important;
  z-index: 4 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

#shoppingListSection .shopping-control-panel,
#shoppingListSection .shopping-filter-panel {
  padding: 14px !important;
  border-radius: 14px !important;
  margin: 0 0 14px !important;
  overflow: visible !important;
}

#shoppingListSection .shopping-status-tabs {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  margin: 0 0 14px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 0 0 2px !important;
}

#shoppingListSection .shopping-status-tab {
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 16px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
}

#shoppingListSection .shopping-filter-row {
  display: grid !important;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, .95fr)
    minmax(0, 1fr)
    minmax(0, .9fr)
    minmax(0, .95fr)
    minmax(0, .8fr) !important;
  gap: 10px !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

#shoppingListSection .shopping-filter-row .login-input,
#shoppingListSection .shopping-filter-row select,
#shoppingListSection #shoppingSearchInput {
  height: 40px !important;
  min-height: 40px !important;
  width: 100% !important;
  min-width: 0 !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  margin: 0 !important;
}

#shoppingListSection #shoppingSortFilter,
#shoppingListSection #shoppingGroupFilter,
#shoppingListSection .shopping-sort-control,
#shoppingListSection .shopping-view-control {
  height: 40px !important;
  min-height: 40px !important;
  white-space: nowrap !important;
  position: relative !important;
  z-index: 2 !important;
}

#shoppingListSection .shopping-list-header,
#shoppingListSection .shopping-table-wrap,
#shoppingListSection .shopping-items-table,
#shoppingListSection .mock-shopping-table {
  margin-top: 0 !important;
}

#shoppingListSection .shopping-list-header,
#shoppingListSection table th,
#shoppingListSection .mock-shopping-header {
  font-size: 12px !important;
  line-height: 16px !important;
  font-weight: 800 !important;
  color: rgba(255,255,255,.62) !important;
  text-transform: uppercase !important;
}

#shoppingListSection .shopping-mode-card,
#shoppingListSection .shopping-top-sidebar .shopping-mode-card {
  height: auto !important;
  min-height: 124px !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 16px !important;
}

#shoppingListSection .shopping-mode-card .login-btn,
#shoppingListSection .shopping-mode-start-btn,
#shoppingListSection .shopping-top-sidebar .shopping-mode-card .login-btn,
#shoppingListSection .shopping-top-sidebar .shopping-mode-start-btn {
  height: 40px !important;
  min-height: 40px !important;
  margin-top: 10px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#shoppingListSection .shopping-sidebar-panel,
#shoppingListSection .shopping-side-card {
  padding: 16px !important;
  border-radius: 14px !important;
}

#shoppingListSection .shopping-quick-action,
#shoppingListSection .shopping-side-action {
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  text-align: left !important;
}

#shoppingListSection .quick-action-icon {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  border-radius: 7px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  color: #fff !important;
}

#shoppingListSection .quick-action-icon.purple { background: rgba(124,92,255,.72) !important; }
#shoppingListSection .quick-action-icon.blue { background: rgba(59,130,246,.72) !important; }
#shoppingListSection .quick-action-icon.green { background: rgba(34,197,94,.72) !important; }
#shoppingListSection .quick-action-icon.yellow { background: rgba(234,179,8,.78) !important; }
#shoppingListSection .quick-action-icon.red { background: rgba(239,68,68,.72) !important; }

#shoppingListSection .shopping-quick-action strong,
#shoppingListSection .shopping-side-action strong {
  display: block !important;
  font-size: 14px !important;
  line-height: 16px !important;
  font-weight: 800 !important;
  color: #fff !important;
}

#shoppingListSection .shopping-quick-action small,
#shoppingListSection .shopping-side-action small {
  display: block !important;
  font-size: 12px !important;
  line-height: 14px !important;
  color: rgba(255,255,255,.58) !important;
}

@media (max-width: 1300px) {
  #shoppingListSection .shopping-filter-row {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1100px) {
  #shoppingListSection .shopping-layout-grid,
  #shoppingListSection .shopping-procurement-layout {
    grid-template-columns: 1fr !important;
  }

  #shoppingListSection .shopping-right-sidebar,
  #shoppingListSection .shopping-side-panel {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

@media (max-width: 768px) {
  #shoppingListSection .shopping-filter-row {
    grid-template-columns: 1fr !important;
  }
}

/* --- SHOPPING LIST TARGET DESIGN OVERRIDE --- */
#shoppingListSection,
#shoppingListSection * {
    font-family: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

#shoppingListSection .shopping-page-shell {
    max-width: 1360px !important;
    margin: 0 auto !important;
    padding-top: 0 !important;
}

#shoppingListSection .shopping-page-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    margin: 0 0 10px !important;
}

#shoppingListSection .shopping-title-block {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    min-width: 0 !important;
}

#shoppingListSection .shopping-title-icon {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(212,175,55,.72) !important;
    background: rgba(212,175,55,.08) !important;
    color: #d4af37 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 23px !important;
    box-shadow: 0 0 0 8px rgba(212,175,55,.035) !important;
}

#shoppingListSection .shopping-title-block h3 {
    color: #fff !important;
    font-size: 26px !important;
    line-height: 30px !important;
    font-weight: 850 !important;
    letter-spacing: -0.035em !important;
    margin: 0 !important;
}

#shoppingListSection .shopping-title-block p {
    color: rgba(255,255,255,.66) !important;
    font-size: 13px !important;
    line-height: 18px !important;
    font-weight: 500 !important;
    margin: 2px 0 0 !important;
}

#shoppingListSection .shopping-header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex: 0 0 auto !important;
}

#shoppingListSection .shopping-header-search {
    position: relative !important;
    width: 360px !important;
    max-width: 36vw !important;
}

#shoppingListSection .shopping-header-search i {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: rgba(255,255,255,.66) !important;
    font-size: 14px !important;
}

#shoppingListSection .shopping-header-search .login-input {
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 14px 0 40px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

#shoppingListSection .shopping-add-button,
#shoppingListSection .shopping-add-btn {
    width: auto !important;
    min-width: 140px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 20px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 850 !important;
}

#shoppingListSection .shopping-top-grid,
#shoppingListSection .shopping-layout-grid,
#shoppingListSection .shopping-procurement-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 320px !important;
    gap: 16px !important;
    align-items: start !important;
}

#shoppingListSection .shopping-top-grid {
    margin-bottom: 16px !important;
}

#shoppingListSection .shopping-procurement-main,
#shoppingListSection .shopping-main-column {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: visible !important;
}

#shoppingListSection .shopping-right-sidebar,
#shoppingListSection .shopping-side-panel,
#shoppingListSection .shopping-top-sidebar {
    width: 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
}

#shoppingListSection .shopping-top-grid .shopping-stats-row,
#shoppingListSection .shopping-top-grid .shopping-metrics-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
    margin: 0 !important;
    min-width: 0 !important;
}

#shoppingListSection .shopping-stat-card,
#shoppingListSection .shopping-metric-card {
    height: 92px !important;
    min-height: 92px !important;
    padding: 14px 16px !important;
    gap: 12px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    background: rgba(10,15,22,.82) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

#shoppingListSection .shopping-stat-icon,
#shoppingListSection .shopping-metric-icon {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
}

#shoppingListSection .shopping-stat-icon i,
#shoppingListSection .shopping-metric-icon i {
    font-size: 18px !important;
    line-height: 1 !important;
}

#shoppingListSection .shopping-metric-purple .shopping-stat-icon { color: #a78bfa !important; background: rgba(124,92,255,.18) !important; border: 1px solid rgba(167,139,250,.35) !important; }
#shoppingListSection .shopping-metric-orange .shopping-stat-icon { color: #fb923c !important; background: rgba(249,115,22,.16) !important; border: 1px solid rgba(251,146,60,.35) !important; }
#shoppingListSection .shopping-metric-yellow .shopping-stat-icon { color: #facc15 !important; background: rgba(234,179,8,.15) !important; border: 1px solid rgba(250,204,21,.35) !important; }
#shoppingListSection .shopping-metric-green .shopping-stat-icon { color: #22c55e !important; background: rgba(34,197,94,.15) !important; border: 1px solid rgba(34,197,94,.35) !important; }

#shoppingListSection .shopping-stat-card small,
#shoppingListSection .shopping-metric-card small {
    display: block !important;
    color: rgba(255,255,255,.72) !important;
    font-size: 13px !important;
    line-height: 16px !important;
    font-weight: 650 !important;
    margin: 0 0 1px !important;
}

#shoppingListSection .shopping-stat-card strong,
#shoppingListSection .shopping-metric-card strong {
    display: block !important;
    color: #fff !important;
    font-size: 22px !important;
    line-height: 25px !important;
    font-weight: 850 !important;
    letter-spacing: -0.03em !important;
    margin: 0 !important;
}

#shoppingListSection .shopping-stat-card em,
#shoppingListSection .shopping-metric-card em {
    display: block !important;
    color: rgba(255,255,255,.56) !important;
    font-size: 12px !important;
    line-height: 15px !important;
    font-style: normal !important;
    font-weight: 500 !important;
}

#shoppingListSection .shopping-mode-card,
#shoppingListSection .shopping-sidebar-panel,
#shoppingListSection .shopping-side-card {
    background: rgba(10,15,22,.84) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

#shoppingListSection .shopping-top-sidebar .shopping-mode-card,
#shoppingListSection .shopping-mode-card {
    min-height: 132px !important;
    height: auto !important;
    padding: 16px !important;
    border-color: rgba(212,175,55,.88) !important;
    overflow: visible !important;
}

#shoppingListSection .shopping-mode-card-head {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
}

#shoppingListSection .shopping-mode-icon {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    border-radius: 50% !important;
    color: #d4af37 !important;
    background: rgba(212,175,55,.08) !important;
    border: 1px solid rgba(212,175,55,.65) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 21px !important;
}

#shoppingListSection .shopping-mode-card h4 {
    color: #fff !important;
    font-size: 18px !important;
    line-height: 21px !important;
    font-weight: 850 !important;
    margin: 0 !important;
}

#shoppingListSection .shopping-mode-card p {
    color: rgba(255,255,255,.68) !important;
    font-size: 13px !important;
    line-height: 17px !important;
    font-weight: 500 !important;
    margin: 3px 0 0 !important;
}

#shoppingListSection .shopping-mode-card .login-btn,
#shoppingListSection .shopping-mode-start-btn {
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    margin-top: 6px !important;
    padding: 0 14px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    line-height: 16px !important;
    font-weight: 850 !important;
}

#shoppingListSection .shopping-control-panel,
#shoppingListSection .shopping-filter-panel {
    padding: 10px !important;
    margin: 0 0 4px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: rgba(10,15,22,.78) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
}

#shoppingListSection .shopping-status-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 7px !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
}

#shoppingListSection .shopping-status-tab {
    flex: 0 0 auto !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 14px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    line-height: 15px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
}

#shoppingListSection .shopping-filter-row {
    display: grid !important;
    grid-template-columns: minmax(150px, 1.4fr) minmax(110px, .95fr) minmax(110px, .95fr) minmax(125px, 1fr) minmax(105px, .85fr) minmax(130px, 1fr) minmax(92px, .7fr) !important;
    gap: 8px !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

#shoppingListSection .shopping-filter-row .login-input,
#shoppingListSection .shopping-filter-row select,
#shoppingListSection #shoppingSearchInput,
#shoppingListSection #shoppingSortFilter,
#shoppingListSection #shoppingGroupFilter {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 10px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    line-height: 14px !important;
    font-weight: 700 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

#shoppingListSection .shopping-panel-search {
    position: relative !important;
}

#shoppingListSection .shopping-panel-search i {
    left: 10px !important;
    font-size: 12px !important;
    color: rgba(255,255,255,.62) !important;
}

#shoppingListSection .shopping-panel-search .login-input {
    padding-left: 30px !important;
}

#shoppingListSection .shopping-list-header {
    display: grid !important;
    grid-template-columns: 34px minmax(190px,1.7fr) minmax(90px,.75fr) minmax(110px,.85fr) minmax(70px,.52fr) minmax(90px,.72fr) minmax(92px,.72fr) minmax(78px,.62fr) 42px !important;
    column-gap: 10px !important;
    align-items: center !important;
    min-height: 38px !important;
    padding: 9px 12px !important;
    margin: 0 !important;
    color: rgba(255,255,255,.58) !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
}

#shoppingListSection .shopping-list-header > div {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 11px !important;
    line-height: 14px !important;
    font-weight: 850 !important;
    text-transform: uppercase !important;
}

#shoppingListSection .shopping-list-container {
    display: block !important;
}

#shoppingListSection .shopping-item-card.shopping-table-row {
    display: grid !important;
    grid-template-columns: 34px minmax(190px,1.7fr) minmax(90px,.75fr) minmax(110px,.85fr) minmax(70px,.52fr) minmax(90px,.72fr) minmax(92px,.72fr) minmax(78px,.62fr) 42px !important;
    column-gap: 10px !important;
    row-gap: 4px !important;
    align-items: center !important;
    min-height: 72px !important;
    padding: 10px 12px !important;
    border-radius: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.07) !important;
    background: rgba(10,15,22,.36) !important;
    box-shadow: none !important;
}

#shoppingListSection .shopping-item-card.shopping-table-row:hover {
    background: rgba(255,255,255,.035) !important;
}

#shoppingListSection .shopping-row-select {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#shoppingListSection .shopping-row-select input,
#shoppingListSection .shopping-list-header input {
    width: 14px !important;
    height: 14px !important;
}

#shoppingListSection .shopping-item-card.shopping-table-row .shopping-item-main {
    display: grid !important;
    grid-template-columns: 48px minmax(0,1fr) !important;
    gap: 10px !important;
    align-items: center !important;
    min-width: 0 !important;
}

#shoppingListSection .shopping-item-thumb {
    width: 44px !important;
    height: 44px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #d4af37 !important;
    background: radial-gradient(circle at 30% 20%, rgba(212,175,55,.28), rgba(10,15,22,.9)) !important;
    border: 1px solid rgba(212,175,55,.18) !important;
    font-size: 17px !important;
    font-weight: 850 !important;
}

#shoppingListSection .shopping-item-card h4 {
    color: #fff !important;
    font-size: 14px !important;
    line-height: 17px !important;
    font-weight: 800 !important;
    margin: 0 0 3px !important;
}

#shoppingListSection .shopping-item-card p,
#shoppingListSection .shopping-row-meta,
#shoppingListSection .shopping-row-supplier,
#shoppingListSection .shopping-row-category,
#shoppingListSection .shopping-row-qty,
#shoppingListSection .shopping-row-cost {
    color: rgba(255,255,255,.66) !important;
    font-size: 12px !important;
    line-height: 15px !important;
    font-weight: 500 !important;
    margin: 0 !important;
    min-width: 0 !important;
}

#shoppingListSection .shopping-row-category span {
    display: inline-flex !important;
    max-width: 100% !important;
    padding: 5px 9px !important;
    border-radius: 7px !important;
    color: #b9a7ff !important;
    background: rgba(124,92,255,.14) !important;
    border: 1px solid rgba(124,92,255,.22) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

#shoppingListSection .shopping-row-qty strong {
    display: block !important;
    color: rgba(255,255,255,.88) !important;
    font-size: 13px !important;
    line-height: 16px !important;
    font-weight: 650 !important;
}

#shoppingListSection .shopping-row-qty small {
    display: block !important;
    color: #d4af37 !important;
    font-size: 11px !important;
    line-height: 14px !important;
    font-weight: 700 !important;
}

#shoppingListSection .shopping-row-meta {
    grid-column: 2 / 6 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

#shoppingListSection .shopping-note {
    color: rgba(255,255,255,.52) !important;
}

#shoppingListSection .shopping-status-badge,
#shoppingListSection .shopping-priority-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 26px !important;
    padding: 0 10px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    line-height: 14px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

#shoppingListSection .shopping-actions-menu {
    position: relative !important;
    justify-self: center !important;
}

#shoppingListSection .shopping-actions-menu summary {
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: rgba(255,255,255,.72) !important;
    list-style: none !important;
}

#shoppingListSection .shopping-actions-menu summary::-webkit-details-marker {
    display: none !important;
}

#shoppingListSection .shopping-actions-menu[open] summary,
#shoppingListSection .shopping-actions-menu summary:hover {
    color: #d4af37 !important;
    background: rgba(212,175,55,.12) !important;
}

#shoppingListSection .shopping-actions-menu .shopping-actions {
    position: absolute !important;
    right: 0 !important;
    top: 34px !important;
    z-index: 30 !important;
    width: 180px !important;
    display: grid !important;
    gap: 6px !important;
    padding: 8px !important;
    border-radius: 10px !important;
    background: rgba(10,15,22,.98) !important;
    border: 1px solid rgba(255,255,255,.1) !important;
    box-shadow: 0 18px 40px rgba(0,0,0,.45) !important;
}

#shoppingListSection .shopping-actions-menu .slim-btn {
    width: 100% !important;
    min-height: 30px !important;
    height: 30px !important;
    justify-content: flex-start !important;
    padding: 0 9px !important;
    font-size: 12px !important;
}

#shoppingListSection .shopping-empty-state {
    min-height: 86px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
}

#shoppingListSection .shopping-group-card {
    background: rgba(10,15,22,.58) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    border-radius: 12px !important;
    margin-bottom: 12px !important;
    overflow: visible !important;
}

#shoppingListSection .shopping-group-card h4 {
    display: flex !important;
    justify-content: space-between !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    color: #d4af37 !important;
    font-size: 16px !important;
    line-height: 20px !important;
}

#shoppingListSection .shopping-sidebar-panel {
    padding: 16px !important;
    border-radius: 12px !important;
}

#shoppingListSection .shopping-side-card-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
}

#shoppingListSection .shopping-side-card-head h4,
#shoppingListSection .shopping-sidebar-panel h4 {
    color: #fff !important;
    font-size: 16px !important;
    line-height: 20px !important;
    font-weight: 850 !important;
    margin: 0 !important;
}

#shoppingListSection .shopping-side-card-head .login-input {
    width: 96px !important;
    height: 32px !important;
    min-height: 32px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
}

#shoppingListSection .shopping-summary-line {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin: 0 0 14px !important;
    color: rgba(255,255,255,.68) !important;
    font-size: 13px !important;
    line-height: 17px !important;
}

#shoppingListSection .shopping-summary-line strong {
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 750 !important;
}

#shoppingListSection .shopping-sidebar-link {
    border: 0 !important;
    background: transparent !important;
    color: #d4af37 !important;
    font-size: 12px !important;
    font-weight: 750 !important;
    padding: 0 !important;
}

#shoppingListSection .shopping-top-suppliers-list {
    display: grid !important;
    gap: 12px !important;
}

#shoppingListSection .shopping-supplier-row {
    display: grid !important;
    grid-template-columns: 26px minmax(0,1fr) auto !important;
    gap: 10px !important;
    align-items: center !important;
    margin: 0 !important;
}

#shoppingListSection .shopping-supplier-icon {
    width: 24px !important;
    height: 24px !important;
    border-radius: 7px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: rgba(255,255,255,.86) !important;
    border: 1px solid rgba(255,255,255,.22) !important;
    font-size: 12px !important;
}

#shoppingListSection .shopping-supplier-row strong {
    display: block !important;
    color: #fff !important;
    font-size: 13px !important;
    line-height: 16px !important;
    font-weight: 800 !important;
}

#shoppingListSection .shopping-supplier-row small {
    display: block !important;
    color: rgba(255,255,255,.58) !important;
    font-size: 12px !important;
    line-height: 14px !important;
}

#shoppingListSection .shopping-supplier-row em {
    color: #fff !important;
    font-style: normal !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

#shoppingListSection .shopping-side-actions {
    display: grid !important;
    gap: 11px !important;
}

#shoppingListSection .shopping-quick-action,
#shoppingListSection .shopping-side-action {
    width: 100% !important;
    min-height: 34px !important;
    display: grid !important;
    grid-template-columns: 30px minmax(0,1fr) !important;
    gap: 10px !important;
    align-items: center !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: inherit !important;
    text-align: left !important;
}

#shoppingListSection .quick-action-icon {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    border-radius: 7px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-size: 13px !important;
}

#shoppingListSection .quick-action-icon.purple { background: rgba(124,92,255,.78) !important; }
#shoppingListSection .quick-action-icon.blue { background: rgba(59,130,246,.78) !important; }
#shoppingListSection .quick-action-icon.green { background: rgba(34,197,94,.78) !important; }
#shoppingListSection .quick-action-icon.yellow { background: rgba(234,179,8,.82) !important; }
#shoppingListSection .quick-action-icon.red { background: rgba(239,68,68,.78) !important; }

#shoppingListSection .shopping-quick-action strong,
#shoppingListSection .shopping-side-action strong {
    display: block !important;
    color: #fff !important;
    font-size: 13px !important;
    line-height: 16px !important;
    font-weight: 850 !important;
}

#shoppingListSection .shopping-quick-action small,
#shoppingListSection .shopping-side-action small {
    display: block !important;
    color: rgba(255,255,255,.58) !important;
    font-size: 12px !important;
    line-height: 14px !important;
    font-weight: 500 !important;
}

@media (max-width: 1400px) {
    #shoppingListSection .shopping-top-grid,
    #shoppingListSection .shopping-layout-grid,
    #shoppingListSection .shopping-procurement-layout {
        grid-template-columns: minmax(0,1fr) 300px !important;
        gap: 14px !important;
    }

    #shoppingListSection .shopping-right-sidebar,
    #shoppingListSection .shopping-side-panel,
    #shoppingListSection .shopping-top-sidebar {
        width: 300px !important;
        min-width: 300px !important;
        max-width: 300px !important;
    }

    #shoppingListSection .shopping-filter-row {
        grid-template-columns: minmax(130px,1.35fr) repeat(4,minmax(95px,.9fr)) minmax(112px,.95fr) minmax(78px,.65fr) !important;
    }
}

/* --- SHOPPING LIST ABSOLUTE EOF FIX: SPACING, READABILITY, OVERLAP --- */
#shoppingListSection,
#shoppingListSection *:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands) {
    font-weight: 400 !important;
}

#shoppingListSection strong,
#shoppingListSection b,
#shoppingListSection h3,
#shoppingListSection h4,
#shoppingListSection button,
#shoppingListSection .login-btn,
#shoppingListSection .shopping-status-tab,
#shoppingListSection .shopping-status-badge,
#shoppingListSection .shopping-priority-badge,
#shoppingListSection .shopping-list-header > div {
    font-weight: 500 !important;
}

#shoppingListSection .shopping-top-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 280px !important;
    gap: 12px !important;
    align-items: start !important;
    margin: 0 0 8px !important;
}

#shoppingListSection .shopping-layout-grid,
#shoppingListSection .shopping-procurement-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 280px !important;
    gap: 12px !important;
    align-items: start !important;
}

#shoppingListSection .shopping-right-sidebar,
#shoppingListSection .shopping-side-panel,
#shoppingListSection .shopping-top-sidebar {
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    gap: 10px !important;
    position: relative !important;
    z-index: 2 !important;
}

#shoppingListSection .shopping-top-grid .shopping-stats-row,
#shoppingListSection .shopping-top-grid .shopping-metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: 0 !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

#shoppingListSection .shopping-stat-card,
#shoppingListSection .shopping-metric-card {
    height: 74px !important;
    min-height: 74px !important;
    max-height: 74px !important;
    padding: 10px !important;
    gap: 9px !important;
    border-radius: 11px !important;
}

#shoppingListSection .shopping-stat-icon,
#shoppingListSection .shopping-metric-icon {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    border-radius: 8px !important;
}

#shoppingListSection .shopping-stat-icon i,
#shoppingListSection .shopping-metric-icon i {
    font-size: 12px !important;
}

#shoppingListSection .shopping-stat-card small,
#shoppingListSection .shopping-metric-card small {
    font-size: 10px !important;
    line-height: 12px !important;
}

#shoppingListSection .shopping-stat-card strong,
#shoppingListSection .shopping-metric-card strong {
    font-size: 16px !important;
    line-height: 18px !important;
    font-weight: 500 !important;
}

#shoppingListSection .shopping-stat-card em,
#shoppingListSection .shopping-metric-card em {
    font-size: 10px !important;
    line-height: 12px !important;
}

#shoppingListSection .shopping-top-sidebar .shopping-mode-card {
    height: 94px !important;
    min-height: 94px !important;
    max-height: 94px !important;
    padding: 11px 12px !important;
    display: grid !important;
    grid-template-rows: 1fr 30px !important;
    gap: 7px !important;
    overflow: hidden !important;
}

#shoppingListSection .shopping-top-sidebar .shopping-mode-card-head {
    gap: 9px !important;
    margin: 0 !important;
    min-height: 0 !important;
}

#shoppingListSection .shopping-top-sidebar .shopping-mode-icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
}

#shoppingListSection .shopping-top-sidebar .shopping-mode-icon i {
    font-size: 14px !important;
}

#shoppingListSection .shopping-top-sidebar .shopping-mode-card h4 {
    font-size: 14px !important;
    line-height: 16px !important;
    font-weight: 500 !important;
}

#shoppingListSection .shopping-top-sidebar .shopping-mode-card p {
    font-size: 10px !important;
    line-height: 12px !important;
    margin: 2px 0 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

#shoppingListSection .shopping-top-sidebar .shopping-mode-start-btn {
    height: 30px !important;
    min-height: 30px !important;
    margin: 0 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
}

#shoppingListSection .shopping-procurement-main,
#shoppingListSection .shopping-main-column {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

#shoppingListSection .shopping-control-panel,
#shoppingListSection .shopping-filter-panel {
    padding: 9px !important;
    margin: 0 0 5px !important;
    border-radius: 11px !important;
    overflow: hidden !important;
}

#shoppingListSection .shopping-status-tabs {
    gap: 7px !important;
    margin: 0 0 7px !important;
}

#shoppingListSection .shopping-status-tab {
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 10px !important;
    border-radius: 7px !important;
    font-size: 11px !important;
    line-height: 13px !important;
}

#shoppingListSection .shopping-filter-row {
    display: grid !important;
    grid-template-columns:
        minmax(145px, 1.18fr)
        minmax(116px, .96fr)
        minmax(116px, .96fr)
        minmax(108px, .86fr)
        minmax(92px, .72fr)
        minmax(108px, .86fr)
        minmax(70px, .55fr) !important;
    gap: 7px !important;
    align-items: center !important;
    margin: 0 !important;
    overflow: hidden !important;
}

#shoppingListSection .shopping-filter-row .login-input,
#shoppingListSection .shopping-filter-row select,
#shoppingListSection #shoppingSearchInput,
#shoppingListSection #shoppingSortFilter,
#shoppingListSection #shoppingGroupFilter {
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 8px !important;
    border-radius: 7px !important;
    font-size: 10px !important;
    line-height: 12px !important;
    text-overflow: ellipsis !important;
}

#shoppingListSection #shoppingCategoryFilter,
#shoppingListSection #shoppingSupplierFilter,
#shoppingListSection #shoppingAssignedFilter {
    font-size: 11px !important;
    color: rgba(255,255,255,.86) !important;
}

#shoppingListSection .shopping-panel-search .login-input {
    padding-left: 27px !important;
}

#shoppingListSection .shopping-list-header,
#shoppingListSection .shopping-item-card.shopping-table-row {
    grid-template-columns:
        28px
        minmax(170px, 1.45fr)
        minmax(82px, .7fr)
        minmax(96px, .78fr)
        minmax(58px, .45fr)
        minmax(76px, .6fr)
        minmax(70px, .55fr)
        minmax(58px, .45fr)
        28px !important;
    column-gap: 8px !important;
}

#shoppingListSection .shopping-list-header {
    min-height: 28px !important;
    padding: 5px 9px !important;
    margin: 0 !important;
}

#shoppingListSection .shopping-list-header > div,
#shoppingListSection table th,
#shoppingListSection .mock-shopping-header {
    font-size: 10px !important;
    line-height: 12px !important;
}

#shoppingListSection .shopping-item-card.shopping-table-row {
    min-height: 58px !important;
    padding: 7px 9px !important;
}

#shoppingListSection .shopping-row-meta {
    grid-column: 2 / 5 !important;
    gap: 7px !important;
}

#shoppingListSection .shopping-sidebar-panel,
#shoppingListSection .shopping-side-card {
    padding: 12px !important;
    border-radius: 12px !important;
}

#shoppingListSection .shopping-side-card-head {
    margin-bottom: 8px !important;
}

#shoppingListSection .shopping-summary-line {
    margin-bottom: 8px !important;
    font-size: 12px !important;
    line-height: 15px !important;
}

#shoppingListSection .shopping-summary-line strong {
    font-size: 12px !important;
    font-weight: 500 !important;
}

#shoppingListSection .shopping-top-suppliers-list {
    gap: 8px !important;
}

@media (max-width: 1200px) {
    #shoppingListSection .shopping-top-grid,
    #shoppingListSection .shopping-layout-grid,
    #shoppingListSection .shopping-procurement-layout {
        grid-template-columns: 1fr !important;
    }

    #shoppingListSection .shopping-right-sidebar,
    #shoppingListSection .shopping-side-panel,
    #shoppingListSection .shopping-top-sidebar {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }
}

/* --- SHOPPING LIST SOFT TYPE WEIGHT OVERRIDE --- */
#shoppingListSection .shopping-title-block h3,
#shoppingListSection .shopping-stat-card strong,
#shoppingListSection .shopping-metric-card strong,
#shoppingListSection .shopping-mode-card h4,
#shoppingListSection .shopping-sidebar-panel h4,
#shoppingListSection .shopping-side-card h4,
#shoppingListSection .shopping-item-card h4,
#shoppingListSection .shopping-supplier-row strong,
#shoppingListSection .shopping-quick-action strong,
#shoppingListSection .shopping-side-action strong,
#shoppingListSection .shopping-summary-line strong,
#shoppingListSection .shopping-row-qty strong {
    font-weight: 600 !important;
}

#shoppingListSection .shopping-add-button,
#shoppingListSection .shopping-add-btn,
#shoppingListSection .shopping-mode-card .login-btn,
#shoppingListSection .shopping-sidebar-panel .login-btn,
#shoppingListSection .shopping-mode-start-btn,
#shoppingListSection .shopping-status-tab,
#shoppingListSection .shopping-filter-row .login-input,
#shoppingListSection .shopping-filter-row select,
#shoppingListSection #shoppingSearchInput,
#shoppingListSection #shoppingSortFilter,
#shoppingListSection #shoppingGroupFilter,
#shoppingListSection .shopping-sidebar-link,
#shoppingListSection .shopping-status-badge,
#shoppingListSection .shopping-priority-badge,
#shoppingListSection .shopping-row-qty small,
#shoppingListSection .shopping-actions-menu .slim-btn,
#shoppingListSection .shopping-stat-card small,
#shoppingListSection .shopping-metric-card small,
#shoppingListSection .shopping-list-header > div,
#shoppingListSection table th,
#shoppingListSection .mock-shopping-header,
body:has(#shoppingListSection[style*="block"]) .sidebar .nav-link {
    font-weight: 500 !important;
}

#shoppingListSection .shopping-stat-card em,
#shoppingListSection .shopping-metric-card em,
#shoppingListSection .shopping-title-block p,
#shoppingListSection .shopping-mode-card p,
#shoppingListSection .shopping-quick-action small,
#shoppingListSection .shopping-side-action small,
#shoppingListSection .shopping-supplier-row small,
#shoppingListSection .shopping-item-card p,
#shoppingListSection .shopping-row-meta,
#shoppingListSection .shopping-row-supplier,
#shoppingListSection .shopping-row-category,
#shoppingListSection .shopping-row-qty,
#shoppingListSection .shopping-row-cost,
#shoppingListSection .shopping-summary-line {
    font-weight: 400 !important;
}

/* --- SHOPPING LIST FINAL LIGHT + COMPACT CALIBRATION --- */
#shoppingListSection,
#shoppingListSection *:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands) {
    font-weight: 400 !important;
}

#shoppingListSection strong,
#shoppingListSection b,
#shoppingListSection h3,
#shoppingListSection h4,
#shoppingListSection button,
#shoppingListSection .login-btn,
#shoppingListSection .shopping-status-tab,
#shoppingListSection .shopping-priority-badge,
#shoppingListSection .shopping-status-badge,
#shoppingListSection .shopping-list-header > div {
    font-weight: 500 !important;
}

#shoppingListSection .shopping-page-header {
    margin-bottom: 12px !important;
}

#shoppingListSection .shopping-title-icon {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    font-size: 18px !important;
}

#shoppingListSection .shopping-title-icon i {
    font-size: 18px !important;
}

#shoppingListSection .shopping-title-block {
    gap: 12px !important;
}

#shoppingListSection .shopping-title-block h3 {
    font-size: 22px !important;
    line-height: 26px !important;
    letter-spacing: -0.02em !important;
}

#shoppingListSection .shopping-title-block p {
    font-size: 12px !important;
    line-height: 16px !important;
}

#shoppingListSection .shopping-header-search .login-input {
    height: 36px !important;
    min-height: 36px !important;
    font-size: 12px !important;
    border-radius: 9px !important;
}

#shoppingListSection .shopping-add-button,
#shoppingListSection .shopping-add-btn {
    height: 36px !important;
    min-height: 36px !important;
    min-width: 120px !important;
    padding: 0 16px !important;
    border-radius: 9px !important;
    font-size: 13px !important;
}

#shoppingListSection .shopping-top-grid {
    margin-bottom: 12px !important;
}

#shoppingListSection .shopping-stat-card,
#shoppingListSection .shopping-metric-card {
    height: 72px !important;
    min-height: 72px !important;
    padding: 10px 12px !important;
    border-radius: 11px !important;
    gap: 10px !important;
}

#shoppingListSection .shopping-stat-icon,
#shoppingListSection .shopping-metric-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 8px !important;
}

#shoppingListSection .shopping-stat-icon i,
#shoppingListSection .shopping-metric-icon i {
    font-size: 13px !important;
}

#shoppingListSection .shopping-stat-card small,
#shoppingListSection .shopping-metric-card small {
    font-size: 11px !important;
    line-height: 13px !important;
}

#shoppingListSection .shopping-stat-card strong,
#shoppingListSection .shopping-metric-card strong {
    font-size: 17px !important;
    line-height: 19px !important;
    letter-spacing: -0.01em !important;
}

#shoppingListSection .shopping-stat-card em,
#shoppingListSection .shopping-metric-card em {
    font-size: 11px !important;
    line-height: 13px !important;
}

#shoppingListSection .shopping-mode-card,
#shoppingListSection .shopping-sidebar-panel,
#shoppingListSection .shopping-side-card {
    padding: 13px !important;
    border-radius: 12px !important;
}

#shoppingListSection .shopping-top-sidebar .shopping-mode-card,
#shoppingListSection .shopping-mode-card {
    min-height: 112px !important;
}

#shoppingListSection .shopping-mode-card-head {
    gap: 10px !important;
    margin-bottom: 10px !important;
}

#shoppingListSection .shopping-mode-icon {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
}

#shoppingListSection .shopping-mode-icon i {
    font-size: 16px !important;
}

#shoppingListSection .shopping-mode-card h4,
#shoppingListSection .shopping-sidebar-panel h4,
#shoppingListSection .shopping-side-card h4 {
    font-size: 15px !important;
    line-height: 18px !important;
}

#shoppingListSection .shopping-mode-card p {
    font-size: 12px !important;
    line-height: 15px !important;
}

#shoppingListSection .shopping-mode-card .login-btn,
#shoppingListSection .shopping-sidebar-panel .login-btn,
#shoppingListSection .shopping-mode-start-btn {
    height: 34px !important;
    min-height: 34px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
}

#shoppingListSection .shopping-control-panel,
#shoppingListSection .shopping-filter-panel {
    padding: 10px !important;
    border-radius: 11px !important;
}

#shoppingListSection .shopping-status-tabs {
    gap: 7px !important;
    margin-bottom: 8px !important;
}

#shoppingListSection .shopping-status-tab {
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 11px !important;
    border-radius: 7px !important;
    font-size: 11px !important;
    line-height: 13px !important;
}

#shoppingListSection .shopping-filter-row {
    gap: 7px !important;
    grid-template-columns: minmax(145px, 1.35fr) repeat(4, minmax(88px, .9fr)) minmax(100px, .95fr) minmax(72px, .7fr) !important;
}

#shoppingListSection .shopping-filter-row .login-input,
#shoppingListSection .shopping-filter-row select,
#shoppingListSection #shoppingSearchInput,
#shoppingListSection #shoppingSortFilter,
#shoppingListSection #shoppingGroupFilter {
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 9px !important;
    border-radius: 7px !important;
    font-size: 11px !important;
    line-height: 13px !important;
}

#shoppingListSection .shopping-panel-search .login-input {
    padding-left: 28px !important;
}

#shoppingListSection .shopping-list-header {
    min-height: 30px !important;
    padding: 6px 10px !important;
}

#shoppingListSection .shopping-list-header > div,
#shoppingListSection table th,
#shoppingListSection .mock-shopping-header {
    font-size: 10px !important;
    line-height: 12px !important;
}

#shoppingListSection .shopping-item-card.shopping-table-row {
    min-height: 60px !important;
    padding: 7px 10px !important;
}

#shoppingListSection .shopping-item-card.shopping-table-row .shopping-item-main {
    grid-template-columns: 38px minmax(0, 1fr) !important;
    gap: 8px !important;
}

#shoppingListSection .shopping-item-thumb {
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
}

#shoppingListSection .shopping-item-thumb i {
    font-size: 13px !important;
}

#shoppingListSection .shopping-item-card h4 {
    font-size: 13px !important;
    line-height: 16px !important;
}

#shoppingListSection .shopping-item-card p,
#shoppingListSection .shopping-row-meta,
#shoppingListSection .shopping-row-supplier,
#shoppingListSection .shopping-row-category,
#shoppingListSection .shopping-row-qty,
#shoppingListSection .shopping-row-cost {
    font-size: 11px !important;
    line-height: 14px !important;
}

#shoppingListSection .shopping-row-category span {
    padding: 3px 7px !important;
    border-radius: 6px !important;
}

#shoppingListSection .shopping-row-qty strong {
    font-size: 12px !important;
    line-height: 14px !important;
}

#shoppingListSection .shopping-row-qty small {
    font-size: 10px !important;
    line-height: 12px !important;
}

#shoppingListSection .shopping-status-badge,
#shoppingListSection .shopping-priority-badge {
    min-height: 21px !important;
    padding: 0 8px !important;
    border-radius: 7px !important;
    font-size: 10px !important;
    line-height: 12px !important;
}

#shoppingListSection .shopping-side-card-head {
    margin-bottom: 10px !important;
}

#shoppingListSection .shopping-side-card-head .login-input {
    height: 28px !important;
    min-height: 28px !important;
    font-size: 11px !important;
}

#shoppingListSection .shopping-summary-line {
    margin-bottom: 10px !important;
    font-size: 12px !important;
    line-height: 15px !important;
}

#shoppingListSection .shopping-summary-line strong {
    font-size: 12px !important;
}

#shoppingListSection .shopping-top-suppliers-list {
    gap: 9px !important;
}

#shoppingListSection .shopping-supplier-row {
    grid-template-columns: 24px minmax(0, 1fr) auto !important;
    gap: 8px !important;
}

#shoppingListSection .shopping-supplier-icon {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    border-radius: 6px !important;
}

#shoppingListSection .shopping-supplier-icon i {
    font-size: 11px !important;
}

#shoppingListSection .shopping-supplier-row strong {
    font-size: 12px !important;
    line-height: 14px !important;
}

#shoppingListSection .shopping-supplier-row small,
#shoppingListSection .shopping-supplier-row em {
    font-size: 11px !important;
    line-height: 13px !important;
}

#shoppingListSection .shopping-side-actions {
    gap: 8px !important;
}

#shoppingListSection .shopping-quick-action,
#shoppingListSection .shopping-side-action {
    min-height: 28px !important;
    grid-template-columns: 24px minmax(0, 1fr) !important;
    gap: 8px !important;
}

#shoppingListSection .quick-action-icon {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    border-radius: 6px !important;
}

#shoppingListSection .quick-action-icon i {
    font-size: 10px !important;
}

#shoppingListSection .shopping-quick-action strong,
#shoppingListSection .shopping-side-action strong {
    font-size: 12px !important;
    line-height: 14px !important;
}

#shoppingListSection .shopping-quick-action small,
#shoppingListSection .shopping-side-action small {
    font-size: 10px !important;
    line-height: 12px !important;
}

/* --- SHOPPING LIST SPACE + OVERLAP FIX --- */
#shoppingListSection .shopping-top-grid {
    grid-template-columns: minmax(0, 1fr) 300px !important;
    gap: 14px !important;
    margin-bottom: 8px !important;
    align-items: stretch !important;
}

#shoppingListSection .shopping-layout-grid,
#shoppingListSection .shopping-procurement-layout {
    grid-template-columns: minmax(0, 1fr) 300px !important;
    gap: 14px !important;
    align-items: start !important;
}

#shoppingListSection .shopping-right-sidebar,
#shoppingListSection .shopping-side-panel,
#shoppingListSection .shopping-top-sidebar {
    width: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
}

#shoppingListSection .shopping-top-grid .shopping-stats-row,
#shoppingListSection .shopping-top-grid .shopping-metrics-grid {
    align-self: stretch !important;
}

#shoppingListSection .shopping-stat-card,
#shoppingListSection .shopping-metric-card,
#shoppingListSection .shopping-top-sidebar .shopping-mode-card {
    height: 88px !important;
    min-height: 88px !important;
    max-height: 88px !important;
}

#shoppingListSection .shopping-top-sidebar .shopping-mode-card {
    padding: 11px 13px !important;
    display: grid !important;
    grid-template-rows: 1fr 30px !important;
    gap: 7px !important;
    overflow: hidden !important;
}

#shoppingListSection .shopping-top-sidebar .shopping-mode-card-head {
    margin: 0 !important;
    gap: 9px !important;
    min-height: 0 !important;
}

#shoppingListSection .shopping-top-sidebar .shopping-mode-icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
}

#shoppingListSection .shopping-top-sidebar .shopping-mode-icon i {
    font-size: 14px !important;
}

#shoppingListSection .shopping-top-sidebar .shopping-mode-card h4 {
    font-size: 14px !important;
    line-height: 16px !important;
    margin: 0 !important;
}

#shoppingListSection .shopping-top-sidebar .shopping-mode-card p {
    font-size: 10px !important;
    line-height: 12px !important;
    margin: 2px 0 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

#shoppingListSection .shopping-top-sidebar .shopping-mode-card .login-btn,
#shoppingListSection .shopping-top-sidebar .shopping-mode-start-btn {
    height: 30px !important;
    min-height: 30px !important;
    margin: 0 !important;
    font-size: 11px !important;
}

#shoppingListSection .shopping-procurement-main,
#shoppingListSection .shopping-main-column {
    min-width: 0 !important;
    overflow: hidden !important;
}

#shoppingListSection .shopping-control-panel,
#shoppingListSection .shopping-filter-panel {
    margin-top: 0 !important;
    margin-bottom: 6px !important;
    padding: 9px !important;
}

#shoppingListSection .shopping-status-tabs {
    margin-bottom: 7px !important;
}

#shoppingListSection .shopping-filter-row {
    grid-template-columns:
        minmax(150px, 1.15fr)
        minmax(118px, .95fr)
        minmax(118px, .95fr)
        minmax(112px, .88fr)
        minmax(96px, .75fr)
        minmax(112px, .88fr)
        minmax(78px, .6fr) !important;
    gap: 7px !important;
}

#shoppingListSection .shopping-filter-row .login-input,
#shoppingListSection .shopping-filter-row select,
#shoppingListSection #shoppingSearchInput,
#shoppingListSection #shoppingSortFilter,
#shoppingListSection #shoppingGroupFilter {
    font-size: 10px !important;
    padding: 0 8px !important;
}

#shoppingListSection #shoppingCategoryFilter,
#shoppingListSection #shoppingSupplierFilter,
#shoppingListSection #shoppingAssignedFilter {
    font-size: 11px !important;
}

#shoppingListSection .shopping-list-header,
#shoppingListSection .shopping-item-card.shopping-table-row {
    grid-template-columns:
        28px
        minmax(170px, 1.5fr)
        minmax(84px, .72fr)
        minmax(96px, .78fr)
        minmax(62px, .48fr)
        minmax(78px, .62fr)
        minmax(74px, .58fr)
        minmax(64px, .5fr)
        30px !important;
    column-gap: 8px !important;
}

#shoppingListSection .shopping-list-header {
    min-height: 28px !important;
    padding: 5px 9px !important;
}

#shoppingListSection .shopping-list-header > div {
    font-size: 10px !important;
}

#shoppingListSection .shopping-item-card.shopping-table-row {
    min-height: 58px !important;
    padding: 7px 9px !important;
}

#shoppingListSection .shopping-row-meta {
    grid-column: 2 / 5 !important;
    gap: 7px !important;
}

#shoppingListSection .shopping-sidebar-panel,
#shoppingListSection .shopping-side-card {
    padding: 12px !important;
}

#shoppingListSection .shopping-side-card-head {
    margin-bottom: 8px !important;
}

#shoppingListSection .shopping-summary-line {
    margin-bottom: 8px !important;
}

#shoppingListSection .shopping-top-suppliers-list {
    gap: 8px !important;
}

@media (max-width: 1400px) {
    #shoppingListSection .shopping-top-grid,
    #shoppingListSection .shopping-layout-grid,
    #shoppingListSection .shopping-procurement-layout {
        grid-template-columns: minmax(0, 1fr) 280px !important;
        gap: 12px !important;
    }

    #shoppingListSection .shopping-right-sidebar,
    #shoppingListSection .shopping-side-panel,
    #shoppingListSection .shopping-top-sidebar {
        width: 280px !important;
        min-width: 280px !important;
        max-width: 280px !important;
    }

    #shoppingListSection .shopping-filter-row {
        grid-template-columns:
            minmax(136px, 1.1fr)
            minmax(108px, .9fr)
            minmax(108px, .9fr)
            minmax(104px, .86fr)
            minmax(86px, .7fr)
            minmax(98px, .8fr)
            minmax(68px, .55fr) !important;
    }
}

@media (max-width: 1200px) {
    #shoppingListSection .shopping-top-grid,
    #shoppingListSection .shopping-layout-grid,
    #shoppingListSection .shopping-procurement-layout {
        grid-template-columns: 1fr !important;
    }

    #shoppingListSection .shopping-right-sidebar,
    #shoppingListSection .shopping-side-panel,
    #shoppingListSection .shopping-top-sidebar {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    #shoppingListSection .shopping-header-search {
        width: 320px !important;
        max-width: 42vw !important;
    }
}

@media (max-width: 768px) {
    #shoppingListSection .shopping-page-header,
    #shoppingListSection .shopping-header-actions {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    #shoppingListSection .shopping-header-search {
        width: 100% !important;
        max-width: 100% !important;
    }

    #shoppingListSection .shopping-top-grid .shopping-stats-row,
    #shoppingListSection .shopping-top-grid .shopping-metrics-grid {
        grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    }

    #shoppingListSection .shopping-filter-row {
        grid-template-columns: 1fr !important;
    }

    #shoppingListSection .shopping-list-header {
        display: none !important;
    }

    #shoppingListSection .shopping-item-card.shopping-table-row {
        grid-template-columns: 28px minmax(0,1fr) 36px !important;
    }

    #shoppingListSection .shopping-row-category,
    #shoppingListSection .shopping-row-supplier,
    #shoppingListSection .shopping-row-qty,
    #shoppingListSection .shopping-row-cost,
    #shoppingListSection .shopping-item-card.shopping-table-row > div:nth-of-type(4),
    #shoppingListSection .shopping-item-card.shopping-table-row > div:nth-of-type(5) {
        display: none !important;
    }
}

/* --- SHOPPING LIST KENZI CORE CONSISTENCY PASS --- */
#shoppingListSection,
#shoppingListSection * {
    font-family: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

#shoppingListSection .shopping-page-shell {
    max-width: 1360px !important;
}

#shoppingListSection .shopping-page-header {
    margin-bottom: 14px !important;
}

#shoppingListSection .shopping-title-icon {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    border-radius: 50% !important;
    font-size: 21px !important;
}

#shoppingListSection .shopping-title-block h3 {
    font-family: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 18px !important;
    line-height: 24px !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    color: #ffffff !important;
    margin: 0 !important;
}

#shoppingListSection .shopping-title-block p {
    font-size: 12px !important;
    line-height: 18px !important;
    font-weight: 500 !important;
    color: rgba(255,255,255,.62) !important;
    margin: 3px 0 0 !important;
}

#shoppingListSection .shopping-header-search .login-input {
    height: 40px !important;
    min-height: 40px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
}

#shoppingListSection .shopping-add-button,
#shoppingListSection .shopping-add-btn {
    height: 40px !important;
    min-height: 40px !important;
    min-width: 136px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
}

#shoppingListSection .shopping-top-grid,
#shoppingListSection .shopping-layout-grid,
#shoppingListSection .shopping-procurement-layout {
    grid-template-columns: minmax(0,1fr) 300px !important;
    gap: 16px !important;
}

#shoppingListSection .shopping-top-grid {
    margin-bottom: 14px !important;
}

#shoppingListSection .shopping-right-sidebar,
#shoppingListSection .shopping-side-panel,
#shoppingListSection .shopping-top-sidebar {
    width: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
    gap: 12px !important;
}

#shoppingListSection .shopping-stat-card,
#shoppingListSection .shopping-metric-card {
    height: 86px !important;
    min-height: 86px !important;
    padding: 14px !important;
    border-radius: 14px !important;
    gap: 12px !important;
    background: rgba(15,18,24,.82) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
}

#shoppingListSection .shopping-stat-icon,
#shoppingListSection .shopping-metric-icon {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
}

#shoppingListSection .shopping-stat-icon i,
#shoppingListSection .shopping-metric-icon i {
    font-size: 15px !important;
}

#shoppingListSection .shopping-stat-card small,
#shoppingListSection .shopping-metric-card small {
    font-size: 12px !important;
    line-height: 15px !important;
    font-weight: 700 !important;
}

#shoppingListSection .shopping-stat-card strong,
#shoppingListSection .shopping-metric-card strong {
    font-size: 20px !important;
    line-height: 24px !important;
    font-weight: 800 !important;
    margin: 1px 0 !important;
}

#shoppingListSection .shopping-stat-card em,
#shoppingListSection .shopping-metric-card em {
    font-size: 12px !important;
    line-height: 15px !important;
}

#shoppingListSection .shopping-control-panel,
#shoppingListSection .shopping-filter-panel {
    padding: 12px 14px !important;
    border-radius: 14px !important;
    margin-bottom: 8px !important;
    background: rgba(15,18,24,.78) !important;
}

#shoppingListSection .shopping-status-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
    overflow-x: auto !important;
}

#shoppingListSection .shopping-status-tab {
    height: 31px !important;
    min-height: 31px !important;
    padding: 0 11px !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
}

#shoppingListSection .shopping-filter-row {
    display: grid !important;
    grid-template-columns:
        minmax(170px, 1.4fr)
        repeat(4, minmax(120px, 1fr))
        minmax(125px, 1fr)
        minmax(90px, .75fr) !important;
    gap: 8px !important;
}

#shoppingListSection .shopping-filter-row .login-input,
#shoppingListSection .shopping-filter-row select,
#shoppingListSection .shopping-sort-control,
#shoppingListSection .shopping-view-control,
#shoppingListSection #shoppingSearchInput,
#shoppingListSection #shoppingSortFilter,
#shoppingListSection #shoppingGroupFilter {
    height: 34px !important;
    min-height: 34px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 0 10px !important;
}

#shoppingListSection .shopping-panel-search .login-input {
    padding-left: 30px !important;
}

#shoppingListSection .shopping-mode-card,
#shoppingListSection .shopping-sidebar-panel,
#shoppingListSection .shopping-side-card {
    padding: 16px !important;
    border-radius: 14px !important;
    background: rgba(15,18,24,.82) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
}

#shoppingListSection .shopping-mode-card {
    border-color: rgba(212,175,55,.85) !important;
    min-height: 130px !important;
}

#shoppingListSection .shopping-mode-icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    font-size: 18px !important;
}

#shoppingListSection .shopping-mode-card h4,
#shoppingListSection .shopping-sidebar-panel h4,
#shoppingListSection .shopping-side-card h4 {
    font-size: 16px !important;
    line-height: 20px !important;
    font-weight: 800 !important;
}

#shoppingListSection .shopping-mode-card p {
    font-size: 12px !important;
    line-height: 16px !important;
}

#shoppingListSection .shopping-mode-card .login-btn,
#shoppingListSection .shopping-sidebar-panel .login-btn,
#shoppingListSection .shopping-mode-start-btn {
    height: 38px !important;
    min-height: 38px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

#shoppingListSection .shopping-quick-action,
#shoppingListSection .shopping-side-action {
    display: grid !important;
    grid-template-columns: 28px minmax(0,1fr) !important;
    gap: 10px !important;
    align-items: center !important;
    margin-bottom: 10px !important;
    min-height: 30px !important;
}

#shoppingListSection .quick-action-icon {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    border-radius: 7px !important;
    font-size: 12px !important;
}

#shoppingListSection .shopping-quick-action strong,
#shoppingListSection .shopping-side-action strong {
    font-size: 13px !important;
    line-height: 15px !important;
    font-weight: 800 !important;
}

#shoppingListSection .shopping-quick-action small,
#shoppingListSection .shopping-side-action small {
    font-size: 11px !important;
    line-height: 13px !important;
    color: rgba(255,255,255,.58) !important;
}

#shoppingListSection .shopping-list-header,
#shoppingListSection table th,
#shoppingListSection .mock-shopping-header {
    font-size: 11px !important;
    line-height: 14px !important;
    font-weight: 800 !important;
}

#shoppingListSection .shopping-item-card.shopping-table-row {
    min-height: 68px !important;
    padding: 9px 12px !important;
}

#shoppingListSection .shopping-item-card h4 {
    font-size: 15px !important;
    line-height: 18px !important;
}

#shoppingListSection .shopping-item-card p,
#shoppingListSection .shopping-item-card small,
#shoppingListSection .shopping-row-meta {
    font-size: 12px !important;
    line-height: 16px !important;
}

@media (max-width: 1280px) {
    #shoppingListSection .shopping-top-grid,
    #shoppingListSection .shopping-layout-grid,
    #shoppingListSection .shopping-procurement-layout {
        grid-template-columns: minmax(0,1fr) 280px !important;
    }

    #shoppingListSection .shopping-right-sidebar,
    #shoppingListSection .shopping-side-panel,
    #shoppingListSection .shopping-top-sidebar {
        width: 280px !important;
        min-width: 280px !important;
        max-width: 280px !important;
    }

    #shoppingListSection .shopping-filter-row {
        grid-template-columns: minmax(150px, 1.4fr) repeat(4, minmax(104px, 1fr)) minmax(112px, 1fr) minmax(82px, .75fr) !important;
    }
}

@media (max-width: 1100px) {
    #shoppingListSection .shopping-top-grid,
    #shoppingListSection .shopping-layout-grid,
    #shoppingListSection .shopping-procurement-layout {
        grid-template-columns: 1fr !important;
    }

    #shoppingListSection .shopping-right-sidebar,
    #shoppingListSection .shopping-side-panel,
    #shoppingListSection .shopping-top-sidebar {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }
}

/* --- SHOPPING LIST FINAL TARGET FIX --- */
#shoppingListSection,
#shoppingListSection * {
    font-family: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-weight: 400 !important;
    box-sizing: border-box !important;
}

#shoppingListSection i,
#shoppingListSection .fa,
#shoppingListSection .fas,
#shoppingListSection .far,
#shoppingListSection .fal,
#shoppingListSection .fab,
#shoppingListSection [class^="fa-"],
#shoppingListSection [class*=" fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
    font-style: normal !important;
    font-weight: 900 !important;
}

#shoppingListSection .shopping-page-shell {
    width: min(100%, 1280px) !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

#shoppingListSection .shopping-page-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin: 0 0 12px !important;
}

#shoppingListSection .shopping-title-block {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 0 !important;
}

#shoppingListSection .shopping-title-icon {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #d4af37 !important;
    background: rgba(212, 175, 55, .08) !important;
    border: 1px solid rgba(212, 175, 55, .65) !important;
    box-shadow: none !important;
}

#shoppingListSection .shopping-title-icon i {
    font-size: 17px !important;
    color: #d4af37 !important;
}

#shoppingListSection .shopping-title-block h3 {
    color: #fff !important;
    font-size: 18px !important;
    line-height: 22px !important;
    letter-spacing: -0.02em !important;
    margin: 0 !important;
    font-weight: 500 !important;
}

#shoppingListSection .shopping-title-block p {
    color: rgba(255, 255, 255, .62) !important;
    font-size: 11px !important;
    line-height: 15px !important;
    margin: 2px 0 0 !important;
    font-weight: 400 !important;
    max-width: 430px !important;
}

#shoppingListSection .shopping-header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-left: auto !important;
}

#shoppingListSection .shopping-header-search {
    width: 420px !important;
    max-width: 42vw !important;
    position: relative !important;
}

#shoppingListSection .shopping-header-search i,
#shoppingListSection .shopping-panel-search i {
    position: absolute !important;
    left: 11px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: rgba(255, 255, 255, .62) !important;
    font-size: 12px !important;
    z-index: 2 !important;
}

#shoppingListSection .shopping-header-search .login-input {
    width: 100% !important;
    height: 36px !important;
    min-height: 36px !important;
    border-radius: 10px !important;
    padding: 0 12px 0 34px !important;
    font-size: 12px !important;
    line-height: 14px !important;
    font-weight: 400 !important;
}

#shoppingListSection .shopping-add-button,
#shoppingListSection .shopping-add-btn {
    width: auto !important;
    min-width: 126px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 18px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-size: 13px !important;
    line-height: 15px !important;
    font-weight: 500 !important;
}

#shoppingListSection .shopping-top-grid,
#shoppingListSection .shopping-layout-grid,
#shoppingListSection .shopping-procurement-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 280px !important;
    gap: 12px !important;
    align-items: start !important;
}

#shoppingListSection .shopping-top-grid {
    margin: 0 0 8px !important;
}

#shoppingListSection .shopping-layout-grid,
#shoppingListSection .shopping-procurement-layout {
    margin: 0 !important;
}

#shoppingListSection .shopping-procurement-main,
#shoppingListSection .shopping-main-column {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

#shoppingListSection .shopping-right-sidebar,
#shoppingListSection .shopping-side-panel,
#shoppingListSection .shopping-top-sidebar {
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 3 !important;
}

#shoppingListSection .shopping-top-grid .shopping-stats-row,
#shoppingListSection .shopping-top-grid .shopping-metrics-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin: 0 !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

#shoppingListSection .shopping-stat-card,
#shoppingListSection .shopping-metric-card {
    height: 84px !important;
    min-height: 84px !important;
    padding: 12px !important;
    border-radius: 13px !important;
    display: flex !important;
    align-items: center !important;
    gap: 11px !important;
    background: rgba(10, 15, 22, .82) !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

#shoppingListSection .shopping-stat-icon,
#shoppingListSection .shopping-metric-icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
}

#shoppingListSection .shopping-stat-icon i,
#shoppingListSection .shopping-metric-icon i {
    font-size: 14px !important;
}

#shoppingListSection .shopping-metric-purple .shopping-stat-icon { color: #a78bfa !important; background: rgba(124, 92, 255, .18) !important; border: 1px solid rgba(167, 139, 250, .38) !important; }
#shoppingListSection .shopping-metric-orange .shopping-stat-icon { color: #fb923c !important; background: rgba(249, 115, 22, .16) !important; border: 1px solid rgba(251, 146, 60, .38) !important; }
#shoppingListSection .shopping-metric-yellow .shopping-stat-icon { color: #facc15 !important; background: rgba(234, 179, 8, .15) !important; border: 1px solid rgba(250, 204, 21, .38) !important; }
#shoppingListSection .shopping-metric-green .shopping-stat-icon { color: #22c55e !important; background: rgba(34, 197, 94, .15) !important; border: 1px solid rgba(34, 197, 94, .38) !important; }

#shoppingListSection .shopping-stat-card small,
#shoppingListSection .shopping-metric-card small {
    display: block !important;
    color: rgba(255, 255, 255, .68) !important;
    font-size: 11px !important;
    line-height: 14px !important;
    margin: 0 0 1px !important;
    font-weight: 400 !important;
}

#shoppingListSection .shopping-stat-card strong,
#shoppingListSection .shopping-metric-card strong {
    display: block !important;
    color: #fff !important;
    font-size: 18px !important;
    line-height: 21px !important;
    letter-spacing: -0.02em !important;
    margin: 0 !important;
    font-weight: 500 !important;
}

#shoppingListSection .shopping-stat-card em,
#shoppingListSection .shopping-metric-card em {
    display: block !important;
    color: rgba(255, 255, 255, .56) !important;
    font-size: 11px !important;
    line-height: 13px !important;
    font-style: normal !important;
    font-weight: 400 !important;
}

#shoppingListSection .shopping-mode-card,
#shoppingListSection .shopping-sidebar-panel,
#shoppingListSection .shopping-side-card {
    padding: 14px !important;
    border-radius: 13px !important;
    background: rgba(10, 15, 22, .84) !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    box-shadow: none !important;
}

#shoppingListSection .shopping-top-sidebar .shopping-mode-card,
#shoppingListSection .shopping-mode-card {
    min-height: 106px !important;
    height: auto !important;
    border-color: rgba(212, 175, 55, .86) !important;
    overflow: visible !important;
}

#shoppingListSection .shopping-mode-card-head {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 0 8px !important;
}

#shoppingListSection .shopping-mode-icon {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #d4af37 !important;
    background: rgba(212, 175, 55, .08) !important;
    border: 1px solid rgba(212, 175, 55, .65) !important;
    font-size: 17px !important;
}

#shoppingListSection .shopping-mode-icon i { color: #d4af37 !important; font-size: 17px !important; }

#shoppingListSection .shopping-mode-card h4,
#shoppingListSection .shopping-sidebar-panel h4,
#shoppingListSection .shopping-side-card h4 {
    color: #fff !important;
    font-size: 15px !important;
    line-height: 18px !important;
    margin: 0 !important;
    font-weight: 500 !important;
}

#shoppingListSection .shopping-mode-card p {
    color: rgba(255, 255, 255, .64) !important;
    font-size: 11px !important;
    line-height: 14px !important;
    margin: 2px 0 0 !important;
    font-weight: 400 !important;
}

#shoppingListSection .shopping-mode-card .login-btn,
#shoppingListSection .shopping-sidebar-panel .login-btn,
#shoppingListSection .shopping-mode-start-btn {
    width: 100% !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 12px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-size: 12px !important;
    line-height: 15px !important;
    font-weight: 500 !important;
    overflow: visible !important;
}

#shoppingListSection .shopping-control-panel,
#shoppingListSection .shopping-filter-panel {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px !important;
    margin: 0 0 4px !important;
    border-radius: 13px !important;
    background: rgba(10, 15, 22, .78) !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    overflow: hidden !important;
}

#shoppingListSection .shopping-status-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 7px !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
}

#shoppingListSection .shopping-status-tab {
    flex: 0 0 auto !important;
    height: 31px !important;
    min-height: 31px !important;
    padding: 0 11px !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    line-height: 13px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

#shoppingListSection .shopping-filter-row {
    display: grid !important;
    grid-template-columns: minmax(170px, 1.55fr) minmax(118px, 1fr) minmax(112px, .95fr) minmax(124px, 1.05fr) minmax(104px, .85fr) minmax(132px, 1.05fr) minmax(88px, .7fr) !important;
    gap: 7px !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

#shoppingListSection .shopping-panel-search { position: relative !important; min-width: 0 !important; }

#shoppingListSection .shopping-filter-row .login-input,
#shoppingListSection .shopping-filter-row select,
#shoppingListSection #shoppingSearchInput,
#shoppingListSection #shoppingSortFilter,
#shoppingListSection #shoppingGroupFilter {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 10px !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    line-height: 14px !important;
    font-weight: 400 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

#shoppingListSection .shopping-panel-search .login-input { padding-left: 30px !important; }

#shoppingListSection .shopping-list-header,
#shoppingListSection .shopping-item-card.shopping-table-row {
    display: grid !important;
    grid-template-columns: 28px minmax(170px, 1.55fr) minmax(82px, .7fr) minmax(96px, .8fr) minmax(58px, .45fr) minmax(76px, .6fr) minmax(64px, .5fr) minmax(52px, .42fr) 26px !important;
    column-gap: 8px !important;
    align-items: center !important;
}

#shoppingListSection .shopping-list-header {
    min-height: 30px !important;
    padding: 6px 10px !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
}

#shoppingListSection .shopping-list-header > div,
#shoppingListSection table th,
#shoppingListSection .mock-shopping-header {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: rgba(255, 255, 255, .56) !important;
    font-size: 10px !important;
    line-height: 13px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
}

#shoppingListSection .shopping-item-card.shopping-table-row {
    row-gap: 2px !important;
    min-height: 62px !important;
    padding: 7px 10px !important;
    border-radius: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .07) !important;
    background: rgba(10, 15, 22, .28) !important;
    box-shadow: none !important;
}

#shoppingListSection .shopping-item-card.shopping-table-row:hover { background: rgba(255, 255, 255, .035) !important; }
#shoppingListSection .shopping-row-select { display: flex !important; align-items: center !important; justify-content: center !important; }
#shoppingListSection .shopping-row-select input,
#shoppingListSection .shopping-list-header input { width: 14px !important; height: 14px !important; }

#shoppingListSection .shopping-item-card.shopping-table-row .shopping-item-main {
    display: grid !important;
    grid-template-columns: 38px minmax(0, 1fr) !important;
    gap: 8px !important;
    align-items: center !important;
    min-width: 0 !important;
}

#shoppingListSection .shopping-item-thumb {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #d4af37 !important;
    background: radial-gradient(circle at 30% 20%, rgba(212, 175, 55, .24), rgba(10, 15, 22, .88)) !important;
    border: 1px solid rgba(212, 175, 55, .22) !important;
    overflow: hidden !important;
    font-size: 14px !important;
}

#shoppingListSection .shopping-item-thumb img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; }
#shoppingListSection .shopping-item-thumb i { color: #d4af37 !important; font-size: 14px !important; }

#shoppingListSection .shopping-item-card h4 {
    color: #fff !important;
    font-size: 13px !important;
    line-height: 16px !important;
    margin: 0 0 2px !important;
    font-weight: 500 !important;
}

#shoppingListSection .shopping-item-card p,
#shoppingListSection .shopping-row-meta,
#shoppingListSection .shopping-row-supplier,
#shoppingListSection .shopping-row-category,
#shoppingListSection .shopping-row-qty,
#shoppingListSection .shopping-row-cost {
    color: rgba(255, 255, 255, .64) !important;
    font-size: 11px !important;
    line-height: 14px !important;
    font-weight: 400 !important;
    margin: 0 !important;
    min-width: 0 !important;
}

#shoppingListSection .shopping-row-category span {
    display: inline-flex !important;
    max-width: 100% !important;
    padding: 4px 8px !important;
    border-radius: 7px !important;
    color: #b9a7ff !important;
    background: rgba(124, 92, 255, .14) !important;
    border: 1px solid rgba(124, 92, 255, .22) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

#shoppingListSection .shopping-row-qty strong { display: block !important; color: rgba(255, 255, 255, .86) !important; font-size: 12px !important; line-height: 15px !important; font-weight: 500 !important; }
#shoppingListSection .shopping-row-qty small { display: block !important; color: #d4af37 !important; font-size: 10px !important; line-height: 13px !important; font-weight: 500 !important; }
#shoppingListSection .shopping-row-meta { grid-column: 2 / 6 !important; display: flex !important; flex-wrap: wrap !important; gap: 8px !important; }

#shoppingListSection .shopping-status-badge,
#shoppingListSection .shopping-priority-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 22px !important;
    padding: 0 9px !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    line-height: 13px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

#shoppingListSection .shopping-actions-menu { position: relative !important; justify-self: center !important; }
#shoppingListSection .shopping-actions-menu summary { width: 28px !important; height: 28px !important; border-radius: 8px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; color: rgba(255, 255, 255, .72) !important; list-style: none !important; cursor: pointer !important; }
#shoppingListSection .shopping-actions-menu summary::-webkit-details-marker { display: none !important; }
#shoppingListSection .shopping-actions-menu .shopping-actions { position: absolute !important; right: 0 !important; top: 34px !important; z-index: 30 !important; width: 184px !important; display: grid !important; gap: 6px !important; padding: 8px !important; border-radius: 10px !important; background: rgba(10, 15, 22, .98) !important; border: 1px solid rgba(255, 255, 255, .1) !important; box-shadow: 0 18px 40px rgba(0, 0, 0, .45) !important; }
#shoppingListSection .shopping-actions-menu .slim-btn { width: 100% !important; height: 30px !important; min-height: 30px !important; justify-content: flex-start !important; padding: 0 9px !important; font-size: 12px !important; font-weight: 500 !important; }

#shoppingListSection .shopping-side-card-head { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 10px !important; margin: 0 0 10px !important; }
#shoppingListSection .shopping-side-card-head .login-input { width: 96px !important; height: 32px !important; min-height: 32px !important; border-radius: 8px !important; font-size: 11px !important; font-weight: 400 !important; }
#shoppingListSection .shopping-summary-line { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 12px !important; margin: 0 0 9px !important; color: rgba(255, 255, 255, .66) !important; font-size: 12px !important; line-height: 16px !important; font-weight: 400 !important; }
#shoppingListSection .shopping-summary-line strong { color: #fff !important; font-size: 12px !important; font-weight: 500 !important; }
#shoppingListSection .shopping-sidebar-link { border: 0 !important; background: transparent !important; color: #d4af37 !important; font-size: 11px !important; font-weight: 500 !important; padding: 0 !important; }

#shoppingListSection .shopping-top-suppliers-list { display: grid !important; gap: 9px !important; }
#shoppingListSection .shopping-supplier-row { display: grid !important; grid-template-columns: 26px minmax(0, 1fr) auto !important; gap: 10px !important; align-items: center !important; margin: 0 !important; }
#shoppingListSection .shopping-supplier-icon { width: 24px !important; height: 24px !important; min-width: 24px !important; border-radius: 7px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; color: rgba(255, 255, 255, .86) !important; border: 1px solid rgba(255, 255, 255, .22) !important; background: rgba(255, 255, 255, .04) !important; font-size: 12px !important; }
#shoppingListSection .shopping-supplier-icon i { font-size: 12px !important; }
#shoppingListSection .shopping-supplier-row strong { display: block !important; color: #fff !important; font-size: 12px !important; line-height: 15px !important; font-weight: 500 !important; }
#shoppingListSection .shopping-supplier-row small { display: block !important; color: rgba(255, 255, 255, .58) !important; font-size: 11px !important; line-height: 13px !important; font-weight: 400 !important; }
#shoppingListSection .shopping-supplier-row em { color: #fff !important; font-style: normal !important; font-size: 12px !important; font-weight: 500 !important; }

#shoppingListSection .shopping-side-actions { display: grid !important; gap: 8px !important; }
#shoppingListSection .shopping-quick-action,
#shoppingListSection .shopping-side-action { width: 100% !important; min-height: 32px !important; display: grid !important; grid-template-columns: 28px minmax(0, 1fr) !important; gap: 10px !important; align-items: center !important; padding: 0 !important; border: 0 !important; background: transparent !important; color: inherit !important; text-align: left !important; }
#shoppingListSection .quick-action-icon { width: 26px !important; height: 26px !important; min-width: 26px !important; border-radius: 7px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; color: #fff !important; font-size: 12px !important; }
#shoppingListSection .quick-action-icon i { font-size: 12px !important; }
#shoppingListSection .quick-action-icon.purple { background: rgba(124, 92, 255, .78) !important; }
#shoppingListSection .quick-action-icon.green { background: rgba(34, 197, 94, .78) !important; }
#shoppingListSection .quick-action-icon.yellow { background: rgba(234, 179, 8, .82) !important; }
#shoppingListSection .shopping-quick-action strong,
#shoppingListSection .shopping-side-action strong { display: block !important; color: #fff !important; font-size: 12px !important; line-height: 14px !important; font-weight: 500 !important; }
#shoppingListSection .shopping-quick-action small,
#shoppingListSection .shopping-side-action small { display: block !important; color: rgba(255, 255, 255, .58) !important; font-size: 10px !important; line-height: 12px !important; font-weight: 400 !important; }

#shoppingListSection .shopping-empty-state { min-height: 80px !important; display: flex !important; align-items: center !important; justify-content: center !important; gap: 12px !important; }

@media (max-width: 1200px) {
    #shoppingListSection .shopping-top-grid,
    #shoppingListSection .shopping-layout-grid,
    #shoppingListSection .shopping-procurement-layout { grid-template-columns: 1fr !important; }
    #shoppingListSection .shopping-right-sidebar,
    #shoppingListSection .shopping-side-panel,
    #shoppingListSection .shopping-top-sidebar { width: 100% !important; min-width: 0 !important; max-width: 100% !important; }
    #shoppingListSection .shopping-header-search { width: 320px !important; max-width: 42vw !important; }
}

@media (max-width: 768px) {
    #shoppingListSection .shopping-page-header,
    #shoppingListSection .shopping-header-actions { align-items: stretch !important; flex-direction: column !important; }
    #shoppingListSection .shopping-header-search { width: 100% !important; max-width: 100% !important; }
    #shoppingListSection .shopping-top-grid .shopping-stats-row,
    #shoppingListSection .shopping-top-grid .shopping-metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    #shoppingListSection .shopping-filter-row { grid-template-columns: 1fr !important; }
    #shoppingListSection .shopping-list-header { display: none !important; }
    #shoppingListSection .shopping-item-card.shopping-table-row { grid-template-columns: 28px minmax(0, 1fr) 36px !important; }
    #shoppingListSection .shopping-row-category,
    #shoppingListSection .shopping-row-supplier,
    #shoppingListSection .shopping-row-qty,
    #shoppingListSection .shopping-row-cost,
    #shoppingListSection .shopping-item-card.shopping-table-row > div:nth-of-type(4),
    #shoppingListSection .shopping-item-card.shopping-table-row > div:nth-of-type(5) { display: none !important; }
}

/* Shared compact admin typography
   Keeps the smaller Shopping List scale consistent across the sidebar and all admin pages. */
.sidebar {
  padding: 34px 22px !important;
}

.brand-name {
  font-size: 1.82rem !important;
  line-height: 2.15rem !important;
}

.nav-link {
  min-height: 44px !important;
  padding: 10px 16px !important;
  margin-bottom: 8px !important;
  border-radius: 12px !important;
  font-size: 0.92rem !important;
  line-height: 1.18rem !important;
  font-weight: 400 !important;
}

.nav-link i {
  width: 20px !important;
  min-width: 20px !important;
  margin-right: 13px !important;
  font-size: 1rem !important;
  text-align: center !important;
}

.nav-link:hover,
.nav-link.active {
  transform: translateX(3px) !important;
  font-weight: 500 !important;
}

.sidebar-subnav {
  gap: 4px !important;
  margin: -4px 0 10px 48px !important;
}

.sidebar-subnav-link {
  padding: 6px 9px !important;
  font-size: 0.78rem !important;
  line-height: 1rem !important;
  font-weight: 500 !important;
}

.nav-group-label {
  margin: 14px 0 7px 8px !important;
  font-size: 0.64rem !important;
  line-height: 0.8rem !important;
  font-weight: 600 !important;
}

.logout-link {
  margin-top: 10px !important;
}

.main-content {
  padding: 42px 52px !important;
  font-size: 0.88rem !important;
  line-height: 1.32rem !important;
}

#dynamicPageTitleMain {
  font-size: 1.9rem !important;
  line-height: 2.25rem !important;
  font-weight: 500 !important;
}

#dynamicPageTitleSub {
  font-size: 0.84rem !important;
  line-height: 1.2rem !important;
}

.workspace-card,
.table-wrapper,
.revenue-panel,
.stat-card {
  border-radius: 16px !important;
}

.workspace-card {
  padding: 24px !important;
}

.workspace-card h2,
.workspace-card h3,
.workspace-card h4,
.table-wrapper h4,
.revenue-panel h4 {
  font-size: 1rem !important;
  line-height: 1.35rem !important;
  font-weight: 500 !important;
}

.workspace-card p,
.workspace-card label,
.workspace-card span,
.workspace-card div,
.data-table td,
.data-table th {
  line-height: 1.32rem;
}

.login-input,
.tenant-select,
.tenant-action-select {
  min-height: 38px !important;
  padding: 10px 12px !important;
  border-radius: 9px !important;
  font-size: 0.86rem !important;
  line-height: 1.1rem !important;
  font-weight: 400 !important;
}

.login-btn,
.slim-btn,
button {
  border-radius: 9px;
}

.login-btn {
  min-height: 38px !important;
  padding: 10px 14px !important;
  font-size: 0.9rem !important;
  line-height: 1.12rem !important;
  font-weight: 500 !important;
}

.data-table th {
  padding: 11px 12px !important;
  font-size: 0.78rem !important;
  line-height: 1rem !important;
  font-weight: 500 !important;
}

.data-table td {
  padding: 13px 12px !important;
  font-size: 0.84rem !important;
  line-height: 1.2rem !important;
}

.metrics-grid {
  gap: 18px !important;
  margin-top: 28px !important;
}

.stat-card {
  padding: 22px !important;
}

.stat-card h3 {
  font-size: 0.78rem !important;
  line-height: 1rem !important;
  font-weight: 400 !important;
}

.stat-card p {
  font-size: 2.05rem !important;
  line-height: 2.35rem !important;
  font-weight: 500 !important;
  margin-top: 10px !important;
}

@media (max-width: 900px) {
  .main-content {
    padding: 32px 24px !important;
  }
}

/* Final sidebar density pass: match the smaller target menu scale across every page. */
:root {
  --sidebar-width: 240px;
}

.sidebar {
  width: 240px !important;
  padding: 28px 18px !important;
}

.main-content {
  margin-left: 240px !important;
}

.sidebar-header {
  margin-bottom: 22px !important;
}

.sidebar .brand-name,
.brand-name {
  font-size: 1.58rem !important;
  line-height: 1.9rem !important;
  letter-spacing: .3px !important;
}

.sidebar-nav-main {
  padding-right: 5px !important;
}

.sidebar .nav-link,
.nav-link {
  min-height: 38px !important;
  height: auto !important;
  padding: 8px 12px !important;
  margin-bottom: 6px !important;
  gap: 10px !important;
  border-radius: 10px !important;
  font-size: 0.78rem !important;
  line-height: 1rem !important;
  font-weight: 400 !important;
}

.sidebar .nav-link i,
.nav-link i {
  width: 16px !important;
  min-width: 16px !important;
  margin-right: 8px !important;
  font-size: 0.9rem !important;
  line-height: 1 !important;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover,
.nav-link.active,
.nav-link:hover {
  transform: translateX(2px) !important;
  font-weight: 500 !important;
}

.sidebar-subnav {
  margin: -2px 0 8px 38px !important;
}

.sidebar-subnav-link {
  padding: 5px 8px !important;
  font-size: 0.72rem !important;
  line-height: 0.9rem !important;
  font-weight: 400 !important;
}

.nav-group-label {
  margin: 12px 0 6px 6px !important;
  font-size: 0.6rem !important;
  line-height: 0.75rem !important;
  font-weight: 500 !important;
}

.logout-link {
  min-height: 38px !important;
  margin-top: 8px !important;
}

.sidebar [style*="admin-avatar"],
.sidebar img[alt="Profile"],
.profile-avatar {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
}

.sidebar nav > div:last-child,
.sidebar .user-profile {
  padding: 7px 10px !important;
  border-radius: 13px !important;
}

.sidebar nav > div:last-child div,
.sidebar .user-profile div {
  font-size: 0.74rem !important;
  line-height: 0.95rem !important;
  font-weight: 400 !important;
}

.sidebar nav > div:last-child div:first-of-type,
.sidebar .user-profile strong {
  font-size: 0.82rem !important;
  line-height: 1rem !important;
  font-weight: 500 !important;
}

/* Dashboard + sidebar target design pass */
:root {
  --sidebar-width: 240px;
  --dashboard-card-bg: rgba(15, 20, 28, 0.82);
  --dashboard-card-border: rgba(255, 255, 255, 0.08);
}

.admin-panel {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sidebar {
  width: 240px !important;
  padding: 26px 14px 16px !important;
  background: linear-gradient(180deg, rgba(8, 14, 21, 0.98), rgba(11, 14, 20, 0.98)) !important;
}

.main-content {
  margin-left: 240px !important;
  padding: 24px 30px 34px !important;
}

.sidebar-header {
  margin: 0 0 18px !important;
  padding: 0 8px !important;
}

.sidebar .brand-name,
.brand-name {
  margin: 0 !important;
  font-size: 1.45rem !important;
  line-height: 1.65rem !important;
  letter-spacing: 0 !important;
}

.sidebar-brand-subtitle {
  margin: 5px 0 0 !important;
  color: rgba(255, 255, 255, 0.58) !important;
  font-size: 0.72rem !important;
  line-height: 1rem !important;
  font-weight: 400 !important;
}

.sidebar-nav-main {
  padding: 0 3px 0 0 !important;
}

.sidebar .nav-link,
.nav-link {
  min-height: 38px !important;
  padding: 8px 10px !important;
  margin: 0 0 5px !important;
  gap: 9px !important;
  border-radius: 9px !important;
  font-size: 0.78rem !important;
  line-height: 1rem !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

.sidebar .nav-link i,
.nav-link i {
  width: 16px !important;
  min-width: 16px !important;
  margin-right: 7px !important;
  font-size: 0.88rem !important;
}

.sidebar .nav-link.active,
.nav-link.active {
  background: rgba(212, 175, 55, 0.14) !important;
  color: var(--accent-gold) !important;
  font-weight: 500 !important;
  transform: none !important;
}

.sidebar-profile-wrap {
  margin-top: auto !important;
  padding: 12px 6px 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.sidebar-profile {
  cursor: pointer !important;
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) 12px !important;
  align-items: center !important;
  gap: 9px !important;
  padding: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 13px !important;
  background: rgba(255, 255, 255, 0.025) !important;
}

.sidebar-profile-avatar {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background-position: center !important;
  background-size: cover !important;
  background-color: var(--accent-gold) !important;
  color: #050505 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
}

.sidebar-profile-text {
  min-width: 0 !important;
  text-align: left !important;
}

.sidebar-profile-name {
  color: var(--text-white) !important;
  font-size: 0.78rem !important;
  line-height: 1rem !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.sidebar-profile-role {
  color: var(--accent-gold) !important;
  font-size: 0.68rem !important;
  line-height: 0.88rem !important;
  font-weight: 400 !important;
}

.sidebar-profile-chevron {
  color: rgba(255, 255, 255, 0.68) !important;
  font-size: 0.65rem !important;
}

.dashboard-global-header {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 18px !important;
  margin: 0 0 22px !important;
  flex-wrap: nowrap !important;
}

.dashboard-title-block h1,
#dynamicPageTitleMain {
  margin: 0 !important;
  color: #fff !important;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 1.85rem !important;
  line-height: 2.15rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.04em !important;
}

.dashboard-title-block p,
#dynamicPageTitleSub {
  margin: 5px 0 0 !important;
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 0.82rem !important;
  line-height: 1.12rem !important;
  font-weight: 400 !important;
}

.dashboard-title-block p strong,
#dynamicPageTitleSub strong {
  color: var(--accent-gold) !important;
  font-weight: 500 !important;
}

.dashboard-header-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  min-width: 0 !important;
}

.dashboard-date-chip {
  height: 38px !important;
  min-width: 132px !important;
  padding: 0 12px !important;
  display: grid !important;
  grid-template-columns: 18px auto !important;
  grid-template-rows: 17px 15px !important;
  column-gap: 8px !important;
  align-items: center !important;
  border-radius: 10px !important;
  background: var(--dashboard-card-bg) !important;
  border: 1px solid var(--dashboard-card-border) !important;
}

.dashboard-date-chip i {
  grid-row: 1 / 3 !important;
  color: #fff !important;
  font-size: 0.88rem !important;
}

.dashboard-date-chip span,
.dashboard-date-chip small {
  font-size: 0.72rem !important;
  line-height: 0.88rem !important;
  font-weight: 400 !important;
}

.dashboard-date-chip span {
  color: #fff !important;
}

.dashboard-date-chip small {
  color: rgba(255, 255, 255, 0.58) !important;
}

.global-search-wrap {
  position: relative !important;
  width: clamp(230px, 28vw, 320px) !important;
}

.global-search-wrap > i {
  position: absolute !important;
  left: 13px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 0.82rem !important;
  z-index: 1 !important;
}

.global-search-wrap .login-input {
  width: 100% !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 12px 0 36px !important;
  margin: 0 !important;
  border-radius: 10px !important;
  background: var(--dashboard-card-bg) !important;
  border: 1px solid var(--dashboard-card-border) !important;
  color: #fff !important;
  font-size: 0.78rem !important;
  font-weight: 400 !important;
}

.dashboard-header-button-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.dashboard-icon-button {
  width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  border-radius: 10px !important;
  border: 1px solid var(--dashboard-card-border) !important;
  background: var(--dashboard-card-bg) !important;
  color: #fff !important;
}

.dashboard-shop-switcher {
  width: 180px !important;
  height: 38px !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  border-radius: 10px !important;
  font-size: 0.76rem !important;
  background: var(--dashboard-card-bg) !important;
  border: 1px solid var(--dashboard-card-border) !important;
}

.dashboard-page {
  max-width: 1260px !important;
}

.dashboard-metric-grid {
  display: grid !important;
  gap: 14px !important;
}

.dashboard-primary-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  margin-bottom: 14px !important;
}

.dashboard-secondary-metrics {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  margin-bottom: 16px !important;
}

.dashboard-metric-card {
  min-height: 116px !important;
  padding: 18px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, rgba(17, 23, 31, 0.9), rgba(16, 19, 27, 0.78)) !important;
  border: 1px solid var(--dashboard-card-border) !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  box-shadow: none !important;
}

.dashboard-metric-card.compact {
  min-height: 78px !important;
  padding: 14px !important;
  gap: 12px !important;
}

.dashboard-metric-icon {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  font-size: 1rem !important;
}

.dashboard-metric-card.compact .dashboard-metric-icon {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  font-size: 0.82rem !important;
}

.dashboard-metric-card small {
  display: block !important;
  color: rgba(255, 255, 255, 0.64) !important;
  font-size: 0.72rem !important;
  line-height: 0.95rem !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
}

.dashboard-metric-card strong {
  display: block !important;
  color: #fff !important;
  font-size: 1.75rem !important;
  line-height: 2rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.04em !important;
  margin: 3px 0 8px !important;
}

.dashboard-metric-card.compact strong {
  font-size: 1.32rem !important;
  line-height: 1.55rem !important;
  margin: 1px 0 0 !important;
}

.dashboard-metric-card em {
  display: block !important;
  color: rgba(255, 255, 255, 0.58) !important;
  font-size: 0.78rem !important;
  line-height: 1rem !important;
  font-style: normal !important;
  font-weight: 400 !important;
  text-transform: none !important;
}

.accent-purple .dashboard-metric-icon,
.dashboard-action-card.accent-purple > span {
  background: linear-gradient(135deg, #7c3aed, #4f46e5) !important;
}

.accent-green .dashboard-metric-icon,
.dashboard-action-card.accent-green > span {
  background: linear-gradient(135deg, #22c55e, #15803d) !important;
}

.accent-blue .dashboard-metric-icon,
.dashboard-action-card.accent-blue > span {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
}

.accent-orange .dashboard-metric-icon,
.dashboard-action-card.accent-orange > span {
  background: linear-gradient(135deg, #f59e0b, #c2410c) !important;
}

.accent-red .dashboard-metric-icon,
.dashboard-action-card.accent-red > span {
  background: linear-gradient(135deg, #ef4444, #b91c1c) !important;
}

.accent-cyan .dashboard-metric-icon,
.dashboard-action-card.accent-cyan > span {
  background: linear-gradient(135deg, #06b6d4, #0e7490) !important;
}

.dashboard-metric-card::after {
  content: "" !important;
  display: block !important;
  width: 32px !important;
  height: 3px !important;
  border-radius: 999px !important;
  position: absolute !important;
  left: 20px !important;
  bottom: 18px !important;
}

.dashboard-metric-card {
  position: relative !important;
}

.dashboard-metric-card.accent-purple::after { background: #7c3aed !important; }
.dashboard-metric-card.accent-green::after { background: #22c55e !important; }
.dashboard-metric-card.accent-blue::after { background: #3b82f6 !important; }
.dashboard-metric-card.accent-orange::after { background: #f59e0b !important; }
.dashboard-metric-card.accent-red::after { background: #ef4444 !important; }
.dashboard-metric-card.accent-cyan::after { background: #06b6d4 !important; }
.dashboard-metric-card.compact::after { display: none !important; }

.dashboard-panels-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr) !important;
  gap: 14px !important;
  margin-bottom: 16px !important;
}

.dashboard-panel {
  padding: 18px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, rgba(17, 23, 31, 0.9), rgba(16, 19, 27, 0.78)) !important;
  border: 1px solid rgba(212, 175, 55, 0.18) !important;
}

.dashboard-panel h4 {
  margin: 0 0 10px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: var(--accent-gold) !important;
  font-size: 0.98rem !important;
  line-height: 1.25rem !important;
  font-weight: 600 !important;
}

.dashboard-panel-subtitle {
  margin: -4px 0 16px !important;
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 0.78rem !important;
  line-height: 1.05rem !important;
}

.dashboard-escalation-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
}

.dashboard-escalation-grid > div {
  min-height: 62px !important;
  padding: 12px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid var(--dashboard-card-border) !important;
  position: relative !important;
}

.dashboard-escalation-grid span {
  display: block !important;
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 0.68rem !important;
  line-height: 0.9rem !important;
  text-transform: uppercase !important;
}

.dashboard-escalation-grid strong {
  color: #fff !important;
  font-size: 1.25rem !important;
  line-height: 1.45rem !important;
  font-weight: 600 !important;
}

.dashboard-escalation-grid i {
  position: absolute !important;
  right: 12px !important;
  bottom: 12px !important;
  color: var(--accent-gold) !important;
  opacity: 0.65 !important;
}

.dashboard-empty-card {
  min-height: 82px !important;
  padding: 14px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid var(--dashboard-card-border) !important;
}

.dashboard-empty-card .empty-state {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  color: rgba(255, 255, 255, 0.72) !important;
  padding: 0 !important;
}

.dashboard-empty-card .empty-state i {
  color: #22c55e !important;
  font-size: 1.1rem !important;
}

.dashboard-empty-card .empty-state strong {
  color: #fff !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
}

.dashboard-empty-card .empty-state span {
  color: rgba(255, 255, 255, 0.58) !important;
  font-size: 0.78rem !important;
}

.dashboard-action-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.dashboard-action-card {
  min-height: 76px !important;
  padding: 12px !important;
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) 12px !important;
  gap: 10px !important;
  align-items: center !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid var(--dashboard-card-border) !important;
  color: #fff !important;
  text-align: left !important;
  cursor: pointer !important;
}

.dashboard-action-card > span {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.dashboard-action-card strong {
  display: block !important;
  color: #fff !important;
  font-size: 0.82rem !important;
  line-height: 1rem !important;
  font-weight: 500 !important;
}

.dashboard-action-card small {
  display: block !important;
  color: rgba(255, 255, 255, 0.58) !important;
  font-size: 0.72rem !important;
  line-height: 1rem !important;
  margin-top: 4px !important;
  font-weight: 400 !important;
}

.dashboard-action-card > i {
  color: rgba(255, 255, 255, 0.65) !important;
  font-size: 0.72rem !important;
}

.dashboard-kitchen-overview {
  margin-top: 0 !important;
}

.dashboard-kitchen-overview h4 {
  margin-bottom: 14px !important;
}

.dashboard-overview-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.dashboard-hidden-expiry-panels {
  margin-top: 0 !important;
}

.dashboard-hidden-expiry-panels > div:first-child {
  display: none !important;
}

#staffExpiryPanel.dashboard-panel {
  margin-top: 16px !important;
}

@media (max-width: 1280px) {
  .dashboard-primary-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .dashboard-secondary-metrics,
  .dashboard-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .dashboard-panels-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 980px) {
  .sidebar {
    width: 220px !important;
  }

  .main-content {
    margin-left: 220px !important;
    padding: 22px !important;
  }

  .dashboard-global-header,
  .dashboard-header-actions {
    flex-wrap: wrap !important;
  }

  .dashboard-date-chip {
    display: none !important;
  }

  .dashboard-secondary-metrics,
  .dashboard-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .dashboard-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .sidebar {
    position: relative !important;
    width: 100% !important;
    min-height: auto !important;
  }

  .main-content {
    margin-left: 0 !important;
  }

  .dashboard-primary-metrics,
  .dashboard-secondary-metrics,
  .dashboard-overview-grid,
  .dashboard-action-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Food Labels + final sidebar target density */
.sidebar {
  width: 240px !important;
  padding: 26px 14px 16px !important;
}

.main-content {
  margin-left: 240px !important;
}

.sidebar .brand-name,
.brand-name {
  font-size: 1.45rem !important;
  line-height: 1.65rem !important;
  font-weight: 700 !important;
}

.sidebar-brand-subtitle {
  display: block !important;
  font-size: 0.72rem !important;
  line-height: 1rem !important;
  font-weight: 400 !important;
  color: rgba(255,255,255,0.58) !important;
}

.sidebar .nav-link,
.nav-link {
  min-height: 38px !important;
  padding: 8px 10px !important;
  margin-bottom: 5px !important;
  border-radius: 9px !important;
  gap: 9px !important;
  font-size: 0.78rem !important;
  line-height: 1rem !important;
  font-weight: 400 !important;
}

.sidebar .nav-link i,
.nav-link i {
  width: 16px !important;
  min-width: 16px !important;
  margin-right: 7px !important;
  font-size: 0.9rem !important;
  line-height: 1 !important;
}

.sidebar .nav-link.active,
.nav-link.active {
  font-weight: 500 !important;
  background: rgba(212,175,55,0.14) !important;
  color: var(--accent-gold) !important;
}

.food-labels-page {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.food-labels-toolbar {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 14px !important;
  margin-bottom: 14px !important;
}

.food-labels-title-block {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
}

.food-labels-title-icon {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--accent-gold) !important;
  background: rgba(212,175,55,0.08) !important;
  border: 1px solid rgba(212,175,55,0.55) !important;
  font-size: 0.95rem !important;
}

.food-labels-title-block h3 {
  margin: 0 !important;
  color: #fff !important;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 1.12rem !important;
  line-height: 1.4rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
}

.food-labels-title-block p {
  margin: 2px 0 0 !important;
  color: rgba(255,255,255,0.6) !important;
  font-size: 0.76rem !important;
  line-height: 1rem !important;
  font-weight: 400 !important;
}

.food-labels-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

.food-printer-status {
  align-items: center !important;
  gap: 6px !important;
  min-height: 34px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  background: rgba(239,68,68,0.08) !important;
  color: #ff8b8b !important;
  font-size: 0.74rem !important;
  line-height: 1rem !important;
  font-weight: 500 !important;
}

.food-printer-status span {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #ef4444 !important;
  box-shadow: 0 0 8px rgba(239,68,68,0.75) !important;
  display: inline-block !important;
}

.food-label-action {
  width: auto !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 14px !important;
  border-radius: 9px !important;
  font-size: 0.8rem !important;
  line-height: 1rem !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
}

.food-label-action.secondary {
  background: transparent !important;
  border: 1px solid rgba(212,175,55,0.85) !important;
  color: var(--accent-gold) !important;
}

.food-search-wrap {
  position: relative !important;
  margin-bottom: 12px !important;
}

.food-search-wrap > i {
  position: absolute !important;
  left: 13px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: rgba(255,255,255,0.58) !important;
  z-index: 2 !important;
  font-size: 0.82rem !important;
}

#foodSearchInput.login-input {
  width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 0 12px 0 36px !important;
  border-radius: 10px !important;
  font-size: 0.8rem !important;
  line-height: 1rem !important;
  font-weight: 400 !important;
  background: rgba(8,12,18,0.82) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
}

.food-labels-page .category-tabs {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  overflow-x: auto !important;
  padding: 0 0 4px !important;
  margin: 0 0 14px !important;
}

.food-labels-page .category-tab {
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  white-space: nowrap !important;
  background: rgba(255,255,255,0.045) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.68) !important;
  font-size: 0.78rem !important;
  line-height: 1rem !important;
  font-weight: 500 !important;
}

.food-labels-page .category-tab i {
  font-size: 0.8rem !important;
}

.food-labels-page .category-tab.active {
  background: rgba(212,175,55,0.12) !important;
  border-color: rgba(212,175,55,0.85) !important;
  color: var(--accent-gold) !important;
}

.food-labels-page .food-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  gap: 14px !important;
  margin-top: 0 !important;
}

.food-labels-page .food-card {
  min-height: 150px !important;
  padding: 16px 14px !important;
  border-radius: 14px !important;
  background: rgba(15,18,24,0.82) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-left-width: 3px !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.food-labels-page .food-card:hover {
  transform: translateY(-2px) !important;
  background: rgba(255,255,255,0.045) !important;
}

.food-card-edit-btn {
  position: absolute !important;
  top: 9px !important;
  left: 9px !important;
  width: 24px !important;
  height: 24px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(255,255,255,0.68) !important;
  cursor: pointer !important;
  z-index: 10 !important;
  font-size: 0.78rem !important;
}

.food-labels-page .food-icon {
  width: 42px !important;
  height: 42px !important;
  margin: 0 0 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.7rem !important;
}

.food-labels-page .food-image {
  width: 54px !important;
  height: 54px !important;
  min-height: 54px !important;
  border-radius: 12px !important;
  aspect-ratio: 1 !important;
  object-fit: cover !important;
  margin: 0 0 12px !important;
}

.food-labels-page .food-name {
  color: #fff !important;
  font-size: 0.92rem !important;
  line-height: 1.12rem !important;
  font-weight: 500 !important;
  text-align: center !important;
  margin-bottom: 5px !important;
}

.food-labels-page .food-location,
.food-labels-page .food-life,
.food-labels-page .food-print-count {
  color: rgba(255,255,255,0.58) !important;
  font-size: 0.74rem !important;
  line-height: 0.98rem !important;
  font-weight: 400 !important;
  text-align: center !important;
}

.food-labels-page .food-print-count {
  margin-top: 6px !important;
}

.food-labels-page #batchActionBar {
  padding: 10px 12px !important;
  border-radius: 10px !important;
  margin-bottom: 12px !important;
}

.food-labels-page #batchActionBar .login-btn {
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 12px !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
}

@media (max-width: 900px) {
  .food-labels-toolbar {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  .food-labels-actions {
    width: 100% !important;
    justify-content: flex-start !important;
  }

  .food-labels-page .food-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Food Labels dashboard target redesign - final scoped pass */
.food-labels-page,
.food-labels-page * {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.food-labels-page {
  max-width: 1240px !important;
  margin: 0 auto !important;
}

.food-labels-toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  margin: 0 0 14px !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 16px !important;
  background: rgba(12,16,22,0.64) !important;
}

.food-labels-title-block {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
}

.food-labels-title-icon {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #d4af37 !important;
  background: rgba(212,175,55,0.08) !important;
  border: 1px solid rgba(212,175,55,0.55) !important;
  font-size: 13px !important;
}

.food-labels-title-block h3 {
  margin: 0 !important;
  color: #fff !important;
  font-size: 15px !important;
  line-height: 19px !important;
  font-weight: 600 !important;
  letter-spacing: -0.015em !important;
}

.food-labels-title-block p {
  margin: 2px 0 0 !important;
  color: rgba(255,255,255,0.58) !important;
  font-size: 11px !important;
  line-height: 15px !important;
  font-weight: 400 !important;
}

.food-labels-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.food-printer-status {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 32px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  background: rgba(239,68,68,0.09) !important;
  color: #ff8b8b !important;
  font-size: 11px !important;
  line-height: 14px !important;
  font-weight: 500 !important;
}

.food-printer-status span {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #ef4444 !important;
  box-shadow: 0 0 8px rgba(239,68,68,0.7) !important;
  display: inline-block !important;
}

.food-label-action {
  width: auto !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 12px !important;
  border-radius: 9px !important;
  font-size: 12px !important;
  line-height: 14px !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
}

.food-label-action.secondary {
  background: transparent !important;
  border: 1px solid rgba(212,175,55,0.75) !important;
  color: #d4af37 !important;
}

.food-labels-metrics {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin: 0 0 14px !important;
}

.food-label-metric {
  min-height: 92px !important;
  padding: 16px !important;
  border-radius: 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 13px !important;
  background: linear-gradient(145deg, rgba(18,22,30,0.9), rgba(10,14,20,0.9)) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04) !important;
}

.food-label-metric > span {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  font-size: 16px !important;
}

.food-label-metric-blue > span { background: linear-gradient(135deg, #2563eb, #60a5fa) !important; }
.food-label-metric-purple > span { background: linear-gradient(135deg, #6d28d9, #a78bfa) !important; }
.food-label-metric-green > span { background: linear-gradient(135deg, #16a34a, #86efac) !important; }
.food-label-metric-orange > span { background: linear-gradient(135deg, #d97706, #fbbf24) !important; }

.food-label-metric small {
  display: block !important;
  color: rgba(255,255,255,0.66) !important;
  font-size: 11px !important;
  line-height: 14px !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
}

.food-label-metric strong {
  display: block !important;
  color: #fff !important;
  font-size: 26px !important;
  line-height: 30px !important;
  font-weight: 600 !important;
  letter-spacing: -0.03em !important;
  margin: 1px 0 !important;
}

.food-label-metric em {
  display: block !important;
  color: rgba(255,255,255,0.58) !important;
  font-size: 12px !important;
  line-height: 15px !important;
  font-style: normal !important;
  font-weight: 400 !important;
}

.food-labels-dashboard-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 300px !important;
  gap: 14px !important;
  align-items: start !important;
}

.food-labels-main-panel,
.food-labels-side-panel .food-side-card {
  background: rgba(12,16,22,0.72) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}

.food-labels-main-panel {
  padding: 14px !important;
  min-width: 0 !important;
}

.food-labels-side-panel {
  display: grid !important;
  gap: 12px !important;
  min-width: 0 !important;
}

.food-side-card {
  padding: 15px !important;
}

.food-side-card-title {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 12px !important;
  color: #fff !important;
  font-size: 15px !important;
  line-height: 18px !important;
  font-weight: 600 !important;
}

.food-side-card-title i {
  color: #d4af37 !important;
  font-size: 13px !important;
}

.food-side-action {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 32px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 9px !important;
  margin: 0 0 8px !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,0.035) !important;
  color: #fff !important;
  text-align: left !important;
  cursor: pointer !important;
}

.food-side-action:hover {
  border-color: rgba(212,175,55,0.35) !important;
  background: rgba(212,175,55,0.07) !important;
}

.food-side-action-icon {
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  font-size: 12px !important;
}

.food-side-action-icon.green { background: linear-gradient(135deg, #16a34a, #86efac) !important; }
.food-side-action-icon.gold { background: linear-gradient(135deg, #ca8a04, #fbbf24) !important; }
.food-side-action-icon.blue { background: linear-gradient(135deg, #2563eb, #60a5fa) !important; }

.food-side-action strong {
  display: block !important;
  color: #fff !important;
  font-size: 13px !important;
  line-height: 16px !important;
  font-weight: 500 !important;
}

.food-side-action small {
  display: block !important;
  color: rgba(255,255,255,0.56) !important;
  font-size: 11px !important;
  line-height: 14px !important;
  font-weight: 400 !important;
}

.food-summary-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 8px 0 !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}

.food-summary-row:last-child {
  border-bottom: 0 !important;
}

.food-summary-row span,
.food-summary-row strong {
  font-size: 12px !important;
  line-height: 16px !important;
  font-weight: 400 !important;
}

.food-summary-row span { color: rgba(255,255,255,0.62) !important; }
.food-summary-row strong { color: #fff !important; }

.food-search-wrap {
  position: relative !important;
  margin: 0 0 10px !important;
}

.food-search-wrap > i {
  position: absolute !important;
  left: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: rgba(255,255,255,0.58) !important;
  z-index: 2 !important;
  font-size: 13px !important;
}

#foodSearchInput.login-input {
  width: 100% !important;
  height: 38px !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 0 12px 0 34px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  line-height: 15px !important;
  font-weight: 400 !important;
  color: #fff !important;
  background: rgba(8,12,18,0.86) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
}

.food-labels-page .category-tabs {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  overflow-x: auto !important;
  padding: 0 0 2px !important;
  margin: 0 0 12px !important;
}

.food-labels-page .category-tab {
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  white-space: nowrap !important;
  background: rgba(255,255,255,0.045) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.68) !important;
  font-size: 12px !important;
  line-height: 15px !important;
  font-weight: 400 !important;
}

.food-labels-page .category-tab i {
  font-size: 12px !important;
}

.food-labels-page .category-tab.active {
  background: rgba(212,175,55,0.12) !important;
  border-color: rgba(212,175,55,0.82) !important;
  color: #d4af37 !important;
}

.food-labels-page .food-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
  gap: 10px !important;
  margin: 0 !important;
}

.food-labels-page .food-card {
  position: relative !important;
  min-height: 128px !important;
  padding: 13px 12px !important;
  border-radius: 14px !important;
  background: rgba(15,18,24,0.82) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-left-width: 3px !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
}

.food-labels-page .food-card:hover {
  transform: translateY(-1px) !important;
  background: rgba(255,255,255,0.045) !important;
}

.food-card-edit-btn {
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  width: 22px !important;
  height: 22px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(255,255,255,0.68) !important;
  cursor: pointer !important;
  z-index: 10 !important;
  font-size: 12px !important;
}

.food-labels-page .food-icon {
  width: 34px !important;
  height: 34px !important;
  margin: 0 0 9px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 22px !important;
}

.food-labels-page .food-image {
  width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  border-radius: 11px !important;
  aspect-ratio: 1 !important;
  object-fit: cover !important;
  margin: 0 0 9px !important;
}

.food-labels-page .food-name {
  color: #fff !important;
  font-size: 13px !important;
  line-height: 16px !important;
  font-weight: 500 !important;
  text-align: center !important;
  margin: 0 0 4px !important;
}

.food-labels-page .food-location,
.food-labels-page .food-life,
.food-labels-page .food-print-count {
  color: rgba(255,255,255,0.58) !important;
  font-size: 11px !important;
  line-height: 14px !important;
  font-weight: 400 !important;
  text-align: center !important;
}

.food-labels-page .food-print-count {
  margin-top: 5px !important;
}

.food-labels-page .food-print-count i {
  color: #ef4444 !important;
  font-size: 10px !important;
}

.food-batch-action-bar {
  justify-content: space-between !important;
  align-items: center !important;
  gap: 10px !important;
  background: rgba(212,175,55,0.12) !important;
  border: 1px solid rgba(212,175,55,0.55) !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  margin-bottom: 12px !important;
  color: #d4af37 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

.food-batch-action-bar > div:last-child {
  display: flex !important;
  gap: 8px !important;
}

/* Final cross-page sidebar scale used by Dashboard, Shopping List, and Food Labels. */
:root { --sidebar-width: 240px !important; }
.sidebar {
  width: 240px !important;
  padding: 24px 14px 16px !important;
}
.main-content {
  margin-left: 240px !important;
}
.sidebar .brand-name,
.brand-name {
  font-size: 1.45rem !important;
  line-height: 1.65rem !important;
  font-weight: 700 !important;
}
.sidebar-brand-subtitle {
  display: block !important;
  font-size: 0.72rem !important;
  line-height: 1rem !important;
  font-weight: 400 !important;
  color: rgba(255,255,255,0.58) !important;
  margin-top: 3px !important;
}
.sidebar .nav-link,
.nav-link {
  min-height: 38px !important;
  padding: 8px 10px !important;
  margin-bottom: 5px !important;
  border-radius: 9px !important;
  gap: 9px !important;
  font-size: 0.78rem !important;
  line-height: 1rem !important;
  font-weight: 400 !important;
}
.sidebar .nav-link i,
.nav-link i {
  width: 16px !important;
  min-width: 16px !important;
  margin-right: 7px !important;
  font-size: 0.9rem !important;
  line-height: 1 !important;
}
.sidebar .nav-link.active,
.nav-link.active {
  font-weight: 500 !important;
  background: rgba(212,175,55,0.14) !important;
  color: #d4af37 !important;
}
.sidebar-profile {
  min-height: 48px !important;
  padding: 8px !important;
  border-radius: 13px !important;
}
.sidebar-profile-avatar {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
}
.sidebar-profile-name {
  font-size: 0.8rem !important;
  line-height: 1rem !important;
  font-weight: 600 !important;
}
.sidebar-profile-role {
  font-size: 0.7rem !important;
  line-height: 0.9rem !important;
  font-weight: 400 !important;
}

@media (max-width: 1100px) {
  .food-labels-metrics,
  .food-labels-dashboard-grid {
    grid-template-columns: 1fr !important;
  }
  .food-labels-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .main-content {
    margin-left: 0 !important;
  }
  .food-labels-toolbar {
    align-items: flex-start !important;
    flex-direction: column !important;
  }
  .food-labels-actions {
    justify-content: flex-start !important;
    width: 100% !important;
  }
  .food-labels-metrics,
  .food-labels-page .food-grid {
    grid-template-columns: 1fr !important;
  }
}

#printerStatus[style*="display: none"] {
  display: none !important;
}

#printerStatus[style*="display: flex"] {
  display: inline-flex !important;
}

/* Food Labels kitchen station final lock: keep this at true end of file. */
#foodSection.label-station-page,
#foodSection.label-station-page *:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands) {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

#foodSection.label-station-page .fa,
#foodSection.label-station-page .fas,
#foodSection.label-station-page .far,
#foodSection.label-station-page .fal,
#foodSection.label-station-page .fab,
#foodSection.label-station-page .fa-solid,
#foodSection.label-station-page .fa-regular,
#foodSection.label-station-page .fa-brands {
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
  font-style: normal !important;
  line-height: 1 !important;
}

#foodSection.label-station-page .fa,
#foodSection.label-station-page .fas,
#foodSection.label-station-page .fa-solid {
  font-weight: 900 !important;
}

#foodSection.label-station-page .food-labels-metrics,
#foodSection.label-station-page .food-labels-dashboard-grid,
#foodSection.label-station-page .food-labels-toolbar,
#foodSection.label-station-page .food-labels-side-panel,
#foodSection.label-station-page .food-labels-hidden-metrics {
  display: none !important;
}

#foodSection.label-station-page {
  max-width: 1320px !important;
  margin: 0 auto !important;
  color: #f8fafc !important;
}

#foodSection.label-station-page .label-station-toolbar,
#foodSection.label-station-page .label-station-layout,
#foodSection.label-station-page .label-station-main,
#foodSection.label-station-page .label-station-section,
#foodSection.label-station-page .label-print-drawer,
#foodSection.label-station-page .label-horizontal-row,
#foodSection.label-station-page .label-category-chips,
#foodSection.label-station-page .label-print-grid {
  visibility: visible !important;
}

#foodSection.label-station-page .label-station-toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  margin: 0 0 18px !important;
  padding: 12px 14px !important;
  border-radius: 18px !important;
  background: rgba(13,18,26,0.78) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
}

#foodSection.label-station-page .label-station-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

#foodSection.label-station-page .label-station-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 360px !important;
  gap: 24px !important;
  align-items: start !important;
}

#foodSection.label-station-page .label-station-main {
  min-width: 0 !important;
  display: grid !important;
  gap: 18px !important;
}

#foodSection.label-station-page .label-station-search-panel,
#foodSection.label-station-page .label-station-section,
#foodSection.label-station-page .label-print-drawer {
  border-radius: 20px !important;
  background: linear-gradient(145deg, rgba(20,24,33,0.94), rgba(10,14,21,0.9)) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
}

#foodSection.label-station-page .label-station-search-panel {
  padding: 14px !important;
}

#foodSection.label-station-page .food-search-wrap {
  height: 58px !important;
  min-height: 58px !important;
  padding: 0 16px !important;
  margin: 0 !important;
  border-radius: 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  background: rgba(6,10,16,0.92) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
}

#foodSection.label-station-page #foodSearchInput {
  flex: 1 !important;
  height: 56px !important;
  min-height: 56px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #f8fafc !important;
  box-shadow: none !important;
  font-size: 16px !important;
}

#foodSection.label-station-page .label-horizontal-row {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(132px, 1fr)) !important;
  gap: 12px !important;
}

#foodSection.label-station-page .label-mini-card {
  min-height: 86px !important;
  padding: 12px !important;
  border-radius: 16px !important;
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) 18px !important;
  align-items: center !important;
  gap: 10px !important;
  background: rgba(255,255,255,0.045) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
}

#foodSection.label-station-page .label-category-chips {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 2px 0 4px !important;
  overflow-x: auto !important;
}

#foodSection.label-station-page .category-tab {
  min-height: 40px !important;
  height: 40px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

#foodSection.label-station-page .label-print-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin: 0 0 86px !important;
}

#foodSection.label-station-page .label-print-card {
  min-height: 226px !important;
  padding: 16px !important;
  border-radius: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  text-align: left !important;
  background: #141821 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-left: 4px solid var(--label-accent, #f5b91f) !important;
}

#foodSection.label-station-page .food-icon,
#foodSection.label-station-page .food-image {
  width: 56px !important;
  height: 56px !important;
  border-radius: 16px !important;
  margin: 0 !important;
}

#foodSection.label-station-page .food-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 24px !important;
}

#foodSection.label-station-page .food-name {
  font-size: 19px !important;
  line-height: 23px !important;
  font-weight: 700 !important;
  text-align: center !important;
}

#foodSection.label-station-page .label-card-actions {
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) !important;
  gap: 10px !important;
  margin-top: 14px !important;
}

#foodSection.label-station-page .label-x2-btn,
#foodSection.label-station-page .label-card-print-btn {
  height: 44px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

#foodSection.label-station-page .label-card-print-btn,
#foodSection.label-station-page .label-print-now {
  color: #080b12 !important;
  background: linear-gradient(135deg, #f5b91f, #f2bd24) !important;
}

#foodSection.label-station-page .label-print-drawer {
  position: sticky !important;
  top: 18px !important;
  width: 360px !important;
  max-width: 360px !important;
  padding: 18px !important;
}

#foodSection.label-station-page .label-batch-footer[style*="display: flex"] {
  display: flex !important;
}

@media (max-width: 1180px) {
  #foodSection.label-station-page .label-station-layout {
    grid-template-columns: 1fr !important;
  }
  #foodSection.label-station-page .label-print-drawer {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  #foodSection.label-station-page .label-print-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 780px) {
  #foodSection.label-station-page .label-station-toolbar {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  #foodSection.label-station-page .label-horizontal-row,
  #foodSection.label-station-page .label-print-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Food Labels layout recovery: actual EOF override. Keep this as the final block. */
#foodSection.label-station-page {
  max-width: 1320px !important;
  margin: 0 auto !important;
  color: #f8fafc !important;
}

#foodSection.label-station-page,
#foodSection.label-station-page *:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands) {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

#foodSection.label-station-page .fa,
#foodSection.label-station-page .fas,
#foodSection.label-station-page .far,
#foodSection.label-station-page .fal,
#foodSection.label-station-page .fab,
#foodSection.label-station-page .fa-solid,
#foodSection.label-station-page .fa-regular,
#foodSection.label-station-page .fa-brands {
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
  font-style: normal !important;
  line-height: 1 !important;
}

#foodSection.label-station-page .fa,
#foodSection.label-station-page .fas,
#foodSection.label-station-page .fa-solid {
  font-weight: 900 !important;
}

#foodSection.label-station-page .food-labels-metrics,
#foodSection.label-station-page .food-labels-dashboard-grid,
#foodSection.label-station-page .food-labels-toolbar,
#foodSection.label-station-page .food-labels-side-panel,
#foodSection.label-station-page .food-labels-hidden-metrics {
  display: none !important;
}

#foodSection.label-station-page .label-station-toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 0 0 12px !important;
  padding: 10px 12px !important;
  border-radius: 16px !important;
  background: rgba(13,18,26,0.78) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
}

#foodSection.label-station-page .label-station-printer,
#foodSection.label-station-page .label-station-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

#foodSection.label-station-page .food-printer-status {
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  line-height: 14px !important;
  font-weight: 600 !important;
}

#foodSection.label-station-page .food-label-action {
  min-height: 38px !important;
  height: 38px !important;
  padding: 0 16px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  line-height: 16px !important;
  font-weight: 700 !important;
}

#foodSection.label-station-page .label-station-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 330px !important;
  gap: 18px !important;
  align-items: start !important;
}

#foodSection.label-station-page .label-station-main {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  overflow: hidden !important;
}

#foodSection.label-station-page .label-station-search-panel,
#foodSection.label-station-page .label-station-section,
#foodSection.label-station-page .label-print-drawer {
  background: rgba(13,18,26,0.82) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 18px !important;
  box-shadow: none !important;
}

#foodSection.label-station-page .label-station-search-panel {
  padding: 12px !important;
  margin: 0 !important;
}

#foodSection.label-station-page .food-search-wrap {
  height: 52px !important;
  min-height: 52px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: rgba(6,10,16,0.94) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
}

#foodSection.label-station-page .food-search-wrap > i {
  width: 18px !important;
  min-width: 18px !important;
  font-size: 14px !important;
  color: rgba(255,255,255,0.6) !important;
}

#foodSection.label-station-page #foodSearchInput {
  flex: 1 !important;
  width: 100% !important;
  height: 50px !important;
  min-height: 50px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #f8fafc !important;
  font-size: 14px !important;
  line-height: 18px !important;
}

#foodSection.label-station-page .food-search-wrap kbd {
  height: 28px !important;
  min-width: 42px !important;
  padding: 0 8px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
}

#foodSection.label-station-page .label-station-section {
  padding: 13px !important;
  margin: 0 !important;
}

#foodSection.label-station-page .label-station-section-head {
  margin: 0 0 10px !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

#foodSection.label-station-page .label-station-section-head h3 {
  margin: 0 !important;
  font-size: 17px !important;
  line-height: 22px !important;
  font-weight: 700 !important;
}

#foodSection.label-station-page .label-station-section-head h3 i {
  margin-right: 8px !important;
  font-size: 14px !important;
  color: #f2bd24 !important;
}

#foodSection.label-station-page .label-station-section-head p {
  margin: 2px 0 0 !important;
  font-size: 12px !important;
  line-height: 16px !important;
  color: #9ca3af !important;
}

#foodSection.label-station-page .label-text-btn {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #f2bd24 !important;
}

#foodSection.label-station-page .label-horizontal-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 0 0 2px !important;
  margin: 0 !important;
  scroll-snap-type: x proximity !important;
}

#foodSection.label-station-page .label-mini-card {
  flex: 0 0 190px !important;
  width: 190px !important;
  min-width: 190px !important;
  height: 92px !important;
  min-height: 92px !important;
  padding: 10px !important;
  border-radius: 14px !important;
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) 18px !important;
  align-items: center !important;
  gap: 10px !important;
  text-align: left !important;
  background: rgba(21,24,32,0.95) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  scroll-snap-align: start !important;
}

#foodSection.label-station-page .label-mini-card .food-icon,
#foodSection.label-station-page .label-mini-card .food-image,
#foodSection.label-station-page .food-icon.mini,
#foodSection.label-station-page .food-image.mini {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border-radius: 12px !important;
  font-size: 18px !important;
}

#foodSection.label-station-page .label-mini-card strong {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
  white-space: normal !important;
  text-overflow: clip !important;
  max-width: 100% !important;
  font-size: 13px !important;
  line-height: 16px !important;
  font-weight: 700 !important;
}

#foodSection.label-station-page .label-mini-card small {
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 11px !important;
  line-height: 14px !important;
  color: #9ca3af !important;
}

#foodSection.label-station-page .label-mini-card > i {
  justify-self: end !important;
  color: #f2bd24 !important;
  font-size: 13px !important;
}

#foodSection.label-station-page .label-empty-inline,
#foodSection.label-station-page .label-empty-grid {
  width: 100% !important;
  min-height: 80px !important;
  padding: 18px !important;
  font-size: 13px !important;
  color: #9ca3af !important;
}

#foodSection.label-station-page .label-category-chips {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 0 2px !important;
  overflow-x: auto !important;
}

#foodSection.label-station-page .category-tab {
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 13px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  line-height: 14px !important;
  font-weight: 600 !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

#foodSection.label-station-page .category-tab.active {
  color: #f2bd24 !important;
  border-color: rgba(242,189,36,0.72) !important;
  background: rgba(242,189,36,0.13) !important;
}

#foodSection.label-station-page .label-print-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 14px !important;
  margin: 0 !important;
  padding: 0 0 18px !important;
}

#foodSection.label-station-page .label-print-card {
  position: relative !important;
  min-height: 205px !important;
  height: auto !important;
  padding: 14px !important;
  border-radius: 18px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  gap: 8px !important;
  text-align: center !important;
  background: #151820 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-left: 4px solid var(--label-accent, #f5b91f) !important;
  box-shadow: none !important;
}

#foodSection.label-station-page .label-print-card:hover,
#foodSection.label-station-page .label-print-card.active {
  transform: translateY(-1px) !important;
  border-color: rgba(245,185,31,0.5) !important;
}

#foodSection.label-station-page .food-card-edit-btn,
#foodSection.label-station-page .food-card-favorite {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  border-radius: 9px !important;
  font-size: 12px !important;
}

#foodSection.label-station-page .food-card-edit-btn {
  top: 10px !important;
  left: 10px !important;
}

#foodSection.label-station-page .food-card-favorite {
  top: 10px !important;
  right: 10px !important;
}

#foodSection.label-station-page .label-card-visual {
  margin-top: 26px !important;
}

#foodSection.label-station-page .food-icon,
#foodSection.label-station-page .food-image {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  border-radius: 13px !important;
  font-size: 20px !important;
  margin: 0 auto !important;
}

#foodSection.label-station-page .food-name {
  font-size: 17px !important;
  line-height: 21px !important;
  font-weight: 650 !important;
  text-align: center !important;
  margin: 8px 0 0 !important;
}

#foodSection.label-station-page .food-life,
#foodSection.label-station-page .food-print-count {
  font-size: 12px !important;
  line-height: 15px !important;
  font-weight: 500 !important;
  color: #9ca3af !important;
  margin: 0 !important;
}

#foodSection.label-station-page .food-print-count {
  color: #aeb5c1 !important;
}

#foodSection.label-station-page .label-card-actions {
  display: grid !important;
  grid-template-columns: 78px 1fr !important;
  gap: 10px !important;
  margin-top: 8px !important;
}

#foodSection.label-station-page .label-x2-btn,
#foodSection.label-station-page .label-card-print-btn {
  height: 42px !important;
  min-height: 42px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  line-height: 15px !important;
  font-weight: 700 !important;
}

#foodSection.label-station-page .label-print-drawer {
  position: sticky !important;
  top: 12px !important;
  width: 330px !important;
  max-width: 330px !important;
  min-width: 0 !important;
  max-height: calc(100vh - 150px) !important;
  overflow-y: auto !important;
  padding: 16px !important;
  border-radius: 18px !important;
}

#foodSection.label-station-page .label-drawer-header {
  gap: 12px !important;
  margin-bottom: 14px !important;
}

#foodSection.label-station-page .label-drawer-header > span {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  border-radius: 14px !important;
  font-size: 18px !important;
}

#foodSection.label-station-page .label-drawer-header small {
  font-size: 11px !important;
  letter-spacing: 0.11em !important;
}

#foodSection.label-station-page .label-drawer-header h3 {
  font-size: 19px !important;
  line-height: 23px !important;
}

#foodSection.label-station-page .label-drawer-empty {
  min-height: 250px !important;
  padding: 22px !important;
  border-radius: 16px !important;
}

#foodSection.label-station-page .label-drawer-empty i {
  font-size: 32px !important;
}

#foodSection.label-station-page .label-drawer-empty strong {
  font-size: 18px !important;
  line-height: 22px !important;
}

#foodSection.label-station-page .label-drawer-empty p {
  font-size: 13px !important;
  line-height: 19px !important;
}

#foodSection.label-station-page .label-preview-card {
  padding: 14px !important;
  border-radius: 14px !important;
  margin-bottom: 12px !important;
}

#foodSection.label-station-page .label-preview-card strong {
  font-size: 17px !important;
  line-height: 21px !important;
}

#foodSection.label-station-page .label-drawer-field {
  margin-bottom: 10px !important;
}

#foodSection.label-station-page .label-drawer-field .login-input,
#foodSection.label-station-page #drawerItemSelect,
#foodSection.label-station-page .label-qty-stepper {
  min-height: 40px !important;
  height: 40px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
}

#foodSection.label-station-page .label-print-now,
#foodSection.label-station-page .label-add-queue {
  min-height: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

#foodSection.label-station-page .label-batch-footer[style*="display: flex"] {
  display: flex !important;
}

#foodSection.label-station-page .label-batch-footer {
  min-height: 54px !important;
  padding: 10px 12px !important;
  border-radius: 16px 16px 0 0 !important;
}

@media (max-width: 1180px) {
  #foodSection.label-station-page .label-station-layout {
    grid-template-columns: 1fr !important;
  }

  #foodSection.label-station-page .label-print-drawer {
    position: relative !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
  }

  #foodSection.label-station-page .label-print-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
  }
}

@media (max-width: 780px) {
  #foodSection.label-station-page .label-station-toolbar,
  #foodSection.label-station-page .label-station-actions {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  #foodSection.label-station-page .food-label-action {
    width: 100% !important;
  }

  #foodSection.label-station-page .label-print-grid {
    grid-template-columns: 1fr !important;
  }

  #foodSection.label-station-page .label-mini-card {
    flex-basis: 170px !important;
    width: 170px !important;
    min-width: 170px !important;
  }

  #foodSection.label-station-page .label-batch-footer {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
  }
}

/* Food Labels layout recovery: final winning block. Keep this at EOF. */
#foodSection.label-station-page {
  max-width: 1320px !important;
  margin: 0 auto !important;
  color: #f8fafc !important;
}

#foodSection.label-station-page,
#foodSection.label-station-page *:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands) {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

#foodSection.label-station-page .fa,
#foodSection.label-station-page .fas,
#foodSection.label-station-page .far,
#foodSection.label-station-page .fal,
#foodSection.label-station-page .fab,
#foodSection.label-station-page .fa-solid,
#foodSection.label-station-page .fa-regular,
#foodSection.label-station-page .fa-brands {
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
  font-style: normal !important;
  line-height: 1 !important;
}

#foodSection.label-station-page .fa,
#foodSection.label-station-page .fas,
#foodSection.label-station-page .fa-solid {
  font-weight: 900 !important;
}

#foodSection.label-station-page .food-labels-metrics,
#foodSection.label-station-page .food-labels-dashboard-grid,
#foodSection.label-station-page .food-labels-toolbar,
#foodSection.label-station-page .food-labels-side-panel,
#foodSection.label-station-page .food-labels-hidden-metrics {
  display: none !important;
}

#foodSection.label-station-page .label-station-toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 0 0 12px !important;
  padding: 10px 12px !important;
  border-radius: 16px !important;
  background: rgba(13, 18, 26, 0.78) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: none !important;
}

#foodSection.label-station-page .label-station-printer {
  min-width: 0 !important;
}

#foodSection.label-station-page .label-station-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

#foodSection.label-station-page .food-printer-status {
  min-height: 34px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  line-height: 14px !important;
  font-weight: 500 !important;
}

#foodSection.label-station-page .food-label-action {
  width: auto !important;
  min-height: 38px !important;
  height: 38px !important;
  padding: 0 14px !important;
  border-radius: 11px !important;
  gap: 7px !important;
  font-size: 13px !important;
  line-height: 15px !important;
  font-weight: 650 !important;
}

#foodSection.label-station-page .label-station-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 330px !important;
  gap: 18px !important;
  align-items: start !important;
}

#foodSection.label-station-page .label-station-main {
  min-width: 0 !important;
  display: grid !important;
  gap: 12px !important;
  overflow: hidden !important;
}

#foodSection.label-station-page .label-station-search-panel,
#foodSection.label-station-page .label-station-section,
#foodSection.label-station-page .label-print-drawer {
  border-radius: 18px !important;
  background: linear-gradient(145deg, rgba(20,24,33,0.92), rgba(10,14,21,0.88)) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: none !important;
}

#foodSection.label-station-page .label-station-search-panel {
  padding: 12px !important;
  margin: 0 !important;
}

#foodSection.label-station-page .food-search-wrap {
  height: 52px !important;
  min-height: 52px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: rgba(6,10,16,0.92) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
}

#foodSection.label-station-page .food-search-wrap > i {
  width: 18px !important;
  min-width: 18px !important;
  color: rgba(255,255,255,0.66) !important;
  font-size: 15px !important;
  text-align: center !important;
}

#foodSection.label-station-page #foodSearchInput {
  flex: 1 1 auto !important;
  height: 50px !important;
  min-height: 50px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #f8fafc !important;
  font-size: 14px !important;
  line-height: 18px !important;
  font-weight: 450 !important;
}

#foodSection.label-station-page .food-search-wrap kbd {
  padding: 4px 7px !important;
  border-radius: 8px !important;
  color: rgba(255,255,255,0.58) !important;
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  font-size: 11px !important;
}

#foodSection.label-station-page .label-station-section {
  padding: 13px !important;
  margin: 0 !important;
  overflow: hidden !important;
}

#foodSection.label-station-page .label-station-section-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin-bottom: 9px !important;
}

#foodSection.label-station-page .label-station-section-head h3 {
  margin: 0 !important;
  color: #f8fafc !important;
  font-size: 16px !important;
  line-height: 20px !important;
  font-weight: 650 !important;
}

#foodSection.label-station-page .label-station-section-head h3 i {
  color: #f5b91f !important;
  margin-right: 7px !important;
}

#foodSection.label-station-page .label-station-section-head p {
  margin: 2px 0 0 !important;
  color: #9ca3af !important;
  font-size: 12px !important;
  line-height: 15px !important;
  font-weight: 400 !important;
}

#foodSection.label-station-page .label-text-btn {
  border: 0 !important;
  background: transparent !important;
  color: #f5b91f !important;
  font-size: 12px !important;
  font-weight: 650 !important;
}

#foodSection.label-station-page .label-horizontal-row {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 10px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 0 0 2px !important;
  scroll-snap-type: x proximity !important;
}

#foodSection.label-station-page .label-mini-card {
  flex: 0 0 190px !important;
  width: 190px !important;
  min-width: 190px !important;
  height: 92px !important;
  min-height: 92px !important;
  padding: 10px !important;
  border-radius: 14px !important;
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) 18px !important;
  align-items: center !important;
  gap: 9px !important;
  text-align: left !important;
  color: #f8fafc !important;
  background: rgba(255,255,255,0.045) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  scroll-snap-align: start !important;
}

#foodSection.label-station-page .label-mini-card .food-icon,
#foodSection.label-station-page .label-mini-card .food-image,
#foodSection.label-station-page .food-icon.mini,
#foodSection.label-station-page .food-image.mini {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border-radius: 11px !important;
  margin: 0 !important;
  font-size: 17px !important;
}

#foodSection.label-station-page .label-mini-card strong {
  display: -webkit-box !important;
  max-width: 100% !important;
  color: #fff !important;
  font-size: 13px !important;
  line-height: 16px !important;
  font-weight: 650 !important;
  white-space: normal !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
}

#foodSection.label-station-page .label-mini-card small {
  display: block !important;
  margin-top: 2px !important;
  color: #9ca3af !important;
  font-size: 11px !important;
  line-height: 13px !important;
  white-space: normal !important;
}

#foodSection.label-station-page .label-mini-card > i {
  color: #f5b91f !important;
  font-size: 12px !important;
}

#foodSection.label-station-page .label-category-chips {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 1px 0 3px !important;
  overflow-x: auto !important;
}

#foodSection.label-station-page .category-tab {
  flex: 0 0 auto !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 13px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  white-space: nowrap !important;
  color: rgba(255,255,255,0.72) !important;
  background: rgba(255,255,255,0.055) !important;
  border: 1px solid rgba(255,255,255,0.09) !important;
  font-size: 12px !important;
  line-height: 14px !important;
  font-weight: 500 !important;
}

#foodSection.label-station-page .category-tab.active {
  color: #f5b91f !important;
  background: rgba(245,185,31,0.14) !important;
  border-color: rgba(245,185,31,0.68) !important;
}

#foodSection.label-station-page .label-print-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 14px !important;
  margin: 0 !important;
  padding-bottom: 18px !important;
}

#foodSection.label-station-page .label-print-card {
  position: relative !important;
  min-height: 205px !important;
  height: auto !important;
  padding: 14px !important;
  border-radius: 18px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  text-align: left !important;
  color: #f8fafc !important;
  background: #141821 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-left: 4px solid var(--label-accent, #f5b91f) !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

#foodSection.label-station-page .food-card-edit-btn,
#foodSection.label-station-page .food-card-favorite {
  top: 10px !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
}

#foodSection.label-station-page .food-card-edit-btn {
  left: 10px !important;
}

#foodSection.label-station-page .food-card-favorite {
  right: 10px !important;
}

#foodSection.label-station-page .label-card-visual {
  margin: 12px auto 6px !important;
}

#foodSection.label-station-page .label-print-card .food-icon,
#foodSection.label-station-page .label-print-card .food-image,
#foodSection.label-station-page .food-icon,
#foodSection.label-station-page .food-image {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  border-radius: 13px !important;
  margin: 0 !important;
  font-size: 20px !important;
}

#foodSection.label-station-page .food-name {
  margin: 0 !important;
  color: #f8fafc !important;
  font-size: 17px !important;
  line-height: 21px !important;
  font-weight: 650 !important;
  text-align: center !important;
}

#foodSection.label-station-page .food-life,
#foodSection.label-station-page .food-print-count {
  color: #9ca3af !important;
  font-size: 12px !important;
  line-height: 15px !important;
  font-weight: 400 !important;
  text-align: center !important;
}

#foodSection.label-station-page .food-life {
  margin-top: 2px !important;
}

#foodSection.label-station-page .food-print-count {
  margin: 4px 0 auto !important;
}

#foodSection.label-station-page .label-allergen-chips {
  margin: 4px 0 0 !important;
  gap: 5px !important;
}

#foodSection.label-station-page .label-allergen-chips span {
  padding: 3px 7px !important;
  font-size: 11px !important;
  line-height: 13px !important;
}

#foodSection.label-station-page .label-card-actions {
  display: grid !important;
  grid-template-columns: 62px minmax(0, 1fr) !important;
  gap: 9px !important;
  margin-top: auto !important;
}

#foodSection.label-station-page .label-x2-btn,
#foodSection.label-station-page .label-card-print-btn {
  height: 40px !important;
  min-height: 40px !important;
  border-radius: 11px !important;
  font-size: 13px !important;
  line-height: 15px !important;
  font-weight: 650 !important;
  gap: 7px !important;
}

#foodSection.label-station-page .label-print-drawer {
  position: sticky !important;
  top: 12px !important;
  align-self: start !important;
  width: 330px !important;
  max-width: 330px !important;
  min-width: 0 !important;
  max-height: calc(100vh - 150px) !important;
  overflow-y: auto !important;
  padding: 16px !important;
  border-radius: 20px !important;
  box-sizing: border-box !important;
}

#foodSection.label-station-page .label-drawer-header {
  gap: 11px !important;
  margin-bottom: 14px !important;
}

#foodSection.label-station-page .label-drawer-header > span {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  border-radius: 14px !important;
  font-size: 17px !important;
}

#foodSection.label-station-page .label-drawer-header small {
  font-size: 10px !important;
  line-height: 12px !important;
  letter-spacing: 0.11em !important;
}

#foodSection.label-station-page .label-drawer-header h3 {
  font-size: 19px !important;
  line-height: 23px !important;
  font-weight: 650 !important;
}

#foodSection.label-station-page .label-drawer-empty {
  min-height: 250px !important;
  padding: 18px !important;
  border-radius: 18px !important;
  gap: 9px !important;
}

#foodSection.label-station-page .label-drawer-empty i {
  font-size: 34px !important;
}

#foodSection.label-station-page .label-drawer-empty strong {
  font-size: 16px !important;
  line-height: 20px !important;
  font-weight: 650 !important;
}

#foodSection.label-station-page .label-drawer-empty p {
  font-size: 12px !important;
  line-height: 17px !important;
}

#foodSection.label-station-page .label-preview-card {
  min-height: 118px !important;
  padding: 12px !important;
  border-radius: 14px !important;
  margin-bottom: 14px !important;
}

#foodSection.label-station-page .label-preview-card strong {
  font-size: 18px !important;
  line-height: 21px !important;
}

#foodSection.label-station-page .label-drawer-field {
  gap: 6px !important;
  margin-bottom: 10px !important;
  font-size: 12px !important;
  line-height: 14px !important;
  font-weight: 650 !important;
}

#foodSection.label-station-page .label-drawer-field .login-input,
#foodSection.label-station-page #drawerItemSelect,
#foodSection.label-station-page .label-qty-stepper {
  height: 40px !important;
  min-height: 40px !important;
  border-radius: 11px !important;
  font-size: 13px !important;
}

#foodSection.label-station-page .label-print-now,
#foodSection.label-station-page .label-add-queue {
  height: 42px !important;
  min-height: 42px !important;
  border-radius: 12px !important;
  margin-top: 8px !important;
  font-size: 13px !important;
  font-weight: 650 !important;
}

#foodSection.label-station-page .label-batch-footer[style*="display: flex"] {
  display: flex !important;
}

#foodSection.label-station-page .label-batch-footer {
  max-width: 720px !important;
  min-height: 54px !important;
  padding: 9px 12px !important;
  border-radius: 16px !important;
  margin-top: 12px !important;
}

@media (max-width: 1180px) {
  #foodSection.label-station-page .label-station-layout {
    grid-template-columns: 1fr !important;
  }

  #foodSection.label-station-page .label-print-drawer {
    position: relative !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
  }

  #foodSection.label-station-page .label-print-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
  }
}

@media (max-width: 780px) {
  #foodSection.label-station-page .label-station-toolbar,
  #foodSection.label-station-page .label-station-actions {
    align-items: stretch !important;
    flex-direction: column !important;
    width: 100% !important;
  }

  #foodSection.label-station-page .food-label-action {
    width: 100% !important;
  }

  #foodSection.label-station-page .label-print-grid {
    grid-template-columns: 1fr !important;
  }

  #foodSection.label-station-page .label-mini-card {
    flex-basis: 210px !important;
    width: 210px !important;
    min-width: 210px !important;
  }
}

/* Food Labels card sizing and overlap fix: true final scoped lock. */
#foodSection.label-station-page {
  max-width: 1320px !important;
  margin: 0 auto !important;
}

#foodSection.label-station-page,
#foodSection.label-station-page *:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands) {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

#foodSection.label-station-page .fa,
#foodSection.label-station-page .fas,
#foodSection.label-station-page .far,
#foodSection.label-station-page .fal,
#foodSection.label-station-page .fab,
#foodSection.label-station-page .fa-solid,
#foodSection.label-station-page .fa-regular,
#foodSection.label-station-page .fa-brands {
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
  font-style: normal !important;
  line-height: 1 !important;
}

#foodSection.label-station-page .fa,
#foodSection.label-station-page .fas,
#foodSection.label-station-page .fa-solid {
  font-weight: 900 !important;
}

#foodSection.label-station-page .label-station-toolbar {
  margin: 0 0 14px !important;
  padding: 11px 13px !important;
  border-radius: 16px !important;
  gap: 12px !important;
}

#foodSection.label-station-page .label-station-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 330px !important;
  gap: 18px !important;
  align-items: start !important;
}

#foodSection.label-station-page .label-station-main {
  min-width: 0 !important;
  overflow: hidden !important;
}

#foodSection.label-station-page .label-station-search-panel {
  padding: 14px !important;
  margin-bottom: 14px !important;
  border-radius: 18px !important;
}

#foodSection.label-station-page .food-search-wrap {
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 14px !important;
  border-radius: 14px !important;
  gap: 10px !important;
}

#foodSection.label-station-page #foodSearchInput {
  height: 50px !important;
  min-height: 50px !important;
  font-size: 14px !important;
  line-height: 18px !important;
}

#foodSection.label-station-page .label-station-section {
  padding: 14px !important;
  margin-bottom: 14px !important;
  border-radius: 18px !important;
  overflow: hidden !important;
}

#foodSection.label-station-page .label-station-section-head {
  margin-bottom: 10px !important;
}

#foodSection.label-station-page .label-station-section-head h3 {
  font-size: 17px !important;
  line-height: 21px !important;
  font-weight: 650 !important;
}

#foodSection.label-station-page .label-station-section-head p {
  font-size: 12px !important;
  line-height: 16px !important;
}

#foodSection.label-station-page .label-horizontal-row {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 12px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 0 0 2px !important;
  scroll-snap-type: x proximity !important;
}

#foodSection.label-station-page .label-mini-card {
  flex: 0 0 190px !important;
  width: 190px !important;
  min-width: 190px !important;
  min-height: 96px !important;
  height: 96px !important;
  padding: 12px !important;
  border-radius: 14px !important;
  grid-template-columns: 44px minmax(0, 1fr) 20px !important;
  gap: 10px !important;
  scroll-snap-align: start !important;
}

#foodSection.label-station-page .label-mini-card .food-icon,
#foodSection.label-station-page .label-mini-card .food-image,
#foodSection.label-station-page .food-icon.mini,
#foodSection.label-station-page .food-image.mini {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  border-radius: 12px !important;
  font-size: 18px !important;
}

#foodSection.label-station-page .label-mini-card strong {
  max-width: 100% !important;
  font-size: 13px !important;
  line-height: 16px !important;
  font-weight: 650 !important;
  white-space: normal !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

#foodSection.label-station-page .label-mini-card small {
  font-size: 11px !important;
  line-height: 13px !important;
  white-space: normal !important;
}

#foodSection.label-station-page .label-category-chips {
  gap: 8px !important;
  margin: 0 0 12px !important;
  padding: 1px 0 3px !important;
  overflow-x: auto !important;
}

#foodSection.label-station-page .category-tab {
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 13px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  line-height: 14px !important;
  font-weight: 500 !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

#foodSection.label-station-page .label-print-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 14px !important;
  margin: 0 !important;
  padding-bottom: 18px !important;
}

#foodSection.label-station-page .label-print-card {
  min-height: 205px !important;
  height: auto !important;
  padding: 14px !important;
  border-radius: 18px !important;
  gap: 8px !important;
  overflow: hidden !important;
}

#foodSection.label-station-page .label-card-visual {
  margin-top: 8px !important;
  margin-bottom: 6px !important;
}

#foodSection.label-station-page .label-print-card .food-icon,
#foodSection.label-station-page .label-print-card .food-image {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  border-radius: 13px !important;
  font-size: 20px !important;
}

#foodSection.label-station-page .food-name {
  font-size: 17px !important;
  line-height: 21px !important;
  font-weight: 650 !important;
  text-align: center !important;
  margin: 0 !important;
}

#foodSection.label-station-page .food-life,
#foodSection.label-station-page .food-print-count {
  font-size: 12px !important;
  line-height: 15px !important;
}

#foodSection.label-station-page .label-card-actions {
  gap: 10px !important;
  margin-top: auto !important;
}

#foodSection.label-station-page .label-x2-btn,
#foodSection.label-station-page .label-card-print-btn {
  height: 40px !important;
  min-height: 40px !important;
  border-radius: 11px !important;
  font-size: 13px !important;
  font-weight: 650 !important;
}

#foodSection.label-station-page .label-print-drawer {
  position: sticky !important;
  top: 12px !important;
  width: 330px !important;
  max-width: 330px !important;
  min-width: 0 !important;
  max-height: calc(100vh - 150px) !important;
  overflow-y: auto !important;
  padding: 16px !important;
  border-radius: 20px !important;
  box-sizing: border-box !important;
}

#foodSection.label-station-page .label-drawer-header {
  gap: 12px !important;
  margin-bottom: 14px !important;
}

#foodSection.label-station-page .label-drawer-header > span {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  border-radius: 14px !important;
  font-size: 18px !important;
}

#foodSection.label-station-page .label-drawer-header h3 {
  font-size: 20px !important;
  line-height: 24px !important;
}

#foodSection.label-station-page .label-drawer-empty {
  min-height: 260px !important;
  padding: 18px !important;
  border-radius: 18px !important;
}

#foodSection.label-station-page .label-drawer-empty i {
  font-size: 36px !important;
}

#foodSection.label-station-page .label-drawer-empty strong {
  font-size: 16px !important;
  line-height: 20px !important;
}

#foodSection.label-station-page .label-preview-card {
  padding: 12px !important;
  border-radius: 14px !important;
}

#foodSection.label-station-page .label-print-now,
#foodSection.label-station-page .label-add-queue {
  height: 42px !important;
  min-height: 42px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  font-weight: 650 !important;
}

#foodSection.label-station-page .label-batch-footer[style*="display: flex"] {
  display: flex !important;
}

@media (max-width: 1180px) {
  #foodSection.label-station-page .label-station-layout {
    grid-template-columns: 1fr !important;
  }

  #foodSection.label-station-page .label-print-drawer {
    position: relative !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
  }

  #foodSection.label-station-page .label-print-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
  }
}

@media (max-width: 780px) {
  #foodSection.label-station-page .label-station-toolbar,
  #foodSection.label-station-page .label-station-actions {
    align-items: stretch !important;
    flex-direction: column !important;
    width: 100% !important;
  }

  #foodSection.label-station-page .food-label-action {
    width: 100% !important;
  }

  #foodSection.label-station-page .label-print-grid {
    grid-template-columns: 1fr !important;
  }

  #foodSection.label-station-page .label-mini-card {
    flex-basis: 210px !important;
    width: 210px !important;
    min-width: 210px !important;
  }
}

/* Food Labels kitchen station redesign: final scoped winner. */
#foodSection.label-station-page,
#foodSection.label-station-page *:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands) {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

#foodSection.label-station-page {
  max-width: 1320px !important;
  margin: 0 auto !important;
  color: #f8fafc !important;
}

#foodSection.label-station-page .fa,
#foodSection.label-station-page .fas,
#foodSection.label-station-page .far,
#foodSection.label-station-page .fal,
#foodSection.label-station-page .fab,
#foodSection.label-station-page .fa-solid,
#foodSection.label-station-page .fa-regular,
#foodSection.label-station-page .fa-brands {
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
  font-style: normal !important;
  line-height: 1 !important;
}

#foodSection.label-station-page .fa,
#foodSection.label-station-page .fas,
#foodSection.label-station-page .fa-solid {
  font-weight: 900 !important;
}

#foodSection.label-station-page .far,
#foodSection.label-station-page .fa-regular {
  font-weight: 400 !important;
}

#foodSection.label-station-page .food-labels-metrics,
#foodSection.label-station-page .food-labels-dashboard-grid,
#foodSection.label-station-page .food-labels-toolbar,
#foodSection.label-station-page .food-labels-side-panel {
  display: none !important;
}

#foodSection.label-station-page .food-labels-hidden-metrics {
  display: none !important;
}

#foodSection.label-station-page .label-station-toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  margin: 0 0 18px !important;
  padding: 12px 14px !important;
  border-radius: 18px !important;
  background: rgba(13, 18, 26, 0.78) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 18px 60px rgba(0,0,0,0.18) !important;
}

#foodSection.label-station-page .label-station-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

#foodSection.label-station-page .food-printer-status {
  min-height: 38px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #fca5a5 !important;
  background: rgba(127,29,29,0.34) !important;
  border: 1px solid rgba(239,68,68,0.18) !important;
  font-size: 13px !important;
  line-height: 16px !important;
  font-weight: 600 !important;
}

#foodSection.label-station-page .food-printer-status span {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #ef4444 !important;
  box-shadow: 0 0 12px rgba(239,68,68,0.75) !important;
}

#foodSection.label-station-page .food-label-action {
  min-height: 42px !important;
  height: 42px !important;
  width: auto !important;
  padding: 0 16px !important;
  border-radius: 12px !important;
  gap: 8px !important;
  font-size: 14px !important;
  line-height: 16px !important;
  font-weight: 700 !important;
}

#foodSection.label-station-page .food-label-action.secondary {
  color: #f5b91f !important;
  background: rgba(245,185,31,0.08) !important;
  border: 1px solid rgba(245,185,31,0.58) !important;
}

#foodSection.label-station-page .label-station-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 360px !important;
  gap: 24px !important;
  align-items: start !important;
}

#foodSection.label-station-page .label-station-main {
  min-width: 0 !important;
  display: grid !important;
  gap: 18px !important;
}

#foodSection.label-station-page .label-station-search-panel,
#foodSection.label-station-page .label-station-section,
#foodSection.label-station-page .label-print-drawer {
  border-radius: 20px !important;
  background: linear-gradient(145deg, rgba(20,24,33,0.94), rgba(10,14,21,0.9)) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 24px 70px rgba(0,0,0,0.16) !important;
}

#foodSection.label-station-page .label-station-search-panel {
  padding: 14px !important;
}

#foodSection.label-station-page .food-search-wrap {
  height: 58px !important;
  min-height: 58px !important;
  padding: 0 16px !important;
  margin: 0 !important;
  border-radius: 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  background: rgba(6,10,16,0.92) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
}

#foodSection.label-station-page .food-search-wrap > i {
  color: rgba(255,255,255,0.68) !important;
  font-size: 17px !important;
}

#foodSection.label-station-page #foodSearchInput {
  flex: 1 !important;
  height: 56px !important;
  min-height: 56px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #f8fafc !important;
  box-shadow: none !important;
  font-size: 16px !important;
  line-height: 20px !important;
  font-weight: 500 !important;
}

#foodSection.label-station-page .food-search-wrap kbd {
  padding: 4px 8px !important;
  border-radius: 8px !important;
  color: rgba(255,255,255,0.58) !important;
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  font-size: 12px !important;
}

#foodSection.label-station-page .label-station-section {
  padding: 16px !important;
}

#foodSection.label-station-page .label-station-section-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}

#foodSection.label-station-page .label-station-section-head h3 {
  margin: 0 !important;
  color: #f8fafc !important;
  font-size: 18px !important;
  line-height: 22px !important;
  font-weight: 700 !important;
}

#foodSection.label-station-page .label-station-section-head h3 i {
  color: #f5b91f !important;
  margin-right: 8px !important;
}

#foodSection.label-station-page .label-station-section-head p {
  margin: 3px 0 0 !important;
  color: #9ca3af !important;
  font-size: 13px !important;
  line-height: 17px !important;
}

#foodSection.label-station-page .label-text-btn {
  border: 0 !important;
  background: transparent !important;
  color: #f5b91f !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

#foodSection.label-station-page .label-horizontal-row {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(132px, 1fr)) !important;
  gap: 12px !important;
}

#foodSection.label-station-page .label-mini-card {
  min-height: 86px !important;
  padding: 12px !important;
  border-radius: 16px !important;
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) 18px !important;
  align-items: center !important;
  gap: 10px !important;
  text-align: left !important;
  cursor: pointer !important;
  color: #f8fafc !important;
  background: rgba(255,255,255,0.045) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
}

#foodSection.label-station-page .label-mini-card:hover {
  border-color: rgba(245,185,31,0.42) !important;
  transform: translateY(-1px) !important;
}

#foodSection.label-station-page .label-mini-card strong {
  display: block !important;
  color: #fff !important;
  font-size: 13px !important;
  line-height: 16px !important;
  font-weight: 700 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#foodSection.label-station-page .label-mini-card small {
  display: block !important;
  color: #9ca3af !important;
  font-size: 12px !important;
  line-height: 15px !important;
  margin-top: 2px !important;
}

#foodSection.label-station-page .label-mini-card > i {
  color: #f5b91f !important;
  font-size: 13px !important;
}

#foodSection.label-station-page .label-empty-inline,
#foodSection.label-station-page .label-empty-grid {
  min-height: 86px !important;
  border-radius: 16px !important;
  display: grid !important;
  place-items: center !important;
  color: #9ca3af !important;
  background: rgba(255,255,255,0.035) !important;
  border: 1px dashed rgba(255,255,255,0.14) !important;
  font-size: 14px !important;
}

#foodSection.label-station-page .label-category-chips {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 2px 0 4px !important;
  overflow-x: auto !important;
}

#foodSection.label-station-page .category-tab {
  min-height: 40px !important;
  height: 40px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
  color: rgba(255,255,255,0.72) !important;
  background: rgba(255,255,255,0.055) !important;
  border: 1px solid rgba(255,255,255,0.09) !important;
  font-size: 14px !important;
  line-height: 16px !important;
  font-weight: 600 !important;
}

#foodSection.label-station-page .category-tab.active {
  color: #f5b91f !important;
  background: rgba(245,185,31,0.14) !important;
  border-color: rgba(245,185,31,0.68) !important;
}

#foodSection.label-station-page .label-print-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin: 0 0 86px !important;
}

#foodSection.label-station-page .label-print-card {
  min-height: 226px !important;
  padding: 16px !important;
  border-radius: 20px !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  text-align: left !important;
  cursor: pointer !important;
  color: #f8fafc !important;
  background: #141821 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-left: 4px solid var(--label-accent, #f5b91f) !important;
  box-shadow: none !important;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease !important;
}

#foodSection.label-station-page .label-print-card:hover,
#foodSection.label-station-page .label-print-card.active {
  transform: translateY(-2px) !important;
  border-color: rgba(245,185,31,0.65) !important;
  background: #171c26 !important;
}

#foodSection.label-station-page .food-card-edit-btn,
#foodSection.label-station-page .food-card-favorite {
  position: absolute !important;
  top: 12px !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: rgba(255,255,255,0.7) !important;
  background: rgba(255,255,255,0.055) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  font-size: 13px !important;
  cursor: pointer !important;
}

#foodSection.label-station-page .food-card-edit-btn {
  left: 12px !important;
}

#foodSection.label-station-page .food-card-favorite {
  right: 12px !important;
  color: #f5b91f !important;
}

#foodSection.label-station-page .label-card-visual {
  margin: 18px auto 12px !important;
}

#foodSection.label-station-page .food-icon,
#foodSection.label-station-page .food-image {
  width: 56px !important;
  height: 56px !important;
  border-radius: 16px !important;
  margin: 0 !important;
}

#foodSection.label-station-page .food-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(245,185,31,0.1) !important;
  border: 1px solid rgba(245,185,31,0.3) !important;
  font-size: 24px !important;
}

#foodSection.label-station-page .food-icon.mini,
#foodSection.label-station-page .food-image.mini {
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
}

#foodSection.label-station-page .food-name {
  margin: 0 !important;
  color: #f8fafc !important;
  font-size: 19px !important;
  line-height: 23px !important;
  font-weight: 700 !important;
  text-align: center !important;
}

#foodSection.label-station-page .food-life {
  margin-top: 6px !important;
  color: #cbd5e1 !important;
  font-size: 14px !important;
  line-height: 18px !important;
  font-weight: 500 !important;
  text-align: center !important;
}

#foodSection.label-station-page .label-allergen-chips {
  display: flex !important;
  justify-content: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  margin: 10px 0 0 !important;
}

#foodSection.label-station-page .label-allergen-chips span {
  padding: 4px 8px !important;
  border-radius: 999px !important;
  color: #fecaca !important;
  background: rgba(239,68,68,0.12) !important;
  border: 1px solid rgba(239,68,68,0.24) !important;
  font-size: 12px !important;
  line-height: 14px !important;
}

#foodSection.label-station-page .food-print-count {
  margin: 10px 0 auto !important;
  color: #9ca3af !important;
  font-size: 13px !important;
  line-height: 16px !important;
  text-align: center !important;
}

#foodSection.label-station-page .food-print-count i {
  color: #ef4444 !important;
  margin-right: 5px !important;
}

#foodSection.label-station-page .label-card-actions {
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) !important;
  gap: 10px !important;
  margin-top: 14px !important;
}

#foodSection.label-station-page .label-x2-btn,
#foodSection.label-station-page .label-card-print-btn {
  height: 44px !important;
  border-radius: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  line-height: 16px !important;
  font-weight: 700 !important;
}

#foodSection.label-station-page .label-x2-btn {
  color: #f8fafc !important;
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
}

#foodSection.label-station-page .label-card-print-btn {
  color: #080b12 !important;
  background: linear-gradient(135deg, #f5b91f, #f2bd24) !important;
  border: 0 !important;
}

#foodSection.label-station-page .label-print-drawer {
  position: sticky !important;
  top: 18px !important;
  width: 360px !important;
  max-width: 360px !important;
  padding: 18px !important;
  align-self: start !important;
}

#foodSection.label-station-page .label-drawer-header {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 16px !important;
}

#foodSection.label-station-page .label-drawer-header > span {
  width: 44px !important;
  height: 44px !important;
  border-radius: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #080b12 !important;
  background: #f5b91f !important;
  font-size: 17px !important;
}

#foodSection.label-station-page .label-drawer-header small {
  display: block !important;
  color: #f5b91f !important;
  font-size: 11px !important;
  line-height: 13px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  font-weight: 800 !important;
}

#foodSection.label-station-page .label-drawer-header h3 {
  margin: 3px 0 0 !important;
  color: #fff !important;
  font-size: 18px !important;
  line-height: 22px !important;
  font-weight: 700 !important;
}

#foodSection.label-station-page .label-drawer-empty {
  min-height: 260px !important;
  place-items: center !important;
  text-align: center !important;
  gap: 10px !important;
  padding: 24px !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,0.035) !important;
  border: 1px dashed rgba(255,255,255,0.14) !important;
}

#foodSection.label-station-page .label-drawer-empty i {
  color: #f5b91f !important;
  font-size: 32px !important;
}

#foodSection.label-station-page .label-drawer-empty strong {
  color: #fff !important;
  font-size: 16px !important;
  line-height: 20px !important;
}

#foodSection.label-station-page .label-drawer-empty p {
  margin: 0 !important;
  color: #9ca3af !important;
  font-size: 13px !important;
  line-height: 18px !important;
}

#foodSection.label-station-page .label-preview-card {
  min-height: 132px !important;
  padding: 14px !important;
  border-radius: 14px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  background: #fff !important;
  color: #000 !important;
  border: 1px solid rgba(0,0,0,0.1) !important;
  margin-bottom: 16px !important;
}

#foodSection.label-station-page .label-preview-card strong {
  font-size: 20px !important;
  line-height: 23px !important;
  font-weight: 800 !important;
  border-bottom: 2px solid #000 !important;
  padding-bottom: 4px !important;
}

#foodSection.label-station-page .label-preview-card span {
  font-size: 13px !important;
  line-height: 17px !important;
}

#foodSection.label-station-page .label-preview-card em {
  margin-top: auto !important;
  text-align: right !important;
  font-style: normal !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

#foodSection.label-station-page .label-drawer-field {
  display: grid !important;
  gap: 7px !important;
  margin-bottom: 12px !important;
  color: #cbd5e1 !important;
  font-size: 12px !important;
  line-height: 14px !important;
  font-weight: 700 !important;
}

#foodSection.label-station-page .label-drawer-field .login-input,
#foodSection.label-station-page #drawerItemSelect {
  height: 44px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  color: #fff !important;
  background: rgba(6,10,16,0.85) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
}

#foodSection.label-station-page .label-drawer-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
}

#foodSection.label-station-page .label-qty-stepper {
  height: 44px !important;
  border-radius: 12px !important;
  display: grid !important;
  grid-template-columns: 42px 1fr 42px !important;
  align-items: center !important;
  overflow: hidden !important;
  background: rgba(6,10,16,0.85) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
}

#foodSection.label-station-page .label-qty-stepper button {
  height: 44px !important;
  border: 0 !important;
  color: #fff !important;
  background: rgba(255,255,255,0.05) !important;
  font-size: 18px !important;
  cursor: pointer !important;
}

#foodSection.label-station-page .label-qty-stepper strong,
#foodSection.label-station-page #drawerShelfLife {
  color: #fff !important;
  text-align: center !important;
  font-size: 15px !important;
  line-height: 18px !important;
  font-weight: 700 !important;
}

#foodSection.label-station-page .label-toggle-row {
  min-height: 44px !important;
  border-radius: 12px !important;
  padding: 0 12px !important;
  margin: 2px 0 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  color: #f8fafc !important;
  background: rgba(255,255,255,0.045) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  font-size: 13px !important;
}

#foodSection.label-station-page .label-print-settings {
  margin: 0 0 12px !important;
  color: #9ca3af !important;
  font-size: 13px !important;
}

#foodSection.label-station-page .label-print-settings summary {
  cursor: pointer !important;
  color: #f5b91f !important;
  font-weight: 700 !important;
}

#foodSection.label-station-page .label-print-now,
#foodSection.label-station-page .label-add-queue {
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  border-radius: 14px !important;
  margin-top: 10px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

#foodSection.label-station-page .label-add-queue {
  color: #f5b91f !important;
  background: rgba(245,185,31,0.08) !important;
  border: 1px solid rgba(245,185,31,0.48) !important;
}

#foodSection.label-station-page .label-batch-footer {
  position: sticky !important;
  bottom: 14px !important;
  z-index: 80 !important;
  min-height: 58px !important;
  padding: 10px 14px !important;
  margin: -58px auto 0 !important;
  max-width: 760px !important;
  border-radius: 18px !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  background: rgba(10,14,21,0.94) !important;
  border: 1px solid rgba(245,185,31,0.22) !important;
  box-shadow: 0 18px 60px rgba(0,0,0,0.35) !important;
}

@media (max-width: 1180px) {
  #foodSection.label-station-page .label-station-layout {
    grid-template-columns: 1fr !important;
  }
  #foodSection.label-station-page .label-print-drawer {
    position: relative !important;
    top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  #foodSection.label-station-page .label-print-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 780px) {
  #foodSection.label-station-page .label-station-toolbar {
    align-items: flex-start !important;
    flex-direction: column !important;
  }
  #foodSection.label-station-page .label-station-actions,
  #foodSection.label-station-page .food-label-action {
    width: 100% !important;
  }
  #foodSection.label-station-page .label-horizontal-row,
  #foodSection.label-station-page .label-print-grid {
    grid-template-columns: 1fr !important;
  }
  #foodSection.label-station-page .label-batch-footer {
    align-items: stretch !important;
    flex-direction: column !important;
    margin-top: 0 !important;
  }
  #foodSection.label-station-page .label-batch-footer > div:last-child {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
}

/* Food Labels target recovery: compact dashboard language, final scoped winner. */
#foodSection.food-labels-page,
#foodSection.food-labels-page *:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands) {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

#foodSection.food-labels-page {
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding-top: 0 !important;
  color: #f8fafc !important;
}

#foodSection.food-labels-page .food-labels-toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 10px 12px !important;
  margin: 0 0 14px !important;
  border-radius: 16px !important;
  background: rgba(11, 16, 23, 0.58) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}

#foodSection.food-labels-page .food-labels-title-block {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
}

#foodSection.food-labels-page .food-labels-title-icon {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #d4af37 !important;
  background: rgba(212, 175, 55, 0.08) !important;
  border: 1px solid rgba(212, 175, 55, 0.62) !important;
  box-shadow: none !important;
  font-size: 14px !important;
}

#foodSection.food-labels-page .food-labels-title-block h3 {
  margin: 0 !important;
  color: #fff !important;
  font-size: 15px !important;
  line-height: 18px !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
}

#foodSection.food-labels-page .food-labels-title-block p {
  margin: 2px 0 0 !important;
  color: rgba(255,255,255,0.58) !important;
  font-size: 11px !important;
  line-height: 14px !important;
  font-weight: 400 !important;
}

#foodSection.food-labels-page .food-labels-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

#foodSection.food-labels-page .food-printer-status {
  min-height: 32px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  line-height: 14px !important;
  font-weight: 500 !important;
  background: rgba(239,68,68,0.12) !important;
  color: rgba(255,155,155,0.95) !important;
  border: 0 !important;
}

#foodSection.food-labels-page .food-label-action {
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  line-height: 14px !important;
  font-weight: 500 !important;
  gap: 7px !important;
}

#foodSection.food-labels-page .food-labels-metrics {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin: 0 0 14px !important;
}

#foodSection.food-labels-page .food-label-metric {
  min-height: 96px !important;
  height: 96px !important;
  padding: 16px !important;
  border-radius: 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  background: linear-gradient(145deg, rgba(20, 25, 34, 0.9), rgba(10, 15, 22, 0.86)) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: none !important;
}

#foodSection.food-labels-page .food-label-metric > span {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  font-size: 16px !important;
  box-shadow: none !important;
}

#foodSection.food-labels-page .food-label-metric-blue > span { background: linear-gradient(135deg, #2563eb, #60a5fa) !important; }
#foodSection.food-labels-page .food-label-metric-purple > span { background: linear-gradient(135deg, #6d28d9, #a78bfa) !important; }
#foodSection.food-labels-page .food-label-metric-green > span { background: linear-gradient(135deg, #16a34a, #86efac) !important; }
#foodSection.food-labels-page .food-label-metric-orange > span { background: linear-gradient(135deg, #d97706, #fbbf24) !important; }

#foodSection.food-labels-page .food-label-metric small {
  display: block !important;
  color: rgba(255,255,255,0.62) !important;
  font-size: 11px !important;
  line-height: 13px !important;
  font-weight: 400 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

#foodSection.food-labels-page .food-label-metric strong {
  display: block !important;
  margin: 2px 0 !important;
  color: #fff !important;
  font-size: 28px !important;
  line-height: 31px !important;
  font-weight: 500 !important;
  letter-spacing: -0.03em !important;
}

#foodSection.food-labels-page .food-label-metric em {
  display: block !important;
  color: rgba(255,255,255,0.58) !important;
  font-size: 12px !important;
  line-height: 15px !important;
  font-style: normal !important;
  font-weight: 400 !important;
}

#foodSection.food-labels-page .food-labels-dashboard-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 300px !important;
  gap: 14px !important;
  align-items: start !important;
}

#foodSection.food-labels-page .food-labels-main-panel,
#foodSection.food-labels-page .food-side-card {
  background: linear-gradient(145deg, rgba(18, 23, 31, 0.9), rgba(9, 13, 20, 0.88)) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}

#foodSection.food-labels-page .food-labels-main-panel {
  padding: 14px !important;
}

#foodSection.food-labels-page .food-search-wrap {
  height: 38px !important;
  min-height: 38px !important;
  margin: 0 0 12px !important;
  padding: 0 12px !important;
  border-radius: 12px !important;
  background: rgba(7, 11, 17, 0.82) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
}

#foodSection.food-labels-page .food-search-wrap i {
  color: rgba(255,255,255,0.52) !important;
  font-size: 13px !important;
}

#foodSection.food-labels-page #foodSearchInput {
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 0 0 8px !important;
  border: 0 !important;
  background: transparent !important;
  color: #fff !important;
  font-size: 12px !important;
  line-height: 15px !important;
  font-weight: 400 !important;
  box-shadow: none !important;
}

#foodSection.food-labels-page .category-tabs {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  margin: 0 0 12px !important;
  padding: 0 0 2px !important;
  overflow-x: auto !important;
}

#foodSection.food-labels-page .category-tab {
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  white-space: nowrap !important;
  font-size: 12px !important;
  line-height: 14px !important;
  font-weight: 400 !important;
  color: rgba(255,255,255,0.68) !important;
  background: rgba(255,255,255,0.045) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
}

#foodSection.food-labels-page .category-tab i {
  font-size: 12px !important;
}

#foodSection.food-labels-page .category-tab.active {
  color: #d4af37 !important;
  background: rgba(212,175,55,0.12) !important;
  border-color: rgba(212,175,55,0.78) !important;
}

#foodSection.food-labels-page .food-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(154px, 1fr)) !important;
  gap: 10px !important;
  margin: 0 !important;
}

#foodSection.food-labels-page .food-card {
  min-height: 120px !important;
  padding: 12px !important;
  border-radius: 14px !important;
  background: rgba(15,18,24,0.78) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-left-width: 3px !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

#foodSection.food-labels-page .food-icon {
  width: 36px !important;
  height: 36px !important;
  margin: 0 0 8px !important;
  border-radius: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(212,175,55,0.1) !important;
  border: 1px solid rgba(212,175,55,0.25) !important;
  font-size: 17px !important;
}

#foodSection.food-labels-page .food-image {
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  margin: 0 0 8px !important;
  object-fit: cover !important;
}

#foodSection.food-labels-page .food-name {
  margin: 0 0 4px !important;
  color: #fff !important;
  font-size: 13px !important;
  line-height: 16px !important;
  font-weight: 500 !important;
  text-align: center !important;
}

#foodSection.food-labels-page .food-location,
#foodSection.food-labels-page .food-life,
#foodSection.food-labels-page .food-print-count {
  color: rgba(255,255,255,0.58) !important;
  font-size: 11px !important;
  line-height: 14px !important;
  font-weight: 400 !important;
  text-align: center !important;
}

#foodSection.food-labels-page .food-card-edit-btn {
  top: 8px !important;
  left: 8px !important;
  width: 22px !important;
  height: 22px !important;
  color: rgba(255,255,255,0.62) !important;
  font-size: 12px !important;
}

#foodSection.food-labels-page .food-labels-side-panel {
  display: grid !important;
  gap: 12px !important;
}

#foodSection.food-labels-page .food-side-card {
  padding: 14px !important;
}

#foodSection.food-labels-page .food-side-card-title {
  color: #fff !important;
  font-size: 15px !important;
  line-height: 18px !important;
  font-weight: 500 !important;
  margin: 0 0 12px !important;
}

#foodSection.food-labels-page .food-side-card-title i {
  color: #d4af37 !important;
  font-size: 13px !important;
}

#foodSection.food-labels-page .food-side-action {
  min-height: 52px !important;
  padding: 10px !important;
  border-radius: 12px !important;
  gap: 10px !important;
  background: rgba(255,255,255,0.045) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
}

#foodSection.food-labels-page .food-side-action-icon {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border-radius: 50% !important;
  font-size: 13px !important;
}

#foodSection.food-labels-page .food-side-action strong {
  color: #fff !important;
  font-size: 12px !important;
  line-height: 15px !important;
  font-weight: 500 !important;
}

#foodSection.food-labels-page .food-side-action small,
#foodSection.food-labels-page .food-summary-row {
  color: rgba(255,255,255,0.58) !important;
  font-size: 11px !important;
  line-height: 14px !important;
  font-weight: 400 !important;
}

#foodSection.food-labels-page .food-summary-row {
  padding: 8px 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}

#foodSection.food-labels-page .food-summary-row strong {
  color: #fff !important;
  font-weight: 500 !important;
}

#foodSection.food-labels-page .fa,
#foodSection.food-labels-page .fas,
#foodSection.food-labels-page .far,
#foodSection.food-labels-page .fal,
#foodSection.food-labels-page .fab,
#foodSection.food-labels-page .fa-solid,
#foodSection.food-labels-page .fa-regular,
#foodSection.food-labels-page .fa-brands {
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
  font-style: normal !important;
  line-height: 1 !important;
}

#foodSection.food-labels-page .fa,
#foodSection.food-labels-page .fas,
#foodSection.food-labels-page .fa-solid {
  font-weight: 900 !important;
}

#foodSection.food-labels-page .far,
#foodSection.food-labels-page .fa-regular {
  font-weight: 400 !important;
}

#foodSection.food-labels-page .food-label-metric i,
#foodSection.food-labels-page .food-labels-title-icon i,
#foodSection.food-labels-page .food-label-action i,
#foodSection.food-labels-page .category-tab i,
#foodSection.food-labels-page .food-icon i,
#foodSection.food-labels-page .food-side-action-icon i,
#foodSection.food-labels-page .food-side-card-title i {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 1em !important;
  min-width: 1em !important;
  text-align: center !important;
}

@media (max-width: 1100px) {
  #foodSection.food-labels-page .food-labels-metrics,
  #foodSection.food-labels-page .food-labels-dashboard-grid {
    grid-template-columns: 1fr !important;
  }
  #foodSection.food-labels-page .food-labels-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  #foodSection.food-labels-page .food-labels-toolbar {
    align-items: flex-start !important;
    flex-direction: column !important;
  }
  #foodSection.food-labels-page .food-labels-actions {
    justify-content: flex-start !important;
    width: 100% !important;
  }
  #foodSection.food-labels-page .food-labels-metrics,
  #foodSection.food-labels-page .food-grid {
    grid-template-columns: 1fr !important;
  }
}

#printerStatus[style*="display: none"] {
  display: none !important;
}

#printerStatus[style*="display: flex"] {
  display: inline-flex !important;
}

/* Food Labels kitchen station true final override. Keep this block at EOF. */
#foodSection.label-station-page .food-labels-metrics,
#foodSection.label-station-page .food-labels-dashboard-grid,
#foodSection.label-station-page .food-labels-toolbar,
#foodSection.label-station-page .food-labels-side-panel,
#foodSection.label-station-page .food-labels-hidden-metrics {
  display: none !important;
}

#foodSection.label-station-page {
  max-width: 1320px !important;
  margin: 0 auto !important;
  color: #f8fafc !important;
}

#foodSection.label-station-page,
#foodSection.label-station-page *:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands) {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

#foodSection.label-station-page .fa,
#foodSection.label-station-page .fas,
#foodSection.label-station-page .far,
#foodSection.label-station-page .fal,
#foodSection.label-station-page .fab,
#foodSection.label-station-page .fa-solid,
#foodSection.label-station-page .fa-regular,
#foodSection.label-station-page .fa-brands {
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
  font-style: normal !important;
  line-height: 1 !important;
}

#foodSection.label-station-page .fa,
#foodSection.label-station-page .fas,
#foodSection.label-station-page .fa-solid {
  font-weight: 900 !important;
}

#foodSection.label-station-page .label-station-toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 0 0 12px !important;
  padding: 10px 12px !important;
  border-radius: 16px !important;
  background: rgba(13,18,26,0.78) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
}

#foodSection.label-station-page .label-station-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 330px !important;
  gap: 18px !important;
  align-items: start !important;
}

#foodSection.label-station-page .label-station-main {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  overflow: hidden !important;
}

#foodSection.label-station-page .label-station-search-panel,
#foodSection.label-station-page .label-station-section {
  padding: 13px !important;
  margin: 0 !important;
  border-radius: 18px !important;
}

#foodSection.label-station-page .food-search-wrap {
  height: 52px !important;
  min-height: 52px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: rgba(6,10,16,0.92) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
}

#foodSection.label-station-page #foodSearchInput {
  flex: 1 !important;
  height: 50px !important;
  min-height: 50px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #f8fafc !important;
  font-size: 14px !important;
}

#foodSection.label-station-page .label-horizontal-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 0 0 2px !important;
  margin: 0 !important;
}

#foodSection.label-station-page .label-mini-card {
  flex: 0 0 190px !important;
  width: 190px !important;
  min-width: 190px !important;
  height: 92px !important;
  min-height: 92px !important;
  padding: 10px !important;
  border-radius: 14px !important;
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) 18px !important;
  align-items: center !important;
  gap: 10px !important;
  text-align: left !important;
}

#foodSection.label-station-page .label-mini-card .food-icon,
#foodSection.label-station-page .label-mini-card .food-image,
#foodSection.label-station-page .food-icon.mini,
#foodSection.label-station-page .food-image.mini {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border-radius: 12px !important;
  font-size: 18px !important;
}

#foodSection.label-station-page .label-mini-card strong {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
  white-space: normal !important;
  font-size: 13px !important;
  line-height: 16px !important;
  font-weight: 700 !important;
}

#foodSection.label-station-page .label-mini-card small {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 11px !important;
  line-height: 14px !important;
}

#foodSection.label-station-page .label-category-chips {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 2px 0 4px !important;
  overflow-x: auto !important;
}

#foodSection.label-station-page .label-print-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 14px !important;
  margin: 0 !important;
  padding: 0 0 18px !important;
}

#foodSection.label-station-page .label-print-card {
  min-height: 205px !important;
  height: auto !important;
  padding: 14px !important;
  border-radius: 18px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  gap: 8px !important;
  text-align: center !important;
  background: #151820 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-left: 4px solid var(--label-accent, #f5b91f) !important;
}

#foodSection.label-station-page .food-name {
  font-size: 17px !important;
  line-height: 21px !important;
  font-weight: 650 !important;
  text-align: center !important;
}

#foodSection.label-station-page .label-print-drawer {
  position: sticky !important;
  top: 12px !important;
  width: 330px !important;
  max-width: 330px !important;
  max-height: calc(100vh - 150px) !important;
  overflow-y: auto !important;
  padding: 16px !important;
  border-radius: 18px !important;
}

#foodSection.label-station-page .label-batch-footer[style*="display: flex"] {
  display: flex !important;
}

@media (max-width: 1180px) {
  #foodSection.label-station-page .label-station-layout {
    grid-template-columns: 1fr !important;
  }
  #foodSection.label-station-page .label-print-drawer {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  #foodSection.label-station-page .label-print-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
  }
}

@media (max-width: 780px) {
  #foodSection.label-station-page .label-station-toolbar {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  #foodSection.label-station-page .label-print-grid {
    grid-template-columns: 1fr !important;
  }
  #foodSection.label-station-page .label-mini-card {
    flex-basis: 170px !important;
    width: 170px !important;
    min-width: 170px !important;
  }
}

/* Food Labels shortcut row calibration: keep Recent/Favorites compact. */
#foodSection.label-station-page .label-station-section {
  padding: 12px !important;
}

#foodSection.label-station-page .label-station-section-head {
  margin: 0 0 8px !important;
}

#foodSection.label-station-page .label-station-section-head h3 {
  font-size: 16px !important;
  line-height: 20px !important;
}

#foodSection.label-station-page .label-station-section-head p {
  font-size: 11px !important;
  line-height: 14px !important;
}

#foodSection.label-station-page .label-horizontal-row {
  gap: 8px !important;
}

#foodSection.label-station-page .label-mini-card {
  flex: 0 0 168px !important;
  width: 168px !important;
  min-width: 168px !important;
  height: 68px !important;
  min-height: 68px !important;
  padding: 8px 10px !important;
  border-radius: 12px !important;
  grid-template-columns: 38px minmax(0, 1fr) 16px !important;
  gap: 8px !important;
}

#foodSection.label-station-page .label-mini-card .food-icon,
#foodSection.label-station-page .label-mini-card .food-image,
#foodSection.label-station-page .food-icon.mini,
#foodSection.label-station-page .food-image.mini {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  border-radius: 10px !important;
  font-size: 15px !important;
}

#foodSection.label-station-page .label-mini-card strong {
  font-size: 12px !important;
  line-height: 14px !important;
  font-weight: 650 !important;
}

#foodSection.label-station-page .label-mini-card small {
  font-size: 10px !important;
  line-height: 12px !important;
}

#foodSection.label-station-page .label-mini-card > i {
  font-size: 12px !important;
}

@media (max-width: 780px) {
  #foodSection.label-station-page .label-mini-card {
    flex-basis: 158px !important;
    width: 158px !important;
    min-width: 158px !important;
  }
}

/* Final Shopping Mode execution-screen redesign. */
#shoppingListSection.shopping-execution-mode {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

#shoppingListSection.shopping-execution-mode .shopping-top-grid,
#shoppingListSection.shopping-execution-mode .shopping-control-panel,
#shoppingListSection.shopping-execution-mode .shopping-procurement-layout > .shopping-right-sidebar,
#shoppingListSection.shopping-execution-mode .shopping-category-manager,
#shoppingListSection.shopping-execution-mode .shopping-supplier-manager,
#shoppingListSection.shopping-execution-mode .shopping-bulk-bar,
#shoppingListSection.shopping-execution-mode .shopping-staff-focus-bar,
#shoppingListSection.shopping-execution-mode .procurement-toolbar {
  display: none !important;
}

#shoppingListSection.shopping-execution-mode .shopping-layout-grid,
#shoppingListSection.shopping-execution-mode .shopping-procurement-layout {
  display: block !important;
  margin-top: 0 !important;
}

#shoppingListSection.shopping-execution-mode .shopping-procurement-main {
  width: 100% !important;
  min-width: 0 !important;
  overflow: visible !important;
}

#shoppingModeHeader.shopping-mode-shell {
  display: none;
  width: 100%;
  margin: 0 0 18px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#shoppingListSection.shopping-execution-mode #shoppingModeHeader.shopping-mode-shell {
  display: block !important;
}

.shopping-mode-topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(360px, auto);
  gap: 18px;
  align-items: center;
}

.shopping-mode-exit-btn,
.shopping-mode-add-btn,
.shopping-mode-store-select,
.shopping-mode-control-row,
.shopping-mode-metrics,
.shopping-mode-route-group,
.shopping-mode-side-card,
.shopping-mode-selected-bar,
.shopping-mode-supplier-focus,
.shopping-mode-empty-target,
.shopping-mode-supplier-picker {
  background: rgba(10, 15, 22, 0.82) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18) !important;
}

.shopping-mode-exit-btn {
  min-width: 92px;
  min-height: 56px;
  border-radius: 12px;
  color: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  line-height: 16px;
  cursor: pointer;
}

.shopping-mode-exit-btn i {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d4af37;
}

.shopping-mode-title-block h2 {
  margin: 0;
  font-size: 30px;
  line-height: 36px;
  letter-spacing: -0.03em;
  font-weight: 760;
  color: #fff;
}

.shopping-mode-title-block p {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 450;
  color: rgba(255, 255, 255, 0.62);
}

.shopping-mode-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.shopping-mode-store-select {
  width: 340px;
  min-height: 62px;
  border-radius: 14px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 10px;
  align-items: center;
}

.shopping-mode-store-select span {
  grid-column: 2;
  display: block;
  font-size: 12px;
  line-height: 14px;
  color: rgba(255, 255, 255, 0.58);
}

.shopping-mode-store-select > span i {
  grid-column: 1;
}

.shopping-mode-store-select::before {
  content: "\f54f";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d4af37;
  background: rgba(212, 175, 55, 0.16);
}

.shopping-mode-store-select select,
.shopping-mode-sort-select {
  grid-column: 2;
  width: 100%;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font-size: 17px;
  line-height: 20px;
  font-weight: 650;
}

.shopping-mode-sort-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.shopping-mode-add-btn {
  height: 50px;
  min-width: 138px;
  border-radius: 12px;
  color: #f3c33f;
  border-color: rgba(212, 175, 55, 0.7) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}

.shopping-mode-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 18px;
  align-items: start;
}

.shopping-mode-main {
  min-width: 0;
}

.shopping-mode-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(135px, 1fr)) minmax(220px, 1.4fr);
  gap: 18px;
  align-items: center;
  min-height: 112px;
  padding: 20px 28px;
  border-radius: 14px;
  margin-bottom: 16px;
}

.shopping-mode-metric {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 14px;
  align-items: center;
}

.shopping-mode-metric > span,
.shopping-mode-summary-line > span {
  grid-row: 1 / span 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}

.shopping-mode-metric .blue,
.shopping-mode-summary-line .blue { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.shopping-mode-metric .gold,
.shopping-mode-summary-line .gold { background: linear-gradient(135deg, #d4af37, #9a7409); }
.shopping-mode-metric .green,
.shopping-mode-summary-line .green { background: linear-gradient(135deg, #22c55e, #15803d); }
.shopping-mode-summary-line .purple { background: linear-gradient(135deg, #7c3aed, #5b21b6); }
.shopping-mode-side-card .orange { background: linear-gradient(135deg, #f97316, #c2410c); }

.shopping-mode-metric small {
  font-size: 13px;
  line-height: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.68);
}

.shopping-mode-metric strong {
  font-size: 28px;
  line-height: 32px;
  font-weight: 720;
  color: #fff;
}

.shopping-mode-percent {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 24px;
}

.shopping-mode-percent strong {
  display: block;
  color: #fff;
  font-size: 18px;
  line-height: 22px;
  font-weight: 720;
  margin-bottom: 10px;
}

.shopping-mode-percent strong span,
.shopping-mode-percent small {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.66);
  font-weight: 500;
}

.shopping-mode-percent div {
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.shopping-mode-percent div span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f5c542, #d4af37);
}

.shopping-mode-control-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 215px 190px 96px;
  gap: 12px;
  align-items: center;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  margin-bottom: 14px;
}

.shopping-mode-search,
.shopping-mode-filter,
.shopping-mode-view-toggle {
  height: 50px;
  border-radius: 12px;
  background: rgba(10, 15, 22, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.58);
}

.shopping-mode-search input,
.shopping-mode-filter select {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
}

.shopping-mode-view-toggle {
  padding: 4px;
  gap: 4px;
}

.shopping-mode-view-toggle button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.shopping-mode-view-toggle button.active {
  color: #d4af37;
  background: rgba(212, 175, 55, 0.16);
}

.shopping-mode-supplier-focus {
  min-height: 78px;
  border-radius: 14px;
  border-left: 4px solid #d4af37 !important;
  padding: 20px 24px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 16px;
}

.shopping-mode-supplier-focus span,
.shopping-mode-supplier-focus em {
  color: rgba(255, 255, 255, 0.62);
  font-size: 16px;
  font-style: normal;
}

.shopping-mode-supplier-focus strong {
  color: #d4af37;
  font-size: 24px;
  line-height: 30px;
  font-weight: 650;
}

.shopping-mode-supplier-picker {
  border-radius: 16px;
  padding: 22px;
}

.shopping-mode-supplier-picker h4 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 22px;
}

.shopping-mode-supplier-grid,
.shopping-mode-supplier-picker-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shopping-mode-supplier-picker-head {
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px;
}

.shopping-mode-supplier-card {
  border: 1px solid rgba(212, 175, 55, 0.35) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
  border-radius: 13px !important;
  padding: 12px 14px !important;
  min-width: 210px;
  text-align: left;
  display: grid;
  gap: 3px;
  cursor: pointer;
}

.shopping-mode-supplier-card strong {
  font-size: 15px;
}

.shopping-mode-supplier-card span,
.shopping-mode-supplier-card em {
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-style: normal;
}

.shopping-mode-supplier-card.active {
  background: rgba(212, 175, 55, 0.18) !important;
  border-color: rgba(212, 175, 55, 0.85) !important;
}

.shopping-mode-route-group {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 10px;
}

.shopping-mode-route-group > header {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.shopping-mode-route-group h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 15px;
  line-height: 20px;
  letter-spacing: 0.02em;
}

.shopping-mode-route-group h3 i {
  color: #d4af37;
  margin-right: 10px;
}

.shopping-mode-route-group header span {
  padding: 5px 10px;
  border-radius: 999px;
  color: #60a5fa;
  background: rgba(37, 99, 235, 0.16);
  font-size: 12px;
}

.shopping-mode-route-group header button {
  color: rgba(255, 255, 255, 0.68);
  background: transparent;
  border: 0;
}

.shopping-mode-task-list {
  display: grid;
  gap: 0;
}

.shopping-mode-task-list.grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 10px;
  padding: 10px;
}

.shopping-mode-task {
  display: grid;
  grid-template-columns: 24px 88px minmax(0, 1fr) 342px;
  gap: 16px;
  align-items: center;
  min-height: 144px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
}

.shopping-mode-task.selected {
  background: rgba(212, 175, 55, 0.08);
}

.shopping-mode-task-select {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  color: rgba(255, 255, 255, 0.42);
}

.shopping-mode-task-select input {
  width: 18px;
  height: 18px;
}

.shopping-mode-task .shopping-item-thumb {
  width: 88px !important;
  height: 88px !important;
  min-width: 88px !important;
  border-radius: 12px !important;
  font-size: 28px !important;
}

.shopping-mode-task-info h4 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 20px;
  line-height: 25px;
  font-weight: 700;
}

.shopping-mode-task-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.shopping-mode-task-meta strong {
  color: #fff;
  font-size: 14px;
}

.shopping-mode-chip {
  padding: 4px 9px;
  border-radius: 999px;
  color: #60a5fa;
  background: rgba(37, 99, 235, 0.16);
  font-size: 12px;
}

.shopping-mode-task-info p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 18px;
}

.shopping-mode-task-info .shopping-mode-note {
  color: rgba(255, 255, 255, 0.5);
}

.shopping-mode-priority {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  font-style: normal;
  color: #facc15;
}

.shopping-mode-priority.high { color: #ef4444; }
.shopping-mode-priority.low { color: #22c55e; }

.shopping-mode-task-actions {
  display: grid;
  gap: 10px;
}

.shopping-mode-task-actions > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.shopping-mode-found-btn,
.shopping-mode-secondary-btn {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  min-height: 44px;
  cursor: pointer;
}

.shopping-mode-found-btn {
  min-height: 66px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  font-size: 15px;
  font-weight: 700;
}

.shopping-mode-found-btn small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.9;
}

.shopping-mode-secondary-btn {
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  font-size: 13px;
}

.shopping-mode-secondary-btn:hover {
  border-color: rgba(212, 175, 55, 0.45);
}

.shopping-mode-aside {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 18px;
}

.shopping-mode-side-card {
  border-radius: 14px;
  padding: 18px;
}

.shopping-mode-side-card h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
  line-height: 22px;
  font-weight: 700;
}

.shopping-mode-summary-line {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 0;
}

.shopping-mode-summary-line > span {
  width: 38px;
  height: 38px;
  font-size: 14px;
}

.shopping-mode-summary-line small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.shopping-mode-summary-line strong {
  display: block;
  color: #fff;
  font-size: 22px;
}

.shopping-mode-side-card button {
  width: 100%;
  min-height: 66px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  text-align: left;
  margin-bottom: 10px;
  padding: 10px;
  cursor: pointer;
}

.shopping-mode-side-card button span {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shopping-mode-side-card button strong {
  display: block;
  font-size: 14px;
}

.shopping-mode-side-card button small,
.shopping-mode-tips p {
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  line-height: 18px;
}

.shopping-mode-empty-target {
  min-height: 220px;
  border-radius: 14px;
  padding: 28px;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #fff;
}

.shopping-mode-selected-bar {
  position: sticky;
  bottom: 16px;
  z-index: 12;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 150px 150px minmax(220px, 1.2fr);
  gap: 12px;
  align-items: center;
  margin: 16px 18px 0;
  padding: 12px 16px;
  border-radius: 16px;
}

.shopping-mode-selected-bar > span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #d4af37;
  background: rgba(212, 175, 55, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}

.shopping-mode-selected-bar strong {
  color: #fff;
  font-size: 14px;
}

.shopping-mode-selected-bar button {
  height: 48px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
}

.shopping-mode-selected-bar button.primary {
  border: 0;
  background: linear-gradient(135deg, #f5c542, #c79a23);
  color: #111;
  font-weight: 700;
}

.shopping-mode-selected-bar button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.shopping-mode-completed-section {
  margin: 18px 0 0;
}

.shopping-mode-completed-section h4 {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

@media (max-width: 1280px) {
  .shopping-mode-topbar,
  .shopping-mode-workspace {
    grid-template-columns: 1fr;
  }
  .shopping-mode-top-actions {
    justify-content: stretch;
  }
  .shopping-mode-store-select {
    width: 100%;
  }
  .shopping-mode-aside {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .shopping-mode-control-row,
  .shopping-mode-metrics,
  .shopping-mode-selected-bar {
    grid-template-columns: 1fr;
  }
  .shopping-mode-task,
  .shopping-mode-task-list.grid {
    grid-template-columns: 1fr;
  }
  .shopping-mode-task .shopping-item-thumb {
    width: 74px !important;
    height: 74px !important;
    min-width: 74px !important;
  }
  .shopping-mode-task-actions > div,
  .shopping-mode-aside {
    grid-template-columns: 1fr;
  }
}

/* Final label print isolation: desktop and mobile both print only #printArea. */
@media print {
  @page {
    size: 90mm 29mm;
    margin: 0;
  }

  html.label-printing,
  html.label-printing body,
  body.label-printing {
    width: 90mm !important;
    height: 29mm !important;
    min-width: 90mm !important;
    min-height: 29mm !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
  }

  body.label-printing > *:not(#printArea) {
    display: none !important;
  }

  body.label-printing #printArea,
  body.label-printing #printArea.label-29x90 {
    display: block !important;
    visibility: visible !important;
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    right: auto !important;
    bottom: auto !important;
    width: 90mm !important;
    height: 29mm !important;
    min-width: 90mm !important;
    min-height: 29mm !important;
    max-width: 90mm !important;
    max-height: 29mm !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
    color: #000 !important;
    transform: none !important;
  }

  body.label-printing #printArea *,
  body.label-printing #printArea.label-29x90 * {
    visibility: visible !important;
  }

  body.label-printing #printArea .print-label-content,
  body.label-printing #printArea .print-label-content.label-29x90 {
    width: 90mm !important;
    height: 29mm !important;
    min-width: 90mm !important;
    min-height: 29mm !important;
    max-width: 90mm !important;
    max-height: 29mm !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    writing-mode: horizontal-tb !important;
    transform: none !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  body.label-printing #printArea .batch-page {
    page-break-after: always !important;
    break-after: page !important;
  }

  body.label-printing #printArea .batch-page:last-child {
    page-break-after: auto !important;
    break-after: auto !important;
  }
}

/* True final mobile/tablet override.
   Kept after every page-specific block so mobile rules win without touching print output. */
@media screen and (max-width: 1180px) {
  :root {
    --sidebar-width: 240px;
  }

  *, *::before, *::after {
    box-sizing: border-box;
  }

  img, svg, canvas, video {
    max-width: 100%;
    height: auto;
  }

  .main-content {
    padding: 32px 28px !important;
  }

  .dashboard-primary-metrics,
  .dashboard-secondary-metrics,
  .dashboard-overview-grid,
  .dashboard-action-grid,
  .dashboard-panels-grid,
  .dashboard-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #shoppingListSection .shopping-top-grid,
  #shoppingListSection .shopping-layout-grid,
  #shoppingListSection .shopping-procurement-layout,
  #foodSection.label-station-page .label-station-layout,
  .recipe-management-layout,
  .recipe-overview-grid,
  .recipe-detail-layout,
  .shopping-mode-topbar,
  .shopping-mode-workspace {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #shoppingListSection .shopping-right-sidebar,
  #shoppingListSection .shopping-top-sidebar,
  #foodSection.label-station-page .label-print-drawer {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
  }

  #shoppingListSection .shopping-top-grid .shopping-stats-row,
  #shoppingListSection .shopping-stats-row,
  #foodSection.label-station-page .label-print-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media screen and (max-width: 900px) {
  html {
    -webkit-text-size-adjust: 100%;
  }

  body {
    width: 100%;
    overflow-x: hidden !important;
  }

  .admin-panel {
    display: block !important;
    min-width: 0 !important;
  }

  .sidebar {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 12px 14px 8px !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    z-index: 2500 !important;
    overflow: visible !important;
  }

  .sidebar-header {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin: 0 0 8px !important;
  }

  .brand-name,
  .sidebar .brand-name {
    font-size: 1.35rem !important;
    line-height: 1.1 !important;
    margin: 0 !important;
  }

  .sidebar-brand-subtitle,
  .brand-subtitle {
    font-size: 0.68rem !important;
    line-height: 1.1 !important;
    margin: 2px 0 0 !important;
  }

  .sidebar nav,
  .sidebar-nav-main {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 0 0 4px !important;
    margin: 0 !important;
    -webkit-overflow-scrolling: touch;
  }

  .nav-link,
  .sidebar .nav-link,
  .logout-link {
    flex: 0 0 auto !important;
    min-height: 38px !important;
    height: 38px !important;
    padding: 8px 11px !important;
    margin: 0 !important;
    border-radius: 10px !important;
    font-size: 0.78rem !important;
    line-height: 1 !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    transform: none !important;
  }

  .nav-link i,
  .sidebar .nav-link i,
  .logout-link i {
    width: auto !important;
    min-width: 16px !important;
    margin-right: 7px !important;
    font-size: 0.9rem !important;
  }

  .nav-group-label,
  .sidebar-subnav,
  .sidebar-profile-wrap,
  .user-profile {
    display: none !important;
  }

  .main-content {
    width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    padding: 18px 14px 34px !important;
    overflow-x: hidden !important;
  }

  .page-section,
  .workspace-card,
  .dashboard-panel,
  .card,
  .modal-card,
  .settings-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  #globalHeader,
  .dashboard-global-header,
  .dashboard-header-actions,
  .dashboard-header-button-row,
  .top-actions,
  #shoppingListSection .shopping-page-header,
  #shoppingListSection .shopping-header-actions,
  #shoppingListSection .procurement-toolbar,
  #foodSection.label-station-page .label-station-toolbar {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .dashboard-title-block h1,
  #dynamicPageTitle h1,
  .page-title,
  .section-title {
    font-size: 26px !important;
    line-height: 1.12 !important;
  }

  input.login-input,
  select.login-input,
  textarea.login-input,
  .dashboard-search-wrap input,
  #foodSearchInput,
  #shoppingSearchInput {
    max-width: 100% !important;
    font-size: 16px !important;
  }

  .login-btn,
  .slim-btn,
  .secondary-btn,
  button:not(.icon-only):not(.dashboard-icon-button) {
    min-height: 44px;
  }

  .table-wrapper,
  .data-table-wrapper,
  .logs-table-wrapper,
  .shopping-table-wrap,
  .mock-shopping-table,
  .recipe-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  table,
  .data-table,
  .activity-table {
    min-width: 640px;
  }

  .modal-overlay,
  .shopping-form-overlay {
    align-items: stretch !important;
    justify-content: stretch !important;
    padding: 0 !important;
  }

  .modal-content,
  .modal-card,
  .manage-menu-modal,
  .category-modal {
    width: 100% !important;
    max-width: none !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    overflow-y: auto !important;
  }

  #shoppingFormCard.workspace-card.shopping-form-card.shopping-slide-panel,
  #shoppingFormCard.shopping-slide-panel {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    padding: 18px 16px 0 !important;
  }

  #shoppingListSection .shopping-filter-row,
  .shopping-form-grid,
  .shopping-form-row,
  .shopping-details-grid,
  .shopping-more-grid,
  .shopping-form-actions,
  .shopping-mode-topbar,
  .shopping-mode-workspace,
  .shopping-mode-metrics,
  .shopping-mode-control-row,
  .shopping-mode-task-card,
  .shopping-mode-selected-bar,
  .recipe-toolbar,
  .recipe-form-grid,
  .recipe-meta-grid,
  .recipe-overview-grid,
  .recipe-modal-grid,
  .settings-grid,
  .staff-grid,
  .billing-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #shoppingListSection .shopping-status-tabs,
  #foodSection.label-station-page .label-category-chips,
  #foodSection.label-station-page .label-horizontal-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  #foodSection.label-station-page .label-mini-card {
    flex: 0 0 176px !important;
    width: 176px !important;
    min-width: 176px !important;
    min-height: 86px !important;
  }

  #foodSection.label-station-page .label-station-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  #foodSection.label-station-page .label-batch-footer {
    position: sticky !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media screen and (max-width: 640px) {
  .main-content {
    padding: 14px 10px 28px !important;
  }

  .brand-name,
  .sidebar .brand-name {
    font-size: 1.18rem !important;
  }

  .sidebar-brand-subtitle,
  .brand-subtitle {
    display: none !important;
  }

  .nav-link,
  .sidebar .nav-link,
  .logout-link {
    height: 36px !important;
    min-height: 36px !important;
    padding: 7px 10px !important;
    font-size: 0.74rem !important;
  }

  .dashboard-title-block h1,
  #dynamicPageTitle h1,
  .page-title,
  .section-title {
    font-size: 23px !important;
  }

  .login-btn,
  .slim-btn,
  .secondary-btn,
  .dashboard-date-chip,
  .dashboard-icon-button,
  .dashboard-shop-switcher,
  .dashboard-header-button-row > *,
  .shopping-mode-store-select,
  .shopping-mode-add-btn,
  .shopping-mode-control-row > *,
  .shopping-mode-task-actions button {
    width: 100% !important;
  }

  #shoppingListSection .shopping-top-grid .shopping-stats-row,
  #shoppingListSection .shopping-stats-row,
  #shoppingListSection .shopping-filter-row,
  #foodSection.label-station-page .label-station-actions,
  #foodSection.label-station-page .label-print-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #foodSection.label-station-page .label-mini-card {
    flex-basis: 154px !important;
    width: 154px !important;
    min-width: 154px !important;
  }

  #foodSection.label-station-page .label-card-actions,
  .shopping-mode-side {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #foodSection.label-station-page .label-x2-btn,
  #foodSection.label-station-page .label-card-print-btn,
  #foodSection.label-station-page .label-print-now,
  #foodSection.label-station-page .label-add-queue {
    width: 100% !important;
    min-height: 46px !important;
  }

  table,
  .data-table,
  .activity-table {
    min-width: 560px;
  }
}

@media screen and (max-width: 420px) {
  .main-content {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  #foodSection.label-station-page .label-mini-card {
    flex-basis: 142px !important;
    width: 142px !important;
    min-width: 142px !important;
  }

  #foodSection.label-station-page .label-mini-card strong {
    font-size: 13px !important;
  }
}

/* =========================================================
   COST TRACKING MODULE STYLES
========================================================= */

.cost-tracking-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.cost-tracking-main {
  display: grid;
  gap: 20px;
}

.cost-tracking-sidebar {
  display: grid;
  gap: 20px;
}

.receipt-upload-zone {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s ease;
}

.receipt-upload-zone.drag-over {
  border-color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.05);
}

.extraction-preview {
  background: rgba(18, 20, 26, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
}

.cost-summary-vertical {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cost-summary-item-v {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 15px;
  transition: all 0.2s ease;
}

.cost-summary-item-v:hover {
  background: rgba(255, 255, 255, 0.04);
}

.cost-icon-square {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.cost-icon-purple { background: rgba(155, 89, 182, 0.15); color: #9b59b6; }
.cost-icon-blue { background: rgba(52, 152, 219, 0.15); color: #3498db; }
.cost-icon-green { background: rgba(46, 204, 113, 0.15); color: #2ecc71; }
.cost-icon-orange { background: rgba(230, 126, 34, 0.15); color: #e67e22; }
.cost-icon-red { background: rgba(231, 76, 60, 0.15); color: #e74c3c; }
.cost-icon-yellow { background: rgba(241, 196, 15, 0.15); color: #f1c40f; }

.modern-receipt-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.modern-receipt-card:last-child {
  border-bottom: none;
}

.receipt-thumbnail {
  width: 48px;
  height: 64px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.status-badge-green { background: rgba(46, 204, 113, 0.15); color: #2ecc71; padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 600; }
.status-badge-yellow { background: rgba(241, 196, 15, 0.15); color: #f1c40f; padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 600; }

.price-alerts-list {
  display: flex;
  flex-direction: column;
}

.price-alert-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: transparent;
  border-radius: 0;
}

.price-alert-item:last-child {
  border-bottom: none;
}

.price-alert-item .price-up {
  color: #ff6b6b;
  font-weight: bold;
  font-size: 0.9rem;
}

.price-alert-item .price-down {
  color: #2ecc71;
  font-weight: bold;
  font-size: 0.9rem;
}

.top-suppliers-list {
  display: flex;
  flex-direction: column;
}

.top-supplier-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-supplier-item:last-child {
  border-bottom: none;
}

.cost-table {
  min-width: 100%;
}

.modern-update-row {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.category-badge-dairy { background: rgba(52, 152, 219, 0.15); color: #3498db; padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; margin-left: 8px; }
.category-badge-produce { background: rgba(46, 204, 113, 0.15); color: #2ecc71; padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; margin-left: 8px; }
.category-badge-dry { background: rgba(155, 89, 182, 0.15); color: #9b59b6; padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; margin-left: 8px; }
.category-badge-default { background: rgba(149, 165, 166, 0.15); color: #95a5a6; padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; margin-left: 8px; }

.workflow-step-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 12px;
}

@media (max-width: 1024px) {
  .cost-tracking-layout {
    grid-template-columns: 1fr;
  }
  .cost-upload-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .cost-summary-grid {
    grid-template-columns: 1fr;
  }
  
  .cost-table th, .cost-table td {
    padding: 10px 8px;
    font-size: 0.85rem;
  }
}
