/* =====================================================================
   La Panini ��� Admin Panel Styles
   Tema profissional alinhado +� identidade visual da loja
   ===================================================================== */

/* --- Brand color overrides for admin --- */
:root {
  --header-h: 90px;
  --sidebar-w: 250px;
  --header-blur: blur(12px);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Admin Layout (shared) ---------- */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; background: var(--color-bg-main); }
.sidebar { background: var(--color-surface-primary); border-right: 1px solid var(--color-border); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 10; }
.sidebar__brand { padding: 1.25rem 1rem; border-bottom: 1px solid var(--color-border); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; background: linear-gradient(180deg, var(--color-surface-primary) 0%, var(--color-surface-secondary) 100%); text-align: center; }
.brand-logo img { height: 40px; width: auto; filter: drop-shadow(0 2px 4px rgba(242,107,33,0.15)); }
.sidebar__brand-info { display: flex; flex-direction: column; }
.sidebar__brand-sub { font-family: var(--font-family-heading); font-size: var(--font-size-lg); color: var(--color-accent); text-transform: uppercase; letter-spacing: var(--letter-spacing-condensed); font-weight: var(--font-weight-semibold); }
.sidebar__nav { padding: 1rem; flex: 1; overflow-y: auto; }
.sidebar__nav a { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.85rem; border-radius: var(--radius-sm); color: var(--color-text-secondary); text-decoration: none; font-size: 0.875rem; transition: all 0.15s var(--ease); margin-bottom: 0.25rem; position: relative; }
.sidebar__nav a::before {
  content: '';
  position: absolute;
  left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 0;
  background: linear-gradient(180deg, var(--color-accent), var(--color-accent));
  border-radius: 0 3px 3px 0;
  transition: height 0.2s var(--ease), opacity 0.2s;
  opacity: 0;
}
.sidebar__nav a:hover { background: rgba(255,104,31,0.08); color: var(--color-text-primary); }
.sidebar__nav a:hover::before { height: 70%; opacity: 1; background: linear-gradient(180deg, var(--color-accent), rgba(255,104,31,0.7)); }
.sidebar__nav a.is-active { background: linear-gradient(90deg, rgba(255,104,31,0.12) 0%, rgba(255,104,31,0.04) 100%); color: var(--color-accent); font-weight: var(--font-weight-semibold); }
.sidebar__nav a.is-active::before { height: 70%; opacity: 1; background: var(--color-accent); }
.sidebar__nav a.is-active svg { stroke: var(--color-accent); }
.nav-divider { height: 1px; background: var(--color-border); margin: 0.5rem 0; }
.nav-section { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-text-secondary); padding: 0 0.5rem; margin-top: 1rem; margin-bottom: 0.5rem; font-weight: 700; }
.sidebar__status { padding: 1rem; border-top: 1px solid var(--color-border); background: var(--color-surface-secondary); }
.sidebar__status-top { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.875rem; }
.sidebar__status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-success); box-shadow: 0 0 0 2px var(--color-surface-secondary), 0 0 10px var(--color-success); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.sidebar__status-sub { font-size: 0.75rem; color: var(--color-text-secondary); margin-top: 0.25rem; }
.sidebar__status-link { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.75rem; font-size: 0.8rem; color: var(--color-accent); text-decoration: none; font-weight: 500; }
.sidebar__status-link:hover { text-decoration: underline; color: var(--color-accent); }
.cf-slot { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--color-border); text-align: center; }
.cf-hint { font-size: 0.7rem; color: var(--color-text-secondary); }

/* ---------- Topbar ---------- */
.main { display: flex; flex-direction: column; min-height: 100vh; }
.topbar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; padding: 0 1.5rem; background: var(--color-surface-primary); border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 20; box-shadow: var(--shadow-sm); backdrop-filter: var(--header-blur); -webkit-backdrop-filter: var(--header-blur); }
.topbar__left { display: flex; align-items: center; gap: 0.75rem; }
.topbar__brand { display: flex; align-items: center; gap: 0.75rem; }
.topbar__logo img { height: 40px; width: auto; filter: drop-shadow(0 2px 4px rgba(242,107,33,0.15)); }
.topbar__brand-info { display: flex; flex-direction: column; }
.topbar__brand-sub { font-family: var(--font-family-heading); font-size: var(--font-size-lg); color: var(--color-accent); text-transform: uppercase; letter-spacing: var(--letter-spacing-condensed); font-weight: var(--font-weight-semibold); }
.nav-toggle { display: none; padding: 0.5rem; background: none; border: 1px solid var(--color-border); border-radius: var(--radius-sm); cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--color-text-primary); margin: 4px 0; transition: 0.2s; }
.topbar-btn { padding: 0.5rem; background: none; border: 1px solid transparent; border-radius: var(--radius-sm); cursor: pointer; color: var(--color-text-secondary); display: flex; align-items: center; justify-content: center; transition: all 0.15s var(--ease); }
.topbar-btn:hover { background: var(--color-surface-secondary); color: var(--color-text-primary); border-color: var(--color-border); }
.topbar__date { font-size: 0.75rem; color: var(--color-text-secondary); font-variant-numeric: tabular-nums; }
#page-title { font-family: var(--font-family-heading); font-size: 1.125rem; font-weight: 700; color: var(--color-text-primary); letter-spacing: -0.02em; }
.topbar__clock { font-variant-numeric: tabular-nums; font-size: 0.875rem; color: var(--color-text-secondary); font-family: monospace; }
.topbar__search { position: relative; }
.topbar__search input { width: 280px; padding: 0.5rem 1rem; background: var(--color-bg-main); border: 1px solid var(--color-border); border-radius: var(--radius-sm); color: var(--color-text-primary); font-size: 0.875rem; transition: all 0.15s var(--ease); }
.topbar__search input:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(242,107,33,0.12); background: var(--color-surface-primary); }
.topbar__search input::placeholder { color: var(--color-text-secondary); }
.topbar__right { display: flex; align-items: center; gap: 0.5rem; }
.topbar__user { display: flex; align-items: center; gap: 0.75rem; padding: 0.35rem 0.75rem 0.35rem 0.35rem; background: var(--color-surface-secondary); border: 1px solid var(--color-border); border-radius: var(--radius-md); cursor: pointer; transition: all 0.15s var(--ease); }
.topbar__user:hover { background: var(--color-border); border-color: var(--color-accent); }
.topbar__avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--color-accent), var(--color-accent)); color: var(--color-text-primary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.875rem; font-family: var(--font-family-heading); overflow: hidden; box-shadow: 0 2px 8px rgba(242,107,33,0.2); }
.topbar__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.topbar__user-info { display: flex; flex-direction: column; line-height: 1.2; }
.topbar__user-name { font-weight: 600; font-size: 0.875rem; color: var(--color-text-primary); }
.topbar__user-mail { font-size: 0.7rem; color: var(--color-text-secondary); }
.topbar__user-role { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-accent); font-weight: 600; }

/* ---------- Content ---------- */
.content { flex: 1; padding: 2rem; overflow-y: auto; background: var(--color-bg-main); max-width: 100%; }

/* Container para garantir que o conte+�do n+�o ultrapasse a largura dispon+�vel */
.content-inner { width: 100%; max-width: 100%; overflow-x: hidden; }

/* ---------- Dashboard Header ---------- */
.dash-header { margin-bottom: 1.5rem; }
.dash-header h1 { font-family: var(--font-family-heading); font-size: 1.75rem; font-weight: 700; color: var(--color-text-primary); margin: 0 0 0.5rem; letter-spacing: -0.02em; }
.dash-header p { font-size: 0.875rem; color: var(--color-text-secondary); margin: 0; }

/* ---------- Dashboard KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.kpi { background: var(--color-surface-primary); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.25rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; transition: all 0.2s var(--ease); }
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--color-accent); }
.kpi__icon { width: 48px; height: 48px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--color-accent); flex-shrink: 0; background: transparent; }
.kpi__icon svg { width: 24px; height: 24px; stroke: var(--color-accent); }
.kpi__icon--pedidos { background: transparent; }
.kpi__icon--unidades { background: transparent; }
.kpi__icon--aberto { background: transparent; }
.kpi__icon--preparo { background: transparent; }
.kpi__icon--faturamento { background: transparent; }
.kpi__icon--ticket { background: transparent; }
.kpi__info { display: flex; flex-direction: column; align-items: center; width: 100%; text-align: center; }
.kpi__label { font-size: 0.7rem; color: var(--color-text-secondary); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.25rem; font-weight: 600; white-space: nowrap; }
.kpi__value { font-family: var(--font-family-heading); font-size: 2rem; font-weight: 700; color: var(--color-text-primary); line-height: 1.1; margin-bottom: 0.15rem; overflow-wrap: anywhere; word-break: break-word; }
.kpi__delta { font-size: 0.7rem; font-weight: 500; overflow-wrap: anywhere; word-break: break-word; }
.kpi__delta.up { color: var(--color-success); }
.kpi__delta.down { color: var(--color-error); }
.kpi__delta.neutral { color: var(--color-text-secondary); }

/* Stage 4: Enhanced metrics for large numbers */
.metrics-2xl { font-size: 1.5rem; }
.metrics-3xl { font-size: 1.875rem; }
.metrics-4xl { font-size: 2.25rem; }

/* ---------- Skeleton Loaders (Stage 4) ---------- */
.skeleton {
  background: var(--color-surface-secondary);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}
.skeleton::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: skeleton-shimmer 2s infinite;
}
@keyframes skeleton-shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Skeleton variants for different elements */
.skeleton-text {
  height: 1rem;
  margin: 0.5rem 0;
}
.skeleton-title {
  height: 1.5rem;
  margin: 0.5rem 0;
}
.skeleton-label {
  height: 0.75rem;
  margin: 0.25rem 0;
}
.skeleton-value {
  height: 2rem;
  margin: 0.5rem 0;
}
.skeleton-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  margin: 0.5rem 0;
}
.skeleton-bar {
  height: 0.5rem;
  margin: 0.25rem 0;
}
.skeleton-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  margin: 0.5rem 0;
}

/* Dashboard-specific skeletons */
.skeleton-kpi {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--color-surface-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.skeleton-kpi .skeleton-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.skeleton-kpi .skeleton-info {
  flex: 1;
}
.skeleton-kpi .skeleton-label {
  width: 100%;
}
.skeleton-kpi .skeleton-value {
  width: 100%;
}
.skeleton-kpi .skeleton-delta {
  width: 50%;
}

/* Revenue card skeletons */
.skeleton-revenue-card {
  background: var(--color-surface-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
.skeleton-revenue-card .skeleton-label,
.skeleton-revenue-card .skeleton-value {
  width: 100%;
  margin-bottom: 0.5rem;
}
.skeleton-revenue-bar {
  height: 8px;
  margin: 2px 0;
  border-radius: 4px;
}

/* Chart skeletons */
.skeleton-chart {
  height: 120px;
  background: var(--color-surface-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding-top: 1rem;
}
.skeleton-chart-bar {
  flex: 1;
  width: 100%;
  border-radius: 4px 4px 0 0;
}

/* Stage 4: Responsive metrics grid */
@media (max-width: 1400px) {
  .kpis { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .revenue-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .kpis { grid-template-columns: 1fr; }
  .revenue-cards { grid-template-columns: 1fr; }
}

/* ---------- Dashboard Grid Layout (New Responsive Grid) ---------- */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.dash-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.dash-col {
  min-width: 0;
}

/* Column width modifiers */
.dash-col--1 { }
.dash-col--2 { }

/* Row variants */
.dash-row--ops {
  /* Pedidos recentes (2/3) + Status da loja (1/3) */
}

.dash-row--revenue {
  /* 3 revenue cards side by side */
  gap: 1.5rem !important;
}

.dash-row--analytics {
  /* Faturamento semanal (2/3) + Mais vendidos (1/3) */
}

/* Priority card - slightly elevated */
.card--priority {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.card--priority:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.card--status {
  background: linear-gradient(180deg, var(--color-surface-primary) 0%, var(--color-surface-secondary) 100%);
}

.store-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Responsive breakpoints for dashboard grid */
@media (min-width: 768px) {
  .dash-row--ops {
    grid-template-columns: 2fr 1fr;
  }
  .dash-row--revenue {
    grid-template-columns: repeat(3, 1fr);
  }
  .dash-row--analytics {
    grid-template-columns: 2fr 1fr;
  }
}

@media (max-width: 767px) {
  .dash-row--ops,
  .dash-row--revenue,
  .dash-row--analytics {
    grid-template-columns: 1fr;
  }
  /* Garante que os cards de receita fiquem altura automática no mobile */
  .dash-row--revenue .revenue-card {
    min-height: auto;
    height: auto;
  }
}

/* Revenue cards in grid context - full height */
.dash-row--revenue .revenue-card {
  height: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  padding: 1.25rem !important;
}

.dash-row--revenue .revenue-card__bars {
  margin-top: auto;
}

/* Chart card - taller on desktop */
@media (min-width: 768px) {
  .dash-row--analytics .card--chart .bars {
    height: 160px;
  }
}

/* Ranking card */
.card--ranking .ranking-list {
  max-height: 340px;
  overflow-y: auto;
}

/* ---------- Financial Metrics Card ---------- */
.dash-row--financial {
  grid-template-columns: 1fr;
}

.card--financial {
  background: linear-gradient(180deg, var(--color-surface-primary) 0%, var(--color-surface-secondary) 100%);
}

.financial-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.financial-metric {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--color-bg-main);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease);
}

.financial-metric:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.financial-metric__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
  background: rgba(242,107,33,0.1);
}

.financial-metric__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-accent);
}

.financial-metric__icon--coef { background: rgba(242,107,33,0.1); }
.financial-metric__icon--margin { background: rgba(127,176,105,0.1); }
.financial-metric__icon--margin svg { stroke: var(--color-success); }
.financial-metric__icon--produtos { background: rgba(74,144,226,0.1); }
.financial-metric__icon--produtos svg { stroke: var(--color-info); }
.financial-metric__icon--insumos { background: color-mix(in srgb, var(--color-warning) 12%, transparent); }
.financial-metric__icon--insumos svg { stroke: var(--color-warning); }

.financial-metric__info {
  flex: 1;
  min-width: 0;
}

.financial-metric__label {
  font-size: 0.65rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.financial-metric__value {
  font-family: var(--font-family-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.2;
  margin-bottom: 0.15rem;
  white-space: nowrap;
}

.financial-metric__hint {
  font-size: 0.65rem;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .financial-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .financial-metrics {
    grid-template-columns: 1fr;
  }
}

/* ---------- Revenue Cards ---------- */
.revenue-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.revenue-card { background: var(--color-surface-primary); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.25rem !important; transition: all 0.2s var(--ease); display: flex; flex-direction: column; min-height: 280px; }
.revenue-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--color-accent); }
.revenue-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.revenue-card__label { font-size: 0.7rem; color: var(--color-text-secondary); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.revenue-card__date { font-size: 0.75rem; padding: 0.25rem 0.5rem; background: var(--color-bg-main); border: 1px solid var(--color-border); border-radius: var(--radius-sm); color: var(--color-text-primary); }
.revenue-card__nav { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.revenue-card__nav-btn { padding: 0.25rem; background: var(--color-bg-main); border: 1px solid var(--color-border); border-radius: var(--radius-sm); color: var(--color-text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s var(--ease); flex-shrink: 0; }
.revenue-card__nav-btn:hover { background: var(--color-surface-secondary); color: var(--color-text-primary); border-color: var(--color-accent); transform: scale(1.05); }
.revenue-card__nav-btn svg { width: 16px; height: 16px; }
.revenue-card__range { font-size: 0.7rem; color: var(--color-text-secondary); min-width: 0; flex: 1; text-align: center; white-space: normal; overflow-wrap: anywhere; word-break: break-word; line-height: 1.3; }
.revenue-card__value { font-family: var(--font-family-heading); font-size: 1.875rem; font-weight: 700; color: var(--color-text-primary); margin-bottom: 0.15rem; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.revenue-card__delta { font-size: 0.7rem; font-weight: 500; margin-bottom: 0.75rem; white-space: normal; overflow-wrap: anywhere; word-break: break-word; line-height: 1.3; }
.revenue-card__delta.up { color: var(--color-success); }
.revenue-card__delta.down { color: var(--color-error); }
.revenue-card__delta.neutral { color: var(--color-text-secondary); }
.revenue-card__bars { display: flex; align-items: flex-end; gap: 3px; height: 48px; width: 100%; margin-top: auto; }
.mini-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 0.2rem; height: 100%; }
.mini-bar__fill { width: 100%; background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-accent) 100%); border-radius: 2px 2px 0 0; transition: height 0.3s var(--ease); opacity: 0.85; min-height: 4px; }
.mini-bar__fill:hover { opacity: 1; }
.mini-bar__day { font-size: 0.55rem; color: var(--color-text-secondary); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; text-align: center; white-space: nowrap; }

/* Revenue cards responsive */
@media (max-width: 1100px) {
  .revenue-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .revenue-cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .revenue-card { min-height: auto; padding: 1rem !important; }
  .revenue-card__value { font-size: 1.5rem; }
}

/* ---------- Panel Grid ---------- */
.panel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 768px) {
  .panel-grid { grid-template-columns: 1fr; }
}
.card { background: var(--color-surface-primary); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.5rem; transition: all 0.2s var(--ease); }
.card:hover { box-shadow: var(--shadow-md); border-color: var(--color-accent); }
.card h3 { font-family: var(--font-family-heading); font-size: 1rem; font-weight: 600; margin-bottom: 1.25rem; color: var(--color-text-primary); display: flex; align-items: center; gap: 0.5rem; }
.card h3::before { content: ''; width: 4px; height: 1.25rem; background: linear-gradient(180deg, var(--color-accent), var(--color-accent)); border-radius: 2px; }
.card__hint { font-size: 0.85rem; color: var(--color-text-secondary); text-align: center; padding: 2rem; }

/* ---------- Bars (weekly chart) ---------- */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding-top: 1rem; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.bar__fill { width: 100%; background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-accent) 100%); border-radius: 4px 4px 0 0; transition: height 0.3s var(--ease); opacity: 0.85; }
.bar__fill:hover { opacity: 1; transform: scaleX(1.05); }
.bar__day { font-size: 0.65rem; color: var(--color-text-secondary); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }

/* ---------- Ranking List ---------- */
.ranking-list { display: flex; flex-direction: column; gap: 0.5rem; }
.ranking-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.85rem; background: var(--color-bg-main); border-radius: var(--radius-sm); border: 1px solid var(--color-border); transition: all 0.15s var(--ease); }
.ranking-item:hover { border-color: var(--color-accent); background: var(--color-surface-secondary); }
.ranking-pos { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--color-accent), var(--color-accent)); color: var(--color-text-primary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.75rem; flex-shrink: 0; box-shadow: 0 2px 6px rgba(242,107,33,0.3); }
.ranking-item span { font-size: 0.825rem; color: var(--color-text-primary); }

/* ---------- Alerts ---------- */
.alert { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.85rem 1rem; border-radius: var(--radius-sm); margin-bottom: 0.75rem; border: 1px solid transparent; }
.alert__dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 0.25rem; flex-shrink: 0; }
.alert--warn { background: linear-gradient(90deg, rgba(232,168,56,0.1) 0%, rgba(232,168,56,0.02) 100%); border-color: rgba(232,168,56,0.2); }
.alert--warn .alert__dot { background: var(--color-warning); box-shadow: 0 0 8px var(--color-warning); }
.alert--ok { background: linear-gradient(90deg, rgba(127,176,105,0.1) 0%, rgba(127,176,105,0.02) 100%); border-color: rgba(127,176,105,0.2); }
.alert--ok .alert__dot { background: var(--color-success); box-shadow: 0 0 8px var(--color-success); }
.alert__title { font-weight: 600; display: block; margin-bottom: 0.25rem; font-size: 0.825rem; }
.alert--warn .alert__title { color: var(--color-warning); }
.alert--ok .alert__title { color: var(--color-success); }
.alert p { font-size: 0.8rem; color: var(--color-text-secondary); margin: 0; }

/* ---------- Store Status ---------- */
.store-status { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; margin-bottom: 1rem; font-size: 0.875rem; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--color-success); box-shadow: 0 0 0 2px var(--color-surface-primary), 0 0 12px var(--color-success); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ---------- Recent Items ---------- */
.recent-list { display: flex; flex-direction: column; gap: 0; }
.recent-item { display: flex; justify-content: space-between; align-items: center; padding: 0.7rem 0.85rem; background: var(--color-surface-primary); border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: 0.825rem; transition: all 0.15s var(--ease); margin-bottom: 0.25rem; }
.recent-item:last-child { margin-bottom: 0; }
.recent-item:hover { border-color: var(--color-accent); background: var(--color-surface-secondary); }
.recent-item .dim { color: var(--color-text-secondary); font-size: 0.75rem; }

/* ---------- Empty State ---------- */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--color-text-secondary); background: var(--color-surface-primary); border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.empty-state svg { width: 80px; height: 80px; opacity: 0.5; margin-bottom: 1.5rem; color: var(--color-accent); }
.empty-state__title { font-family: var(--font-family-heading); font-size: var(--font-size-lg); font-weight: var(--font-weight-semibold); margin-bottom: 1rem; color: var(--color-text-primary); text-transform: uppercase; letter-spacing: var(--letter-spacing-condensed); }
.empty-state__text { font-size: var(--font-size-base); max-width: 320px; margin: 0 auto; line-height: var(--line-height-relaxed); color: var(--color-text-secondary); }

/* ---------- Toolbar ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--color-border); }
.toolbar__left { display: flex; align-items: center; gap: 1rem; }
.toolbar__right { display: flex; align-items: center; gap: 0.75rem; }
.toolbar__search { display: flex; gap: 0.5rem; }
.toolbar__search input { width: 280px; }
.toolbar__filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--color-border); width: 100%; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { padding: 0.4rem 0.85rem; background: var(--color-bg-main); border: 1px solid var(--color-border); border-radius: 999px; font-size: 0.75rem; color: var(--color-text-primary); cursor: pointer; transition: all 0.15s var(--ease); font-weight: 500; }
.chip:hover { border-color: var(--color-accent); color: var(--color-accent); background: var(--color-surface-secondary); transform: translateY(-1px); }
.chip.is-on { background: linear-gradient(135deg, var(--color-accent), var(--color-accent)); border-color: var(--color-accent); color: var(--color-text-primary); box-shadow: 0 2px 8px rgba(242,107,33,0.25); }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--color-border); background: var(--color-surface-primary); }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.825rem; }
.tbl th, .tbl td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--color-border); }
.tbl th { font-weight: 600; color: var(--color-text-secondary); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; background: var(--color-surface-secondary); }
.tbl td { text-align: left; }
.tbl td.number, .tbl td.price, .tbl td.value, .tbl td.financial { text-align: right; }
.tbl tbody tr { transition: background 0.15s var(--ease); }
.tbl tbody tr:hover { background: var(--color-surface-secondary); }
.tbl tr:last-child td { border-bottom: none; }
.tbl__actions { white-space: nowrap; }
.tbl__actions .btn { margin-right: 0.35rem; }
.tbl__thumb { width: 64px; padding: 0.5rem 1rem; }
.tbl__thumb-img { width: 48px; height: 48px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--color-border); background: var(--color-surface-secondary); display: block; }
.prod-modal__media { display: flex; justify-content: center; margin-bottom: 1rem; }
.prod-modal__img { width: 100%; max-width: 280px; height: 160px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--color-border); background: var(--color-surface-secondary); }

/* ---------- Price ---------- */
.price { font-variant-numeric: tabular-nums; font-family: var(--font-family-heading); font-weight: 600; }
.price--std { color: var(--color-text-primary); font-size: 0.875rem; }
.price--light { color: var(--color-text-secondary); font-size: 0.825rem; }

