/* =========================================
   ClickGarçom Admin — Design System
   Font: Sora + JetBrains Mono
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg: #f0f2f5;
  --sidebar-bg: #ffffff;
  --card-bg: #ffffff;
  --teal: #1abc9c;
  --teal-dark: #16a085;
  --teal-light: #e8faf6;
  --dark: #1a1d23;
  --text: #2d3748;
  --muted: #8a94a6;
  --border: #e8ecf0;
  --accent-orange: #f97316;
  --accent-purple: #8b5cf6;
  --accent-blue: #3b82f6;
  --accent-red: #ef4444;
  --pending-bg: #fff7ed;
  --pending-text: #ea580c;
  --done-bg: #f0fdf4;
  --done-text: #16a34a;
  --prep-bg: #eff6ff;
  --prep-text: #2563eb;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.10);
  --radius: 14px;
  --radius-sm: 8px;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
}

/* ── ANIMATIONS & SKELETON LOADERS ── */
@keyframes slideUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.animate-slide-up {
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

@keyframes skeletonPulse {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

.skeleton {
  background: linear-gradient(90deg, #f0f2f5 25%, #e2e8f0 50%, #f0f2f5 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
  color: transparent !important;
}

.skeleton-card {
  background: white;
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.skeleton-bar {
  height: 20px;
  width: 100%;
  border-radius: 4px;
}
.skeleton-bar.short { width: 40%; }
.skeleton-bar.title { height: 28px; width: 60%; margin-bottom: 8px; }

.consulta-layout-grid,
.consulta-metrics-grid,
.consulta-detail-grid {
  min-width: 0;
}

@media (max-width: 768px) {
  .consulta-layout-grid,
  .consulta-detail-grid {
    grid-template-columns: 1fr !important;
  }

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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Sora', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
}

/* ── SIDEBAR ── */
.sidebar {
  width: 230px;
  min-height: 100vh;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  padding: 28px 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  border-right: 1px solid var(--border);
  z-index: 100;
  overflow-y: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px 28px;
  border-bottom: 1px solid var(--border);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.logo-text {
  font-weight: 700;
  font-size: 17px;
  color: var(--dark);
  letter-spacing: -0.3px;
}

.nav-section {
  padding: 20px 14px 8px;
}

.nav-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 0 8px;
  margin-bottom: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 2px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.nav-item:hover {
  background: var(--teal-light);
  color: var(--teal-dark);
}

.nav-item.active {
  background: var(--teal-light);
  color: var(--teal-dark);
  font-weight: 600;
}

.nav-item.active .nav-icon {
  color: var(--teal);
}

.nav-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.badge {
  margin-left: auto;
  background: var(--teal);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  min-width: 20px;
  text-align: center;
}

.badge.red {
  background: var(--accent-red);
}

.sidebar-footer {
  margin-top: auto;
  padding: 16px 14px;
  border-top: 1px solid var(--border);
}

/* ── MAIN ── */
.main {
  margin-left: 230px;
  flex: 1;
  padding: 28px 32px;
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.page-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.page-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tab-group {
  display: flex;
  background: white;
  border-radius: 10px;
  padding: 4px;
  border: 1px solid var(--border);
}

.tab {
  padding: 7px 18px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--muted);
  border: none;
  background: none;
  font-family: inherit;
}

.tab.active {
  background: var(--dark);
  color: white;
}

.tab:hover:not(.active) {
  color: var(--teal);
}

.btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.15s;
  position: relative;
}

.btn-icon:hover {
  background: var(--teal-light);
  border-color: var(--teal);
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 3px rgba(26,188,156,0.25);
}

/* ── PROFILE DRAWER (lateral) ── */
.profile-drawer-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0);
  backdrop-filter: blur(0px);
  z-index: 2000;
  justify-content: flex-end;
  display: flex;
  pointer-events: none;
  transition: background 0.35s ease, backdrop-filter 0.35s ease;
}

.profile-drawer-overlay.active {
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(3px);
  pointer-events: auto;
}

.profile-drawer {
  width: 380px;
  max-width: 92vw;
  height: 100vh;
  background: var(--card-bg);
  box-shadow: -8px 0 40px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.profile-drawer-overlay.active .profile-drawer {
  transform: translateX(0);
  opacity: 1;
}

/* ── STATS CARDS ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.stat-card.teal-card {
  background: radial-gradient(circle at top right, #10b981 0%, #059669 100%);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.teal-card .stat-label {
  color: rgba(255, 255, 255, 0.75);
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -1px;
  font-family: inherit;
  line-height: 1.1;
}

.teal-card .stat-value {
  color: white;
  font-size: 28px;
}

.stat-change {
  font-size: 12px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.change-up {
  color: #16a34a;
}

.change-down {
  color: var(--accent-red);
}

.teal-card .stat-change {
  color: rgba(255, 255, 255, 0.85);
}

.stat-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 22px;
  opacity: 0.15;
}

.teal-card .stat-icon {
  opacity: 0.3;
}

/* ── CARDS ── */
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
}

.card-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.full-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 24px;
  overflow: hidden;
}

/* ── BUTTONS ── */
.btn-sm {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  font-family: 'Sora', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

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

.btn-primary:hover {
  background: var(--teal-dark);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--bg);
}

.btn-dark {
  background: var(--dark);
  color: white;
}

.btn-dark:hover {
  background: #2d3748;
}

.btn-danger {
  background: var(--accent-red);
  color: white;
}

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

/* ── STATUS PILLS ── */
.status-pill {
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.status-pending {
  background: var(--pending-bg);
  color: var(--pending-text);
}

.status-done {
  background: var(--done-bg);
  color: var(--done-text);
}

.status-prep {
  background: var(--prep-bg);
  color: var(--prep-text);
}

.status-canceled {
  background: #fef2f2;
  color: var(--accent-red);
}

/* ── TABLE ── */
table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

tbody tr {
  transition: background 0.1s;
  cursor: pointer;
}

tbody tr:hover {
  background: var(--bg);
}

tbody td {
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

tbody tr:last-child td {
  border-bottom: none;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

/* ── ORDER LIST ── */
.order-list {
  padding: 8px 0;
}

.order-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  background: white;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  cursor: pointer;
}

.order-item:last-child {
  border-bottom: none;
}

.order-item:hover {
  background: #fdfdfd;
}

.order-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.order-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}

.order-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}

.order-amount {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 14px;
  color: var(--dark);
  margin-left: auto;
}

/* ── TABLES GRID ── */
.tables-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 22px;
}

