:root {
  --background: #f3f4f6;
  --card: #ffffff;
  --text: #2b2f33;
  --muted: #8f99a3;
  --accent: #667eea;
  --accent-dark: #5a67d8;
  --border: #e3e7eb;
  --error: #dc2626;
  --success: #10b981;
  --warning: #f59e0b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #eff6ff 0%, #f3f4f6 100%);
  color: var(--text);
}

body::after {
  content: "Copyright 2026 | Made by Atharv Ims";
  position: fixed;
  right: 14px;
  bottom: 10px;
  z-index: 999;
  padding: 6px 10px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.86);
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

/* Login Page */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.login-card {
  width: min(420px, 100%);
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

h1 {
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: clamp(1.7rem, 2vw, 2.4rem);
}

label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

input {
  width: 100%;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: #fff;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.95rem 1rem;
  border: none;
  border-radius: 0.75rem;
  color: #fff;
  background: var(--accent);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  gap: 0.5rem;
}

button:hover,
.button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

button:active,
.button:active {
  transform: translateY(0);
}

button svg,
.button svg {
  flex-shrink: 0;
}

.error {
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 0.75rem;
  background: #fee2e2;
  color: var(--error);
  border: 1px solid #fecaca;
}

.success {
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 0.75rem;
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #10b981;
}

.hint {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.6;
}

/* Role Login Pages */
.role-login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.18), transparent 0 38%),
    linear-gradient(135deg, #f8fafc 0%, #eef7f0 100%);
}

.client-login-page {
  background:
    radial-gradient(circle at top right, rgba(38, 188, 212, 0.16), transparent 0 38%),
    linear-gradient(135deg, #f8fafc 0%, #eef6ff 100%);
}

.role-login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.role-login-card {
  width: min(440px, 100%);
  padding: 28px;
  border: 1px solid rgba(204, 210, 215, 0.75);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.12);
}

.role-login-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #006943;
  font-weight: 800;
  text-decoration: none;
}

.role-login-heading {
  margin: 28px 0 20px;
}

.role-login-heading span {
  color: #16a34a;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.client-login-page .role-login-heading span {
  color: #0891b2;
}

.role-login-heading h1 {
  margin: 8px 0 8px;
  color: #1f2937;
}

.role-login-heading p {
  margin: 0;
  color: #64748b;
  line-height: 1.55;
}

.role-login-links {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}

.role-login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.role-login-divider::before,
.role-login-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e2e8f0;
}

.g_id_signin {
  min-height: 44px;
}

.role-google-disabled {
  margin-top: 16px;
  padding: 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.role-demo-credentials {
  display: grid;
  gap: 7px;
  margin-top: 18px;
  padding: 12px;
  border-left: 3px solid #16a34a;
  background: #f0fdf4;
  color: #166534;
  font-size: 0.84rem;
}

.client-login-page .role-demo-credentials {
  border-left-color: #0891b2;
  background: #ecfeff;
  color: #155e75;
}

.role-demo-credentials strong,
.role-demo-credentials span {
  display: block;
}

.role-demo-credentials code {
  display: inline-block;
  padding: 0.12rem 0.4rem;
  border-radius: 0.3rem;
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  font-size: 0.82rem;
}

.role-login-links a {
  color: #11798a;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

/* Landing Page */
.landing-page {
  min-height: 100vh;
  background: #fff;
  color: #292727;
}

.grocery-landing {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: 48px min(9vw, 118px) 52px;
  background:
    radial-gradient(circle at 83% 42%, rgba(255, 117, 74, 0.22), transparent 0 31%),
    linear-gradient(90deg, #fff 0%, #fff 58%, #fff4ee 100%);
}

.grocery-landing::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 38px;
  height: 3px;
  border-radius: 99px;
  background: #e83c3c;
  transform: translateX(-50%);
}

.grocery-nav {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
}

.grocery-logo,
.grocery-menu,
.grocery-nav-actions,
.store-badges,
.delivery-chip {
  display: flex;
  align-items: center;
}

.grocery-logo {
  gap: 8px;
  color: #006943;
  font-weight: 800;
  text-decoration: none;
}

.grocery-logo-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #f36b2f;
  border: 2px dashed #19a66b;
  border-radius: 50%;
}

.grocery-logo-mark svg {
  width: 22px;
  height: 22px;
}

.grocery-menu {
  justify-content: center;
  gap: clamp(22px, 4vw, 54px);
}

.grocery-menu a {
  color: #222;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}

.grocery-menu a.active {
  color: #ef463f;
}

.grocery-nav-actions {
  justify-content: flex-end;
  gap: 28px;
}

.cart-button {
  position: relative;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: #292727;
  transform: none;
}

.cart-button:hover {
  background: #f7f2ef;
  color: #292727;
}

.cart-button span {
  position: absolute;
  top: 2px;
  right: 2px;
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ff4f4f;
  color: #fff;
  font-size: 0.52rem;
  line-height: 1;
}

.landing-signup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 122px;
  min-height: 46px;
  border-radius: 999px;
  background: #2c2724;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.grocery-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(380px, 0.86fr) minmax(460px, 1.14fr);
  align-items: center;
  gap: 36px;
  min-height: calc(100vh - 122px);
}

.grocery-copy {
  padding-top: 42px;
}

.service-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin-bottom: 20px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff3f3;
  color: #d84b52;
  font-size: 0.86rem;
  font-weight: 700;
}

.service-pill svg {
  width: 18px;
  height: 18px;
  color: #f36b2f;
}

.grocery-copy h1 {
  margin: 0;
  max-width: 560px;
  color: #292727;
  font-size: clamp(3.25rem, 5vw, 5.6rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.grocery-copy h1 span {
  position: relative;
  color: #0b7c4d;
}

.grocery-copy h1 span::after {
  content: "";
  position: absolute;
  left: 7px;
  right: -14px;
  bottom: -12px;
  height: 22px;
  border-bottom: 3px solid #292727;
  border-radius: 0 0 50% 50%;
}

.grocery-copy p {
  max-width: 520px;
  margin: 28px 0 0;
  color: #302e2e;
  font-size: 1rem;
  line-height: 1.55;
}

.shop-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 176px;
  min-height: 56px;
  margin-top: 30px;
  border-radius: 10px;
  background: #ff6338;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 16px 26px rgba(255, 99, 56, 0.2);
}

.download-block {
  margin-top: min(12vh, 118px);
}

.download-block > span {
  display: block;
  margin-bottom: 12px;
  color: #292727;
  font-size: 0.98rem;
}

.store-badges {
  gap: 8px;
  flex-wrap: wrap;
}

.store-badges a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 146px;
  min-height: 44px;
  padding: 6px 11px;
  border-radius: 5px;
  background: #050505;
  color: #fff;
  text-decoration: none;
}

.store-badges strong {
  font-size: 1.32rem;
  line-height: 1;
}

.store-badges span {
  font-size: 0.54rem;
  line-height: 1.05;
}

.store-badges b {
  font-size: 0.97rem;
}

.grocery-visual {
  position: relative;
  min-height: 680px;
}

.grocery-visual img {
  position: absolute;
  right: -210px;
  top: 70px;
  width: min(850px, 71vw);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  clip-path: circle(49% at 50% 50%);
  filter: drop-shadow(0 30px 36px rgba(76, 37, 19, 0.18));
}

.quality-chip,
.delivery-chip {
  position: absolute;
  z-index: 2;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 36px rgba(40, 28, 24, 0.18);
  backdrop-filter: blur(4px);
}

.quality-chip {
  left: 74px;
  top: 288px;
  width: 98px;
  min-height: 124px;
  display: grid;
  place-items: center;
  padding: 12px 8px;
  text-align: center;
}

.quality-chip > span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #f2f2f2;
  color: #15945b;
}

.quality-chip > span svg {
  width: 34px;
  height: 34px;
}

.quality-chip strong {
  color: #111;
  font-size: 0.7rem;
}

.quality-chip strong::after {
  content: "✓";
  color: #11a05b;
  margin-left: 2px;
}

.quality-chip small,
.delivery-chip small {
  color: #a3a3a3;
  font-size: 0.58rem;
}

.delivery-chip {
  left: -30px;
  bottom: 72px;
  gap: 14px;
  min-width: 260px;
  min-height: 70px;
  padding: 14px 18px;
}

.delivery-chip > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #26a85e;
  color: #ff5d3b;
}

.delivery-chip svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  stroke: none;
}

.delivery-chip strong {
  display: block;
  margin-bottom: 4px;
  color: #191919;
  font-size: 0.86rem;
}