/* ---------- Badge ---------- */
.badge { display: inline-flex; align-items: center; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.badge--brand { background: var(--color-accent); color: var(--color-text-primary); }
.badge--green { background: var(--color-success); color: var(--color-text-primary); }
.badge--red { background: var(--color-error); color: var(--color-text-primary); }
.badge--amber { background: var(--color-warning); color: var(--color-text-primary); }
.badge--muted { background: var(--color-border); color: var(--color-text-secondary); }

/* ---------- Toggle ---------- */
.toggle { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle__track { width: 44px; height: 24px; background: var(--color-border); border-radius: 999px; transition: all 0.2s var(--ease); position: relative; box-shadow: inset 0 1px 3px rgba(0,0,0,0.1); }
.toggle__circle { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; background: var(--color-surface-primary); border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,0.15); transition: all 0.2s var(--ease); border: 1px solid var(--color-border); }
.toggle input:checked + .toggle__track { background: linear-gradient(135deg, var(--color-accent), var(--color-accent)); box-shadow: 0 0 0 2px rgba(242,107,33,0.2); }
.toggle input:checked + .toggle__track .toggle__circle { transform: translateX(20px); background: var(--color-text-primary); box-shadow: 0 2px 8px rgba(242,107,33,0.3); }
.toggle input:focus-visible + .toggle__track { outline: none; box-shadow: 0 0 0 3px rgba(242,107,33,0.3); }

/* ---------- Modal Card ---------- */
.modal-card { background: var(--color-surface-primary); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; animation: modalIn 0.2s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: scale(0.96) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--color-border); background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent) 100%); color: var(--color-text-primary); }
.modal__head h3 { font-family: var(--font-family-heading); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }
.drawer__close { background: none; border: none; font-size: 1.5rem; color: var(--color-text-primary); opacity: 0.8; cursor: pointer; padding: 0.25rem; line-height: 1; transition: opacity 0.15s, transform 0.15s; }
.drawer__close:hover { opacity: 1; transform: rotate(90deg); color: var(--color-text-primary); }
.modal__body { padding: 1.5rem 1.25rem; overflow-y: auto; flex: 1; }

/* ---------- Form ---------- */
.field { margin-bottom: 1.25rem; }
.field__label { display: block; font-size: 0.7rem; font-weight: 600; color: var(--color-text-secondary); margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.04em; }
.field__input, .field__select, .field__textarea { width: 100%; padding: 0.7rem 0.9rem; background: var(--color-surface-secondary); border: 1px solid var(--color-border); border-radius: var(--radius-sm); color: var(--color-text-primary); font-size: 0.875rem; font-family: inherit; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; }
.field__input:hover, .field__select:hover, .field__textarea:hover { border-color: var(--color-text-secondary); }
.field__input:focus, .field__select:focus, .field__textarea:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(255,104,31,0.12); background: var(--color-surface-secondary); }
.field__select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; padding-right: 2.5rem; }
.field__textarea { resize: vertical; min-height: 80px; }
.field__hint { display: block; font-size: 0.68rem; color: var(--color-text-secondary); margin-top: 0.35rem; }
.field__row { display: flex; gap: 0.75rem; align-items: flex-end; flex-wrap: wrap; }
.field__row > * { flex: 1; min-width: 120px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* Modal footer actions */
.modal__foot { display: flex; justify-content: flex-end; gap: 0.75rem; padding: 1rem 1.25rem; border-top: 1px solid var(--color-border); background: var(--color-bg-main); margin-top: 0.5rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.65rem 1.1rem; border-radius: 6px; font-size: 0.825rem; font-weight: 600; font-family: inherit; cursor: pointer; border: 1px solid transparent; transition: all 0.15s; white-space: nowrap; position: relative; overflow: hidden; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(242,107,33,0.3); }
.btn--primary { background: var(--color-accent); color: var(--color-text-primary); border-color: var(--color-accent); }
.btn--primary:hover { background: var(--color-accent); border-color: var(--color-accent); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(242,107,33,0.25); }
.btn--ghost { background: transparent; color: var(--color-text-primary); border-color: var(--color-border); }
.btn--ghost:hover { background: var(--color-surface-secondary); border-color: var(--color-accent); color: var(--color-accent); }
.btn--danger { background: var(--color-error); color: var(--color-text-primary); border-color: var(--color-error); }
.btn--danger:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(224,122,79,0.25); }
.btn--sm { padding: 0.4rem 0.75rem; font-size: 0.75rem; }
.btn--full { width: 100%; }

/* Modal footer */
.modal__foot { display: flex; justify-content: flex-end; gap: 0.75rem; padding: 1rem 1.25rem; border-top: 1px solid var(--color-border); background: var(--color-bg-main); margin-top: 0.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .revenue-cards { grid-template-columns: repeat(2, 1fr); }
  .panel-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .kpis { grid-template-columns: 1fr; }
  .revenue-cards { grid-template-columns: 1fr; }
  .content { padding: 1.25rem; }
  .topbar__search input { width: 180px; }
}

/* ---------- Product Grid (Lasanhas, etc) ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.product-card { background: var(--color-surface-primary); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.2s, transform 0.2s; }
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-card__image { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--color-bg-main); }
.product-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.product-card:hover .product-card__image img { transform: scale(1.03); }
.product-card__badge { position: absolute; top: 0.75rem; right: 0.75rem; padding: 0.2rem 0.5rem; border-radius: var(--radius-sm); font-size: 0.65rem; font-weight: 700; }
.product-card__badge.badge--green { background: var(--color-success); color: var(--color-text-primary); }
.product-card__badge.badge--muted { background: var(--color-border); color: var(--color-text-secondary); }
.product-card__toggle { position: absolute; top: 0.75rem; left: 0.75rem; z-index: 1; }
.product-card__toggle .btn { padding: 0.35rem; font-size: 0.7rem; background: rgba(0,0,0,0.4); border: none; color: white; border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.product-card__toggle .btn:hover { background: rgba(0,0,0,0.6); }
.product-card__info { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.product-card__category { font-size: 0.65rem; color: var(--color-text-secondary); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-bottom: 0.25rem; }
.product-card__name { font-family: var(--font-family-heading); font-size: 1rem; font-weight: 700; color: var(--color-text-primary); margin-bottom: 0.25rem; }
.product-card__desc { font-size: 0.75rem; color: var(--color-text-secondary); margin-bottom: 0.5rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card__details { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 0.5rem; border-top: 1px solid var(--color-border); }
.product-card__price { font-family: var(--font-family-heading); font-size: 1.1rem; font-weight: 700; color: var(--color-accent); }
.product-card__sizes { font-size: 0.7rem; color: var(--color-text-secondary); background: var(--color-bg-main); padding: 0.15rem 0.5rem; border-radius: var(--radius-sm); }
.product-card__size-label { font-size: 0.7rem; color: var(--color-text-secondary); background: var(--color-bg-main); padding: 0.15rem 0.5rem; border-radius: var(--radius-sm); font-weight: 500; }
.product-card__actions { display: flex; gap: 0.35rem; padding: 0.75rem 1rem; border-top: 1px solid var(--color-border); background: var(--color-bg-main); }
.product-card__actions .btn { flex: 1; font-size: 0.7rem; padding: 0.4rem 0.5rem; }

/* ---------- Size Grid ---------- */
.size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.size-card { background: var(--color-surface-primary); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; transition: box-shadow 0.2s, transform 0.2s; }
.size-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.size-card__header { display: flex; align-items: center; gap: 1rem; }
.size-card__num { width: 32px; height: 32px; border-radius: 50%; background: var(--color-accent); color: var(--color-text-primary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.875rem; flex-shrink: 0; }
.size-card__info { flex: 1; min-width: 0; }
.size-card__name { font-weight: 600; color: var(--color-text-primary); margin-bottom: 0.2rem; }
.size-card__portions { font-size: 0.75rem; color: var(--color-text-secondary); margin-bottom: 0.2rem; }
.size-card__price { font-family: var(--font-family-heading); font-size: 1rem; font-weight: 700; color: var(--color-accent); }
.size-card__price-hint { font-size: 0.7rem; font-weight: 400; color: var(--color-text-secondary); }
.size-card__actions { display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--color-border); }
.size-card__actions .toggle { flex-shrink: 0; }
.size-card__actions .btn { padding: 0.35rem 0.6rem; font-size: 0.7rem; flex-shrink: 0; }

/* ---------- Size Modal ---------- */
.size-modal__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) {
  .size-modal__fields { grid-template-columns: 1fr; }
  .size-card__actions { justify-content: space-between; }
}

/* ---------- Banner Preview ---------- */
.banner-preview { background: var(--color-surface-primary); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; display: flex; }
.banner-preview__image { width: 160px; min-width: 160px; display: flex; align-items: center; justify-content: center; }
.banner-preview__info { flex: 1; padding: 1rem; display: flex; flex-direction: column; justify-content: center; }
.banner-preview__title { font-family: var(--font-family-heading); font-size: 1rem; font-weight: 700; color: var(--color-text-primary); margin-bottom: 0.25rem; }
.banner-preview__meta { font-size: 0.75rem; color: var(--color-text-secondary); }

/* ---------- Kanban Board (Pedidos) ��� CAMADA 1: base/estrutura ----------
   As camadas 2 (re-theme ~1851) e 3 (grid ~1949) redefinem visual/layout;
   esta camada define todas as pe+�as que elas n+�o sobrescrevem. */
.board { display: flex; gap: 0.625rem; overflow-x: auto; padding-bottom: 0.625rem; min-height: 480px; }
.board--single { justify-content: flex-start; }
.col { flex: 0 0 240px; max-width: 240px; min-width: 220px; background: var(--color-bg-main); border-radius: var(--radius-md); display: flex; flex-direction: column; }
.col__head { display: flex; align-items: center; justify-content: space-between; padding: 0.4rem 0.625rem; background: var(--color-surface-primary); border: 1px solid var(--color-border); border-bottom: none; border-radius: var(--radius-md) var(--radius-md) 0 0; cursor: pointer; user-select: none; }
.col__head .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.col__head b { font-size: 0.65rem; color: var(--color-text-primary); flex: 1; text-align: center; }
.col__count { font-size: 0.55rem; background: var(--color-accent); color: var(--color-text-primary); padding: 0.06rem 0.3rem; border-radius: 999px; min-width: 18px; text-align: center; }
.col__cards { flex: 1; overflow-y: auto; padding: 0.3125rem; min-height: 400px; }
.col__empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 150px; color: var(--color-text-secondary); font-size: 0.7rem; gap: 0.3125rem; }
.col__empty svg { width: 36px; height: 36px; opacity: 0.4; }
.col.is-drag-over { background: rgba(242,107,33,0.08); border: 2px dashed var(--color-accent); }

/* Visual feedback para drop zones v+�lidas/inv+�lidas durante drag */
.col.drop-valid { background: rgba(127,176,105,0.08); border: 2px dashed var(--color-success); }
.col.drop-invalid { background: rgba(224,122,79,0.05); border: 2px dashed var(--color-text-secondary); opacity: 0.5; }

.ord { background: var(--color-surface-primary); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 0.5rem; margin-bottom: 0.25rem; cursor: grab; transition: box-shadow 0.2s, transform 0.2s; position: relative; }
.ord:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.ord.is-dragging { opacity: 0.5; box-shadow: var(--shadow-md); transform: rotate(2deg); }
.ord.just-dropped { animation: dropIn 0.4s var(--ease); }
@keyframes dropIn { from { opacity: 0; transform: translateY(-20px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.ord__handle { position: absolute; top: 0.3125rem; left: 0.3125rem; color: var(--color-text-secondary); font-size: 0.9rem; cursor: grab; user-select: none; opacity: 0; transition: opacity 0.2s; }
.ord:hover .ord__handle { opacity: 1; }
.ord__head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.1875rem; }
.ord__num { font-family: var(--font-family-heading); font-size: 0.7rem; font-weight: 700; color: var(--color-accent); }
.ord__sla { display: flex; align-items: center; gap: 0.15rem; font-size: 0.5rem; font-weight: 600; padding: 0.08rem 0.25rem; border-radius: 999px; white-space: nowrap; }
.ord__sla--ok { background: rgba(127,176,105,0.15); color: var(--color-success); }
.ord__sla--warn { background: rgba(232,168,56,0.15); color: var(--color-warning); }
.ord__sla--late { background: rgba(224,122,79,0.15); color: var(--color-error); }
.ord__name { font-weight: 600; font-size: 0.75rem; color: var(--color-text-primary); margin-bottom: 0.15rem; }
.ord__delivery { margin-bottom: 0.1875rem; }
.meta-tag { display: inline-flex; align-items: center; gap: 0.15rem; font-size: 0.53rem; padding: 0.08rem 0.25rem; border-radius: 999px; font-weight: 500; }
.meta-tag.entrega { background: var(--color-success); color: var(--color-text-primary); }
.meta-tag.retirada { background: var(--color-info); color: var(--color-text-primary); }
.ord__items { font-size: 0.625rem; color: var(--color-text-secondary); line-height: 1.25; margin-bottom: 0.25rem; }
.ord__foot { display: flex; justify-content: space-between; align-items: center; padding-top: 0.25rem; border-top: 1px solid var(--color-border); }
.ord__pay { display: inline-flex; align-items: center; gap: 0.15rem; font-size: 0.53rem; padding: 0.08rem 0.25rem; border-radius: 999px; font-weight: 500; }
.ord__total { font-family: var(--font-family-heading); font-size: 0.825rem; font-weight: 700; color: var(--color-text-primary); }
.ord button { font-size: 0.6rem; padding: 0.25rem 0.45rem; }

/* Scrollbar styling for kanban */
.board::-webkit-scrollbar { height: 8px; }
.board::-webkit-scrollbar-track { background: var(--color-bg-main); border-radius: 4px; }
.board::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 4px; }
.board::-webkit-scrollbar-thumb:hover { background: var(--color-text-secondary); }

/* Cards de pedidos: hierarquia visual e adapta+�+�o ao tema ativo */
.ord {
  --order-status-color: var(--color-accent);
  background: var(--color-surface-primary);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--order-status-color);
  border-radius: var(--radius-md);
  padding: 0.7rem;
  margin-bottom: 0.55rem;
  box-shadow: var(--shadow-sm);
}
.ord[data-order-status="recebido"] { --order-status-color: #e8a838; }
.ord[data-order-status="confirmado"],
.ord[data-order-status="preparacao"],
.ord[data-order-status="entrega"] { --order-status-color: var(--color-accent); }
.ord[data-order-status="entregue"] { --order-status-color: #7fb069; }
.ord:hover { border-color: var(--order-status-color); box-shadow: var(--shadow-md); }
.ord__head { align-items: center; margin-bottom: 0.45rem; }
.ord__num { font-size: 0.78rem; letter-spacing: 0.02em; }
.ord__sla { font-size: 0.62rem; padding: 0.16rem 0.42rem; }
.ord__name { font-size: 0.86rem; margin-bottom: 0.35rem; }
.ord__delivery { margin-bottom: 0.35rem; }
.ord__items { font-size: 0.72rem; margin: 0.45rem 0 0.6rem; }
.ord__foot { padding-top: 0.55rem; gap: 0.5rem; }
.ord__pay { gap: 0.35rem; font-size: 0.68rem; padding: 0.25rem 0.5rem; background: var(--color-surface-secondary); color: var(--color-text-primary); }
.ord__pay-icon { width: 15px; height: 15px; flex: 0 0 15px; }
.ord__pay--pix .ord__pay-icon { color: #20a66a; }
.ord__pay--dinheiro .ord__pay-icon { color: #29945c; }
.ord__pay--cartao .ord__pay-icon { color: #4388df; }
.ord__pay--credito .ord__pay-icon { color: #8a63d2; }
.ord__pay--debito .ord__pay-icon { color: #d08a24; }
.ord__pay--whatsapp .ord__pay-icon { color: #25D366; font-size: .55rem; font-weight: 700; letter-spacing: .02em; }
.ord__pay--whatsapp .ord__pay-icon svg { width: 14px; height: 14px; display: block; }
.ord__pay--outro .ord__pay-icon { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--color-border); font-size: 0.65rem; }
.ord__total { font-size: 0.95rem; color: var(--color-text-primary); }
.ord > div[style*="display:flex"] { gap: 0.35rem !important; margin-top: 0.65rem !important; flex-wrap: wrap; }
.ord button { font-size: 0.67rem; padding: 0.32rem 0.55rem; }

/* Responsive: on small screens, allow horizontal scroll but show scrollbar hint */
@media (max-width: 1200px) {
  .board { padding-bottom: 1.5rem; }
}
@media (max-width: 640px) {
  .col { flex: 0 0 230px; min-width: 210px; }
}

/* =====================================================================
   ORDERS TOOLBAR ��� Base (Desktop)
   ===================================================================== */
.orders-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--color-border); }
.orders-toolbar .toolbar__left { display: flex; align-items: center; gap: 1rem; }
.orders-toolbar .toolbar__left > div { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.orders-toolbar .config-eyebrow { color: var(--color-accent); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.orders-toolbar .toolbar__left h2 { margin: 0.12rem 0 0.25rem; color: var(--color-text-primary); font-size: 1.2rem; }
.orders-toolbar .toolbar__left .card__hint { margin: 0; max-width: 620px; line-height: 1.45; }
.orders-toolbar__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; }
.orders-toolbar__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.orders-toolbar__actions .field__input { width: clamp(190px, 20vw, 280px); min-width: 0; }

/* Touch-friendly drag handle for mobile (no hover on touch devices) */
@media (pointer: coarse) {
  .ord__handle { opacity: 0.6; }
  .ord__handle:active { opacity: 1; }
}

/* =====================================================================
   PEDIDOS ��� Mobile Layout (2 cols per row on mobile ���640px)
   ===================================================================== */

/* Toolbar: stack vertically on mobile ���640px */
@media (max-width: 640px) {
  .orders-toolbar { align-items: stretch; flex-direction: column; gap: .75rem; }
  .orders-toolbar .toolbar__left { order: 1; min-width: 0; }
  .orders-toolbar .toolbar__left .chips { justify-content: flex-start; }
  .orders-toolbar .toolbar__right { order: 2; width: 100%; display: flex; flex-direction: column; gap: .5rem; }
  .orders-toolbar__actions { display: flex; flex-direction: column; gap: .5rem; width: 100%; }
  .orders-toolbar__actions .field__input,
  .orders-toolbar__actions .btn { width: 100%; min-width: 0; }
  .orders-toolbar__actions > * { width: 100%; }
  .orders-toolbar__actions .btn { justify-content: center; }

  /* Kanban board: 2 columns per row on mobile (���640px) */
  .board { flex-direction: row; flex-wrap: wrap; overflow-x: visible; overflow-y: auto; min-height: auto; gap: .5rem; padding-bottom: 1rem; }
  .col { flex: 0 0 calc(50% - 0.25rem); max-width: calc(50% - 0.25rem); min-width: 0; width: auto; border-radius: var(--radius-md); border: 1px solid var(--color-border); background: var(--color-surface-primary); box-shadow: var(--shadow-sm); }
  .col__head { border-radius: var(--radius-md) var(--radius-md) 0 0; }
  .col__cards { max-height: none; min-height: auto; }
  .col__empty { height: 80px; }
}

/* Pedidos ��� Table view mobile adjustments (���600px) */
@media (max-width: 600px) {
  .pedidos-table-wrap .table-wrap { overflow: visible; border: 0; box-shadow: none; background: transparent; }
  .pedidos-table-wrap .tbl, .pedidos-table-wrap .tbl tbody { display: block; width: 100%; min-width: 0; }
  .pedidos-table-wrap .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .pedidos-table-wrap .tbl tbody { display: grid; gap: .7rem; }
  .pedidos-table-wrap .tbl tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-primary); box-shadow: var(--shadow-sm); }
  .pedidos-table-wrap .tbl tbody tr:hover { background: var(--color-surface-primary); }
  .pedidos-table-wrap .tbl td { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-width: 0; padding: .7rem .75rem; border-bottom: 1px solid var(--color-border); text-align: left !important; overflow-wrap: anywhere; }
  .pedidos-table-wrap .tbl td::before { content: attr(data-label); color: var(--color-text-secondary); font-size: .61rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
  .pedidos-table-wrap .tbl td:first-child { display: none; }
  .pedidos-table-wrap .tbl td:nth-child(2), .pedidos-table-wrap .tbl td:last-child { grid-column: 1 / -1; }
  .pedidos-table-wrap .tbl td:nth-child(2) { display: block; background: color-mix(in srgb, var(--color-accent) 5%, var(--color-surface-primary)); }
  .pedidos-table-wrap .tbl td:nth-child(2)::before { content: none; }
  .pedidos-table-wrap .tbl__actions { display: flex; flex-direction: row; flex-wrap: nowrap; gap: .45rem; white-space: nowrap; }
  .pedidos-table-wrap .tbl__actions .btn { flex: 0 0 auto; min-width: 80px; padding: .4rem .6rem; font-size: .75rem; }
  .pedidos-table-wrap .tbl td:nth-child(3), .pedidos-table-wrap .tbl td:nth-child(4) { display: none; }

  /* Pagination chips mobile */
  .pedidos-table-wrap .pagination-controls { gap: .4rem; }
  .pedidos-table-wrap .pagination-controls .chip { padding: .35rem .6rem; font-size: .7rem; min-width: 32px; }
}

@media (max-width: 480px) {
  .pedidos-table-wrap .tbl tbody tr { grid-template-columns: 1fr; }
  .pedidos-table-wrap .tbl td:nth-child(2) { padding: .6rem .7rem; }
  .pedidos-table-wrap .tbl__actions .btn { min-width: 70px; padding: .35rem .5rem; font-size: .7rem; }
}

/* Pedidos ��� Kanban mobile improvements (���640px) */
@media (max-width: 640px) {
  .board .pagination-controls { gap: .4rem; justify-content: center; }
  .board .pagination-controls .chip { padding: .35rem .6rem; font-size: .7rem; min-width: 32px; }
  
  /* Order cards: more compact on mobile */
  .col .ord { padding: .6rem; margin-bottom: .4rem; }
  .col .ord__head { gap: .3rem; margin-bottom: .3rem; }
  .col .ord__num { font-size: .7rem; }
  .col .ord__sla { font-size: .55rem; padding: .1rem .3rem; }
  .col .ord__name { font-size: .78rem; margin-bottom: .2rem; }
  .col .ord__delivery { margin-bottom: .2rem; }
  .col .ord__items { font-size: .65rem; margin: .25rem 0 .35rem; }
  .col .ord__foot { gap: .3rem; padding-top: .3rem; }
  .col .ord__pay { gap: .2rem; font-size: .55rem; padding: .15rem .35rem; }
  .col .ord__total { font-size: .8rem; }
  .col .ord button { font-size: .58rem; padding: .22rem .4rem; }
  .col .ord__foot > div { gap: .3rem; }
  
  /* Meta tags in order cards */
  .col .meta-tag { font-size: .5rem; padding: .06rem .2rem; }
  
  /* View toggle button */
  #ped-view-toggle { padding: .35rem .5rem; font-size: .7rem; }
}

@media (max-width: 480px) {
  .col .ord { padding: .5rem; }
  .col .ord__name { font-size: .75rem; }
  .col .ord__items { font-size: .62rem; }
  .col .ord__total { font-size: .75rem; }
  .col .ord button { font-size: .55rem; padding: .2rem .35rem; }
  .col .meta-tag { font-size: .48rem; padding: .05rem .18rem; }
  
  /* Chips in toolbar */
  .orders-toolbar__chips .chip { padding: .3rem .55rem; font-size: .65rem; }
  
  /* Search input */
  .orders-toolbar__actions .field__input { font-size: .85rem; padding: .5rem .75rem; }
  
  /* Pagination */
  .board .pagination-controls .chip,
  .pedidos-table-wrap .pagination-controls .chip { padding: .3rem .5rem; font-size: .65rem; min-width: 28px; }
}

/* =====================================================================
   CAIXA ��� Mobile table adjustments (���600px)
   ===================================================================== */
@media (max-width: 600px) {
  .caixa-table-wrap .table-wrap { overflow: visible; border: 0; box-shadow: none; background: transparent; }
  .caixa-table-wrap .tbl, .caixa-table-wrap .tbl tbody { display: block; width: 100%; min-width: 0; }
  .caixa-table-wrap .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .caixa-table-wrap .tbl tbody { display: grid; gap: .7rem; }
  .caixa-table-wrap .tbl tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-primary); box-shadow: var(--shadow-sm); }
  .caixa-table-wrap .tbl tbody tr:hover { background: var(--color-surface-primary); }
  .caixa-table-wrap .tbl td { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-width: 0; padding: .7rem .75rem; border-bottom: 1px solid var(--color-border); text-align: left !important; overflow-wrap: anywhere; }
  .caixa-table-wrap .tbl td::before { content: attr(data-label); color: var(--color-text-secondary); font-size: .61rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
  .caixa-table-wrap .tbl td:first-child { display: none; }
  .caixa-table-wrap .tbl td:nth-child(2), .caixa-table-wrap .tbl td:last-child { grid-column: 1 / -1; }
  .caixa-table-wrap .tbl td:nth-child(2) { display: block; background: color-mix(in srgb, var(--color-accent) 5%, var(--color-surface-primary)); }
  .caixa-table-wrap .tbl td:nth-child(2)::before { content: none; }
  .caixa-table-wrap .tbl__actions { display: flex; flex-direction: row; flex-wrap: nowrap; gap: .45rem; white-space: nowrap; }
  .caixa-table-wrap .tbl__actions .btn { flex: 0 0 auto; min-width: 80px; padding: .4rem .6rem; font-size: .75rem; }
  .caixa-table-wrap .tbl td:nth-child(3), .caixa-table-wrap .tbl td:nth-child(4), .caixa-table-wrap .tbl td:nth-child(5), .caixa-table-wrap .tbl td:nth-child(6) { display: none; }
}

/* =====================================================================
   INVENTARIO ��� Mobile table adjustments (���600px)
   ===================================================================== */
@media (max-width: 600px) {
  .inventario-table-wrap .table-wrap { overflow: visible; border: 0; box-shadow: none; background: transparent; }
  .inventario-table-wrap .tbl, .inventario-table-wrap .tbl tbody { display: block; width: 100%; min-width: 0; }
  .inventario-table-wrap .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .inventario-table-wrap .tbl tbody { display: grid; gap: .7rem; }
  .inventario-table-wrap .tbl tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-primary); box-shadow: var(--shadow-sm); }
  .inventario-table-wrap .tbl tbody tr:hover { background: var(--color-surface-primary); }
  .inventario-table-wrap .tbl td { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-width: 0; padding: .7rem .75rem; border-bottom: 1px solid var(--color-border); text-align: left !important; overflow-wrap: anywhere; }
  .inventario-table-wrap .tbl td::before { content: attr(data-label); color: var(--color-text-secondary); font-size: .61rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
  .inventario-table-wrap .tbl td:first-child { display: none; }
  .inventario-table-wrap .tbl td:nth-child(2), .inventario-table-wrap .tbl td:last-child { grid-column: 1 / -1; }
  .inventario-table-wrap .tbl td:nth-child(2) { display: block; background: color-mix(in srgb, var(--color-accent) 5%, var(--color-surface-primary)); }
  .inventario-table-wrap .tbl td:nth-child(2)::before { content: none; }
  .inventario-table-wrap .tbl__actions { display: flex; flex-direction: row; flex-wrap: nowrap; gap: .45rem; white-space: nowrap; }
  .inventario-table-wrap .tbl__actions .btn { flex: 0 0 auto; min-width: 80px; padding: .4rem .6rem; font-size: .75rem; }
  .inventario-table-wrap .tbl td:nth-child(3), .inventario-table-wrap .tbl td:nth-child(4), .inventario-table-wrap .tbl td:nth-child(5), .inventario-table-wrap .tbl td:nth-child(6) { display: none; }
}

/* =====================================================================
   CMVREAL ��� Mobile table adjustments (���600px)
   ===================================================================== */
@media (max-width: 600px) {
  .cmvreal-table-wrap .table-wrap { overflow: visible; border: 0; box-shadow: none; background: transparent; }
  .cmvreal-table-wrap .tbl, .cmvreal-table-wrap .tbl tbody { display: block; width: 100%; min-width: 0; }
  .cmvreal-table-wrap .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .cmvreal-table-wrap .tbl tbody { display: grid; gap: .7rem; }
  .cmvreal-table-wrap .tbl tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-primary); box-shadow: var(--shadow-sm); }
  .cmvreal-table-wrap .tbl tbody tr:hover { background: var(--color-surface-primary); }
  .cmvreal-table-wrap .tbl td { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-width: 0; padding: .7rem .75rem; border-bottom: 1px solid var(--color-border); text-align: left !important; overflow-wrap: anywhere; }
  .cmvreal-table-wrap .tbl td::before { content: attr(data-label); color: var(--color-text-secondary); font-size: .61rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
  .cmvreal-table-wrap .tbl td:first-child { display: none; }
  .cmvreal-table-wrap .tbl td:nth-child(2), .cmvreal-table-wrap .tbl td:last-child { grid-column: 1 / -1; }
  .cmvreal-table-wrap .tbl td:nth-child(2) { display: block; background: color-mix(in srgb, var(--color-accent) 5%, var(--color-surface-primary)); }
  .cmvreal-table-wrap .tbl td:nth-child(2)::before { content: none; }
  .cmvreal-table-wrap .tbl__actions { display: flex; flex-direction: row; flex-wrap: nowrap; gap: .45rem; white-space: nowrap; }
  .cmvreal-table-wrap .tbl__actions .btn { flex: 0 0 auto; min-width: 80px; padding: .4rem .6rem; font-size: .75rem; }
  .cmvreal-table-wrap .tbl td:nth-child(3), .cmvreal-table-wrap .tbl td:nth-child(4), .cmvreal-table-wrap .tbl td:nth-child(5) { display: none; }
}

/* ---------- Pagination ---------- */
.pagination-controls { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.pagination-controls .btn { min-width: 36px; }

/* ---------- Reviews (Desktop) ---------- */
.reviews-filter { background: var(--color-surface-primary); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1rem 1.25rem; margin-bottom: 1rem; }
.reviews-filter__title { font-family: var(--font-family-heading); font-size: 1rem; font-weight: 700; color: var(--color-text-primary); margin-bottom: 0.75rem; }
.reviews-filter__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.reviews-filter__search-group { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; }
.reviews-filter__input { flex: 1; min-width: 180px; }
.reviews-filter__input--pid { min-width: 140px; max-width: 200px; }

/* ---------- Adicionais Table ---------- */
.tbl td .badge--brand { font-size: 0.65rem; padding: 0.15rem 0.4rem; white-space: nowrap; }
.tbl td:has(.badge--brand) { min-width: 100px; }
.tbl td .dim { color: var(--color-text-secondary); font-size: 0.75rem; }
.tbl .price--light { color: var(--color-text-secondary); }
.tbl .toggle { flex-shrink: 0; }
.tbl__actions .btn { padding: 0.35rem 0.5rem; font-size: 0.7rem; }
.tbl__actions .btn svg { width: 14px; height: 14px; }

/* (Mobile reviews ficam no bloco @media 640px adiante ��� o antigo duplicado
   .review-card.mobile daqui foi removido na leva 5.) */
.drawer-overlay { position: fixed; inset: 0; background: var(--overlay); z-index: 40; opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s; }
.drawer-overlay.is-open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 100%; background: var(--color-surface-primary); border-left: 1px solid var(--color-border); z-index: 50; transform: translateX(100%); transition: transform 0.3s var(--ease); display: flex; flex-direction: column; left: auto; }
.drawer.is-open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--color-border); }
.drawer__head h3 { font-family: var(--font-family-heading); font-size: 1.1rem; }
.modal-close, .drawer__close { background: none; border: none; font-size: 1.5rem; color: var(--color-text-secondary); cursor: pointer; padding: 0.25rem; line-height: 1; }
.modal-close:hover, .drawer__close:hover { color: var(--color-text-primary); }
.drawer__body { flex: 1; overflow-y: auto; padding: 1.25rem; }
.drawer__foot { display: flex; gap: 0.5rem; justify-content: flex-end; padding: 1rem 1.25rem; border-top: 1px solid var(--color-border); }
/* Overlay externo do modal (usado por admin-shell.js) */
.modal-overlay { position: fixed; inset: 0; z-index: 59; background: var(--overlay, rgba(0,0,0,0.55)); opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s; }
.modal-overlay.is-open { opacity: 1; visibility: visible; }
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: var(--overlay); }
.modal-card { position: relative; z-index: 1; width: 100%; max-width: 520px; background: var(--color-surface-primary); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-md); max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; }
.modal-card.is-wide { max-width: 720px; }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--color-border); }
.modal__head h2 { font-family: var(--font-family-heading); font-size: 1.1rem; }
.modal__body { padding: 1.25rem; overflow-y: auto; }
/* Toast: o MESMO .toast serve ao antigo (#toast + .is-show, agora legado ���
   toast() do admin.js delega p/ showToast) e ao rico do shell (container).
   As regras base alimentam o rico; .is-show/.toast--error::after s+�o as
   sobras do legado ��� n+�o remover sem migrar o fallback do toast(). */