.tables-grid-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  padding: 22px;
}

.table-item {
  border-radius: 16px;
  padding: 14px;
  text-align: center;
  cursor: pointer;
  background: white;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 2px solid transparent;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
  position: relative;
  overflow: hidden;
}

.table-item:hover {
  border-color: #cbd5e1;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.table-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.table-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
}

.table-item:hover::before {
  opacity: 1;
}

.table-item.occupied {
  background: linear-gradient(135deg, #fff7ed 0%, #fff 100%);
  border-color: #fed7aa;
}
.table-item.occupied::before { background: linear-gradient(90deg, #f97316, #fb923c); }

.table-item.free {
  background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
  border-color: #bbf7d0;
}
.table-item.free::before { background: linear-gradient(90deg, #22c55e, #4ade80); }

.table-item.reserved {
  background: linear-gradient(135deg, #eff6ff 0%, #fff 100%);
  border-color: #bfdbfe;
}
.table-item.reserved::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }

.table-item.closed {
  background: linear-gradient(135deg, #fef2f2 0%, #fff 100%);
  border-color: #fecaca;
}
.table-item.closed::before { background: linear-gradient(90deg, #ef4444, #f87171); }

.table-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.3px;
}

.table-status {
  font-size: 10px;
  font-weight: 700;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table-item.occupied .table-status {
  color: #ea580c;
}

.table-item.free .table-status {
  color: #16a34a;
}

.table-item.reserved .table-status {
  color: #2563eb;
}

.table-item.closed .table-status {
  color: #dc2626;
}

.table-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-top: 4px;
}

/* Mesas icon wrapper */
.mesas-table-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
  transition: transform 0.2s;
}
.table-item:hover .mesas-table-icon {
  transform: scale(1.1);
}
.table-item.free .mesas-table-icon { background: rgba(34, 197, 94, 0.12); color: #16a34a; }
.table-item.occupied .mesas-table-icon { background: rgba(249, 115, 22, 0.12); color: #ea580c; }
.table-item.reserved .mesas-table-icon { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.table-item.closed .mesas-table-icon { background: rgba(239, 68, 68, 0.12); color: #dc2626; }

/* ── MENU CARDS ── */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 20px;
}

.menu-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  background: var(--card-bg);
}

.menu-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  transform: translateY(-3px);
}

.menu-card:hover .menu-actions {
  opacity: 1;
  transform: translateY(0);
}

.menu-card:hover .menu-details {
  max-height: 120px;
  opacity: 1;
  margin-top: 8px;
}

.menu-img {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  position: relative;
}

.menu-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transform: translateY(-6px);
  transition: all 0.2s ease;
  z-index: 2;
}

.menu-actions .btn-sm {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.menu-actions .btn-sm:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.menu-body {
  padding: 12px 14px 14px;
}

.menu-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.2px;
  line-height: 1.3;
}

.menu-cat {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}

.menu-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 800;
  color: var(--teal);
  margin-top: 6px;
}

.menu-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.menu-pills .status-pill {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 6px;
}

.menu-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 0;
}

.menu-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* ── CATEGORY TAGS ── */
.cat-tags {
  display: flex;
  gap: 8px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--muted);
}

.cat-tag.active {
  background: var(--teal-light);
  border-color: var(--teal);
  color: var(--teal-dark);
}

.cat-tag:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

/* ── FORMS ── */
.form-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
}

.inp {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  color: var(--dark);
  background: white;
  outline: none;
  transition: border 0.15s;
}

.inp:focus {
  border-color: var(--teal);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--muted);
  width: 220px;
}

.search-box input {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: var(--dark);
  outline: none;
  width: 100%;
}

/* ── CHART ── */
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100px;
  padding: 10px 22px 0;
}