/* General Dashboard */
.dashboard-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.dashboard-card {
  width: min(900px, 100%);
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

/* Form Elements */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input[type="text"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
  min-height: 80px;
  resize: vertical;
}

.field-hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* Checkbox Group */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.checkbox-item label {
  margin: 0;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.role-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.role-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.role-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.role-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.25rem 0;
}

.role-slug {
  font-size: 0.8rem;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.2rem 0.5rem;
  border-radius: 0.4rem;
  display: inline-block;
}

.role-description {
  color: #475569;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  line-height: 1.5;
}

.role-meta {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: #64748b;
}

.role-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.role-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.level-0 { background: #78350f; color: #fef3c7; }
.level-1 { background: #1e40af; color: #bfdbfe; }
.level-2 { background: #065f46; color: #d1fae5; }
.level-3 { background: #7c2d12; color: #fed7aa; }

.info-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.info-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.info-card p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

/* Buttons */
.btn-group {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border: 2px solid var(--accent);
  border-radius: 0.75rem;
  color: var(--accent);
  background: transparent;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
}

.btn-danger {
  background: #e11d48;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: background 0.2s;
}

.btn-danger:hover {
  background: #be123c;
}

/* Navigation */
.nav-menu {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 0.5rem;
  color: white;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}

.nav-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

.nav-btn.primary {
  background: white;
  color: var(--accent);
}

.nav-btn.primary:hover {
  background: #f8fafc;
}

/* Search */
.search-box {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.search-box:focus {
  outline: none;
  border-color: var(--accent);
}

/* User List */
.user-list {
  max-height: 400px;
  overflow-y: auto;
  margin-top: 1rem;
}

.user-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  transition: all 0.2s;
}

.user-item:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.user-item.assigned {
  border-color: var(--success);
  background: #ecfdf5;
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.user-name {
  font-weight: 700;
  color: var(--text);
  font-size: 1rem;
}

.user-email {
  font-size: 0.85rem;
  color: #64748b;
}

.assigned-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.6rem;
  background: var(--success);
  color: white;
  border-radius: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.assigned-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.5rem;
  background: #dcfce7;
  color: #166534;
  border-radius: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: #f8fafc;
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 0.25rem;
}

/* System Status */
.system-status {
  background: #064e3b;
  color: #10b981;
  padding: 1rem;
  border-radius: 0.75rem;
  border-left: 4px solid var(--success);
}

.system-status h3 {
  margin: 0 0 0.5rem 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6ee7b7;
}

.system-status p {
  margin: 0;
}

/* Login Time */
.login-time {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 1rem;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: grid;
  place-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  transform: scale(0.9);
  transition: transform 0.2s;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-ghost {
  padding: 0.75rem 1.25rem;
  background: transparent;
  border: 2px solid #cbd5e1;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  flex: 1;
}

.btn-ghost:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

/* Notification */
.notification {
  position: fixed;
  top: 1rem;
  right: 1rem;
  padding: 1rem 1.5rem;
  background: var(--success);
  color: white;
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transform: translateX(200%);
  transition: transform 0.3s ease;
  z-index: 1000;
}

.notification.show {
  transform: translateX(0);
}

/* Responsive */
@media (max-width: 640px) {
  .grocery-landing {
    padding: 24px 18px 74px;
  }

  .grocery-nav,
  .grocery-hero {
    grid-template-columns: 1fr;
  }

  .grocery-menu {
    order: 3;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
  }

  .grocery-nav-actions {
    justify-content: flex-start;
  }

  .grocery-hero {
    gap: 12px;
    min-height: auto;
  }

  .grocery-copy {
    padding-top: 34px;
  }

  .grocery-copy h1 {
    font-size: clamp(2.8rem, 13vw, 4.1rem);
  }

  .download-block {
    margin-top: 42px;
  }

  .grocery-visual {
    min-height: 430px;
  }

  .grocery-visual img {
    right: -130px;
    top: 30px;
    width: 590px;
    max-width: none;
  }

  .quality-chip {
    left: 10px;
    top: 86px;
  }

  .delivery-chip {
    left: 0;
    bottom: 22px;
    min-width: min(260px, 92vw);
  }

  .page-header { flex-direction: column; gap: 1rem; align-items: stretch; }
  .card-grid { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; }
  .dashboard-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .nav-menu { justify-content: space-between; }
}

/* Print-friendly SVG icons */
svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Role based dashboard theme */
.system-theme {
  min-height: 100vh;
  background: #eeeeef;
  color: #3c4858;
}

.system-theme svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.system-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 3;
  width: 220px;
  color: #e6ecef;
  background:
    linear-gradient(rgba(25, 29, 32, 0.9), rgba(25, 29, 32, 0.92)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 8px);
  box-shadow: 5px 0 20px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  height: 60px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #26bcd4;
  color: #16333a;
  font-size: 0.65rem;
}

.side-nav {
  padding: 14px 10px;
  display: grid;
  gap: 4px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 12px;
  color: #d7dee2;
  text-decoration: none;
  border-radius: 2px;
  font-size: 0.82rem;
  transition: background 0.18s ease, color 0.18s ease;
}

.side-link:hover,
.side-link.active {
  background: #26bcd4;
  color: #fff;
}

.side-group {
  display: grid;
  gap: 2px;
}

.side-group summary {
  list-style: none;
  cursor: pointer;
}

.side-group summary::-webkit-details-marker {
  display: none;
}

.side-group .side-link {
  justify-content: flex-start;
}

.side-label {
  flex: 1;
}

.side-caret {
  margin-left: auto;
  color: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  transition: transform 0.18s ease;
}

.side-group[open] .side-caret {
  transform: rotate(180deg);
}

.side-subnav {
  display: grid;
  gap: 2px;
  margin: -2px 0 4px 30px;
  padding-left: 10px;
  border-left: 1px solid rgba(215, 222, 226, 0.18);
}

.side-sublink {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 2px;
  color: #aebbc2;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
}

.side-sublink:hover,
.side-sublink.active {
  background: rgba(38, 188, 212, 0.18);
  color: #fff;
}

.nav-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  font-size: 1rem;
}

.role-summary {
  margin: auto 12px 16px;
  padding: 12px;
  border-left: 3px solid #26bcd4;
  background: rgba(255, 255, 255, 0.08);
  color: #d7dee2;
  font-size: 0.72rem;
}

.role-summary span,
.role-summary strong {
  display: block;
}

.role-summary strong {
  margin-top: 4px;
  color: #fff;
  font-size: 0.86rem;
}

.theme-toggle {
  width: 100%;
  min-height: 34px;
  margin-top: 12px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  color: #e6ecef;
  font-size: 0.72rem;
  font-weight: 700;
  transform: none;
  text-transform: uppercase;
}

.theme-toggle:hover {
  background: #26bcd4;
  color: #fff;
}

.theme-toggle-icon {
  display: inline-grid;
  place-items: center;
}

.theme-dark .theme-toggle-sun,
.theme-light .theme-toggle-moon {
  display: none;
}

.system-main {
  min-height: 100vh;
  margin-left: 220px;
  padding: 18px 24px 32px;
  background: #eeeeef;
}

.topbar {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.topbar h1 {
  margin: 0;
  color: #555f68;
  font-size: 1.05rem;
  font-weight: 500;
}

.crumb {
  margin: 0 0 3px;
  color: #a0a7ad;
  font-size: 0.72rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.system-search {
  position: relative;
  width: 200px;
  margin: 0;
  font-weight: 400;
}

.system-search input {
  height: 34px;
  margin: 0;
  padding: 0 35px 0 12px;
  border: 0;
  border-bottom: 1px solid #d6d9dc;
  border-radius: 0;
  background: transparent;
  font-size: 0.78rem;
  box-shadow: none;
}

.system-search input:focus {
  border-color: #26bcd4;
  box-shadow: none;
}

.system-search svg {
  position: absolute;
  right: 8px;
  top: 8px;
  color: #9aa2a9;
}

.icon-button {
  position: relative;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: #606a73;
  box-shadow: none;
}

.icon-button:hover {
  background: #fff;
  color: #18a7be;
}

.icon-button.alert::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e53935;
}

.system-alert {
  margin-bottom: 28px;
  padding: 12px 16px;
  border-left: 4px solid #e53935;
  background: #fff;
  color: #b91c1c;
  box-shadow: 0 2px 6px rgba(32, 42, 54, 0.08);
}

.metric-grid,
.chart-grid,
.work-grid {
  display: grid;
  gap: 22px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 34px;
}

.metric-card,
.panel {
  position: relative;
  background: #fff;
  border: 1px solid rgba(204, 210, 215, 0.75);
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(32, 42, 54, 0.08);
}

.metric-card {
  min-height: 112px;
  padding: 18px 18px 12px;
  text-align: right;
}

.metric-icon {
  position: absolute;
  left: 18px;
  top: -18px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.55rem;
  border-radius: 2px;
  box-shadow: 0 12px 28px rgba(31, 43, 56, 0.12);
}

.metric-icon.orange,
.orange-header,
.orange-panel .chart-card {
  background: linear-gradient(135deg, #ffa726, #fb8c00);
}

.metric-icon.green,
.green-panel .chart-card {
  background: linear-gradient(135deg, #66bb6a, #43a047);
}

.metric-icon.red,
.red-panel .chart-card {
  background: linear-gradient(135deg, #ef5350, #e53935);
}

.metric-icon.blue {
  background: linear-gradient(135deg, #4dd0e1, #26bcd4);
}

.blue-header {
  background: linear-gradient(135deg, #4dd0e1, #26bcd4);
}

.green-panel-header {
  background: linear-gradient(135deg, #66bb6a, #43a047);
}

.red-header {
  background: linear-gradient(135deg, #ef5350, #c62828);
}

.location-header {
  background: linear-gradient(135deg, #78909c, #455a64);
}

.catalog-header {
  background: linear-gradient(135deg, #5c6bc0, #3949ab);
}

.commission-header {
  background: linear-gradient(135deg, #00897b, #00695c);
}

.metric-label {
  display: block;
  margin-bottom: 7px;
  color: #9aa2a9;
  font-size: 0.76rem;
}

.metric-card strong {
  display: block;
  margin-bottom: 18px;
  color: #4f5963;
  font-size: 1.35rem;
  font-weight: 400;
}

.metric-card p {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid #eceff1;
  color: #9aa2a9;
  font-size: 0.72rem;
  text-align: left;
}

.chart-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 30px;
}

.chart-panel {
  padding: 0 14px 14px;
}

.chart-card {
  height: 148px;
  margin-top: -18px;
  padding: 20px 14px 12px;
  border-radius: 2px;
  color: #fff;
  box-shadow: 0 12px 28px rgba(31, 43, 56, 0.12);
}

.chart-card svg {
  width: 100%;
  height: 100%;
}

.grid-line {
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1;
}

.line-chart {
  fill: none;
  stroke: #fff;
  stroke-width: 4;
}

.bar-chart {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  gap: 9px;
  padding: 12px 10px;
}

.bar-chart span {
  display: block;
  min-height: 16px;
  background: rgba(255, 255, 255, 0.92);
}

.chart-panel h2 {
  margin: 16px 0 5px;
  color: #4f5963;
  font-size: 0.98rem;
  font-weight: 400;
}

.chart-panel p,
.chart-panel span {
  color: #9aa2a9;
  font-size: 0.74rem;
}

.chart-panel p {
  margin: 0 0 12px;
}

.chart-panel span {
  display: block;
  padding-top: 10px;
  border-top: 1px solid #eceff1;
}

.work-grid {
  grid-template-columns: 1.05fr 1fr;
  align-items: start;
}

.panel-header {
  min-height: 72px;
  margin: -18px 14px 10px;
  padding: 15px 18px;
  color: #fff;
  border-radius: 2px;
  box-shadow: 0 12px 28px rgba(31, 43, 56, 0.12);
}

.purple-header {
  display: flex;
  align-items: center;
  gap: 22px;
  background: linear-gradient(135deg, #ab47bc, #8e24aa);
}

.panel-header h2 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 400;
}

.panel-header p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: wrap;
}

.tabs button {
  width: auto;
  height: 32px;
  padding: 0 10px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.68rem;
  text-transform: uppercase;
  transform: none;
}

.tabs button:hover {
  background: rgba(255, 255, 255, 0.22);
}

.task-list {
  list-style: none;
  margin: 0;
  padding: 0 16px 12px;
}

.task-list li {
  min-height: 54px;
  display: grid;
  grid-template-columns: 24px 1fr auto auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #edf0f2;
  color: #606a73;
  font-size: 0.78rem;
}

.task-list input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #9c27b0;
}

.task-list a {
  color: #9c27b0;
  text-decoration: none;
  font-size: 0.68rem;
}

.task-list a:last-child {
  color: #ef5350;
}

.employees-panel {
  padding-bottom: 14px;
}

.system-theme table {
  width: calc(100% - 28px);
  margin: 0 14px;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.system-theme th,
.system-theme td {
  padding: 12px 10px;
  border-bottom: 1px solid #edf0f2;
  text-align: left;
  color: #606a73;
}

.system-theme th {
  color: #ffa726;
  font-weight: 500;
}

.system-theme td:first-child,
.system-theme th:first-child {
  width: 42px;
  color: #9aa2a9;
}

@media (max-width: 1100px) {
  .metric-grid,
  .chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .system-sidebar {
    position: static;
    width: auto;
    min-height: auto;
  }

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

  .role-summary {
    margin-top: 4px;
  }

  .system-main {
    margin-left: 0;
    padding: 16px;
  }

  .topbar {
    height: auto;
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .system-search {
    flex: 1;
    width: auto;
  }

  .metric-grid,
  .chart-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .chart-grid,
  .work-grid {
    gap: 34px;
  }

  .purple-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .task-list li {
    grid-template-columns: 24px 1fr;
    row-gap: 6px;
    padding: 10px 0;
  }

  .task-list a {
    grid-column: 2;
  }

  .system-theme table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 460px) {
  .brand {
    justify-content: center;
  }

  .side-nav {
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    flex-wrap: wrap;
  }

  .system-search {
    flex-basis: 100%;
  }

  .metric-card {
    text-align: left;
    padding-top: 54px;
  }

  .metric-icon {
    top: -16px;
  }
}

.settings-shell {
  display: grid;
  gap: 28px;
}

.settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  background: #fff;
  border: 1px solid rgba(204, 210, 215, 0.75);
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(32, 42, 54, 0.08);
}

.settings-tab {
  width: auto;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 2px;
  background: transparent;
  color: #606a73;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  transform: none;
}

.settings-tab:hover,
.settings-tab.active {
  background: #26bcd4;
  color: #fff;
}

.settings-panel {
  display: none;
  padding: 0 18px 18px;
  background: #fff;
  border: 1px solid rgba(204, 210, 215, 0.75);
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(32, 42, 54, 0.08);
}

.settings-panel.active {
  display: block;
}

.settings-purple-header {
  display: block;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-top: 10px;
}

.settings-grid label {
  margin: 0;
  color: #60717d;
  font-size: 0.78rem;
  font-weight: 700;
}

.settings-grid input,
.settings-grid select,
.settings-grid textarea {
  width: 100%;
  min-height: 40px;
  margin: 7px 0 0;
  padding: 0.72rem 0.85rem;
  border: 1px solid #dfe4e8;
  border-radius: 2px;
  background: #fff;
  color: #3c4858;
  font-size: 0.9rem;
}

.settings-grid textarea {
  min-height: 96px;
  resize: vertical;
}

.settings-wide {
  grid-column: 1 / -1;
}

.settings-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
}

.settings-toggle input {
  width: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: #26bcd4;
}

.settings-save {
  width: auto;
  margin-top: 20px;
  padding: 0.75rem 1.15rem;
  border-radius: 2px;
  background: #26bcd4;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.settings-save:hover {
  background: #18a7be;
}

.location-manager {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 10px;
}

.location-card {
  padding: 16px;
  border: 1px solid #dfe4e8;
  border-radius: 2px;
  background: #fbfcfd;
}

.location-card h3 {
  margin: 0 0 14px;
  color: #4f5963;
  font-size: 0.98rem;
  font-weight: 500;
}

.location-card label {
  margin-bottom: 12px;
  color: #60717d;
  font-size: 0.78rem;
}

.location-card input,
.location-card select {
  width: 100%;
  min-height: 40px;
  margin: 7px 0 0;
  padding: 0.72rem 0.85rem;
  border: 1px solid #dfe4e8;
  border-radius: 2px;
  background: #fff;
}

.location-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e8edf1;
}

.location-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 7px 8px 7px 10px;
  border: 1px solid #dfeaf0;
  border-radius: 2px;
  background: #fff;
}

.location-row span {
  min-width: 0;
  color: #455a64;
  font-size: 0.72rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.location-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.location-actions button {
  width: auto;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 2px;
  background: #eef5f7;
  color: #11798a;
  font-size: 0.68rem;
  font-weight: 700;
  transform: none;
}

.location-actions button:last-child {
  background: #fee2e2;
  color: #b91c1c;
}

.location-actions button:hover {
  background: #26bcd4;
  color: #fff;
}

.location-actions button:last-child:hover {
  background: #ef5350;
  color: #fff;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
  padding-top: 10px;
}

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

.catalog-selects label {
  margin: 0;
  color: #60717d;
  font-size: 0.78rem;
}

.catalog-selects select {
  width: 100%;
  min-height: 40px;
  margin-top: 7px;
  border: 1px solid #dfe4e8;
  border-radius: 2px;
}

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

.catalog-bulk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.catalog-bulk-grid .catalog-bulk-upload-card {
  grid-template-columns: 1fr;
  margin-top: 0;
}
.catalog-bulk-upload-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 0.55fr) auto;
  gap: 14px;
  align-items: end;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid #dfe4e8;
  border-radius: 6px;
  background: #fbfcfd;
}

.catalog-bulk-upload-card h3 {
  margin: 0 0 5px;
  color: #4f5963;
  font-size: 1rem;
  font-weight: 700;
}

.catalog-bulk-upload-card p {
  margin: 0;
  color: #7a8a96;
  font-size: 0.76rem;
  line-height: 1.45;
}

.catalog-bulk-upload-card label {
  margin: 0;
  color: #60717d;
  font-size: 0.78rem;
  font-weight: 700;
}

.catalog-bulk-upload-card input {
  width: 100%;
  min-height: 40px;
  margin-top: 7px;
  padding: 0.62rem 0.75rem;
  border: 1px solid #dfe4e8;
  border-radius: 2px;
  background: #fff;
}

.catalog-bulk-upload-card .product-message {
  grid-column: 1 / -1;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 18px;
  margin-top: 20px;
}

.catalog-tree,
.catalog-table-card {
  border: 1px solid #dfe4e8;
  border-radius: 2px;
  background: #fbfcfd;
}

.catalog-tree {
  max-height: 560px;
  overflow: auto;
  padding: 14px;
  color: #455a64;
  font-size: 0.8rem;
}

.catalog-tree details {
  margin: 7px 0;
}

.catalog-tree summary {
  cursor: pointer;
  font-weight: 700;
}

.catalog-tree ul {
  margin: 8px 0 8px 18px;
  padding: 0;
}

.catalog-tree li {
  margin: 5px 0;
}

.catalog-error {
  padding: 12px;
  border-left: 4px solid #ef5350;
  background: #fee2e2;
  color: #991b1b;
  line-height: 1.5;
}

.catalog-table-card {
  overflow-x: auto;
}

.catalog-table-stack {
  display: grid;
  gap: 18px;
}

.catalog-inner-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid #dfe4e8;
  border-radius: 2px;
  background: #fff;
}

.catalog-inner-tab {
  width: auto;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 2px;
  background: #eef5f7;
  color: #455a64;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  transform: none;
}

.catalog-inner-tab:hover,
.catalog-inner-tab.active {
  background: #3949ab;
  color: #fff;
}

.catalog-table-panel {
  display: none;
}

.catalog-table-panel.active {
  display: block;
}

.catalog-table-card h3 {
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid #dfe4e8;
  color: #4f5963;
  font-size: 0.92rem;
  font-weight: 600;
}

.system-theme .catalog-table {
  width: 100%;
  min-width: 760px;
  margin: 0;
}

.commission-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(180px, 0.5fr) auto;
  gap: 14px;
  align-items: end;
  padding-top: 10px;
  margin-bottom: 18px;
}

.commission-toolbar label {
  margin: 0;
  color: #60717d;
  font-size: 0.78rem;
  font-weight: 700;
}

.commission-toolbar input,
.commission-toolbar select,
.commission-table input,
.commission-table select {
  width: 100%;
  min-height: 38px;
  margin-top: 7px;
  padding: 0.6rem 0.7rem;
  border: 1px solid #dfe4e8;
  border-radius: 2px;
  background: #fff;
  color: #3c4858;
}

.commission-toolbar .settings-save {
  margin-top: 0;
  white-space: nowrap;
}

.commission-table-card {
  background: #fff;
}

.system-theme .commission-table {
  min-width: 980px;
}

.commission-subtext {
  display: block;
  margin-top: 4px;
  color: #9aa2a9;
  font-size: 0.72rem;
}

.commission-toggle {
  min-height: 38px;
  margin: 0;
}

.commission-message {
  min-height: 22px;
  margin: 0;
  color: #60717d;
  font-size: 0.78rem;
}

.catalog-parent-field {
  display: none;
}

.catalog-logo-field {
  display: none;
}

.brand-logo-wrap,
.brand-logo,
.brand-logo-fallback {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 2px;
}

.brand-logo {
  object-fit: contain;
  border: 1px solid #dfe4e8;
  background: #fff;
}

.brand-logo-fallback {
  background: #e0f7fb;
  color: #11798a;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.brand-display {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 150px;
}

.brand-display span:last-child {
  overflow-wrap: anywhere;
}

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

  .location-manager {
    grid-template-columns: 1fr;
  }

  .catalog-toolbar,
  .catalog-selects,
  .catalog-bulk-grid,
  .catalog-bulk-upload-card,
  .catalog-layout,
  .commission-toolbar {
    grid-template-columns: 1fr;
  }

  .catalog-actions {
    justify-content: stretch;
  }

  .settings-tab,
  .settings-save {
    width: 100%;
  }
}

.user-management-shell {
  display: grid;
  gap: 18px;
}

.users-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid rgba(204, 210, 215, 0.75);
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(32, 42, 54, 0.08);
}

.users-toolbar h2 {
  margin: 0 0 5px;
  color: #4f5963;
  font-size: 1rem;
  font-weight: 500;
}

.users-toolbar p {
  margin: 0;
  color: #9aa2a9;
  font-size: 0.76rem;
}

.users-toolbar label {
  min-width: 180px;
  margin: 0;
  color: #60717d;
  font-size: 0.76rem;
}

.users-toolbar select {
  width: 100%;
  min-height: 38px;
  margin-top: 6px;
  border: 1px solid #dfe4e8;
  border-radius: 2px;
  background: #fff;
}

.users-table-card {
  overflow-x: auto;
  background: #fff;
  border: 1px solid rgba(204, 210, 215, 0.75);
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(32, 42, 54, 0.08);
}

.system-theme .users-table {
  width: 100%;
  min-width: 850px;
  margin: 0;
}

.user-role-pill,
.user-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
}

.user-role-pill {
  background: #e0f7fb;
  color: #11798a;
}

.user-status-pill.active {
  background: #dcfce7;
  color: #166534;
}

.user-status-pill.inactive {
  background: #fee2e2;
  color: #991b1b;
}

.user-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.user-actions button,
.users-pagination button,
.user-modal-header button {
  width: auto;
  min-height: 30px;
  padding: 0 9px;
  border-radius: 2px;
  background: #eef5f7;
  color: #11798a;
  font-size: 0.68rem;
  font-weight: 700;
  transform: none;
}

.user-actions button:nth-child(3) {
  background: #fee2e2;
  color: #b91c1c;
}

.user-actions button:hover,
.users-pagination button:hover,
.user-modal-header button:hover {
  background: #26bcd4;
  color: #fff;
}

.user-actions button:nth-child(3):hover {
  background: #ef5350;
  color: #fff;
}

.users-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  color: #60717d;
  font-size: 0.8rem;
}

.users-pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.user-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(21, 32, 43, 0.58);
}

.user-modal.active {
  display: flex;
}

.user-modal-card {
  width: min(620px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.user-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #edf0f2;
}

.user-modal-header h2 {
  margin: 0;
  color: #4f5963;
  font-size: 1rem;
  font-weight: 500;
}

.user-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 18px;
}

.user-modal-grid label {
  margin: 0;
  color: #60717d;
  font-size: 0.78rem;
}

.user-modal-grid input,
.user-modal-grid select,
.user-modal-grid textarea {
  width: 100%;
  min-height: 40px;
  margin: 7px 0 0;
  padding: 0.72rem 0.85rem;
  border: 1px solid #dfe4e8;
  border-radius: 2px;
  background: #fff;
  color: #3c4858;
}

.user-modal-grid textarea {
  min-height: 88px;
  resize: vertical;
}

.vendor-category-field {
  margin: 0;
  color: #60717d;
  font-size: 0.78rem;
  font-weight: 700;
}

.vendor-category-checklist {
  display: grid;
  gap: 6px;
  width: 100%;
  min-height: 40px;
  max-height: 128px;
  margin: 7px 0 0;
  padding: 8px;
  overflow-y: auto;
  border: 1px solid #dfe4e8;
  border-radius: 2px;
  background: #fff;
}

.vendor-category-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  margin: 0;
  padding: 5px 7px;
  border-radius: 2px;
  color: #3c4858;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.vendor-category-option:hover {
  background: #eef5f7;
}

.vendor-category-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: #26bcd4;
  cursor: pointer;
}