.toast { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--color-surface-primary); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 0.85rem 1.25rem; box-shadow: var(--shadow-md); z-index: 999; opacity: 0; transition: transform 0.3s var(--ease), opacity 0.3s; max-width: 90vw; word-break: break-word; }
.toast.is-show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.toast--error { background: rgba(var(--color-error), 0.15); border-color: var(--color-error); color: var(--color-error); padding-right: 3rem; }
.toast.toast--error::after { content: 'ԣ�'; position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); cursor: pointer; font-size: 1.1rem; opacity: 0.7; }
.toast.toast--error::after:hover { opacity: 1; }

/* ---------- Toast container (admin-shell.js showToast ��� toasts ricos) ---------- */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 1000; display: flex; flex-direction: column; gap: 0.5rem; pointer-events: none; }
.toast-container .toast { position: static; transform: none; left: auto; opacity: 1; pointer-events: all; display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.85rem 1rem; min-width: 260px; max-width: 360px; animation: toastSlideIn 0.25s var(--ease); }
.toast-container .toast.removing { animation: toastSlideOut 0.3s var(--ease) forwards; }
@keyframes toastSlideIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastSlideOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(40px); } }
.toast__icon { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.toast__icon svg { width: 20px; height: 20px; }
.toast__content { flex: 1; min-width: 0; }
.toast__title { font-weight: 700; font-size: 0.825rem; margin-bottom: 0.15rem; color: var(--color-text-primary); }
.toast__message { font-size: 0.8rem; color: var(--color-text-secondary); word-break: break-word; }
.toast__close { background: none; border: none; cursor: pointer; padding: 0; color: var(--color-text-secondary); font-size: 1.1rem; line-height: 1; flex-shrink: 0; opacity: 0.7; transition: opacity 0.15s; }
.toast__close:hover { opacity: 1; }
.toast-container .toast.toast--success { border-color: var(--color-success); }
.toast-container .toast.toast--success .toast__icon svg { stroke: var(--color-success); }
.toast-container .toast.toast--error { border-color: var(--color-error); padding-right: 1rem; }
.toast-container .toast.toast--error::after { display: none; }
.toast-container .toast.toast--error .toast__icon svg { stroke: var(--color-error); }
.toast-container .toast.toast--warning { border-color: var(--color-warning); }
.toast-container .toast.toast--warning .toast__icon svg { stroke: var(--color-warning); }
.toast-container .toast.toast--info .toast__icon svg { stroke: var(--color-accent); }

/* ---------- Mobile (���768px) - Uses admin-mobile.css for header/nav ---------- */
/* admin-mobile.css handles ���768px: hides desktop topbar/sidebar, shows mobile header/nav */
/* This file handles 768px-900px transition and tablet layout */

@media (max-width: 900px) and (min-width: 769px) {
  /* Tablet layout (769px-900px): single column, sidebar as drawer */
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; max-width: 85vw; transform: translateX(-100%); z-index: 30; box-shadow: var(--shadow-md); }
  .sidebar.is-open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  .drawer { width: 100%; }
}

@media (max-width: 768px) {
  /* Mobile (���768px): admin-mobile.css handles header/nav, but ensure these base styles */
  .topbar__search input { width: 180px; }
  .topbar__user-mail, .topbar__user-role { display: none; }
  .content { padding: 1.25rem; }
  .sidebar { width: 280px; }
}

/* Mobile reviews (existing) */
@media (max-width: 640px) {
  /* Mobile Comment Cards */
  .review-card.mobile {
    background: var(--cards-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
  }

  .review-card__header {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
  }

  .review-card__product {
    background: var(--color-accent);
    color: var(--color-bg-main);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
    flex-shrink: 0;
  }

  .review-card__rating {
    font-size: 1.2rem;
    line-height: 1;
    margin-top: 4px;
  }

  .review-card__title {
    font-size: 1rem;
    font-weight: 400;
    margin: 12px 0 8px;
    color: #FFFFFF;
    flex: 1 1 100%;
  }

  .review-card__body {
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
    padding: 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .review-card__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 16px 16px;
    border-top: 1px solid var(--color-border);
  }

  .review-card__author {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    flex: 1 1 100%;
  }

  .review-card__date {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    flex: 1 1 100%;
  }

  .review-card__status {
    flex-shrink: 0;
  }

  .review-card__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 0 16px 16px;
  }

  .review-card__actions .btn {
    height: 48px; /* Touch-friendly minimum */
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Mobile Filter Bar */
  .reviews-filter.mobile {
    background: var(--cards-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
  }

  .reviews-filter.mobile .reviews-filter__title {
    font-size: 1.125rem;
    margin-bottom: 16px;
    color: var(--color-text-primary);
    text-align: center;
    width: 100%;
  }

  .reviews-filter.mobile .reviews-filter__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    justify-content: center;
  }

  .reviews-filter.mobile .chip {
    font-size: 0.8rem;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    min-width: 60px;
    text-align: center;
  }

  .reviews-filter.mobile .reviews-filter__search-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .reviews-filter.mobile .reviews-filter__input {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .reviews-filter.mobile .btn {
    width: 100%;
    height: 48px; /* Touch-friendly */
    font-size: 0.9rem;
    font-weight: 600;
  }

  /* Mobile Pagination */
  @media (max-width: 640px) {
    [data-rpage] {
      min-width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.875rem;
    }

    .chip.is-on {
      background: var(--color-accent);
      color: var(--color-bg-main);
    }
  }
}

/* ---------- Mobile & Responsive ---------- */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .revenue-cards { grid-template-columns: repeat(2, 1fr); }
  .panel-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { 
    position: fixed; 
    left: 0; 
    top: 0; 
    bottom: 0; 
    width: var(--sidebar-w); 
    max-width: 85vw; 
    transform: translateX(-100%); 
    z-index: 30; 
    box-shadow: var(--shadow-md); 
  }
  .sidebar.is-open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  .drawer { width: 100%; }
  .sidebar__nav { padding-bottom: 5rem; }
}
@media (max-width: 640px) {
  .topbar__search input { width: 180px; }
  .topbar__user-mail, .topbar__user-role { display: none; }
  .content { padding: 1.25rem; }
  .kpis { grid-template-columns: 1fr; }
  .revenue-cards { grid-template-columns: 1fr; }
  .topbar { padding: 0 1rem; }
  .sidebar { width: 280px; }
}

/* Sidebar collapsed state (desktop only) - uses width transition instead of display:none to avoid layout shift */
@media (min-width: 901px) {
  body.sidebar-collapsed #app {
    grid-template-columns: 0 1fr;
  }
  body.sidebar-collapsed #app .sidebar {
    width: 0;
    min-width: 0;
    overflow: hidden;
    border-right: none;
  }
  body.sidebar-collapsed #app .sidebar__brand,
  body.sidebar-collapsed #app .sidebar__nav,
  body.sidebar-collapsed #app .sidebar__status {
    opacity: 0;
    pointer-events: none;
  }
  body.sidebar-collapsed #app .sidebar__brand {
    padding: 0.5rem 0;
  }
  body.sidebar-collapsed #app .btn-sidebar {
    transform: rotate(180deg);
  }
}

/* Fix nav-open state - when mobile menu is open */
#app.nav-open .sidebar {
  transform: translateX(0);
}
#app.nav-open .drawer-overlay {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   Ajustes de leitura ��� Dashboard (Vis+�o geral)
   Sobrep+�e as regras anteriores de KPIs/receita/financeiro.
   ============================================================ */

/* KPIs ��� grade flex centralizada: cart+�es de largura uniforme e
   linha final centralizada (elimina a "linha +�rf+�" 5 + 2). */
.kpis {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.kpi {
  flex: 0 1 240px;
  max-width: 100%;
  min-height: 104px;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
  padding: 1.1rem 1.15rem;
  text-align: left;
}
.skeleton-kpi {
  flex: 0 1 240px;
  max-width: 100%;
}
@media (max-width: 640px) {
  .kpi,
  .skeleton-kpi {
    flex: 1 1 100%;
  }
}

/* Hierarquia dos KPIs: +�cone ao lado do texto, n+�mero dominante */
.kpi__icon {
  width: 44px;
  height: 44px;
}
.kpi__icon svg {
  width: 22px;
  height: 22px;
}
.kpi__info {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  align-items: flex-start;
  text-align: left;
}
.kpi__label {
  white-space: normal;
  line-height: 1.25;
  text-align: left;
}
.kpi__value {
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
}
.kpi__delta {
  opacity: 0.9;
  text-align: left;
}

/* Cabe+�alhos de card com respiro consistente */
.card h3 {
  margin-bottom: 1.5rem;
}

/* Cards de receita ��� n+�meros tabulares e melhor hierarquia */
.revenue-card {
  min-height: 240px;
}
.revenue-card__value {
  font-size: 1.6rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
}
.revenue-card__range {
  min-width: 100px;
  font-variant-numeric: tabular-nums;
}
.revenue-card__bars {
  height: 44px;
}

/* Sa+�de financeira ��� alinhamento vertical e texto leg+�vel */
.financial-metric {
  align-items: center;
}
.financial-metric__value {
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
}
.financial-metric__hint {
  white-space: normal;
  line-height: 1.3;
}

/* Listas (pedidos recentes, ranking, status) */
.recent-item,
.ranking-item {
  font-variant-numeric: tabular-nums;
}

/* Campos de data/m+�s/ano dos cards de receita ��� cor do tema ao interagir */
.revenue-card__date {
  accent-color: var(--color-accent);
  cursor: pointer;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease);
}
.revenue-card__date:hover {
  border-color: var(--color-accent);
}
.revenue-card__date:focus,
.revenue-card__date:focus-visible,
.revenue-card__date:active {
  outline: none;
  border-color: var(--color-accent);
  background: var(--color-surface-secondary);
  box-shadow: 0 0 0 3px rgba(255, 104, 31, 0.18);
}
.revenue-card__date::-webkit-calendar-picker-indicator {
  cursor: pointer;
  width: 15px;
  height: 15px;
  opacity: 0.75;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23FF681F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease);
}
.revenue-card__date:hover::-webkit-calendar-picker-indicator,
.revenue-card__date:focus::-webkit-calendar-picker-indicator {
  opacity: 1;
  transform: scale(1.05);
}

/* ---------- Acabamento premium consistente do painel ---------- */
:root {
  --admin-radius: 14px;
  --admin-shadow: 0 12px 34px rgba(0, 0, 0, .16);
  --admin-shadow-hover: 0 18px 42px rgba(0, 0, 0, .22);
}
[data-theme="dark"] {
  --color-bg-main: #100e0d; --color-bg-sidebar: #14110f;
  --color-surface-primary: #191614; --color-surface-secondary: #211c18;
  --color-border: rgba(239, 211, 188, .12); --color-text-primary: #fbf5ef;
  --color-text-secondary: #b7a99d; --color-accent: #f47735;
}
[data-theme="light"] {
  --color-bg-main: #f4f1ed; --color-bg-sidebar: #fffdfb;
  --color-surface-primary: #fff; --color-surface-secondary: #f8f4f0;
  --color-border: rgba(72, 48, 32, .12); --color-text-primary: #29221d;
  --color-text-secondary: #74685f; --color-accent: #d95e20;
  --shadow-sm: 0 2px 8px rgba(48, 34, 23, .05);
  --shadow-md: 0 10px 28px rgba(48, 34, 23, .09);
  --shadow-lg: 0 18px 48px rgba(48, 34, 23, .12);
}
body:has(.app), .app { background: var(--color-bg-main); color: var(--color-text-primary); }
.sidebar { background: var(--color-bg-sidebar, var(--color-surface-primary)); border-right-color: var(--color-border); scrollbar-width: thin; scrollbar-color: var(--color-border) transparent; }
.sidebar__brand { min-height: 112px; background: linear-gradient(160deg, var(--color-surface-primary), var(--color-bg-sidebar, var(--color-surface-primary)) 78%); }
.brand-logo img { height: 46px; }
.sidebar__nav { padding: 1rem .8rem; }
.sidebar__nav a { min-height: 42px; border: 1px solid transparent; font-weight: 500; letter-spacing: .005em; }
.sidebar__nav a.is-active { border-color: rgba(244, 119, 53, .16); box-shadow: inset 0 1px rgba(255,255,255,.035); }
.nav-section { display: block; padding-top: .45rem; color: var(--color-text-secondary); }
.topbar { background: color-mix(in srgb, var(--color-surface-primary) 92%, transparent); box-shadow: 0 1px 0 var(--color-border); }
#page-title { letter-spacing: -.025em; }
.content { padding: clamp(1rem, 2.4vw, 2.25rem); }
.content-inner { max-width: 1680px; margin: 0 auto; }
.card, .kpi, .panel, .modal-card, .drawer { border-radius: var(--admin-radius); box-shadow: var(--admin-shadow); }
.card, .kpi { border-color: var(--color-border); background: linear-gradient(145deg, var(--color-surface-primary), color-mix(in srgb, var(--color-surface-primary) 94%, var(--color-accent))); }
.card { padding: clamp(1rem, 1.8vw, 1.5rem); }
.card:hover { border-color: color-mix(in srgb, var(--color-accent) 42%, var(--color-border)); box-shadow: var(--admin-shadow-hover); }
.card h3 { font-family: var(--font-family-body); font-weight: 700; letter-spacing: -.015em; }
.kpi { align-items: flex-start; min-height: 142px; padding: 1.2rem 1.35rem; }
.kpi__info { align-items: flex-start; }
.kpi__value { font-size: clamp(1.7rem, 2.2vw, 2.15rem); letter-spacing: -.035em; }
.kpi__icon { width: 40px; height: 40px; border-radius: 12px; background: rgba(244,119,53,.11); }
table { border-collapse: separate; border-spacing: 0; }
thead th { background: var(--color-surface-secondary); color: var(--color-text-secondary); font-size: .7rem; font-weight: 700; letter-spacing: .065em; text-transform: uppercase; }
tbody tr { transition: background .16s ease; }
tbody tr:hover { background: color-mix(in srgb, var(--color-accent) 5%, var(--color-surface-primary)); }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { border-radius: 10px; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid color-mix(in srgb, var(--color-accent) 72%, white); outline-offset: 2px; }
.btn { border-radius: 10px; font-weight: 650; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.btn--primary { box-shadow: 0 5px 14px rgba(217, 94, 32, .18); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(217, 94, 32, .24); }
@media (max-width: 768px) { .content { padding: 1rem; } .kpi { min-height: 120px; } .topbar { padding-inline: 1rem; } }

/* Leitura visual mais clara para os pain+�is de gest+�o e suas abas. */
[data-theme="dark"] .content { background: radial-gradient(ellipse at 50% -20%, rgba(244,119,53,.075), transparent 52%), var(--color-bg-main); }
[data-theme="light"] .content { background: radial-gradient(ellipse at 50% -25%, rgba(217,94,32,.08), transparent 52%), var(--color-bg-main); }
.dash-header { padding: 0 0 1.15rem; border-bottom: 1px solid var(--color-border); }
.dash-header h1 { font-family: var(--font-family-body); font-size: clamp(1.55rem, 2vw, 1.9rem); letter-spacing: -.04em; }
.dash-header p { margin-top: .35rem; font-size: .92rem; }
.dash-grid, .panel-grid { gap: 1.15rem; }
.dash-row { gap: 1.15rem; margin-bottom: 1.15rem; }
.card {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--color-border) 78%, var(--color-accent));
  box-shadow: 0 7px 24px rgba(0,0,0,.10), inset 0 1px rgba(255,255,255,.035);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--color-accent), color-mix(in srgb, var(--color-accent) 8%, transparent));
  opacity: .62;
  pointer-events: none;
}
.kpi {
  position: relative;
  overflow: hidden;
  border-top: 2px solid color-mix(in srgb, var(--color-accent) 58%, var(--color-border));
  box-shadow: 0 8px 24px rgba(0,0,0,.11);
}
.kpi__label { letter-spacing: .1em; }
.sidebar__status { margin: .5rem .75rem .75rem; border: 1px solid var(--color-border); border-radius: 12px; }
.topbar { border-bottom: 1px solid color-mix(in srgb, var(--color-accent) 18%, var(--color-border)); }