.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}

.bar {
  width: 100%;
  border-radius: 6px 6px 0 0;
  transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.bar:hover {
  filter: brightness(1.1);
  transform: scaleY(1.03);
  transform-origin: bottom;
  box-shadow: 0 0 12px rgba(26, 188, 156, 0.4);
}

.bar-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.bar-val {
  font-size: 10px;
  font-family: inherit;
  font-weight: 600;
  color: var(--teal);
  position: absolute;
  top: -24px;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.bar-col:hover .bar-val {
  opacity: 1;
  transform: translateY(0);
}

.chart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 22px 18px;
}

/* ── BOTTOM GRID ── */
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 20px;
}

/* ── UPGRADE CARD ── */
.upgrade-card {
  background: linear-gradient(135deg, #1abc9c 0%, #0f9d7e 100%);
  border-radius: var(--radius);
  padding: 24px;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upgrade-card .price {
  font-size: 32px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
}

.upgrade-card .sub {
  font-size: 13px;
  opacity: 0.8;
  margin-top: -8px;
}

.upgrade-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 4px;
}

.upgrade-card p {
  font-size: 13px;
  opacity: 0.8;
  line-height: 1.5;
}

/* ── MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

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

.modal {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 500px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  animation: fadeUp 0.25s ease;
}

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

.modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
}

.modal-close {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: var(--bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.15s;
}

.modal-close:hover {
  background: #fef2f2;
  color: var(--accent-red);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  color: var(--dark);
  outline: none;
  transition: border 0.15s;
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
}

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

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── TOAST ── */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: white;
  animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
  box-shadow: var(--shadow-lg);
}

.toast.success {
  background: var(--teal);
}

.toast.error {
  background: var(--accent-red);
}

.toast.info {
  background: var(--accent-blue);
}

/* ── NOTIFICATION DOT ── */
.notif-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-red);
  border-radius: 50%;
  position: absolute;
  top: -2px;
  right: -2px;
  border: 2px solid white;
}

/* ── CELL ── */
.cell-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cell-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.empty-state .icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 13px;
}

/* ── LOADING ── */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: var(--muted);
  font-size: 14px;
  gap: 10px;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.3);
  }
}

.stat-card,
.card,
.full-card,
.bottom-grid>* {
  animation: fadeUp 0.4s ease both;
}

.stat-card:nth-child(1) {
  animation-delay: 0.05s;
}

.stat-card:nth-child(2) {
  animation-delay: 0.10s;
}

.stat-card:nth-child(3) {
  animation-delay: 0.15s;
}