.vendor-category-option span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.product-management-shell {
  display: grid;
  gap: 18px;
}

.products-action-band {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.product-form,
.bulk-upload-panel,
.products-filter-bar {
  background: #fff;
  border: 1px solid rgba(204, 210, 215, 0.75);
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(32, 42, 54, 0.08);
}

.product-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
  border: 1px solid #7dd3fc;
  border-radius: 14px;
  box-shadow: 0 4px 20px -2px rgba(56, 189, 248, 0.18), 0 2px 6px rgba(14, 165, 233, 0.08);
}

.product-form-header {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid #bae6fd;
  margin-bottom: 2px;
}

.product-form h2 {
  margin: 0;
  color: #0369a1;
  font-size: 1.05rem;
  font-weight: 800;
  font-family: Inter, sans-serif;
}

.product-form p {
  margin: 2px 0 0;
  color: #0284c7;
  font-size: 0.75rem;
  line-height: 1.4;
}

.product-form label {
  margin: 0;
  color: #0369a1;
  font-size: 0.76rem;
  font-weight: 700;
}

.product-form input,
.product-form select,
.product-form textarea {
  width: 100%;
  min-height: 34px;
  margin: 4px 0 0;
  padding: 0.45rem 0.65rem;
  border: 1px solid #7dd3fc;
  border-radius: 8px;
  background: #ffffff;
  color: #0c4a6e;
  font-size: 0.85rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.product-form input:focus,
.product-form select:focus,
.product-form textarea:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
  outline: none;
}