/* Sistema visual final do painel: hierarquia e ritmo consistentes em cada m+�dulo. */
:root { --admin-radius: 12px; --admin-border: var(--color-border); }
.app { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
.sidebar { border-right: 1px solid var(--admin-border); }
.sidebar__brand { min-height: 104px; padding: 1.1rem 1rem; }
.sidebar__brand-sub { font-family: var(--font-family-body); font-size: .78rem; letter-spacing: .12em; }
.sidebar__nav { padding: .8rem .75rem; }
.sidebar__nav a { min-height: 40px; padding: .6rem .75rem; border-radius: 9px; font-size: .84rem; }
.nav-divider { margin: .65rem .25rem; }
.nav-section { margin: .9rem 0 .4rem; font-size: .62rem; letter-spacing: .13em; }
.topbar { height: 76px; min-height: 76px; padding-inline: clamp(1rem, 2.4vw, 2rem); }
.topbar__left, .topbar__right { gap: .65rem; }
#page-title { font-family: var(--font-family-body); font-size: 1rem; font-weight: 700; }
.content { padding: clamp(1rem, 2.5vw, 2rem); }
.content-inner { max-width: 1600px; margin-inline: auto; overflow: visible; }
.dash-header { margin-bottom: 1.35rem; padding-bottom: 1.15rem; }
.dash-header h1 { font-size: clamp(1.5rem, 2vw, 1.8rem); }
.toolbar { gap: .8rem 1rem; margin-bottom: 1.25rem; padding: 0 0 1rem; border-color: var(--admin-border); }
.toolbar__left, .toolbar__right { min-width: 0; flex-wrap: wrap; }
.toolbar__left h2 { margin: 0; font-family: var(--font-family-body); font-size: 1.15rem; font-weight: 700; letter-spacing: -.025em; }
.toolbar__right { gap: .55rem; }
.toolbar__search input, .topbar__search input { min-height: 40px; border-radius: 9px; }
.dash-grid, .panel-grid { gap: 1rem; }
.dash-row { gap: 1rem; margin-bottom: 1rem; }
.card, .kpi, .table-wrap, .product-card, .modal-card, .drawer {
  border-radius: var(--admin-radius);
  border-color: var(--admin-border);
}
.card {
  padding: clamp(1rem, 1.7vw, 1.4rem);
  background: var(--color-surface-primary);
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.card::after { display: none; }
.card:hover { border-color: color-mix(in srgb, var(--color-accent) 36%, var(--admin-border)); box-shadow: 0 9px 24px rgba(0,0,0,.12); }
.card h3 { margin-bottom: 1rem; font-size: .96rem; }
.card h3::before { width: 3px; height: 1.1rem; }
.kpi { min-height: 132px; padding: 1.1rem 1.2rem; background: var(--color-surface-primary); box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.kpi__value { font-family: var(--font-family-body); font-size: clamp(1.55rem, 2vw, 2rem); }
.kpi__label { font-size: .67rem; letter-spacing: .09em; }
.table-wrap { box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.tbl { font-size: .84rem; }
.tbl th, .tbl td { padding: .8rem .95rem; }
.tbl th { font-size: .66rem; letter-spacing: .075em; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.field { margin-bottom: 1rem; }
.field__label { font-size: .68rem; letter-spacing: .065em; }
.field__input, .field__select, .field__textarea { min-height: 42px; border-radius: 9px; }
.btn { min-height: 38px; border-radius: 9px; font-size: .82rem; }
.btn--sm { min-height: 32px; }
.chip { border-radius: 8px; }
.product-card { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.product-card:hover { border-color: color-mix(in srgb, var(--color-accent) 36%, var(--admin-border)); box-shadow: 0 9px 24px rgba(0,0,0,.12); }

/* Configura+�+�es: se+�+�es e campos com hierarquia visual consistente. */
.ped-order-insights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0 0 1.1rem; }
.ped-order-insight { display: flex; align-items: center; gap: .95rem; min-width: 0; min-height: 112px; padding: 1rem 1.15rem; border: 1px solid var(--admin-border); border-top: 2px solid var(--color-accent); border-radius: var(--admin-radius); background: var(--color-surface-primary); box-shadow: 0 4px 16px rgba(0,0,0,.08); transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.ped-order-insight:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--color-accent) 42%, var(--admin-border)); box-shadow: 0 9px 24px rgba(0,0,0,.12); }
.ped-order-insight__icon { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 13%, var(--color-surface-primary)); }
.ped-order-insight__icon svg { width: 23px; height: 23px; }
.ped-order-insight__body { display: flex; flex-direction: column; min-width: 0; gap: .18rem; }
.ped-order-insight__label { color: var(--color-text-secondary); font-size: .68rem; font-weight: 700; letter-spacing: .075em; text-transform: uppercase; }
.ped-order-insight__body strong { color: var(--color-text-primary); font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.12; letter-spacing: -.035em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ped-order-insight__body small { color: var(--color-text-secondary); font-size: .68rem; line-height: 1.35; }
.ped-order-insight--cancelled { border-top-color: var(--color-error); }
.ped-order-insight--cancelled .ped-order-insight__icon { color: var(--color-error); background: color-mix(in srgb, var(--color-error) 12%, var(--color-surface-primary)); }
.ped-order-insight--ticket { border-top-color: var(--color-accent); }
.ped-order-insight--overdue { border-top-color: var(--color-warning); }
.ped-order-insight--overdue .ped-order-insight__icon { color: var(--color-warning); background: color-mix(in srgb, var(--color-warning) 13%, var(--color-surface-primary)); }
.ped-order-insights--overview { display: block; margin-top: -.15rem; }
.ped-order-insights__title { display: flex; align-items: center; gap: .55rem; margin: 0 0 .75rem; padding: 0 0 .65rem; border-bottom: 1px solid var(--admin-border); color: var(--color-text-primary); font-family: var(--font-family-body); font-size: .96rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; }
.ped-order-insights__title::before { content: ''; width: 3px; height: 1.05rem; flex: 0 0 3px; border-radius: 3px; background: var(--color-accent); }
.ped-order-insights__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 850px) { .ped-order-insights { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 850px) { .ped-order-insights__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ped-order-insights { grid-template-columns: 1fr; gap: .7rem; } .ped-order-insights__grid { grid-template-columns: 1fr; gap: .7rem; } .ped-order-insight { min-height: 96px; } }
.config-section { margin: 0 0 1rem; padding: clamp(1rem, 2vw, 1.45rem); }
.config-section__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.15rem; padding-bottom: .9rem; border-bottom: 1px solid var(--admin-border); }
.config-section__head h3 { margin: 0 0 .3rem; font-size: 1rem; }
.config-section__head h3::before { display: none; }
.config-section__head p { margin: 0; color: var(--color-text-secondary); font-size: .78rem; line-height: 1.5; }
.config-section__count { flex: 0 0 auto; padding: .3rem .6rem; border: 1px solid var(--admin-border); border-radius: 999px; color: var(--color-text-secondary); font-size: .68rem; font-weight: 600; }
.config-section__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .15rem 1.15rem; }
.config-field { min-width: 0; margin-bottom: .8rem; }
.config-field .field__label { text-transform: none; color: var(--color-text-primary); font-size: .78rem; letter-spacing: 0; }
.config-field .field__input { background: var(--color-bg-main); }
.config-field textarea.field__input { min-height: 88px; line-height: 1.5; }
.config-field__key { display: block; margin-top: .3rem; color: var(--color-text-secondary); font-size: .66rem; opacity: .78; }
.config-toolbar .toolbar__left > div { min-width: 0; }
.config-toolbar .toolbar__left { align-items: flex-start; }
.config-toolbar .toolbar__left h2 { margin: .15rem 0 .3rem; }
.config-eyebrow { color: var(--color-accent); font-size: .65rem; font-weight: 700; letter-spacing: .12em; }
.config-note { display: flex; align-items: flex-start; gap: .65rem; margin: -.35rem 0 1rem; padding: .75rem .9rem; border: 1px solid color-mix(in srgb, var(--color-accent) 28%, var(--admin-border)); border-radius: 10px; background: color-mix(in srgb, var(--color-accent) 7%, var(--color-surface-primary)); }
.config-note > span { display: grid; place-items: center; flex: 0 0 19px; height: 19px; border: 1px solid var(--color-accent); border-radius: 50%; color: var(--color-accent); font-size: .7rem; font-weight: 700; }
.config-note p { margin: 0; color: var(--color-text-secondary); font-size: .76rem; line-height: 1.5; }
.config-toolbar .btn { min-height: 42px; }
.lgpd-report-filter { margin-bottom: 1rem; }
.lgpd-report-filter__form { display: flex; align-items: flex-end; flex-wrap: wrap; gap: .8rem 1rem; }
.lgpd-report-filter__form .field { flex: 1 1 190px; margin: 0; }
.lgpd-report-filter__form .btn { min-height: 42px; }
.lgpd-report-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.lgpd-report-kpi { display: flex; flex-direction: column; gap: .4rem; min-width: 0; padding: 1.15rem 1.25rem; border: 1px solid var(--admin-border); border-top: 2px solid var(--color-accent); border-radius: var(--admin-radius); background: var(--color-surface-primary); box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.lgpd-report-kpi span { color: var(--color-text-secondary); font-size: .72rem; font-weight: 600; }
.lgpd-report-kpi strong { color: var(--color-text-primary); font-size: 1.8rem; line-height: 1; font-variant-numeric: tabular-nums; }
.lgpd-report-kpi small { color: var(--color-text-secondary); font-size: .68rem; }
.lgpd-report-kpi--accepted { border-top-color: var(--color-success); }
.lgpd-report-kpi--refused { border-top-color: var(--color-warning); }
.lgpd-report-table { padding: clamp(1rem, 1.7vw, 1.4rem); }
.lgpd-report-table__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.lgpd-report-table__head h3 { margin: 0 0 .3rem; }
.lgpd-report-table__head h3::before { display: none; }
.lgpd-report-table .table-wrap { margin: 0; }
.lgpd-report-error { border-color: var(--color-error); color: var(--color-text-primary); }
@media (max-width: 700px) {
  .config-section__grid { grid-template-columns: 1fr; gap: 0; }
  .config-section__head { align-items: flex-start; }
  .config-toolbar .toolbar__right, .config-toolbar .btn { width: 100%; }
  .lgpd-report-kpis { grid-template-columns: 1fr; gap: .7rem; }
  .lgpd-report-table__head { align-items: flex-start; flex-direction: column; }
}

/* LGPD Report ��� Mobile table adjustments (���600px) */
@media (max-width: 600px) {
  .lgpd-report-filter__form .field { flex: 1 1 100%; }
  .lgpd-report-filter__form .btn { width: 100%; }
  .lgpd-report-table .table-wrap { overflow: visible; border: 0; box-shadow: none; background: transparent; }
  .lgpd-report-table .tbl, .lgpd-report-table .tbl tbody { display: block; width: 100%; min-width: 0; }
  .lgpd-report-table .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .lgpd-report-table .tbl tbody { display: grid; gap: .7rem; }
  .lgpd-report-table .tbl tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-primary); box-shadow: var(--shadow-sm); }
  .lgpd-report-table .tbl tbody tr:hover { background: var(--color-surface-primary); }
  .lgpd-report-table .tbl td { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-width: 0; padding: .7rem .75rem; border-bottom: 1px solid var(--color-border); text-align: left !important; overflow-wrap: anywhere; }
  .lgpd-report-table .tbl td::before { content: attr(data-label); color: var(--color-text-secondary); font-size: .61rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
  .lgpd-report-table .tbl td:first-child { display: none; }
  .lgpd-report-table .tbl td:nth-child(2), .lgpd-report-table .tbl td:last-child { grid-column: 1 / -1; }
  .lgpd-report-table .tbl td:nth-child(2) { display: block; background: color-mix(in srgb, var(--color-accent) 5%, var(--color-surface-primary)); }
  .lgpd-report-table .tbl td:nth-child(2)::before { content: none; }
  .lgpd-report-table .tbl td:nth-child(3) { display: none; }
}

/* Home / Se+�+�es */
.home-sections-toolbar { align-items: flex-end; }
.home-sections-toolbar .toolbar__left { min-width: 0; }
.home-sections-toolbar .toolbar__left .card__hint { max-width: 650px; line-height: 1.5; }
.home-sections-toolbar .toolbar__right { flex: 0 0 auto; }
.home-sections-card { overflow: hidden; padding: clamp(1rem, 1.7vw, 1.4rem); }
.home-sections-card__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--admin-border); }
.home-sections-card__head h3 { margin: 0 0 .25rem; font-size: .98rem; }
.home-sections-card__head h3::before { display: none; }
.home-sections-card__head .card__hint { margin: 0; font-size: .74rem; line-height: 1.45; }
.home-sections-card .table-wrap { margin: 0; }
.home-sections-card .tbl { min-width: 760px; }
.home-sections-card .hs-label { min-width: 150px; }
.home-sections-card .hs-label[readonly] { border-color: transparent; background: transparent; box-shadow: none; }
.home-sections-card .hs-label:not([readonly]) { border-color: color-mix(in srgb, var(--color-accent) 55%, var(--color-border)); background: var(--color-bg-main); }
.home-sections-card .hs-visibility input:disabled { opacity: .62; }
.home-sections-card .hs-edit[aria-pressed="true"] { border-color: var(--color-accent); color: var(--color-accent); }
.home-sections-card .hs-visibility { display: inline-flex; align-items: center; gap: .45rem; color: var(--color-text-secondary); font-size: .75rem; white-space: nowrap; }
.home-sections-card .hs-visibility input { accent-color: var(--color-accent); }
.home-sections-card .tbl__actions { white-space: nowrap; }
.home-sections-card .tbl__actions .btn { min-width: 34px; padding-inline: .55rem; }
#hs-save:disabled { cursor: wait; opacity: .72; }
@media (max-width: 700px) { .home-sections-toolbar { align-items: stretch; flex-direction: column; } .home-sections-toolbar .toolbar__right, .home-sections-toolbar .toolbar__right .btn { width: 100%; } .home-sections-card__head { align-items: flex-start; } }

/* Home/Se+�+�es ��� Mobile table adjustments (���600px) */
@media (max-width: 600px) {
  .home-sections-card .table-wrap { overflow: visible; border: 0; box-shadow: none; background: transparent; }
  .home-sections-card .tbl, .home-sections-card .tbl tbody { display: block; width: 100%; min-width: 0; }
  .home-sections-card .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .home-sections-card .tbl tbody { display: grid; gap: .7rem; }
  .home-sections-card .tbl tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-primary); box-shadow: var(--shadow-sm); }
  .home-sections-card .tbl tbody tr:hover { background: var(--color-surface-primary); }
  .home-sections-card .tbl td { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-width: 0; padding: .7rem .75rem; border-bottom: 1px solid var(--color-border); text-align: left !important; overflow-wrap: anywhere; }
  .home-sections-card .tbl td::before { content: attr(data-label); color: var(--color-text-secondary); font-size: .61rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
  .home-sections-card .tbl td:first-child { display: none; }
  .home-sections-card .tbl td:nth-child(2), .home-sections-card .tbl td:last-child { grid-column: 1 / -1; }
  .home-sections-card .tbl td:nth-child(2) { display: block; background: color-mix(in srgb, var(--color-accent) 5%, var(--color-surface-primary)); }
  .home-sections-card .tbl td:nth-child(2)::before { content: none; }
  .home-sections-card .tbl__actions { display: flex; flex-direction: row; flex-wrap: nowrap; gap: .45rem; white-space: nowrap; }
  .home-sections-card .tbl__actions .btn { flex: 0 0 auto; min-width: 60px; padding: .4rem .5rem; font-size: .75rem; }
  .home-sections-card .tbl td:nth-child(3), .home-sections-card .tbl td:nth-child(4) { display: none; }
  .home-sections-card .hs-label { min-width: 0; }
}

.modal-card, .drawer { box-shadow: 0 24px 64px rgba(0,0,0,.28); }
[data-theme="light"] .card, [data-theme="light"] .kpi, [data-theme="light"] .table-wrap, [data-theme="light"] .product-card {
  box-shadow: 0 4px 18px rgba(47,35,26,.055);
}
[data-theme="light"] .card:hover, [data-theme="light"] .product-card:hover { box-shadow: 0 10px 28px rgba(47,35,26,.11); }
[data-theme="dark"] {
  --color-bg-main: #100c09;
  --color-bg-sidebar: #17110d;
  --color-surface-primary: #211913;
  --color-surface-secondary: #2c2119;
  --color-border: rgba(239, 193, 158, .2);
  --color-text-primary: #fff8f1;
  --color-text-secondary: #c0ad9e;
  --color-accent: #f26b21;
}
[data-theme="light"] {
  --color-bg-main: #f4eee8;
  --color-bg-sidebar: #fffaf5;
  --color-surface-primary: #fffdfb;
  --color-surface-secondary: #f5ece4;
  --color-border: rgba(87, 56, 34, .16);
  --color-text-primary: #2b2018;
  --color-text-secondary: #746052;
  --color-accent: #db5d1d;
}
[data-theme="dark"] .sidebar { background: #17110d; }
[data-theme="dark"] .sidebar__brand { background: linear-gradient(155deg, #211710, #17110d 80%); }
.sidebar__nav a.is-active {
  color: var(--color-accent);
  background: rgba(242,107,33,.16);
  border-color: rgba(242,107,33,.28);
}
.sidebar__nav a.is-active::before { width: 3px; height: 72%; opacity: 1; }
[data-theme="dark"] .card, [data-theme="dark"] .kpi, [data-theme="dark"] .table-wrap, [data-theme="dark"] .product-card {
  background: #211913;
  border-color: rgba(239,193,158,.2);
}
[data-theme="light"] .card, [data-theme="light"] .kpi, [data-theme="light"] .table-wrap, [data-theme="light"] .product-card { background: #fffdfb; }
.kpi { border-top: 3px solid var(--color-accent); }
.kpi__icon { color: var(--color-accent); background: rgba(242,107,33,.14); }
.tbl th { border-bottom-color: var(--admin-border); }
.tbl tbody tr:hover { background: color-mix(in srgb, var(--color-accent) 8%, var(--color-surface-primary)); }
[data-theme="dark"] .topbar { background: #19130f; }
[data-theme="light"] .topbar { background: rgba(255,253,251,.96); }

/* Ordem do dashboard: rotina da loja antes das an+�lises financeiras. */
.kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.dash-grid { display: flex; flex-direction: column; gap: 1rem; }
.dash-grid > .dash-row { width: 100%; margin: 0; }
.dash-row--ops { order: 1; }
.dash-row--weekly { order: 2; }
.dash-row--revenue { order: 3; }
.dash-row--financial { order: 4; }
.dash-row--ranking { order: 5; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .kpis { grid-template-columns: 1fr; } }
/* Mant+�m os cinco indicadores do resumo na mesma fileira. */
.kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); min-width: 0; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .kpis {
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding-bottom: .5rem;
  }
  .kpi { scroll-snap-align: start; }
}
/* Regra expl+�cita do resumo: os cinco KPIs nunca quebram para outra linha. */
#content > .content-inner > .kpis {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: stretch;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}
#content > .content-inner > .kpis > .kpi {
  flex: 1 0 0;
  min-width: 0;
}
@media (max-width: 700px) {
  #content > .content-inner > .kpis > .kpi { flex: 0 0 168px; }
}
/* Alinha os valores dos cinco KPIs na mesma altura, mesmo com t+�tulos em duas linhas. */
#content > .content-inner > .kpis > .kpi > .kpi__info {
  display: grid;
  grid-template-rows: 2.4em auto 1em;
  align-items: end;
  gap: .1rem;
  width: 100%;
}
#content > .content-inner > .kpis .kpi__label {
  display: flex;
  align-items: flex-end;
  min-height: 0;
  width: 100%;
  margin: 0;
  white-space: normal;
  line-height: 1.2;
}
#content > .content-inner > .kpis .kpi__value {
  align-self: center;
  margin: 0;
  font-size: clamp(1.2rem, 1.55vw, 1.75rem);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
#content > .content-inner > .kpis .kpi__delta { min-height: 1em; }
@media (max-width: 768px) {
  .topbar { height: auto; min-height: 64px; padding: .65rem .85rem; }
  .topbar__user-mail, .topbar__user-role, .topbar__clock { display: none; }
  .content { padding: 1rem .8rem; }
  .toolbar { align-items: flex-start; }
  .toolbar__left, .toolbar__right { width: 100%; }
  .toolbar__search input { width: min(100%, 280px); }
  .card { padding: 1rem; }
  .tbl th, .tbl td { padding: .7rem .75rem; }
}

/* Tema da loja aplicado ao fluxo de pedidos
   ������ Kanban: camada 2 (re-theme/skin). CAMADA 1 (base/estrutura) fica na se+�+�o
   "Kanban Board (Pedidos)" (~linha 708); CAMADA 3 (grid/entregue) logo ap+�s
   "order-detail__...". A +�ltima regra vence na cascata ��� n+�o "consolidar"
   deletando camadas sem testar visual: elas recalculam vars de tema por coluna. */