.stat-card:nth-child(4) {
  animation-delay: 0.20s;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

/* ── CONFIGURAÇÕES PAGE ── */

/* Expediente Box */
.config-expediente-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.config-expediente-indicator {
  display: flex;
  align-items: center;
  gap: 14px;
}

.config-expediente-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.3s;
}

.config-expediente-indicator.open .config-expediente-dot {
  background: var(--done-text);
  box-shadow: 0 0 8px rgba(22, 163, 74, 0.4);
  animation: pulse 2s infinite;
}

.config-expediente-indicator.closed .config-expediente-dot {
  background: var(--accent-red);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}

.config-expediente-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--dark);
}

.config-expediente-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* Group Sections */
.config-group-section {
  padding: 24px 22px 8px;
  border-bottom: 1px solid var(--border);
}

.config-group-section:last-of-type {
  border-bottom: none;
}

.config-group-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.config-group-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.config-group-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
}

.config-group-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* Fields Grid */
.config-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

@media (max-width: 1200px) {
  .config-fields-grid {
    grid-template-columns: 1fr;
  }
}

.config-field-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  transition: all 0.2s;
}

.config-field-card:hover {
  border-color: var(--teal);
  box-shadow: 0 2px 8px rgba(26, 188, 156, 0.08);
}

.config-field-card.customized {
  border-color: var(--accent-orange);
  background: #fffcf8;
}

.config-field-card.customized:hover {
  border-color: var(--accent-orange);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.1);
}

.config-field-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.config-field-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
}

.config-restore-btn {
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: white;
  color: var(--muted);
  transition: all 0.15s;
  font-family: 'Sora', sans-serif;
}

.config-restore-btn:hover:not(:disabled) {
  background: var(--bg);
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.config-restore-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.config-field-desc {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
  line-height: 1.4;
}

.config-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--dark);
  outline: none;
  transition: border 0.15s;
  background: white;
  resize: vertical;
  min-height: 60px;
}

.config-textarea:focus {
  border-color: var(--teal);
}

/* Variable Tags */
.config-vars {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.config-var-tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--teal-light);
  color: var(--teal-dark);
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
}

/* Form Footer */
.config-form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 22px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

/* ── PAGE VISIBILITY ── */
.page {
  display: none;
}

.page.active {
  display: block;
}

/* ══════════════════════════════════════════
   VENDAS PAGE — Modernized Components
   ══════════════════════════════════════════ */

/* ── Stat Cards ── */
.vendas-stat {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.vendas-stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.vendas-stat.accent-green  { border-left-color: #10b981; }
.vendas-stat.accent-purple { border-left-color: var(--accent-purple); }
.vendas-stat.accent-blue   { border-left-color: var(--accent-blue); }
.vendas-stat.accent-red    { border-left-color: var(--accent-red); }

.vendas-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vendas-stat-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.vendas-stat-icon.icon-green {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #059669;
}

.vendas-stat-icon.icon-purple {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  color: #7c3aed;
}

.vendas-stat-icon.icon-blue {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #2563eb;
}

.vendas-stat-icon.icon-red {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #dc2626;
}

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

.vendas-stat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.vendas-stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -1px;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.1;
}

.vendas-stat-sub {
  font-size: 12px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Chip / Pill Filters ── */
.vendas-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.vendas-chip {
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--card-bg);
  color: var(--muted);
  transition: all 0.2s;
  font-family: 'Sora', sans-serif;
}

.vendas-chip:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
  background: var(--teal-light);
}

.vendas-chip.active {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: white;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(26, 188, 156, 0.3);
}

/* ── Insight Metrics ── */
.vendas-insight {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-left: 3px solid var(--teal);
  transition: transform 0.15s, box-shadow 0.15s;
}

.vendas-insight:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.vendas-insight-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vendas-insight-label svg {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}

.vendas-insight-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
}

/* ── Progress Bar ── */
.vendas-progress {
  height: 6px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}

.vendas-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
}