.product-form textarea {
  min-height: 48px;
  resize: vertical;
}

.product-bulk-stack {
  display: grid;
  gap: 18px;
}

.bulk-upload-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.bulk-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bulk-actions .settings-save {
  margin-top: 0;
}

.product-secondary-button {
  width: auto;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 2px;
  background: #eef5f7;
  color: #11798a;
  font-size: 0.72rem;
  font-weight: 700;
  transform: none;
  text-transform: uppercase;
}

.product-secondary-button:hover {
  background: #26bcd4;
  color: #fff;
}

.products-filter-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 14px;
  align-items: end;
  padding: 16px 18px;
}

.products-table-card {
  min-height: 240px;
}

.system-theme .products-table {
  min-width: 1040px;
}

.product-description-cell {
  max-width: 240px;
  white-space: normal;
  line-height: 1.45;
}

.inline-price-input {
  width: 110px;
  min-height: 32px;
  margin: 0;
  padding: 0.42rem 0.55rem;
  border: 1px solid #dfe4e8;
  border-radius: 2px;
  font-size: 0.8rem;
}

.product-message {
  min-height: 22px;
  color: #60717d;
  font-size: 0.78rem;
  line-height: 1.5;
}

.upload-result-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dfe4e8;
  border-left: 4px solid #26bcd4;
  border-radius: 6px;
  background: #f8fafc;
  color: #475569;
}

.upload-result-card.error {
  border-left-color: #dc2626;
  background: #fff7f7;
}

.upload-result-card.success {
  border-left-color: #16a34a;
  background: #f0fdf4;
}

.upload-result-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.upload-result-header span {
  display: block;
  margin-bottom: 3px;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.upload-result-header strong {
  display: block;
  color: #263238;
  font-size: 0.96rem;
}

.upload-result-card p {
  margin: 0;
  color: #475569;
  font-size: 0.8rem;
}

.upload-result-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
}

.upload-result-stat {
  padding: 9px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
}