.board {
  --color-bg-main: #0d0b0a;
  --color-surface-primary: #1a1410;
  --color-surface-secondary: #241b14;
  --color-border: rgba(242, 107, 33, .16);
  --color-text-primary: #f6e9dc;
  --color-text-secondary: #a99a8a;
  --color-accent: #f26b21;
  gap: .85rem;
  padding: .35rem .15rem 1rem;
}
[data-theme="light"] .board {
  --color-bg-main: #fbf5ee;
  --color-surface-primary: #fff;
  --color-surface-secondary: #f5ede1;
  --color-border: rgba(150, 80, 30, .16);
  --color-text-primary: #251a11;
  --color-text-secondary: #7a6a58;
  --color-accent: #e85d1a;
}
.board .col {
  --column-accent: var(--color-accent);
  background: var(--color-surface-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.board .col[data-status="recebido"] { --column-accent: #e0a458; }
.board .col[data-status="entregue"] { --column-accent: #7fb069; }
.board .col__head {
  min-height: 48px;
  padding: .65rem .75rem;
  background: color-mix(in srgb, var(--column-accent) 11%, var(--color-surface-primary));
  border: 0;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
}
.board .col__head .dot { background: var(--column-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--column-accent) 16%, transparent); }
.board .col__head b { color: var(--color-text-primary); font-family: var(--font-family-body); font-size: .75rem; }
.board .col__count { color: var(--column-accent); background: color-mix(in srgb, var(--column-accent) 16%, var(--color-surface-primary)); font-size: .68rem; font-weight: 700; }
.board .col__cards { padding: .55rem; }
.board .ord { background: var(--color-surface-primary); border-color: var(--color-border); }
.board .ord:hover { border-color: var(--column-accent); }
.board .ord__pay { background: var(--color-surface-secondary); }

/* Arraste fluido e conte+�do dos pedidos com alinhamento consistente */
.board .col,
.board .col__cards,
.board .ord {
  transition: background-color .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s ease, opacity .22s ease;
}
.board .col.drop-valid {
  background: color-mix(in srgb, var(--color-accent) 5%, var(--color-surface-secondary));
  border-color: color-mix(in srgb, var(--color-accent) 55%, var(--color-border));
}
.board .col.drop-invalid { opacity: .48; }
.board .col.is-drag-over { background: color-mix(in srgb, var(--color-accent) 10%, var(--color-surface-secondary)); }
.board .col.is-drag-over .col__head { background: color-mix(in srgb, var(--column-accent) 20%, var(--color-surface-primary)); }
.board .ord { padding: .8rem; margin-bottom: .65rem; cursor: grab; }
.board .ord:active { cursor: grabbing; }
.board .ord.is-dragging { opacity: .28; transform: scale(.97); box-shadow: none; }
.board .ord.just-dropped { animation: orderArrive .42s cubic-bezier(.2,.8,.2,1) both; }
@keyframes orderArrive {
  from { opacity: .35; transform: translateY(12px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.board .ord__head { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: .45rem; margin-bottom: .65rem; }
.board .ord__handle { position: static; display: flex; opacity: .65; cursor: grab; }
.board .ord:hover .ord__handle { opacity: 1; }
.board .ord__num { font-size: .86rem; }
.board .ord__sla { font-size: .62rem; padding: .18rem .45rem; }
.board .ord__name { font-size: .88rem; line-height: 1.35; margin: 0 0 .5rem; overflow-wrap: anywhere; }
.board .ord__meta { display: flex; align-items: center; justify-content: space-between; gap: .45rem; flex-wrap: wrap; }
.board .ord__delivery { margin: 0; }
.board .ord__when { color: var(--color-text-secondary); font-size: .64rem; font-variant-numeric: tabular-nums; }
.board .ord__items { margin: .6rem 0; font-size: .73rem; }
.board .ord__foot { padding-top: .6rem; gap: .5rem; }
.board .ord__actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .65rem; padding-top: .55rem; border-top: 1px solid var(--color-border); }
.board .ord__actions .btn { flex: 1 1 auto; min-width: max-content; }
@media (prefers-reduced-motion: reduce) {
  .board .col, .board .col__cards, .board .ord { transition: none; }
  .board .ord.just-dropped { animation: none; }
}
.board .ord { cursor: pointer; }
.board .ord__handle { cursor: grab; }
.order-detail__summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin-bottom: 1rem; }
.order-detail__summary > div { min-width: 0; overflow-wrap: anywhere; }
.order-detail__summary .dim { margin-bottom: .12rem; font-size: .72rem; }
.order-detail__totals { display: grid; gap: .3rem; justify-items: end; margin-top: 1rem; font-variant-numeric: tabular-nums; }
.order-detail__grand-total { padding-top: .45rem; margin-top: .15rem; border-top: 1px solid var(--color-border); font-size: 1.12rem; }
.order-detail__notes { margin-top: 1rem; }
.drawer__foot #order-print { margin-left: auto; }
@media (max-width: 480px) {
  .order-detail__summary { grid-template-columns: 1fr; }
  .drawer__foot { flex-wrap: wrap; }
}
.board {
  display: grid; /* Kanban: camada 3 ��� vira grid (entregue ocupa 1 linha inteira) */
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  align-items: stretch;
  overflow-x: auto;
}
.board > .col {
  flex: initial;
  width: auto;
  max-width: none;
  min-width: 0;
}
.board > .col[data-status="entregue"] {
  grid-column: 1 / -1;
}
.board > .col[data-status="entregue"] .col__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  align-content: start;
  gap: .1rem .55rem;
}
#toast {
  color: var(--color-text-primary);
  background: var(--color-surface-primary);
  border-color: color-mix(in srgb, var(--color-accent) 38%, var(--color-border));
  font-family: var(--font-family-body);
  font-weight: 600;
}
.content-inner > .dash-header + .kpis {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(150px, 1fr)) !important;
  grid-auto-flow: column;
  gap: .75rem;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
.content-inner > .dash-header + .kpis > .kpi {
  width: auto;
  min-width: 0;
  max-width: none;
  flex: initial;
}
.content-inner > .dash-header + .kpis > .kpi .kpi__info { min-width: 0; width: 100%; gap: .3rem; }
.content-inner > .dash-header + .kpis > .kpi .kpi__label { max-width: 100%; white-space: normal; line-height: 1.3; overflow-wrap: anywhere; }
.content-inner > .dash-header + .kpis > .kpi .kpi__value { max-width: 100%; font-size: clamp(1.35rem, 1.8vw, 1.85rem); letter-spacing: -.04em; }
.dash-grid > .dash-row--ops { order: 6; }
.size-menu-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.15rem; }
.size-menu-card { min-width: 0; }
.size-menu-card__media {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 68%, color-mix(in srgb, var(--brand) 24%, transparent), transparent 52%),
    linear-gradient(145deg, var(--surface-2), var(--surface));
  color: var(--text);
}
.size-menu-card__weight {
  position: relative;
  z-index: 1;
  max-width: 90%;
  color: var(--brand);
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  text-align: center;
  text-shadow: 0 4px 22px color-mix(in srgb, var(--brand) 25%, transparent);
}
.size-menu-card__stamp {
  margin-top: .7rem;
  color: var(--muted);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .16em;
}
.size-menu-card .p-card__desc { min-height: 3.4em; }
.size-menu-card__state { color: var(--muted); font-size: .72rem; font-weight: 600; }
.size-menu-card__actions {
  display: flex;
  gap: .5rem;
  padding: .75rem 1.1rem;
  border-top: 1px solid var(--border-soft);
  background: var(--surface-2);
}
.size-menu-card__actions .btn { flex: 1 1 0; }
.size-menu-section { margin-top: 1.5rem; }
.size-menu-section__head { margin-bottom: .8rem; }
.size-menu-section__head h3 { margin: 0 0 .2rem; color: var(--color-text-primary); font-size: 1.05rem; }
.size-menu-section__head .card__hint { margin: 0; }
.size-menu-product-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.size-menu-product-card .product-card__info { gap: .15rem; }
.size-menu-product-card .product-card__desc { min-height: 2.8em; }
.size-menu__variants { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.size-menu__variant { display: inline-flex; flex-direction: column; gap: .08rem; padding: .4rem .55rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface-secondary); }
.size-menu__variant b { color: var(--color-text-primary); font-size: .72rem; }
.size-menu__variant small { color: var(--color-accent); font-size: .68rem; font-weight: 700; }
.ficha-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; margin: 0 0 1rem; }
.ficha-metric { min-width: 0; display: flex; flex-direction: column; gap: .28rem; padding: 1rem 1.1rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-primary); box-shadow: var(--shadow-sm); }
.ficha-metric__label { color: var(--color-text-secondary); font-size: .68rem; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
.ficha-metric strong { color: var(--color-text-primary); font-family: var(--font-family-heading); font-size: 1.7rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ficha-metric small { color: var(--color-text-secondary); font-size: .72rem; }
.ficha-metric--alert { border-color: color-mix(in srgb, var(--color-warning) 48%, var(--color-border)); }
.ficha-metric--alert strong { color: var(--color-warning); }
.ficha-table-card { padding: 1rem; }
.ficha-table-card__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 .9rem; padding-bottom: .85rem; border-bottom: 1px solid var(--color-border); }
.ficha-table-card__title { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.ficha-table-card__icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; background: color-mix(in srgb, var(--color-accent) 14%, transparent); color: var(--color-accent); }
.ficha-table-card__icon svg { width: 20px; height: 20px; }
.ficha-table-card__head h3 { margin: 0 0 .2rem; color: var(--color-text-primary); font-size: .95rem; }
.ficha-table-card__head .card__hint { margin: 0; }
.ficha-table-card__count { flex: 0 0 auto; padding: .35rem .65rem; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface-secondary); color: var(--color-text-secondary); font-size: .68rem; font-weight: 700; }
.ficha-category-group + .ficha-category-group { margin-top: 1.35rem; padding-top: 1.2rem; border-top: 1px solid var(--color-border); }
.ficha-category-group__head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: 0 0 .7rem; }
.ficha-category-group__head h4 { margin: 0; color: var(--color-text-primary); font-family: var(--font-family-heading); font-size: .98rem; }
.ficha-category-group__head h4::before { display: inline-block; width: 3px; height: .95em; margin-right: .55rem; border-radius: 999px; background: var(--color-accent); content: ''; vertical-align: -.12em; }
.ficha-category-group__head > span { padding: .25rem .55rem; border-radius: 999px; background: var(--color-surface-secondary); color: var(--color-text-secondary); font-size: .65rem; font-weight: 700; }
.ficha-table-card .table-wrap { box-shadow: none; }
.ficha-table-card .tbl { min-width: 990px; }
.ficha-table-card .tbl th { white-space: nowrap; }
.ficha-table-card .tbl td.price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ficha-table-card .tbl tbody tr:hover { background: color-mix(in srgb, var(--color-accent) 5%, var(--color-surface-secondary)); }
.ficha-product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: .85rem; }
.ficha-product-card { display: grid; grid-template-columns: 132px minmax(0, 1fr); min-width: 0; overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-primary); box-shadow: var(--shadow-sm); transition: border-color .18s, box-shadow .18s, transform .18s; }
.ficha-product-card:hover { border-color: color-mix(in srgb, var(--color-accent) 48%, var(--color-border)); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.ficha-product-card__media { min-height: 100%; overflow: hidden; background: var(--color-bg-main); }
.ficha-product-card__image { display: block; width: 100%; height: 100%; min-height: 250px; object-fit: cover; }
.ficha-product-card__main { display: flex; flex-direction: column; min-width: 0; padding: .9rem; }
.ficha-product-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.ficha-product-card__top .ficha-status { justify-content: flex-end; }
.ficha-product-card__name { margin: .6rem 0 .1rem; color: var(--color-text-primary); font-family: var(--font-family-heading); font-size: 1rem; line-height: 1.2; }
.ficha-product-card__id { color: var(--color-text-secondary); font-size: .68rem; }
.ficha-product-card__metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; margin-top: .8rem; }
.ficha-product-card__metric { display: flex; flex-direction: column; justify-content: center; gap: .15rem; min-width: 0; padding: .48rem .55rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface-secondary); }
.ficha-product-card__metric small { color: var(--color-text-secondary); font-size: .61rem; line-height: 1.2; }
.ficha-product-card__metric strong { overflow: hidden; color: var(--color-text-primary); font-size: .76rem; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.ficha-product-card__metric--highlight { border-color: color-mix(in srgb, var(--color-accent) 32%, var(--color-border)); background: color-mix(in srgb, var(--color-accent) 9%, var(--color-surface-secondary)); }
.ficha-product-card__metric--highlight strong { color: var(--color-accent); }
.ficha-product-card__actions { display: flex; justify-content: flex-end; margin-top: auto; padding-top: .75rem; }
.ficha-product-card__actions .btn { flex: 0 1 auto; }
.ficha-empty { padding: 2rem 1rem; border: 1px dashed var(--color-border); border-radius: var(--radius-md); color: var(--color-text-secondary); text-align: center; }
.ficha-product { display: flex; flex-direction: column; gap: .2rem; min-width: 150px; }
.ficha-product b { color: var(--color-text-primary); font-size: .82rem; }
.ficha-product small { color: var(--color-text-secondary); font-size: .68rem; }
.ficha-category { display: inline-flex; max-width: 190px; padding: .28rem .55rem; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface-secondary); color: var(--color-text-secondary); font-size: .68rem; font-weight: 600; line-height: 1.25; }
.ficha-status { display: flex; flex-wrap: wrap; gap: .3rem; }
.ficha-margin { display: inline-flex; min-width: 58px; justify-content: center; padding: .25rem .45rem; border-radius: 999px; background: color-mix(in srgb, var(--color-success) 15%, transparent); color: var(--color-success); font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ficha-margin.is-alert { background: color-mix(in srgb, var(--color-warning) 18%, transparent); color: var(--color-warning); }
.ficha-modal .modal__body { display: flex; flex-direction: column; gap: .85rem; }
.ficha-modal .modal__body h4 { margin: .35rem 0 0 !important; padding-bottom: .55rem; border-bottom: 1px solid var(--color-border); color: var(--color-text-primary); font-size: .9rem; }
.ficha-modal .modal__body > .table-wrap { box-shadow: none; }
.ficha-modal #fh-items .field__input, .ficha-modal #fh-items .field__select { min-width: 88px; }
.ficha-modal #fh-items td:last-child { text-align: center; }
.ficha-modal .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; }
@media (max-width: 900px) { .ficha-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .ficha-metrics { grid-template-columns: 1fr 1fr; gap: .55rem; }
  .ficha-metric { padding: .8rem; }
  .ficha-modal .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ficha-table-card__head { align-items: flex-start; }
  .ficha-table-card__count { display: none; }
  .ficha-product-card { grid-template-columns: 104px minmax(0, 1fr); }
  .ficha-product-card__image { min-height: 100%; }
  .ficha-product-card__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ficha-product-card__top { flex-direction: column; }
  .ficha-product-card__top .ficha-status { justify-content: flex-start; }
}
.promo-admin { margin-bottom: 1rem; }
.promo-admin__head { margin-bottom: .9rem; }
.promo-admin__head h3 { margin: 0 0 .2rem; color: var(--color-text-primary); }
.promo-admin__head .card__hint { margin: 0; }
.promo-admin__layout { display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.promo-admin__image { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
.promo-admin__image img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-md); border: 1px solid var(--color-border); background: var(--color-bg-main); }
.promo-admin__image .card__hint { margin: 0; }
.promo-admin__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1rem; }
.promo-admin__fields .field { min-width: 0; margin: 0; }
.promo-admin__actions { display: flex; justify-content: flex-end; margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--color-border); }
@media (max-width: 700px) {
  .promo-admin__layout { grid-template-columns: 1fr; }
  .promo-admin__image img { max-width: 260px; }
  .promo-admin__fields { grid-template-columns: 1fr; }
}

/* Banners ��� Mobile table adjustments (���600px) */
@media (max-width: 600px) {
  .banner-table-wrap { overflow: visible; border: 0; box-shadow: none; background: transparent; }
  .banner-table-wrap .tbl, .banner-table-wrap .tbl tbody { display: block; width: 100%; min-width: 0; }
  .banner-table-wrap .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .banner-table-wrap .tbl tbody { display: grid; gap: .7rem; }
  .banner-table-wrap .tbl tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-primary); box-shadow: var(--shadow-sm); }
  .banner-table-wrap .tbl tbody tr:hover { background: var(--color-surface-primary); }
  .banner-table-wrap .tbl td { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-width: 0; padding: .7rem .75rem; border-bottom: 1px solid var(--color-border); text-align: left !important; overflow-wrap: anywhere; }
  .banner-table-wrap .tbl td::before { content: attr(data-label); color: var(--color-text-secondary); font-size: .61rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
  .banner-table-wrap .tbl td:first-child { display: none; }
  .banner-table-wrap .tbl td:nth-child(2), .banner-table-wrap .tbl td:last-child { grid-column: 1 / -1; }
  .banner-table-wrap .tbl td:nth-child(2) { display: block; background: color-mix(in srgb, var(--color-accent) 5%, var(--color-surface-primary)); }
  .banner-table-wrap .tbl td:nth-child(2)::before { content: none; }
  .banner-table-wrap .tbl__actions { display: flex; flex-direction: row; flex-wrap: nowrap; gap: .45rem; white-space: nowrap; }
  .banner-table-wrap .tbl__actions .btn { flex: 0 0 auto; min-width: 80px; padding: .4rem .6rem; font-size: .75rem; }
  .banner-table-wrap .tbl td:nth-child(3), .banner-table-wrap .tbl td:nth-child(4), .banner-table-wrap .tbl td:nth-child(5) { display: none; }
}
@media (min-width: 901px) {
  .size-menu-product-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
  .size-menu-product-card { display: grid; grid-template-columns: minmax(150px, 38%) minmax(0, 1fr); grid-template-rows: 1fr auto; }
  .size-menu-product-card .product-card__image { grid-column: 1; grid-row: 1 / span 2; min-height: 230px; aspect-ratio: auto; }
  .size-menu-product-card .product-card__info { grid-column: 2; grid-row: 1; min-width: 0; padding: 1rem; }
  .size-menu-product-card .product-card__actions { grid-column: 2; grid-row: 2; }
}