.vendas-progress-fill.purple {
  background: linear-gradient(90deg, #a78bfa, #7c3aed);
}

.vendas-progress-fill.orange {
  background: linear-gradient(90deg, #fb923c, #ea580c);
}

.vendas-progress-fill.blue {
  background: linear-gradient(90deg, #60a5fa, #2563eb);
}

/* ── Bar Chart Enhanced ── */
.vendas-bar {
  width: 100%;
  border-radius: 5px 5px 0 0;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
}

.vendas-bar.bar-teal {
  background: linear-gradient(180deg, var(--teal) 0%, #0f9d7e 100%);
}

.vendas-bar.bar-orange {
  background: linear-gradient(180deg, var(--accent-orange) 0%, #ea580c 100%);
}

.vendas-bar:hover {
  filter: brightness(1.12);
  transform: scaleY(1.04);
  transform-origin: bottom;
}

/* ── Tables Enhanced ── */
.vendas-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

.vendas-table tbody tr:hover {
  background: var(--teal-light) !important;
}

.vendas-table thead th {
  background: linear-gradient(180deg, #f8fafc 0%, var(--bg) 100%);
  padding: 14px 16px;
  font-size: 10px;
  letter-spacing: 1px;
}

.vendas-table .rank-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vendas-rank-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
}

.vendas-rank-badge.rank-1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; }
.vendas-rank-badge.rank-2 { background: linear-gradient(135deg, #cbd5e1, #94a3b8); color: #fff; }
.vendas-rank-badge.rank-3 { background: linear-gradient(135deg, #fdba74, #f97316); color: #fff; }
.vendas-rank-badge.rank-other { background: var(--bg); color: var(--muted); }

/* ── Low Sales Cards ── */
.vendas-low-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #fffbf5 100%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.vendas-low-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.vendas-low-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.vendas-low-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--dark);
}

.vendas-low-cat {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.vendas-low-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.vendas-low-metric-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.vendas-low-metric-value {
  font-weight: 800;
  font-size: 16px;
  color: var(--dark);
  margin-top: 2px;
}

/* ── Section Titles ── */
.vendas-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.vendas-section-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

/* ── Animations ── */
@keyframes vendas-fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vendas-animate {
  animation: vendas-fadeSlideUp 0.4s ease both;
}

.vendas-animate:nth-child(1) { animation-delay: 0.03s; }
.vendas-animate:nth-child(2) { animation-delay: 0.06s; }
.vendas-animate:nth-child(3) { animation-delay: 0.09s; }
.vendas-animate:nth-child(4) { animation-delay: 0.12s; }
.vendas-animate:nth-child(5) { animation-delay: 0.15s; }
.vendas-animate:nth-child(6) { animation-delay: 0.18s; }

/* ── Sales Report Header ── */
.vendas-report-header {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.vendas-report-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal-light);
  color: var(--teal-dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-left: 8px;
}

/* ── Filter Area ── */
.vendas-filter-area {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.vendas-filter-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.vendas-filter-dates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  align-items: end;
}

.vendas-comparison-note {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  margin-top: 12px;
}

.vendas-comparison-note svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .section-grid {
    grid-template-columns: 1fr;
  }
}

/* ── MODAL WIDE / MENU ITEM MODAL ── */
.modal--lg {
  width: 860px;
}

.modal--lg .modal-header {
  padding: 22px 28px;
  position: sticky;
  top: 0;
  background: white;
  z-index: 5;
  border-bottom: 1px solid var(--border);
}

.modal--lg .modal-header h3 {
  font-size: 18px;
  letter-spacing: -0.01em;
}

.modal-header-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 500;
}

.modal--lg .modal-body {
  padding: 24px 28px 28px;
  background: #fafbfc;
}

.modal--lg .modal-footer {
  padding: 16px 28px;
  position: sticky;
  bottom: 0;
  background: white;
  z-index: 5;
}

.form-section {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 16px;
}

.form-section + .form-section {
  margin-top: 0;
}

.form-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.form-section-head-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.form-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary, var(--dark));
  letter-spacing: -0.005em;
}

.form-section-subtitle {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 500;
}

.form-section--soft {
  background: rgba(15, 23, 42, 0.02);
}

.modal--lg .form-row-2 {
  gap: 14px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.field-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.45;
}

.form-group .field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.form-group .field-label-row label {
  margin-bottom: 0;
}

.field-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--muted);
}

.field-badge--required {
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
}

.field-badge--optional {
  background: rgba(15, 23, 42, 0.05);
  color: var(--muted);
}

.toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  margin-bottom: 10px;
}

.toggle-row input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.toggle-row-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toggle-row-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary, var(--dark));
}

.toggle-row-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 720px) {
  .modal--lg {
    width: 100%;
  }
  .form-row-2,
  .form-row-3 {
    grid-template-columns: 1fr;
  }
}