.upload-result-stat span {
  display: block;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.upload-result-stat strong {
  display: block;
  margin-top: 3px;
  color: #263238;
  font-size: 1rem;
}

.upload-result-stat.success strong { color: #15803d; }
.upload-result-stat.error strong { color: #b91c1c; }
.upload-result-stat.warning strong { color: #b45309; }

.upload-error-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #7f1d1d;
  font-size: 0.76rem;
}

.upload-error-list.compact {
  margin-top: 6px;
}

.image-upload-group {
  display: grid;
  gap: 4px;
}

.image-upload-group strong {
  color: #334155;
}

.bulk-error-tools {
  display: flex;
  justify-content: flex-end;
}

.bulk-error-copy {
  min-height: 32px;
  padding: 0 11px;
  border: 0;
  border-radius: 4px;
  background: #263238;
  color: #fff;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.bulk-error-textarea {
  width: 100%;
  min-height: 130px;
  margin: 0;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  font-family: Consolas, Monaco, monospace;
  font-size: 0.76rem;
  line-height: 1.45;
  resize: vertical;
}

.confirm-card {
  width: min(360px, 100%);
  padding: 22px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.confirm-card h2 {
  margin: 0 0 18px;
  color: #4f5963;
  font-size: 1.05rem;
  font-weight: 500;
}

.confirm-actions {
  display: flex;
  gap: 10px;
}

.confirm-actions button {
  min-height: 36px;
  border-radius: 2px;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.confirm-actions button:last-child {
  background: #eef5f7;
  color: #11798a;
}

.vendor-management-shell {
  display: grid;
  gap: 18px;
}

.vendor-toolbar-actions {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.vendor-toolbar-actions .settings-save {
  margin-top: 0;
  white-space: nowrap;
}

.vendor-toolbar-actions label {
  min-width: 140px;
}

.vendor-toolbar-actions .product-secondary-button {
  min-height: 38px;
}

.vendor-subtext {
  display: block;
  margin-top: 4px;
  color: #9aa2a9;
  font-size: 0.72rem;
}

.vendor-services-cell {
  max-width: 210px;
  white-space: normal;
  line-height: 1.45;
}

.system-theme .vendors-table {
  min-width: 1040px;
}

.system-theme .clients-table {
  min-width: 980px;
}

.wallet-shell {
  display: grid;
  gap: 18px;
}

.wallet-summary-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 190px 190px;
  gap: 18px;
  align-items: end;
}

.wallet-summary-grid label {
  margin: 0;
  color: #60717d;
  font-size: 0.76rem;
}

.wallet-summary-grid select {
  width: 100%;
  min-height: 38px;
  margin-top: 6px;
  border: 1px solid #dfe4e8;
  border-radius: 2px;
  background: #fff;
}

.wallet-balance-card {
  min-height: 104px;
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(204, 210, 215, 0.75);
  border-left: 4px solid #26bcd4;
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(32, 42, 54, 0.08);
}

.wallet-balance-card span,
.wallet-balance-card p,
.wallet-muted,
.wallet-transaction-row span {
  color: #9aa2a9;
  font-size: 0.74rem;
}

.wallet-balance-card strong {
  display: block;
  margin: 7px 0 10px;
  color: #4f5963;
  font-size: 1.55rem;
  font-weight: 500;
}

.wallet-balance-card p {
  margin: 0;
}

.system-theme .wallets-table {
  width: 100%;
  min-width: 920px;
  margin: 0;
}

.wallet-muted {
  display: block;
  margin-top: 4px;
}

.wallet-status,
.wallet-transaction-type {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
}

.wallet-status.active,
.wallet-transaction-type.credit,
.wallet-transaction-row .credit {
  background: #dcfce7;
  color: #166534;
}

.wallet-status.blocked,
.wallet-transaction-type.debit,
.wallet-transaction-row .debit {
  background: #fee2e2;
  color: #991b1b;
}

.wallet-transactions-card {
  width: min(760px, 100%);
}

.wallet-transaction-list {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.wallet-transaction-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px;
  border: 1px solid #dfe4e8;
  border-radius: 2px;
  background: #fbfcfd;
}

.wallet-transaction-row div {
  display: grid;
  gap: 4px;
}

.wallet-transaction-row div:last-child {
  text-align: right;
}

.wallet-empty {
  margin: 0;
  color: #9aa2a9;
}

.system-theme.theme-dark {
  background: #151a21;
  color: #d7dee6;
}

.theme-dark::after {
  background: rgba(31, 39, 50, 0.9);
  border-color: #334155;
  color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.theme-dark .system-sidebar {
  background:
    linear-gradient(rgba(11, 16, 22, 0.94), rgba(11, 16, 22, 0.96)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 8px);
}

.theme-dark .system-main {
  background: #151a21;
}

.theme-dark .topbar h1,
.theme-dark .panel-header h2,
.theme-dark .users-toolbar h2,
.theme-dark .product-form h2,
.theme-dark .bulk-upload-panel h2,
.theme-dark .location-card h3,
.theme-dark .catalog-table-card h3,
.theme-dark .user-modal-header h2,
.theme-dark .confirm-card h2,
.theme-dark .metric-card strong,
.theme-dark .chart-panel h2,
.theme-dark .info-card p {
  color: #e7edf4;
}

.theme-dark .crumb,
.theme-dark .metric-label,
.theme-dark .metric-card p,
.theme-dark .chart-panel p,
.theme-dark .chart-panel span,
.theme-dark .users-toolbar p,
.theme-dark .product-form p,
.theme-dark .bulk-upload-panel p,
.theme-dark .commission-message,
.theme-dark .wallet-muted,
.theme-dark .wallet-balance-card span,
.theme-dark .wallet-balance-card p,
.theme-dark .vendor-subtext,
.theme-dark .field-hint {
  color: #94a3b8;
}

.theme-dark .metric-card,
.theme-dark .panel,
.theme-dark .settings-tabs,
.theme-dark .settings-panel,
.theme-dark .users-toolbar,
.theme-dark .users-table-card,
.theme-dark .user-modal-card,
.theme-dark .product-form,
.theme-dark .bulk-upload-panel,
.theme-dark .catalog-bulk-upload-card,
.theme-dark .products-filter-bar,
.theme-dark .location-card,
.theme-dark .location-row,
.theme-dark .catalog-tree,
.theme-dark .catalog-table-card,
.theme-dark .catalog-inner-tabs,
.theme-dark .wallet-balance-card,
.theme-dark .confirm-card,
.theme-dark .info-card {
  background: #1f2732;
  border-color: #334155;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.theme-dark .system-theme table,
.theme-dark table {
  color: #d7dee6;
}

.theme-dark .system-theme th,
.theme-dark .system-theme td,
.theme-dark th,
.theme-dark td {
  border-bottom-color: #334155;
  color: #cbd5e1;
}

.theme-dark input,
.theme-dark select,
.theme-dark textarea,
.theme-dark .inline-price-input,
.theme-dark .search-box,
.theme-dark .vendor-category-checklist {
  background: #141a22;
  border-color: #334155;
  color: #e7edf4;
}

.theme-dark .vendor-category-field,
.theme-dark .vendor-category-option {
  color: #cbd5e1;
}

.theme-dark .vendor-category-option:hover {
  background: #263241;
}

.theme-dark input::placeholder,
.theme-dark textarea::placeholder {
  color: #64748b;
}

.theme-dark .system-search input {
  border-bottom-color: #475569;
  background: transparent;
  color: #e7edf4;
}

.theme-dark .icon-button {
  color: #cbd5e1;
}

.theme-dark .icon-button:hover,
.theme-dark .product-secondary-button,
.theme-dark .user-actions button,
.theme-dark .users-pagination button,
.theme-dark .user-modal-header button,
.theme-dark .location-actions button,
.theme-dark .catalog-inner-tab {
  background: #263241;
  color: #8be3ef;
}

.theme-dark .icon-button:hover,
.theme-dark .product-secondary-button:hover,
.theme-dark .user-actions button:hover,
.theme-dark .users-pagination button:hover,
.theme-dark .user-modal-header button:hover,
.theme-dark .location-actions button:hover {
  background: #26bcd4;
  color: #fff;
}

.theme-dark .system-alert,
.theme-dark .catalog-error {
  background: #3b1f24;
  color: #fecaca;
  border-color: #ef5350;
}

.theme-dark .upload-result-card {
  background: #172033;
  border-color: #334155;
  color: #cbd5e1;
}

.theme-dark .upload-result-card.error {
  background: #341b1b;
  border-left-color: #ef4444;
}

.theme-dark .upload-result-card.success {
  background: #16301f;
  border-left-color: #22c55e;
}

.theme-dark .upload-result-header strong,
.theme-dark .upload-result-stat strong,
.theme-dark .image-upload-group strong {
  color: #f8fafc;
}

.theme-dark .upload-result-card p,
.theme-dark .upload-result-header span,
.theme-dark .upload-result-stat span {
  color: #94a3b8;
}

.theme-dark .upload-result-stat,
.theme-dark .bulk-error-textarea {
  background: #111827;
  border-color: #334155;
  color: #e5e7eb;
}

.theme-dark .upload-error-list {
  color: #fecaca;
}

.theme-dark .bulk-error-copy {
  background: #e5e7eb;
  color: #111827;
}

.theme-dark .user-role-pill,
.theme-dark .catalog-inner-tab.active {
  background: #164e63;
  color: #cffafe;
}

.theme-dark .user-status-pill.active,
.theme-dark .wallet-status.active,
.theme-dark .wallet-transaction-type.credit,
.theme-dark .wallet-transaction-row .credit {
  background: #14532d;
  color: #bbf7d0;
}

.theme-dark .user-status-pill.inactive,
.theme-dark .wallet-status.blocked,
.theme-dark .wallet-transaction-type.debit,
.theme-dark .wallet-transaction-row .debit {
  background: #7f1d1d;
  color: #fecaca;
}

.theme-dark .wallet-transaction-row {
  background: #141a22;
  border-color: #334155;
}

@media (max-width: 760px) {
  .users-toolbar,
  .user-modal-grid,
  .products-action-band,
  .product-form,
  .catalog-bulk-grid,
  .catalog-bulk-upload-card,
  .products-filter-bar,
  .wallet-summary-grid {
    grid-template-columns: 1fr;
  }

  .users-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .users-pagination {
    justify-content: center;
  }

  .product-form-header,
  .bulk-actions,
  .confirm-actions {
    flex-direction: column;
  }

  .product-secondary-button,
  .bulk-actions .settings-save {
    width: 100%;
  }

  .vendor-toolbar-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Reference-style grocery landing page */
body.landing-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background: #c9d6cb;
  color: #fff;
}

body.landing-page::after {
  display: none;
}

.landing-page .grocery-landing {
  width: min(1080px, 100%);
  min-height: min(760px, calc(100vh - 64px));
  position: relative;
  overflow: hidden;
  padding: 28px 48px 42px;
  background:
    radial-gradient(circle at 72% 13%, rgba(255, 255, 255, 0.08), transparent 0 20%),
    linear-gradient(180deg, #294330 0%, #79ab82 100%);
  box-shadow: 0 28px 80px rgba(26, 51, 34, 0.28);
}

.landing-page .grocery-landing::before {
  display: none;
}

.landing-page .grocery-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 36px;
  align-items: center;
}

.landing-page .grocery-logo,
.landing-page .grocery-menu,
.landing-page .grocery-nav-actions,
.landing-page .store-badges {
  display: flex;
  align-items: center;
}

.landing-page .grocery-logo {
  gap: 10px;
  color: #fff;
  font-weight: 900;
}

.landing-page .grocery-logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: #172c20;
}

.landing-page .grocery-logo svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-page .grocery-menu {
  justify-content: center;
  gap: 34px;
}

.landing-page .grocery-menu a {
  position: relative;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.74rem;
  font-weight: 600;
}

.landing-page .grocery-menu a.active {
  color: #fff;
  font-weight: 900;
}

.landing-page .grocery-menu a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

.landing-page .grocery-nav-actions {
  justify-content: flex-end;
  gap: 14px;
}

.landing-page .cart-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transform: none;
}

.landing-page .cart-button:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.landing-page .cart-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.landing-page .landing-signup {
  min-width: 94px;
  min-height: 34px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: transparent;
  font-size: 0.78rem;
}

.landing-page .grocery-hero {
  display: grid;
  grid-template-columns: minmax(340px, 0.84fr) minmax(430px, 1.16fr);
  gap: 42px;
  align-items: center;
  min-height: 610px;
}

.landing-page .grocery-copy {
  padding: 74px 0 0 48px;
}

.landing-page .service-pill {
  min-height: 0;
  margin-bottom: 0;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.76rem;
}

.landing-page .service-pill svg {
  width: 15px;
  height: 15px;
  color: currentColor;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.landing-page .grocery-copy h1 {
  max-width: 540px;
  margin: 38px 0 24px;
  color: #fff;
  font-size: clamp(2.85rem, 4.4vw, 4.35rem);
  line-height: 1.06;
  font-weight: 300;
}

.landing-page .grocery-copy h1 strong {
  font-weight: 900;
}

.landing-page .shop-now {
  min-width: 106px;
  min-height: 42px;
  margin-top: 0;
  padding: 11px 18px;
  border-radius: 999px;
  background: #ffe932;
  color: #111827;
  font-size: 0.84rem;
  font-weight: 900;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.12);
}

.landing-page .happy-customers {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 76px;
}

.landing-page .avatar-stack {
  display: flex;
}

.landing-page .avatar-stack img {
  width: 34px;
  height: 34px;
  margin-right: -9px;
  border: 2px solid #fff;
  border-radius: 50%;
  object-fit: cover;
}

.landing-page .happy-customers strong,
.landing-page .happy-customers span {
  display: block;
}

.landing-page .happy-customers strong {
  font-size: 0.9rem;
}

.landing-page .happy-customers span {
  margin-top: 3px;
  color: #f6db3a;
  font-size: 0.76rem;
  font-weight: 700;
}

.landing-page .download-block {
  position: relative;
  width: fit-content;
  margin-top: 82px;
}

.landing-page .download-block > span {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.84rem;
}

.landing-page .download-block::after {
  content: "";
  position: absolute;
  left: 252px;
  top: 34px;
  width: 40px;
  height: 28px;
  border-left: 3px solid rgba(255, 255, 255, 0.84);
  border-bottom: 3px solid rgba(255, 255, 255, 0.84);
  border-radius: 0 0 0 28px;
  transform: rotate(-28deg);
}

.landing-page .download-block::before {
  content: "";
  position: absolute;
  left: 306px;
  top: 6px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 0.7) 0 18%, transparent 19%),
    #f4df26;
  box-shadow: inset 0 -10px 0 rgba(210, 196, 18, 0.28);
}

.landing-page .store-badges {
  gap: 8px;
  flex-wrap: wrap;
}

.landing-page .store-badges a {
  gap: 7px;
  min-width: 104px;
  min-height: 34px;
  padding: 5px 8px;
  border-radius: 5px;
}

.landing-page .store-badges svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.landing-page .store-badges span {
  font-size: 0.46rem;
}

.landing-page .store-badges b {
  font-size: 0.78rem;
}

.landing-page .grocery-visual {
  min-height: 560px;
  position: relative;
}

.landing-page .produce-card {
  position: absolute;
  display: block;
  aspect-ratio: auto;
  object-fit: cover;
  clip-path: none;
  background: #f4f3ef;
  filter: none;
  box-shadow: 0 30px 44px rgba(19, 43, 26, 0.16);
}

.landing-page .produce-round {
  left: 5px;
  top: 162px;
  z-index: 3;
  width: 250px;
  height: 250px;
  border-radius: 50%;
}

.landing-page .produce-top {
  right: 0;
  top: 64px;
  width: 210px;
  height: 188px;
  border-radius: 34px;
}

.landing-page .produce-bottom {
  right: -5px;
  bottom: 54px;
  width: 214px;
  height: 300px;
  border-radius: 26px;
}

.landing-page .produce-small {
  left: 44px;
  bottom: 52px;
  width: 218px;
  height: 200px;
  border-radius: 26px;
}

.landing-page .location-pin {
  position: absolute;
  left: 158px;
  top: 66px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #e4381e;
}

.landing-page .location-pin svg {
  width: 56px;
  height: 56px;
  fill: currentColor;
  stroke: none;
}

.landing-page .location-pin circle {
  fill: #fff;
}

@media (max-width: 900px) {
  body.landing-page {
    padding: 0;
  }

  .landing-page .grocery-landing {
    min-height: 100vh;
    padding: 24px 22px 48px;
  }

  .landing-page .grocery-nav,
  .landing-page .grocery-hero {
    grid-template-columns: 1fr;
  }

  .landing-page .grocery-nav {
    gap: 20px;
  }

  .landing-page .grocery-menu {
    order: 3;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
  }

  .landing-page .grocery-nav-actions {
    justify-content: flex-start;
  }

  .landing-page .grocery-copy {
    padding: 28px 0 0;
  }

  .landing-page .happy-customers {
    margin-top: 42px;
  }

  .landing-page .download-block {
    margin-top: 42px;
  }

  .landing-page .download-block::before,
  .landing-page .download-block::after {
    display: none;
  }

  .landing-page .grocery-visual {
    min-height: 560px;
  }

  .landing-page .produce-round {
    left: 0;
  }

  .landing-page .produce-top,
  .landing-page .produce-bottom {
    right: 0;
  }
}

@media (max-width: 520px) {
  .landing-page .grocery-copy h1 {
    font-size: 2.65rem;
  }

  .landing-page .grocery-visual {
    min-height: 740px;
  }

  .landing-page .produce-round,
  .landing-page .produce-top,
  .landing-page .produce-bottom,
  .landing-page .produce-small {
    position: relative;
    inset: auto;
    width: 100%;
    height: 190px;
    margin-bottom: 14px;
    border-radius: 24px;
  }

  .landing-page .location-pin {
    left: 12px;
    top: 16px;
    width: 64px;
    height: 64px;
  }

  .landing-page .location-pin svg {
    width: 40px;
    height: 40px;
  }
}

/* Ecoshop-inspired backend landing page */
body.ecoshop-landing-page {
  min-height: 100vh;
  display: block;
  padding: 0;
  background: #f7f8ef;
  color: #1f2a22;
}

body.ecoshop-landing-page::after {
  display: none;
}

.ecoshop-topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  min-height: 42px;
  padding: 0 6vw;
  background: #214d31;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 700;
}

.ecoshop-topbar p {
  margin: 0;
}

.ecoshop-topbar div {
  display: flex;
  gap: 18px;
  align-items: center;
}

.ecoshop-topbar a {
  color: #f8d447;
  text-decoration: none;
}

.landing-page .ecoshop-shell {
  width: 100%;
  min-height: 100vh;
  padding: 0;
  overflow: visible;
  background: #fff;
  box-shadow: none;
}

.landing-page .ecoshop-shell::before {
  display: none;
}

.landing-page .ecoshop-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  min-height: 82px;
  padding: 0 6vw;
  border-bottom: 1px solid #edf1e5;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.landing-page .ecoshop-logo {
  gap: 10px;
  color: #1e4d2b;
  font-size: 1.1rem;
  font-weight: 900;
  text-decoration: none;
}

.landing-page .ecoshop-logo .grocery-logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #e9f7d8;
  color: #28a745;
}

.landing-page .ecoshop-logo svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-page .ecoshop-menu {
  justify-content: center;
  gap: clamp(16px, 3.1vw, 42px);
}

.landing-page .ecoshop-menu a {
  color: #59655d;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.landing-page .ecoshop-menu a.active,
.landing-page .ecoshop-menu a:hover {
  color: #28a745;
}

.landing-page .ecoshop-menu a.active::after {
  bottom: -11px;
  background: #f8d447;
}

.landing-page .ecoshop-actions {
  gap: 12px;
}

.landing-page .ecoshop-actions .cart-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #e6eddc;
  border-radius: 50%;
  background: #fff;
  color: #1f2a22;
  box-shadow: none;
}

.landing-page .ecoshop-actions .cart-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.landing-page .ecoshop-actions .cart-button span {
  top: -4px;
  right: -1px;
  width: 18px;
  height: 18px;
  background: #ff8a00;
  color: #fff;
  font-size: 0.62rem;
}

.landing-page .ecoshop-actions .landing-signup {
  min-width: 118px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: #28a745;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 900;
}