/* Modera+�+�o de coment+�rios com a hierarquia visual do painel. */
.reviews-page-head { align-items: center; margin-bottom: 1rem; }
.reviews-page-head .toolbar__left > div { min-width: 0; }
.reviews-page-head .toolbar__left h2 { margin: .12rem 0 .25rem; color: var(--color-text-primary); font-size: 1.2rem; }
.reviews-page-head .card__hint { margin: 0; }
.reviews-page-head__eyebrow { color: var(--color-accent); font-size: .64rem; font-weight: 700; letter-spacing: .13em; }
.reviews-page-head__count { flex: 0 0 auto; padding: .38rem .7rem; border: 1px solid color-mix(in srgb, var(--color-accent) 28%, var(--admin-border)); border-radius: 999px; background: color-mix(in srgb, var(--color-accent) 9%, var(--color-surface-primary)); color: var(--color-text-primary); font-size: .7rem; font-weight: 700; }
.reviews-filter { margin-bottom: 1rem; padding: 1rem 1.15rem; border-color: var(--admin-border); border-radius: var(--admin-radius); background: var(--color-surface-primary); box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.reviews-filter__title { display: flex; align-items: center; gap: .55rem; margin: 0 0 .75rem; color: var(--color-text-primary); font-family: var(--font-family-body); font-size: .9rem; font-weight: 700; }
.reviews-filter__title::before { width: 3px; height: 1rem; border-radius: 3px; background: var(--color-accent); content: ''; }
.reviews-filter__chips { margin-bottom: .8rem; }
.reviews-filter .chip { border-color: var(--admin-border); background: var(--color-bg-main); }
.reviews-filter .chip.is-on { border-color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 15%, var(--color-surface-primary)); color: var(--color-accent); box-shadow: none; }
.reviews-filter__search-group { gap: .65rem; }
.reviews-filter__input { min-height: 42px; border-radius: 9px; }
.review-card.mobile { padding: 0; border-color: var(--admin-border); border-radius: var(--admin-radius); background: var(--color-surface-primary); box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.review-card.mobile:hover { border-color: color-mix(in srgb, var(--color-accent) 42%, var(--admin-border)); box-shadow: 0 8px 22px rgba(0,0,0,.11); transform: translateY(-1px); }
.review-card__header { align-items: center; border-color: var(--admin-border); background: color-mix(in srgb, var(--color-accent) 4%, var(--color-surface-primary)); }
.review-card__product { max-width: 100%; overflow: hidden; border: 1px solid color-mix(in srgb, var(--color-accent) 28%, var(--admin-border)); background: color-mix(in srgb, var(--color-accent) 12%, var(--color-surface-primary)); color: var(--color-accent); text-overflow: ellipsis; white-space: nowrap; }
.review-card__rating { color: #f3b94f; letter-spacing: .08em; }
.review-card__title { padding: 0 16px; line-height: 1.35; }
.review-card__body { line-height: 1.6; overflow-wrap: anywhere; }
.review-card__footer { align-items: center; border-color: var(--admin-border); }
.review-card__author, .review-card__date { display: block; margin-top: .2rem; }
.review-card__actions { gap: .55rem; }
.review-card__actions .btn { min-height: 42px; border-radius: 9px; }
.reviews-page-head + .reviews-filter + .table-wrap .tbl { min-width: 960px; }
.reviews-page-head + .reviews-filter + .table-wrap .tbl td { vertical-align: top; }
.reviews-page-head + .reviews-filter + .table-wrap .tbl td:nth-child(5) { min-width: 220px; max-width: 360px; line-height: 1.5; overflow-wrap: anywhere; }
.reviews-page-head + .reviews-filter + .table-wrap .tbl td:nth-child(3) { color: #f3b94f; white-space: nowrap; }
.reviews-page-head + .reviews-filter + .table-wrap .tbl td:nth-child(6), .reviews-page-head + .reviews-filter + .table-wrap .tbl td:nth-child(7), .reviews-page-head + .reviews-filter + .table-wrap .tbl td:nth-child(8) { white-space: nowrap; }
.review-empty { display: flex; flex-direction: column; align-items: center; gap: .35rem; margin-bottom: 1rem; padding: 2rem 1rem; border: 1px dashed var(--admin-border); border-radius: var(--admin-radius); background: var(--color-surface-primary); text-align: center; }
.review-empty strong { color: var(--color-text-primary); font-size: .9rem; }
.review-empty span { color: var(--color-text-secondary); font-size: .77rem; }
.review-empty--table { margin: .35rem; }
@media (max-width: 640px) {
  .reviews-page-head { align-items: flex-start; }
  .reviews-page-head__count { margin-top: .25rem; }
  .reviews-filter.mobile { padding: 1rem; border-color: var(--admin-border); border-radius: var(--admin-radius); background: var(--color-surface-primary); }
  .reviews-filter.mobile .reviews-filter__title { margin-bottom: .8rem; text-align: left; }
  .reviews-filter.mobile .reviews-filter__chips { justify-content: flex-start; }
  .reviews-filter.mobile .chip { border-radius: 8px; }
  .reviews-filter.mobile .reviews-filter__input { min-height: 42px; padding: .7rem .9rem; }
}

/* Cat+�logo de adicionais: resumo, filtros e tabela no padr+�o do painel. */
.addon-toolbar .toolbar__left > div { min-width: 0; }
.addon-toolbar .toolbar__left h2 { margin: .12rem 0 .25rem; color: var(--color-text-primary); font-size: 1.2rem; }
.addon-toolbar .card__hint { margin: 0; }
.addon-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0 0 1rem; }
.addon-stat { display: flex; flex-direction: column; gap: .32rem; min-width: 0; padding: 1rem 1.15rem; border: 1px solid var(--admin-border); border-top: 2px solid var(--color-accent); border-radius: var(--admin-radius); background: var(--color-surface-primary); box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.addon-stat > span { color: var(--color-text-secondary); font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.addon-stat strong { color: var(--color-text-primary); font-size: 1.65rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.addon-stat small { color: var(--color-text-secondary); font-size: .68rem; }
.addon-stat--active { border-top-color: var(--color-success); }
.addon-stat--required { border-top-color: var(--color-warning); }
.addon-list-card { padding: clamp(1rem, 1.8vw, 1.4rem); }
.addon-list-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.addon-list-card__head h3 { margin: 0 0 .25rem; }
.addon-list-card__head h3::before { display: none; }
.addon-list-card__head .card__hint { margin: 0; }
.addon-count { flex: 0 0 auto; padding: .32rem .65rem; border: 1px solid var(--admin-border); border-radius: 999px; background: var(--color-surface-secondary); color: var(--color-text-secondary); font-size: .68rem; font-weight: 700; }
.addon-filters { display: grid; grid-template-columns: minmax(220px, 1.5fr) repeat(2, minmax(160px, .8fr)); gap: .75rem; align-items: end; margin-bottom: 1rem; padding: .85rem; border: 1px solid var(--admin-border); border-radius: 10px; background: color-mix(in srgb, var(--color-accent) 4%, var(--color-surface-primary)); }
.addon-filters .field { min-width: 0; margin: 0; }
.addon-filters .field__label { text-transform: none; color: var(--color-text-primary); font-size: .74rem; letter-spacing: 0; }
.addon-filters .field__input, .addon-filters .field__select { min-height: 40px; background-color: var(--color-bg-main); }
.addon-table-wrap { margin: 0; }
.addon-table { min-width: 900px; }
.addon-table th { white-space: nowrap; }
.addon-table td { vertical-align: middle; }
.addon-table td.price, .addon-table td.number { font-variant-numeric: tabular-nums; white-space: nowrap; }
.addon-id { padding: .24rem .42rem; border: 1px solid var(--admin-border); border-radius: 6px; background: var(--color-bg-main); color: var(--color-text-secondary); font-size: .7rem; }
.addon-name { color: var(--color-text-primary); font-size: .82rem; }
.addon-group { display: inline-flex; padding: .28rem .55rem; border: 1px solid var(--admin-border); border-radius: 999px; background: var(--color-surface-secondary); color: var(--color-text-secondary); font-size: .68rem; font-weight: 600; white-space: nowrap; }
.addon-actions { display: flex; gap: .35rem; }
.addon-empty { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 1.6rem .8rem; text-align: center; }
.addon-empty strong { color: var(--color-text-primary); font-size: .84rem; }
.addon-empty span { color: var(--color-text-secondary); font-size: .72rem; }
.addon-modal .modal__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1rem; }
.addon-modal .modal__body > .field { min-width: 0; margin: 0; }
.addon-modal .modal__body > .field:nth-child(1), .addon-modal .modal__body > .field:nth-child(2) { grid-column: 1 / -1; }
.addon-modal .modal__body .field__label { text-transform: none; color: var(--color-text-primary); font-size: .76rem; letter-spacing: 0; }
.addon-toggle { display: flex; align-items: center; gap: .6rem; min-height: 42px; margin: 0; padding: .65rem .75rem; border: 1px solid var(--admin-border); border-radius: 9px; background: var(--color-surface-secondary); color: var(--color-text-primary); font-size: .76rem; font-weight: 600; cursor: pointer; }
.addon-toggle input { accent-color: var(--color-accent); width: 16px; height: 16px; }
.addon-modal .modal__foot { margin: 0; }
@media (max-width: 760px) {
  .addon-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .addon-filters { grid-template-columns: 1fr 1fr; }
  .addon-filters__search { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .addon-overview { grid-template-columns: 1fr 1fr; }
  .addon-stat { padding: .8rem; }
  .addon-stat strong { font-size: 1.4rem; }
  .addon-toolbar .toolbar__right, .addon-toolbar .btn { width: 100%; }
  .addon-list-card__head { align-items: flex-start; }
  .addon-count { display: none; }
  .addon-filters { grid-template-columns: 1fr; }
  .addon-filters__search { grid-column: auto; }
  .addon-modal .modal__body { grid-template-columns: 1fr; }
  .addon-modal .modal__body > .field:nth-child(1), .addon-modal .modal__body > .field:nth-child(2) { grid-column: auto; }
  .addon-modal .modal__body .addon-toggle { grid-column: 1 / -1; }
  .addon-table-wrap { overflow: visible; border: 0; box-shadow: none; background: transparent; }
  .addon-table-wrap .tbl, .addon-table-wrap .tbl tbody { display: block; width: 100%; min-width: 0; }
  .addon-table-wrap .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .addon-table-wrap .tbl tbody { display: grid; gap: .7rem; }
  .addon-table-wrap .tbl tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-primary); box-shadow: var(--shadow-sm); }
  .addon-table-wrap .tbl tbody tr:hover { background: var(--color-surface-primary); }
  .addon-table-wrap .tbl td { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-width: 0; padding: .7rem .75rem; border-bottom: 1px solid var(--color-border); text-align: left !important; overflow-wrap: anywhere; }
  .addon-table-wrap .tbl td::before { content: attr(data-label); color: var(--color-text-secondary); font-size: .61rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
  .addon-table-wrap .tbl td:first-child { display: none; }
  .addon-table-wrap .tbl td:nth-child(2), .addon-table-wrap .tbl td:last-child { grid-column: 1 / -1; }
  .addon-table-wrap .tbl td:nth-child(2) { display: block; background: color-mix(in srgb, var(--color-accent) 5%, var(--color-surface-primary)); }
  .addon-table-wrap .tbl td:nth-child(2)::before { content: none; }
  .addon-table-wrap .tbl__actions { display: flex; flex-direction: row; flex-wrap: nowrap; gap: .45rem; white-space: nowrap; }
  .addon-table-wrap .tbl__actions .btn { flex: 0 0 auto; min-width: 80px; padding: .4rem .6rem; font-size: .75rem; }
  .addon-table-wrap .tbl td:nth-child(3), .addon-table-wrap .tbl td:nth-child(4), .addon-table-wrap .tbl td:nth-child(5), .addon-table-wrap .tbl td:nth-child(6) { display: none; }
}

/* Bebidas: cat+�logo alinhado ao tema administrativo */
.beverage-toolbar { align-items: flex-start; }
.beverage-toolbar .toolbar__left > div { min-width: 0; }
.beverage-toolbar .toolbar__left h2 { margin: .12rem 0 .25rem; color: var(--color-text-primary); font-size: 1.2rem; }
.beverage-toolbar .card__hint { margin: 0; }
.beverage-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0 0 1rem; }
.beverage-stat { display: flex; flex-direction: column; gap: .32rem; min-width: 0; padding: 1rem 1.15rem; border: 1px solid var(--admin-border); border-top: 2px solid var(--color-accent); border-radius: var(--admin-radius); background: var(--color-surface-primary); box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.beverage-stat > span { color: var(--color-text-secondary); font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.beverage-stat strong { color: var(--color-text-primary); font-size: 1.65rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.beverage-stat small { color: var(--color-text-secondary); font-size: .68rem; }
.beverage-stat--active { border-top-color: var(--color-success); }
.beverage-stat--paused { border-top-color: var(--color-warning); }
.beverage-list-card { padding: clamp(1rem, 1.8vw, 1.4rem); }
.beverage-list-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.beverage-list-card__head h3 { margin: 0 0 .25rem; }
.beverage-list-card__head h3::before { display: none; }
.beverage-list-card__head .card__hint { margin: 0; }
.beverage-count { flex: 0 0 auto; padding: .32rem .65rem; border: 1px solid var(--admin-border); border-radius: 999px; background: var(--color-surface-secondary); color: var(--color-text-secondary); font-size: .68rem; font-weight: 700; }
.beverage-filters { display: grid; grid-template-columns: minmax(220px, 1.5fr) minmax(160px, .8fr); gap: .75rem; align-items: end; margin-bottom: 1rem; padding: .85rem; border: 1px solid var(--admin-border); border-radius: 10px; background: color-mix(in srgb, var(--color-accent) 4%, var(--color-surface-primary)); }
.beverage-filters .field { min-width: 0; margin: 0; }
.beverage-filters .field__label { text-transform: none; color: var(--color-text-primary); font-size: .74rem; letter-spacing: 0; }
.beverage-filters .field__input, .beverage-filters .field__select { min-height: 40px; background-color: var(--color-bg-main); }
.beverage-table-wrap { margin: 0; }
.beverage-table { min-width: 850px; }
.beverage-table th { white-space: nowrap; }
.beverage-table td { vertical-align: middle; }
.beverage-name { color: var(--color-text-primary); font-size: .82rem; }
.beverage-id { display: inline-block; margin-top: .22rem; padding: .18rem .38rem; border: 1px solid var(--admin-border); border-radius: 5px; background: var(--color-bg-main); color: var(--color-text-secondary); font-size: .67rem; }
.beverage-price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.beverage-actions { display: flex; gap: .35rem; white-space: nowrap; }
.beverage-empty { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 1.6rem .8rem; text-align: center; }
.beverage-empty strong { color: var(--color-text-primary); font-size: .84rem; }
.beverage-empty span { color: var(--color-text-secondary); font-size: .72rem; }
@media (max-width: 600px) { .beverage-overview { grid-template-columns: 1fr 1fr; } .beverage-stat { padding: .8rem; } .beverage-stat strong { font-size: 1.4rem; } .beverage-toolbar .toolbar__right, .beverage-toolbar .btn { width: 100%; } .beverage-list-card__head { align-items: flex-start; } .beverage-count { display: none; } .beverage-filters { grid-template-columns: 1fr; } }

/* Bebidas ��� Mobile table adjustments (���600px) */
@media (max-width: 600px) {
  .beverage-table-wrap { overflow: visible; border: 0; box-shadow: none; background: transparent; }
  .beverage-table-wrap .tbl, .beverage-table-wrap .tbl tbody { display: block; width: 100%; min-width: 0; }
  .beverage-table-wrap .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .beverage-table-wrap .tbl tbody { display: grid; gap: .7rem; }
  .beverage-table-wrap .tbl tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-primary); box-shadow: var(--shadow-sm); }
  .beverage-table-wrap .tbl tbody tr:hover { background: var(--color-surface-primary); }
  .beverage-table-wrap .tbl td { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-width: 0; padding: .7rem .75rem; border-bottom: 1px solid var(--color-border); text-align: left !important; overflow-wrap: anywhere; }
  .beverage-table-wrap .tbl td::before { content: attr(data-label); color: var(--color-text-secondary); font-size: .61rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
  .beverage-table-wrap .tbl td:first-child { display: none; }
  .beverage-table-wrap .tbl td:nth-child(2), .beverage-table-wrap .tbl td:last-child { grid-column: 1 / -1; }
  .beverage-table-wrap .tbl td:nth-child(2) { display: block; background: color-mix(in srgb, var(--color-accent) 5%, var(--color-surface-primary)); }
  .beverage-table-wrap .tbl td:nth-child(2)::before { content: none; }
  .beverage-table-wrap .tbl__actions { display: flex; flex-direction: row; flex-wrap: nowrap; gap: .45rem; white-space: nowrap; }
  .beverage-table-wrap .tbl__actions .btn { flex: 0 0 auto; min-width: 80px; padding: .4rem .6rem; font-size: .75rem; }
  .beverage-table-wrap .tbl td:nth-child(3), .beverage-table-wrap .tbl td:nth-child(4) { display: none; }
}

@media (max-width: 480px) {
  .beverage-table-wrap .tbl tbody tr { grid-template-columns: 1fr; }
}

.prod-modal__image-editor { flex-direction: column; align-items: center; gap: .55rem; }
.prod-modal__image-editor .prod-modal__img { display: block; }
.prod-modal__image-editor small { color: var(--color-text-secondary); font-size: .7rem; text-align: center; }

.cat-product-image-editor { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; padding: .85rem; border: 1px solid var(--admin-border); border-radius: 10px; background: var(--color-surface-secondary); }
.cat-product-image-editor img { width: min(100%, 280px); height: 160px; object-fit: cover; border: 1px solid var(--admin-border); border-radius: 8px; background: var(--color-bg-main); }
.cat-product-image-editor small { color: var(--color-text-secondary); font-size: .7rem; }

.coupon-toolbar { align-items: flex-start; }
.coupon-toolbar .toolbar__left > div { min-width: 0; }
.coupon-toolbar .toolbar__left h2 { margin: .12rem 0 .25rem; color: var(--color-text-primary); font-size: 1.2rem; }
.coupon-toolbar .card__hint { margin: 0; }
.coupon-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0 0 1rem; }
.coupon-stat { display: flex; flex-direction: column; gap: .32rem; min-width: 0; padding: 1rem 1.15rem; border: 1px solid var(--admin-border); border-top: 2px solid var(--color-accent); border-radius: var(--admin-radius); background: var(--color-surface-primary); box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.coupon-stat > span { color: var(--color-text-secondary); font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.coupon-stat strong { color: var(--color-text-primary); font-size: 1.65rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.coupon-stat small { color: var(--color-text-secondary); font-size: .68rem; }
.coupon-stat--active { border-top-color: var(--color-success); }
.coupon-stat--highlight { border-top-color: var(--color-warning); }
.coupon-list-card { padding: clamp(1rem, 1.8vw, 1.4rem); }
.coupon-list-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.coupon-list-card__head h3 { margin: 0 0 .25rem; }
.coupon-list-card__head h3::before { display: none; }
.coupon-list-card__head .card__hint { margin: 0; }
.coupon-count { flex: 0 0 auto; padding: .32rem .65rem; border: 1px solid var(--admin-border); border-radius: 999px; background: var(--color-surface-secondary); color: var(--color-text-secondary); font-size: .68rem; font-weight: 700; }
.coupon-filters { display: grid; grid-template-columns: minmax(220px, 1.5fr) minmax(160px, .8fr); gap: .75rem; align-items: end; margin-bottom: 1rem; padding: .85rem; border: 1px solid var(--admin-border); border-radius: 10px; background: color-mix(in srgb, var(--color-accent) 4%, var(--color-surface-primary)); }
.coupon-filters .field { min-width: 0; margin: 0; }
.coupon-filters .field__label { color: var(--color-text-primary); font-size: .74rem; letter-spacing: 0; text-transform: none; }
.coupon-filters .field__input, .coupon-filters .field__select { min-height: 40px; background-color: var(--color-bg-main); }
.coupon-table-wrap { margin: 0; }
.coupon-table { min-width: 1020px; }
.coupon-table th { white-space: nowrap; }
.coupon-table td { vertical-align: middle; }
.coupon-code { display: inline-block; padding: .26rem .48rem; border: 1px solid var(--admin-border); border-radius: 6px; background: var(--color-bg-main); color: var(--color-accent); font-size: .74rem; font-weight: 700; }
.coupon-type { color: var(--color-text-secondary); font-size: .75rem; }
.coupon-value, .coupon-uses { white-space: nowrap; font-variant-numeric: tabular-nums; }
.coupon-label { color: var(--color-text-primary); font-size: .78rem; }
.coupon-expiry { white-space: nowrap; color: var(--color-text-secondary); font-size: .75rem; }
.coupon-actions { display: flex; gap: .35rem; white-space: nowrap; }
.coupon-empty { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 1.6rem .8rem; text-align: center; }
.coupon-empty strong { color: var(--color-text-primary); font-size: .84rem; }
.coupon-empty span { color: var(--color-text-secondary); font-size: .72rem; }
.coupon-modal .modal__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1rem; }
.coupon-modal .modal__body > .field { min-width: 0; margin: 0; }
.coupon-modal .modal__body .field__label { color: var(--color-text-primary); font-size: .76rem; letter-spacing: 0; text-transform: none; }
.coupon-modal .modal__body small { display: block; margin-top: .3rem; color: var(--color-text-secondary); font-size: .68rem; }
.coupon-toggle { display: flex; align-items: center; gap: .6rem; min-height: 42px; margin: 0; padding: .65rem .75rem; border: 1px solid var(--admin-border); border-radius: 9px; background: var(--color-surface-secondary); color: var(--color-text-primary); font-size: .76rem; font-weight: 600; cursor: pointer; }
.coupon-toggle input { width: 16px; height: 16px; accent-color: var(--color-accent); }
@media (max-width: 900px) { .coupon-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; } }
@media (max-width: 600px) { 
  .coupon-overview { grid-template-columns: 1fr; gap: .75rem; }
  .coupon-stat { padding: .85rem 1rem; }
  .coupon-stat strong { font-size: 1.4rem; }
  .coupon-toolbar .toolbar__right, .coupon-toolbar .btn { width: 100%; }
  .coupon-list-card__head { align-items: flex-start; }
  .coupon-count { display: none; }
  .coupon-filters { grid-template-columns: 1fr; }
  .coupon-modal .modal__body { grid-template-columns: 1fr; }
  .coupon-table-wrap { overflow: visible; border: 0; box-shadow: none; background: transparent; }
  .coupon-table-wrap .tbl, .coupon-table-wrap .tbl tbody { display: block; width: 100%; min-width: 0; }
  .coupon-table-wrap .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .coupon-table-wrap .tbl tbody { display: grid; gap: .7rem; }
  .coupon-table-wrap .tbl tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-primary); box-shadow: var(--shadow-sm); }
  .coupon-table-wrap .tbl tbody tr:hover { background: var(--color-surface-primary); }
  .coupon-table-wrap .tbl td { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-width: 0; padding: .7rem .75rem; border-bottom: 1px solid var(--color-border); text-align: left !important; overflow-wrap: anywhere; }
  .coupon-table-wrap .tbl td::before { content: attr(data-label); color: var(--color-text-secondary); font-size: .61rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
  .coupon-table-wrap .tbl td:first-child { display: none; }
  .coupon-table-wrap .tbl td:nth-child(2), .coupon-table-wrap .tbl td:last-child { grid-column: 1 / -1; }
  .coupon-table-wrap .tbl td:nth-child(2) { display: block; background: color-mix(in srgb, var(--color-accent) 5%, var(--color-surface-primary)); }
  .coupon-table-wrap .tbl td:nth-child(2)::before { content: none; }
  .coupon-table-wrap .tbl__actions { display: flex; flex-direction: row; flex-wrap: nowrap; gap: .45rem; white-space: nowrap; }
  .coupon-table-wrap .tbl__actions .btn { flex: 0 0 auto; min-width: 80px; padding: .4rem .6rem; font-size: .75rem; }
  .coupon-table-wrap .tbl td:nth-child(3), .coupon-table-wrap .tbl td:nth-child(4), .coupon-table-wrap .tbl td:nth-child(5), .coupon-table-wrap .tbl td:nth-child(6) { display: none; }
}

/* =====================================================================
   TAMANHOS ��� Layout (Desktop & Mobile)
   ===================================================================== */
.size-page__eyebrow { display: block; margin-bottom: .2rem; color: var(--color-accent); font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.toolbar__left .size-page__eyebrow + h2 { margin-bottom: .25rem; }
.toolbar__left .size-page__eyebrow ~ .card__hint { margin: 0; max-width: 620px; line-height: 1.45; }
.size-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; margin: 0 0 1rem; }
.size-summary__card { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-width: 0; padding: .9rem 1rem; border: 1px solid var(--color-border); border-top: 2px solid var(--color-accent); border-radius: var(--admin-radius); background: var(--color-surface-primary); box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.size-summary__card span { color: var(--color-text-secondary); font-size: .72rem; font-weight: 600; }
.size-summary__card strong { color: var(--color-text-primary); font-size: 1.4rem; font-variant-numeric: tabular-nums; line-height: 1; }
.size-summary__card--active { border-top-color: var(--color-success); }
.size-summary__card--inactive { border-top-color: var(--color-warning); }
.size-page__table { margin: 0; }
.size-page__table .tbl { min-width: 760px; }
.size-page__table .tbl__actions { white-space: nowrap; }
.size-page__table .tbl__actions .btn { min-width: 34px; padding-inline: .55rem; }

@media (max-width: 640px) { 
  .size-summary { grid-template-columns: 1fr; gap: .6rem; } 
  .toolbar:has(.size-page__eyebrow) { align-items: flex-start; flex-direction: column; } 
  .toolbar:has(.size-page__eyebrow) .toolbar__right, .toolbar:has(.size-page__eyebrow) .btn { width: 100%; } 
}

/* Tamanhos ��� Mobile table adjustments (���600px) */
@media (max-width: 600px) {
  .size-page__table .tbl, .size-page__table .tbl tbody { display: block; width: 100%; min-width: 0; }
  .size-page__table .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .size-page__table .tbl tbody { display: grid; gap: .7rem; }
  .size-page__table .tbl tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-primary); box-shadow: var(--shadow-sm); }
  .size-page__table .tbl tbody tr:hover { background: var(--color-surface-primary); }
  .size-page__table .tbl td { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-width: 0; padding: .7rem .75rem; border-bottom: 1px solid var(--color-border); text-align: left !important; overflow-wrap: anywhere; }
  .size-page__table .tbl td::before { content: attr(data-label); color: var(--color-text-secondary); font-size: .61rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
  .size-page__table .tbl td:first-child { display: none; }
  .size-page__table .tbl td:nth-child(2), .size-page__table .tbl td:last-child { grid-column: 1 / -1; }
  .size-page__table .tbl td:nth-child(2) { display: block; background: color-mix(in srgb, var(--color-accent) 5%, var(--color-surface-primary)); }
  .size-page__table .tbl td:nth-child(2)::before { content: none; }
  .size-page__table .tbl__actions { display: flex; flex-direction: row; flex-wrap: nowrap; gap: .45rem; white-space: nowrap; }
  .size-page__table .tbl__actions .btn { flex: 0 0 auto; min-width: 80px; padding: .4rem .6rem; font-size: .75rem; }
  .size-page__table .tbl__actions .btn--ghost { background: transparent; }
  .size-page__table .tbl__actions .btn--sm { padding: .5rem .75rem; font-size: .75rem; }
  .size-page__table .tbl td:nth-child(3), .size-page__table .tbl td:nth-child(4) { display: none; }
}
@media (max-width: 480px) {
  .size-page__table .tbl tbody tr { grid-template-columns: 1fr; }
}

/* =====================================================================
   +�REAS DE ENTREGA ��� Card-based Layout (Desktop & Mobile)
   ===================================================================== */
.area-toolbar { align-items: flex-start; }
.area-toolbar .toolbar__left > div { min-width: 0; }
.area-toolbar .toolbar__left h2 { margin: .12rem 0 .25rem; color: var(--color-text-primary); font-size: 1.2rem; }
.area-toolbar .card__hint { margin: 0; }
.area-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0 0 1rem; }
.area-stat { display: flex; flex-direction: column; gap: .32rem; min-width: 0; padding: 1rem 1.15rem; border: 1px solid var(--color-border); border-top: 2px solid var(--color-accent); border-radius: var(--radius-md); background: var(--color-surface-primary); box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.area-stat > span { color: var(--color-text-secondary); font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.area-stat strong { color: var(--color-text-primary); font-size: 1.55rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.area-stat small { color: var(--color-text-secondary); font-size: .68rem; }
.area-stat--active { border-top-color: var(--color-success); }
.area-stat--fees { border-top-color: var(--color-warning); }

.area-list-card { padding: clamp(1rem, 1.8vw, 1.4rem); }
.area-list-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.area-list-card__head h3 { margin: 0 0 .25rem; }
.area-list-card__head .card__hint { margin: 0; font-size: .8rem; }
.area-count { flex: 0 0 auto; padding: .32rem .65rem; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface-secondary); color: var(--color-text-secondary); font-size: .68rem; font-weight: 700; white-space: nowrap; }
.area-filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; margin-bottom: 1rem; padding: .85rem; border: 1px solid var(--color-border); border-radius: 10px; background: color-mix(in srgb, var(--color-accent) 4%, var(--color-surface-primary)); }
.area-filters .field { min-width: 0; margin: 0; flex: 1; min-width: 200px; }
.area-filters .field__label { color: var(--color-text-primary); font-size: .74rem; letter-spacing: 0; text-transform: none; }
.area-filters .field__input, .area-filters .field__select { min-height: 40px; background-color: var(--color-bg-main); }

/* Card-based layout for areas */
.area-cards { margin: 0; }
.area-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.area-empty { display: flex; flex-direction: column; align-items: center; gap: .75rem; padding: 2.5rem 1.5rem; text-align: center; color: var(--color-text-secondary); }
.area-empty svg { width: 48px; height: 48px; color: var(--color-text-secondary); opacity: 0.4; }
.area-empty strong { color: var(--color-text-primary); font-size: .95rem; margin-top: .5rem; }
.area-empty span { color: var(--color-text-secondary); font-size: .8rem; max-width: 280px; }

/* Area Card */
.area-card { background: var(--color-surface-primary); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.15rem; display: flex; flex-direction: column; gap: .85rem; transition: all 0.15s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.area-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); border-color: var(--color-accent); transform: translateY(-1px); }
.area-card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.area-card__main { min-width: 0; flex: 1; }
.area-card__name { font-size: .95rem; color: var(--color-text-primary); font-weight: 600; display: block; margin-bottom: .15rem; }
.area-card__id { font-size: .65rem; color: var(--color-text-secondary); font-family: monospace; background: var(--color-bg-main); padding: .1rem .4rem; border-radius: 4px; display: inline-block; }
.area-card__status { flex-shrink: 0; }
.area-card__details { display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem .85rem; padding-top: .25rem; border-top: 1px solid var(--color-border); }
.area-card__detail { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.area-card__label { font-size: .6rem; color: var(--color-text-secondary); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.area-card__value { font-size: .82rem; color: var(--color-text-primary); font-weight: 500; word-break: break-word; }
.area-price { color: var(--color-accent); font-weight: 600; }
.area-cep { font-size: .7rem; color: var(--color-text-secondary); font-family: monospace; }
.area-card__actions { display: flex; gap: .5rem; padding-top: .35rem; border-top: 1px solid var(--color-border); margin-top: .15rem; }
.area-card__actions .btn { flex: 1; justify-content: center; }

/* Responsive breakpoints */
@media (max-width: 900px) {
  .area-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
}
@media (max-width: 600px) {
  .area-overview { grid-template-columns: 1fr; gap: .75rem; }
  .area-stat { padding: .85rem 1rem; }
  .area-stat > span { font-size: .62rem; }
  .area-stat strong { font-size: 1.4rem; }
  .area-stat small { font-size: .62rem; }

  /* Area card mobile adjustments */
  .area-cards-grid { grid-template-columns: 1fr; }
  .area-card__header { flex-direction: column; gap: .5rem; align-items: flex-start; }
  .area-card__status { align-self: flex-start; }
  .area-card__details { grid-template-columns: 1fr; gap: .5rem; }
  .area-card__actions { flex-direction: column; gap: .4rem; }
  .area-card__actions .btn { width: 100%; justify-content: center; }
  .area-filters .field { flex: 1 1 100%; min-width: 0; }
}

/* Usu+�rios: gest+�o de acessos */
.users-toolbar { align-items: flex-end; gap: 1rem; }
.users-toolbar .toolbar__left { flex: 1 1 420px; min-width: 0; }
.users-toolbar .toolbar__left h2 { margin: .15rem 0 .4rem; }
.users-toolbar .toolbar__left .card__hint { margin: 0; max-width: 620px; }
.users-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; margin: 0 0 1rem; }
.users-summary__item { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 76px; padding: 1rem 1.15rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: linear-gradient(135deg, var(--color-surface-primary), var(--color-surface-secondary)); }
.users-summary__item span { color: var(--color-text-secondary); font-size: .82rem; }
.users-summary__item strong { color: var(--color-accent); font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.users-table-card { padding: clamp(1rem, 1.8vw, 1.4rem); }
.users-table-card__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.users-table-card__head h3 { margin: 0 0 .3rem; color: var(--color-text-primary); }
.users-table-card__head .card__hint { margin: 0; }
.users-count { padding: .4rem .7rem; border: 1px solid var(--color-border); border-radius: 999px; color: var(--color-text-secondary); background: var(--color-surface-secondary); font-size: .76rem; white-space: nowrap; }
.users-avatar { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--color-border); border-radius: 50%; object-fit: cover; }
.users-avatar--initial { color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 10%, var(--color-surface-primary)); font-size: .85rem; font-weight: 800; }
.users-role { display: inline-flex; padding: .3rem .55rem; border-radius: 999px; color: var(--color-text-secondary); background: var(--color-surface-secondary); font-size: .75rem; font-weight: 650; }
.users-self-tag { display: inline-flex; margin-left: .35rem; padding: .2rem .45rem; border-radius: 999px; color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 10%, var(--color-surface-primary)); font-size: .65rem; font-weight: 700; vertical-align: middle; }
.users-table-card .tbl__actions .btn:disabled { cursor: not-allowed; opacity: .45; }
.users-empty { padding: 1.5rem !important; text-align: center; line-height: 1.6; }
.users-form-avatar { display: flex; align-items: center; gap: .9rem; padding: .9rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-secondary); }
.users-form-avatar > div { display: grid; gap: .25rem; min-width: 0; }
.users-form-avatar > div > strong { color: var(--color-text-primary); font-size: .86rem; }
.users-form-avatar .card__hint { margin: 0; font-size: .76rem; }
.users-form-avatar input[type="file"] { max-width: 100%; color: var(--color-text-secondary); font-size: .78rem; }
.users-avatar--large { flex: 0 0 58px; width: 58px; height: 58px; color: var(--color-accent); font-size: 1.15rem; font-weight: 800; }
.users-avatar--large img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.users-active-toggle { display: flex; align-items: center; gap: .7rem; padding: .85rem .95rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface-secondary); cursor: pointer; }
.users-active-toggle input { width: 1rem; height: 1rem; accent-color: var(--color-accent); }
.users-active-toggle span { display: grid; gap: .15rem; }
.users-active-toggle strong { color: var(--color-text-primary); font-size: .84rem; }
.users-active-toggle small, .field__hint { color: var(--color-text-secondary); font-size: .76rem; line-height: 1.45; }
.field__hint { display: block; margin-top: .35rem; }
.users-form-error { margin: 0; padding: .7rem .85rem; border: 1px solid color-mix(in srgb, var(--color-error) 30%, transparent); border-radius: var(--radius-sm); color: var(--color-error); background: color-mix(in srgb, var(--color-error) 7%, var(--color-surface-primary)); line-height: 1.5; }
.users-form-error[hidden] { display: none; }
@media (max-width: 900px) { .users-toolbar { align-items: stretch; flex-direction: column; } .users-toolbar .toolbar__right { width: 100%; } }
@media (max-width: 700px) { .users-summary { grid-template-columns: 1fr; gap: .55rem; } .users-summary__item { min-height: 62px; } }
@media (max-width: 560px) { .users-table-card__head { align-items: flex-start; flex-direction: column; } .users-form-avatar { align-items: flex-start; } .users-toolbar .toolbar__right .btn { width: 100%; } }