.landing-page .ecoshop-hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(430px, 1.1fr);
  gap: 42px;
  align-items: center;
  padding: 54px 6vw 68px;
  background:
    radial-gradient(circle at 74% 46%, rgba(248, 212, 71, 0.35), transparent 0 18%),
    linear-gradient(90deg, #f7f8ef 0%, #fff 54%, #eff8e7 100%);
}

.landing-page .ecoshop-copy {
  padding: 0;
}

.landing-page .ecoshop-copy .service-pill {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #d9edca;
  background: #f1fae8;
  color: #28a745;
  font-size: 0.82rem;
  font-weight: 900;
}

.landing-page .ecoshop-copy .service-pill svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.landing-page .ecoshop-copy h1 {
  max-width: 620px;
  margin: 24px 0 18px;
  color: #17351f;
  font-size: clamp(3.1rem, 5.5vw, 6.15rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
}

.landing-page .ecoshop-copy p {
  max-width: 560px;
  margin: 0;
  color: #5d6a61;
  font-size: 1.02rem;
  line-height: 1.75;
}

.ecoshop-hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.landing-page .ecoshop-hero-actions .shop-now,
.ecoshop-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  min-height: 50px;
  margin: 0;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: none;
}

.landing-page .ecoshop-hero-actions .shop-now {
  background: #ff8a00;
  color: #fff;
  box-shadow: 0 16px 28px rgba(255, 138, 0, 0.22);
}

.ecoshop-outline {
  border: 1px solid #d8e4cd;
  background: #fff;
  color: #264b30;
}

.ecoshop-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 560px;
  margin-top: 44px;
}

.ecoshop-stats div {
  min-height: 92px;
  padding: 18px;
  border: 1px solid #e7efdd;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.ecoshop-stats strong,
.ecoshop-stats span {
  display: block;
}

.ecoshop-stats strong {
  color: #17351f;
  font-size: 1.45rem;
}

.ecoshop-stats span {
  margin-top: 6px;
  color: #6a766e;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.landing-page .ecoshop-visual {
  position: relative;
  min-height: 540px;
}

.ecoshop-hero-image {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(620px, 100%);
  height: 540px;
  object-fit: cover;
  border: 14px solid #fff;
  border-radius: 34px;
  clip-path: none;
  filter: none;
  box-shadow: 0 28px 72px rgba(38, 75, 48, 0.2);
}

.ecoshop-discount,
.ecoshop-delivery-card {
  position: absolute;
  z-index: 4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(31, 42, 34, 0.14);
}

.ecoshop-discount {
  top: 34px;
  left: 4px;
  width: 126px;
  height: 126px;
  display: grid;
  place-items: center;
  text-align: center;
  transform: rotate(-5deg);
}

.ecoshop-discount strong {
  display: block;
  color: #ff8a00;
  font-size: 2.25rem;
  line-height: 1;
}

.ecoshop-discount span {
  display: block;
  margin-top: 6px;
  color: #4b5b50;
  font-size: 0.78rem;
  font-weight: 900;
}

.ecoshop-delivery-card {
  right: 28px;
  bottom: 34px;
  min-width: 238px;
  padding: 18px 20px;
}

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

.ecoshop-delivery-card span {
  color: #28a745;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ecoshop-delivery-card strong {
  margin-top: 5px;
  color: #17351f;
  font-size: 1.02rem;
}

.ecoshop-section {
  padding: 72px 6vw 0;
}

.ecoshop-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 28px;
}

.ecoshop-section-heading span {
  color: #28a745;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ecoshop-section-heading h2 {
  margin: 6px 0 0;
  color: #17351f;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.05;
}

.ecoshop-category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 18px;
}

.ecoshop-category-grid a {
  display: grid;
  gap: 14px;
  justify-items: center;
  min-height: 174px;
  padding: 20px 14px;
  border: 1px solid #e7efdd;
  border-radius: 8px;
  background: #fff;
  color: #17351f;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(38, 75, 48, 0.06);
}

.ecoshop-category-grid img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
}

.ecoshop-deal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding: 72px 6vw 0;
}

.ecoshop-deal {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
  border-radius: 8px;
  overflow: hidden;
  color: #17351f;
  text-decoration: none;
  background-position: right center;
  background-size: cover;
}

.ecoshop-deal-green {
  background:
    linear-gradient(90deg, rgba(224, 245, 210, 0.98), rgba(224, 245, 210, 0.68)),
    url("https://images.unsplash.com/photo-1540420773420-3366772f4999?auto=format&fit=crop&w=900&q=80");
}

.ecoshop-deal-orange {
  background:
    linear-gradient(90deg, rgba(255, 235, 199, 0.98), rgba(255, 235, 199, 0.62)),
    url("https://images.unsplash.com/photo-1506617564039-2f3b650b7010?auto=format&fit=crop&w=900&q=80");
}

.ecoshop-deal span {
  color: #28a745;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ecoshop-deal strong {
  max-width: 320px;
  margin-top: 8px;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  line-height: 1.08;
}

.ecoshop-deal small {
  margin-top: 12px;
  color: #536158;
  font-size: 0.92rem;
  font-weight: 800;
}

.ecoshop-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.ecoshop-product-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid #e7efdd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(38, 75, 48, 0.06);
}

.ecoshop-product-card img {
  width: 100%;
  aspect-ratio: 1 / 0.78;
  object-fit: cover;
  border-radius: 6px;
  background: #f5f7ee;
}

.ecoshop-product-card span {
  color: #28a745;
  font-size: 0.73rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ecoshop-product-card h3 {
  min-height: 48px;
  margin: 0;
  color: #17351f;
  font-size: 1.04rem;
  line-height: 1.25;
}

.ecoshop-product-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.ecoshop-product-card strong {
  color: #ff8a00;
  font-size: 1.08rem;
}

.ecoshop-product-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 34px;
  border-radius: 999px;
  background: #28a745;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
}

.ecoshop-service-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 78px;
  padding: 0 6vw 70px;
}

.ecoshop-service-band div {
  min-height: 116px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 22px;
  background: #f4f8ed;
}

.ecoshop-service-band strong {
  color: #17351f;
  font-size: 1rem;
}

.ecoshop-service-band span {
  color: #66726a;
  font-size: 0.85rem;
  line-height: 1.45;
}

@media (max-width: 1040px) {
  .landing-page .ecoshop-header,
  .landing-page .ecoshop-hero {
    grid-template-columns: 1fr;
  }

  .landing-page .ecoshop-menu {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .landing-page .ecoshop-actions {
    justify-content: flex-start;
  }

  .landing-page .ecoshop-visual {
    min-height: 450px;
  }

  .ecoshop-hero-image {
    width: 100%;
    height: 450px;
  }

  .ecoshop-category-grid,
  .ecoshop-product-grid,
  .ecoshop-service-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .ecoshop-topbar,
  .ecoshop-topbar div,
  .ecoshop-section-heading,
  .ecoshop-deal-grid,
  .ecoshop-stats {
    grid-template-columns: 1fr;
  }

  .ecoshop-topbar {
    display: grid;
    padding: 10px 18px;
  }

  .landing-page .ecoshop-header {
    padding: 18px;
  }

  .landing-page .ecoshop-hero,
  .ecoshop-section,
  .ecoshop-deal-grid {
    padding-left: 18px;
    padding-right: 18px;
  }

  .landing-page .ecoshop-copy h1 {
    font-size: 3rem;
  }

  .ecoshop-category-grid,
  .ecoshop-product-grid,
  .ecoshop-service-band {
    grid-template-columns: 1fr;
  }

  .ecoshop-discount {
    left: 14px;
    width: 98px;
    height: 98px;
  }

  .ecoshop-discount strong {
    font-size: 1.7rem;
  }

  .ecoshop-delivery-card {
    left: 18px;
    right: 18px;
    bottom: 20px;
    min-width: 0;
  }

  .ecoshop-service-band {
    padding-left: 18px;
    padding-right: 18px;
  }
}
/* Delivery person management */
.delivery-admin-shell,.delivery-profile-shell{padding:24px;display:grid;gap:20px}.delivery-filter-bar{display:grid;grid-template-columns:2fr 1fr 1fr 1fr auto;gap:12px}.delivery-filter-bar input,.delivery-filter-bar select{min-height:42px;border:1px solid #dce3ee;border-radius:10px;padding:0 12px;background:var(--surface,#fff);color:inherit}.delivery-summary-grid{display:grid;grid-template-columns:repeat(5,minmax(150px,1fr));gap:14px}.delivery-summary-grid article{background:var(--surface,#fff);border:1px solid #e6eaf0;border-radius:14px;padding:18px;box-shadow:0 8px 26px rgba(20,31,54,.05)}.delivery-summary-grid span{display:block;color:#667085;font-size:13px}.delivery-summary-grid strong{display:block;font-size:25px;margin-top:7px}.delivery-person-grid{display:grid;grid-template-columns:repeat(2,minmax(320px,1fr));gap:18px}.delivery-person-card,.delivery-profile-hero,.delivery-detail-grid article{background:var(--surface,#fff);border:1px solid #e6eaf0;border-radius:16px;padding:20px;box-shadow:0 8px 26px rgba(20,31,54,.05)}.delivery-person-heading,.delivery-profile-hero{display:flex;align-items:center;gap:13px}.delivery-person-heading>div:nth-child(2),.delivery-profile-hero>div:nth-child(2){flex:1}.delivery-person-heading h3,.delivery-profile-hero h2{margin:0 0 4px}.delivery-person-heading span,.delivery-profile-hero p{color:#667085;font-size:13px;margin:0}.delivery-avatar{width:44px;height:44px;border-radius:14px;background:linear-gradient(135deg,#ff8a3d,#ff5d2d);color:#fff;display:grid;place-items:center;font-weight:800;font-size:19px}.delivery-avatar.large{width:64px;height:64px;font-size:27px}.delivery-status{padding:6px 10px;border-radius:999px;font-size:12px;text-transform:capitalize}.delivery-status.active{color:#087a55;background:#dcfae6}.delivery-status.blocked{color:#b42318;background:#fee4e2}.delivery-person-card dl,.delivery-detail-grid dl,#fullStats dl{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.delivery-person-card dl div,.delivery-detail-grid dl div,#fullStats dl div{min-width:0}.delivery-person-card dt,.delivery-detail-grid dt,#fullStats dt{font-size:12px;color:#667085}.delivery-person-card dd,.delivery-detail-grid dd,#fullStats dd{margin:3px 0 0;font-weight:600;overflow-wrap:anywhere}.delivery-stat-row{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;border-top:1px solid #edf0f4;border-bottom:1px solid #edf0f4;padding:13px 0}.delivery-stat-row span{text-align:center;font-size:11px;color:#667085}.delivery-stat-row b{display:block;color:inherit;font-size:16px}.delivery-card-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:15px}.delivery-card-actions button,.delivery-card-actions a,.delivery-tabs button{border:1px solid #d7dce5;border-radius:8px;padding:8px 10px;background:transparent;color:inherit;text-decoration:none;cursor:pointer;font-size:12px}.delivery-card-actions a,.delivery-tabs button.active{background:#ff6b35;color:#fff;border-color:#ff6b35}.delivery-form-card{max-width:850px}.delivery-form-card h3{margin:8px 0 0;padding-top:10px;border-top:1px solid #eceff3}.delivery-profile-hero{padding:24px}.delivery-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.delivery-detail-grid article h3{margin-top:0}.delivery-tabs{display:flex;gap:8px}.delivery-profile-shell .users-table-card{overflow:auto}.delivery-profile-shell .users-table{width:100%}
.theme-dark .delivery-person-card,.theme-dark .delivery-profile-hero,.theme-dark .delivery-detail-grid article,.theme-dark .delivery-summary-grid article{background:#18202d;border-color:#303b4b}.theme-dark .delivery-filter-bar input,.theme-dark .delivery-filter-bar select{background:#18202d;border-color:#303b4b}
@media(max-width:1000px){.delivery-filter-bar{grid-template-columns:1fr 1fr}.delivery-summary-grid{grid-template-columns:repeat(2,1fr)}.delivery-person-grid,.delivery-detail-grid{grid-template-columns:1fr}}@media(max-width:600px){.delivery-admin-shell,.delivery-profile-shell{padding:14px}.delivery-filter-bar,.delivery-summary-grid{grid-template-columns:1fr}.delivery-person-card dl{grid-template-columns:1fr}.delivery-stat-row{grid-template-columns:1fr 1fr}}
.delivery-person-list{display:grid;gap:10px}.delivery-person-list-head,.delivery-person-row{display:grid;grid-template-columns:minmax(240px,1.5fr) minmax(130px,.8fr) minmax(120px,.75fr) minmax(260px,1.35fr) minmax(110px,.65fr) minmax(240px,1.25fr);gap:14px;align-items:center}.delivery-person-list-head{padding:0 18px;color:#667085;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.delivery-person-row{background:var(--surface,#fff);border:1px solid #e6eaf0;border-radius:16px;padding:16px 18px;box-shadow:0 8px 26px rgba(20,31,54,.05)}.delivery-person-row .delivery-person-heading{min-width:0}.delivery-person-row .delivery-status{justify-self:start}.delivery-person-cell{min-width:0}.delivery-person-cell span{display:block;color:#667085;font-size:12px}.delivery-person-cell strong{display:block;margin-top:3px;font-size:14px;overflow-wrap:anywhere}.delivery-person-cell small{display:block;margin-top:3px;color:#667085;overflow-wrap:anywhere}.delivery-person-row .delivery-stat-row{border:0;padding:0}.delivery-person-row .delivery-card-actions{margin-top:0;justify-content:flex-end}.theme-dark .delivery-person-row{background:#18202d;border-color:#303b4b}@media(max-width:1200px){.delivery-person-list-head{display:none}.delivery-person-row{grid-template-columns:1fr 1fr}.delivery-person-row .delivery-person-heading,.delivery-person-row .delivery-stat-row,.delivery-person-row .delivery-card-actions{grid-column:1/-1}.delivery-person-row .delivery-card-actions{justify-content:flex-start}}@media(max-width:600px){.delivery-person-row{grid-template-columns:1fr}.delivery-person-row .delivery-stat-row{grid-template-columns:1fr 1fr}.delivery-person-row .delivery-card-actions{gap:8px}.delivery-person-row .delivery-card-actions button,.delivery-person-row .delivery-card-actions a{flex:1 1 auto;text-align:center}}
.delivery-person-list-head,.delivery-person-row{grid-template-columns:minmax(220px,1.3fr) minmax(120px,.7fr) minmax(180px,1fr) minmax(110px,.65fr) minmax(240px,1.2fr) minmax(100px,.6fr) minmax(260px,1.3fr)}
@media(max-width:1200px){.delivery-person-row{grid-template-columns:1fr 1fr}}@media(max-width:600px){.delivery-person-row{grid-template-columns:1fr}}
.delivery-dashboard-table th,.delivery-dashboard-table td{vertical-align:top}.delivery-location-cell{max-width:260px;white-space:normal;line-height:1.35}.badge.waiting_for_delivery_person{background:#64748b;color:#fff}.badge.delivery_person_assigned,.badge.delivery_partner_assigned,.badge.accepted{background:#2563eb;color:#fff}.badge.rejected,.badge.cancelled{background:#dc2626;color:#fff}.badge.pickup_pending{background:#f59e0b;color:#1f2937}.badge.picked_up,.badge.out_for_delivery{background:#0891b2;color:#fff}.badge.delivered{background:#16a34a;color:#fff}.badge.free{background:#16a34a;color:#fff}.badge.on_order{background:#f59e0b;color:#1f2937}.badge.on_ride{background:#0891b2;color:#fff}.badge.offline{background:#64748b;color:#fff}.delivery-status-table th:nth-child(5),.delivery-status-table th:nth-child(6){min-width:220px}
.delivery-resend-button,.delivery-assign-button{display:block;margin-top:6px;min-width:112px}.delivery-resend-button:disabled{cursor:not-allowed;opacity:.55}
.delivery-manual-verify-button{display:block;margin-top:6px;white-space:nowrap}
.delivery-assign-summary{display:grid;grid-template-columns:1fr auto;gap:12px;margin-bottom:14px;color:#475467}.delivery-assign-summary p{margin:0}.delivery-partner-options{display:grid;gap:10px;max-height:52vh;overflow:auto;padding-right:4px}.delivery-partner-option{display:grid;grid-template-columns:34px minmax(180px,1fr) minmax(110px,.5fr) minmax(160px,.7fr);gap:12px;align-items:center;width:100%;padding:12px;border:1px solid #e4e7ec;border-radius:10px;background:var(--surface,#fff);color:inherit;text-align:left;cursor:pointer}.delivery-partner-option:hover,.delivery-partner-option.selected{border-color:#ff6b35;box-shadow:0 0 0 3px rgba(255,107,53,.12)}.delivery-partner-rank{width:28px;height:28px;border-radius:999px;display:grid;place-items:center;background:#eef2f7;color:#344054;font-weight:800}.delivery-partner-option.selected .delivery-partner-rank{background:#ff6b35;color:#fff}.delivery-partner-option strong,.delivery-partner-option small{display:block}.delivery-partner-option small{margin-top:3px;color:#667085}.delivery-partner-distance{justify-self:start;font-weight:800;color:#087a55}.delivery-assign-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}.delivery-assign-empty{padding:18px;border:1px dashed #d0d5dd;border-radius:10px;background:rgba(102,112,133,.06)}.delivery-assign-empty h3{margin:0 0 6px}.delivery-assign-empty p{margin:0;color:#667085}.theme-dark .delivery-partner-option,.theme-dark .delivery-assign-empty{background:#18202d;border-color:#303b4b}.theme-dark .delivery-partner-option small,.theme-dark .delivery-assign-empty p{color:#a7b0bd}@media(max-width:760px){.delivery-assign-summary{grid-template-columns:1fr}.delivery-partner-option{grid-template-columns:30px 1fr}.delivery-partner-distance{grid-column:2}.delivery-partner-option>small{grid-column:2}.delivery-assign-actions{justify-content:stretch}.delivery-assign-actions button{flex:1}}




.image-editor-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: none;
  place-items: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  animation: imgEditorFadeIn 0.22s ease-out;
}

@keyframes imgEditorFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.image-editor-modal.active {
  display: grid;
}

.image-editor-card {
  width: min(780px, 98vw);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 20px;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.2);
  animation: imgEditorCardSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes imgEditorCardSlide {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.image-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.image-editor-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.image-editor-header-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #e8f5e9;
  color: #168832;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(22, 136, 50, 0.12);
}

.image-editor-badge {
  display: inline-block;
  color: #168832;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.image-editor-header h3 {
  margin: 2px 0 0;
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
}

.image-editor-close-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.image-editor-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.image-editor-stage-wrap {
  position: relative;
  display: grid;
  place-items: center;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
  background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
  background-size: 16px 16px;
  overflow: auto;
  min-height: 240px;
}

.image-editor-canvas {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 2px solid #ffffff;
  cursor: grab;
  touch-action: none;
}

.image-editor-stage-hint {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.68);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

.image-editor-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
}

.image-editor-zoom-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.image-editor-zoom-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 700;
  min-width: 65px;
}

.editor-zoom-btn {
  width: 30px;
  height: 30px;
  min-height: 30px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.editor-zoom-btn:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

#imageEditorZoom {
  flex: 1;
  accent-color: #168832;
  cursor: pointer;
}

.editor-zoom-val {
  min-width: 44px;
  text-align: right;
  color: #168832;
  font-size: 0.8rem;
  font-weight: 800;
}

.image-editor-tools-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.editor-btn-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.editor-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.editor-icon-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.editor-btn-reset {
  color: #dc2626;
  border-color: #fecaca;
  background: #fef2f2;
}

.editor-btn-reset:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.image-editor-preview-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.image-editor-preview-thumb {
  width: 100px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
}

.image-editor-preview {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.image-editor-preview-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.preview-meta-title {
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 800;
}

.preview-meta-dims {
  color: #168832;
  font-size: 0.78rem;
  font-weight: 800;
}

.preview-meta-format {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
}

.image-editor-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.editor-btn-cancel {
  height: 40px;
  padding: 0 18px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.15s ease;
}

.editor-btn-cancel:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.editor-btn-apply {
  height: 40px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #168832 0%, #116c27 100%);
  color: #ffffff;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(22, 136, 50, 0.35);
  transition: all 0.15s ease;
}

.editor-btn-apply:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(22, 136, 50, 0.45);
}

.theme-dark .image-editor-card {
  background: #0f172a;
  color: #f8fafc;
  border-color: #1e293b;
}

.theme-dark .image-editor-header {
  border-color: #1e293b;
}

.theme-dark .image-editor-header h3 {
  color: #f8fafc;
}

.theme-dark .image-editor-close-btn {
  background: #1e293b;
  color: #94a3b8;
}

.theme-dark .image-editor-close-btn:hover {
  background: #334155;
  color: #f8fafc;
}

.theme-dark .image-editor-stage-wrap,
.theme-dark .image-editor-toolbar,
.theme-dark .image-editor-preview-card {
  background: #1e293b;
  border-color: #334155;
}

.theme-dark .editor-icon-btn,
.theme-dark .editor-zoom-btn,
.theme-dark .editor-btn-cancel {
  background: #0f172a;
  border-color: #334155;
  color: #cbd5e1;
}

.theme-dark .editor-icon-btn:hover,
.theme-dark .editor-zoom-btn:hover,
.theme-dark .editor-btn-cancel:hover {
  background: #334155;
  color: #f8fafc;
}

.theme-dark .preview-meta-title {
  color: #f8fafc;
}
@media (max-width: 760px) {
  .image-editor-header,
  .image-editor-actions,
  .image-editor-preview-row { align-items: stretch; flex-direction: column; }
  .image-editor-actions button { width: 100%; }
}

/* Clean DB Confirmation Modal & Card Styles */
.clean-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  padding: 16px;
  animation: cleanModalFadeIn 0.2s ease-out;
}
.clean-modal-overlay[hidden] {
  display: none !important;
}
@keyframes cleanModalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.clean-modal-card {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border: 1px solid #fee2e2;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(239, 68, 68, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.clean-modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: #fef2f2;
  border-bottom: 1px solid #fee2e2;
}
.clean-modal-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fee2e2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.clean-modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #991b1b;
}
.clean-modal-subtitle {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: #b91c1c;
  font-weight: 500;
}

.clean-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #334155;
  font-size: 0.925rem;
  line-height: 1.5;
}
.clean-modal-affected-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
}
.clean-modal-affected-box ul {
  margin: 8px 0 0 18px;
  padding: 0;
  color: #475569;
}
.clean-modal-affected-box li {
  margin-bottom: 4px;
}

.clean-modal-warning {
  background: #fffbe6;
  border: 1px solid #ffe58f;
  color: #873800;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
}