/* Usuarios ��� Mobile table adjustments (���600px) */
@media (max-width: 600px) {
  .users-table-card .table-wrap { overflow: visible; border: 0; box-shadow: none; background: transparent; }
  .users-table-card .tbl, .users-table-card .tbl tbody { display: block; width: 100%; min-width: 0; }
  .users-table-card .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .users-table-card .tbl tbody { display: grid; gap: .7rem; }
  .users-table-card .tbl tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-primary); box-shadow: var(--shadow-sm); }
  .users-table-card .tbl tbody tr:hover { background: var(--color-surface-primary); }
  .users-table-card .tbl td { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-width: 0; padding: .7rem .75rem; border-bottom: 1px solid var(--color-border); text-align: left !important; overflow-wrap: anywhere; }
  .users-table-card .tbl td::before { content: attr(data-label); color: var(--color-text-secondary); font-size: .61rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
  .users-table-card .tbl td:first-child { display: none; }
  .users-table-card .tbl td:nth-child(2), .users-table-card .tbl td:last-child { grid-column: 1 / -1; }
  .users-table-card .tbl td:nth-child(2) { display: block; background: color-mix(in srgb, var(--color-accent) 5%, var(--color-surface-primary)); }
  .users-table-card .tbl td:nth-child(2)::before { content: none; }
  .users-table-card .tbl__actions { display: flex; flex-direction: row; flex-wrap: nowrap; gap: .45rem; white-space: nowrap; }
  .users-table-card .tbl__actions .btn { flex: 0 0 auto; min-width: 80px; padding: .4rem .6rem; font-size: .75rem; }
  .users-table-card .tbl td:nth-child(3), .users-table-card .tbl td:nth-child(4), .users-table-card .tbl td:nth-child(5) { display: none; }
}

/* Vendedores ��� Mobile table adjustments (���600px) */
@media (max-width: 600px) {
  .sellers-table-card .table-wrap { overflow: visible; border: 0; box-shadow: none; background: transparent; }
  .sellers-table-card .tbl, .sellers-table-card .tbl tbody { display: block; width: 100%; min-width: 0; }
  .sellers-table-card .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .sellers-table-card .tbl tbody { display: grid; gap: .7rem; }
  .sellers-table-card .tbl tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-primary); box-shadow: var(--shadow-sm); }
  .sellers-table-card .tbl tbody tr:hover { background: var(--color-surface-primary); }
  .sellers-table-card .tbl td { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-width: 0; padding: .7rem .75rem; border-bottom: 1px solid var(--color-border); text-align: left !important; overflow-wrap: anywhere; }
  .sellers-table-card .tbl td::before { content: attr(data-label); color: var(--color-text-secondary); font-size: .61rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
  .sellers-table-card .tbl td:first-child { display: none; }
  .sellers-table-card .tbl td:nth-child(2), .sellers-table-card .tbl td:last-child { grid-column: 1 / -1; }
  .sellers-table-card .tbl td:nth-child(2) { display: block; background: color-mix(in srgb, var(--color-accent) 5%, var(--color-surface-primary)); }
  .sellers-table-card .tbl td:nth-child(2)::before { content: none; }
  .sellers-table-card .tbl__actions { display: flex; flex-direction: row; flex-wrap: nowrap; gap: .45rem; white-space: nowrap; }
  .sellers-table-card .tbl__actions .btn { flex: 0 0 auto; min-width: 80px; padding: .4rem .6rem; font-size: .75rem; }
  .sellers-table-card .tbl td:nth-child(3), .sellers-table-card .tbl td:nth-child(4), .sellers-table-card .tbl td:nth-child(5) { display: none; }
}

/* Vendedores: equipe, comiss+�es e relat+�rios */
.sellers-toolbar { align-items: flex-end; gap: 1rem; }
.sellers-toolbar .toolbar__left { flex: 1 1 420px; min-width: 0; }
.sellers-toolbar .toolbar__left h2 { margin: .15rem 0 .4rem; }
.sellers-toolbar .toolbar__left .card__hint { margin: 0; max-width: 650px; }
.sellers-toolbar .toolbar__right { display: flex; flex-wrap: wrap; gap: .55rem; }
.sellers-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; margin: 0 0 1rem; }
.sellers-summary__item { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 76px; padding: 1rem 1.15rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: linear-gradient(135deg, var(--color-surface-primary), var(--color-surface-secondary)); }
.sellers-summary__item span { color: var(--color-text-secondary); font-size: .82rem; }
.sellers-summary__item strong { color: var(--color-accent); font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.sellers-table-card { padding: clamp(1rem, 1.8vw, 1.4rem); }
.sellers-table-card__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.sellers-table-card__head h3 { margin: 0 0 .3rem; color: var(--color-text-primary); }
.sellers-table-card__head .card__hint { margin: 0; }
.sellers-count { padding: .4rem .7rem; border: 1px solid var(--color-border); border-radius: 999px; color: var(--color-text-secondary); background: var(--color-surface-secondary); font-size: .76rem; white-space: nowrap; }
.seller-avatar { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--color-border); border-radius: 50%; object-fit: cover; }
.seller-avatar--initial { color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 10%, var(--color-surface-primary)); font-size: .85rem; font-weight: 800; }
.seller-avatar--large { flex: 0 0 58px; width: 58px; height: 58px; font-size: 1.15rem; }
.seller-avatar--large img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.seller-rate { display: inline-flex; padding: .3rem .55rem; border-radius: 999px; color: var(--color-text-primary); background: var(--color-surface-secondary); font-size: .75rem; font-weight: 700; white-space: nowrap; }
.seller-rate--default { color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 9%, var(--color-surface-primary)); }
.sellers-empty { padding: 1.5rem !important; text-align: center; line-height: 1.6; }
.seller-form-photo { display: flex; align-items: center; gap: .9rem; padding: .9rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-secondary); }
.seller-form-photo > div { display: grid; gap: .25rem; min-width: 0; }
.seller-form-photo > div > strong { color: var(--color-text-primary); font-size: .86rem; }
.seller-form-photo .card__hint { margin: 0; font-size: .76rem; }
.seller-form-photo input[type="file"] { max-width: 100%; color: var(--color-text-secondary); font-size: .78rem; }
.seller-active-toggle { display: flex; align-items: center; gap: .7rem; padding: .85rem .95rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface-secondary); cursor: pointer; }
.seller-active-toggle input { width: 1rem; height: 1rem; accent-color: var(--color-accent); }
.seller-active-toggle span { display: grid; gap: .15rem; }
.seller-active-toggle strong { color: var(--color-text-primary); font-size: .84rem; }
.seller-active-toggle small, .seller-form-photo .card__hint, .seller-form-error { color: var(--color-text-secondary); font-size: .76rem; line-height: 1.45; }
.seller-form-error { margin: 0; padding: .7rem .85rem; border: 1px solid color-mix(in srgb, var(--color-error) 30%, transparent); border-radius: var(--radius-sm); color: var(--color-error); background: color-mix(in srgb, var(--color-error) 7%, var(--color-surface-primary)); font-size: .84rem; }
.seller-form-error[hidden] { display: none; }
.seller-report-modal .modal__body { display: flex; flex-direction: column; gap: .8rem; }
.seller-report-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: end; gap: .75rem; padding: .9rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-secondary); }
.seller-report-filters .field { margin: 0; }
.seller-report-period { margin: .5rem 0 .75rem; color: var(--color-text-secondary); font-size: .82rem; }
.seller-report-period strong { color: var(--color-text-primary); }
.seller-report-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin-bottom: 1.2rem; }
.seller-report-summary > div { display: grid; gap: .4rem; padding: .85rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface-secondary); }
.seller-report-summary span { color: var(--color-text-secondary); font-size: .72rem; }
.seller-report-summary strong { color: var(--color-text-primary); font-size: 1rem; font-variant-numeric: tabular-nums; }
.seller-report-table h4 { margin: 0 0 .65rem; color: var(--color-text-primary); }
.seller-report-unassigned { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1rem; padding: .85rem 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface-secondary); }
.seller-report-unassigned strong { color: var(--color-text-primary); }
.seller-report-unassigned span { color: var(--color-text-secondary); text-align: right; }
@media (max-width: 900px) { .sellers-toolbar { align-items: stretch; flex-direction: column; } .sellers-toolbar .toolbar__right { width: 100%; } }
@media (max-width: 700px) { .sellers-summary { grid-template-columns: 1fr; gap: .55rem; } .sellers-summary__item { min-height: 62px; } .seller-report-filters { grid-template-columns: 1fr; } .seller-report-filters .btn { width: 100%; } }
@media (max-width: 560px) { .sellers-table-card__head { align-items: flex-start; flex-direction: column; } .seller-form-photo { align-items: flex-start; } .sellers-toolbar .toolbar__right .btn { width: 100%; } .seller-report-summary { grid-template-columns: 1fr; } .seller-report-unassigned { align-items: flex-start; flex-direction: column; } .seller-report-unassigned span { text-align: left; } }

/* Insumos: cadastro de custos responsivo */
.ingredients-toolbar { align-items: flex-end; gap: 1rem; }
.ingredients-toolbar .toolbar__left { flex: 1 1 420px; min-width: 0; }
.ingredients-toolbar .toolbar__left h2 { margin: .15rem 0 .4rem; }
.ingredients-toolbar .toolbar__left .card__hint { margin: 0; max-width: 650px; }
.ingredients-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; margin: 0 0 1rem; }
.ingredients-summary__item { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 76px; padding: 1rem 1.15rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: linear-gradient(135deg, var(--color-surface-primary), var(--color-surface-secondary)); }
.ingredients-summary__item span { color: var(--color-text-secondary); font-size: .82rem; }
.ingredients-summary__item strong { color: var(--color-accent); font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.ingredients-table-card { padding: clamp(1rem, 1.8vw, 1.4rem); }
.ingredients-table-card__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.ingredients-table-card__head h3 { margin: 0 0 .3rem; color: var(--color-text-primary); }
.ingredients-table-card__head .card__hint { margin: 0; }
.ingredients-count, .ingredient-optional { padding: .4rem .7rem; border: 1px solid var(--color-border); border-radius: 999px; color: var(--color-text-secondary); background: var(--color-surface-secondary); font-size: .76rem; white-space: nowrap; }
.ingredients-table-wrap .table-wrap { margin: 0; }
.ingredients-empty { padding: 1.5rem !important; text-align: center !important; line-height: 1.6; }
.ingredient-modal .modal__body { display: block; }
.ingredient-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.ingredient-form-grid .field { min-width: 0; }
.ingredient-purchase { margin: .25rem 0 1.1rem; padding: 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-secondary); }
.ingredient-purchase__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.ingredient-purchase__head h4 { margin: 0 0 .25rem; color: var(--color-text-primary); }
.ingredient-purchase__head .card__hint { margin: 0; line-height: 1.5; }
.ingredient-purchase-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.ingredient-purchase-grid .field { min-width: 0; }
.ingredient-formula { margin: 0; color: var(--color-text-secondary); font-size: .76rem; line-height: 1.5; }
.ingredient-active-toggle { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; padding: .85rem .95rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface-secondary); cursor: pointer; }
.ingredient-active-toggle input { width: 1rem; height: 1rem; accent-color: var(--color-accent); }
.ingredient-active-toggle span { display: grid; gap: .15rem; }
.ingredient-active-toggle strong { color: var(--color-text-primary); font-size: .84rem; }
.ingredient-active-toggle small { color: var(--color-text-secondary); font-size: .76rem; line-height: 1.45; }
.ingredient-form-error { margin: 0; padding: .7rem .85rem; border: 1px solid color-mix(in srgb, var(--color-error) 30%, transparent); border-radius: var(--radius-sm); color: var(--color-error); background: color-mix(in srgb, var(--color-error) 7%, var(--color-surface-primary)); line-height: 1.5; }
.ingredient-form-error[hidden] { display: none; }
/* Mobile badge: hidden on desktop, shown on mobile */
.ingredient-mobile-badge { display: none; }
.ingredient-desktop-badge { display: inline-flex; }
@media (max-width: 900px) { 
  .ingredients-toolbar { align-items: stretch; flex-direction: column; gap: .3rem; } 
  .ingredients-toolbar .toolbar__right { width: 100%; }
  .ingredients-toolbar .toolbar__left .card__hint { margin: 0; }
  .ingredients-toolbar .toolbar__left > div { margin: 0; }
  .ingredients-toolbar .toolbar__left h2 { margin-bottom: .2rem; }
}
@media (max-width: 700px) {
  .ingredients-summary { grid-template-columns: 1fr; gap: .55rem; }
  .ingredients-summary__item { min-height: 62px; }
  .ingredients-table-wrap .table-wrap { overflow: visible; border: 0; box-shadow: none; background: transparent; }
  .ingredients-table-wrap .tbl, .ingredients-table-wrap .tbl tbody { display: block; width: 100%; }
  .ingredients-table-wrap .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .ingredients-table-wrap .tbl tbody { display: grid; gap: .75rem; }
  .ingredients-table-wrap .tbl tbody tr { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-primary); box-shadow: var(--shadow-sm); }
  .ingredients-table-wrap .tbl tbody tr:hover { background: var(--color-surface-primary); }
  .ingredients-table-wrap .tbl td { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-width: 0; padding: .7rem .75rem; border-bottom: 1px solid var(--color-border); text-align: left !important; overflow-wrap: anywhere; }
  .ingredients-table-wrap .tbl td::before { content: attr(data-label); color: var(--color-text-secondary); font-size: .62rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
  /* Hide secondary columns on mobile, keep main + cost visible */
  .ingredients-table-wrap .tbl td.cell-cat,
  .ingredients-table-wrap .tbl td.cell-supplier,
  .ingredients-table-wrap .tbl td.cell-pos { display: none; }
  .ingredients-table-wrap .tbl td.ingredients-empty { display: block; grid-column: 1 / -1; }
  .ingredients-table-wrap .tbl td.ingredients-empty::before { content: none; }
  .ingredients-table-wrap .tbl td:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .ingredients-table-wrap .tbl__actions { display: flex; flex-direction: row; flex-wrap: wrap; gap: .45rem; white-space: normal; }
  .ingredients-table-wrap .tbl__actions::before { flex: 0 0 100%; }
  .ingredients-table-wrap .tbl__actions .btn { flex: 1 1 90px; margin: 0; }
  /* Show mobile badge for status */
  .ingredient-desktop-badge { display: none; }
  .ingredient-mobile-badge { display: inline-flex !important; }
}
@media (max-width: 560px) {
  .ingredients-table-card__head { align-items: flex-start; flex-direction: column; }
  .ingredients-toolbar .toolbar__right .btn { width: 100%; }
  .ingredient-form-grid, .ingredient-purchase-grid { grid-template-columns: 1fr; }
  .ingredient-purchase { padding: .8rem; }
  .ingredient-purchase__head { align-items: flex-start; flex-direction: column; }
  .ingredient-modal .modal__head, .ingredient-modal .modal__foot { padding-inline: 1rem; }
  .ingredient-modal .modal__foot { flex-wrap: wrap; }
  .ingredient-modal .modal__foot .btn { flex: 1 1 120px; }
  .ingredients-table-wrap .tbl tbody tr { grid-template-columns: 1fr; }
  .ingredients-table-wrap .tbl td.cell-unit { display: none; }
}