.clean-modal-verify-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.clean-modal-verify-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
}
.clean-modal-verify-group input {
  padding: 10px 14px;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.clean-modal-verify-group input:focus {
  border-color: #dc2626;
}

.clean-modal-footer {
  padding: 16px 24px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.clean-modal-cancel-btn {
  padding: 9px 18px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #475569;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.clean-modal-cancel-btn:hover {
  background: #f1f5f9;
}
.clean-modal-confirm-btn {
  padding: 9px 20px;
  border: none;
  border-radius: 8px;
  background: #dc2626;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}
.clean-modal-confirm-btn:hover:not(:disabled) {
  background: #b91c1c;
}
.clean-modal-confirm-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.catalog-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.catalog-card-header h3 {
  margin: 0;
}

.clean-db-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.maintenance-table-cleaners {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px border #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.maintenance-clean-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Centered Bulk Upload Progress Modal Card */
.bulk-progress-overlay {
  position: fixed;
  inset: 0;
  z-index: 10005;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  padding: 20px;
  animation: bulkProgressFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.bulk-progress-overlay[hidden] {
  display: none !important;
}
@keyframes bulkProgressFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.bulk-progress-card {
  width: 100%;
  max-width: 560px;
  background: #ffffff;
  border: 2px solid #3b82f6;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.25), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bulk-progress-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-bottom: 1px solid #bfdbfe;
}
.bulk-progress-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #3b82f6;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.bulk-progress-spinner {
  width: 30px;
  height: 30px;
  animation: bulkSpin 1.2s linear infinite;
}
@keyframes bulkSpin {
  100% { transform: rotate(360deg); }
}

.bulk-progress-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #1e3a8a;
  letter-spacing: -0.01em;
}
.bulk-progress-subtitle {
  margin: 3px 0 0;
  font-size: 0.88rem;
  color: #2563eb;
  font-weight: 500;
}

.bulk-progress-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: #334155;
}
#bulkProgressMessage {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #475569;
}

.bulk-progress-bar-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bulk-progress-bar-track {
  height: 16px;
  width: 100%;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.bulk-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #3b82f6, #60a5fa);
  background-size: 200% 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
  animation: progressShimmer 2s linear infinite;
}
@keyframes progressShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.bulk-progress-bar-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  font-weight: 700;
  color: #1e293b;
}

.bulk-progress-warning-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fffbe6;
  border: 1.5px solid #ffe58f;
  border-radius: 12px;
  padding: 14px 18px;
  color: #873800;
}
.bulk-progress-warning-box svg {
  color: #d46b08;
  flex-shrink: 0;
  margin-top: 2px;
}
.bulk-progress-warning-box strong {
  display: block;
  font-size: 0.9rem;
  color: #ad4e00;
  margin-bottom: 2px;
}
.bulk-progress-warning-box p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #873800;
}

/* Debug Tab - Dedicated Database Table Clean Section Card */
.debug-clean-section-card {
  margin-top: 24px;
  background: #ffffff;
  border: 2px solid #fca5a5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.08);
}
.debug-clean-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #fff5f5 0%, #fee2e2 100%);
  border-bottom: 1px solid #fecaca;
}
.debug-clean-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #ef4444;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}
.debug-clean-section-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #991b1b;
}
.debug-clean-section-header p {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: #b91c1c;
}

.debug-clean-grid {
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.debug-clean-box {
  background: #fcfcfc;
  border: 1px solid #fee2e2;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.debug-clean-box:hover {
  transform: translateY(-2px);
  border-color: #fca5a5;
  box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.12);
}
.debug-clean-box-info strong {
  display: block;
  font-size: 1rem;
  color: #1e293b;
  margin-bottom: 6px;
}
.debug-clean-box-info p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #64748b;
}
.debug-clean-box button {
  width: 100%;
  justify-content: center;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 700;
}

/* Dashboard Catalog & Product Summary Card */
.dashboard-catalog-card {
  margin-bottom: 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}
.catalog-summary-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
}
.catalog-summary-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.catalog-summary-text {
  flex: 1;
}
.catalog-summary-text h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}
.catalog-summary-text p {
  margin: 3px 0 0;
  font-size: 0.86rem;
  color: #64748b;
}
.catalog-manage-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #1e293b;
  color: #ffffff !important;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.catalog-manage-btn:hover {
  background: #0f172a;
  transform: translateY(-1px);
}

.catalog-stats-grid {
  padding: 20px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.catalog-stat-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.catalog-stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}
.catalog-stat-item.green { border-left: 4px solid #10b981; }
.catalog-stat-item.blue { border-left: 4px solid #3b82f6; }
.catalog-stat-item.purple { border-left: 4px solid #8b5cf6; }
.catalog-stat-item.orange { border-left: 4px solid #f59e0b; }

.catalog-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.catalog-stat-item.green .catalog-stat-icon { background: #d1fae5; color: #059669; }
.catalog-stat-item.blue .catalog-stat-icon { background: #dbeafe; color: #2563eb; }
.catalog-stat-item.purple .catalog-stat-icon { background: #ede9fe; color: #7c3aed; }
.catalog-stat-item.orange .catalog-stat-icon { background: #fef3c7; color: #d97706; }

.catalog-stat-data {
  display: flex;
  flex-direction: column;
}
.catalog-stat-data span {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.catalog-stat-data strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin: 2px 0;
}
.catalog-stat-data small {
  font-size: 0.78rem;
  color: #94a3b8;
}





/* Unified modern server modal and feedback system */
.user-modal,
.modal-overlay,
.clean-modal-overlay,
.image-editor-modal,
.legal-dialog-backdrop {
  padding: clamp(12px, 3vw, 28px);
  background: rgba(15, 23, 42, .68);
  backdrop-filter: blur(7px) saturate(115%);
  -webkit-backdrop-filter: blur(7px) saturate(115%);
}
.user-modal { z-index: 1000; }
.user-modal-card,
.modal-content,
.clean-modal-card,
.legal-dialog-card {
  width: min(760px, 100%);
  max-height: min(90vh, 900px);
  overflow: hidden auto;
  border: 1px solid rgba(226, 232, 240, .92);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 30px 90px rgba(15, 23, 42, .32), 0 3px 12px rgba(15, 23, 42, .1);
  animation: systemModalIn .22s cubic-bezier(.2,.8,.2,1);
}
@keyframes systemModalIn { from { opacity: 0; transform: translateY(16px) scale(.975); } to { opacity: 1; transform: none; } }
.user-modal-header,
.clean-modal-header,
.legal-dialog-header {
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: 72px;
  padding: 18px 22px;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(135deg, rgba(240,253,250,.98), rgba(239,246,255,.98));
  backdrop-filter: blur(10px);
}
.user-modal-header::before,
.clean-modal-header::before,
.legal-dialog-header::before {
  content: '';
  width: 5px;
  align-self: stretch;
  flex: 0 0 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #0d9488, #2563eb);
}
.user-modal-header h2,
.clean-modal-title,
.legal-dialog-header h2 {
  color: #0f172a;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 900;
  letter-spacing: -.015em;
}
.user-modal-header button,
.legal-dialog-close,
.clean-modal-cancel-btn {
  min-width: 36px;
  min-height: 36px;
  border: 1px solid #dbe4ed;
  border-radius: 10px;
  background: rgba(255,255,255,.82);
  color: #475569;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(15,23,42,.05);
}
.user-modal-header button:hover,
.legal-dialog-close:hover { border-color: #99f6e4; background: #f0fdfa; color: #0f766e; }
.user-modal-grid {
  gap: 16px;
  padding: 22px;
  background: #fff;
}
.user-modal-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #334155;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .01em;
}
.user-modal-grid input,
.user-modal-grid select,
.user-modal-grid textarea {
  box-sizing: border-box;
  min-height: 45px;
  margin: 0;
  padding: .72rem .85rem;
  border: 1px solid #d7e0ea;
  border-radius: 11px;
  background: #f8fafc;
  color: #0f172a;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.user-modal-grid input:focus,
.user-modal-grid select:focus,
.user-modal-grid textarea:focus {
  outline: none;
  border-color: #0d9488;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(13,148,136,.12);
}
.user-modal-grid > .settings-wide:last-child {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 4px -22px -22px;
  padding: 16px 22px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}
.commission-message:not(:empty),
.system-alert,
.error-message:not(:empty),
.form-error:not(:empty) {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  background: linear-gradient(135deg,#f0f9ff,#ecfeff);
  color: #155e75;
  font-weight: 750;
  box-shadow: 0 6px 18px rgba(15,23,42,.05);
}
.error-message:not(:empty), .form-error:not(:empty), .commission-message.error {
  border-color: #fecaca;
  background: linear-gradient(135deg,#fff7f7,#fef2f2);
  color: #991b1b;
}
.system-feedback-stack {
  position: fixed;
  z-index: 99999;
  top: 18px;
  right: 18px;
  display: grid;
  gap: 10px;
  width: min(390px, calc(100vw - 28px));
  pointer-events: none;
}
.system-feedback-card {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) 30px;
  gap: 11px;
  align-items: start;
  padding: 14px;
  border: 1px solid #bfdbfe;
  border-radius: 15px;
  background: rgba(255,255,255,.97);
  color: #1e3a8a;
  box-shadow: 0 18px 45px rgba(15,23,42,.2);
  opacity: 0;
  transform: translateX(24px) scale(.98);
  transition: .18s ease;
  pointer-events: auto;
}
.system-feedback-card.visible { opacity: 1; transform: none; }
.system-feedback-card.leaving { opacity: 0; transform: translateX(20px) scale(.98); }
.system-feedback-card.error { border-color: #fecaca; color: #991b1b; }
.system-feedback-card.success { border-color: #bbf7d0; color: #166534; }
.system-feedback-card.warning { border-color: #fde68a; color: #92400e; }
.system-feedback-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #dbeafe;
  font-size: 18px;
  font-weight: 950;
}
.system-feedback-card.error .system-feedback-icon { background: #fee2e2; }
.system-feedback-card.success .system-feedback-icon { background: #dcfce7; }
.system-feedback-card.warning .system-feedback-icon { background: #fef3c7; }
.system-feedback-copy strong { display: block; color: currentColor; font-size: 13px; }
.system-feedback-copy p { margin: 3px 0 0; color: #475569; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.system-feedback-close { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #64748b; font-size: 20px; cursor: pointer; }
.system-feedback-close:hover { background: #f1f5f9; color: #0f172a; }
.theme-dark .user-modal-card,
.theme-dark .modal-content,
.theme-dark .clean-modal-card,
.theme-dark .legal-dialog-card { border-color: #334155; background: linear-gradient(180deg,#111827,#0f172a); }
.theme-dark .user-modal-header,
.theme-dark .clean-modal-header,
.theme-dark .legal-dialog-header { border-color: #334155; background: linear-gradient(135deg,rgba(15,118,110,.24),rgba(30,64,175,.2)); }
.theme-dark .user-modal-grid { background: #111827; }
.theme-dark .user-modal-grid label,
.theme-dark .user-modal-header h2 { color: #f8fafc; }
.theme-dark .user-modal-grid input,
.theme-dark .user-modal-grid select,
.theme-dark .user-modal-grid textarea { border-color: #334155; background: #182233; color: #f8fafc; }
.theme-dark .user-modal-grid > .settings-wide:last-child { border-color: #334155; background: #0f172a; }
.theme-dark .system-feedback-card { border-color: #334155; background: rgba(15,23,42,.98); }
.theme-dark .system-feedback-copy p { color: #cbd5e1; }
@media (max-width: 640px) {
  .user-modal,.modal-overlay,.clean-modal-overlay,.image-editor-modal,.legal-dialog-backdrop { padding: 0; }
  .user-modal-card,.modal-content,.clean-modal-card,.legal-dialog-card { width: 100%; max-height: 100vh; min-height: 100vh; border-radius: 0; }
  .user-modal-grid { grid-template-columns: 1fr; padding: 18px; }
  .user-modal-grid > .settings-wide:last-child { margin: 4px -18px -18px; padding: 14px 18px; }
  .system-feedback-stack { top: 10px; right: 10px; width: calc(100vw - 20px); }
}