/* CMV: relatorio financeiro responsivo no tema da loja */
.cmv-page { display: grid; gap: 1rem; }
.cmv-heading { display: flex; align-items: flex-end; justify-content: space-between; }
.cmv-heading h2 { margin: .15rem 0 .25rem; color: var(--color-text-primary); }
.cmv-heading p, .cmv-filters__intro p, .cmv-results__head p { margin: 0; color: var(--color-text-secondary); font-size: .88rem; }
.cmv-filters { padding: 1.25rem; }
.cmv-filters__intro { margin-bottom: 1rem; }
.cmv-filters__intro h3, .cmv-results__head h3 { margin: 0 0 .25rem; color: var(--color-text-primary); font-size: 1rem; }
.cmv-filter-grid { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)) auto; align-items: end; gap: .85rem; }
.cmv-filter-grid .field { margin: 0; min-width: 0; }
.cmv-filter-button { min-height: 44px; white-space: nowrap; }
.cmv-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0; }
.cmv-metric { min-height: 112px; align-items: flex-start; justify-content: center; border-top: 3px solid var(--color-accent); }
.cmv-metric--cost { border-top-color: #557a46; }
.cmv-metric--rate { border-top-color: #d0912a; }
.cmv-metric .kpi__value { overflow-wrap: anywhere; }
.cmv-results { overflow: hidden; padding: 0; }
.cmv-results__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.25rem; border-bottom: 1px solid var(--color-border); }
.cmv-count { padding: .35rem .65rem; border-radius: 999px; background: color-mix(in srgb, var(--color-accent) 12%, var(--color-surface-primary)); color: var(--color-accent); font-size: .76rem; font-weight: 700; white-space: nowrap; }
.cmv-missing { display: inline-flex; margin-top: .35rem; padding: .2rem .45rem; border-radius: 999px; background: color-mix(in srgb, #d0912a 13%, var(--color-surface-primary)); color: #98620d; font-size: .68rem; font-weight: 700; }
.cmv-table-wrap { overflow-x: auto; }
.cmv-table-wrap .tbl { min-width: 850px; margin: 0; }
.cmv-table-wrap .tbl td, .cmv-table-wrap .tbl th { vertical-align: middle; }
.cmv-empty { text-align: center; padding: 2rem !important; }
.cmv-note { margin: 0; padding: .9rem 1.25rem 1.1rem; border-top: 1px solid var(--color-border); color: var(--color-text-secondary); font-size: .78rem; line-height: 1.5; }
.cmv-alert { padding: 1rem 1.1rem; border: 1px solid color-mix(in srgb, #bd3c32 35%, var(--color-border)); border-radius: var(--radius-md); background: color-mix(in srgb, #bd3c32 7%, var(--color-surface-primary)); color: var(--color-text-primary); }
.cmv-loading { padding: 1.25rem; color: var(--color-text-secondary); }
@media (max-width: 900px) { .cmv-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cmv-filter-button { width: 100%; } }
@media (max-width: 700px) {
  .cmv-summary { grid-template-columns: 1fr; gap: .65rem; }
  .cmv-metric { min-height: 86px; padding: 1rem; }
  .cmv-results__head { align-items: flex-start; padding: 1rem; }
  .cmv-table-wrap { overflow: visible; padding: .75rem; }
  .cmv-table-wrap .table-wrap { overflow: visible; border: 0; box-shadow: none; background: transparent; }
  .cmv-table-wrap .tbl, .cmv-table-wrap .tbl tbody { display: block; width: 100%; min-width: 0; }
  .cmv-table-wrap .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .cmv-table-wrap .tbl tbody { display: grid; gap: .7rem; }
  .cmv-table-wrap .tbl tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-primary); box-shadow: var(--shadow-sm); }
  .cmv-table-wrap .tbl tbody tr:hover { background: var(--color-surface-primary); }
  .cmv-table-wrap .tbl td { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-width: 0; padding: .7rem; border-bottom: 1px solid var(--color-border); text-align: left !important; overflow-wrap: anywhere; }
  .cmv-table-wrap .tbl td::before { content: attr(data-label); color: var(--color-text-secondary); font-size: .61rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
  .cmv-table-wrap .tbl td:first-child, .cmv-table-wrap .tbl td:last-child { grid-column: 1 / -1; }
  .cmv-table-wrap .tbl td:first-child { display: block; background: color-mix(in srgb, var(--color-accent) 5%, var(--color-surface-primary)); }
  .cmv-table-wrap .tbl td:first-child::before { content: none; }
  .cmv-table-wrap .tbl td:last-child { border-bottom: 0; }
  .cmv-table-wrap .tbl td.cmv-empty { display: block; grid-column: 1 / -1; }
  .cmv-table-wrap .tbl td.cmv-empty::before { content: none; }
}
@media (max-width: 560px) { .cmv-filter-grid { grid-template-columns: 1fr; } .cmv-filters { padding: 1rem; } .cmv-results__head { flex-direction: column; } }

/* Coeficiente / Ranking: comparativo financeiro responsivo */
.rank-page { display: grid; gap: 1rem; }
.rank-heading h2 { margin: .15rem 0 .25rem; color: var(--color-text-primary); }
.rank-heading p, .rank-table-head p { margin: 0; color: var(--color-text-secondary); font-size: .88rem; line-height: 1.5; }
.rank-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.rank-summary__item { display: grid; gap: .4rem; min-width: 0; padding: 1.1rem 1.25rem; border: 1px solid var(--color-border); border-top: 3px solid var(--color-accent); border-radius: var(--radius-md); background: linear-gradient(145deg, var(--color-surface-primary), color-mix(in srgb, var(--color-surface-primary) 94%, var(--color-accent))); box-shadow: var(--shadow-sm); }
.rank-summary__item span { color: var(--color-text-secondary); font-size: .76rem; font-weight: 700; }
.rank-summary__item strong { color: var(--color-text-primary); font-size: 1.35rem; overflow-wrap: anywhere; }
.rank-table-card { overflow: hidden; padding: 0; }
.rank-table-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.25rem; border-bottom: 1px solid var(--color-border); }
.rank-table-head h3 { margin: 0 0 .25rem; color: var(--color-text-primary); font-size: 1rem; }
.rank-count { padding: .35rem .65rem; border-radius: 999px; background: color-mix(in srgb, var(--color-accent) 12%, var(--color-surface-primary)); color: var(--color-accent); font-size: .76rem; font-weight: 700; white-space: nowrap; }
.rank-table-wrap { overflow-x: auto; }
.rank-table-wrap .tbl { min-width: 760px; margin: 0; }
.rank-table-wrap .tbl td, .rank-table-wrap .tbl th { vertical-align: middle; }
.rank-position { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border: 1px solid var(--color-border); border-radius: 50%; background: var(--color-surface-secondary); color: var(--color-text-secondary); font-size: .78rem; font-weight: 800; }
.rank-position--gold { border-color: #d8b354; background: #fff5d8; color: #866316; }
.rank-position--silver { border-color: #bfc7d0; background: #f0f3f6; color: #586574; }
.rank-position--bronze { border-color: #ca8d62; background: #fbede3; color: #87502d; }
.rank-product { display: grid; gap: .2rem; min-width: 150px; }
.rank-product b { color: var(--color-text-primary); }
.rank-product > span { color: var(--color-text-secondary); font-size: .75rem; }
.rank-mobile-pos { display: none; }
.rank-warning { justify-self: start; margin-top: .2rem; padding: .18rem .45rem; border-radius: 999px; background: color-mix(in srgb, #d0912a 13%, var(--color-surface-primary)); color: #98620d; font-size: .66rem; font-weight: 700; }
.rank-coef, .rank-margin { color: var(--color-accent); font-variant-numeric: tabular-nums; }
.rank-empty { padding: 2rem !important; color: var(--color-text-secondary); text-align: center; }
.rank-note { margin: 0; padding: .9rem 1.25rem 1.1rem; border-top: 1px solid var(--color-border); color: var(--color-text-secondary); font-size: .78rem; line-height: 1.5; }
@media (max-width: 760px) { .rank-summary { grid-template-columns: 1fr; gap: .65rem; } .rank-summary__item { padding: .9rem 1rem; } .rank-summary__item strong { font-size: 1.15rem; } .rank-table-head { align-items: flex-start; padding: 1rem; } .rank-table-wrap { overflow: visible; padding: .75rem; } .rank-table-wrap .table-wrap { overflow: visible; border: 0; box-shadow: none; background: transparent; } .rank-table-wrap .tbl, .rank-table-wrap .tbl tbody { display: block; width: 100%; min-width: 0; } .rank-table-wrap .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; } .rank-table-wrap .tbl tbody { display: grid; gap: .7rem; } .rank-table-wrap .tbl tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-primary); box-shadow: var(--shadow-sm); } .rank-table-wrap .tbl tbody tr:hover { background: var(--color-surface-primary); } .rank-table-wrap .tbl td { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-width: 0; padding: .7rem; border-bottom: 1px solid var(--color-border); text-align: left !important; overflow-wrap: anywhere; } .rank-table-wrap .tbl td::before { content: attr(data-label); color: var(--color-text-secondary); font-size: .61rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; } .rank-table-wrap .tbl td:first-child { display: none; } .rank-table-wrap .tbl td:nth-child(2), .rank-table-wrap .tbl td:last-child { grid-column: 1 / -1; } .rank-table-wrap .tbl td:nth-child(2) { display: block; background: color-mix(in srgb, var(--color-accent) 5%, var(--color-surface-primary)); } .rank-table-wrap .tbl td:nth-child(2)::before { content: none; } .rank-mobile-pos { display: inline-flex; margin-bottom: .25rem; color: var(--color-accent) !important; font-size: .68rem !important; font-weight: 800; } .rank-table-wrap .tbl td:last-child { border-bottom: 0; } .rank-empty { display: block !important; grid-column: 1 / -1; } .rank-empty::before { content: none !important; } }
@media (max-width: 560px) { .rank-table-head { flex-direction: column; } }

/* Extras financeiros: resumo e alertas responsivos */
.extras-page { display: grid; gap: 1rem; }
.extras-heading h2 { margin: .15rem 0 .25rem; color: var(--color-text-primary); }
.extras-heading p, .extras-alerts__head p { margin: 0; color: var(--color-text-secondary); font-size: .88rem; line-height: 1.5; }
.extras-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.extras-metric { display: grid; align-content: center; gap: .4rem; min-width: 0; min-height: 112px; padding: 1.1rem 1.2rem; border: 1px solid var(--color-border); border-top: 3px solid var(--color-accent); border-radius: var(--radius-md); background: linear-gradient(145deg, var(--color-surface-primary), color-mix(in srgb, var(--color-surface-primary) 94%, var(--color-accent))); box-shadow: var(--shadow-sm); }
.extras-metric--coef { border-top-color: #557a46; }
.extras-metric--margin { border-top-color: #d0912a; }
.extras-metric--ingredients { border-top-color: #6279a5; }
.extras-metric > span { color: var(--color-text-secondary); font-size: .75rem; font-weight: 700; line-height: 1.4; }
.extras-metric > strong { color: var(--color-text-primary); font-size: 1.35rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.extras-metric small { color: var(--color-text-secondary); font-size: .68rem; font-weight: 600; }
.extras-alerts { overflow: hidden; padding: 0; }
.extras-alerts__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.25rem; border-bottom: 1px solid var(--color-border); }
.extras-alerts__head h3 { margin: 0 0 .25rem; color: var(--color-text-primary); font-size: 1rem; }
.extras-alert-count { padding: .35rem .65rem; border-radius: 999px; background: color-mix(in srgb, #d0912a 13%, var(--color-surface-primary)); color: #98620d; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.extras-table-wrap { overflow-x: auto; }
.extras-table-wrap .tbl { min-width: 760px; margin: 0; }
.extras-table-wrap .tbl td, .extras-table-wrap .tbl th { vertical-align: middle; }
.extras-product { display: grid; gap: .2rem; min-width: 145px; }
.extras-product b { color: var(--color-text-primary); }
.extras-product span { color: var(--color-text-secondary); font-size: .75rem; }
.extras-margin { color: var(--color-accent); font-variant-numeric: tabular-nums; }
.extras-empty { padding: 2rem !important; color: var(--color-text-secondary); text-align: center; }
.extras-note { margin: 0; padding: .9rem 1.25rem 1.1rem; border-top: 1px solid var(--color-border); color: var(--color-text-secondary); font-size: .78rem; line-height: 1.5; }
@media (max-width: 1020px) { .extras-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .extras-summary { grid-template-columns: 1fr 1fr; gap: .65rem; } .extras-metric { min-height: 90px; padding: .9rem; } .extras-metric > strong { font-size: 1.15rem; } .extras-alerts__head { align-items: flex-start; padding: 1rem; } .extras-table-wrap { overflow: visible; padding: .75rem; } .extras-table-wrap .table-wrap { overflow: visible; border: 0; box-shadow: none; background: transparent; } .extras-table-wrap .tbl, .extras-table-wrap .tbl tbody { display: block; width: 100%; min-width: 0; } .extras-table-wrap .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; } .extras-table-wrap .tbl tbody { display: grid; gap: .7rem; } .extras-table-wrap .tbl tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-primary); box-shadow: var(--shadow-sm); } .extras-table-wrap .tbl tbody tr:hover { background: var(--color-surface-primary); } .extras-table-wrap .tbl td { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-width: 0; padding: .7rem; border-bottom: 1px solid var(--color-border); text-align: left !important; overflow-wrap: anywhere; } .extras-table-wrap .tbl td::before { content: attr(data-label); color: var(--color-text-secondary); font-size: .61rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; } .extras-table-wrap .tbl td:first-child, .extras-table-wrap .tbl td:last-child { grid-column: 1 / -1; } .extras-table-wrap .tbl td:first-child { display: block; background: color-mix(in srgb, var(--color-accent) 5%, var(--color-surface-primary)); } .extras-table-wrap .tbl td:first-child::before { content: none; } .extras-table-wrap .tbl td:last-child { border-bottom: 0; } .extras-table-wrap .tbl td:last-child .btn { width: 100%; } .extras-empty { display: block !important; grid-column: 1 / -1; } .extras-empty::before { content: none !important; } }
@media (max-width: 430px) { .extras-summary { grid-template-columns: 1fr; } .extras-alerts__head { flex-direction: column; } }

/* ============================================================
   Topbar -� Dropdown de notifica+�+�es (leva topbar-audit)
   Portado do admin-shell.css ��� o admin.html N+�O carrega admin-shell.css.
   Token fallbacks hardcode: --overlay-z=300/--transition-fast (s+� existem
   no :root do shell), --shadow-lg/--ease/--peso m+�dio v+�m de _tokens.css.
   ============================================================ */
.dropdown { position: relative; display: inline-flex; }
.dropdown__trigger { padding: 0.5rem; background: none; border: 1px solid transparent; border-radius: var(--radius-sm); color: var(--color-text-secondary); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.15s var(--ease); position: relative; }
.dropdown__trigger:hover { background: var(--color-surface-secondary); color: var(--color-text-primary); border-color: var(--color-border); }
.dropdown__panel { position: absolute; top: calc(100% + 8px); right: 0; min-width: 280px; max-width: 360px; background: var(--color-surface-primary); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: 0 10px 22px rgba(0, 0, 0, .3); overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .15s var(--ease), transform .15s var(--ease), visibility .15s; z-index: 300; }
.dropdown__panel[hidden] { display: none; }
.dropdown.is-open .dropdown__panel { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown__header { display: flex; align-items: center; justify-content: space-between; padding: .875rem 1rem; border-bottom: 1px solid var(--color-border); background: var(--color-surface-secondary); }
.dropdown__title { font-family: var(--font-family-heading); font-size: .875rem; font-weight: 600; color: var(--color-text-primary); margin: 0; text-transform: uppercase; letter-spacing: .05em; }
.dropdown__mark-all { font-size: .7rem; color: var(--color-accent); background: none; border: none; padding: 0; cursor: pointer; font-weight: 500; }
.dropdown__mark-all:hover { opacity: .8; }
.dropdown__list { max-height: 320px; overflow-y: auto; padding: .5rem; }
.dropdown__list::-webkit-scrollbar { width: 6px; }
.dropdown__list::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }
.dropdown__empty { display: flex; flex-direction: column; align-items: center; gap: .75rem; padding: 2rem 1rem; text-align: center; color: var(--color-text-secondary); }
.dropdown__empty svg { width: 40px; height: 40px; opacity: .4; }
.dropdown__item { display: flex; align-items: center; gap: .75rem; width: 100%; padding: .625rem .75rem; background: none; border: none; border-radius: var(--radius-sm); color: var(--color-text-primary); font-size: .875rem; font-family: inherit; font-weight: 500; text-align: left; cursor: pointer; }
.dropdown__item:hover { background: var(--color-surface-secondary); color: var(--color-accent); }
.dropdown__item svg { width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; stroke-width: 2; }
.dropdown__item.unread { background: color-mix(in srgb, var(--color-accent) 7%, transparent); }
.notif-content { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.notif-title { font-weight: 600; font-size: .8rem; color: var(--color-text-primary); }
.notif-message { font-size: .75rem; color: var(--color-text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.notif-time { font-size: .65rem; color: var(--color-text-secondary); }

/* Badge do sino: dot (bolinha) + contador num+�rico ��� nunca estilizados antes */
.badge-dot { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 2px var(--color-surface-primary); }
.badge-count { position: absolute; top: 0; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--color-accent); color: #fff; font-size: .6rem; font-weight: 700; line-height: 16px; text-align: center; }

/* +�cones on/off do som (admin.html n+�o tinha as classes) */
.topbar-btn.sound-on .icon-sound-off { display: none; }
.topbar-btn.sound-on .icon-sound-on { display: block; }
.topbar-btn:not(.sound-on) .icon-sound-on { display: none; }
.topbar-btn:not(.sound-on) .icon-sound-off { display: block; }
/* Cor no +�cone (2 estados): som ligado = verde; mudo = laranja do tema. */
.topbar-btn.sound-on .icon-sound-on { color: var(--color-success); stroke: var(--color-success); }
.topbar-btn:not(.sound-on) .icon-sound-off { color: var(--color-accent); stroke: var(--color-accent); }
/* ESTADO VISUAL DO BOT+�O INTEIRO: ligado = verde; desligado = laranja do tema
   (p+�lula colorida: fundo transl+�cido + borda no tom). Fica ap+�s as regras
   base/:hover do topo do arquivo ��� +�ltima vence na cascata. */
.topbar-btn.sound-on { color: var(--color-success); background: color-mix(in srgb, var(--color-success) 12%, transparent); border-color: color-mix(in srgb, var(--color-success) 40%, transparent); }
.topbar-btn:not(.sound-on) { color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 12%, transparent); border-color: color-mix(in srgb, var(--color-accent) 40%, transparent); }

/* Utilit+�rio p/ label da busca (equivalente ao .visually-hidden do shell) */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Menu do usu+�rio (trigger + painel) ��� portado do admin-shell.css */
.topbar__user { display: flex; align-items: center; gap: .75rem; padding: .35rem .75rem .35rem .35rem; background: var(--color-surface-secondary); border: 1px solid var(--color-border); border-radius: var(--radius-md); cursor: pointer; transition: all .15s var(--ease); flex-shrink: 0; color: inherit; font-family: inherit; text-align: inherit; }
.topbar__user:hover { background: var(--color-surface-secondary); border-color: var(--color-accent); }
.topbar__user-chevron { width: 16px; height: 16px; color: var(--color-text-secondary); flex-shrink: 0; }
.dropdown__panel--user { min-width: 260px; }
.dropdown__user-header { display: flex; align-items: center; gap: .75rem; padding: 1rem; }
.dropdown__user-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--color-accent); color: var(--color-text-primary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; font-family: var(--font-family-heading); flex-shrink: 0; }
.dropdown__user-info { display: flex; flex-direction: column; min-width: 0; }
.dropdown__user-name { font-weight: 600; font-size: .875rem; color: var(--color-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dropdown__user-email { font-size: .7rem; color: var(--color-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dropdown__divider { height: 1px; background: var(--color-border); margin: .25rem .5rem; }
.dropdown__item--danger { color: var(--color-error); }
.dropdown__item--danger:hover { background: rgba(239, 68, 68, .1); color: var(--color-error); }

/* =====================================================================
   HOR+�RIOS DE FUNCIONAMENTO (Configura+�+�es)
   ===================================================================== */
.hours-section {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-secondary);
  padding: 1rem;
}
.hours-header {
  display: grid;
  grid-template-columns: 56px minmax(130px, 1fr) minmax(110px, 1fr) minmax(110px, 1fr);
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  font-weight: 600;
}
.hours-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.hours-row {
  display: grid;
  grid-template-columns: 56px minmax(130px, 1fr) minmax(110px, 1fr) minmax(110px, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.6rem 0.75rem;
  background: var(--color-surface-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s var(--ease);
}
.hours-row:hover {
  border-color: var(--color-accent);
}
.hours-row.is-closed {
  opacity: 0.6;
}
/* Coluna do switch */
.hours-switch {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
/* Coluna do nome do dia ��� n+�o invade as colunas de hora */
.hours-day {
  min-width: 0;
  display: flex;
  align-items: center;
}
.hours-day__name {
  font-weight: 500;
  color: var(--color-text-primary);
  font-size: 0.875rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.hours-toggle {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
.hours-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.hours-toggle__slider {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--color-border);
  border-radius: 12px;
  transition: all 0.2s var(--ease);
  border: 2px solid transparent;
}
.hours-toggle__slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: all 0.2s var(--ease);
}
.hours-toggle input:checked + .hours-toggle__slider {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.hours-toggle input:checked + .hours-toggle__slider::after {
  transform: translateX(20px);
}
.hours-toggle input:focus-visible + .hours-toggle__slider {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.hours-toggle__label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
}
.hours-times {
  display: contents; /* usa as colunas do grid da linha */
}
.hours-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.hours-field .field__label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  font-weight: 600;
}
.hours-field .field__input {
  padding: 0.5rem 0.6rem;
  font-size: 0.875rem;
  width: 100%;
  min-width: 0;
}
.hours-field .field__input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--color-surface-primary);
}
.hours-hint {
  margin-top: 0.75rem;
  font-size: 0.7rem;
  color: var(--color-text-secondary);
  text-align: center;
}
.config-section__grid .hours-section {
  grid-column: 1 / -1;
}

/* ---------- Opera+�+�o da loja (toggles) ---------- */
.ops-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.ops-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--color-surface-primary);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.ops-toggle:hover { border-color: var(--color-accent); }
.ops-toggle--ok { border-left-color: var(--color-success); }
.ops-toggle--warn { border-left-color: var(--color-warning, #E8A33D); }
.ops-toggle--danger { border-left-color: var(--color-error, #EF4444); }
.ops-toggle input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--color-accent);
  cursor: pointer;
}
.ops-toggle__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ops-toggle__text strong { font-size: 0.9rem; color: var(--color-text-primary); }
.ops-toggle__text small { font-size: 0.75rem; color: var(--color-text-secondary); line-height: 1.4; }

/* ---------- Hor+�rios: responsivo ---------- */
.config-feedback {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-size: 0.875rem;
  line-height: 1.4;
}
.config-feedback--ok {
  border-color: color-mix(in srgb, var(--color-success) 45%, transparent);
  background: color-mix(in srgb, var(--color-success) 12%, transparent);
  color: var(--color-text-primary);
}
.config-feedback--error {
  border-color: color-mix(in srgb, var(--color-error) 45%, transparent);
  background: color-mix(in srgb, var(--color-error) 12%, transparent);
  color: var(--color-text-primary);
}
@media (max-width: 720px) {
  .hours-header { display: none; }
  .hours-row {
    grid-template-columns: 44px 1fr 1fr;
    grid-template-areas:
      "switch dia dia"
      "switch abre fecha";
    row-gap: 0.5rem;
  }
  .hours-switch { grid-area: switch; }
  .hours-day { grid-area: dia; }
  .hours-row .hours-field:nth-of-type(1) { grid-area: abre; }
  .hours-row .hours-field:nth-of-type(2) { grid-area: fecha; }
}
@media (max-width: 420px) {
  .hours-row {
    grid-template-columns: 44px 1fr;
    grid-template-areas:
      "switch dia"
      "switch abre"
      "switch fecha";
  }
}

/* ---------- Regras portadas do css/style.css (achados A-05/A-06) ----------
   O painel n+�o carrega mais o CSS da LOJA (89 KB a menos no download).
   Estas 3 regras eram as +�nicas que ainda vinham de l+�. */

#theme-btn .icon-sun { display: none; width: 20px; height: 20px; }
#theme-btn .icon-moon { display: block; width: 20px; height: 20px; }
[data-theme="light"] #theme-btn .icon-sun { display: block; }
[data-theme="light"] #theme-btn .icon-moon { display: none; }

.modal-card__inner {
  display: flex;
  flex-direction: row;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* ---------- Divisor de se+�+�o (Opera+�+�o / WhatsApp) ---------- */
.ops-divider {
  height: 1px;
  background: var(--color-border);
  border: 0;
  margin: 0.5rem 0;
}

/* ---------- Bot+�o WhatsApp no card/linha do pedido ---------- */
.btn--whatsapp,
a.btn--whatsapp {
  color: #25D366;
  border-color: color-mix(in srgb, #25D366 40%, transparent);
}
a.btn--whatsapp:hover {
  background: color-mix(in srgb, #25D366 12%, transparent);
  border-color: #25D366;
  text-decoration: none;
}

/* ---------- Cupom (impress+�o t+�rmica) ---------- */
/* O cupom +� impresso numa janela pr+�pria (printReceipt), mas os estilos
   abaixo tamb+�m valem quando o painel +� impresso via Ctrl+P com o drawer
   aberto ��� o .receipt-preview +� isolado pelo @media print. */
.receipt-preview {
  width: 74mm;
  margin: 0 auto;
  padding: 3mm;
  background: #fff;
  color: #000;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  line-height: 1.35;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.receipt-preview h4 {
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.08em;
  margin: 0 0 2px;
  color: var(--color-text-primary);
}
.receipt-preview hr {
  border: 0;
  border-top: 1px dashed currentColor;
  opacity: 0.5;
  margin: 8px 0;
}
.receipt-preview table { width: 100%; border-collapse: collapse; }
.receipt-preview td { padding: 1px 0; vertical-align: top; }
.receipt-preview .rcpt-qty { width: 26px; white-space: nowrap; padding-right: 4px; }
.receipt-preview .rcpt-val { text-align: right; white-space: nowrap; padding-left: 6px; }
.receipt-preview .rcpt-total td { font-weight: 700; font-size: 13px; }
.receipt-preview .rcpt-center { text-align: center; }

@media print {
  /* Impress+�o pelo painel: isola o cupom e esconde o resto. */
  body.printing-receipt > *:not(.receipt-print-area) { display: none !important; }
  body.printing-receipt .receipt-print-area {
    display: block !important;
    position: absolute;
    inset: 0;
    width: 100%;
  }
  body.printing-receipt .receipt-preview {
    width: 74mm;
    border: 0;
    border-radius: 0;
  }
}

/* Editor de pagamento combinado (WhatsApp) no drawer do pedido. */
.order-detail__pay-edit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.75rem 0;
  padding: 0.6rem 0.75rem;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface-secondary);
}
.order-detail__pay-edit .field__label { margin: 0; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-text-secondary); }
.order-detail__pay-edit .field__select { flex: 1 1 180px; min-width: 140px; }

/* Aviso de atualizacao disponivel (assets velhos em cache). */
.admin-update-banner {
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: #f26b1f;
  color: #fff;
  text-align: center;
}
.admin-update-banner__box {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.85rem;
}
.admin-update-banner .btn { padding: 0.3rem 0.7rem; font-size: 0.8rem; }

/* ---------- Banner de migracoes pendentes (dashboard) ---------- */
.migration-warning {
  margin-bottom: 1.25rem;
  background: color-mix(in srgb, var(--color-warning, #e8a838) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-warning, #e8a838) 40%, transparent);
  border-left: 4px solid var(--color-warning, #e8a838);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
}
.migration-warning__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}
.migration-warning__head svg {
  stroke: var(--color-warning, #e8a838);
  flex-shrink: 0;
}
.migration-warning__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.migration-warning__item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
}
.migration-warning__item svg {
  stroke: var(--color-warning, #e8a838);
  flex-shrink: 0;
  margin-top: 1px;
}
