﻿/* ══════════════════════════════════════════════════════════════════
   FATIA CERTA — app-extra.css v7
   Componentes extras: auth, produção, modais, receita, etc.
   ══════════════════════════════════════════════════════════════════ */

/* ── Auth redesign ───────────────────────────────────────────────── */
.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 0;
  background: var(--cream);
}
.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(940px, 100%);
  min-height: 100vh;
  box-shadow: var(--shadow-lg);
}
.auth-brand-side {
  background: var(--cocoa);
  padding: 64px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}
.auth-brand-logo { font-size: 3.5rem; margin-bottom: 18px; }
.auth-brand-name {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: rgba(255,255,255,.95);
}
.auth-brand-sub { font-size: .95rem; opacity: .75; line-height: 1.75; margin-bottom: 36px; }
.auth-features { list-style: none; display: grid; gap: 12px; }
.auth-features li { font-size: .88rem; opacity: .85; display: flex; align-items: center; gap: 10px; }
.auth-form-side {
  background: var(--white);
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 30px;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--bd);
}
.auth-tab {
  flex: 1;
  padding: 11px;
  border: none;
  background: var(--white);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: .15s;
}
.auth-tab.active { background: var(--rose); color: #fff; }
.auth-welcome { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.auth-field { margin-bottom: 18px; }
.auth-field label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 7px;
}
.auth-field input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--bd);
  border-radius: var(--r-sm);
  font-size: 13px;
  transition: .15s;
  background: var(--surface2);
}
.auth-field input:focus { outline: none; border-color: var(--rose); background: var(--white); box-shadow: 0 0 0 3px rgba(196,115,122,.12); }
.auth-pw-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--bd);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface2);
  transition: .15s;
}
.auth-pw-wrap:focus-within { border-color: var(--rose); background: var(--white); box-shadow: 0 0 0 3px rgba(196,115,122,.12); }
.auth-pw-wrap input { flex: 1; padding: 11px 14px; border: none; outline: none; font-size: 13px; background: transparent; }
.pw-toggle { border: none; background: transparent; padding: 0 12px; cursor: pointer; font-size: 16px; opacity: .45; }
.pw-toggle:hover { opacity: 1; }
.auth-msg { display: block; text-align: center; font-size: 12px; min-height: 18px; margin-top: 10px; }
.auth-msg.error   { color: var(--danger); }
.auth-msg.success { color: var(--success); }
.password-reset-box { margin-top:14px; border:1px solid #f0df9b; background:#fff8dc; border-radius:14px; padding:13px; }
.password-reset-box p { margin:0 0 10px; text-align:left; color:#785500; font-size:12px; line-height:1.5; }

@media (max-width: 700px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-brand-side { padding: 44px 28px 32px; min-height: auto; }
  .auth-brand-logo { font-size: 2.5rem; }
  .auth-brand-name { font-size: 1.8rem; }
  .auth-form-side { padding: 36px 24px 44px; }
}

/* ── Sugestões de horário ────────────────────────────────────────── */
.time-suggestions {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--white);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  z-index: 50;
  display: none;
  max-height: 200px;
  overflow-y: auto;
}
.time-suggestions.open { display: block; }
.time-slot { padding: 9px 14px; font-size: 12px; cursor: pointer; color: var(--cocoa); transition: .12s; }
.time-slot:hover { background: var(--petal); }

/* ── Produção do dia ─────────────────────────────────────────────── */
.prod-card {
  background: var(--white);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  margin-bottom: 10px;
  transition: box-shadow .15s;
}
.prod-card:hover { box-shadow: var(--shadow-sm); }
.prod-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.prod-card-title { font-size: 13px; font-weight: 600; color: var(--cocoa); }
.prod-card-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.prod-card-items { margin-top: 10px; display: grid; gap: 4px; }
.prod-item-row { display: flex; justify-content: space-between; font-size: 12px; padding: 5px 0; border-top: 1px solid var(--bd); color: var(--cocoa); }
.prod-status-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.status-quick-btn { border: none; border-radius: 999px; padding: 5px 13px; font-size: 11px; font-weight: 600; cursor: pointer; transition: .15s; }
.status-quick-btn:hover { opacity: .82; transform: translateY(-1px); }
.wa-btn { display: inline-flex; align-items: center; gap: 5px; background: #25D366; color: #fff; border: none; border-radius: 999px; padding: 5px 13px; font-size: 11px; font-weight: 600; cursor: pointer; text-decoration: none; transition: .14s; }
.wa-btn:hover { background: #1DA851; }
.prod-total { font-size: 13px; font-weight: 600; color: var(--cocoa); margin-top: 6px; }

/* Production board v2 */
.production-hero { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:22px 24px; border-radius:18px; background:linear-gradient(130deg,#5a3828,#8b5540); color:#fff; box-shadow:0 10px 28px rgba(76,43,29,.18); }
.production-eyebrow { font-size:9px; letter-spacing:1.4px; font-weight:800; color:#ffd9c8; }
.production-hero h1 { margin:3px 0; font-family:var(--font-display); font-size:25px; color:#fff; }
.production-hero p { font-size:11px; opacity:.82; }
.production-date-control { display:flex; align-items:center; gap:8px; padding:7px; border-radius:12px; background:rgba(255,255,255,.12); }
.production-date-control input { min-height:34px; padding:6px 9px; border:0; border-radius:8px; font-size:11px; color:var(--cocoa); }
.production-summary-grid { display:grid; grid-template-columns:repeat(5,minmax(120px,1fr)); gap:10px; }
.production-summary-card { position:relative; overflow:hidden; padding:14px 15px; border:1px solid var(--bd); border-radius:14px; background:#fff; box-shadow:var(--shadow-sm); }
.production-summary-card::before { content:''; position:absolute; inset:0 auto 0 0; width:4px; background:var(--rose); }
.production-summary-card span { display:block; color:var(--muted); font-size:9px; text-transform:uppercase; letter-spacing:.5px; font-weight:700; }
.production-summary-card strong { display:block; margin:2px 0; color:var(--cocoa); font-family:var(--font-display); font-size:24px; }
.production-summary-card small { color:var(--muted); font-size:9px; }
.production-summary-card.pending::before { background:#d8a51e; }
.production-summary-card.making::before { background:#ee7c23; }
.production-summary-card.ready::before { background:#6366c7; }
.production-summary-card.capacity::before { background:#3c9c78; }
.production-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 14px; border:1px solid var(--bd); border-radius:13px; background:#fff; }
.production-toolbar > strong { color:var(--cocoa); font-size:11px; }
.production-filters { display:flex; flex-wrap:wrap; gap:6px; }
.production-filters button { border:1px solid var(--bd); border-radius:999px; padding:6px 11px; background:#fff; color:var(--muted); font-size:9px; font-weight:700; cursor:pointer; }
.production-filters button.active { border-color:var(--rose); background:var(--petal); color:var(--rose-dk); }
.production-card-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; align-items:start; }
.production-card-grid .prod-card { margin:0; padding:18px; border-radius:16px; border-left:5px solid #d8a51e; cursor:pointer; transition:box-shadow .15s,transform .15s; }
.production-card-grid .prod-card.s-confirmado { border-left-color:#3b9b61; }
.production-card-grid .prod-card.s-em-producao { border-left-color:#ee7c23; }
.production-card-grid .prod-card.s-pronto { border-left-color:#6366c7; }
.production-card-grid .prod-card:hover { box-shadow:var(--shadow); transform:translateY(-2px); }
.prod-client-block { display:flex; align-items:center; gap:11px; }
.prod-time { min-width:55px; padding:8px 7px; border-radius:10px; background:var(--surface2); color:var(--cocoa); font-size:15px; font-weight:800; text-align:center; }
.production-card-grid .prod-card-title { font-size:15px; font-weight:700; }
.prod-card-badges { display:flex; flex-direction:column; align-items:flex-end; gap:5px; }
.prod-status-badge,.prod-payment-warning,.prod-payment-ok { border-radius:999px; padding:4px 8px; font-size:9px; font-weight:700; }
.prod-payment-warning { background:#fff0f0; color:var(--danger); }
.prod-payment-ok { background:#eaf7ee; color:var(--success); }
.production-card-grid .prod-card-items { margin-top:14px; display:grid; gap:6px; padding:10px 12px; border-radius:11px; background:var(--surface2); }
.production-card-grid .prod-item-row { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:0; border:0; font-size:11px; }
.production-card-grid .prod-item-row span { display:flex; flex-direction:column; }
.production-card-grid .prod-item-row small { margin-top:2px; color:var(--muted); font-size:9px; }
.prod-notes { margin-top:9px; padding:8px 10px; border-radius:9px; background:#fff8dc; color:#785500; font-size:10px; line-height:1.4; }
.production-card-grid .prod-total { display:flex; justify-content:space-between; align-items:center; font-size:10px; color:var(--muted); margin-top:10px; }
.production-card-grid .prod-total strong { color:var(--cocoa); font-size:15px; }
.production-card-grid .prod-status-bar { display:flex; align-items:center; gap:7px; flex-wrap:wrap; margin-top:13px; padding-top:12px; border-top:1px solid var(--bd); }
.prod-next-status { flex:1; min-width:175px; border:0; border-radius:9px; padding:9px 12px; background:var(--cocoa); color:#fff; font-size:10px; font-weight:700; cursor:pointer; }
.prod-status-select { min-height:33px; border:1px solid var(--bd); border-radius:9px; padding:6px 9px; background:#fff; color:var(--cocoa); font-size:10px; }
.prod-details-btn { border:0; background:transparent; color:var(--rose-dk); font-size:10px; font-weight:700; cursor:pointer; text-decoration:underline; }
.production-empty { grid-column:1/-1; display:flex; min-height:260px; flex-direction:column; align-items:center; justify-content:center; text-align:center; border:1px dashed var(--bd); border-radius:16px; background:#fff; color:var(--muted); }
.production-empty div { font-size:38px; }
.production-empty strong { margin-top:6px; color:var(--cocoa); font-size:14px; }
.production-empty p { margin-top:3px; font-size:10px; }
@media (max-width:1000px) {
  .production-summary-grid { grid-template-columns:repeat(3,1fr); }
  .production-card-grid { grid-template-columns:1fr; }
}
@media (max-width:650px) {
  .production-hero { align-items:flex-start; flex-direction:column; }
  .production-date-control { width:100%; }
  .production-date-control input { flex:1; }
  .production-summary-grid { grid-template-columns:repeat(2,1fr); }
  .production-toolbar { align-items:flex-start; flex-direction:column; }
  .production-card-grid .prod-card { padding:14px; }
  .production-card-grid .prod-status-bar > * { flex:1; }
  .prod-details-btn { flex-basis:100%; }
}

/* ── Modal de pedido ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(61,43,31,.42);
  display: none; align-items: center; justify-content: center;
  z-index: 200;
  padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal-card {
  background: var(--white);
  border-radius: var(--r-xl);
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--bd);
  position: sticky; top: 0;
  background: var(--white);
  z-index: 1;
}
.modal-header h3 { font-size: 14px; font-weight: 600; color: var(--cocoa); margin: 0; }
.modal-close { border: none; background: transparent; font-size: 18px; cursor: pointer; color: var(--muted); padding: 4px; opacity: .6; transition: .12s; }
.modal-close:hover { opacity: 1; }
.modal-body { padding: 18px 22px 22px; }
.modal-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--bd); font-size: 13px; }
.modal-row:last-child { border: none; }
.modal-label { color: var(--muted); }
.modal-val { font-weight: 600; color: var(--cocoa); }
.modal-section { margin-top: 16px; }
.modal-section h4 { font-size: 12px; font-weight: 600; color: var(--cocoa); margin-bottom: 9px; }
.modal-item-row { display: flex; justify-content: space-between; padding: 7px 11px; background: var(--surface2); border-radius: var(--r-sm); font-size: 12px; margin-bottom: 4px; }
.modal-status-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--bd); }
.modal-wa-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.day-orders-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.day-orders-head h3 { font-size: 12px; color: var(--cocoa); margin: 0; font-weight: 600; }

/* ── Painel de receita ───────────────────────────────────────────── */
.recipe-panel {}
.recipe-help {
  background: #FFF8F2;
  border: 1px solid var(--blush);
  border-radius: var(--r);
  padding: 14px 16px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--cocoa);
  line-height: 1.7;
}
.recipe-help ol { margin: 8px 0 8px 18px; }
.recipe-help li { margin-bottom: 4px; }
.recipe-measure-form {
  display: grid;
  grid-template-columns: minmax(160px, 1.35fr) minmax(130px, .9fr) minmax(120px, .85fr) 78px minmax(120px, .85fr) 78px;
  gap: 8px;
  align-items: center;
}
.recipe-measure-form input,
.recipe-measure-form select {
  min-height: 38px;
}
.recipe-measure-list .item,
.recipe-measure-row {
  align-items: center;
  border: 1px solid #ead9cf;
  background: #fffdf9;
}
.recipe-measure-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 3px;
}
.recipe-total-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid #ead9cf;
  background: #fff8f2;
  border-radius: var(--r-sm);
  padding: 12px;
}
.recipe-history-item { background: var(--surface2); border: 1px solid var(--bd); border-radius: var(--r-sm); padding: 10px 13px; margin-bottom: 6px; }
.recipe-history-title { font-size: 12px; font-weight: 600; color: var(--cocoa); margin-bottom: 4px; }
.recipe-history-sub { font-size: 10px; color: var(--muted); }
.recipe-history-ingredients {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}
.recipe-history-chip {
  display: inline-flex;
  border: 1px solid #ead9cf;
  background: #fff;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 10px;
  color: var(--cocoa);
}
.recipe-measure-alert {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #f1cf8a;
  background: #fff8e8;
  color: #8a5d10;
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 600;
}
.recipe-measure-alert::before { content: "!"; font-weight: 800; }
.recipe-name-modal-card { width: min(430px, 100%); }
.recipe-name-modal-body {
  padding: 16px 18px 18px;
}
.recipe-name-modal-body p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
}
.recipe-name-modal-body input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--bd);
  border-radius: 10px;
  padding: 9px 12px;
  background: #fff;
}
.recipe-name-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .recipe-measure-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .recipe-measure-form { grid-template-columns: 1fr; }
  .recipe-total-card { align-items: flex-start; }
}

/* ── Botão WhatsApp (cliente) ────────────────────────────────────── */
.client-wa {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: .13s;
}
.client-wa:hover { background: #1DA851; }

/* ── Responsivo extra ────────────────────────────────────────────── */
.form-grid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .form-grid.c4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {
  #finance > div[style*="grid-template-columns:1fr 1fr"],
  #dashboard > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}
/* Printer devices */
.printer-page-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; }
.printer-page-head h1 { font-family:var(--font-display); font-size:25px; color:var(--cocoa); margin:0 0 3px; }
.printer-page-head p, .printer-card-head p { color:var(--muted); font-size:11px; margin:0; }
.printer-count { display:inline-flex; align-items:center; gap:6px; padding:7px 12px; border:1px solid var(--bd); border-radius:10px; background:#fff; color:var(--cocoa); font-size:11px; box-shadow:var(--shadow-sm); }
.printer-layout { display:grid; grid-template-columns:minmax(0, 2fr) minmax(270px, .86fr); gap:16px; align-items:start; }
.printer-card { background:#fff; border:1px solid var(--bd); border-radius:14px; padding:17px; box-shadow:var(--shadow-sm); }
.printer-card h2 { color:var(--cocoa); font-size:13px; margin:0 0 12px; }
.printer-devices-card { min-height:420px; }
.printer-card-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:13px; }
.printer-card-head h2 { margin-bottom:2px; }
.printer-side { display:flex; flex-direction:column; gap:12px; }
.printer-label { display:block; color:var(--cocoa); font-size:10px; font-weight:700; margin:0 0 4px; }
.printer-card input { width:100%; margin-bottom:10px; }
.printer-devices-list { display:flex; flex-direction:column; gap:9px; }
.printer-device { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; border:1px solid var(--bd); border-radius:10px; padding:14px; transition:.15s; }
.printer-device:hover { border-color:var(--blush); box-shadow:var(--shadow-sm); }
.printer-device-name { color:var(--cocoa); font-size:12px; font-weight:700; margin-bottom:5px; }
.printer-status { display:inline-flex; color:#24844a; background:#eaf8ef; border-radius:99px; padding:2px 6px; font-size:9px; margin-left:4px; }
.printer-device-meta { color:var(--muted); font-size:9px; line-height:1.6; }
.printer-revoke { border:0; border-radius:7px; background:#d90416; color:#fff; padding:7px 12px; font-size:10px; font-weight:700; cursor:pointer; }
.printer-revoke:hover { background:#b80010; }
.printer-empty { min-height:260px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; color:var(--muted); gap:5px; }
.printer-empty span { font-size:30px; }
.printer-empty strong { color:var(--cocoa); font-size:13px; }
.printer-empty p { margin:0; font-size:10px; }
.printer-token-box { margin-top:12px; padding:11px; border-radius:9px; border:1px solid #ead893; background:#fff9df; }
.printer-token-box strong { display:block; font-size:10px; color:#775700; margin-bottom:6px; }
.printer-token-box code { display:block; overflow-wrap:anywhere; color:#5e4300; font-size:10px; padding:7px; background:#fff; border-radius:6px; margin-bottom:7px; user-select:all; }
.printer-steps { list-style:none; counter-reset:printer-step; margin:0 0 13px; padding:0; }
.printer-steps li { counter-increment:printer-step; position:relative; padding:0 0 13px 22px; color:var(--cocoa-lt); font-size:10px; line-height:1.45; }
.printer-steps li::before { content:'✓'; position:absolute; left:0; top:0; display:grid; place-items:center; width:13px; height:13px; border:1px solid #35a464; border-radius:50%; color:#218649; font-size:8px; font-weight:800; }
.printer-note { background:#fff8dc; border:1px solid #f0df9b; border-radius:9px; padding:10px; color:#785500; font-size:9px; line-height:1.5; margin-bottom:11px; }
.printer-download { display:flex; align-items:center; justify-content:center; background:#292929; color:#fff !important; text-decoration:none; }
.printer-download:hover { background:#111; }
@media (max-width: 760px) {
  .printer-layout { grid-template-columns:1fr; }
  .printer-devices-card { min-height:0; }
  .printer-device { align-items:center; }
  .printer-page-head { align-items:center; }
}

/* Painel ADM */
.admin-shell { min-height:100vh; background:var(--bg); }
.admin-topbar { display:flex; justify-content:space-between; align-items:center; gap:18px; padding:26px 6vw; background:linear-gradient(135deg,#2f241f,#7b3f46 56%,#d94d68); color:#fff; }
.admin-topbar h1 { margin:4px 0 6px; font-size:1.7rem; }
.admin-topbar p { margin:0; opacity:.86; }
.admin-topbar-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.admin-content { padding:24px 6vw 40px; }
.admin-auth-split { max-width:980px; margin:auto; }
.admin-back-link { margin-top:14px; text-align:center; font-size:12px; }
.admin-back-link a { color:var(--rose); text-decoration:none; font-weight:700; }
.admin-hero { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:22px; margin-bottom:16px; border-radius:22px; background:linear-gradient(135deg,#2f241f,#7b3f46 56%,#d94d68); color:#fff; box-shadow:0 16px 36px rgba(47,36,31,.18); }
.admin-hero h2 { margin:4px 0 6px; font-size:1.45rem; }
.admin-hero p { margin:0; opacity:.84; max-width:720px; }
.admin-summary { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; margin-bottom:16px; }
.admin-plan-help { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:0 0 16px; color:var(--muted); font-size:12px; }
.admin-plan-help strong { color:var(--cocoa); }
.admin-plan-help span { background:#fff; border:1px solid var(--bd); border-radius:999px; padding:7px 10px; }
.admin-metric { background:#fff; border:1px solid var(--bd); border-radius:18px; padding:16px; box-shadow:var(--shadow); }
.admin-metric span { display:block; font-size:11px; color:var(--muted); margin-bottom:8px; }
.admin-metric strong { font-size:1.5rem; color:var(--cocoa); }
.admin-metric.warn strong { color:var(--danger); }
.admin-tenants-list { display:grid; gap:14px; }
.admin-tenant-row { border:1px solid var(--bd); border-radius:16px; background:#fff; overflow:hidden; box-shadow:0 6px 18px rgba(47,36,31,.045); }
.admin-tenant-summary { width:100%; border:0; background:#fff; display:flex; justify-content:space-between; align-items:center; gap:14px; padding:14px 16px; text-align:left; cursor:pointer; }
.admin-tenant-summary:hover { background:#fff8f4; }
.admin-tenant-summary strong { display:block; color:var(--cocoa); font-size:13px; margin-bottom:3px; }
.admin-tenant-summary span { color:var(--muted); font-size:11px; }
.admin-row-right { display:flex; align-items:center; gap:10px; }
.admin-expand-icon { color:var(--muted); font-size:11px; }
.admin-tenant-details { border-top:1px solid var(--bd); padding:14px 16px 16px; background:#fffdfb; }
.admin-footer-actions { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; }
.admin-tenant-card { border:1px solid var(--bd); border-radius:20px; padding:16px; background:#fff; box-shadow:0 8px 22px rgba(47,36,31,.06); }
.admin-tenant-top, .admin-tenant-footer, .admin-permissions-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.admin-tenant-top h3 { margin:0 0 4px; color:var(--cocoa); }
.admin-tenant-top p, .admin-tenant-footer span { margin:0; color:var(--muted); font-size:12px; }
.admin-tenant-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.admin-module-badges { display:flex; gap:6px; flex-wrap:wrap; margin-top:10px; }
.admin-module-badges span { border-radius:999px; background:var(--petal); color:var(--cocoa); padding:4px 8px; font-size:11px; }
.admin-tenant-grid { display:grid; grid-template-columns:1.2fr .8fr .8fr .7fr; gap:10px; margin:14px 0; }
.admin-tenant-grid label { font-size:11px; color:var(--muted); display:grid; gap:6px; }
.admin-tenant-grid input, .admin-tenant-grid select, #adminSearch { width:100%; border:1px solid var(--bd); border-radius:12px; padding:10px 12px; background:#fff; color:var(--cocoa); }
.admin-toggle-line { display:flex!important; align-items:center; align-self:end; border:1px solid var(--bd); border-radius:12px; padding:10px 12px; color:var(--cocoa)!important; }
.admin-toggle-line input { width:auto; }
.admin-permissions { border:1px dashed var(--bd); border-radius:16px; padding:14px; background:#fffaf7; margin-bottom:14px; }
.admin-permission-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin-top:12px; }
.admin-permission-grid label { display:flex; align-items:center; gap:8px; border:1px solid var(--bd); border-radius:12px; padding:10px; background:#fff; font-size:12px; color:var(--cocoa); }
.admin-tenant-footer { align-items:center; }
@media (max-width: 900px) {
  .admin-topbar { flex-direction:column; align-items:flex-start; }
  .admin-topbar-actions { justify-content:flex-start; }
  .admin-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .admin-tenant-grid { grid-template-columns:1fr; }
  .admin-permission-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .admin-tenant-top, .admin-tenant-footer, .admin-permissions-head { flex-direction:column; }
  .admin-tenant-summary, .admin-row-right { align-items:flex-start; }
  .admin-tenant-summary { flex-direction:column; }
  .admin-footer-actions { justify-content:flex-start; }
}

/* ── Seções recolhíveis do formulário de pedido (P2) ─────────────── */
.order-section {
  border: 1px solid var(--bd);
  border-radius: var(--r);
  margin: 12px 0;
  background: var(--surface2);
  overflow: hidden;
}
.order-section > summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--cocoa);
  user-select: none;
}
.order-section > summary::-webkit-details-marker { display: none; }
.order-section > summary::after {
  content: '▾';
  margin-left: 10px;
  color: var(--muted);
  transition: transform .15s;
}
.order-section[open] > summary::after { transform: rotate(180deg); }
.order-section-summary {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: 999px;
  padding: 3px 10px;
  margin-left: auto;
  margin-right: 10px;
  white-space: nowrap;
}
.order-section-body {
  padding: 4px 16px 16px;
  border-top: 1px solid var(--bd);
}
.order-section-body .form-grid { margin-top: 12px; }
.order-section-body .form-grid:first-child { margin-top: 12px; }

/* ── Abas da tela de Produtos (P4) ───────────────────────────────── */
.products-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.products-tabs::-webkit-scrollbar { display: none; }
.products-tab {
  flex-shrink: 0;
  padding: 10px 16px;
  border: 1px solid var(--bd);
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: .15s;
}
.products-tab:hover { border-color: var(--rose); color: var(--cocoa); }
.products-tab.active { background: var(--rose); color: #fff; border-color: var(--rose); }
.products-tab-panel.hidden { display: none; }

/* ── Caixa de estoque vinculado ao produto (P5) ──────────────────── */
.stock-link-box {
  background: #FFF8F2;
  border: 1px solid var(--blush);
  border-radius: var(--r);
  padding: 14px 16px;
  margin: 14px 0;
}
.stock-link-box h3 { font-size: 12px; font-weight: 700; color: var(--cocoa); margin-bottom: 4px; }
.stock-link-box p { font-size: 11px; color: var(--muted); line-height: 1.6; margin-bottom: 10px; }
.stock-link-hint {
  margin-top: 8px;
  font-size: 11px;
  color: var(--cocoa);
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: var(--r-sm);
  padding: 8px 12px;
}
.stock-link-hint.hidden { display: none; }

/* LGPD / Termos */
body.legal-lock { overflow:hidden; }
.legal-overlay {
  position:fixed;
  inset:0;
  z-index:3000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:22px;
  background:rgba(47,36,31,.58);
  backdrop-filter:blur(6px);
}
.legal-overlay.on { display:flex; }
.legal-card {
  width:min(860px,100%);
  max-height:92vh;
  display:flex;
  flex-direction:column;
  gap:14px;
  border:1px solid rgba(255,255,255,.55);
  border-radius:24px;
  background:#fff;
  box-shadow:0 24px 70px rgba(47,36,31,.28);
  padding:22px;
}
.legal-head { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; }
.legal-head h2 { margin:4px 0 0; color:var(--cocoa); font-size:1.45rem; }
.legal-body {
  max-height:52vh;
  overflow:auto;
  padding:14px;
  border:1px solid var(--bd);
  border-radius:16px;
  background:#fffaf7;
  color:var(--cocoa-lt);
  line-height:1.55;
}
.legal-body p { margin:0 0 12px; }
.legal-body h3 { margin:16px 0 8px; color:var(--cocoa); font-size:1rem; }
.legal-check {
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:12px 14px;
  border:1px solid #f0d3d9;
  border-radius:16px;
  background:#fff6f8;
  color:var(--cocoa);
  font-weight:700;
}
.legal-check input { margin-top:3px; width:18px; height:18px; accent-color:var(--rose); }
.legal-card .btn-full { width:100%; justify-content:center; }
@media (max-width:640px) {
  .legal-overlay { padding:10px; }
  .legal-card { max-height:96vh; padding:16px; border-radius:18px; }
  .legal-head { flex-direction:column; }
  .legal-body { max-height:50vh; }
}

/* Login premium — tela inicial no estilo da referência */
.auth-luxury {
  place-items: stretch;
  overflow: auto;
  background: #f6eee7;
}
.auth-luxury .auth-split {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  grid-template-columns: minmax(520px, 1.12fr) minmax(390px, .78fr);
  box-shadow: none;
  background: #f7efe8;
}
.auth-luxury .auth-brand-side {
  position: relative;
  overflow: hidden;
  justify-content: space-between;
  min-height: 100vh;
  padding: 34px 48px 44px;
  background:
    linear-gradient(90deg, rgba(31, 13, 6, .9), rgba(52, 23, 13, .58) 52%, rgba(96, 47, 34, .34)),
    radial-gradient(circle at 83% 18%, rgba(255, 222, 184, .28) 0 11%, transparent 11.5%),
    radial-gradient(circle at 76% 76%, rgba(230, 138, 150, .22) 0 18%, transparent 18.5%),
    radial-gradient(circle at 18% 86%, rgba(255, 199, 108, .16) 0 16%, transparent 16.5%),
    linear-gradient(135deg, #2a1208 0%, #6b3d31 48%, #b58b82 100%);
  background-size: cover;
  color: #fff;
}
.auth-luxury .auth-brand-side::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image:
    linear-gradient(120deg, transparent 0 46%, rgba(255, 255, 255, .18) 46.2% 46.8%, transparent 47%),
    radial-gradient(circle at 25% 24%, rgba(255, 255, 255, .2) 0 1px, transparent 1.5px);
  background-size: 180px 180px, 24px 24px;
  pointer-events: none;
}
.auth-luxury .auth-brand-side::after {
  content: '';
  position: absolute;
  inset: auto 4% 8% 8%;
  height: 1px;
  background: rgba(255, 255, 255, .28);
}
.auth-brand-top,
.auth-brand-copy,
.auth-brand-metrics,
.auth-showcase {
  position: relative;
  z-index: 1;
}

.auth-brand-top {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 17px;
}
.auth-brand-top span {
  width: 28px;
  height: 1px;
  background: #f3bf68;
}
.auth-brand-copy {
  max-width: 520px;
  margin-top: auto;
  margin-bottom: 92px;
}
.auth-kicker,
.auth-panel-kicker {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: 9px;
  font-weight: 800;
}
.auth-kicker { color: #f5c26d; }
.auth-brand-copy h1 {
  margin: 0 0 14px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(38px, 4.4vw, 58px);
  line-height: .95;
  color: #fff;
  text-shadow: 0 12px 32px rgba(0, 0, 0, .28);
}
.auth-brand-copy h1 em {
  display: inline-block;
  font-style: italic;
  color: #ffe5dc;
  animation: authWordGlow 5.2s ease-in-out infinite;
}
.auth-brand-copy p:last-child {
  max-width: 470px;
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .92);
}
.auth-flow-strip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 231, 207, .24);
  border-radius: 999px;
  background: rgba(42, 16, 8, .34);
  box-shadow: 0 18px 45px rgba(29, 8, 0, .18);
  backdrop-filter: blur(10px);
}
.auth-flow-strip span {
  color: #fff7ef;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.auth-flow-strip i {
  position: relative;
  width: 34px;
  height: 1px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 231, 207, .28);
}
.auth-flow-strip i::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 45%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, #f5c26d, transparent);
  animation: authFlowTravel 2.8s ease-in-out infinite;
}
.auth-showcase {
  position: absolute;
  top: 78px;
  right: clamp(26px, 6vw, 86px);
  width: min(250px, 30vw);
  min-height: 230px;
  pointer-events: none;
}
.auth-showcase-card {
  position: absolute;
  display: grid;
  gap: 3px;
  min-width: 170px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 231, 207, .24);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 250, 245, .16), rgba(255, 230, 218, .08));
  box-shadow: 0 22px 60px rgba(29, 8, 0, .24);
  backdrop-filter: blur(12px);
  animation: authFloat 6.4s ease-in-out infinite;
}
.auth-showcase-card::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 16px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #f5c26d;
  box-shadow: 0 0 0 6px rgba(245, 194, 109, .14);
}
.auth-showcase-card span,
.auth-showcase-card strong {
  padding-left: 18px;
  white-space: nowrap;
}
.auth-showcase-card span {
  color: rgba(255, 247, 239, .82);
  font-size: 10px;
  font-weight: 800;
}
.auth-showcase-card strong {
  color: #fff;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  line-height: 1;
}
.auth-showcase-card-a {
  top: 0;
  right: 0;
}
.auth-showcase-card-b {
  top: 86px;
  right: 64px;
  animation-delay: -1.8s;
}
.auth-showcase-card-c {
  top: 168px;
  right: 10px;
  animation-delay: -3.4s;
}
.auth-brand-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 560px;
}
.auth-brand-metrics > div {
  animation: authMetricRise .75s ease both;
}
.auth-brand-metrics > div:nth-child(2) { animation-delay: .12s; }
.auth-brand-metrics > div:nth-child(3) { animation-delay: .24s; }
.auth-brand-metrics strong {
  display: block;
  font-size: 22px;
  color: #fff;
}
.auth-brand-metrics span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.35;
  color: rgba(255, 255, 255, .82);
}

@keyframes authFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -10px, 0); }
}
@keyframes authFlowTravel {
  0% { transform: translateX(-115%); opacity: .15; }
  45%, 65% { opacity: 1; }
  100% { transform: translateX(230%); opacity: .15; }
}
@keyframes authMetricRise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes authWordGlow {
  0%, 100% { text-shadow: 0 0 0 rgba(255, 229, 220, 0); transform: translateY(0); }
  50% { text-shadow: 0 10px 34px rgba(245, 194, 109, .22); transform: translateY(-1px); }
}
.auth-luxury .auth-form-side {
  position: relative;
  justify-content: flex-start;
  max-height: 100vh;
  overflow-y: auto;
  padding: 12px clamp(36px, 6.5vw, 72px) 28px 56px;
  background: #fffaf5;
}
.auth-create-link {
  margin-bottom: 28px;
  text-align: right;
  font-size: 11px;
  color: #8f7b70;
}
.auth-create-link button {
  border: 0;
  background: transparent;
  color: #cf2d69;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.auth-panel-kicker { color: #cf2d69; }
.auth-title {
  margin: 0 0 8px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
  color: #1d0800;
}
.auth-subtitle {
  margin: 0 0 18px;
  font-size: 12px;
  color: #6e5a50;
}
.auth-luxury .auth-tabs {
  display: inline-flex;
  width: max-content;
  gap: 4px;
  margin: 0 0 22px;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  overflow: visible;
  background: #f1e6dc;
}
.auth-luxury .auth-tab {
  flex: 0 0 auto;
  padding: 9px 18px;
  border-radius: 999px;
  background: transparent;
  color: #7d675b;
  font-size: 11px;
}
.auth-luxury .auth-tab.active {
  background: #1d0800;
  color: #fff;
  box-shadow: 0 9px 18px rgba(29, 8, 0, .2);
}
.auth-luxury .auth-block { margin-bottom: 18px; }
.auth-register-block { padding-top: 6px; }
.auth-mini-title {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #1d0800;
}
.auth-luxury .auth-field { margin-bottom: 16px; }
.auth-luxury .auth-field label {
  margin-bottom: 5px;
  color: #1d0800;
  font-size: 9px;
  font-weight: 800;
}
.auth-luxury .auth-field input,
.auth-luxury .auth-pw-wrap {
  border: 0;
  border-bottom: 1px solid #d9c7ba;
  border-radius: 0;
  background: transparent;
}
.auth-luxury .auth-field input {
  padding: 10px 0;
  color: #1d0800;
}
.auth-luxury .auth-pw-wrap input { padding: 10px 0; }
.auth-luxury .auth-field input:focus,
.auth-luxury .auth-pw-wrap:focus-within {
  border-color: #1d0800;
  box-shadow: none;
  background: transparent;
}
.auth-luxury .btn-primary {
  min-height: 45px;
  border-radius: 999px;
  background: #1d0800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 11px;
  box-shadow: none;
}
.auth-luxury .btn-primary:hover {
  background: #381507;
  transform: translateY(-1px);
}
.auth-luxury .password-reset-box {
  border: 0;
  border-radius: 12px;
  background: #f5eee8;
}
.auth-luxury .password-reset-box p {
  color: #7a5d49;
  font-size: 11px;
}
.auth-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid #eadbd0;
  font-size: 9px;
  font-weight: 800;
  color: #1d0800;
}

@media (max-width: 900px) {
  .auth-luxury .auth-split { grid-template-columns: 1fr; }
  .auth-luxury .auth-brand-side {
    min-height: 48vh;
    padding: 28px 28px 34px;
  }
  .auth-brand-copy { margin: 44px 0 52px; }
  .auth-showcase {
    display: none;
  }
  .auth-luxury .auth-form-side {
    max-height: none;
    padding: 28px 24px 38px;
  }
}
@media (max-width: 560px) {
  .auth-brand-copy h1 { font-size: 34px; }
  .auth-flow-strip {
    width: 100%;
    justify-content: center;
    gap: 8px;
  }
  .auth-flow-strip span {
    font-size: 9px;
  }
  .auth-flow-strip i {
    width: 22px;
  }
  .auth-brand-metrics,
  .auth-trust { grid-template-columns: 1fr; }
  .auth-create-link { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-brand-copy h1 em,
  .auth-flow-strip i::after,
  .auth-showcase-card,
  .auth-brand-metrics > div {
    animation: none !important;
  }
}

/* Dashboard visual refresh based on dashboard_v1.html */
#dashboard.dashboard-page {
  --dash-pink: #e91e8c;
  --dash-pink-soft: #fde8f1;
  --dash-gold: #c9a14a;
  --dash-ink: #1a0e08;
  --dash-choco: #2a140c;
  --dash-muted: #8a7868;
  --dash-line: #ece3d6;
  --dash-cream: #fbf6ef;
  --dash-bg: #f6f1e9;
  --dash-green: #3aa170;
  --dash-amber: #d8941a;
  --dash-red: #d24747;
  --dash-purple: #7a5cf2;
  gap: 16px;
  color: var(--dash-ink);
}

#dashboard .dashboard-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 2px 2px;
  flex-wrap: wrap;
}

#dashboard .dashboard-kicker {
  margin: 0 0 6px;
  color: var(--dash-pink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

#dashboard .dashboard-head h1 {
  margin: 0 0 4px;
  color: var(--dash-ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 31px;
  line-height: 1;
  font-weight: 700;
}

#dashboard .dashboard-head p:last-child {
  margin: 0;
  color: var(--dash-muted);
  font-size: 13px;
}

#dashboard .dashboard-period {
  display: grid;
  gap: 2px;
  min-width: 150px;
  padding: 9px 12px;
  border: 1px solid var(--dash-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(26, 14, 8, .05);
}

#dashboard .dashboard-period span {
  color: var(--dash-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

#dashboard .dashboard-period strong {
  color: var(--dash-ink);
  font-size: 13px;
}

#dashboard .dashboard-grid {
  display: grid;
  gap: 16px;
}

#dashboard .dashboard-grid-2 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

#dashboard .dashboard-panel,
#dashboard .metric {
  border: 1px solid var(--dash-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(26, 14, 8, .035), 0 12px 28px -22px rgba(26, 14, 8, .18);
}

#dashboard .dashboard-panel {
  padding: 22px;
}

#dashboard .dashboard-panel h2 {
  color: var(--dash-ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

#dashboard .dashboard-panel .panel-head {
  margin-bottom: 18px;
}

#dashboard .dashboard-panel .panel-head h2 {
  margin: 0;
}

#dashboard .dashboard-metrics {
  gap: 16px;
}

#dashboard .metric {
  min-height: 142px;
  padding: 20px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

#dashboard .metric:hover {
  transform: translateY(-2px);
  border-color: #e4d7c9;
  box-shadow: 0 14px 30px -18px rgba(26, 14, 8, .2);
}

#dashboard .metric::before {
  display: none;
}

#dashboard .metric::after {
  content: '';
  position: absolute;
  top: 19px;
  right: 19px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--dash-pink-soft);
  box-shadow: inset 0 0 0 1px rgba(233, 30, 140, .08);
}

#dashboard .metric:nth-child(2)::after {
  background: #fff5e1;
  box-shadow: inset 0 0 0 1px rgba(201, 161, 74, .16);
}

#dashboard .metric:nth-child(3)::after {
  background: #e7f6ee;
  box-shadow: inset 0 0 0 1px rgba(58, 161, 112, .14);
}

#dashboard .metric:nth-child(4)::after {
  background: #efe9ff;
  box-shadow: inset 0 0 0 1px rgba(122, 92, 242, .12);
}

#dashboard .metric span {
  max-width: calc(100% - 50px);
  margin-bottom: 18px;
  color: var(--dash-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

#dashboard .metric strong {
  color: var(--dash-ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 29px;
  font-weight: 700;
  line-height: 1;
}

#dashboard .metric.accent {
  border-color: #ead9d0;
  background: linear-gradient(145deg, #fff 0%, #fff 58%, #fff4f9 100%);
}

#dashboard .metric.accent strong {
  color: var(--dash-pink);
}

#dashboard .chart-period {
  border-color: var(--dash-line);
  background: var(--dash-cream);
  color: var(--dash-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

#dashboard .chart-summary {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--dash-line);
  border-radius: 12px;
  background: var(--dash-cream);
  color: var(--dash-muted);
}

#dashboard .chart-summary strong {
  color: var(--dash-ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 700;
}

#dashboard .bar-chart {
  height: 218px;
  gap: 12px;
  padding: 10px 2px 0;
}

#dashboard .bar-col {
  grid-template-rows: 22px 1fr 16px 13px;
  min-width: 58px;
}

#dashboard .bar-col .bar-track {
  height: 136px;
  border-color: var(--dash-line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, transparent 0 24%, rgba(236, 227, 214, .75) 24.5% 25%, transparent 25.5% 49%, rgba(236, 227, 214, .75) 49.5% 50%, transparent 50.5% 74%, rgba(236, 227, 214, .75) 74.5% 75%, transparent 75.5%),
    var(--dash-cream);
}

#dashboard .bar-col .bar-track:hover {
  border-color: rgba(233, 30, 140, .35);
  box-shadow: 0 10px 18px -14px rgba(233, 30, 140, .35);
}

#dashboard .bar-col .bar {
  border-radius: 8px;
  background: linear-gradient(180deg, var(--dash-pink) 0%, #bd176f 100%);
}

#dashboard .bar-col.today .bar-track {
  border-color: rgba(201, 161, 74, .45);
  background:
    linear-gradient(180deg, transparent 0 24%, rgba(236, 227, 214, .75) 24.5% 25%, transparent 25.5% 49%, rgba(236, 227, 214, .75) 49.5% 50%, transparent 50.5% 74%, rgba(236, 227, 214, .75) 74.5% 75%, transparent 75.5%),
    #fffaf0;
}

#dashboard .bar-col.today .bar {
  background: linear-gradient(180deg, var(--dash-gold) 0%, #9d752a 100%);
}

#dashboard .bar-col .val,
#dashboard .bar-col .lbl {
  color: var(--dash-ink);
}

#dashboard .bar-col .val {
  max-width: 72px;
  font-size: 10px;
}

#dashboard .bar-col .lbl {
  font-size: 11px;
  font-weight: 800;
}

#dashboard .bar-col .day {
  color: var(--dash-muted);
}

#dashboard .list {
  gap: 0;
}

#dashboard .item {
  align-items: center;
  border-width: 0 0 1px;
  border-color: var(--dash-line);
  border-radius: 0;
  background: transparent;
  padding: 14px 0;
  box-shadow: none;
}

#dashboard .item:last-child {
  border-bottom: 0;
}

#dashboard .item:hover {
  border-color: var(--dash-line);
  box-shadow: none;
}

#dashboard .item.alert {
  padding-left: 12px;
  border: 1px solid #f0c8c8;
  border-radius: 12px;
  background: #fff7f7;
}

#dashboard .dashboard-ranking-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

#dashboard .dashboard-ranking-panel {
  min-width: 0;
  overflow: hidden;
  padding: 24px;
}

#dashboard .dashboard-ranking-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

#dashboard .dashboard-ranking-title h2 {
  margin: 0;
  color: var(--dash-ink);
  font-size: 24px;
}

#dashboard .dashboard-ranking-title p {
  margin: 2px 0 0;
  color: var(--dash-muted);
}

#dashboard .dashboard-ranking-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 999px;
  background: #fff1c4;
  border: 1px solid #f4d98b;
  box-shadow: 0 12px 30px rgba(222, 154, 28, .12);
  font-size: 24px;
}

#dashboard .dashboard-ranking-icon.purple {
  background: #f2eafe;
  border-color: #dfcef7;
  color: #7c55bd;
}

#dashboard .dashboard-ranking-head {
  display: grid;
  grid-template-columns: 30px 50px minmax(96px, 1fr) minmax(76px, 120px) 74px 86px 24px;
  gap: 12px;
  align-items: end;
  padding: 0 10px 10px;
  color: var(--dash-muted);
  font-size: 12px;
  line-height: 1.25;
}

#dashboard .dashboard-ranking-head.watch {
  grid-template-columns: 30px 50px minmax(96px, 1fr) minmax(76px, 120px) 78px minmax(104px, 120px);
}

#dashboard .top-products-list {
  display: grid;
  gap: 0;
}

#dashboard .top-product-item {
  display: grid;
  grid-template-columns: 30px 50px minmax(96px, 1fr) minmax(76px, 120px) 74px 86px 24px;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 12px 10px;
  border: 0;
  border-top: 1px solid var(--dash-line);
  border-radius: 0;
  background: transparent;
}

#dashboard .top-product-item:first-child {
  border-top: 1px solid #f0c7d1;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(255, 247, 238, .9), rgba(255, 255, 255, .75));
  box-shadow: inset 0 0 0 1px #f4cfda;
}

#dashboard .dashboard-ranking-watch .top-product-item:first-child {
  border-color: #dfd0ef;
  box-shadow: inset 0 0 0 1px #e6d8f5;
}

#dashboard .ranking-watch-row {
  grid-template-columns: 30px 50px minmax(96px, 1fr) minmax(76px, 120px) 78px minmax(104px, 120px);
}

#dashboard .top-product-rank {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: #f2eafd;
  color: #7b54bb;
  font-size: 17px;
  font-weight: 900;
}

#dashboard .top-product-rank.gold {
  background: #ffbf32;
  color: #fff;
  box-shadow: 0 8px 18px rgba(241, 166, 20, .28);
}

#dashboard .top-product-rank.silver {
  background: #f0f0f0;
  color: #595959;
}

#dashboard .top-product-rank.bronze {
  background: #efc298;
  color: #753c1e;
}

#dashboard .top-product-photo {
  width: 50px;
  height: 50px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--dash-line);
  border-radius: 999px;
  background: #fff7f3;
  color: var(--dash-pink);
  font-size: 24px;
}

#dashboard .top-product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#dashboard .top-product-copy {
  min-width: 0;
}

#dashboard .top-product-copy .nm {
  overflow: hidden;
  color: var(--dash-ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#dashboard .top-product-copy .sub {
  margin-top: 4px;
  color: var(--dash-muted);
  font-size: 11px;
  line-height: 1.25;
}

#dashboard .top-product-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #fbede8;
}

#dashboard .top-product-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f05a91, #ef4f88);
}

#dashboard .dashboard-ranking-watch .top-product-bar span {
  background: linear-gradient(90deg, #b894dc, #c8aae8);
}

#dashboard .top-product-total,
#dashboard .top-product-value {
  color: var(--dash-ink);
  font-size: 14px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#dashboard .top-product-value {
  color: var(--dash-pink);
  font-weight: 900;
}

#dashboard .top-product-trend {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 900;
}

#dashboard .top-product-trend.up {
  color: #29a875;
}

#dashboard .top-product-trend.down {
  color: #d34b5a;
}

#dashboard .top-product-note {
  justify-self: start;
  padding: 8px 12px;
  border: 1px solid #f3caca;
  border-radius: 999px;
  background: #fff7f7;
  color: #d8404f;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  #dashboard .dashboard-ranking-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  #dashboard .dashboard-ranking-panel {
    padding: 18px 14px;
  }
  #dashboard .dashboard-ranking-head {
    display: none;
  }
  #dashboard .top-product-item,
  #dashboard .ranking-watch-row {
    grid-template-columns: 34px 52px minmax(0, 1fr) 34px;
    gap: 10px;
    padding: 14px 6px;
  }
  #dashboard .top-product-photo {
    width: 52px;
    height: 52px;
  }
  #dashboard .top-product-bar {
    grid-column: 3 / -1;
    width: 100%;
  }
  #dashboard .top-product-total,
  #dashboard .top-product-value,
  #dashboard .top-product-note {
    grid-column: 3 / -1;
    justify-self: start;
  }
  #dashboard .top-product-trend {
    grid-column: 4;
    grid-row: 1;
  }
}

#dashboard .item .nm {
  color: var(--dash-ink);
  font-size: 13px;
  font-weight: 800;
}

#dashboard .item .sub {
  color: var(--dash-muted);
  font-size: 11px;
}

#dashboard .badge {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

#dashboard .badge,
#dashboard .badge.s-pendente,
#dashboard .badge.s-em-producao {
  background: var(--dash-pink-soft);
  color: var(--dash-pink);
  border-color: transparent;
}

#dashboard .badge.s-confirmado,
#dashboard .badge.s-entregue,
#dashboard .badge.g {
  background: #e7f6ee;
  color: var(--dash-green);
}

#dashboard .badge.s-pronto,
#dashboard .badge.b {
  background: #efe9ff;
  color: var(--dash-purple);
}

#dashboard .badge.a {
  background: #fff5e1;
  color: #8d6420;
}

#dashboard .badge.r,
#dashboard .badge.s-cancelado {
  background: #fde6e6;
  color: var(--dash-red);
}

#dashboard .empty {
  color: var(--dash-muted);
  padding: 30px 10px;
}

#dashboard .btn-soft {
  border-color: var(--dash-line);
  background: var(--dash-cream);
  color: var(--dash-ink);
  border-radius: 9px;
}

#dashboard .btn-soft:hover:not(:disabled) {
  background: #fff;
  border-color: #dfd3c2;
}

#dashboard #capacityWarningBanner .item {
  padding: 14px 16px;
  border-radius: 14px;
}

@media (max-width: 1100px) {
  #dashboard .dashboard-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  #dashboard .dashboard-head {
    align-items: flex-start;
  }

  #dashboard .dashboard-period {
    width: 100%;
  }

  #dashboard .dashboard-panel {
    padding: 18px;
  }
}

@media (max-width: 560px) {
  #dashboard .dashboard-head h1 {
    font-size: 28px;
  }

  #dashboard .metric {
    min-height: 118px;
    padding: 16px;
  }

  #dashboard .metric::after {
    top: 15px;
    right: 15px;
  }

  #dashboard .metric strong {
    font-size: 24px;
  }

  #dashboard .bar-chart {
    min-width: 520px;
  }

  #dashboard .item {
    align-items: flex-start;
    flex-direction: column;
  }
}

#stock .stock-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

#stock .stock-summary-grid .metric {
  min-height: 86px;
}

#stock .stock-help {
  margin: 10px 0;
  color: var(--muted);
  font-size: 11px;
}

#stock #stockList .item {
  align-items: center;
}

#stock #stockList .ra {
  gap: 7px;
}

@media (max-width: 900px) {
  #stock .stock-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  #stock .stock-summary-grid {
    grid-template-columns: 1fr;
  }

  #stock #stockList .item {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Atualizacao segura: Pedidos em etapas, venda rapida e modo cozinha */
.orders-tabs { display:flex; gap:8px; margin-bottom:14px; }
.orders-tabs button { border:1px solid var(--bd); border-radius:999px; padding:9px 16px; background:#fff; color:var(--muted); font-weight:800; cursor:pointer; }
.orders-tabs button.active { background:var(--rose); color:#fff; border-color:var(--rose); }
.orders-form-panel { display:grid; grid-template-columns:minmax(0,1fr) 292px; gap:16px; align-items:start; }
.orders-form-panel > h2, .orders-form-sub, .orders-steps, .order-form-main { grid-column:1; }
.orders-form-sub { color:var(--muted); font-size:12px; margin-top:-8px; }
.orders-steps { grid-column:1 / -1; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin:6px 0 10px; }
.orders-steps button { border:1px solid var(--bd); border-radius:12px; padding:10px; background:#fff; color:var(--muted); font-weight:800; cursor:pointer; text-align:left; }
.orders-steps b { display:inline-grid; place-items:center; width:24px; height:24px; border-radius:50%; margin-right:6px; background:var(--surface2); }
.orders-steps .active { border-color:var(--rose); color:var(--cocoa); box-shadow:var(--shadow-sm); }
.orders-steps .active b { background:var(--rose); color:#fff; }
.orders-steps .done b { background:#e9f8ee; color:#247344; }
.order-side-summary { grid-column:2; display:grid; gap:10px; position:sticky; top:16px; }
.order-summary-card, .order-side-note { border:1px solid var(--bd); border-radius:14px; background:#fff; padding:14px; box-shadow:var(--shadow-sm); }
.order-summary-card h3 { margin:0 0 10px; color:var(--cocoa); }
.order-summary-card p, .order-summary-card div { display:flex; justify-content:space-between; gap:10px; margin:7px 0; color:var(--muted); }
.order-summary-card strong, .order-side-note strong { color:var(--cocoa); }
.order-summary-card button { width:100%; margin-top:10px; border:0; border-radius:999px; padding:11px; background:var(--rose); color:#fff; font-weight:800; cursor:pointer; }
.order-side-note { font-size:12px; color:var(--muted); }
.order-side-note span { display:block; margin-top:4px; }
.order-step-title, .order-step-block { display:none; }
.orders-form-panel[data-current-step="1"] [data-order-step="1"],
.orders-form-panel[data-current-step="2"] [data-order-step="2"],
.orders-form-panel[data-current-step="3"] [data-order-step="3"],
.orders-form-panel[data-current-step="4"] [data-order-step="4"] { display:block; }
.orders-form-panel[data-current-step="1"] .form-grid[data-order-step="1"],
.orders-form-panel[data-current-step="3"] .form-grid[data-order-step="3"] { display:grid; }
.orders-form-panel[data-current-step="2"] .cart-wrap[data-order-step="2"] { display:block; }
.order-step-title { margin:6px 0 14px; }
.order-step-title strong { display:block; color:var(--cocoa); font-size:17px; }
.order-step-title span { color:var(--muted); font-size:12px; }
.order-wizard-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:14px; }
.order-review { border:1px solid var(--bd); border-radius:14px; padding:14px; background:#fff; }
.review-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.review-grid p, .review-items div { border:1px solid var(--bd); border-radius:10px; padding:10px; margin:0; display:flex; justify-content:space-between; gap:10px; }
.review-grid span, .review-notes span { display:block; color:var(--muted); font-size:11px; }
.review-items { display:grid; gap:8px; margin-top:10px; }
.orders-tools { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.orders-tools input, .orders-tools select { min-height:34px; border:1px solid var(--bd); border-radius:9px; padding:6px 10px; font-size:12px; }
.order-list-card { align-items:center; }
.order-thumb { width:54px; height:54px; border-radius:12px; overflow:hidden; background:var(--surface2); display:grid; place-items:center; flex:0 0 auto; }
.order-thumb img { width:100%; height:100%; object-fit:cover; }
.quick-sale-order { border-left:4px solid var(--rose); background:#fff7f8; }
.quick-sale-pos { min-height:620px; }
.qs-shell { display:grid; grid-template-columns:minmax(0,1fr) 260px; gap:16px; border:1px solid var(--bd); border-radius:18px; padding:18px; background:#fff7f8; }
.qs-head, .qs-toolbar { grid-column:1 / -1; display:flex; justify-content:space-between; gap:12px; align-items:center; flex-wrap:wrap; }
.qs-head span { color:var(--rose-dk); font-size:11px; font-weight:900; text-transform:uppercase; }
.qs-head h2 { margin:0; color:var(--cocoa); }
.qs-toolbar input { flex:1; min-width:220px; border:1px solid var(--bd); border-radius:999px; padding:10px 14px; }
.qs-cats { display:flex; gap:6px; flex-wrap:wrap; }
.qs-cats button { border:1px solid var(--bd); border-radius:999px; padding:7px 11px; background:#fff; cursor:pointer; }
.qs-cats button.active { background:var(--rose); color:#fff; border-color:var(--rose); }
.qs-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); gap:12px; }
.qs-product { border:1px solid var(--bd); border-radius:14px; background:#fff; padding:12px; display:grid; gap:9px; }
.qs-product.selected { border-color:var(--rose); box-shadow:var(--shadow-sm); }
.qs-photo { aspect-ratio:1.2; border-radius:12px; overflow:hidden; display:grid; place-items:center; background:var(--surface2); font-size:32px; }
.qs-photo img { width:100%; height:100%; object-fit:cover; }
.qs-product strong, .qs-product small { display:block; }
.qs-product small { color:var(--muted); }
.qs-stepper { display:grid; grid-template-columns:36px 1fr 36px; gap:6px; align-items:center; }
.qs-stepper button { height:34px; border:0; border-radius:10px; background:var(--petal); color:var(--cocoa); font-weight:900; cursor:pointer; }
.qs-stepper b { text-align:center; }
.qs-summary { display:grid; align-content:start; gap:10px; border:1px solid var(--bd); border-radius:14px; background:#fff; padding:14px; }
.qs-summary div { display:flex; justify-content:space-between; color:var(--muted); }
.qs-summary strong { color:var(--cocoa); }
.qs-checkout { position:fixed; inset:0; z-index:850; background:rgba(0,0,0,.35); display:grid; place-items:center; padding:18px; }
.qs-checkout.hidden { display:none !important; }
.qs-checkout-box { width:min(420px,100%); border-radius:18px; background:#fff; padding:18px; display:grid; gap:10px; }
.qs-checkout-box input, .qs-checkout-box select { border:1px solid var(--bd); border-radius:10px; padding:10px 12px; }
.kitchen-mode { position:fixed; inset:0; z-index:900; display:none; overflow:auto; padding:18px; background:#211a16; color:#fff; }
.kitchen-mode-on .kitchen-mode { display:block; }
.kitchen-shell { display:grid; gap:16px; }
.kitchen-head { display:grid; grid-template-columns:260px 1fr auto; gap:16px; align-items:start; }
.kitchen-brand { display:flex; gap:12px; align-items:center; }
.kitchen-logo { width:46px; height:46px; display:grid; place-items:center; border-radius:12px; background:rgba(255,255,255,.1); }
.kitchen-brand strong { display:block; font-size:24px; }
.kitchen-brand span { color:rgba(255,255,255,.7); }
.kitchen-head button, .kitchen-card button { border:0; border-radius:999px; padding:9px 13px; background:#fff; color:#211a16; font-weight:800; cursor:pointer; }
.kitchen-metrics { display:grid; grid-template-columns:repeat(6,minmax(90px,1fr)); gap:8px; }
.kitchen-metrics div { border:1px solid rgba(255,255,255,.14); border-radius:12px; background:rgba(255,255,255,.08); padding:12px; }
.kitchen-metrics span { display:block; color:rgba(255,255,255,.68); font-size:11px; text-transform:uppercase; }
.kitchen-metrics strong { display:block; font-size:25px; margin-top:4px; }
.kitchen-board { display:grid; grid-template-columns:repeat(4,minmax(220px,1fr)); gap:12px; }
.kitchen-column { border:1px solid rgba(255,255,255,.12); border-radius:16px; background:rgba(255,255,255,.06); overflow:hidden; }
.kitchen-column header { display:flex; justify-content:space-between; padding:13px; border-bottom:1px solid rgba(255,255,255,.1); }
.kitchen-column header b { display:grid; place-items:center; min-width:28px; height:28px; border-radius:50%; background:#fff; color:#211a16; }
.kitchen-column > div { display:grid; gap:10px; padding:12px; }
.kitchen-card { border:1px solid rgba(255,255,255,.16); border-radius:13px; background:rgba(255,255,255,.1); padding:12px; }
.kitchen-card strong, .kitchen-card span { display:block; }
.kitchen-card span, .kitchen-card p { color:rgba(255,255,255,.75); }
.kitchen-empty { color:rgba(255,255,255,.55); padding:18px; text-align:center; }

@media (max-width: 960px) {
  .orders-form-panel, .qs-shell, .kitchen-head, .kitchen-board { grid-template-columns:1fr; }
  .order-side-summary { grid-column:1; position:static; }
  .orders-steps { grid-template-columns:1fr 1fr; }
  .review-grid, .kitchen-metrics { grid-template-columns:1fr 1fr; }
}

@media (max-width: 560px) {
  .orders-steps, .review-grid, .kitchen-metrics { grid-template-columns:1fr; }
  .order-list-card { align-items:flex-start; }
}


/* Test environment order/production screens */
/* ══════════════════════════════════════════════════════════════════
   FATIA CERTA — app-extra.css v7
   Componentes extras: auth, produção, modais, receita, etc.
   ══════════════════════════════════════════════════════════════════ */

/* ── Auth redesign ───────────────────────────────────────────────── */
.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 0;
  background: var(--cream);
}
.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(940px, 100%);
  min-height: 100vh;
  box-shadow: var(--shadow-lg);
}
.auth-brand-side {
  background: var(--cocoa);
  padding: 64px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}
.auth-brand-logo { font-size: 3.5rem; margin-bottom: 18px; }
.auth-brand-name {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: rgba(255,255,255,.95);
}
.auth-brand-sub { font-size: .95rem; opacity: .75; line-height: 1.75; margin-bottom: 36px; }
.auth-features { list-style: none; display: grid; gap: 12px; }
.auth-features li { font-size: .88rem; opacity: .85; display: flex; align-items: center; gap: 10px; }
.auth-form-side {
  background: var(--white);
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 30px;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--bd);
}
.auth-tab {
  flex: 1;
  padding: 11px;
  border: none;
  background: var(--white);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: .15s;
}
.auth-tab.active { background: var(--rose); color: #fff; }
.auth-welcome { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.auth-field { margin-bottom: 18px; }
.auth-field label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 7px;
}
.auth-field input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--bd);
  border-radius: var(--r-sm);
  font-size: 13px;
  transition: .15s;
  background: var(--surface2);
}
.auth-field input:focus { outline: none; border-color: var(--rose); background: var(--white); box-shadow: 0 0 0 3px rgba(196,115,122,.12); }
.auth-pw-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--bd);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface2);
  transition: .15s;
}
.auth-pw-wrap:focus-within { border-color: var(--rose); background: var(--white); box-shadow: 0 0 0 3px rgba(196,115,122,.12); }
.auth-pw-wrap input { flex: 1; padding: 11px 14px; border: none; outline: none; font-size: 13px; background: transparent; }
.pw-toggle { border: none; background: transparent; padding: 0 12px; cursor: pointer; font-size: 16px; opacity: .45; }
.pw-toggle:hover { opacity: 1; }
.auth-msg { display: block; text-align: center; font-size: 12px; min-height: 18px; margin-top: 10px; }
.auth-msg.error   { color: var(--danger); }
.auth-msg.success { color: var(--success); }

.content.hide-app-header .app-header {
  display: none;
}
.content.hide-app-header {
  padding-top: 22px;
}
.content > .page:not(#dashboard) {
  padding-top: 22px;
}

@media (max-width: 700px) {
  .content > .page:not(#dashboard) {
    padding-top: 16px;
  }
}

/* Pedidos - tela completa */
#ordersTabList {
  display: grid;
  gap: 18px;
}

.orders-form-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  grid-template-rows: auto auto auto 1fr;
  column-gap: 26px;
  row-gap: 14px;
  padding: 22px 24px 26px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,248,244,.72), rgba(255,255,255,.95)),
    #fff;
  box-shadow: 0 18px 46px rgba(72, 39, 28, .06);
}

.orders-form-panel > h2,
.orders-form-sub,
.orders-steps,
.order-form-main {
  grid-column: 1;
}

.orders-form-panel > h2 {
  margin: 0;
  color: #2d221c;
  font-size: 20px;
  font-weight: 900;
}

.orders-form-sub {
  margin: -8px 0 2px;
  color: #7b716b;
  font-size: 13px;
}

.orders-steps {
  grid-column: 1 / -1;
  grid-row: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 0;
  margin: 2px -24px 2px;
  padding: 0 24px;
  min-height: 58px;
  align-items: center;
  border-top: 1px solid #f3e2dc;
  border-bottom: 1px solid #f3e2dc;
  background: rgba(255,255,255,.72);
}

.orders-steps button,
.orders-steps span {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border: 0;
  background: transparent;
  color: #7b716b;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.orders-steps button.active::after,
.orders-steps span.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 22px;
  bottom: -1px;
  height: 3px;
  border-radius: 999px;
  background: #e85a79;
}

.orders-steps b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #ead9d2;
  border-radius: 999px;
  background: #fff;
  color: #b08a80;
  font-size: 12px;
}

.orders-steps button.active b,
.orders-steps span.active b {
  border-color: #e85a79;
  background: #e85a79;
  color: #fff;
}

.orders-steps button.done b,
.orders-steps span.done b {
  border-color: #6cc18b;
  background: #e9f8ee;
  color: #247344;
}

.orders-steps button:hover {
  color: #2d221c;
}

.order-side-summary {
  grid-column: 2;
  grid-row: 4;
  display: grid;
  align-content: start;
  gap: 12px;
}

.order-form-main {
  grid-row: 4;
  display: grid;
  gap: 14px;
  align-content: start;
}

.order-step-title,
.order-step-block,
.order-form-main .form-grid:has(#oNotes) {
  display: none;
}

.orders-form-panel[data-current-step="1"] [data-order-step="1"],
.orders-form-panel[data-current-step="2"] [data-order-step="2"],
.orders-form-panel[data-current-step="3"] [data-order-step="3"],
.orders-form-panel[data-current-step="4"] [data-order-step="4"] {
  display: block;
}

.orders-form-panel[data-current-step="1"] .form-grid[data-order-step="1"],
.orders-form-panel[data-current-step="2"] .form-grid[data-order-step="2"],
.orders-form-panel[data-current-step="3"] .form-grid[data-order-step="3"],
.orders-form-panel[data-current-step="3"] .order-form-main .form-grid:has(#oNotes),
.orders-form-panel[data-current-step="4"] .form-grid[data-order-step="4"] {
  display: grid;
}

.orders-form-panel[data-current-step="1"] .form-grid.c2[data-order-step="1"] {
  grid-template-columns: 1fr 1fr 1fr;
}

.orders-form-panel[data-current-step="1"] .form-grid.c2[data-order-step="1"]:has(#oClientPhone.hidden) {
  grid-template-columns: 1fr 1fr;
}

.order-step-title {
  padding: 3px 0 2px;
}

.order-step-title strong {
  display: block;
  color: #2d221c;
  font-size: 18px;
  font-weight: 900;
}

.order-step-title span {
  display: block;
  margin-top: 3px;
  color: #7b716b;
  font-size: 13px;
}

.order-summary-card,
.order-side-note {
  border: 1px solid #f0ded7;
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 28px rgba(72, 39, 28, .045);
}

.order-summary-card {
  padding: 18px;
}

.order-summary-card h3 {
  margin: 0 0 18px;
  color: #2d221c;
  font-size: 15px;
}

.order-summary-card p {
  display: flex;
  justify-content: space-between;
  margin: 0 0 12px;
  color: #6f655f;
  font-size: 13px;
}

.order-summary-card p strong {
  color: #1f1714;
}

.order-summary-card > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed #e5d3cd;
  text-transform: uppercase;
  font-weight: 900;
  color: #2d221c;
}

.order-summary-card > div strong {
  color: #e04c70;
  font-size: 24px;
}

.order-summary-card button {
  width: 100%;
  min-height: 46px;
  margin-top: 16px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #e85a79, #d63860);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.order-side-note {
  padding: 14px 16px;
}

.order-side-note strong {
  display: block;
  color: #8c4f24;
  font-size: 12px;
  margin-bottom: 7px;
}

.order-side-note span {
  display: block;
  color: #7a716c;
  font-size: 12px;
  line-height: 1.45;
}

.order-form-main .form-grid {
  margin-bottom: 0;
}

.order-form-main .form-grid input,
.order-form-main .form-grid select,
.order-form-main .add-to-cart-row input,
.order-form-main .add-to-cart-row select {
  min-height: 42px;
  border-color: #ecdcd5 !important;
  border-radius: 10px !important;
  background: #fff;
}

.order-form-main input.is-disabled,
.order-form-main input:disabled {
  background: #f6f1ef !important;
  color: #b3a8a2;
  cursor: not-allowed;
}

.order-form-main .cart-wrap {
  margin-top: 8px;
  border: 1px solid #f0ded7;
  border-radius: 16px;
  padding: 16px;
  background: rgba(255,252,250,.8);
}

.order-form-main .cart-header h3 {
  margin: 0 0 12px;
  font-size: 16px;
  color: #2d221c;
}

.order-form-main .cart-header h3 {
  font-size: 0;
}

.order-form-main .cart-header h3::before {
  content: "Produtos do pedido";
  font-size: 16px;
}

.order-wizard-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.order-wizard-actions .btn {
  min-height: 42px;
}

.order-form-main #orderBtn,
#orderSummarySaveBtn {
  display: none;
}

.orders-form-panel[data-current-step="4"] #orderBtn:not(.hidden),
.orders-form-panel[data-current-step="4"] #orderSummarySaveBtn:not(.hidden) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.orders-form-panel[data-current-step="4"] #orderSummarySaveBtn:not(.hidden) {
  display: flex;
}

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

.order-review section {
  border: 1px solid #f0ded7;
  border-radius: 14px;
  background: #fff;
  padding: 14px 16px;
}

.order-review h4 {
  margin: 0 0 10px;
  color: #2d221c;
  font-size: 14px;
  font-weight: 900;
}

.order-review p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 7px 0;
  border-bottom: 1px solid #f6e9e4;
  color: #746a64;
  font-size: 12px;
}

.order-review p:last-child {
  border-bottom: 0;
}

.order-review strong {
  color: #2d221c;
  text-align: right;
  word-break: break-word;
}

.order-review-total strong {
  color: #e04c70;
  font-size: 15px;
}

.orders-list-panel {
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 44px rgba(72, 39, 28, .055);
}

.orders-list-panel .panel-head {
  margin: 0;
  padding: 18px 18px 14px;
  border-bottom: 1px solid #f0ded7;
}

.orders-list-panel .panel-head h2 {
  font-size: 19px;
  font-weight: 900;
  color: #2d221c;
}

.orders-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.orders-tools input,
.orders-tools select {
  min-height: 38px;
  border: 1px solid #ecdcd5;
  border-radius: 10px;
  background: #fff;
  color: #4b403a;
  padding: 0 12px;
  font-size: 12px;
}

#ordersList {
  gap: 0;
}

.orders-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 150px 128px auto;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 12px 18px;
  border-bottom: 1px solid #f0ded7;
  background: #fff;
}

.orders-row.done {
  opacity: .58;
}

.orders-row-main {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 13px;
}

.orders-row-photo {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #f0ded7;
  background: #fff7f4;
}

.orders-row-copy {
  min-width: 0;
}

.orders-row-copy strong,
.orders-row-copy span,
.orders-row-copy small {
  display: block;
}

.orders-row-copy strong {
  color: #241b17;
  font-size: 14px;
  font-weight: 900;
}

.orders-row-copy span {
  margin-top: 2px;
  color: #645b56;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orders-row-copy small {
  margin-top: 4px;
  color: #7f7671;
  font-size: 11px;
}

.orders-row-copy small b {
  color: #c9b8b0;
  padding: 0 5px;
}

.orders-row-copy em {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff0f4;
  color: #d63860;
  font-style: normal;
  font-weight: 800;
}

.orders-row-status {
  justify-self: center;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.orders-row-price {
  justify-self: center;
  color: #1d1512;
  font-size: 14px;
}

.orders-row-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.orders-list-panel .pager {
  justify-content: center;
  padding: 16px 18px 18px;
  margin: 0;
}

@media (max-width: 1120px) {
  .orders-form-panel {
    grid-template-columns: 1fr;
  }
  .order-side-summary,
  .orders-form-panel > h2,
  .orders-form-sub,
  .orders-steps,
  .order-form-main {
    grid-column: 1;
  }
  .order-side-summary {
    grid-row: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .order-form-main {
    grid-row: auto;
  }
  .order-summary-card {
    grid-column: 1 / -1;
  }
  .orders-row {
    grid-template-columns: minmax(260px, 1fr) 120px auto;
  }
  .orders-row-price {
    grid-column: 2;
  }
  .orders-row-actions {
    grid-column: 3;
  }
}

@media (max-width: 760px) {
  .orders-form-panel {
    padding: 18px;
  }
  .orders-steps {
    grid-template-columns: 1fr 1fr;
    margin-inline: -18px;
    padding-inline: 18px;
  }
  .order-form-main .form-grid,
  .order-form-main .form-grid.c2 {
    grid-template-columns: 1fr;
  }
  .orders-form-panel[data-current-step="1"] .form-grid.c2[data-order-step="1"],
  .orders-form-panel[data-current-step="1"] .form-grid.c2[data-order-step="1"]:has(#oClientPhone.hidden) {
    grid-template-columns: 1fr;
  }
  .order-side-summary {
    grid-template-columns: 1fr;
  }
  .order-review {
    grid-template-columns: 1fr;
  }
  .order-wizard-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .order-wizard-actions .btn {
    width: 100%;
    min-height: 48px;
  }
  .orders-tools {
    justify-content: stretch;
  }
  .orders-tools input,
  .orders-tools select,
  .orders-tools .btn,
  .orders-tools .search-input {
    flex: 1 1 150px;
    min-width: 0;
  }
  .orders-row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 10px;
  }
  .orders-row-status,
  .orders-row-price,
  .orders-row-actions {
    justify-self: start;
  }
  .orders-row-actions {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-brand-side { padding: 44px 28px 32px; min-height: auto; }
  .auth-brand-logo { font-size: 2.5rem; }
  .auth-brand-name { font-size: 1.8rem; }
  .auth-form-side { padding: 36px 24px 44px; }
}

/* ── Sugestões de horário ────────────────────────────────────────── */
.time-suggestions {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--white);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  z-index: 50;
  display: none;
  max-height: 200px;
  overflow-y: auto;
}
.time-suggestions.open { display: block; }
.time-slot { padding: 9px 14px; font-size: 12px; cursor: pointer; color: var(--cocoa); transition: .12s; }
.time-slot:hover { background: var(--petal); }

/* ── Produção do dia ─────────────────────────────────────────────── */
.prod-card {
  background: var(--white);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  margin-bottom: 10px;
  transition: box-shadow .15s;
}
.prod-card:hover { box-shadow: var(--shadow-sm); }
.prod-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.prod-card-title { font-size: 13px; font-weight: 600; color: var(--cocoa); }
.prod-card-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.prod-card-items { margin-top: 10px; display: grid; gap: 4px; }
.prod-item-row { display: flex; justify-content: space-between; font-size: 12px; padding: 5px 0; border-top: 1px solid var(--bd); color: var(--cocoa); }
.prod-status-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.status-quick-btn { border: none; border-radius: 999px; padding: 5px 13px; font-size: 11px; font-weight: 600; cursor: pointer; transition: .15s; }
.status-quick-btn:hover { opacity: .82; transform: translateY(-1px); }
.wa-btn { display: inline-flex; align-items: center; gap: 5px; background: #25D366; color: #fff; border: none; border-radius: 999px; padding: 5px 13px; font-size: 11px; font-weight: 600; cursor: pointer; text-decoration: none; transition: .14s; }
.wa-btn:hover { background: #1DA851; }
.prod-total { font-size: 13px; font-weight: 600; color: var(--cocoa); margin-top: 6px; }

/* ── Modal de pedido ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(61,43,31,.42);
  display: none; align-items: center; justify-content: center;
  z-index: 200;
  padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal-card {
  background: var(--white);
  border-radius: var(--r-xl);
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--bd);
  position: sticky; top: 0;
  background: var(--white);
  z-index: 1;
}
.modal-header h3 { font-size: 14px; font-weight: 600; color: var(--cocoa); margin: 0; }
.modal-close { border: none; background: transparent; font-size: 18px; cursor: pointer; color: var(--muted); padding: 4px; opacity: .6; transition: .12s; }
.modal-close:hover { opacity: 1; }
.modal-body { padding: 18px 22px 22px; }
.modal-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--bd); font-size: 13px; }
.modal-row:last-child { border: none; }
.modal-label { color: var(--muted); }
.modal-val { font-weight: 600; color: var(--cocoa); }
.modal-section { margin-top: 16px; }
.modal-section h4 { font-size: 12px; font-weight: 600; color: var(--cocoa); margin-bottom: 9px; }
.modal-item-row { display: flex; justify-content: space-between; padding: 7px 11px; background: var(--surface2); border-radius: var(--r-sm); font-size: 12px; margin-bottom: 4px; }
.modal-status-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--bd); }
.modal-wa-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.day-orders-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.day-orders-head h3 { font-size: 12px; color: var(--cocoa); margin: 0; font-weight: 600; }

/* ── Painel de receita ───────────────────────────────────────────── */
.recipe-panel {}
.recipe-help {
  background: #FFF8F2;
  border: 1px solid var(--blush);
  border-radius: var(--r);
  padding: 14px 16px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--cocoa);
  line-height: 1.7;
}
.recipe-help ol { margin: 8px 0 8px 18px; }
.recipe-help li { margin-bottom: 4px; }
.recipe-history-item { background: var(--surface2); border: 1px solid var(--bd); border-radius: var(--r-sm); padding: 10px 13px; margin-bottom: 6px; }
.recipe-history-title { font-size: 12px; font-weight: 600; color: var(--cocoa); margin-bottom: 4px; }
.recipe-history-sub { font-size: 10px; color: var(--muted); }

/* ── Botão WhatsApp (cliente) ────────────────────────────────────── */
.client-wa {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: .13s;
}
.client-wa:hover { background: #1DA851; }

/* ── Responsivo extra ────────────────────────────────────────────── */
.form-grid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .form-grid.c4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {
  #finance > div[style*="grid-template-columns:1fr 1fr"],
  #dashboard > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* Kanban premium - Producao do dia */
.production-workspace { display: grid; gap: 14px; }
.prod-page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.prod-page-head .eyebrow { font-size: 10px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.prod-page-head h2 { font-size: 18px; margin: 0; color: var(--cocoa); }
.prod-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.prod-date-input { padding: 6px 10px; border: 1px solid var(--bd); border-radius: 9px; font-size: 12px; color: var(--cocoa); background: var(--white); }
.prod-filters { display: flex; gap: 7px; flex-wrap: wrap; margin: 14px 0; }
.prod-filter { border: 1px solid var(--bd); background: var(--surface2); color: var(--muted); border-radius: 999px; padding: 6px 12px; font-size: 11px; font-weight: 700; cursor: pointer; transition: .15s; }
.prod-filter.active, .prod-filter:hover { background: var(--rose); color: #fff; border-color: var(--rose); }
.prod-summary-grid { display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); gap: 10px; }
.prod-metric { background: var(--surface2); border: 1px solid var(--bd); border-radius: var(--r); padding: 12px 13px; min-height: 70px; }
.prod-metric span { display: block; font-size: 10px; color: var(--muted); font-weight: 700; text-transform: uppercase; margin-bottom: 7px; }
.prod-metric strong { color: var(--cocoa); font-size: 17px; font-weight: 700; }
.prod-progress-wrap { margin-top: 12px; }
.prod-progress-meta { display: flex; justify-content: space-between; gap: 10px; align-items: center; color: var(--muted); font-size: 12px; margin-bottom: 7px; }
.prod-progress-meta strong { color: var(--cocoa); font-size: 18px; }
.prod-progress { height: 9px; border-radius: 999px; background: var(--surface3); overflow: hidden; border: 1px solid var(--bd); }
.prod-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--rose), var(--mint)); transition: width .2s; }
.prod-main-grid { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 14px; align-items: start; }
.prod-board { display: grid; grid-template-columns: repeat(4, minmax(230px, 1fr)); gap: 12px; align-items: start; }
.prod-column { background: rgba(255,255,255,.72); border: 1px solid var(--bd); border-radius: var(--r-lg); padding: 10px; min-width: 0; }
.prod-column-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 10px; }
.prod-column-head h3 { font-size: 12px; color: var(--cocoa); margin: 0; font-weight: 800; }
.prod-column-head span { border-radius: 999px; min-width: 28px; text-align: center; padding: 2px 8px; font-size: 11px; font-weight: 800; background: var(--white); border: 1px solid var(--bd); color: var(--cocoa); }
.prod-dropzone { display: grid; gap: 9px; min-height: 140px; border-radius: var(--r); transition: .15s; }
.prod-dropzone.over { background: rgba(216,154,158,.13); outline: 1px dashed var(--rose); outline-offset: 3px; }
.prod-column-empty { text-align: center; color: var(--muted); font-size: 11px; padding: 24px 8px; border: 1px dashed var(--bd); border-radius: var(--r); background: var(--surface2); }
.tone-yellow { border-top: 3px solid #D7A928; }
.tone-orange { border-top: 3px solid #D58A3A; }
.tone-green { border-top: 3px solid var(--mint); }
.tone-blue { border-top: 3px solid var(--sky); }
.prod-card { display: grid; grid-template-columns: 58px minmax(0,1fr); gap: 10px; background: var(--white); border: 1px solid var(--bd); border-radius: var(--r); padding: 10px; margin: 0; cursor: grab; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s, border-color .15s; }
.prod-card:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.prod-card.dragging { opacity: .55; transform: scale(.98); }
.prod-card.urgent { border-color: #E4A2A2; background: #FFF7F7; }
.prod-card.late { border-color: #D98080; background: #FFF1F1; animation: prodLatePulse 1.8s ease-in-out infinite; }
@keyframes prodLatePulse { 0%,100%{box-shadow:var(--shadow-sm)} 50%{box-shadow:0 0 0 3px rgba(163,45,45,.08)} }
.prod-card-photo { width: 58px; height: 58px; border-radius: var(--r-sm); overflow: hidden; background: var(--surface3); border: 1px solid var(--bd); display: flex; align-items: center; justify-content: center; color: var(--rose-dk); font-weight: 900; font-size: 12px; }
.prod-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-card-body { min-width: 0; display: grid; gap: 7px; }
.prod-card-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.prod-card-top strong { display: block; color: var(--cocoa); font-size: 12px; line-height: 1.2; overflow-wrap: anywhere; }
.prod-card-top span { display: block; color: var(--muted); font-size: 11px; line-height: 1.35; margin-top: 2px; overflow-wrap: anywhere; }
.prod-alert { border-radius: 999px; padding: 2px 7px; font-size: 9px; font-style: normal; font-weight: 900; white-space: nowrap; }
.prod-alert.urgent, .prod-alert.late { background: #FCE8E8; color: var(--danger); border: 1px solid #F0C0C0; }
.prod-card-facts { display: flex; flex-wrap: wrap; gap: 5px; }
.prod-card-facts span, .prod-time-row span { background: var(--surface2); border: 1px solid var(--bd); border-radius: 999px; padding: 2px 7px; color: var(--cocoa); font-size: 10px; font-weight: 700; }
.prod-time-row { display: flex; gap: 5px; flex-wrap: wrap; }
.prod-note { color: var(--muted); font-size: 11px; line-height: 1.45; border-top: 1px dashed var(--bd); padding-top: 6px; overflow-wrap: anywhere; }
.prod-card-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.prod-side-panel { display: grid; gap: 12px; position: sticky; top: 14px; }
.prod-next, .prod-tip { background: var(--white); border: 1px solid var(--bd); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow-sm); }
.prod-next span, .prod-tip span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; margin-bottom: 7px; }
.prod-next strong, .prod-tip strong { color: var(--cocoa); font-size: 17px; display: block; margin-bottom: 5px; }
.prod-next p { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.prod-next div { color: var(--rose-dk); font-size: 13px; font-weight: 800; }
.prod-empty { background: var(--white); border: 1px solid var(--bd); border-radius: var(--r-lg); padding: 44px 20px; text-align: center; }
.prod-empty-illo { width: 70px; height: 70px; margin: 0 auto 14px; border-radius: 50%; background: var(--surface2); border: 1px solid var(--bd); display: grid; place-items: center; color: var(--rose); letter-spacing: 2px; }
.prod-empty h3 { color: var(--cocoa); font-size: 18px; margin-bottom: 4px; }
.prod-empty p { color: var(--muted); margin-bottom: 14px; }
.kitchen-mode { position: fixed; inset: 0; z-index: 900; background: #2f261f; color: #fff; padding: 22px; overflow: auto; display: none; }
.kitchen-mode-on .kitchen-mode { display: block; }
.kitchen-head { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center; margin-bottom: 18px; }
.kitchen-head strong { display: block; font-size: 24px; }
.kitchen-head span { display: block; opacity: .68; font-size: 13px; }
.kitchen-head time { font-size: 42px; font-weight: 800; line-height: 1; }
.kitchen-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kitchen-metrics div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-lg); padding: 16px; }
.kitchen-metrics span { display: block; opacity: .65; font-size: 12px; text-transform: uppercase; font-weight: 800; }
.kitchen-metrics strong { display: block; font-size: 34px; margin-top: 4px; }
.kitchen-board { display: grid; grid-template-columns: repeat(4, minmax(260px, 1fr)); gap: 14px; }
.kitchen-board .prod-column { background: rgba(255,255,255,.92); }
.kitchen-board .prod-card { grid-template-columns: 72px minmax(0,1fr); padding: 13px; }
.kitchen-board .prod-card-photo { width: 72px; height: 72px; }
.kitchen-board .prod-card-top strong { font-size: 15px; }
.kitchen-board .prod-card-top span, .kitchen-board .prod-note { font-size: 13px; }

@media (max-width: 1180px) {
  .prod-main-grid { grid-template-columns: 1fr; }
  .prod-side-panel { position: static; grid-template-columns: 1fr 1fr; }
  .prod-board, .kitchen-board { grid-template-columns: repeat(2, minmax(240px, 1fr)); }
  .prod-summary-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 700px) {
  .prod-actions { width: 100%; }
  .prod-date-input { flex: 1; min-width: 145px; }
  .prod-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-board, .prod-side-panel, .kitchen-board, .kitchen-metrics { grid-template-columns: 1fr; }
  .prod-card { grid-template-columns: 52px minmax(0,1fr); }
  .prod-card-photo { width: 52px; height: 52px; }
  .kitchen-mode { padding: 14px; }
  .kitchen-head { grid-template-columns: 1fr; }
  .kitchen-head time { font-size: 34px; }
}

/* Producao do dia - layout referencia */
#production { gap: 26px; }
#production .panel:first-child {
  background: transparent;
  border: 0;
  padding: 0;
}
#production .prod-page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  margin-bottom: 22px;
}
#production .prod-page-head h2,
#production .prod-subtitle { grid-column: 1; }
#production .prod-page-head h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 30px;
  line-height: 1;
  color: #3a2118;
  letter-spacing: 0;
  font-weight: 700;
}
.prod-subtitle {
  color: #a79d96;
  font-size: 12px;
  margin-top: 7px;
  font-weight: 600;
}
#production .prod-page-head > div:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin-left: auto;
  align-self: flex-start;
}
#production .btn {
  min-height: 30px;
  padding: 6px 18px;
  box-shadow: none;
}
#production .btn-primary {
  background: #3a2118;
  color: #fff;
  border: 1px solid #3a2118;
  text-transform: uppercase;
  font-size: 11px;
}
.prod-date-input {
  min-height: 30px;
  border-radius: 999px;
  background: #fff;
  text-align: center;
  font-weight: 700;
  color: #3a2118;
  padding-inline: 18px;
}
.prod-summary-grid {
  grid-template-columns: repeat(5, minmax(130px, 1fr)) minmax(280px, 1.95fr);
  gap: 14px;
  align-items: stretch;
}
.prod-metric {
  min-height: 132px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(58,33,24,.07);
  border-color: #eee7e2;
  padding: 19px 20px;
}
.prod-metric.gold { border-left: 4px solid #d0a64f; }
.prod-metric span {
  color: #b8aea7;
  font-size: 10px;
  letter-spacing: .12em;
}
.prod-metric.warn span { color: #d19719; }
.prod-metric.blue span { color: #2b80e7; }
.prod-metric.green span { color: #22a75d; }
.prod-metric.gold span { color: #b48c3d; }
.prod-metric strong {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 25px;
  color: #3a2118;
  font-weight: 700;
}
.prod-progress-card {
  min-height: 132px;
  border-radius: 16px;
  padding: 22px;
  background: #351d14;
  color: #fff;
  box-shadow: 0 10px 28px rgba(58,33,24,.20);
}
.prod-progress-card > span {
  display: block;
  color: rgba(255,255,255,.42);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .16em;
  margin-bottom: 18px;
}
.prod-progress-card > div:first-of-type {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}
.prod-progress-card strong {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 31px;
  line-height: 1;
}
.prod-progress-card small {
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 800;
}
.prod-progress-card .prod-progress {
  margin: 9px 0 13px;
  height: 6px;
  border: 0;
  background: rgba(255,255,255,.18);
}
.prod-progress-card .prod-progress i { background: #d0a64f; }
.prod-progress-card p {
  color: rgba(255,255,255,.45);
  font-size: 11px;
  font-weight: 700;
}
.prod-progress-wrap { display: none; }
.prod-filters {
  margin: 22px 0 28px;
  gap: 9px;
}
.prod-filter {
  min-width: 84px;
  padding: 8px 17px;
  background: #fff;
  border-color: #eee7e2;
  color: #92877f;
  box-shadow: 0 2px 8px rgba(58,33,24,.035);
}
.prod-filter.active {
  background: #3a2118;
  border-color: #3a2118;
}
.prod-filter:nth-child(6) {
  background: #fff0f4;
  color: #d64275;
}
.prod-filter:nth-child(6).active {
  background: #d64275;
  color: #fff;
  border-color: #d64275;
}
.prod-main-grid {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 30px;
}
.prod-board {
  grid-template-columns: repeat(4, minmax(165px, 1fr));
  gap: 22px;
}
.prod-column {
  background: transparent;
  border: 0;
  border-radius: 0;
  border-top: 0;
  padding: 0;
}
.prod-column-head {
  padding: 0 0 16px;
  justify-content: flex-start;
  gap: 18px;
}
.prod-column-head h3 {
  color: #b5aca5;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.prod-column-head span {
  width: 8px;
  min-width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  font-size: 0;
}
.tone-yellow .prod-column-head span { background: #f3bd20; }
.tone-orange .prod-column-head span { background: #2b80e7; }
.tone-green .prod-column-head span { background: #20bf68; }
.tone-blue .prod-column-head span { background: #d9d4cf; }
.prod-dropzone { gap: 14px; }
.prod-card {
  display: block;
  border-color: #eee7e2;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 7px 18px rgba(58,33,24,.075);
}
.prod-card:hover { box-shadow: 0 10px 24px rgba(58,33,24,.12); }
.prod-card-photo {
  width: 100%;
  height: 99px;
  border: 0;
  border-radius: 0;
  background: #f4eee9;
  font-size: 13px;
}
.tone-green .prod-card-photo,
.tone-blue .prod-card-photo { display: none; }
.prod-card-body {
  padding: 13px 14px 14px;
  gap: 8px;
}
.prod-card-id {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: #c9a55a;
  font-size: 10px;
  font-weight: 900;
}
.prod-card-top strong {
  font-family: Georgia, 'Times New Roman', serif;
  color: #3a2118;
  font-size: 17px;
  line-height: 1.15;
}
.prod-card-top span {
  color: #9b918a;
  font-size: 12px;
}
.prod-card-facts span,
.prod-time-row span {
  background: transparent;
  border: 0;
  padding: 0;
  color: #b0a7a0;
  font-size: 10px;
}
.prod-time-row {
  padding-bottom: 8px;
  border-bottom: 1px solid #f1ebe7;
}
.prod-card-footer {
  display: flex;
  align-items: center;
  gap: 11px;
  justify-content: space-between;
}
.prod-card-footer strong {
  color: #3a2118;
  font-size: 13px;
}
.prod-card-link {
  border: 0;
  background: transparent;
  color: #b6aea8;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
  padding: 0;
}
.prod-card-link.gold { color: #c79b32; }
.prod-card-link.blue { color: #2b80e7; }
.prod-card-link.green { color: #20a965; }
.prod-alert {
  padding: 3px 8px;
  background: #fff0f4;
  color: #d64275;
  border: 0;
}
.prod-card.urgent,
.prod-card.late { background: #fff; border-color: #f1c6cf; }
.tone-orange .prod-card {
  border-color: #cfe2f8;
  box-shadow: 0 7px 18px rgba(43,128,231,.16);
}
.tone-orange .prod-card-photo { border-bottom: 4px solid #2b80e7; }
.tone-blue .prod-card {
  opacity: .56;
  box-shadow: none;
}
.prod-note { font-size: 10px; }
.prod-side-panel {
  gap: 22px;
  top: 18px;
}
.prod-next {
  background: #351d14;
  border: 0;
  border-radius: 20px;
  padding: 24px;
  min-height: 255px;
  color: #fff;
  box-shadow: 0 14px 30px rgba(58,33,24,.20);
}
.prod-next > span,
.prod-rhythm > span {
  color: rgba(255,255,255,.38);
  letter-spacing: .16em;
  font-size: 10px;
  font-weight: 900;
}
.prod-next-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 26px 0 4px;
}
.prod-next-row i {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(208,166,79,.22);
  position: relative;
}
.prod-next-row i::after {
  content: '';
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: #d0a64f;
}
.prod-next-row strong {
  font-family: Georgia, 'Times New Roman', serif;
  color: #fff;
  font-size: 19px;
  margin: 0;
}
.prod-next p {
  color: rgba(255,255,255,.62);
  margin-left: 62px;
  margin-bottom: 7px;
}
.prod-next b {
  display: block;
  color: #d0a64f;
  font-size: 13px;
  margin-left: 62px;
}
.prod-next small {
  display: block;
  color: rgba(255,255,255,.45);
  font-weight: 700;
  margin: 10px 0 0 62px;
}
.prod-next a {
  display: flex;
  justify-content: center;
  margin-top: 25px;
  border-radius: 999px;
  background: rgba(208,166,79,.20);
  border: 1px solid rgba(208,166,79,.36);
  color: #fff;
  padding: 12px 16px;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
}
.prod-rhythm {
  background: #fff;
  border: 1px solid #eee7e2;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 7px 18px rgba(58,33,24,.075);
}
.prod-rhythm > span { color: #b5aca5; display: block; margin-bottom: 24px; }
.prod-rhythm-line {
  display: flex;
  justify-content: space-between;
  color: #3a2118;
  font-size: 12px;
  font-weight: 900;
}
.prod-rhythm-line em {
  color: #d0a64f;
  font-style: normal;
}
.prod-mini-bar {
  height: 4px;
  background: #e7dfd8;
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0 18px;
}
.prod-mini-bar i {
  display: block;
  height: 100%;
  background: #3a2118;
}
.prod-team {
  display: flex;
  gap: 10px;
  padding-top: 15px;
  border-top: 1px solid #f1ebe7;
}
.prod-team span {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f1eee9;
  color: #9a9089;
  font-size: 10px;
  font-weight: 900;
}
.prod-rhythm p {
  color: #b8aea7;
  font-style: italic;
  font-size: 10px;
  margin-top: 24px;
}
@media (max-width: 1180px) {
  .prod-summary-grid { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
  .prod-progress-card { grid-column: span 2; }
  .prod-main-grid { grid-template-columns: 1fr; }
  .prod-side-panel { grid-template-columns: 1fr 1fr; }
  .prod-board { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
}
@media (max-width: 700px) {
  .prod-summary-grid,
  .prod-side-panel,
  .prod-board { grid-template-columns: 1fr; }
  .prod-progress-card { grid-column: auto; }
  #production .prod-page-head h2 { font-size: 26px; }
}

/* Modo cozinha - dashboard escuro */
.kitchen-mode {
  background:
    radial-gradient(circle at 25% 0, rgba(208,166,79,.12), transparent 34%),
    radial-gradient(circle at 80% 35%, rgba(96,156,255,.10), transparent 32%),
    #171410;
  padding: 26px;
  color: #fff;
}
.kitchen-shell { min-height: calc(100vh - 52px); display: grid; grid-template-rows: auto 1fr auto auto; gap: 12px; }
.kitchen-head { display: grid; grid-template-columns: 250px minmax(0,1fr) 210px; gap: 26px; align-items: start; margin: 0 0 14px; }
.kitchen-brand { display: flex; gap: 12px; align-items: center; padding-top: 8px; border-bottom: 1px solid rgba(255,255,255,.08); padding-bottom: 18px; }
.kitchen-logo { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 28px; background: rgba(255,255,255,.08); }
.kitchen-brand strong { font-size: 27px; color: #fff; display: block; }
.kitchen-brand span { display: block; color: rgba(255,255,255,.78); font-size: 14px; margin-top: 16px; white-space: nowrap; }
.kitchen-metrics { display: grid; grid-template-columns: repeat(6, minmax(118px, 1fr)); gap: 9px; margin: 0; }
.kitchen-metric {
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 10px;
  min-height: 100px;
  padding: 15px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.kitchen-metric i { grid-row: 2 / span 2; align-self: center; font-style: normal; font-size: 31px; line-height: 1; }
.kitchen-metric span { grid-column: 1 / -1; color: rgba(255,255,255,.68); text-transform: uppercase; font-size: 11px; font-weight: 900; }
.kitchen-metric strong { font-size: 31px; line-height: 1; margin: 2px 0 0; color: #fff; }
.kitchen-metric small { font-size: 13px; color: #fff; font-weight: 700; align-self: end; }
.kitchen-metric.pink i { color: #d86f91; }
.kitchen-metric.orange i { color: #ff8a38; }
.kitchen-metric.gold i { color: #f2ad43; }
.kitchen-metric.green i { color: #58d283; }
.kitchen-metric.blue i { color: #8f83ff; }
.kitchen-metric.progress i { color: #f0c36c; }
.kitchen-clock { display: grid; justify-items: end; gap: 10px; }
.kitchen-clock time { color: #fff; font-size: 52px; font-weight: 900; line-height: .9; letter-spacing: 0; }
.kitchen-clock button {
  border: 0;
  border-radius: 999px;
  background: #ce6680;
  color: #fff;
  padding: 13px 22px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.kitchen-board { display: grid; grid-template-columns: repeat(4, minmax(230px, 1fr)); gap: 6px; min-height: 0; }
.kitchen-column {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 520px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.16);
  overflow: hidden;
  background: rgba(255,255,255,.03);
}
.kitchen-column header {
  min-height: 82px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 23px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
}
.kitchen-column header div { display: grid; grid-template-columns: 18px 1fr; column-gap: 10px; align-items: center; }
.kitchen-column header div span { width: 16px; height: 16px; border-radius: 50%; grid-row: 1 / span 2; align-self: start; margin-top: 1px; }
.kitchen-column header strong { font-size: 18px; text-transform: uppercase; color: #fff; }
.kitchen-column header small { grid-column: 2; color: rgba(255,255,255,.72); font-size: 14px; }
.kitchen-column header b { width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; color: #171410; }
.k-yellow { border-color: rgba(245,184,45,.42); background: linear-gradient(180deg, rgba(245,184,45,.14), rgba(245,184,45,.035)); }
.k-orange { border-color: rgba(255,126,36,.42); background: linear-gradient(180deg, rgba(255,126,36,.16), rgba(255,126,36,.035)); }
.k-green { border-color: rgba(92,208,128,.42); background: linear-gradient(180deg, rgba(92,208,128,.12), rgba(92,208,128,.025)); }
.k-blue { border-color: rgba(80,165,255,.45); background: linear-gradient(180deg, rgba(80,165,255,.13), rgba(80,165,255,.025)); }
.k-yellow header div span, .k-yellow header b { background: #ffc334; }
.k-orange header div span, .k-orange header b { background: #ff8d6f; }
.k-green header div span, .k-green header b { background: #63d789; }
.k-blue header div span, .k-blue header b { background: #77bcff; }
.kitchen-dropzone { display: grid; align-content: start; gap: 13px; padding: 18px; min-height: 360px; }
.kitchen-dropzone.over { outline: 2px dashed rgba(255,255,255,.28); outline-offset: -10px; background: rgba(255,255,255,.05); }
.kitchen-card {
  position: relative;
  display: grid;
  grid-template-columns: 82px minmax(0,1fr) minmax(112px, auto);
  gap: 14px;
  padding: 17px 12px;
  border-radius: 13px;
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  cursor: grab;
}
.kitchen-card.dragging { opacity: .55; transform: scale(.985); }
.kitchen-card img { width: 82px; height: 82px; object-fit: cover; border-radius: 10px; align-self: center; }
.kitchen-card em { display: block; color: rgba(255,255,255,.66); font-size: 10px; font-style: normal; font-weight: 900; margin-bottom: 6px; }
.kitchen-card strong { display: block; color: #fff; font-size: 17px; line-height: 1.12; }
.kitchen-card span { display: block; color: rgba(255,255,255,.78); font-size: 14px; margin-top: 5px; }
.kitchen-card p { display: flex; gap: 16px; margin: 10px 0 12px; }
.kitchen-card p b { color: #fff; font-size: 13px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 2px 10px; }
.kitchen-card p b + b { border: 0; padding-inline: 0; }
.kitchen-card small { display: block; color: #ffad37; font-size: 13px; font-weight: 900; }
.kitchen-card small.ready, .kitchen-card small.delivered { color: #58d283; }
.kitchen-card-actions { display: grid; gap: 8px; align-self: stretch; align-content: start; justify-items: end; }
.kitchen-card button { border: 0; cursor: pointer; }
.kitchen-card .kitchen-more { background: transparent; color: rgba(255,255,255,.55); font-size: 22px; line-height: 1; }
.kitchen-advance {
  min-width: 104px;
  min-height: 34px;
  border-radius: 10px;
  padding: 0 12px;
  color: #16110e;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}
.kitchen-advance.gold { background: #ffb238; }
.kitchen-advance.blue { background: #76bdff; }
.kitchen-advance.green { background: #68d88b; }
.kitchen-card.urgent small, .kitchen-card.late small { color: #ffad37; }
.kitchen-empty {
  min-height: 86px;
  border-radius: 13px;
  border: 1px dashed rgba(255,255,255,.22);
  display: grid;
  place-items: center;
  text-align: center;
  color: rgba(255,255,255,.50);
  padding: 16px;
  font-size: 14px;
  margin-top: auto;
}
.kitchen-footer { display: grid; grid-template-columns: 1.1fr 1.25fr .55fr 1.2fr; gap: 8px; margin-top: 0; }
.kitchen-next, .kitchen-stats, .kitchen-money, .kitchen-actions {
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  padding: 17px 20px;
}
.kitchen-next > span, .kitchen-stats > span, .kitchen-money > span, .kitchen-actions > span {
  display: block;
  color: #fff1cf;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 14px;
}
.kitchen-next > div { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: center; }
.kitchen-next img { width: 88px; height: 70px; border-radius: 10px; object-fit: cover; }
.kitchen-next strong { display: block; font-size: 16px; color: #fff; }
.kitchen-next small { display: block; color: rgba(255,255,255,.72); margin: 4px 0 8px; }
.kitchen-next p { display: flex; gap: 28px; color: #fff; margin: 0; }
.kitchen-next p b:last-child { color: #ffad37; font-size: 20px; }
.kitchen-stats > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.kitchen-stats section { padding: 0 18px; border-left: 1px solid rgba(255,255,255,.12); }
.kitchen-stats section:first-child { border-left: 0; padding-left: 0; }
.kitchen-stats small { color: rgba(255,255,255,.72); display: block; margin-bottom: 10px; }
.kitchen-stats strong { font-size: 18px; color: #fff; }
.kitchen-money strong { display: block; font-size: 27px; color: #fff; margin-bottom: 10px; }
.kitchen-money small { display: block; color: rgba(255,255,255,.68); }
.kitchen-money b { display: block; color: #58d283; font-size: 16px; margin-top: 4px; }
.kitchen-actions > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kitchen-actions button {
  height: 88px;
  border: 0;
  border-radius: 10px;
  background: rgba(255,255,255,.13);
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  cursor: pointer;
}
.kitchen-actions button:first-child { background: rgba(206,102,128,.66); }
.kitchen-tip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 44px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 12px;
  padding: 10px 22px;
  color: rgba(255,255,255,.78);
  font-size: 13px;
}
.kitchen-tip button { border: 0; background: transparent; color: #fff; font-weight: 800; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.kitchen-tip i { width: 44px; height: 24px; border-radius: 999px; background: rgba(255,255,255,.25); position: relative; }
.kitchen-tip i::after { content: ''; position: absolute; width: 20px; height: 20px; top: 2px; left: 2px; border-radius: 50%; background: #fff; transition: .2s; }
.kitchen-tip i.on { background: #ce6680; }
.kitchen-tip i.on::after { left: 22px; }
@media (max-width: 1300px) {
  .kitchen-head { grid-template-columns: 1fr; }
  .kitchen-clock { justify-items: start; grid-template-columns: auto auto; align-items: center; }
  .kitchen-board { grid-template-columns: repeat(2, minmax(280px, 1fr)); }
  .kitchen-footer { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .kitchen-mode { padding: 14px; }
  .kitchen-metrics, .kitchen-board, .kitchen-footer, .kitchen-actions > div { grid-template-columns: 1fr; }
  .kitchen-column { min-height: auto; }
  .kitchen-card { grid-template-columns: 70px 1fr; }
  .kitchen-card img { width: 70px; height: 70px; }
  .kitchen-card-actions { grid-column: 1 / -1; justify-items: stretch; }
  .kitchen-advance { width: 100%; }
  .kitchen-clock time { font-size: 42px; }
  .kitchen-tip { align-items: flex-start; flex-direction: column; }
}

/* Venda rapida POS */
.orders-tabs { display: inline-flex; gap: 6px; background: var(--white); border: 1px solid var(--bd); border-radius: 999px; padding: 5px; align-self: flex-start; }
.orders-tabs button { border: 0; background: transparent; color: var(--muted); border-radius: 999px; padding: 8px 18px; font-size: 12px; font-weight: 800; cursor: pointer; }
.orders-tabs button.active { background: var(--rose); color: #fff; }
.orders-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.orders-tools input, .orders-tools select { min-height: 32px; border: 1px solid var(--bd); border-radius: 999px; background: var(--surface2); color: var(--cocoa); padding: 6px 12px; font-size: 11px; font-weight: 700; }
#ordersTabQuickPanel { max-width: none; width: 100%; }
#ordersTabQuotesPanel { width: 100%; display: grid; gap: 14px; }
#ordersTabQuotesPanel.hidden { display: none; }
#ordersTabQuotesPanel .quotes-panel,
#ordersTabQuotesPanel .quotes-list-panel {
  border-radius: 24px;
  border-color: rgba(223, 189, 178, .82);
  background: rgba(255, 253, 249, .94);
  box-shadow: 0 18px 42px rgba(63, 32, 18, .07);
}
#ordersTabQuotesPanel .quotes-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
#ordersTabQuotesPanel .quotes-head h2 {
  margin: 0;
  color: var(--cocoa);
  font-size: 22px;
  font-weight: 900;
}
#ordersTabQuotesPanel .quotes-head p {
  margin: 6px 0 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
#ordersTabQuotesPanel .quotes-pill {
  border: 1px solid #f0cfc9;
  border-radius: 999px;
  background: #fff5f2;
  color: #9f3045;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}
#ordersTabQuotesPanel .quote-product-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 92px auto;
  gap: 10px;
  align-items: center;
  margin: 10px 0 12px;
}
#ordersTabQuotesPanel .quote-product-row select,
#ordersTabQuotesPanel .quote-product-row input {
  min-height: 40px;
  border: 1px solid var(--bd);
  border-radius: 12px;
  background: var(--surface2);
  color: var(--cocoa);
  padding: 8px 12px;
  font-size: 12px;
}
#ordersTabQuotesPanel .quote-cart-wrap {
  margin-bottom: 0;
}
#ordersTabQuotesPanel #quotesList .item {
  border-radius: 18px;
  border: 1px solid #ead8d1;
  background: #fffdf9;
}
#ordersTabQuickPanel .quick-sale-pos { border: 1px solid var(--bd); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.panel:has(#quickSalePOS) > h2,
.panel:has(#quickSalePOS) > .form-grid,
.panel:has(#quickSalePOS) > #quickSaleBtn { display: none !important; }
.panel:has(#quickSalePOS) { padding: 0; overflow: hidden; border-radius: 24px; background: #fff7f8; }
.quick-sale-pos { min-height: 620px; }
.qs-phone { position: relative; background: #fff7f8; color: #202024; overflow: hidden; }
.qs-head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 22px 24px 16px;
  background: linear-gradient(135deg, #ca1748, #db2c5d);
  color: #fff;
}
.qs-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.qs-brand span { font-size: 31px; }
.qs-brand strong { font-size: 28px; font-family: Georgia, 'Times New Roman', serif; font-style: italic; white-space: nowrap; }
.qs-fast { font-size: 15px; font-weight: 900; white-space: nowrap; }
.qs-cart { position: relative; width: 54px; height: 54px; border-radius: 14px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #fff; font-size: 25px; cursor: pointer; }
.qs-cart b { position: absolute; top: -8px; right: -7px; min-width: 24px; height: 24px; display: grid; place-items: center; border-radius: 999px; background: #fff; color: #d01e50; font-size: 13px; }
.qs-search-row { display: grid; grid-template-columns: 1fr 54px; gap: 13px; padding: 0 24px 17px; background: linear-gradient(135deg, #ca1748, #db2c5d); }
.qs-search { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 0 18px; color: #777; font-size: 24px; min-height: 58px; }
.qs-search input { width: 100%; border: 0; outline: 0; font-size: 16px; color: #333; }
.qs-scan { border: 0; background: #fff; border-radius: 16px; color: #d01e50; font-size: 23px; cursor: pointer; }
.qs-tabs { display: flex; gap: 10px; overflow-x: auto; padding: 17px 24px 12px; }
.qs-tabs button { border: 1px solid #eee2e5; background: #fff; color: #333; border-radius: 999px; padding: 10px 24px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.qs-tabs button.active { background: #d01e50; color: #fff; border-color: #d01e50; }
.qs-grid { display: grid; grid-template-columns: repeat(3, minmax(130px, 1fr)); gap: 12px; padding: 0 24px 12px; }
.qs-product, .qs-tip {
  min-height: 210px;
  background: #fff;
  border: 1px solid #eee2e5;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 4px 16px rgba(110,37,57,.04);
}
.qs-product { cursor: pointer; display: grid; grid-template-rows: 104px auto auto auto; }
.qs-product img { width: 100%; height: 104px; object-fit: contain; display: block; }
.qs-product strong { font-size: 15px; margin-top: 5px; color: #202024; }
.qs-product span { color: #69666b; font-size: 13px; font-weight: 700; }
.qs-stepper { display: grid; grid-template-columns: 1fr 1fr 1fr; min-height: 40px; border: 1px solid #eee2e5; border-radius: 13px; overflow: hidden; margin-top: 8px; }
.qs-stepper button { border: 0; background: #fff; color: #d01e50; font-size: 24px; font-weight: 900; cursor: pointer; }
.qs-stepper b { display: grid; place-items: center; border-inline: 1px solid #f1e7ea; color: #d01e50; font-size: 22px; }
.qs-tip { border-style: dashed; background: #fff0f3; display: grid; place-items: center; text-align: center; color: #d01e50; }
.qs-tip span { font-size: 34px; }
.qs-tip strong { font-size: 17px; }
.qs-tip p { color: #6e6870; font-size: 14px; line-height: 1.4; max-width: 150px; }
.qs-empty { grid-column: 1 / -1; padding: 28px; text-align: center; color: var(--muted); }
.qs-empty-state {
  min-height: calc(100vh - 220px);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 32px;
  border: 1px dashed #e7c8d1;
  border-radius: 28px;
  background: #fff8f9;
  color: #6e6870;
  text-align: center;
}
.qs-empty-state strong { color: #202024; font-size: 20px; }
.qs-empty-state p { max-width: 420px; line-height: 1.5; }
.qs-summary {
  margin: 0 24px 8px;
  background: #fff;
  border: 1px solid #eee2e5;
  border-radius: 16px;
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  box-shadow: 0 4px 18px rgba(110,37,57,.07);
  overflow: hidden;
}
.qs-summary div { padding: 15px 18px; border-left: 1px solid #f1e1e6; }
.qs-summary div:first-child { border-left: 0; }
.qs-summary span { display: block; color: #202024; font-size: 13px; font-weight: 800; }
.qs-summary strong { display: block; color: #202024; font-size: 20px; margin-top: 3px; }
.qs-summary div:last-child strong { color: #d01e50; font-size: 26px; }
.qs-sell { margin: 0 24px 16px; width: calc(100% - 48px); border: 0; border-radius: 13px; background: #d01e50; color: #fff; min-height: 54px; font-size: 21px; font-weight: 900; cursor: pointer; }
.qs-sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 24px;
  box-shadow: 0 -14px 36px rgba(39,20,27,.16);
  z-index: 5;
}
.qs-sheet-bar { position: absolute; top: 8px; left: 50%; width: 50px; height: 5px; transform: translateX(-50%); border-radius: 999px; background: #d9d3d5; }
.qs-close { position: absolute; top: 16px; right: 20px; border: 0; background: transparent; color: #999; font-size: 28px; cursor: pointer; }
.qs-sheet h3 { margin: 0 0 18px; font-size: 18px; color: #202024; }
.qs-sheet label { display: block; color: #202024; font-size: 13px; font-weight: 800; margin: 12px 0 8px; }
.qs-payments { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.qs-payments button { min-height: 58px; border: 1px solid #eee2e5; border-radius: 10px; background: #fff; font-weight: 800; color: #202024; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 9px; }
.qs-payments button.active { border-color: #d01e50; background: #fff3f6; color: #d01e50; }
.qs-money-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: end; }
.qs-money-row input, .qs-note-input { width: 100%; min-height: 50px; border: 1px solid #eee2e5; border-radius: 10px; padding: 0 14px; font-size: 15px; outline: 0; }
.qs-change { min-height: 78px; background: #edf9f2; border: 1px solid #d8f0e1; border-radius: 10px; padding: 14px 18px; }
.qs-change span { display: block; color: #2d9a66; font-weight: 800; }
.qs-change strong { display: block; color: #1c9a62; font-size: 26px; margin-top: 4px; }
.qs-sheet-actions { display: grid; grid-template-columns: .8fr 1.2fr; gap: 16px; margin-top: 18px; }
.qs-sheet-actions button { min-height: 52px; border-radius: 10px; font-size: 16px; font-weight: 900; cursor: pointer; }
.qs-sheet-actions button:first-child { background: #fff; color: #d01e50; border: 1px solid #eee2e5; }
.qs-sheet-actions button:last-child { background: #d01e50; color: #fff; border: 0; }
@media (max-width: 1050px) {
  #finance > div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
}
@media (max-width: 620px) {
  .qs-head { grid-template-columns: 1fr auto; }
  .qs-fast { display: none; }
  .qs-grid { grid-template-columns: repeat(2, minmax(120px, 1fr)); padding-inline: 14px; }
  .qs-search-row, .qs-tabs { padding-inline: 14px; }
  .qs-summary, .qs-payments, .qs-money-row, .qs-sheet-actions { grid-template-columns: 1fr; }
  .qs-summary { margin-inline: 14px; }
  .qs-sell { margin-inline: 14px; width: calc(100% - 28px); }
}

/* Venda Rapida em tela inteira dentro de Pedidos */
#orders.orders-quick-active {
  gap: 16px;
}
#orders.orders-quick-active .orders-tabs {
  align-self: center;
  margin-bottom: 0;
}
#ordersTabQuickPanel {
  width: 100%;
  max-width: none;
}
#ordersTabQuickPanel .quick-sale-pos {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
#ordersTabQuickPanel .qs-phone {
  min-height: calc(100vh - 150px);
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(208,30,80,.05), transparent 260px),
    #fff8f9;
  border: 1px solid #f2dfe5;
  box-shadow: 0 18px 50px rgba(110,37,57,.10);
}
#ordersTabQuickPanel .qs-head {
  grid-template-columns: minmax(0,1fr) auto auto;
  padding: 28px 34px 20px;
}
#ordersTabQuickPanel .qs-brand strong {
  font-size: 34px;
}
#ordersTabQuickPanel .qs-fast {
  font-size: 18px;
  padding-left: 22px;
  border-left: 1px solid rgba(255,255,255,.34);
}
#ordersTabQuickPanel .qs-search-row {
  padding: 0 34px 24px;
}
#ordersTabQuickPanel .qs-search {
  min-height: 66px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(61,43,31,.10);
}
#ordersTabQuickPanel .qs-scan {
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(61,43,31,.10);
}
#ordersTabQuickPanel .qs-tabs {
  padding: 24px 34px 18px;
}
#ordersTabQuickPanel .qs-tabs button {
  min-height: 42px;
  padding-inline: 26px;
}
#ordersTabQuickPanel .qs-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  padding: 0 34px 22px;
}
#ordersTabQuickPanel .qs-product,
#ordersTabQuickPanel .qs-tip {
  min-height: 260px;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(110,37,57,.075);
}
#ordersTabQuickPanel .qs-product {
  grid-template-rows: 136px auto auto auto;
}
#ordersTabQuickPanel .qs-product img {
  height: 136px;
}
#ordersTabQuickPanel .qs-product strong {
  font-size: 18px;
}
#ordersTabQuickPanel .qs-stepper {
  min-height: 50px;
  border-radius: 16px;
}
#ordersTabQuickPanel .qs-stepper b {
  font-size: 25px;
}
#ordersTabQuickPanel .qs-summary {
  position: sticky;
  bottom: 12px;
  z-index: 4;
  margin: 0 34px 12px;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(110,37,57,.16);
}
#ordersTabQuickPanel .qs-summary div {
  padding: 18px 24px;
}
#ordersTabQuickPanel .qs-sell {
  position: sticky;
  bottom: 0;
  z-index: 4;
  margin: 0 34px 28px;
  width: calc(100% - 68px);
  min-height: 62px;
  border-radius: 18px;
  font-size: 24px;
  box-shadow: 0 14px 30px rgba(208,30,80,.28);
}
#ordersTabQuickPanel .qs-sheet {
  left: 24px;
  right: 24px;
  bottom: 24px;
  border-radius: 28px;
  border: 1px solid #f2dfe5;
}
@media (max-width: 900px) {
  #ordersTabQuickPanel .qs-phone {
    min-height: calc(100vh - 150px);
    border-radius: 20px;
  }
  #ordersTabQuickPanel .qs-head,
  #ordersTabQuickPanel .qs-search-row,
  #ordersTabQuickPanel .qs-tabs,
  #ordersTabQuickPanel .qs-grid {
    padding-left: 18px;
    padding-right: 18px;
  }
  #ordersTabQuickPanel .qs-grid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    gap: 12px;
  }
  #ordersTabQuickPanel .qs-product {
    min-height: 220px;
    grid-template-rows: 108px auto auto auto;
  }
  #ordersTabQuickPanel .qs-product img {
    height: 108px;
  }
  #ordersTabQuickPanel .qs-summary,
  #ordersTabQuickPanel .qs-sell {
    margin-left: 18px;
    margin-right: 18px;
    width: calc(100% - 36px);
  }
}
@media (max-width: 560px) {
  #orders.orders-quick-active .orders-tabs {
    width: 100%;
  }
  #orders.orders-quick-active .orders-tabs button {
    flex: 1;
  }
  #ordersTabQuickPanel .qs-phone {
    margin-left: -4px;
    margin-right: -4px;
    border-radius: 18px;
  }
  #ordersTabQuickPanel .qs-head {
    grid-template-columns: 1fr auto;
    padding-top: 22px;
  }
  #ordersTabQuickPanel .qs-brand strong {
    font-size: 26px;
  }
  #ordersTabQuickPanel .qs-fast {
    display: none;
  }
  #ordersTabQuickPanel .qs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #ordersTabQuickPanel .qs-product,
  #ordersTabQuickPanel .qs-tip {
    padding: 12px;
    min-height: 205px;
  }
  #ordersTabQuickPanel .qs-summary {
    grid-template-columns: 1fr;
  }
  #ordersTabQuickPanel .qs-summary div {
    border-left: 0;
    border-top: 1px solid #f1e1e6;
  }
  #ordersTabQuickPanel .qs-summary div:first-child {
    border-top: 0;
  }
  #ordersTabQuickPanel .qs-sheet {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 20px 16px;
  }
}

/* Producao do dia - referencia operacional */
#production {
  --prod-ink: #341b12;
  --prod-muted: #9f958e;
  --prod-line: #eedfd6;
  --prod-paper: #fffdfb;
  --prod-soft: #fff7f2;
}
#production .production-workspace {
  gap: 14px;
}
#production .panel:first-child {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
#production .prod-page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px 18px;
  margin-bottom: 20px;
}
#production .prod-page-head h2 {
  margin: 0;
  color: var(--prod-ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(28px, 3vw, 37px);
  line-height: 1.05;
  letter-spacing: 0;
}
#production .prod-subtitle {
  grid-column: 1;
  margin: 2px 0 0;
  color: var(--prod-muted);
  font-size: 12px;
  font-weight: 700;
}
#production .prod-actions {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
#production .prod-date-input,
#production .prod-actions .btn {
  min-height: 32px;
  border-radius: 999px;
  border: 1px solid var(--prod-line);
  box-shadow: none;
  font-size: 11px;
  font-weight: 900;
}
#production .prod-date-input {
  min-width: 150px;
  padding: 6px 18px;
  background: #fff;
  color: var(--prod-ink);
  text-align: center;
}
#production .prod-actions .btn-soft {
  background: #f8d3cf;
  border-color: #f8d3cf;
  color: var(--prod-ink);
}
#production .prod-actions .btn-primary {
  background: var(--prod-ink);
  border-color: var(--prod-ink);
  color: #fff;
  text-transform: uppercase;
}
#production .prod-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 28px;
}
#production .prod-filter {
  min-width: 86px;
  min-height: 32px;
  border: 1px solid var(--prod-line);
  border-radius: 999px;
  background: #fff;
  color: #81766f;
  box-shadow: 0 4px 12px rgba(52,27,18,.05);
  font-size: 11px;
  font-weight: 900;
}
#production .prod-filter.active {
  background: var(--prod-ink);
  border-color: var(--prod-ink);
  color: #fff;
}
#production .prod-filter:nth-child(6) {
  background: #fff1f5;
  color: #d94377;
}
#production .prod-filter:nth-child(6).active {
  background: #d94377;
  border-color: #d94377;
  color: #fff;
}
#production .prod-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr)) minmax(260px, 1.9fr);
  gap: 14px;
  align-items: stretch;
}
#production .prod-metric,
#production .prod-progress-card {
  min-height: 152px;
  border-radius: 16px;
}
#production .prod-metric {
  background: #fff;
  border: 1px solid var(--prod-line);
  box-shadow: 0 8px 24px rgba(52,27,18,.06);
  padding: 22px 20px;
}
#production .prod-metric.gold {
  border-left: 4px solid #d2a84b;
}
#production .prod-metric span {
  display: block;
  margin-bottom: 16px;
  color: #b5aca5;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
#production .prod-metric.warn span { color: #c8971d; }
#production .prod-metric.blue span { color: #1f75ea; }
#production .prod-metric.green span { color: #1d9d55; }
#production .prod-metric.gold span { color: #ad8135; }
#production .prod-metric strong {
  color: var(--prod-ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 27px;
  font-weight: 700;
}
#production .prod-progress-card {
  background: var(--prod-ink);
  color: #fff;
  box-shadow: 0 10px 28px rgba(52,27,18,.22);
  padding: 23px;
}
#production .prod-progress-card > span {
  display: block;
  margin-bottom: 18px;
  color: rgba(255,255,255,.42);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
#production .prod-progress-card > div:first-of-type {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}
#production .prod-progress-card strong {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 32px;
  line-height: 1;
}
#production .prod-progress-card small {
  color: rgba(255,255,255,.6);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
#production .prod-progress-card .prod-progress {
  height: 6px;
  margin: 9px 0 14px;
  border: 0;
  background: rgba(255,255,255,.18);
}
#production .prod-progress-card .prod-progress i {
  background: #8c7369;
}
#production .prod-progress-card p {
  color: rgba(255,255,255,.55);
  font-size: 11px;
  font-weight: 800;
}
#production .prod-progress-wrap {
  display: none;
}
#production #productionList {
  min-height: 270px;
}
#production .prod-empty {
  min-height: 268px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 34px 22px;
  background: #fff;
  border: 1px solid #f0d8cb;
  border-radius: 20px;
  box-shadow: none;
  text-align: center;
}
#production .prod-empty-illo {
  width: 72px;
  height: 72px;
  margin: 0 0 10px;
  border-radius: 50%;
  background: #fff9f5;
  border: 1px solid #efd9cf;
  color: #d7aaa0;
  display: grid;
  place-items: center;
  letter-spacing: 4px;
}
#production .prod-empty h3 {
  margin: 0;
  color: #714126;
  font-size: 20px;
  font-weight: 900;
}
#production .prod-empty p {
  margin: 0 0 8px;
  color: #9f958e;
  font-size: 13px;
}
#production .prod-empty .btn {
  min-height: 32px;
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--prod-ink);
  border-color: var(--prod-ink);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
#production .prod-main-grid {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
}
@media (max-width: 1180px) {
  #production .prod-summary-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }
  #production .prod-progress-card {
    grid-column: span 2;
  }
  #production .prod-main-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  #production .prod-page-head {
    grid-template-columns: 1fr;
  }
  #production .prod-actions {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
  }
  #production .prod-date-input {
    flex: 1;
  }
  #production .prod-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #production .prod-progress-card {
    grid-column: 1 / -1;
  }
}
@media (max-width: 520px) {
  #production .prod-summary-grid,
  #production .prod-board,
  #production .prod-side-panel {
    grid-template-columns: 1fr;
  }
  #production .prod-actions .btn,
  #production .prod-date-input {
    flex: 1 1 130px;
  }
}

/* Layout importado de layout/: Produtos > Receita por medida */
#productsTab-receita .recipe-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-color: #F0D9DF;
  background:
    linear-gradient(180deg, rgba(255, 248, 242, .92), rgba(255, 253, 251, .98)),
    var(--white);
}
#productsTab-receita .recipe-calculator-head {
  padding: 14px 16px;
  border: 1px solid #F0D9DF;
  border-radius: 14px;
  background: linear-gradient(135deg, #FFF8F2 0%, #FFF1F6 100%);
}
#productsTab-receita .recipe-title-wrap {
  display: grid;
  gap: 3px;
}
#productsTab-receita .recipe-title-wrap h2 {
  font-size: 18px;
  line-height: 1.2;
}
#productsTab-receita .recipe-title-wrap p {
  max-width: 620px;
  line-height: 1.45;
}
#productsTab-receita .recipe-help {
  margin: -2px 0 0;
  padding: 14px 16px;
  border-color: #F1D9DE;
  border-radius: 14px;
  background: #FFFDFB;
  box-shadow: 0 8px 24px rgba(83, 54, 42, .06);
}
#productsTab-receita .recipe-entry-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(130px, .9fr) minmax(130px, .9fr) minmax(96px, .65fr) minmax(120px, .85fr) minmax(96px, .65fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 0 !important;
  padding: 14px;
  border: 1px solid #EEDCE1;
  border-radius: 15px;
  background: #FFFDFB;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72), 0 8px 22px rgba(83, 54, 42, .05);
}
#productsTab-receita .recipe-entry-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
#productsTab-receita .recipe-entry-grid span {
  color: #8F6670;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .01em;
}
#productsTab-receita .recipe-entry-grid input,
#productsTab-receita .recipe-entry-grid select {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #EADCE0;
  border-radius: 11px;
  background: #FFFCFA;
  color: var(--cocoa);
  font-size: 12px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
#productsTab-receita .recipe-entry-grid select {
  cursor: pointer;
}
#productsTab-receita .recipe-entry-grid input:focus,
#productsTab-receita .recipe-entry-grid select:focus {
  border-color: var(--rose);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(196, 115, 122, .12);
  outline: none;
}
#productsTab-receita .recipe-entry-actions {
  display: flex;
  justify-content: flex-end;
  align-items: end;
  gap: 6px;
  flex-wrap: wrap;
}
#productsTab-receita .recipe-entry-actions .btn {
  min-height: 42px;
  padding-inline: 15px;
  white-space: nowrap;
}
#productsTab-receita .recipe-entry-actions #recipeAddBtn {
  border-color: transparent;
  background: var(--rose);
  color: #fff;
  box-shadow: 0 8px 18px rgba(196, 115, 122, .2);
}
#productsTab-receita .recipe-secondary-actions {
  justify-content: flex-end;
  margin: -4px 0 0 !important;
}
#recipeList {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}
#recipeList .item {
  align-items: flex-start;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid #EEDCE1;
  border-radius: 14px;
  background: #FFFDFB;
  box-shadow: 0 8px 18px rgba(83, 54, 42, .05);
}
#recipeList .item .nm {
  color: var(--choco);
  font-size: 13px;
  font-weight: 800;
}
#recipeList .item .sub {
  max-width: 920px;
  margin-top: 5px;
  color: #8A6C61;
  font-size: 11px;
  line-height: 1.55;
}
#recipeList .item .ra {
  gap: 7px;
  align-items: flex-end;
}
#recipeList .item .badge.g {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  box-shadow: 0 6px 14px rgba(69, 147, 99, .12);
}
#productsTab-receita .recipe-measure-alert {
  margin-top: 8px;
  padding: 7px 9px;
  border-radius: 10px;
  line-height: 1.35;
}
#productsTab-receita .recipe-total-card {
  position: relative;
  overflow: hidden;
  margin-top: 2px;
  padding: 16px;
  border-color: #EFCFD8;
  border-radius: 16px;
  background: linear-gradient(135deg, #FFF7F1 0%, #FFEAF1 100%);
  box-shadow: 0 10px 26px rgba(196, 115, 122, .11);
}
#productsTab-receita .recipe-total-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--rose), #E8A4B0);
}
#productsTab-receita #recipeTotal {
  font-size: 17px !important;
  letter-spacing: .01em;
}
#productsTab-receita #recipeConversionHint {
  margin-top: 4px !important;
  font-size: 11px !important;
  line-height: 1.45;
}
#productsTab-receita .recipe-total-actions {
  justify-content: flex-end;
}
#productsTab-receita .recipe-history-section {
  display: grid;
  gap: 9px;
  margin-top: 0 !important;
  padding: 14px;
  border: 1px solid #EEDCE1;
  border-radius: 15px;
  background: rgba(255, 248, 242, .72);
}
#productsTab-receita .recipe-history-head {
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 0 !important;
}
#productsTab-receita .recipe-history-head h3 {
  font-size: 13px !important;
}
#productsTab-receita .recipe-history-item {
  margin-bottom: 8px;
  padding: 12px 13px;
  border-color: #EEDCE1;
  border-radius: 13px;
  background: #FFFDFB;
  box-shadow: 0 6px 16px rgba(83, 54, 42, .045);
}
#productsTab-receita .recipe-history-title {
  color: var(--choco);
  font-size: 13px;
  font-weight: 800;
}
#productsTab-receita .recipe-history-sub {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  #productsTab-receita .recipe-entry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #productsTab-receita .recipe-entry-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  #productsTab-receita .recipe-panel {
    padding: 14px;
  }
  #productsTab-receita .recipe-calculator-head {
    padding: 13px;
  }
  #productsTab-receita .recipe-entry-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  #productsTab-receita .recipe-entry-actions .btn,
  #productsTab-receita .recipe-secondary-actions .btn,
  #productsTab-receita .recipe-total-actions .btn,
  #productsTab-receita .recipe-history-head .btn {
    width: 100%;
  }
  #productsTab-receita .recipe-secondary-actions,
  #productsTab-receita .recipe-total-actions {
    justify-content: stretch;
  }
  #productsTab-receita .recipe-total-card {
    align-items: stretch;
  }
  #recipeList .item,
  #productsTab-receita .recipe-history-item > div {
    align-items: stretch !important;
    flex-direction: column;
  }
  #recipeList .item .ra,
  #productsTab-receita .recipe-history-item > div > div:last-child {
    width: 100%;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center !important;
  }

  .product-choice-grid.two,
  .product-cost-source-grid,
  .product-manual-cost-grid .recipe-sheet-entry {
    grid-template-columns: 1fr;
  }
}

/* Lovable reference: Produtos */
#products {
  gap: 24px;
  color: #3b2119;
}
#products::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 215, 220, .56), transparent 32%),
    radial-gradient(circle at 88% 14%, rgba(255, 232, 170, .54), transparent 34%),
    linear-gradient(180deg, #fffaf7 0%, #fff7f0 52%, #fffdf9 100%);
}
#products .products-hero {
  display: grid;
  gap: 8px;
  padding: 10px 0 0;
}
#products .products-kicker {
  margin: 0;
  color: #6f4e45;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .34em;
  text-transform: uppercase;
}
#products .products-hero h1 {
  margin: 8px 0 0;
  color: #3b2119;
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
  letter-spacing: 0;
}
#products .products-hero p:last-child {
  margin: 0;
  max-width: 620px;
  color: #755c55;
  font-size: 15px;
  line-height: 1.5;
}
#products .products-tabs {
  align-self: flex-start;
  gap: 10px;
  padding: 0;
  margin: 0 0 4px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
#products .products-tab {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(174, 125, 112, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  color: #54362d;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(73, 41, 30, .06);
}
#products .products-tab:hover {
  border-color: rgba(174, 53, 82, .36);
  transform: translateY(-1px);
}
#products .products-tab.active {
  border-color: #ad294a;
  background: linear-gradient(135deg, #ad294a, #c33a61);
  color: #fff;
  box-shadow: 0 12px 24px rgba(173, 41, 74, .22);
}
#products .products-tab-panel {
  display: grid;
  gap: 24px;
}
#products .products-tab-panel.hidden {
  display: none;
}
#products .panel,
#productsTab-receita .recipe-panel {
  border: 1px solid rgba(223, 189, 178, .72);
  border-radius: 24px;
  background: rgba(255, 253, 249, .92);
  box-shadow: 0 18px 46px rgba(63, 32, 18, .08);
}
#products .panel {
  padding: 28px 30px;
}
#products .panel h2,
#products .panel-head h2,
#productsTab-receita .recipe-title-wrap h2 {
  color: #3b2119;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
}
#products .panel > p,
#productsTab-receita .recipe-title-wrap p {
  color: #6f5b54 !important;
  font-size: 14px !important;
}
#products .form-grid,
#products .form-grid.c2,
#products .form-grid.c4 {
  gap: 12px;
}
#products .form-grid input,
#products .form-grid select,
#products .search-input,
#products #menuPublicLink,
#productsTab-receita .recipe-entry-grid input,
#productsTab-receita .recipe-entry-grid select {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #ead8d1;
  border-radius: 16px;
  background: rgba(255, 248, 242, .8);
  color: #4f372f;
  font-size: 13px;
  line-height: 1.2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 4px 12px rgba(63, 32, 18, .04);
}
#products .form-grid select,
#productsTab-receita .recipe-entry-grid select {
  padding-right: 34px;
}
#products .form-grid input::placeholder,
#products .search-input::placeholder,
#productsTab-receita .recipe-entry-grid input::placeholder {
  color: #8f7770;
  opacity: .9;
}
#products .form-grid input:focus,
#products .form-grid select:focus,
#products .search-input:focus,
#productsTab-receita .recipe-entry-grid input:focus,
#productsTab-receita .recipe-entry-grid select:focus {
  border-color: rgba(173, 41, 74, .54);
  background: #fffdfb;
  box-shadow: 0 0 0 4px rgba(173, 41, 74, .11);
  outline: none;
}
#products .btn {
  min-height: 40px;
  border-radius: 999px;
  font-weight: 900;
}
#products .btn-primary,
#products #productBtn {
  border-color: #ad294a;
  background: linear-gradient(135deg, #ad294a, #c33a61);
  color: #fff;
  box-shadow: 0 12px 22px rgba(173, 41, 74, .2);
}
#products .btn-soft {
  border-color: #efd7d2;
  background: #fff5f2;
  color: #7c3444;
}
#products .summary-box,
#products .stock-link-box,
#products #psSuggestion {
  border-color: #ead8d1;
  border-radius: 18px;
  background: #fffaf6;
}
#products .panel-head {
  align-items: center;
  gap: 16px;
}
#products .list .item,
#products .recipe-history-item {
  border-color: #ead8d1;
  border-radius: 18px;
  background: #fffdf9;
  box-shadow: 0 10px 26px rgba(63, 32, 18, .045);
}
#productsTab-receita .recipe-panel {
  gap: 22px;
  padding: 28px 30px;
  background: rgba(255, 253, 249, .94);
}
#productsTab-receita .recipe-calculator-head {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
#productsTab-receita .recipe-calculator-head::before {
  content: '▦';
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 999px;
  background: #fff1f4;
  color: #ad294a;
  font-size: 18px;
}
#productsTab-receita .recipe-calculator-head .recipe-title-wrap {
  flex: 1 1 420px;
}
#productsTab-receita .recipe-entry-grid {
  grid-template-columns: minmax(180px, 1.35fr) minmax(130px, .85fr) minmax(130px, .88fr) 92px minmax(130px, .88fr) 92px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: #fff8f2;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.72);
}
#productsTab-receita .recipe-entry-grid label {
  gap: 0;
}
#productsTab-receita .recipe-entry-grid label span {
  display: none;
}
#productsTab-receita .recipe-secondary-actions {
  justify-content: flex-end;
  gap: 10px;
}
#productsTab-receita .recipe-secondary-actions #recipeAddBtn {
  border-color: #efd7d2;
  background: #fff5f2;
  color: #7c3444;
  box-shadow: 0 10px 20px rgba(173, 41, 74, .08);
}
#productsTab-receita .recipe-total-card {
  min-height: 138px;
  padding: 28px 30px;
  border-radius: 24px;
  background: rgba(255, 253, 249, .94);
  box-shadow: 0 18px 46px rgba(63, 32, 18, .08);
}
#productsTab-receita .recipe-total-card::before {
  display: none;
}
#productsTab-receita #recipeTotal {
  display: block;
  color: #ad294a !important;
  font-size: clamp(36px, 5vw, 48px) !important;
  line-height: .95;
}
#productsTab-receita #recipeTotal::before {
  content: 'CUSTO TOTAL';
  display: block;
  margin-bottom: 8px;
  color: #7f625a;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
}
#productsTab-receita #recipeConversionHint {
  color: #7c6861 !important;
  font-size: 12px !important;
}
#productsTab-receita .recipe-total-actions .btn:last-child {
  border-color: #ad294a;
  background: linear-gradient(135deg, #ad294a, #c33a61);
  color: #fff;
}
#productsTab-receita .recipe-history-section {
  border: 0;
  border-radius: 24px;
  background: rgba(255, 253, 249, .9);
  box-shadow: 0 18px 46px rgba(63, 32, 18, .07);
}
#productsTab-embalagem .recipe-panel > div:first-child {
  padding: 0;
  border: 0;
  background: transparent;
}

@media (max-width: 1100px) {
  #productsTab-receita .recipe-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #productsTab-receita .recipe-entry-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  #products {
    gap: 18px;
  }
  #products .products-hero h1 {
    font-size: 34px;
  }
  #products .products-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  #products .panel,
  #productsTab-receita .recipe-panel,
  #productsTab-receita .recipe-total-card {
    padding: 18px;
    border-radius: 20px;
  }
  #productsTab-receita .recipe-entry-grid {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  #productsTab-receita .recipe-secondary-actions,
  #productsTab-receita .recipe-total-actions {
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr;
  }
  #productsTab-receita #recipeTotal {
    font-size: 36px !important;
  }
}

/* Lovable reference: Estoque */
#stock {
  gap: 24px;
  color: #3b2119;
}
#stock::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 9% 10%, rgba(255, 215, 220, .52), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(255, 232, 170, .50), transparent 32%),
    linear-gradient(180deg, #fffaf7 0%, #fff7f0 52%, #fffdf9 100%);
}
#stock .stock-hero {
  display: grid;
  gap: 8px;
  padding: 10px 0 0;
}
#stock .stock-kicker {
  margin: 0;
  color: #6f4e45;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .32em;
  text-transform: uppercase;
}
#stock .stock-hero h1 {
  margin: 8px 0 0;
  color: #3b2119;
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
  letter-spacing: 0;
}
#stock .stock-hero p:last-child {
  margin: 0;
  max-width: 660px;
  color: #755c55;
  font-size: 15px;
  line-height: 1.5;
}
#stock .stock-panel {
  display: grid;
  gap: 18px;
  padding: 28px 30px;
  border: 1px solid rgba(223, 189, 178, .72);
  border-radius: 24px;
  background: rgba(255, 253, 249, .92);
  box-shadow: 0 18px 46px rgba(63, 32, 18, .08);
}
#stock .stock-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
#stock .stock-panel-head::before {
  content: '';
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 999px;
  background:
    linear-gradient(#ad294a 0 0) 12px 13px / 16px 2px no-repeat,
    linear-gradient(#ad294a 0 0) 12px 19px / 16px 2px no-repeat,
    linear-gradient(#ad294a 0 0) 12px 25px / 16px 2px no-repeat,
    #fff1f4;
}
#stock .stock-panel-head > div {
  flex: 1 1 auto;
}
#stock .stock-panel-head h2 {
  margin: 0;
  color: #3b2119;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
}
#stock .stock-panel-head p {
  margin: 6px 0 0;
  color: #6f5b54;
  font-size: 14px;
  line-height: 1.45;
}
#stock .stock-summary-grid {
  gap: 12px;
  margin-bottom: 0 !important;
}
#stock .stock-summary-grid .metric {
  min-height: 104px;
  border: 1px solid #ead8d1;
  border-radius: 20px;
  background: #fffaf6;
  box-shadow: 0 10px 24px rgba(63, 32, 18, .05);
}
#stock .stock-summary-grid .metric span {
  color: #856a62;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}
#stock .stock-summary-grid .metric strong {
  color: #ad294a;
  font-family: var(--font-display);
  font-size: 34px;
}
#stock .form-grid,
#stock .form-grid.c1,
#stock .form-grid.c4 {
  gap: 12px;
}
#stock .form-grid input,
#stock .form-grid select {
  min-height: 48px;
  width: 100%;
  padding: 0 16px;
  border: 1px solid #ead8d1;
  border-radius: 16px;
  background: rgba(255, 248, 242, .8);
  color: #4f372f;
  font-size: 13px;
  line-height: 1.2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 4px 12px rgba(63, 32, 18, .04);
}
#stock .form-grid select {
  padding-right: 34px;
}
#stock .form-grid input::placeholder {
  color: #8f7770;
  opacity: .9;
}
#stock .form-grid input:focus,
#stock .form-grid select:focus {
  border-color: rgba(173, 41, 74, .54);
  background: #fffdfb;
  box-shadow: 0 0 0 4px rgba(173, 41, 74, .11);
  outline: none;
}
#stock .action-row {
  justify-content: flex-end;
  gap: 10px;
}
#stock .btn {
  min-height: 40px;
  border-radius: 999px;
  font-weight: 900;
}
#stock #stockBtn {
  border-color: #ad294a;
  background: linear-gradient(135deg, #ad294a, #c33a61);
  color: #fff;
  box-shadow: 0 12px 22px rgba(173, 41, 74, .2);
}
#stock .btn-soft {
  border-color: #efd7d2;
  background: #fff5f2;
  color: #7c3444;
}
#stock .stock-help {
  margin: 0;
  padding: 12px 16px;
  border: 1px solid #ead8d1;
  border-radius: 18px;
  background: #fffaf6;
  color: #7c6861;
  font-size: 12px;
  line-height: 1.45;
}
#stock #stockList {
  display: grid;
  gap: 10px;
  margin-top: 2px !important;
}
#stock #stockList .item {
  align-items: flex-start;
  gap: 14px;
  padding: 15px 16px;
  border: 1px solid #ead8d1;
  border-radius: 18px;
  background: #fffdf9;
  box-shadow: 0 10px 26px rgba(63, 32, 18, .045);
}
#stock #stockList .item.alert {
  border-color: rgba(173, 41, 74, .34);
  background: #fff8f8;
}
#stock #stockList .nm {
  color: #3b2119;
  font-size: 14px;
  font-weight: 900;
}
#stock #stockList .sub {
  margin-top: 5px;
  color: #7c6861;
  font-size: 12px;
  line-height: 1.45;
}
#stock #stockList .ra {
  gap: 7px;
  align-items: center;
  justify-content: flex-end;
}
#stock #stockList .badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
}
#stock #stockList .icon-btn {
  min-height: 32px;
  border-radius: 999px;
  padding: 6px 11px;
  background: #fff5f2;
  color: #7c3444;
}
#stock #stockList .icon-btn.d {
  color: #b3263f;
}

@media (max-width: 900px) {
  #stock .stock-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  #ordersTabQuotesPanel .quotes-head {
    flex-direction: column;
  }
  #ordersTabQuotesPanel .quote-product-row {
    grid-template-columns: 1fr;
  }
  #stock {
    gap: 18px;
  }
  #stock .stock-panel {
    padding: 18px;
    border-radius: 20px;
  }
  #stock .stock-hero h1 {
    font-size: 34px;
  }
  #stock .stock-panel-head {
    flex-direction: column;
  }
  #stock .stock-summary-grid {
    grid-template-columns: 1fr;
  }
  #stock .action-row {
    display: grid;
    grid-template-columns: 1fr;
  }
  #stock #stockList .item {
    flex-direction: column;
  }
  #stock #stockList .ra {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Lovable reference: Agenda */
#agenda.agenda-page {
  gap: 18px;
  color: #32170f;
}

#agenda .agenda-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 150px;
  padding: 26px 30px;
  border: 1px solid #f1d4ca;
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 18%, rgba(216, 143, 151, .34), transparent 26%),
    linear-gradient(135deg, #fff8f3 0%, #fff 44%, #f8ded9 100%);
  box-shadow: 0 18px 45px rgba(74, 36, 22, .08);
}

#agenda .agenda-hero::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: -34px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 28px solid rgba(196, 115, 122, .16);
}

#agenda .agenda-kicker,
#agenda .agenda-section-label {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  color: #c13f61;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

#agenda .agenda-hero h1 {
  position: relative;
  z-index: 1;
  margin: 4px 0 6px;
  color: #2a0f08;
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1;
}

#agenda .agenda-hero p {
  position: relative;
  z-index: 1;
  max-width: 560px;
  color: #7c6861;
  font-size: 13px;
  line-height: 1.55;
}

#agenda .gcal-panel,
#agenda .gcal-connect-banner,
#agenda .agenda-shell {
  border: 1px solid #efcfc6;
  border-radius: 22px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 12px 35px rgba(74, 36, 22, .07);
}

#agenda .gcal-panel,
#agenda .gcal-connect-banner {
  padding: 16px 18px;
}

#agenda .gcal-panel-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

#agenda .gcal-panel-head,
#agenda .gcal-connect-banner,
#agenda .gcal-actions {
  gap: 10px;
  flex-wrap: wrap;
}

#agenda .gcal-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #f7e4df;
  color: #ad3752;
  font-weight: 900;
}

#agenda .agenda-shell {
  padding: 20px;
}

#agenda .agenda-toolbar,
#agenda .agenda-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

#agenda .agenda-toolbar {
  padding: 4px 2px 16px;
  border-bottom: 1px solid #f0d7ce;
  margin-bottom: 16px;
}

#agenda .agenda-toolbar h2,
#agenda .agenda-card-head h2 {
  margin: 2px 0 0;
  color: #35160b;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.1;
}

#agenda .agenda-toolbar p {
  margin-top: 5px;
  color: #806e67;
  font-size: 12px;
}

#agenda .agenda-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#agenda .agenda-month-input {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #e8c7bd;
  border-radius: 999px;
  background: #fff;
  color: #35160b;
  font-size: 12px;
  font-weight: 800;
}

#agenda .agenda-calendar-grid {
  gap: 8px;
  margin-bottom: 18px;
}

#agenda .agenda-calendar-grid .cal-head {
  padding: 7px 0;
  color: #a58c82;
  font-size: 10px;
  font-weight: 900;
}

#agenda .agenda-calendar-grid .cal-cell {
  min-height: 92px;
  height: auto;
  border-color: #efd8d0;
  border-radius: 16px;
  background: #fffaf7;
  padding: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

#agenda .agenda-calendar-grid .cal-cell:hover {
  border-color: #d98b99;
  box-shadow: 0 10px 22px rgba(74, 36, 22, .08);
  transform: translateY(-1px);
}

#agenda .agenda-calendar-grid .cal-cell.today {
  background: linear-gradient(180deg, #fff7f7, #fff);
  border-color: #c94b68;
}

#agenda .agenda-calendar-grid .cal-cell strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #38170d;
  font-size: 11px;
  font-weight: 900;
}

#agenda .agenda-calendar-grid .cal-cell.today strong {
  background: #c94b68;
  color: #fff;
}

#agenda .agenda-calendar-grid .cal-cell .ev {
  min-height: 22px;
  border: 1px solid #f1d6dc;
  border-radius: 999px;
  background: #fff;
  color: #b13b58;
  font-size: 9px;
  line-height: 17px;
}

#agenda .agenda-secondary-grid {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
  gap: 14px;
  align-items: start;
}

#agenda .agenda-delivery-panel,
#agenda .agenda-orders-panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid #efd8d0;
  border-radius: 18px;
  background: #fffdfa;
}

#agenda #deliveryMapList,
#agenda #agendaList {
  margin-top: 12px;
}

#agenda #deliveryMapList .item,
#agenda #agendaList .item {
  border: 1px solid #f0d7ce;
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}

#agenda #agendaList.timeline .item {
  border-left: 4px solid #d98b99;
}

@media (max-width: 980px) {
  #agenda .agenda-secondary-grid {
    grid-template-columns: 1fr;
  }

  #agenda .agenda-calendar-grid .cal-cell {
    min-height: 78px;
    padding: 8px;
  }
}

@media (max-width: 760px) {
  #agenda.agenda-page {
    gap: 14px;
  }

  #agenda .agenda-hero {
    min-height: 132px;
    padding: 22px;
    border-radius: 20px;
  }

  #agenda .agenda-hero h1 {
    font-size: 34px;
  }

  #agenda .agenda-toolbar,
  #agenda .agenda-card-head,
  #agenda .gcal-panel-head,
  #agenda .gcal-connect-banner {
    align-items: stretch;
    flex-direction: column;
  }

  #agenda .agenda-toolbar-actions,
  #agenda .gcal-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  #agenda .agenda-month-input,
  #agenda .agenda-toolbar-actions .btn,
  #agenda .gcal-actions .btn,
  #agenda .gcal-connect-banner .btn,
  #agenda .gcal-panel-head .btn {
    width: 100%;
  }

  #agenda .agenda-shell {
    padding: 14px;
    border-radius: 18px;
  }

  #agenda .agenda-calendar-grid {
    gap: 5px;
  }

  #agenda .agenda-calendar-grid .cal-cell {
    min-height: 68px;
    border-radius: 12px;
    padding: 6px;
  }

  #agenda .agenda-calendar-grid .cal-cell .ev {
    padding: 1px 5px;
    font-size: 8px;
  }
}

@media (max-width: 520px) {
  #agenda .agenda-calendar-grid {
    grid-template-columns: repeat(7, minmax(38px, 1fr));
    overflow-x: auto;
    padding-bottom: 6px;
  }

  #agenda .agenda-calendar-grid .cal-cell {
    min-width: 38px;
    min-height: 58px;
  }

  #agenda .agenda-calendar-grid .cal-cell strong {
    width: 21px;
    height: 21px;
    font-size: 10px;
  }
}

/* Lovable reference: Agenda v2 */
#agenda.agenda-page {
  max-width: 1180px;
  margin: 0 auto;
  gap: 22px;
  color: #2b130b;
}

#agenda .agenda-hero {
  min-height: auto;
  padding: 8px 0 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#agenda .agenda-hero::after {
  display: none;
}

#agenda .agenda-hero h1 {
  margin: 2px 0 3px;
  font-size: 42px;
  letter-spacing: 0;
}

#agenda .agenda-hero p {
  max-width: none;
  color: #76675f;
  font-size: 13px;
}

#agenda .agenda-new-order {
  min-height: 40px;
  padding: 0 24px;
  border-radius: 999px;
  background: #c94b55;
  box-shadow: 0 8px 18px rgba(201, 75, 85, .22);
}

#agenda .gcal-panel,
#agenda .gcal-connect-banner,
#agenda .agenda-shell,
#agenda .agenda-day-panel,
#agenda .agenda-map-panel,
#agenda .agenda-orders-panel,
#agenda .agenda-metric-card {
  border: 1px solid #eadfd7;
  border-radius: 20px;
  background: #fffdfa;
  box-shadow: 0 8px 22px rgba(54, 27, 16, .06);
}

#agenda .gcal-panel,
#agenda .gcal-connect-banner {
  padding: 18px 20px;
}

#agenda .gcal-sync-message {
  margin-top: 12px;
  border: 1px solid #bdded2;
  border-radius: 14px;
  background: #ecfaf5;
  color: #2c775f;
  padding: 11px 13px;
}

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

#agenda .agenda-metric-card {
  position: relative;
  min-height: 104px;
  padding: 22px 20px;
}

#agenda .agenda-metric-card span {
  display: block;
  color: #9b8277;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

#agenda .agenda-metric-card strong {
  display: block;
  margin-top: 18px;
  color: #2b130b;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
}

#agenda .agenda-metric-card i {
  position: absolute;
  top: 20px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  border-radius: 10px;
  background: #dff4ea;
  color: #438b72;
  font-style: normal;
  font-size: 12px;
}

#agenda .agenda-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.8fr) minmax(260px, .95fr);
  gap: 22px;
  align-items: stretch;
}

#agenda .agenda-shell,
#agenda .agenda-day-panel,
#agenda .agenda-map-panel,
#agenda .agenda-orders-panel {
  padding: 20px;
}

#agenda .agenda-toolbar {
  align-items: flex-start;
  margin-bottom: 18px;
  padding: 0;
  border-bottom: 0;
}

#agenda .agenda-toolbar h2,
#agenda .agenda-card-head h2 {
  margin: 0;
  color: #2b130b;
  font-size: 24px;
}

#agenda .agenda-card-head p,
#agenda .agenda-toolbar p {
  margin-top: 3px;
  color: #8a776e;
  font-size: 12px;
}

#agenda .agenda-legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

#agenda .agenda-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #76675f;
  font-size: 10px;
  font-weight: 800;
}

#agenda .legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5abf9a;
}

#agenda .legend-dot.aniversario {
  background: #e2a25b;
}

#agenda .legend-dot.entrega {
  background: #d46572;
}

#agenda .agenda-calendar-grid {
  gap: 8px;
  margin: 0;
}

#agenda .agenda-calendar-grid .cal-head {
  padding: 8px 0;
  color: #88756b;
  font-size: 10px;
  letter-spacing: .08em;
}

#agenda .agenda-calendar-grid .cal-cell {
  min-height: 104px;
  border-color: #ebded5;
  border-radius: 14px;
  background: #fff7ef;
  padding: 10px;
  cursor: pointer;
}

#agenda .agenda-calendar-grid .cal-cell.dim {
  opacity: .35;
  cursor: default;
}

#agenda .agenda-calendar-grid .cal-cell.today,
#agenda .agenda-calendar-grid .cal-cell.selected {
  border: 2px solid #d46572;
  background: #fff4f2;
  box-shadow: 0 8px 20px rgba(212, 101, 114, .14);
}

#agenda .agenda-calendar-grid .cal-cell strong {
  justify-content: flex-start;
  width: auto;
  height: auto;
  background: transparent;
  color: #3a2015;
  font-size: 12px;
}

#agenda .agenda-calendar-grid .cal-cell.selected strong {
  display: inline-flex;
  justify-content: center;
  width: 23px;
  height: 23px;
  border-radius: 999px;
  background: #d46572;
  color: #fff;
}

#agenda .agenda-calendar-grid .cal-cell .ev {
  min-height: 19px;
  border: 1px solid rgba(77, 148, 119, .22);
  border-radius: 999px;
  background: #dff4ea;
  color: #356f5b;
  font-size: 9px;
  line-height: 14px;
}

#agenda .agenda-calendar-grid .cal-cell .ev.delivery {
  border-color: rgba(212, 101, 114, .25);
  background: #ffe6e5;
  color: #9f3d47;
}

#agenda .agenda-day-panel {
  min-height: 100%;
}

#agenda .agenda-day-date {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

#agenda .agenda-day-date span {
  color: #8a776e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

#agenda .agenda-day-date strong {
  color: #2b130b;
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
}

#agenda .agenda-day-date b {
  margin-left: 4px;
  color: #2b130b;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
}

#agenda .agenda-day-item {
  align-items: center;
  border-color: #eadfd7;
  border-radius: 14px;
  background: #fff7ef;
  cursor: pointer;
}

#agenda .agenda-day-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #dff4ea;
  color: #3d8069;
  font-size: 11px;
  font-weight: 900;
}

#agenda .agenda-map-panel {
  overflow: hidden;
  padding: 0;
}

#agenda .agenda-map-panel .agenda-card-head {
  padding: 20px;
}

#agenda .agenda-route-art {
  position: relative;
  height: 180px;
  overflow: hidden;
  border-top: 1px solid #eadfd7;
  border-bottom: 1px solid #eadfd7;
  background:
    radial-gradient(circle at 26% 45%, rgba(255, 190, 184, .55), transparent 30%),
    radial-gradient(circle at 74% 35%, rgba(207, 245, 233, .9), transparent 34%),
    linear-gradient(90deg, #fff0ee, #f0fbf7);
}

#agenda .agenda-route-art::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 52%;
  height: 60px;
  border-top: 3px dashed #d46572;
  border-radius: 50% 50% 0 0;
  transform: rotate(-4deg);
}

#agenda .route-pin {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 4px solid #fff;
  border-radius: 999px;
  background: #c94b55;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(83, 35, 26, .16);
}

#agenda .route-pin.p1 { left: 9%; top: 67%; }
#agenda .route-pin.p2 { left: 37%; top: 38%; }
#agenda .route-pin.p3 { left: 61%; top: 55%; }
#agenda .route-pin.p4 { right: 10%; top: 26%; }

#agenda .agenda-map-panel #deliveryMapList {
  padding: 16px 20px 20px;
  margin: 0;
}

#agenda .agenda-orders-panel .agenda-card-head {
  margin-bottom: 12px;
}

#agenda .agenda-order-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  border: 0;
  border-top: 1px solid #eadfd7;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#agenda .agenda-order-row:first-child {
  border-top: 0;
}

#agenda .agenda-order-row strong {
  color: #2b130b;
  font-family: var(--font-display);
  font-size: 17px;
}

@media (max-width: 980px) {
  #agenda .agenda-main-grid {
    grid-template-columns: 1fr;
  }

  #agenda .agenda-metric-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  #agenda .agenda-hero,
  #agenda .agenda-card-head,
  #agenda .agenda-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  #agenda .agenda-new-order {
    width: 100%;
  }

  #agenda .agenda-calendar-grid {
    overflow-x: auto;
    grid-template-columns: repeat(7, minmax(92px, 1fr));
    padding-bottom: 8px;
  }

  #agenda .agenda-calendar-grid .cal-cell {
    min-height: 88px;
  }

  #agenda .agenda-order-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  #agenda .agenda-order-row strong,
  #agenda .agenda-order-row .badge {
    justify-self: start;
    grid-column: 2;
  }
}

/* Lovable reference: Orders, Quick Sale and Quotes */
#orders.orders-polish-page {
  max-width: 1220px;
  margin: 0 auto;
  gap: 18px;
  color: #2b130b;
}

#orders .orders-polish-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0 4px;
}

#orders .orders-polish-kicker {
  display: inline-flex;
  color: #c94b55;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

#orders .orders-polish-hero h1 {
  margin: 2px 0 4px;
  color: #2b130b;
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1;
}

#orders .orders-polish-hero p {
  max-width: 650px;
  color: #76675f;
  font-size: 13px;
  line-height: 1.55;
}

#orders .orders-polish-action {
  min-height: 40px;
  padding: 0 24px;
  border-radius: 999px;
  background: #c94b55;
  box-shadow: 0 10px 20px rgba(201, 75, 85, .18);
}

#orders .orders-polish-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

#orders .orders-polish-metrics > div,
#orders .orders-form-panel,
#orders .orders-list-panel,
#ordersTabQuotesPanel .quotes-panel,
#ordersTabQuotesPanel .quotes-list-panel,
#ordersTabQuickPanel .quick-sale-pos {
  border: 1px solid #eadfd7;
  border-radius: 22px;
  background: #fffdfa;
  box-shadow: 0 8px 22px rgba(54, 27, 16, .06);
}

#orders .orders-polish-metrics > div {
  position: relative;
  min-height: 96px;
  padding: 18px 20px;
  overflow: hidden;
}

#orders .orders-polish-metrics > div::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: #dff4ea;
}

#orders .orders-polish-metrics span {
  display: block;
  color: #9b8277;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

#orders .orders-polish-metrics strong {
  display: block;
  margin-top: 13px;
  color: #2b130b;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
}

#orders .orders-polish-metrics small {
  display: block;
  margin-top: 6px;
  color: #8a776e;
  font-size: 11px;
}

#orders .orders-tabs {
  display: inline-flex;
  align-self: flex-start;
  gap: 6px;
  padding: 6px;
  border: 1px solid #eadfd7;
  border-radius: 999px;
  background: #fffdfa;
  box-shadow: 0 8px 20px rgba(54, 27, 16, .05);
}

#orders .orders-tabs button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #76675f;
  padding: 0 18px;
  font-size: 12px;
  font-weight: 900;
}

#orders .orders-tabs button.active {
  background: #c94b55;
  color: #fff;
  box-shadow: 0 8px 18px rgba(201, 75, 85, .18);
}

#ordersTabList {
  gap: 18px;
}

#orders .orders-form-panel {
  grid-template-columns: minmax(0, 1fr) 315px;
  gap: 18px;
  padding: 22px;
}

#orders .orders-form-panel > h2 {
  color: #2b130b;
  font-family: var(--font-display);
  font-size: 30px;
}

#orders .orders-form-sub {
  color: #8a776e;
}

#orders .orders-steps {
  gap: 10px;
}

#orders .orders-steps button,
#orders .orders-steps span {
  min-height: 58px;
  border: 1px solid #eadfd7;
  border-radius: 16px;
  background: #fff7ef;
  color: #76675f;
  box-shadow: none;
}

#orders .orders-steps button.active,
#orders .orders-steps span.active {
  border-color: #d46572;
  background: #fff4f2;
  color: #2b130b;
}

#orders .orders-steps b {
  background: #fff;
  color: #c94b55;
}

#orders .orders-steps button.active b,
#orders .orders-steps span.active b {
  background: #c94b55;
  color: #fff;
}

#orders .order-step-title {
  border: 1px solid #eadfd7;
  border-radius: 16px;
  background: #fff7ef;
  padding: 14px 16px;
}

#orders .order-step-title strong {
  color: #2b130b;
  font-family: var(--font-display);
  font-size: 20px;
}

#orders .form-grid input,
#orders .form-grid select,
#orders .add-to-cart-row input,
#orders .add-to-cart-row select,
#orders .orders-tools input,
#orders .orders-tools select,
#ordersTabQuotesPanel input,
#ordersTabQuotesPanel select {
  min-height: 42px;
  border: 1px solid #eadfd7 !important;
  border-radius: 14px !important;
  background: #fffdfa;
  color: #2b130b;
  padding: 9px 12px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

#orders .form-grid input:focus,
#orders .form-grid select:focus,
#orders .add-to-cart-row input:focus,
#orders .add-to-cart-row select:focus,
#ordersTabQuotesPanel input:focus,
#ordersTabQuotesPanel select:focus {
  outline: none;
  border-color: #d46572 !important;
  box-shadow: 0 0 0 3px rgba(212, 101, 114, .12);
}

#orders .cart-wrap,
#orders .order-review,
#orders .order-summary-card,
#orders .order-side-note,
#ordersTabQuotesPanel .quote-cart-wrap {
  border: 1px solid #eadfd7;
  border-radius: 18px;
  background: #fff7ef;
  box-shadow: none;
}

#orders .order-summary-card {
  padding: 18px;
}

#orders .order-summary-card h3 {
  color: #2b130b;
  font-family: var(--font-display);
  font-size: 22px;
}

#orders .order-summary-card div strong,
#orders .cart-total,
#orders #quoteTotalVal {
  color: #2b130b;
  font-family: var(--font-display);
}

#orders .order-summary-card button,
#orders #orderBtn,
#orders #orderSummarySaveBtn,
#orders #orderNextBtn,
#orders #quoteBtn {
  border-radius: 999px;
  background: #c94b55;
  box-shadow: 0 8px 18px rgba(201, 75, 85, .18);
}

#orders .orders-list-panel {
  padding: 20px;
}

#orders .orders-list-panel .panel-head {
  align-items: flex-start;
  gap: 12px;
}

#orders .orders-list-panel .panel-head h2,
#ordersTabQuotesPanel .quotes-head h2,
#ordersTabQuotesPanel .quotes-list-panel h2 {
  color: #2b130b;
  font-family: var(--font-display);
  font-size: 26px;
}

#orders .orders-tools {
  gap: 8px;
}

#orders #ordersList {
  margin-top: 14px;
}

#orders .order-list-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid #eadfd7;
  border-radius: 18px;
  background: #fffdfa;
  padding: 13px;
  box-shadow: none;
}

#orders .order-thumb {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: #dff4ea;
  color: #3d8069;
  overflow: hidden;
}

#orders .order-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#orders .order-list-card .nm {
  color: #2b130b;
  font-weight: 900;
}

#orders .order-list-card .sub {
  color: #8a776e;
  font-size: 12px;
}

#orders .order-list-card .ra {
  gap: 7px;
}

#orders .icon-btn,
#orders .btn-soft,
#ordersTabQuotesPanel .icon-btn {
  border-color: #eadfd7;
  border-radius: 999px;
  background: #fff7ef;
  color: #6b5148;
}

#orders .icon-btn.d,
#ordersTabQuotesPanel .icon-btn.d {
  background: #fff0f0;
  color: #af3e48;
}

#ordersTabQuickPanel {
  width: 100%;
}

#ordersTabQuickPanel .quick-sale-pos {
  overflow: hidden;
  background: #fffdfa;
}

#ordersTabQuickPanel .qs-phone {
  max-width: none;
  min-height: calc(100vh - 190px);
  border-radius: 22px;
  background: #fff7ef;
}

#ordersTabQuickPanel .qs-head {
  background: linear-gradient(135deg, #c94b55, #de6f78);
  padding: 22px;
}

#ordersTabQuickPanel .qs-brand strong,
#ordersTabQuickPanel .qs-fast {
  color: #fff;
}

#ordersTabQuickPanel .qs-search-row,
#ordersTabQuickPanel .qs-tabs,
#ordersTabQuickPanel .qs-grid {
  padding-inline: 22px;
}

#ordersTabQuickPanel .qs-product,
#ordersTabQuickPanel .qs-tip,
#ordersTabQuickPanel .qs-summary,
#ordersTabQuickPanel .qs-sheet {
  border: 1px solid #eadfd7;
  border-radius: 18px;
  background: #fffdfa;
  box-shadow: 0 8px 20px rgba(54, 27, 16, .05);
}

#ordersTabQuickPanel .qs-product img {
  border-radius: 16px;
  background: #fff7ef;
}

#ordersTabQuickPanel .qs-stepper {
  border: 1px solid #eadfd7;
  border-radius: 14px;
  background: #fff7ef;
}

#ordersTabQuickPanel .qs-sell,
#ordersTabQuickPanel .qs-sheet-actions button:last-child {
  border-radius: 999px;
  background: #c94b55;
  box-shadow: 0 10px 20px rgba(201, 75, 85, .18);
}

#ordersTabQuotesPanel {
  gap: 18px;
}

#ordersTabQuotesPanel .quotes-panel,
#ordersTabQuotesPanel .quotes-list-panel {
  padding: 22px;
}

#ordersTabQuotesPanel .quotes-head {
  align-items: flex-start;
}

#ordersTabQuotesPanel .quotes-head p {
  color: #8a776e;
}

#ordersTabQuotesPanel .quotes-pill {
  border: 1px solid #bdded2;
  background: #ecfaf5;
  color: #2c775f;
}

#ordersTabQuotesPanel .quote-product-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px auto;
  gap: 10px;
}

#ordersTabQuotesPanel #quotesList .item,
#ordersTabQuotesPanel #quoteCartItems .item {
  border: 1px solid #eadfd7;
  border-radius: 16px;
  background: #fffdfa;
}

@media (max-width: 980px) {
  #orders .orders-polish-metrics,
  #orders .orders-form-panel {
    grid-template-columns: 1fr;
  }

  #orders .orders-form-panel > h2,
  #orders .orders-form-sub,
  #orders .orders-steps,
  #orders .order-form-main {
    grid-column: 1;
  }

  #orders .order-side-summary {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  #orders .orders-polish-hero,
  #orders .orders-list-panel .panel-head,
  #ordersTabQuotesPanel .quotes-head {
    align-items: stretch;
    flex-direction: column;
  }

  #orders .orders-polish-action {
    width: 100%;
  }

  #orders .orders-tabs {
    width: 100%;
    overflow-x: auto;
  }

  #orders .orders-tabs button {
    flex: 1 0 auto;
  }

  #orders .orders-steps,
  #ordersTabQuotesPanel .quote-product-row {
    grid-template-columns: 1fr;
  }

  #orders .order-list-card {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  #orders .order-list-card .ra {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  #ordersTabQuickPanel .qs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Pixel polish screenshots: orders final pass */
#orders.orders-polish-page {
  max-width: 1320px;
  gap: 26px;
  padding-top: 10px;
}

#orders .orders-polish-hero,
#orders .orders-polish-metrics {
  display: none !important;
}

#orders .orders-tabs {
  position: sticky;
  top: 10px;
  z-index: 8;
  align-self: center;
  margin: 0 auto 8px;
  min-width: 430px;
  justify-content: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid #eadbd4;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 28px rgba(59, 27, 17, .10);
  backdrop-filter: blur(10px);
}

#orders .orders-tabs button {
  min-width: 130px;
  min-height: 42px;
  border-radius: 999px;
  color: #5f4a43;
  font-size: 14px;
  font-weight: 900;
}

#orders .orders-tabs button.active {
  background: #df0b69;
  color: #fff;
  box-shadow: 0 10px 24px rgba(223, 11, 105, .25);
}

#ordersTabList {
  display: grid;
  gap: 26px;
}

#ordersTabList.hidden {
  display: none;
}

#orders .orders-form-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  padding: 34px;
  border: 1px solid #eadbd4;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(58, 28, 16, .07);
}

#orders .orders-form-panel > h2 {
  grid-column: 1 / -1;
  margin: 0 0 -20px;
  color: #2a0f08;
  font-family: var(--font-display);
  font-size: 33px;
  line-height: 1;
}

#orders .orders-form-sub {
  grid-column: 1 / -1;
  margin: -2px 0 10px;
  color: #7d6b64;
  font-size: 14px;
}

#orders .orders-form-panel::after {
  content: "Passo 1 de 4";
  position: absolute;
  top: 36px;
  right: 34px;
  padding: 8px 15px;
  border: 1px solid #ffc4dc;
  border-radius: 999px;
  background: #fff2f7;
  color: #df0b69;
  font-size: 12px;
  font-weight: 900;
}

#orders .orders-form-panel {
  position: relative;
}

#orders .orders-steps {
  grid-column: 1 / -1;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 30px 16px 26px;
}

#orders .orders-steps::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 17px;
  height: 2px;
  background: #eadbd4;
}

#orders .orders-steps button,
#orders .orders-steps span {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 9px;
  min-height: 62px;
  border: 0;
  background: transparent;
  color: #8a776e;
  padding: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

#orders .orders-steps b {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0;
  border: 2px solid #eadbd4;
  border-radius: 50%;
  background: #fff;
  color: #8a776e;
  font-size: 14px;
}

#orders .orders-steps .active {
  color: #df0b69;
}

#orders .orders-steps .active b {
  border-color: #df0b69;
  background: #fff;
  color: #df0b69;
  box-shadow: 0 0 0 5px #fff2f7;
}

#orders .orders-steps .done b {
  border-color: #57c997;
  background: #e7fbf2;
  color: #23a66e;
}

#orders .order-form-main {
  display: grid;
  gap: 15px;
}

#orders .order-step-title {
  border: 0;
  background: transparent;
  padding: 0;
}

#orders .order-step-title strong {
  display: block;
  color: #2a0f08;
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.1;
}

#orders .order-step-title span {
  color: #7d6b64;
  font-size: 13px;
}

#orders .form-grid {
  gap: 12px;
}

#orders .form-grid input,
#orders .form-grid select,
#orders .add-to-cart-row input,
#orders .add-to-cart-row select,
#orders .orders-tools input,
#orders .orders-tools select,
#ordersTabQuotesPanel input,
#ordersTabQuotesPanel select {
  min-height: 50px;
  border: 1px solid #eadbd4 !important;
  border-radius: 15px !important;
  background: #fff !important;
  color: #342019;
  font-size: 14px !important;
  padding: 12px 16px !important;
}

#orders .form-grid input::placeholder,
#ordersTabQuotesPanel input::placeholder {
  color: #9b8982;
}

#orders .order-side-summary {
  display: grid;
  gap: 12px;
  align-content: start;
}

#orders .order-summary-card,
#orders .order-side-note {
  border: 1px solid #eadbd4;
  border-radius: 20px;
  background: #fff;
  box-shadow: none;
}

#orders .order-summary-card {
  padding: 24px 20px;
}

#orders .order-summary-card h3 {
  color: #2a0f08;
  font-family: var(--font-display);
  font-size: 21px;
}

#orders .order-summary-card p {
  color: #8a776e;
}

#orders .order-summary-card div {
  border-top: 1px solid #eadbd4;
  margin-top: 12px;
  padding-top: 16px;
}

#orders .order-summary-card div span {
  color: #8a776e;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

#orders .order-summary-card div strong {
  color: #df0b69;
  font-family: var(--font-display);
  font-size: 28px;
}

#orders .order-side-note {
  padding: 15px 17px;
}

#orders .order-side-note strong {
  color: #df0b69;
  font-size: 12px;
}

#orders .order-wizard-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
}

#orders #orderNextBtn,
#orders #orderBtn,
#orders #orderSummarySaveBtn {
  min-width: 150px;
  min-height: 48px;
  border-radius: 16px;
  background: #df0b69;
  color: #fff;
  box-shadow: 0 16px 28px rgba(223, 11, 105, .22);
}

#orders #orderBackBtn {
  min-width: 90px;
  min-height: 48px;
  border-radius: 16px;
}

#orders .orders-list-panel {
  padding: 26px;
  border: 1px solid #eadbd4;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(58, 28, 16, .07);
}

#orders .orders-list-panel .panel-head {
  align-items: center;
}

#orders .orders-list-panel .panel-head h2,
#ordersTabQuotesPanel .quotes-head h2,
#ordersTabQuotesPanel .quotes-list-panel h2 {
  color: #2a0f08;
  font-family: var(--font-display);
  font-size: 29px;
}

#orders .orders-tools {
  align-items: center;
}

#orders .orders-tools input,
#orders .orders-tools select {
  min-height: 38px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  padding: 8px 13px !important;
}

#orders .orders-tools #ordersSearch {
  min-width: 230px;
}

#orders .orders-tools .btn {
  min-height: 38px;
  border-radius: 999px;
  padding: 0 16px;
}

#orders .orders-tools .btn-sm {
  color: #df0b69;
}

#orders #ordersList {
  display: grid;
  gap: 10px;
}

#orders .order-list-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 82px;
  padding: 12px 14px;
  border: 1px solid #eadbd4;
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
}

#orders .order-list-card.quick-sale-order {
  border-color: #ffc4dc;
  background: #fff8fb;
}

#orders .order-thumb {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #fff2f7;
}

#orders .order-list-card .nm {
  color: #24110a;
  font-size: 14px;
  font-weight: 900;
}

#orders .order-list-card .sub {
  margin-top: 3px;
  color: #7d6b64;
  font-size: 12px;
}

#orders .order-list-card .ra {
  align-items: center;
  gap: 8px;
}

#orders .order-list-card .badge {
  min-height: 30px;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 900;
}

#orders .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  border: 1px solid #eadbd4;
  border-radius: 999px;
  background: #fff;
  color: #79665f;
  padding: 0 10px;
}

#orders .icon-btn:hover {
  border-color: #df0b69;
  color: #df0b69;
}

#orders .pager {
  justify-content: center;
  padding-top: 18px;
}

#orders .pager button {
  border-radius: 999px;
}

#ordersTabQuickPanel .quick-sale-pos {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#ordersTabQuickPanel .qs-phone {
  max-width: none;
  min-height: auto;
  padding-bottom: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#ordersTabQuickPanel .qs-head {
  margin-bottom: 26px;
  padding: 34px;
  border-radius: 26px;
  background: linear-gradient(135deg, #df0b69 0%, #c01874 100%);
}

#ordersTabQuickPanel .qs-brand {
  align-items: center;
}

#ordersTabQuickPanel .qs-brand span {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
}

#ordersTabQuickPanel .qs-brand strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 34px;
}

#ordersTabQuickPanel .qs-fast {
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

#ordersTabQuickPanel .qs-cart {
  background: #fff;
  color: #df0b69;
}

#ordersTabQuickPanel .qs-search-row {
  margin-top: 24px;
  padding-inline: 0;
}

#ordersTabQuickPanel .qs-search {
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  background: #fff;
}

#ordersTabQuickPanel .qs-search input {
  font-size: 15px;
}

#ordersTabQuickPanel .qs-scan {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  color: #fff;
}

#ordersTabQuickPanel .qs-tabs {
  padding: 0;
  margin-bottom: 28px;
  gap: 10px;
}

#ordersTabQuickPanel .qs-tabs button {
  min-height: 42px;
  border: 1px solid #eadbd4;
  border-radius: 999px;
  background: #fff;
  color: #24110a;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 900;
}

#ordersTabQuickPanel .qs-tabs button.active {
  border-color: #df0b69;
  background: #df0b69;
  color: #fff;
}

#ordersTabQuickPanel .qs-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
}

#ordersTabQuickPanel .qs-product,
#ordersTabQuickPanel .qs-tip {
  border: 1px solid #eadbd4;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(58, 28, 16, .08);
}

#ordersTabQuickPanel .qs-product img {
  width: 100%;
  height: 285px;
  border-radius: 0;
  object-fit: cover;
}

#ordersTabQuickPanel .qs-product strong,
#ordersTabQuickPanel .qs-product span {
  padding-inline: 16px;
}

#ordersTabQuickPanel .qs-product > span {
  color: #df0b69;
  font-weight: 900;
}

#ordersTabQuickPanel .qs-stepper {
  margin: 12px 16px 16px;
  border: 0;
  border-radius: 0;
  background: #fff2f7;
}

#ordersTabQuickPanel .qs-stepper button:last-child {
  background: #df0b69;
  color: #fff;
}

#ordersTabQuickPanel .qs-tip {
  min-height: 160px;
  border-style: dashed;
  border-color: #ff9ac4;
  background: #fff4f8;
}

#ordersTabQuickPanel .qs-summary {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin-top: 26px;
  padding: 24px;
  border: 1px solid #eadbd4;
  border-radius: 18px;
  background: #fff;
}

#ordersTabQuickPanel .qs-summary div {
  border-right: 1px solid #eadbd4;
}

#ordersTabQuickPanel .qs-summary div:last-child {
  border-right: 0;
  text-align: right;
}

#ordersTabQuickPanel .qs-summary span {
  color: #5f4a43;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

#ordersTabQuickPanel .qs-summary strong {
  color: #2a0f08;
  font-family: var(--font-display);
  font-size: 27px;
}

#ordersTabQuickPanel .qs-summary div:last-child strong {
  color: #df0b69;
  font-size: 36px;
}

#ordersTabQuickPanel .qs-sell {
  width: 100%;
  min-height: 72px;
  margin-top: 26px;
  border-radius: 18px;
  background: #e878ad;
  color: #fff;
  font-family: var(--font-display);
  font-size: 24px;
  box-shadow: 0 16px 30px rgba(223, 11, 105, .18);
}

#ordersTabQuickPanel .qs-sheet {
  border-radius: 22px 22px 0 0;
}

#ordersTabQuotesPanel {
  display: grid;
  gap: 26px;
}

#ordersTabQuotesPanel.hidden {
  display: none;
}

#ordersTabQuotesPanel .quotes-panel,
#ordersTabQuotesPanel .quotes-list-panel {
  padding: 34px;
  border: 1px solid #eadbd4;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(58, 28, 16, .07);
}

#ordersTabQuotesPanel .quotes-head {
  align-items: flex-start;
  margin-bottom: 24px;
}

#ordersTabQuotesPanel .quotes-head h2 {
  color: #2a0f08;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
}

#ordersTabQuotesPanel .quotes-head p {
  color: #5f4a43;
  font-size: 14px;
}

#ordersTabQuotesPanel .quotes-pill {
  min-height: 34px;
  border: 1px solid #ffc4dc;
  border-radius: 999px;
  background: #fff2f7;
  color: #df0b69;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 900;
}

#ordersTabQuotesPanel .form-grid {
  gap: 16px;
  margin-bottom: 16px;
}

#ordersTabQuotesPanel .quote-product-row {
  grid-template-columns: minmax(0, 1fr) 110px 145px;
  gap: 10px;
  margin-top: 4px;
}

#ordersTabQuotesPanel .quote-product-row .btn {
  min-height: 52px;
  border-radius: 15px;
  background: #e878ad;
  color: #fff;
}

#ordersTabQuotesPanel .quote-cart-wrap {
  margin-top: 22px;
  border: 1px dashed #eadbd4;
  border-radius: 20px;
  background: #fff;
  min-height: 132px;
}

#ordersTabQuotesPanel .quote-cart-wrap .empty {
  min-height: 82px;
  display: grid;
  place-items: center;
  color: #7d6b64;
}

#ordersTabQuotesPanel .quote-cart-wrap .cart-footer {
  align-items: flex-end;
  border-top: 0;
}

#ordersTabQuotesPanel #quoteTotalVal {
  display: grid;
  color: #df0b69;
  font-family: var(--font-display);
  font-size: 32px;
}

#ordersTabQuotesPanel #quoteTotalVal::before {
  content: "Total do orçamento";
  color: #5f4a43;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

#ordersTabQuotesPanel #quoteBtn {
  min-height: 52px;
  border-radius: 999px;
  background: #e878ad;
  color: #fff;
  padding-inline: 28px;
}

#ordersTabQuotesPanel .quotes-list-panel .panel-head {
  margin-bottom: 20px;
}

#ordersTabQuotesPanel #quotesList .item {
  min-height: 78px;
  border: 1px solid #eadbd4;
  border-radius: 18px;
  background: #fff;
}

@media (max-width: 1100px) {
  #orders .orders-form-panel,
  #ordersTabQuickPanel .qs-grid {
    grid-template-columns: 1fr 1fr;
  }

  #orders .orders-form-panel > h2,
  #orders .orders-form-sub,
  #orders .orders-steps,
  #orders .order-form-main,
  #orders .order-side-summary {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  #orders .orders-tabs {
    position: relative;
    top: auto;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    justify-content: flex-start;
  }

  #orders .orders-tabs button {
    min-width: 116px;
  }

  #orders .orders-form-panel,
  #orders .orders-list-panel,
  #ordersTabQuotesPanel .quotes-panel,
  #ordersTabQuotesPanel .quotes-list-panel {
    padding: 20px;
  }

  #orders .orders-form-panel::after {
    position: static;
    grid-column: 1 / -1;
    justify-self: start;
    order: -1;
  }

  #orders .orders-steps {
    overflow-x: auto;
    grid-template-columns: repeat(4, minmax(110px, 1fr));
    margin-inline: 0;
  }

  #orders .orders-tools,
  #orders .orders-list-panel .panel-head,
  #ordersTabQuotesPanel .quotes-head {
    align-items: stretch;
    flex-direction: column;
  }

  #orders .orders-tools #ordersSearch,
  #orders .orders-tools input,
  #orders .orders-tools select,
  #orders .orders-tools .btn {
    width: 100%;
  }

  #orders .order-list-card {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  #orders .order-list-card .ra {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  #ordersTabQuickPanel .qs-head {
    padding: 24px;
  }

  #ordersTabQuickPanel .qs-grid,
  #ordersTabQuickPanel .qs-summary,
  #ordersTabQuotesPanel .quote-product-row {
    grid-template-columns: 1fr;
  }

  #ordersTabQuickPanel .qs-product img {
    height: 220px;
  }

  #ordersTabQuickPanel .qs-summary div {
    border-right: 0;
    border-bottom: 1px solid #eadbd4;
    padding: 10px 0;
  }

  #ordersTabQuickPanel .qs-summary div:last-child {
    border-bottom: 0;
    text-align: left;
  }
}

/* Correcoes dos prints: venda rapida limpa, responsiva e abas discretas */
#orders .orders-tabs {
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

body.orders-scrolled #orders.active .orders-tabs {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-18px) scale(.98);
}

#ordersTabQuickPanel {
  overflow: hidden;
}

#ordersTabQuickPanel .qs-phone {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

#ordersTabQuickPanel .qs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  overflow: visible;
}

#ordersTabQuickPanel .qs-product {
  display: grid;
  grid-template-rows: auto auto auto auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

#ordersTabQuickPanel .qs-product img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
}

#ordersTabQuickPanel .qs-product strong,
#ordersTabQuickPanel .qs-product > span {
  position: static;
  display: block;
  min-width: 0;
  margin: 0;
  background: #fff;
  text-shadow: none;
}

#ordersTabQuickPanel .qs-product strong {
  padding: 15px 16px 2px;
  color: #24110a;
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

#ordersTabQuickPanel .qs-product > span {
  padding: 0 16px 12px;
  color: #df0b69;
  font-size: 13px;
  font-weight: 900;
}

#ordersTabQuickPanel .qs-stepper {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  min-height: 54px;
  margin: 0;
  border-radius: 0;
  background: #fff2f7;
}

#ordersTabQuickPanel .qs-stepper button {
  min-width: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
}

#ordersTabQuickPanel .qs-stepper button:first-child {
  color: #df0b69;
  background: #fff7fb;
}

#ordersTabQuickPanel .qs-stepper button:last-child {
  color: #fff;
  background: #df0b69;
}

#ordersTabQuickPanel .qs-stepper b {
  color: #df0b69;
  font-size: 20px;
}

@media (max-width: 1180px) {
  #ordersTabQuickPanel .qs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  #ordersTabQuickPanel .qs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #ordersTabQuickPanel .qs-product img {
    height: 230px;
  }
}

@media (max-width: 560px) {
  #ordersTabQuickPanel .qs-grid {
    grid-template-columns: 1fr;
  }

  #ordersTabQuickPanel .qs-product img {
    height: 220px;
  }
}

/* Mobile responsive system: phones only, desktop preserved */
@media (max-width: 767px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  body {
    overscroll-behavior-x: none;
  }

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

  #app.app-shell {
    min-width: 0;
    overflow-x: clip;
  }

  .sidebar {
    display: none;
  }

  .content {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 0 14px calc(132px + env(safe-area-inset-bottom));
  }

  .page {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    gap: 14px;
  }

  .page > *,
  .panel,
  .dashboard-panel,
  .printer-card,
  .gcal-panel,
  .gcal-connect-banner,
  .summary-box,
  .list,
  .item,
  .metric,
  .cart-wrap {
    min-width: 0;
    max-width: 100%;
  }

  .app-header,
  .panel-head,
  .dashboard-head,
  .printer-page-head,
  .printer-card-head,
  .gcal-panel-head,
  .agenda-card-head,
  .agenda-toolbar,
  .quotes-head {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .app-header {
    padding: 14px 0 10px;
    margin-bottom: 12px;
  }

  .app-header > div:last-child,
  .action-row,
  .hero-actions,
  .gcal-actions,
  .pager,
  .cart-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
  }

  .action-row > *,
  .hero-actions > *,
  .gcal-actions > *,
  .pager > *,
  .panel-head input,
  .panel-head select,
  .panel-head .btn {
    flex: 1 1 150px;
    min-width: 0;
  }

  h1,
  .app-header h1,
  #orders .orders-polish-hero h1,
  #products .products-hero h1,
  #stock .stock-hero h1,
  #agenda .agenda-hero h1,
  #printers .printer-page-head h1 {
    font-size: clamp(26px, 8vw, 34px);
    line-height: 1.05;
    letter-spacing: 0;
    overflow-wrap: anywhere;
  }

  h2,
  #orders .orders-list-panel .panel-head h2,
  #ordersTabQuotesPanel .quotes-head h2,
  #ordersTabQuotesPanel .quotes-list-panel h2 {
    font-size: clamp(20px, 6.2vw, 24px);
    line-height: 1.15;
    letter-spacing: 0;
    overflow-wrap: anywhere;
  }

  h3,
  .nm,
  .sub,
  .summary-box,
  .badge {
    overflow-wrap: anywhere;
  }

  input,
  select,
  textarea {
    width: 100%;
    max-width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    font-size: 16px;
  }

  textarea {
    min-height: 82px;
  }

  button,
  .btn,
  .icon-btn,
  .wa-btn,
  .btn-gcal {
    min-height: 44px;
    max-width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  .btn-sm {
    min-height: 42px;
  }

  .form-grid,
  .form-grid.c1,
  .form-grid.c2,
  .form-grid.c4,
  .review-grid,
  .rel-grid,
  .printer-layout,
  #finance > div[style*="grid-template-columns"],
  #dashboard > div[style*="grid-template-columns"],
  .panel > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .metrics,
  #finance .metrics,
  #stock .stock-summary-grid,
  #agenda .agenda-metric-grid,
  #production .prod-summary-grid,
  .production-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .metric,
  #stock .stock-summary-grid .metric,
  #agenda .agenda-metric-card,
  #production .prod-metric,
  .production-summary-card {
    min-height: 104px;
    padding: 14px;
    border-radius: 16px;
  }

  .metric strong,
  #agenda .agenda-metric-card strong,
  #production .prod-metric strong {
    font-size: clamp(22px, 7vw, 30px);
  }

  .panel,
  .dashboard-panel,
  #orders .orders-form-panel,
  #orders .orders-list-panel,
  #ordersTabQuotesPanel .quotes-panel,
  #ordersTabQuotesPanel .quotes-list-panel,
  #products .panel,
  #stock .stock-panel,
  #agenda .gcal-panel,
  #agenda .gcal-connect-banner,
  #agenda .agenda-shell,
  #agenda .agenda-day-panel,
  #agenda .agenda-map-panel,
  #agenda .agenda-orders-panel,
  .printer-card {
    width: 100%;
    padding: 16px;
    border-radius: 18px;
  }

  .list {
    display: grid;
    gap: 10px;
  }

  .list .item {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    width: 100%;
    padding: 12px;
    gap: 10px;
    overflow: hidden;
  }

  .list .item > div:first-child {
    min-width: 0;
  }

  .list .item .ra,
  .item .ra {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    width: 100%;
    gap: 8px;
  }

  .list .item .ra > *,
  .item .ra > * {
    width: 100%;
    min-width: 0;
  }

  table,
  .table,
  .panel table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-overlay,
  .legal-overlay {
    padding: 12px;
    align-items: center;
  }

  .modal-card,
  .recipe-name-modal-card,
  .legal-card {
    width: 100%;
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    border-radius: 18px;
  }

  .legal-body {
    max-height: calc(100dvh - 260px);
  }

  .bottom-nav {
    display: block;
    left: 10px;
    right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    z-index: 680;
  }

  .bottom-nav-main {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 3px;
    padding: 7px;
    border: 1px solid var(--bd);
    border-radius: 20px;
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    width: 100%;
    overflow: hidden;
  }

  .bottom-nav button {
    min-width: 0;
    width: 100%;
    min-height: 50px;
    height: auto;
    padding: 5px 2px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 800;
    line-height: 1.1;
    white-space: normal;
  }

  .bottom-nav button.active {
    background: var(--rose);
    color: #fff;
  }

  .bottom-nav .bico {
    display: block;
    margin-bottom: 2px;
    font-size: 17px;
    line-height: 1;
  }

  .bottom-more-toggle.active {
    background: var(--rose);
    color: #fff;
  }

  .bottom-more-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 8px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-height: min(58dvh, 420px);
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 12px;
    border: 1px solid var(--bd);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 20px 46px rgba(55, 35, 25, .18);
  }

  .bottom-more-sheet.hidden {
    display: none;
  }

  .bottom-more-sheet button {
    min-height: 48px;
    padding: 8px 10px;
    border: 1px solid var(--bd);
    background: var(--surface2);
    font-size: 12px;
  }

  .support-fab {
    display: inline-flex;
    right: 14px;
    bottom: calc(102px + env(safe-area-inset-bottom));
    z-index: 720;
    width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 0;
    justify-content: center;
  }

  .support-fab span {
    display: none;
  }

  #toast {
    left: 12px;
    right: 12px;
    bottom: calc(88px + env(safe-area-inset-bottom));
    max-width: none;
  }

  .support-chat-overlay {
    align-items: flex-end;
    justify-content: center;
    padding: 10px;
  }

  .support-chat {
    width: 100%;
    height: min(88dvh, 680px);
    max-height: calc(100dvh - 20px);
    border-radius: 20px;
    overflow: hidden;
  }

  .chart-wrap {
    width: 100%;
    overflow-x: auto;
  }

  .bar-chart {
    min-width: min(420px, calc(100vw - 44px));
  }

  #orders.orders-polish-page,
  #products,
  #stock,
  #agenda.agenda-page,
  #production,
  #finance,
  #menu,
  #clients,
  #relationship,
  #printers,
  #settings {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
  }

  #production .prod-page-head {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-bottom: 16px;
  }

  #production .prod-page-head h2 {
    grid-column: 1 !important;
    max-width: 100%;
    font-size: clamp(34px, 11vw, 44px) !important;
    line-height: .95;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  #production .prod-subtitle {
    grid-column: 1 !important;
    max-width: 28ch;
    font-size: 13px;
    line-height: 1.45;
  }

  #production .prod-actions {
    grid-column: 1 !important;
    grid-row: auto !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    width: 100%;
    gap: 10px;
  }

  #production .prod-date-input,
  #production .prod-actions .btn {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding-inline: 12px;
    font-size: 13px;
  }

  #production .prod-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
  }

  #production .prod-filter {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    font-size: 13px;
  }

  #production .prod-summary-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  #production .prod-metric,
  #production .prod-progress-card {
    min-height: 124px;
    padding: 18px;
  }

  #production .prod-progress-card {
    grid-column: auto !important;
  }

  #agenda .agenda-hero {
    gap: 10px;
    padding-top: 4px;
  }

  #agenda .agenda-hero h1 {
    font-size: clamp(36px, 12vw, 46px);
    line-height: .98;
    overflow-wrap: normal;
    word-break: normal;
  }

  #agenda .agenda-shell,
  #agenda .agenda-day-panel,
  #agenda .agenda-map-panel,
  #agenda .agenda-orders-panel,
  #agenda .gcal-panel,
  #agenda .gcal-connect-banner {
    padding: 18px;
  }

  #agenda .agenda-main-grid {
    gap: 14px;
  }

  #agenda .agenda-calendar-grid {
    width: 100%;
  }

  #orders .orders-tabs,
  #products .products-tabs,
  #ordersTabQuickPanel .qs-tabs {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #orders .orders-tabs::-webkit-scrollbar,
  #products .products-tabs::-webkit-scrollbar,
  #ordersTabQuickPanel .qs-tabs::-webkit-scrollbar {
    display: none;
  }

  #orders .orders-tabs button,
  #products .products-tab,
  #ordersTabQuickPanel .qs-tabs button {
    flex: 0 0 auto;
    min-width: max-content;
    min-height: 42px;
    padding: 8px 14px;
    font-size: 12px;
  }

  #orders .orders-form-panel,
  #orders .order-form-main,
  #orders .order-side-summary,
  #ordersTabQuotesPanel .form-grid,
  #ordersTabQuotesPanel .quote-product-row {
    grid-template-columns: 1fr;
  }

  #orders .orders-form-panel::after {
    position: static;
    grid-column: 1;
    justify-self: start;
    order: -1;
  }

  #orders .orders-steps {
    grid-template-columns: repeat(4, minmax(84px, 1fr));
    gap: 8px;
    margin: 4px 0 10px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  #orders .orders-steps::before {
    left: 40px;
    right: 40px;
  }

  #orders .orders-steps button,
  #orders .orders-steps span {
    min-height: 52px;
    font-size: 11px;
  }

  #orders .orders-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    width: 100%;
  }

  #orders .orders-tools #ordersSearch {
    grid-column: 1 / -1;
    min-width: 0;
  }

  #orders .orders-tools input,
  #orders .orders-tools select,
  #orders .orders-tools .btn {
    width: 100%;
    min-width: 0;
    min-height: 42px;
  }

  #orders .order-list-card {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  #orders .order-list-card .ra {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  #ordersTabQuickPanel .qs-phone,
  #ordersTabQuickPanel .quick-sale-pos {
    overflow: hidden;
  }

  #ordersTabQuickPanel .qs-head {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 18px 16px 14px;
    gap: 10px;
  }

  #ordersTabQuickPanel .qs-brand strong {
    white-space: normal;
    font-size: clamp(25px, 8vw, 31px);
  }

  #ordersTabQuickPanel .qs-fast {
    display: none;
  }

  #ordersTabQuickPanel .qs-search-row {
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 8px;
    padding: 0 16px 14px;
  }

  #ordersTabQuickPanel .qs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 16px 12px;
  }

  #ordersTabQuickPanel .qs-product {
    min-height: 0;
  }

  #ordersTabQuickPanel .qs-product img {
    height: 132px;
    object-fit: cover;
  }

  #ordersTabQuickPanel .qs-product strong {
    min-height: 42px;
    padding: 10px 10px 2px;
    font-size: 13px;
  }

  #ordersTabQuickPanel .qs-product > span {
    padding: 0 10px 8px;
    font-size: 12px;
  }

  #ordersTabQuickPanel .qs-stepper {
    min-height: 44px;
  }

  #ordersTabQuickPanel .qs-summary,
  #ordersTabQuickPanel .qs-payments,
  #ordersTabQuickPanel .qs-money-row,
  #ordersTabQuickPanel .qs-sheet-actions {
    grid-template-columns: 1fr;
  }

  #ordersTabQuickPanel .qs-summary {
    margin-inline: 16px;
  }

  #ordersTabQuickPanel .qs-sell {
    width: calc(100% - 32px);
    margin-inline: 16px;
    min-height: 52px;
  }

  #ordersTabQuickPanel .qs-sheet {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    max-height: calc(100dvh - 28px);
    overflow-y: auto;
    border-radius: 20px;
  }

  #agenda .agenda-main-grid,
  #agenda .agenda-secondary-grid {
    grid-template-columns: 1fr;
  }

  #agenda .agenda-toolbar-actions,
  #agenda .gcal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  #agenda .agenda-calendar-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    overflow: visible;
  }

  #agenda .agenda-calendar-grid .cal-head {
    font-size: 9px;
  }

  #agenda .agenda-calendar-grid .cal-cell {
    min-height: 72px;
    padding: 5px 4px;
    border-radius: 11px;
  }

  #agenda .agenda-calendar-grid .cal-cell strong {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }

  #agenda .agenda-calendar-grid .cal-cell .ev {
    max-width: 100%;
    padding: 2px 4px;
    font-size: 8px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #products #productsList .ra,
  #stock #stockList .ra {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #products #productsList .item {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 12px;
  }

  #products #productsList .item > div:first-child {
    width: 100%;
    min-width: 0;
  }

  #products #productsList .ra {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    min-width: 0;
  }

  #products #productsList .ra > * {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  #products #productsList .ra .badge,
  #products #productsList .ra .icon-btn {
    min-height: 42px;
    white-space: normal;
    text-align: center;
  }

  #productsTab-receita .recipe-entry-grid {
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 10px;
  }

  #productsTab-receita .recipe-entry-actions,
  #productsTab-receita .recipe-total-actions,
  #productsTab-receita .recipe-history-head,
  #productsTab-receita .recipe-history-item {
    flex-direction: column;
    align-items: stretch;
  }

  #productsTab-receita .recipe-total-card {
    display: grid;
    gap: 12px;
  }

#productsTab-receita .recipe-total-card h2,
  #productsTab-receita #recipeTotal {
    font-size: clamp(22px, 8vw, 30px);
  }

  #menuPublicLink,
  #menuPreviewLink,
  #menuWaShareLink,
  #menu .wa-btn,
  #printerCreateBtn,
  #printerName,
  #printerTokenBox,
  .printer-download {
    width: 100%;
  }

  #menuProductSelector .menu-product-card {
    display: grid !important;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px !important;
    align-items: center !important;
    padding: 10px !important;
  }

  #menuProductSelector .menu-product-card button,
  #menuProductSelector .menu-product-card .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  #printerTokenValue {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }

  #settings .auth-pw-wrap {
    min-width: 0;
  }

  #settings .auth-pw-wrap input {
    min-width: 0;
    padding-right: 46px;
  }

  #settings .pw-toggle {
    flex: 0 0 42px;
    min-width: 42px;
    min-height: 42px;
  }
}

#menu .online-order-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 92%, #fff 8%);
  border: 1px solid color-mix(in srgb, var(--blush) 70%, transparent);
}

#menu .online-order-card.alert {
  background: color-mix(in srgb, var(--pink-soft) 58%, var(--surface) 42%);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--blush));
}

#menu .online-order-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

#menu .online-order-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--cocoa);
  font-weight: 800;
}

#menu .online-order-title strong {
  min-width: 0;
}

#menu .online-order-client {
  color: var(--cocoa);
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

#menu .online-order-details {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

#menu .online-order-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 260px;
}

#menu .online-order-actions :is(a, button) {
  min-height: 34px;
  border-radius: 999px;
  padding-inline: 14px;
  white-space: nowrap;
}

#menu .online-order-confirm {
  background: #22c55e !important;
  color: #fff !important;
  border-color: #22c55e !important;
}

#menu .online-order-wa {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
}

html[data-theme="dark"] #menu .online-order-card {
  background: linear-gradient(145deg, rgba(48, 24, 21, .98), rgba(34, 14, 13, .98));
  border-color: rgba(255, 226, 214, .16);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
}

html[data-theme="dark"] #menu .online-order-card.alert {
  background: linear-gradient(145deg, rgba(69, 30, 32, .96), rgba(42, 17, 15, .98));
  border-color: rgba(255, 126, 162, .34);
}

html[data-theme="dark"] #menu .online-order-title,
html[data-theme="dark"] #menu .online-order-client {
  color: #fff1e8;
}

html[data-theme="dark"] #menu .online-order-details {
  color: #d9bdb0;
}

@media (max-width: 760px) {
  #menu .online-order-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }

  #menu .online-order-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    min-width: 0;
    width: 100%;
  }

  #menu .online-order-actions :is(a, button) {
    width: 100%;
    justify-content: center;
    white-space: normal;
  }

  #menu .online-order-confirm {
    grid-column: 1 / -1;
  }
}

.stock-movement-modal-card {
  width: min(520px, calc(100vw - 28px));
}

.stock-movement-modal-card .modal-header small {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.stock-movement-modal-card .modal-header h3 {
  margin: 0;
}

.stock-movement-modal-body {
  display: grid;
  gap: 16px;
}

.stock-movement-summary {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--bd);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 242, 236, .9), rgba(255, 255, 255, .96));
}

.stock-movement-summary.compact {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.stock-movement-summary.compact small {
  grid-column: 1 / -1;
}

.stock-movement-summary strong {
  color: var(--cocoa);
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 8vw, 42px);
  line-height: 1;
}

.stock-movement-summary small,
.stock-movement-field span,
.stock-movement-facts span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.stock-movement-field {
  display: grid;
  gap: 8px;
}

.stock-movement-field input {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--bd);
  border-radius: 14px;
  background: var(--surface);
  color: var(--cocoa);
  font: inherit;
  font-weight: 800;
}

.stock-movement-preview {
  padding: 12px 14px;
  border: 1px dashed var(--blush);
  border-radius: 14px;
  color: var(--muted);
  background: var(--surface2);
}

.stock-movement-preview strong {
  color: var(--cocoa);
}

.stock-movement-preview.error {
  border-color: #ef4444;
  color: #b91c1c;
}

.stock-movement-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stock-movement-facts div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--bd);
  border-radius: 14px;
  background: var(--surface2);
}

.stock-movement-facts b {
  color: var(--cocoa);
}

.stock-movement-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface2);
  color: var(--muted);
}

.stock-movement-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

html[data-theme="dark"] .stock-movement-summary {
  background: linear-gradient(145deg, rgba(58, 28, 24, .98), rgba(37, 16, 14, .98));
  border-color: rgba(255, 226, 214, .14);
}

html[data-theme="dark"] .stock-movement-summary strong,
html[data-theme="dark"] .stock-movement-preview strong,
html[data-theme="dark"] .stock-movement-facts b {
  color: #fff1e8;
}

html[data-theme="dark"] .stock-movement-summary small,
html[data-theme="dark"] .stock-movement-field span,
html[data-theme="dark"] .stock-movement-facts span,
html[data-theme="dark"] .stock-movement-preview,
html[data-theme="dark"] .stock-movement-note {
  color: #d8b9ab;
}

html[data-theme="dark"] .stock-movement-field input,
html[data-theme="dark"] .stock-movement-preview,
html[data-theme="dark"] .stock-movement-facts div,
html[data-theme="dark"] .stock-movement-note {
  background: rgba(16, 7, 6, .76);
  border-color: rgba(255, 226, 214, .14);
}

html[data-theme="dark"] .stock-movement-field input {
  color: #fff1e8;
}

@media (max-width: 560px) {
  .stock-movement-facts {
    grid-template-columns: 1fr;
  }

  .stock-movement-actions {
    flex-direction: column-reverse;
  }

  .stock-movement-actions .btn {
    width: 100%;
  }
}

#productsTab-receita .recipe-simple-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

#productsTab-receita .recipe-simple-flow span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--bd);
  border-radius: 14px;
  background: var(--surface2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

#productsTab-receita .recipe-simple-flow b {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  flex: 0 0 auto;
}

#productsTab-receita .recipe-stock-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

#productsTab-receita .recipe-stock-status.ok {
  background: #dcfce7;
  color: #166534;
}

#productsTab-receita .recipe-stock-status.warn {
  background: #fef3c7;
  color: #92400e;
}

#productsTab-receita .recipe-stock-status.danger {
  background: #fee2e2;
  color: #991b1b;
}

#productsTab-receita .recipe-ingredient-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 18px;
}

#productsTab-receita .recipe-ingredient-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

#productsTab-receita .recipe-ingredient-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

#productsTab-receita .recipe-ingredient-card-grid span {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--bd);
  border-radius: 12px;
  background: var(--surface2);
}

#productsTab-receita .recipe-ingredient-card-grid small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

#productsTab-receita .recipe-ingredient-card-grid strong {
  color: var(--cocoa);
  font-size: 12px;
  overflow-wrap: anywhere;
}

#productsTab-receita .recipe-ingredient-actions {
  display: flex;
  gap: 8px;
}

#productsTab-receita .recipe-secondary-actions #recipeAddBtn {
  box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 24%, transparent);
}

html[data-theme="dark"] #productsTab-receita .recipe-simple-flow span,
html[data-theme="dark"] #productsTab-receita .recipe-ingredient-card-grid span {
  background: rgba(18, 8, 7, .72);
  border-color: rgba(255, 226, 214, .14);
}

html[data-theme="dark"] #productsTab-receita .recipe-simple-flow span,
html[data-theme="dark"] #productsTab-receita .recipe-ingredient-card-grid small {
  color: #d8b9ab;
}

html[data-theme="dark"] #productsTab-receita .recipe-ingredient-card-grid strong {
  color: #fff1e8;
}

@media (max-width: 760px) {
  #productsTab-receita .recipe-simple-flow,
  #productsTab-receita .recipe-ingredient-card,
  #productsTab-receita .recipe-ingredient-card-grid {
    grid-template-columns: 1fr;
  }

  #productsTab-receita .recipe-ingredient-actions {
    width: 100%;
  }

  #productsTab-receita .recipe-ingredient-actions .icon-btn {
    flex: 1;
  }
}

@media (max-width: 430px) {
  .content {
    padding-inline: 10px;
  }

  .metrics,
  #finance .metrics,
  #stock .stock-summary-grid,
  #agenda .agenda-metric-grid,
  #production .prod-summary-grid,
  .production-summary-grid,
  .list .item .ra,
  .item .ra,
  #orders .order-list-card .ra,
  #products #productsList .ra,
  #stock #stockList .ra,
  #agenda .agenda-toolbar-actions,
  #agenda .gcal-actions,
  .bottom-more-sheet {
    grid-template-columns: 1fr;
  }

  .action-row > *,
  .hero-actions > *,
  .gcal-actions > *,
  .pager > * {
    flex-basis: 100%;
  }

  #orders .orders-tools {
    grid-template-columns: 1fr;
  }

  #ordersTabQuickPanel .qs-grid {
    grid-template-columns: 1fr;
  }

  #ordersTabQuickPanel .qs-product img {
    height: 190px;
  }

  #agenda .agenda-calendar-grid {
    gap: 3px;
  }

  #agenda .agenda-calendar-grid .cal-cell {
    min-height: 62px;
    padding: 4px 3px;
  }

  #agenda .agenda-calendar-grid .cal-cell .ev {
    width: 7px;
    height: 7px;
    padding: 0;
    border-radius: 999px;
    font-size: 0;
  }

  #menuProductSelector .menu-product-card {
    grid-template-columns: 1fr !important;
  }

  .bottom-nav {
    left: 6px;
    right: 6px;
  }

  .bottom-nav-main {
    gap: 2px;
    padding: 6px;
  }

  .bottom-nav button {
    min-height: 48px;
    font-size: 9px;
  }
}

@media (max-width: 340px) {
  .content {
    padding-inline: 8px;
  }

  .bottom-nav-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .support-fab {
    bottom: calc(146px + env(safe-area-inset-bottom));
  }

  #toast {
    bottom: calc(146px + env(safe-area-inset-bottom));
  }
}

/* Complete dark mode: warm chocolate theme, light mode preserved */
html[data-theme="dark"] {
  color-scheme: dark;
  --cream: #130c09;
  --petal: #4f252b;
  --blush: #56352f;
  --rose: #e07f93;
  --rose-dk: #ff9baa;
  --cocoa: #f5e3d3;
  --cocoa-lt: #d8bda8;
  --warm: #c8aa96;
  --sand: #e0b669;
  --gold: #e0b669;
  --mint: #72c39a;
  --sky: #8cb8e2;
  --white: #201512;
  --text: #f7eadf;
  --muted: #c6ad9d;
  --bd: rgba(255, 232, 214, .15);
  --danger: #ff9b9b;
  --success: #9ce2a6;
  --surface: #201512;
  --surface2: #2a1a16;
  --surface3: #38231e;
  --shadow-sm: 0 1px 8px rgba(0, 0, 0, .28);
  --shadow: 0 10px 28px rgba(0, 0, 0, .34);
  --shadow-lg: 0 22px 62px rgba(0, 0, 0, .48);
}

html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] .app-shell,
html[data-theme="dark"] .content,
html[data-theme="dark"] .auth-screen {
  background:
    radial-gradient(circle at 18% -8%, rgba(224, 127, 147, .13), transparent 34%),
    radial-gradient(circle at 100% 0, rgba(224, 182, 105, .10), transparent 28%),
    #130c09;
  color: var(--text);
}

html[data-theme="dark"] body {
  overflow-x: hidden;
}

html[data-theme="dark"] .content {
  min-width: 0;
}

html[data-theme="dark"] .sidebar {
  width: 62px;
  background: rgba(25, 15, 12, .96);
  border-right-color: var(--bd);
  box-shadow: 10px 0 28px rgba(0, 0, 0, .22);
}

html[data-theme="dark"] .sidebar:hover,
html[data-theme="dark"] .sidebar:focus-within {
  width: 226px;
}

html[data-theme="dark"] .sidebar .sb-brand,
html[data-theme="dark"] .sb-label,
html[data-theme="dark"] .app-header h1,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] strong,
html[data-theme="dark"] .nm,
html[data-theme="dark"] .prod-card-title,
html[data-theme="dark"] .agenda-toolbar h2,
html[data-theme="dark"] .agenda-card-head h2 {
  color: var(--text);
}

html[data-theme="dark"] .nav-btn,
html[data-theme="dark"] .sb-ico,
html[data-theme="dark"] .app-header .eyebrow,
html[data-theme="dark"] p,
html[data-theme="dark"] small,
html[data-theme="dark"] .sub,
html[data-theme="dark"] .muted,
html[data-theme="dark"] .prod-subtitle,
html[data-theme="dark"] .dashboard-head p,
html[data-theme="dark"] .agenda-card-head p,
html[data-theme="dark"] .agenda-toolbar p {
  color: var(--muted);
}

html[data-theme="dark"] .sidebar:not(:hover):not(:focus-within) .nav-btn::after {
  color: #d8c0ae;
}

html[data-theme="dark"] .nav-btn:hover,
html[data-theme="dark"] .sidebar .sb-support:hover {
  background: rgba(224, 127, 147, .16);
  color: var(--text);
}

html[data-theme="dark"] .nav-btn.active,
html[data-theme="dark"] .sidebar:not(:hover):not(:focus-within) .nav-btn.active,
html[data-theme="dark"] .bottom-nav button.active,
html[data-theme="dark"] .bottom-more-toggle.active {
  background: linear-gradient(135deg, #d95778, #ef9aa7);
  color: #fff;
}

html[data-theme="dark"] .sidebar .sb-support,
html[data-theme="dark"] .app-header,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .auth-form-side,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .dashboard-panel,
html[data-theme="dark"] .dashboard-card,
html[data-theme="dark"] .metric,
html[data-theme="dark"] .item,
html[data-theme="dark"] .list,
html[data-theme="dark"] .cart-wrap,
html[data-theme="dark"] .summary-box,
html[data-theme="dark"] .modal-card,
html[data-theme="dark"] .legal-card,
html[data-theme="dark"] .gcal-panel,
html[data-theme="dark"] .gcal-connect-banner,
html[data-theme="dark"] .agenda-shell,
html[data-theme="dark"] .agenda-day-panel,
html[data-theme="dark"] .agenda-map-panel,
html[data-theme="dark"] .agenda-orders-panel,
html[data-theme="dark"] .agenda-metric-card,
html[data-theme="dark"] #production .prod-metric,
html[data-theme="dark"] #production .prod-empty,
html[data-theme="dark"] #orders .orders-form-panel,
html[data-theme="dark"] #orders .orders-list-panel,
html[data-theme="dark"] #ordersTabQuotesPanel .quotes-panel,
html[data-theme="dark"] #ordersTabQuotesPanel .quotes-list-panel,
html[data-theme="dark"] #ordersTabQuickPanel .qs-product,
html[data-theme="dark"] #ordersTabQuickPanel .qs-summary,
html[data-theme="dark"] #ordersTabQuickPanel .qs-sheet,
html[data-theme="dark"] #products .panel,
html[data-theme="dark"] #stock .stock-panel,
html[data-theme="dark"] .printer-card,
html[data-theme="dark"] .support-chat {
  background: rgba(32, 21, 18, .94);
  border-color: var(--bd);
  color: var(--text);
  box-shadow: var(--shadow);
}

html[data-theme="dark"] .auth-brand-side,
html[data-theme="dark"] .hero,
html[data-theme="dark"] .dashboard-head,
html[data-theme="dark"] #ordersTabQuickPanel .qs-head,
html[data-theme="dark"] .street-sale-card {
  background:
    linear-gradient(135deg, rgba(71, 29, 33, .96), rgba(35, 20, 16, .96));
  border-color: var(--bd);
  color: var(--text);
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .auth-field input,
html[data-theme="dark"] .auth-pw-wrap,
html[data-theme="dark"] .field,
html[data-theme="dark"] .prod-date-input,
html[data-theme="dark"] #productsTab-receita input,
html[data-theme="dark"] #productsTab-receita select,
html[data-theme="dark"] #productsTab-receita textarea {
  background: #160f0d !important;
  border-color: rgba(255, 232, 214, .22) !important;
  color: var(--text) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] option {
  background: #160f0d;
  color: var(--text);
}

html[data-theme="dark"] #orders .form-grid input,
html[data-theme="dark"] #orders .form-grid select,
html[data-theme="dark"] #orders .add-to-cart-row input,
html[data-theme="dark"] #orders .add-to-cart-row select,
html[data-theme="dark"] #orders .orders-tools input,
html[data-theme="dark"] #orders .orders-tools select,
html[data-theme="dark"] #ordersTabQuotesPanel input,
html[data-theme="dark"] #ordersTabQuotesPanel select,
html[data-theme="dark"] #ordersTabQuotesPanel textarea {
  background: #160f0d !important;
  border-color: rgba(255, 232, 214, .22) !important;
  color: var(--text) !important;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: rgba(246, 224, 208, .58);
}

html[data-theme="dark"] label,
html[data-theme="dark"] .fg label,
html[data-theme="dark"] .auth-field label,
html[data-theme="dark"] .gcal-sl,
html[data-theme="dark"] .recipe-panel label {
  color: #ead2c0;
}

html[data-theme="dark"] .btn-soft,
html[data-theme="dark"] .icon-btn,
html[data-theme="dark"] .btn-gcal,
html[data-theme="dark"] .prod-filter,
html[data-theme="dark"] .products-tab,
html[data-theme="dark"] .auth-tab,
html[data-theme="dark"] .bottom-nav-main,
html[data-theme="dark"] .bottom-more-sheet,
html[data-theme="dark"] #orders .orders-tabs,
html[data-theme="dark"] #ordersTabQuickPanel .qs-tabs button,
html[data-theme="dark"] #agenda .agenda-toolbar-actions button {
  background: rgba(42, 26, 22, .96);
  border-color: var(--bd);
  color: var(--text);
}

html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .theme-fab,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] #production .prod-actions .btn-primary,
html[data-theme="dark"] #ordersTabQuickPanel .qs-sell {
  background: linear-gradient(135deg, #d95778, #ef9aa7);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 32px rgba(217, 87, 120, .28);
}

html[data-theme="dark"] .btn-soft.theme-toggle,
html[data-theme="dark"] .theme-toggle.btn-soft {
  background: rgba(224, 127, 147, .18);
  color: #ffdce2;
}

.theme-fab {
  position: fixed;
  right: 20px;
  bottom: 78px;
  z-index: 121;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border: 0;
  border-radius: 999px;
  background: var(--cocoa);
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

body.page-dashboard .theme-fab {
  display: none;
}

html[data-theme="dark"] .support-fab {
  background: #d95778;
  color: #fff;
}

html[data-theme="dark"] .bottom-nav-main,
html[data-theme="dark"] .bottom-more-sheet {
  background: rgba(25, 15, 12, .96);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
}

html[data-theme="dark"] .bottom-nav button {
  color: #d9c1b2;
}

html[data-theme="dark"] .bottom-more-sheet button {
  background: rgba(42, 26, 22, .98);
}

html[data-theme="dark"] .badge,
html[data-theme="dark"] .gcal-badge,
html[data-theme="dark"] .gcal-sync-message {
  background: rgba(42, 26, 22, .95);
  border-color: var(--bd);
  color: var(--text);
}

html[data-theme="dark"] .badge.g,
html[data-theme="dark"] .gcal-badge.connected,
html[data-theme="dark"] .gcal-sync-message {
  background: rgba(114, 195, 154, .14);
  color: #bdf0d2;
  border-color: rgba(114, 195, 154, .25);
}

html[data-theme="dark"] .badge.r,
html[data-theme="dark"] .badge.a {
  background: rgba(224, 127, 147, .16);
  color: #ffc4ce;
}

html[data-theme="dark"] #agenda .agenda-calendar-grid .cal-cell,
html[data-theme="dark"] .cal-cell {
  background: rgba(42, 26, 22, .86);
  border-color: rgba(255, 232, 214, .16);
  color: var(--text);
}

html[data-theme="dark"] #agenda .agenda-calendar-grid .cal-cell.dim,
html[data-theme="dark"] .cal-cell.dim {
  opacity: .42;
}

html[data-theme="dark"] #agenda .agenda-calendar-grid .cal-cell.today,
html[data-theme="dark"] #agenda .agenda-calendar-grid .cal-cell.selected,
html[data-theme="dark"] .cal-cell.today,
html[data-theme="dark"] .cal-cell.selected {
  background: rgba(224, 127, 147, .18);
  border-color: #e07f93;
  box-shadow: 0 10px 28px rgba(224, 127, 147, .18);
}

html[data-theme="dark"] #agenda .agenda-calendar-grid .cal-cell strong,
html[data-theme="dark"] .cal-cell strong {
  color: var(--text);
}

html[data-theme="dark"] #agenda .agenda-calendar-grid .cal-cell .ev,
html[data-theme="dark"] .cal-cell .ev {
  background: rgba(114, 195, 154, .16);
  border-color: rgba(114, 195, 154, .25);
  color: #c9f4dc;
}

html[data-theme="dark"] #agenda .agenda-calendar-grid .cal-cell .ev.delivery,
html[data-theme="dark"] .cal-cell .ev.delivery {
  background: rgba(224, 127, 147, .18);
  border-color: rgba(224, 127, 147, .30);
  color: #ffd1d8;
}

html[data-theme="dark"] #production {
  --prod-ink: #f7eadf;
  --prod-muted: #c6ad9d;
  --prod-line: rgba(255, 232, 214, .16);
  --prod-paper: #201512;
  --prod-soft: #2a1a16;
}

html[data-theme="dark"] #production .prod-progress-card {
  background: linear-gradient(135deg, #321a15, #1d100d);
  border: 1px solid var(--bd);
}

html[data-theme="dark"] #production .prod-column,
html[data-theme="dark"] #production .prod-card,
html[data-theme="dark"] #production .prod-dropzone,
html[data-theme="dark"] #production .prod-card-items {
  background: rgba(42, 26, 22, .92);
  border-color: var(--bd);
  color: var(--text);
}

html[data-theme="dark"] #ordersTabQuickPanel .qs-product img {
  background: #2a1a16;
}

html[data-theme="dark"] #ordersTabQuickPanel .qs-stepper,
html[data-theme="dark"] #ordersTabQuickPanel .qs-summary,
html[data-theme="dark"] #ordersTabQuickPanel .qs-search-row,
html[data-theme="dark"] #orders .order-list-card,
html[data-theme="dark"] #products #productsList .item,
html[data-theme="dark"] #stock #stockList .item,
html[data-theme="dark"] #relationship .item {
  background: rgba(32, 21, 18, .94);
  border-color: var(--bd);
}

html[data-theme="dark"] #productsTab-receita .recipe-panel,
html[data-theme="dark"] #productsTab-receita .recipe-entry-grid,
html[data-theme="dark"] #productsTab-receita .recipe-total-card,
html[data-theme="dark"] #productsTab-receita .recipe-history-item,
html[data-theme="dark"] #productsTab-packaging .panel,
html[data-theme="dark"] #settings .gcal-panel,
html[data-theme="dark"] #settings .gcal-connect-banner {
  background: rgba(32, 21, 18, .94);
  border-color: var(--bd);
  color: var(--text);
}

html[data-theme="dark"] .support-chat-messages,
html[data-theme="dark"] .support-chat-suggestions,
html[data-theme="dark"] .support-chat-compose {
  background: #160f0d;
  border-color: var(--bd);
}

html[data-theme="dark"] .support-message.bot > div {
  background: #241714;
  border-color: var(--bd);
  color: var(--text);
}

.finance-sales-filters { margin-bottom: 14px; }
.finance-filter-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.finance-filter-heading .btn { min-height:34px; padding:7px 13px; }
.finance-filter-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.finance-metric-button { width:100%; border:1px solid var(--bd); text-align:left; font:inherit; cursor:pointer; appearance:none; }
.finance-metric-button:hover { border-color:var(--pink); transform:translateY(-1px); }
.finance-metric-button em { display:block; margin-top:8px; font-size:11px; font-style:normal; font-weight:700; color:var(--muted); }
.finance-metric-button em.up { color:#15845c; }
.finance-metric-button em.down { color:#c84857; }
.finance-payment-panel { margin-top:14px; }
.finance-payment-breakdown { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.finance-payment-item { min-width:0; padding:14px; border:1px solid var(--bd); border-radius:8px; background:var(--surface2); }
.finance-payment-item > span,.finance-payment-item > strong,.finance-payment-item > small { display:block; }
.finance-payment-item > span { color:var(--muted); font-size:12px; }
.finance-payment-item > strong { margin:5px 0 8px; font-size:18px; color:var(--cocoa); }
.finance-payment-item > div { height:5px; overflow:hidden; border-radius:3px; background:var(--bd); }
.finance-payment-item > div i { display:block; height:100%; background:var(--pink); border-radius:3px; }
.finance-payment-item > small { margin-top:6px; color:var(--muted); font-size:10px; }
.finance-detail-modal { width:min(680px,100%); max-height:min(82vh,760px); overflow:auto; }
@media(max-width:900px){.finance-filter-grid,.finance-payment-breakdown{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:560px){.finance-filter-grid,.finance-payment-breakdown{grid-template-columns:1fr;}.finance-filter-heading{align-items:flex-start;}.finance-metric-button em{font-size:10px;}}

html[data-theme="dark"] .modal-overlay,
html[data-theme="dark"] .legal-overlay,
html[data-theme="dark"] .support-chat-overlay {
  background: rgba(8, 5, 4, .72);
}

html[data-theme="dark"] table,
html[data-theme="dark"] th,
html[data-theme="dark"] td {
  color: var(--text);
  border-color: var(--bd);
}

html[data-theme="dark"] hr,
html[data-theme="dark"] .divider {
  border-color: var(--bd);
}

@media (min-width: 901px) {
  html[data-theme="dark"] .content {
    padding-left: 88px;
  }
}

@media (max-width: 900px) {
  .theme-fab {
    right: 14px;
    bottom: calc(150px + env(safe-area-inset-bottom));
    min-height: 44px;
  }

  html[data-theme="dark"] .content {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (max-width: 430px) {
  .theme-fab {
    right: 10px;
    bottom: calc(156px + env(safe-area-inset-bottom));
    padding-inline: 12px;
    font-size: 11px;
  }

  html[data-theme="dark"] button,
  html[data-theme="dark"] .btn,
  html[data-theme="dark"] .icon-btn {
    min-height: 44px;
  }
}

/* Dark mode visual polish: higher contrast and calmer premium palette */
html[data-theme="dark"] {
  --cream: #0f0908;
  --white: #1b1110;
  --surface: #1b1110;
  --surface2: #241715;
  --surface3: #30201c;
  --text: #fff4ea;
  --muted: #d6bdaa;
  --cocoa: #fff4ea;
  --cocoa-lt: #e4c8b5;
  --warm: #d6bdaa;
  --bd: rgba(255, 238, 224, .18);
  --rose: #ee6f8f;
  --rose-dk: #ff9bae;
  --petal: rgba(238, 111, 143, .20);
  --mint: #87d9ac;
  --sky: #9ac8f4;
}

html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] .app-shell,
html[data-theme="dark"] .content {
  background:
    radial-gradient(circle at 20% -10%, rgba(238, 111, 143, .16), transparent 32%),
    radial-gradient(circle at 102% 4%, rgba(135, 217, 172, .08), transparent 28%),
    linear-gradient(180deg, #120a09 0%, #0f0908 52%, #160d0b 100%) !important;
}

html[data-theme="dark"] #app,
html[data-theme="dark"] .page {
  color: var(--text);
}

html[data-theme="dark"] #app :is(h1, h2, h3, h4, .brand, .auth-title, .dashboard-head h1, .products-hero h1, .stock-hero h1, .agenda-hero h1, .quotes-head h2, .panel-head h2, .prod-page-head h2, .printer-page-head h1) {
  color: #fff7ef !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .18);
}

html[data-theme="dark"] #app :is(p, small, .sub, .muted, .eyebrow, .dashboard-kicker, .products-kicker, .stock-kicker, .prod-subtitle, .agenda-card-head p, .agenda-toolbar p, .gcal-panel-sub, .gcal-sd, .recipe-help, .quote-card-meta) {
  color: #d9c0ae !important;
}

html[data-theme="dark"] #app :is(label, .fg label, .auth-field label, .recipe-panel label, .gcal-sl, .field-label) {
  color: #f1d7c4 !important;
}

html[data-theme="dark"] :is(.panel, .dashboard-panel, .dashboard-card, .metric, .item, .list, .summary-box, .cart-wrap, .modal-card, .legal-card, .printer-card, .gcal-panel, .gcal-connect-banner, .agenda-shell, .agenda-day-panel, .agenda-map-panel, .agenda-orders-panel, .agenda-metric-card, #orders .orders-form-panel, #orders .orders-list-panel, #ordersTabQuotesPanel .quotes-panel, #ordersTabQuotesPanel .quotes-list-panel, #products .panel, #stock .stock-panel, #production .prod-metric, #production .prod-empty) {
  background:
    linear-gradient(180deg, rgba(36, 23, 21, .98), rgba(27, 17, 16, .98)) !important;
  border-color: rgba(255, 238, 224, .17) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .34) !important;
}

html[data-theme="dark"] :is(input, select, textarea, .auth-pw-wrap) {
  background: #120c0b !important;
  border-color: rgba(255, 238, 224, .24) !important;
  color: #fff6ed !important;
}

html[data-theme="dark"] :is(input, select, textarea):focus {
  border-color: rgba(238, 111, 143, .78) !important;
  box-shadow: 0 0 0 3px rgba(238, 111, 143, .16) !important;
  outline: none !important;
}

html[data-theme="dark"] :is(input, textarea)::placeholder {
  color: rgba(255, 238, 224, .58) !important;
}

html[data-theme="dark"] .sidebar {
  background: rgba(18, 10, 9, .98) !important;
  border-right-color: rgba(255, 238, 224, .13) !important;
}

html[data-theme="dark"] .sidebar .sb-brand,
html[data-theme="dark"] .sidebar .sb-label {
  color: #fff4ea !important;
}

html[data-theme="dark"] .nav-btn {
  color: #d7bdab !important;
}

html[data-theme="dark"] .nav-btn:hover {
  background: rgba(238, 111, 143, .14) !important;
  color: #fff4ea !important;
}

html[data-theme="dark"] .nav-btn.active,
html[data-theme="dark"] .bottom-nav button.active,
html[data-theme="dark"] .bottom-more-toggle.active,
html[data-theme="dark"] .products-tab.active,
html[data-theme="dark"] .auth-tab.active,
html[data-theme="dark"] #orders .orders-tabs button.active,
html[data-theme="dark"] #ordersTabQuickPanel .qs-tabs button.active,
html[data-theme="dark"] #production .prod-filter.active {
  background: linear-gradient(135deg, #e74f7b 0%, #ff8fa5 100%) !important;
  color: #fff !important;
  border-color: transparent !important;
}

html[data-theme="dark"] :is(.btn-primary, .theme-fab, .theme-toggle, .support-fab, #ordersTabQuickPanel .qs-sell) {
  background: linear-gradient(135deg, #e74f7b 0%, #ff8fa5 100%) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 14px 34px rgba(231, 79, 123, .28) !important;
}

html[data-theme="dark"] :is(.btn-soft, .icon-btn, .btn-gcal, .prod-filter, .products-tab, .auth-tab, .bottom-more-sheet button, #agenda .agenda-toolbar-actions button) {
  background: rgba(255, 238, 224, .06) !important;
  border-color: rgba(255, 238, 224, .18) !important;
  color: #f7dfcc !important;
}

html[data-theme="dark"] .metric span,
html[data-theme="dark"] #production .prod-metric span,
html[data-theme="dark"] #agenda .agenda-metric-card span {
  color: #d6bdaa !important;
}

html[data-theme="dark"] .metric strong,
html[data-theme="dark"] #production .prod-metric strong,
html[data-theme="dark"] #agenda .agenda-metric-card strong {
  color: #fff7ef !important;
}

html[data-theme="dark"] #production .prod-progress-card,
html[data-theme="dark"] .dashboard-head,
html[data-theme="dark"] #ordersTabQuickPanel .qs-head,
html[data-theme="dark"] .auth-brand-side {
  background:
    linear-gradient(135deg, rgba(69, 26, 31, .98), rgba(30, 17, 14, .98)) !important;
  border-color: rgba(255, 238, 224, .16) !important;
}

html[data-theme="dark"] #production .prod-column,
html[data-theme="dark"] #production .prod-card,
html[data-theme="dark"] #production .prod-card-items,
html[data-theme="dark"] #orders .order-list-card,
html[data-theme="dark"] #ordersTabQuickPanel .qs-product,
html[data-theme="dark"] #ordersTabQuickPanel .qs-summary,
html[data-theme="dark"] #ordersTabQuickPanel .qs-stepper,
html[data-theme="dark"] #products #productsList .item,
html[data-theme="dark"] #stock #stockList .item,
html[data-theme="dark"] #relationship .item,
html[data-theme="dark"] #productsTab-receita .recipe-panel,
html[data-theme="dark"] #productsTab-receita .recipe-entry-grid,
html[data-theme="dark"] #productsTab-receita .recipe-total-card,
html[data-theme="dark"] #productsTab-receita .recipe-history-item {
  background: rgba(29, 18, 16, .96) !important;
  border-color: rgba(255, 238, 224, .16) !important;
  color: #fff4ea !important;
}

html[data-theme="dark"] #agenda .agenda-calendar-grid .cal-head {
  color: #d9c0ae !important;
}

html[data-theme="dark"] #agenda .agenda-calendar-grid .cal-cell,
html[data-theme="dark"] .cal-cell {
  background: #201411 !important;
  border-color: rgba(255, 238, 224, .18) !important;
}

html[data-theme="dark"] #agenda .agenda-calendar-grid .cal-cell strong,
html[data-theme="dark"] .cal-cell strong {
  color: #fff4ea !important;
}

html[data-theme="dark"] #agenda .agenda-calendar-grid .cal-cell.today,
html[data-theme="dark"] #agenda .agenda-calendar-grid .cal-cell.selected,
html[data-theme="dark"] .cal-cell.today,
html[data-theme="dark"] .cal-cell.selected {
  background: rgba(231, 79, 123, .18) !important;
  border-color: #ff8fa5 !important;
}

html[data-theme="dark"] #agenda .agenda-calendar-grid .cal-cell.selected strong {
  background: #ff8fa5 !important;
  color: #2b1116 !important;
}

html[data-theme="dark"] #agenda .agenda-calendar-grid .cal-cell .ev,
html[data-theme="dark"] .cal-cell .ev,
html[data-theme="dark"] .badge.g {
  background: rgba(135, 217, 172, .16) !important;
  border-color: rgba(135, 217, 172, .35) !important;
  color: #c9f8dc !important;
}

html[data-theme="dark"] #agenda .agenda-calendar-grid .cal-cell .ev.delivery,
html[data-theme="dark"] .badge.r,
html[data-theme="dark"] .badge.a {
  background: rgba(255, 143, 165, .16) !important;
  border-color: rgba(255, 143, 165, .36) !important;
  color: #ffd9df !important;
}

html[data-theme="dark"] .gcal-badge.connected,
html[data-theme="dark"] .gcal-sync-message {
  background: rgba(135, 217, 172, .14) !important;
  border-color: rgba(135, 217, 172, .32) !important;
  color: #c9f8dc !important;
}

html[data-theme="dark"] .gcal-badge.disconnected {
  background: rgba(255, 238, 224, .06) !important;
  color: #f7dfcc !important;
}

html[data-theme="dark"] .bottom-nav-main,
html[data-theme="dark"] .bottom-more-sheet {
  background: rgba(18, 10, 9, .97) !important;
  border-color: rgba(255, 238, 224, .15) !important;
}

html[data-theme="dark"] .bottom-nav button {
  color: #dcc2b0 !important;
}

html[data-theme="dark"] .support-chat,
html[data-theme="dark"] .support-chat-compose,
html[data-theme="dark"] .support-chat-suggestions,
html[data-theme="dark"] .support-chat-messages {
  background: #140c0b !important;
  color: #fff4ea !important;
}

html[data-theme="dark"] .support-message.bot > div {
  background: #211512 !important;
  color: #fff4ea !important;
}

html[data-theme="dark"] a,
html[data-theme="dark"] .prod-details-btn,
html[data-theme="dark"] .prod-card-link {
  color: #ffb2c0 !important;
}

html[data-theme="dark"] .theme-fab {
  border: 1px solid rgba(255, 255, 255, .16) !important;
}

/* Dark mode sweep fixes for page-specific inherited colors */
html[data-theme="dark"] :is(#agenda, #agenda *, #orders, #orders *, #dashboard, #dashboard *) {
  border-color: rgba(255, 238, 224, .16);
}

html[data-theme="dark"] #agenda,
html[data-theme="dark"] #agenda :is(.agenda-hero, .agenda-main-grid, .agenda-metric-grid, .agenda-day-date, .agenda-day-date strong, #agendaDayNumber, #agendaDayMonth) {
  color: #fff4ea !important;
}

html[data-theme="dark"] #agenda :is(.agenda-hero > div, .agenda-main-grid > div, .agenda-metric-grid > div) {
  color: inherit !important;
}

html[data-theme="dark"] #dashboard .dashboard-period,
html[data-theme="dark"] #orders :is(.order-summary-card, .order-side-note, .order-review-card, .order-side-summary, .order-payment-card) {
  background: rgba(29, 18, 16, .96) !important;
  border: 1px solid rgba(255, 238, 224, .16) !important;
  color: #fff4ea !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .30) !important;
}

html[data-theme="dark"] #orders :is(#ordersTabList, .orders-form-panel, .orders-steps, .orders-steps button, .orders-steps span, .order-form-main, .order-side-summary) {
  color: #fff4ea !important;
}

html[data-theme="dark"] #orders .orders-steps :is(button, span) {
  background: rgba(255, 238, 224, .06) !important;
  border-color: rgba(255, 238, 224, .18) !important;
}

html[data-theme="dark"] #orders .orders-steps :is(button.active, span.active) {
  background: rgba(231, 79, 123, .16) !important;
  border-color: rgba(255, 143, 165, .48) !important;
  color: #fff !important;
}

html[data-theme="dark"] #orders .orders-steps :is(button.active b, span.active b) {
  background: #ff8fa5 !important;
  color: #2b1116 !important;
}

html[data-theme="dark"] #orders :is(.order-summary-card span, .order-side-note span, .order-summary-card p, .order-side-note p) {
  color: #d9c0ae !important;
}

html[data-theme="dark"] #orders :is(.order-summary-card strong, .order-side-note strong, .order-summary-total, .order-total, .order-grand-total) {
  color: #fff7ef !important;
}

/* Premium SaaS finishing layer for dark mode */
html[data-theme="dark"] {
  --premium-card-radius: 18px;
  --premium-control-radius: 13px;
  --premium-shadow: 0 18px 50px rgba(0, 0, 0, .38);
  --premium-inset: inset 0 1px 0 rgba(255, 255, 255, .045);
  --premium-focus: 0 0 0 3px rgba(255, 143, 165, .20), 0 0 0 1px rgba(255, 143, 165, .58);
}

html[data-theme="dark"] * {
  scrollbar-color: rgba(255, 143, 165, .42) rgba(255, 238, 224, .05);
}

html[data-theme="dark"] *::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html[data-theme="dark"] *::-webkit-scrollbar-track {
  background: rgba(255, 238, 224, .05);
}

html[data-theme="dark"] *::-webkit-scrollbar-thumb {
  background: rgba(255, 143, 165, .38);
  border: 2px solid rgba(18, 10, 9, .96);
  border-radius: 999px;
}

html[data-theme="dark"] :is(.panel, .dashboard-panel, .metric, .item, .list, .summary-box, .cart-wrap, .modal-card, .legal-card, .printer-card, .gcal-panel, .gcal-connect-banner, .agenda-shell, .agenda-day-panel, .agenda-map-panel, .agenda-orders-panel, .agenda-metric-card, .prod-card, .prod-column, .order-list-card, .qs-product, .recipe-panel, .recipe-total-card, .stock-panel) {
  border-radius: var(--premium-card-radius) !important;
  box-shadow: var(--premium-shadow), var(--premium-inset) !important;
}

html[data-theme="dark"] :is(.panel, .dashboard-panel, .metric, .item, .agenda-shell, .agenda-day-panel, .agenda-map-panel, .agenda-orders-panel, .prod-card, .order-list-card, .qs-product, #products #productsList .item, #stock #stockList .item) {
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

html[data-theme="dark"] :is(.metric, .item, .prod-card, .order-list-card, .qs-product, #products #productsList .item, #stock #stockList .item):hover {
  transform: translateY(-2px);
  border-color: rgba(255, 143, 165, .34) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .46), 0 0 0 1px rgba(255, 143, 165, .08) !important;
}

html[data-theme="dark"] :is(button, .btn, .icon-btn, .nav-btn, input, select, textarea, a, [tabindex]):focus-visible {
  outline: none !important;
  box-shadow: var(--premium-focus) !important;
}

html[data-theme="dark"] :is(.btn, .icon-btn, .btn-gcal, .prod-filter, .products-tab, .auth-tab, .nav-btn, .bottom-nav button, .bottom-more-sheet button) {
  position: relative;
  overflow: hidden;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease;
}

html[data-theme="dark"] :is(.btn, .icon-btn, .btn-gcal, .prod-filter, .products-tab, .auth-tab, .nav-btn, .bottom-nav button, .bottom-more-sheet button):hover {
  transform: translateY(-1px);
}

html[data-theme="dark"] :is(.btn, .icon-btn, .btn-gcal, .prod-filter, .products-tab, .auth-tab, .nav-btn, .bottom-nav button, .bottom-more-sheet button):active {
  transform: translateY(0) scale(.985);
}

html[data-theme="dark"] :is(button:disabled, .btn:disabled, .icon-btn:disabled, input:disabled, select:disabled, textarea:disabled) {
  cursor: not-allowed !important;
  opacity: .56 !important;
  filter: saturate(.72);
}

html[data-theme="dark"] :is(.btn-danger, .icon-btn.d, button.d, .danger) {
  background: rgba(255, 111, 111, .12) !important;
  border-color: rgba(255, 111, 111, .34) !important;
  color: #ffc9c9 !important;
}

html[data-theme="dark"] :is(.btn-danger, .icon-btn.d, button.d):hover {
  background: rgba(255, 111, 111, .20) !important;
}

html[data-theme="dark"] :is(table, .table) {
  background: rgba(29, 18, 16, .94) !important;
  border: 1px solid rgba(255, 238, 224, .13) !important;
  border-radius: 16px;
}

html[data-theme="dark"] :is(th, thead td) {
  background: rgba(255, 238, 224, .055) !important;
  color: #f5d9c4 !important;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

html[data-theme="dark"] :is(td, tbody td) {
  color: #fff4ea !important;
}

html[data-theme="dark"] tbody tr:hover {
  background: rgba(255, 143, 165, .075) !important;
}

html[data-theme="dark"] :is(.badge, .prod-status-badge, .prod-payment-warning, .prod-payment-ok, .gcal-badge) {
  border-radius: 999px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  font-weight: 800;
}

html[data-theme="dark"] :is(.prod-status-badge, .badge) {
  background: rgba(255, 238, 224, .08) !important;
  border: 1px solid rgba(255, 238, 224, .16) !important;
  color: #f7dfcc !important;
}

html[data-theme="dark"] :is(.prod-payment-ok, .status-entregue, .status-pronto) {
  background: rgba(135, 217, 172, .16) !important;
  color: #c9f8dc !important;
}

html[data-theme="dark"] :is(.prod-payment-warning, .status-pendente, .status-atrasado) {
  background: rgba(255, 193, 119, .14) !important;
  color: #ffe1b8 !important;
}

html[data-theme="dark"] #toast {
  background: rgba(29, 18, 16, .96) !important;
  border: 1px solid rgba(255, 238, 224, .18);
  color: #fff4ea !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .42);
  backdrop-filter: blur(14px);
}

html[data-theme="dark"] #toast.success {
  border-color: rgba(135, 217, 172, .34);
}

html[data-theme="dark"] #toast.error {
  border-color: rgba(255, 111, 111, .40);
}

html[data-theme="dark"] :is(.modal-overlay, .legal-overlay, .support-chat-overlay) {
  backdrop-filter: blur(14px);
}

html[data-theme="dark"] :is(.modal-header, .modal-body, .modal-row, .modal-section, .legal-head, .legal-body, .legal-check) {
  color: #fff4ea !important;
  border-color: rgba(255, 238, 224, .14) !important;
}

html[data-theme="dark"] :is(.modal-label, .modal-section p, .legal-body p) {
  color: #d9c0ae !important;
}

html[data-theme="dark"] :is(.modal-val, .modal-section h4, .legal-head h2, .legal-body h3) {
  color: #fff7ef !important;
}

html[data-theme="dark"] :is(.prod-empty, .production-empty, .cart-empty, .empty, .prod-column-empty) {
  background:
    linear-gradient(180deg, rgba(36, 23, 21, .78), rgba(27, 17, 16, .78)) !important;
  border: 1px dashed rgba(255, 143, 165, .28) !important;
  color: #d9c0ae !important;
}

html[data-theme="dark"] :is(.prod-empty h3, .production-empty strong, .empty h3) {
  color: #fff7ef !important;
}

html[data-theme="dark"] .chart-wrap,
html[data-theme="dark"] .bar-chart,
html[data-theme="dark"] canvas {
  color: #fff4ea;
}

html[data-theme="dark"] .bar {
  background: linear-gradient(180deg, #ff8fa5, #e74f7b) !important;
  box-shadow: 0 10px 24px rgba(231, 79, 123, .22);
}

html[data-theme="dark"] .app-header {
  background: rgba(15, 9, 8, .72) !important;
  border-bottom-color: rgba(255, 238, 224, .12) !important;
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 35;
}

html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .bottom-nav-main,
html[data-theme="dark"] .bottom-more-sheet {
  backdrop-filter: blur(18px);
}

html[data-theme="dark"] .theme-fab,
html[data-theme="dark"] .support-fab {
  backdrop-filter: blur(12px);
}

@media (prefers-reduced-motion: no-preference) {
  html[data-theme="dark"] .page.active {
    animation: fcDarkPageIn .22s ease both;
  }

  html[data-theme="dark"] :is(.metric, .panel, .item, .agenda-shell, .orders-form-panel, .prod-card) {
    animation: fcDarkLiftIn .28s ease both;
  }
}

@keyframes fcDarkPageIn {
  from { opacity: .72; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fcDarkLiftIn {
  from { opacity: .88; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
  html[data-theme="dark"] :is(.panel, .dashboard-panel, .metric, .item, .list, .summary-box, .cart-wrap, .agenda-shell, .agenda-day-panel, .agenda-map-panel, .agenda-orders-panel, #orders .orders-form-panel, #orders .orders-list-panel, #products .panel, #stock .stock-panel) {
    border-radius: 16px !important;
  }

  html[data-theme="dark"] .app-header {
    position: static;
  }
}

/* Dark mode contrast rescue for production screenshots */
html[data-theme="dark"] {
  --dark-bg-0: #0e0706;
  --dark-bg-1: #150c0a;
  --dark-bg-2: #1d1210;
  --dark-card: #241714;
  --dark-card-2: #2b1b18;
  --dark-card-soft: rgba(255, 244, 234, .055);
  --dark-border: rgba(255, 228, 207, .18);
  --dark-border-strong: rgba(255, 228, 207, .28);
  --dark-text: #fff8ef;
  --dark-text-2: #f2d7c3;
  --dark-muted: #d2b29d;
  --dark-muted-2: #b99582;
  --dark-pink: #f0628d;
  --dark-pink-2: #ff9bb2;
  --dark-green: #9be6bb;
  --dark-gold: #f3cb7a;
}

html[data-theme="dark"] body,
html[data-theme="dark"] #app,
html[data-theme="dark"] .app-shell,
html[data-theme="dark"] .content,
html[data-theme="dark"] .page {
  background:
    radial-gradient(circle at 28% -6%, rgba(240, 98, 141, .13), transparent 34%),
    radial-gradient(circle at 96% 0%, rgba(243, 203, 122, .08), transparent 31%),
    linear-gradient(180deg, var(--dark-bg-1), var(--dark-bg-0) 54%, #120907) !important;
  color: var(--dark-text) !important;
}

html[data-theme="dark"] #products::before,
html[data-theme="dark"] #stock::before {
  content: none !important;
  display: none !important;
  background: none !important;
}

html[data-theme="dark"] #products,
html[data-theme="dark"] #stock {
  background:
    radial-gradient(circle at 22% -10%, rgba(240, 98, 141, .10), transparent 34%),
    radial-gradient(circle at 96% 2%, rgba(243, 203, 122, .07), transparent 30%),
    linear-gradient(180deg, var(--dark-bg-1), var(--dark-bg-0) 58%, #120907) !important;
  isolation: isolate;
}

html[data-theme="dark"] #app :is(h1, h2, h3, h4, h5, h6, strong, b, .nm, .brand, .auth-title, .dashboard-head h1, .prod-page-head h2, .products-hero h1, .stock-hero h1, .agenda-hero h1, .orders-polish-hero h1, .quotes-head h2, .panel-head h2, .stock-panel-head h2) {
  color: var(--dark-text) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

html[data-theme="dark"] #app :is(p, small, span, label, .sub, .muted, .eyebrow, .dashboard-kicker, .products-kicker, .stock-kicker, .orders-polish-kicker, .prod-subtitle, .agenda-card-head p, .agenda-toolbar p, .gcal-panel-sub, .gcal-sd, .quote-card-meta, .recipe-help) {
  opacity: 1 !important;
}

html[data-theme="dark"] #app :is(p, small, .sub, .muted, .prod-subtitle, .agenda-card-head p, .agenda-toolbar p, .gcal-panel-sub, .gcal-sd, .quote-card-meta, .recipe-help) {
  color: var(--dark-muted) !important;
}

html[data-theme="dark"] #app :is(label, .fg label, .auth-field label, .field-label, .recipe-panel label, .gcal-sl) {
  color: var(--dark-text-2) !important;
}

html[data-theme="dark"] #dashboard :is(.metric, .dashboard-panel, .dashboard-period, .chart-summary, .bar-track, .list, .item, .empty),
html[data-theme="dark"] #production :is(.panel, .prod-metric, .prod-progress-card, .prod-empty, .prod-column, .prod-card, .prod-dropzone, .prod-card-items, .prod-next, .prod-tip, .production-summary-card, .production-toolbar, .production-empty),
html[data-theme="dark"] #orders :is(.orders-polish-hero, .orders-polish-metrics > div, .orders-form-panel, .orders-list-panel, .orders-row, .orders-steps, .orders-steps button, .orders-steps span, .order-form-main, .order-side-summary, .order-summary-card, .order-side-note, .order-review, .order-list-card, .quick-sale-order, .quotes-panel, .quotes-list-panel),
html[data-theme="dark"] #agenda :is(.agenda-hero, .gcal-panel, .gcal-connect-banner, .agenda-metric-card, .agenda-shell, .agenda-day-panel, .agenda-map-panel, .agenda-orders-panel, .agenda-order-card, .agenda-route-art, .agenda-day-event),
html[data-theme="dark"] #products :is(.products-hero, .panel, .summary-box, .stock-link-box, #psSuggestion, .list, .item, .recipe-panel, .recipe-entry-grid, .recipe-total-card, .recipe-history-item),
html[data-theme="dark"] #menu :is(.panel, .item, .menu-product-card, .summary-box),
html[data-theme="dark"] #stock :is(.stock-panel, .stock-panel-head, .metric, .stock-help, .item, .summary-box),
html[data-theme="dark"] #relationship :is(.panel, .item),
html[data-theme="dark"] #settings :is(.panel, .gcal-panel, .gcal-connect-banner),
html[data-theme="dark"] #finance :is(.panel, .metric, .item),
html[data-theme="dark"] #clients :is(.panel, .item),
html[data-theme="dark"] #printers :is(.panel, .printer-card, .printer-token-box, .printer-note) {
  background:
    linear-gradient(180deg, rgba(43, 27, 24, .96), rgba(29, 18, 16, .98)) !important;
  border-color: var(--dark-border) !important;
  color: var(--dark-text) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .04) !important;
}

html[data-theme="dark"] #dashboard .bar-track,
html[data-theme="dark"] #agenda .agenda-route-art,
html[data-theme="dark"] #menuProductSelector .menu-product-card,
html[data-theme="dark"] #menu .item,
html[data-theme="dark"] #products .item,
html[data-theme="dark"] #stock .item,
html[data-theme="dark"] #orders .orders-row {
  background: rgba(18, 10, 9, .62) !important;
}

html[data-theme="dark"] #dashboard :is(.metric span, .chart-period, .bar-col .val, .bar-col .lbl, .bar-col .day, .item .sub),
html[data-theme="dark"] #production :is(.prod-metric span, .prod-card-meta, .prod-total, .prod-column-empty, .prod-tip p, .production-summary-card span, .production-summary-card small),
html[data-theme="dark"] #orders :is(.orders-form-sub, .orders-row-copy span, .orders-row-copy small, .order-summary-card p, .order-side-note span, .order-side-note p, .order-review p),
html[data-theme="dark"] #agenda :is(.agenda-card-head p, .agenda-order-meta, .agenda-day-panel p, .agenda-map-panel p, .agenda-orders-panel p),
html[data-theme="dark"] #products :is(.panel > p, .recipe-title-wrap p, .recipe-history-sub, .stock-link-box p),
html[data-theme="dark"] #menu :is(.panel > p, .item small),
html[data-theme="dark"] #stock :is(.stock-panel-head p, .stock-help, .item small) {
  color: var(--dark-muted) !important;
}

html[data-theme="dark"] #dashboard :is(.metric strong, .chart-summary strong, .item .nm),
html[data-theme="dark"] #production :is(.prod-metric strong, .prod-progress-card strong, .prod-card-title, .prod-total strong, .production-summary-card strong),
html[data-theme="dark"] #orders :is(.orders-row-copy strong, .orders-row-price, .order-summary-card h3, .order-summary-card strong, .order-side-note strong, .order-grand-total, .order-total),
html[data-theme="dark"] #agenda :is(.agenda-metric-card strong, .agenda-day-date, .agenda-day-date strong, #agendaDayNumber, #agendaDayMonth, .agenda-order-title),
html[data-theme="dark"] #products :is(.item strong, .recipe-title-wrap h2, #recipeTotal),
html[data-theme="dark"] #menu :is(.item strong, .menu-product-card strong),
html[data-theme="dark"] #stock :is(.item strong, .metric strong) {
  color: var(--dark-text) !important;
}

html[data-theme="dark"] #orders :is(.order-summary-card div, .order-summary-card div span, .order-summary-card div strong, .order-summary-card p, .order-side-note, .order-side-note span) {
  color: var(--dark-text-2) !important;
}

html[data-theme="dark"] #orders :is(.order-summary-card .order-grand-total, .order-summary-card .order-total, .order-summary-card div:last-child, .order-summary-card div:last-child strong) {
  color: var(--dark-text) !important;
}

html[data-theme="dark"] :is(input, select, textarea),
html[data-theme="dark"] #app :is(input, select, textarea),
html[data-theme="dark"] #products .form-grid input,
html[data-theme="dark"] #products .form-grid select,
html[data-theme="dark"] #products .search-input,
html[data-theme="dark"] #products #menuPublicLink,
html[data-theme="dark"] #stock :is(input, select, textarea),
html[data-theme="dark"] #orders :is(input, select, textarea),
html[data-theme="dark"] #agenda :is(input, select, textarea),
html[data-theme="dark"] #menu :is(input, select, textarea) {
  background: rgba(12, 7, 6, .94) !important;
  border-color: var(--dark-border-strong) !important;
  color: var(--dark-text) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035) !important;
}

html[data-theme="dark"] :is(input, select, textarea)::placeholder {
  color: rgba(242, 215, 195, .62) !important;
}

html[data-theme="dark"] :is(input, select, textarea):focus {
  border-color: rgba(255, 155, 178, .82) !important;
  background: rgba(20, 12, 10, .98) !important;
  box-shadow: 0 0 0 3px rgba(240, 98, 141, .18), inset 0 1px 0 rgba(255, 255, 255, .04) !important;
}

html[data-theme="dark"] :is(.btn-soft, .icon-btn, .btn-gcal, .prod-filter, .products-tab, .auth-tab, .orders-tabs button, .qs-tabs button, .agenda-toolbar-actions button, .production-filters button) {
  background: rgba(255, 244, 234, .08) !important;
  border-color: var(--dark-border) !important;
  color: var(--dark-text-2) !important;
}

html[data-theme="dark"] :is(.btn-soft:hover, .icon-btn:hover, .btn-gcal:hover, .prod-filter:hover, .products-tab:hover, .auth-tab:hover, .orders-tabs button:hover, .qs-tabs button:hover, .agenda-toolbar-actions button:hover, .production-filters button:hover) {
  background: rgba(255, 155, 178, .14) !important;
  color: var(--dark-text) !important;
}

html[data-theme="dark"] :is(.btn-primary, .theme-fab, .theme-toggle, .support-fab, .products-tab.active, .auth-tab.active, .orders-tabs button.active, .qs-tabs button.active, .prod-filter.active, .production-filters button.active) {
  background: linear-gradient(135deg, #e33270, #ff7fa1) !important;
  border-color: rgba(255, 155, 178, .56) !important;
  color: #fff !important;
  box-shadow: 0 14px 34px rgba(227, 50, 112, .32) !important;
}

html[data-theme="dark"] #agenda .agenda-calendar-grid {
  background: rgba(17, 10, 8, .42) !important;
}

html[data-theme="dark"] #agenda .agenda-calendar-grid .cal-head {
  color: var(--dark-text-2) !important;
}

html[data-theme="dark"] #agenda .agenda-calendar-grid .cal-cell {
  background: #261815 !important;
  border-color: var(--dark-border) !important;
  color: var(--dark-text) !important;
}

html[data-theme="dark"] #agenda .agenda-calendar-grid .cal-cell.dim {
  background: rgba(255, 244, 234, .045) !important;
  color: var(--dark-muted-2) !important;
}

html[data-theme="dark"] #agenda .agenda-calendar-grid .cal-cell.today,
html[data-theme="dark"] #agenda .agenda-calendar-grid .cal-cell.selected {
  background: linear-gradient(180deg, rgba(240, 98, 141, .22), rgba(43, 27, 24, .96)) !important;
  border-color: rgba(255, 155, 178, .76) !important;
}

html[data-theme="dark"] #agenda .agenda-calendar-grid .cal-cell strong {
  color: var(--dark-text) !important;
}

html[data-theme="dark"] #agenda .agenda-calendar-grid .cal-cell.selected strong {
  background: #ff8fa7 !important;
  color: #260c12 !important;
}

html[data-theme="dark"] #agenda .agenda-calendar-grid .cal-cell .ev,
html[data-theme="dark"] #agenda .agenda-day-event,
html[data-theme="dark"] .badge.g,
html[data-theme="dark"] .gcal-badge.connected,
html[data-theme="dark"] .gcal-sync-message {
  background: rgba(111, 215, 151, .16) !important;
  border-color: rgba(155, 230, 187, .40) !important;
  color: #d7ffe6 !important;
}

html[data-theme="dark"] #agenda .agenda-calendar-grid .cal-cell .ev.delivery,
html[data-theme="dark"] .badge.r,
html[data-theme="dark"] .badge.a,
html[data-theme="dark"] .prod-payment-warning {
  background: rgba(255, 155, 178, .16) !important;
  border-color: rgba(255, 155, 178, .42) !important;
  color: #ffd9e2 !important;
}

html[data-theme="dark"] #ordersTabQuickPanel .quick-sale-pos,
html[data-theme="dark"] #ordersTabQuickPanel .qs-phone {
  background:
    linear-gradient(180deg, rgba(30, 18, 16, .98), rgba(18, 10, 9, .98)) !important;
  color: var(--dark-text) !important;
}

html[data-theme="dark"] #ordersTabQuickPanel .qs-head {
  background: linear-gradient(135deg, #d70766, #c21868) !important;
  color: #fff !important;
}

html[data-theme="dark"] #ordersTabQuickPanel :is(.qs-search, .qs-scan, .qs-product, .qs-tip, .qs-summary, .qs-stepper, .qs-sheet, .qs-payments button, .qs-change) {
  background: rgba(255, 244, 234, .075) !important;
  border-color: var(--dark-border) !important;
  color: var(--dark-text) !important;
}

html[data-theme="dark"] #ordersTabQuickPanel .qs-product img {
  background: #120a09 !important;
}

html[data-theme="dark"] #ordersTabQuickPanel .qs-product :is(strong, b),
html[data-theme="dark"] #ordersTabQuickPanel .qs-summary :is(strong, b),
html[data-theme="dark"] #ordersTabQuickPanel .qs-sheet :is(h3, label, strong) {
  color: var(--dark-text) !important;
}

html[data-theme="dark"] #ordersTabQuickPanel .qs-product span,
html[data-theme="dark"] #ordersTabQuickPanel .qs-summary span,
html[data-theme="dark"] #ordersTabQuickPanel .qs-sheet p {
  color: var(--dark-muted) !important;
}

html[data-theme="dark"] #products .summary-box,
html[data-theme="dark"] #stock .stock-help,
html[data-theme="dark"] #stock .summary-box,
html[data-theme="dark"] #menu .panel > div[style*="background"],
html[data-theme="dark"] #products .panel > div[style*="background"] {
  background: rgba(255, 244, 234, .065) !important;
  color: var(--dark-text-2) !important;
  border-color: var(--dark-border) !important;
}

html[data-theme="dark"] #menuProductSelector .menu-product-card,
html[data-theme="dark"] #menuProductSelector .menu-product-card *,
html[data-theme="dark"] #menuVisibleList .item,
html[data-theme="dark"] #menuVisibleList .item *,
html[data-theme="dark"] #products #productsList .item,
html[data-theme="dark"] #products #productsList .item *,
html[data-theme="dark"] #stock #stockList .item,
html[data-theme="dark"] #stock #stockList .item * {
  color: inherit;
}

html[data-theme="dark"] #menuProductSelector .menu-product-card :is(strong, b),
html[data-theme="dark"] #menuVisibleList .item :is(strong, b),
html[data-theme="dark"] #products #productsList .item :is(strong, b),
html[data-theme="dark"] #stock #stockList .item :is(strong, b) {
  color: var(--dark-text) !important;
}

html[data-theme="dark"] #menuProductSelector .menu-product-card :is(small, span:not(.badge)),
html[data-theme="dark"] #menuVisibleList .item :is(small, span:not(.badge)),
html[data-theme="dark"] #products #productsList .item :is(small, span:not(.badge)),
html[data-theme="dark"] #stock #stockList .item :is(small, span:not(.badge)) {
  color: var(--dark-muted) !important;
}

html[data-theme="dark"] #dashboard .empty,
html[data-theme="dark"] #agenda .agenda-empty,
html[data-theme="dark"] #production .prod-column-empty,
html[data-theme="dark"] #orders .empty,
html[data-theme="dark"] #products .empty,
html[data-theme="dark"] #stock .empty {
  background: rgba(12, 7, 6, .55) !important;
  color: var(--dark-muted) !important;
  border: 1px dashed rgba(255, 155, 178, .22) !important;
}

html[data-theme="dark"] .sidebar {
  background: linear-gradient(180deg, rgba(15, 8, 7, .98), rgba(10, 5, 4, .98)) !important;
}

.sidebar {
  z-index: 80;
}

.sidebar .sb-brand {
  width: 100%;
  min-height: 34px;
  overflow: hidden;
}

.sidebar .sb-brand .sb-label {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .14s ease, max-width .18s ease, transform .18s ease;
}

.sidebar:hover .sb-brand .sb-label,
.sidebar:focus-within .sb-brand .sb-label {
  max-width: 150px;
  opacity: 1;
  transform: translateX(0);
}

.sidebar:not(:hover):not(:focus-within) .sb-brand {
  justify-content: center;
  gap: 0;
  padding-inline: 0;
}

.sidebar:not(:hover):not(:focus-within) .sb-brand .sb-ico {
  min-width: 30px;
}

html[data-theme="dark"] .sidebar:hover,
html[data-theme="dark"] .sidebar:focus-within {
  background: linear-gradient(180deg, rgba(15, 8, 7, .995), rgba(10, 5, 4, .995)) !important;
  box-shadow: 16px 0 42px rgba(0, 0, 0, .42);
}

html[data-theme="dark"] .sidebar .sb-brand .sb-label {
  color: #fff4ec !important;
}

html[data-theme="dark"] .bottom-nav-main,
html[data-theme="dark"] .bottom-more-sheet {
  background: rgba(17, 9, 8, .98) !important;
}

@media (max-width: 767px) {
  .content {
    padding-bottom: calc(190px + env(safe-area-inset-bottom)) !important;
  }

  .page.active {
    padding-bottom: 42px;
  }

  html[data-theme="dark"] .theme-fab {
    right: 14px;
    bottom: calc(112px + env(safe-area-inset-bottom));
  }

  html[data-theme="dark"] #app :is(.panel, .dashboard-panel, .agenda-shell, .agenda-day-panel, .agenda-map-panel, .agenda-orders-panel, #orders .orders-form-panel, #orders .orders-list-panel, #products .panel, #stock .stock-panel) {
    box-shadow: 0 12px 34px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .04) !important;
  }
}

/* Perfil e Configurações - reorganização leve */
.profile-settings-page {
  max-width: 1180px;
  margin-inline: auto;
  width: 100%;
}

.profile-settings-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin: 0 0 18px;
  padding: 22px 24px;
  border: 1px solid rgba(218, 35, 102, .16);
  border-radius: 26px;
  background:
    radial-gradient(circle at 12% 0%, rgba(218, 35, 102, .14), transparent 34%),
    linear-gradient(135deg, rgba(255, 247, 242, .96), rgba(255, 239, 230, .72));
  box-shadow: 0 18px 44px rgba(55, 27, 18, .08);
}

.profile-settings-hero p {
  margin: 0 0 6px;
  color: #da2366;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.profile-settings-hero h1 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  line-height: .98;
}

.profile-settings-hero span {
  display: block;
  max-width: 620px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.profile-settings-layout {
  display: grid;
  grid-template-columns: minmax(340px, .92fr) minmax(440px, 1.08fr);
  gap: 24px;
  align-items: start;
}

.profile-settings-column {
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(143, 123, 112, .16);
  border-radius: 26px;
  background: rgba(255, 255, 255, .38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .62);
}

.profile-settings-page .panel {
  border-radius: 22px;
}

.profile-settings-page .panel h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.15;
}

.profile-settings-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--bd);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.settings-config-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--bd);
  border-radius: 18px;
  background: rgba(255, 247, 242, .76);
  box-shadow: 0 12px 28px rgba(55, 27, 18, .06);
}

.settings-config-tabs button {
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.settings-config-tabs button:hover {
  transform: translateY(-1px);
  color: var(--text);
  background: rgba(218, 35, 102, .08);
}

.settings-config-tabs button.active {
  color: #fff;
  background: #da2366;
  box-shadow: 0 12px 24px rgba(218, 35, 102, .24);
}

.settings-config-intro {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(218, 35, 102, .16);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 240, 245, .88), rgba(255, 247, 242, .66));
}

.settings-config-intro strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.1;
}

.settings-config-intro span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.settings-config-panel {
  display: none;
}

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

.profile-settings-page .panel,
.profile-settings-page .gcal-panel,
.profile-settings-page .gcal-connect-banner {
  margin: 0;
  overflow: hidden;
}

.profile-settings-profile .panel {
  position: sticky;
  top: 20px;
}

.profile-settings-page textarea,
.profile-settings-page input,
.profile-settings-page select {
  min-width: 0;
}

.profile-settings-page :is(input, select, textarea) {
  max-width: 100%;
}

.profile-bakery-card {
  display: grid;
  gap: 16px;
}

.profile-bakery-head {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.profile-bakery-head .summary-box {
  margin: 8px 0 0 !important;
  padding: 11px 12px !important;
  font-size: 11.5px;
  line-height: 1.45;
}

.profile-bakery-photo {
  display: grid;
  place-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.profile-bakery-photo img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border: 1px solid var(--bd);
  border-radius: 24px;
  background: rgba(255, 247, 242, .86);
  box-shadow: 0 12px 28px rgba(55, 27, 18, .10);
}

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

.profile-field-card {
  display: grid;
  gap: 8px;
  padding: 13px 14px;
  border: 1px solid var(--bd);
  border-radius: 16px;
  background: rgba(255, 247, 242, .68);
  min-height: 72px;
}

.profile-field-card-wide {
  grid-column: 1 / -1;
}

.profile-field-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.profile-field-card input {
  width: 100%;
  border: 0 !important;
  background: transparent !important;
  padding: 3px 0 0 !important;
  border-radius: 0 !important;
  min-height: 24px !important;
  font-size: 13.5px !important;
  line-height: 1.35 !important;
  box-shadow: none !important;
}

.profile-field-card input:focus {
  outline: 0;
}

.profile-field-card:focus-within {
  border-color: rgba(218, 35, 102, .45);
  box-shadow: 0 0 0 3px rgba(218, 35, 102, .08);
}

.profile-field-card input[readonly] {
  cursor: default;
  color: var(--muted);
}

.business-hours-card {
  gap: 12px;
}

.business-hours-card > input[type="hidden"] {
  display: none !important;
}

.business-hours-editor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.business-day-row {
  display: grid;
  grid-template-columns: minmax(118px, .82fr) minmax(0, 1.18fr);
  align-items: stretch;
  gap: 12px;
  min-height: 86px;
  padding: 12px;
  border: 1px solid rgba(196, 115, 122, .22);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(255, 218, 211, .32), transparent 36%),
    rgba(255, 255, 255, .58);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
  min-width: 0;
}

.business-day-row.active {
  border-color: rgba(204, 49, 93, .36);
  background:
    radial-gradient(circle at top right, rgba(255, 163, 188, .25), transparent 36%),
    rgba(255, 248, 245, .82);
  box-shadow: 0 10px 24px rgba(92, 39, 24, .06);
}

.business-day-toggle {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  gap: 2px 10px;
  min-width: 0;
  cursor: pointer;
}

.business-day-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.business-day-toggle > span {
  grid-row: 1 / span 2;
  position: relative;
  align-self: center;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #ead9d2;
  box-shadow: inset 0 0 0 1px rgba(94, 51, 37, .08);
  transition: background .16s ease;
}

.business-day-toggle > span::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(66, 30, 20, .22);
  transition: transform .16s ease;
}

.business-day-toggle input:checked + span {
  background: linear-gradient(135deg, #cc315d, #dd7f94);
}

.business-day-toggle input:checked + span::after {
  transform: translateX(18px);
}

.business-day-row strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-day-toggle small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.business-hours-time {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.business-hours-time input[type="time"] {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 42px !important;
  padding: 0 8px !important;
  border: 1px solid rgba(196, 115, 122, .28) !important;
  border-radius: 13px !important;
  background: rgba(255, 250, 247, .9) !important;
  color: var(--text) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-align: center;
}

.business-hours-time em {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.business-day-row:not(.active) .business-hours-time {
  opacity: .42;
}

.business-day-row:not(.active) .business-hours-time input {
  pointer-events: none;
}

#businessHoursSummary {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.profile-bakery-card > p[style*="font-size:11px"] {
  margin: 2px 0 0 !important;
  padding: 10px 12px;
  border: 1px solid var(--bd);
  border-radius: 14px;
  background: rgba(255, 247, 242, .56);
  line-height: 1.45;
}

html[data-theme="dark"] .profile-settings-kicker {
  background: rgba(255, 244, 234, .06) !important;
  border-color: rgba(255, 228, 207, .18) !important;
  color: #d8bba8 !important;
}

html[data-theme="dark"] .profile-settings-hero {
  background:
    radial-gradient(circle at 12% 0%, rgba(240, 98, 146, .18), transparent 36%),
    linear-gradient(135deg, rgba(48, 24, 19, .94), rgba(25, 12, 9, .86)) !important;
  border-color: rgba(255, 228, 207, .16) !important;
  box-shadow: 0 20px 46px rgba(0, 0, 0, .30);
}

html[data-theme="dark"] .profile-settings-hero p {
  color: #ff8eb0 !important;
}

html[data-theme="dark"] .profile-settings-hero h1 {
  color: var(--dark-text) !important;
}

html[data-theme="dark"] .profile-settings-hero span {
  color: #d8bba8 !important;
}

html[data-theme="dark"] .profile-settings-column {
  background: rgba(255, 244, 234, .035) !important;
  border-color: rgba(255, 228, 207, .12) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

html[data-theme="dark"] .settings-config-tabs {
  background: rgba(255, 244, 234, .055) !important;
  border-color: rgba(255, 228, 207, .16) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .20);
}

html[data-theme="dark"] .settings-config-tabs button {
  color: #d8bba8 !important;
}

html[data-theme="dark"] .settings-config-tabs button:hover {
  background: rgba(240, 98, 146, .12) !important;
  color: var(--dark-text) !important;
}

html[data-theme="dark"] .settings-config-tabs button.active {
  background: #f06292 !important;
  color: #1a0806 !important;
  box-shadow: 0 14px 30px rgba(240, 98, 146, .24);
}

html[data-theme="dark"] .settings-config-intro {
  background: linear-gradient(135deg, rgba(240, 98, 146, .12), rgba(255, 244, 234, .055)) !important;
  border-color: rgba(240, 98, 146, .20) !important;
}

html[data-theme="dark"] .settings-config-intro strong {
  color: var(--dark-text) !important;
}

html[data-theme="dark"] .settings-config-intro span {
  color: #d8bba8 !important;
}

html[data-theme="dark"] .profile-settings-page .panel h2 {
  color: var(--dark-text) !important;
}

html[data-theme="dark"] .profile-field-card {
  background: rgba(255, 244, 234, .055) !important;
  border-color: rgba(255, 228, 207, .16) !important;
}

html[data-theme="dark"] .profile-field-card span,
html[data-theme="dark"] .profile-bakery-photo {
  color: #d8bba8 !important;
}

html[data-theme="dark"] .profile-field-card input {
  color: var(--dark-text) !important;
}

html[data-theme="dark"] .profile-bakery-photo img {
  background: rgba(255, 244, 234, .08) !important;
  border-color: rgba(255, 228, 207, .18) !important;
}

html[data-theme="dark"] .profile-bakery-card > p[style*="font-size:11px"] {
  background: rgba(255, 244, 234, .055) !important;
  border-color: rgba(255, 228, 207, .14) !important;
  color: #d8bba8 !important;
}

.profile-settings-page .form-grid {
  gap: 10px;
}

.profile-settings-page textarea {
  width: 100% !important;
  min-height: 72px !important;
  padding: 11px 13px !important;
  border-radius: 14px !important;
  line-height: 1.45 !important;
  resize: vertical;
}

.profile-settings-page .auth-pw-wrap {
  align-items: center;
  border-radius: 14px;
}

.profile-settings-page .auth-pw-wrap input {
  min-height: 42px !important;
}

.profile-settings-page .pw-toggle {
  flex: 0 0 auto;
  min-width: 42px;
  min-height: 42px;
  border-radius: 12px;
}

.profile-settings-page .action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-settings-page .action-row .btn {
  min-height: 42px;
}

.profile-settings-page :is(.summary-box, .list, .item) {
  min-width: 0;
}

.profile-settings-page :is(.payment-method-toggle, .digital-menu-switch, .order-flow-option, .order-production-switch, .connection-card, .plan-metric, .appearance-option) {
  min-width: 0;
}

.profile-settings-page .btn {
  white-space: normal;
}

html[data-theme="dark"] .profile-settings-page :is(input, select, textarea) {
  background-color: rgba(8, 5, 4, .34) !important;
  border-color: rgba(255, 228, 207, .18) !important;
  color: var(--dark-text) !important;
}

html[data-theme="dark"] .profile-field-card input {
  background: transparent !important;
}

html[data-theme="dark"] .profile-settings-page :is(input, textarea)::placeholder {
  color: #bda08e !important;
  opacity: 1;
}

html[data-theme="dark"] .profile-settings-page select option {
  background: #1b0d0a;
  color: var(--dark-text);
}

.appearance-panel {
  overflow: hidden;
}

.appearance-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.appearance-panel-head h2 {
  margin: 0 0 6px;
}

.appearance-panel-head .appearance-note {
  margin: 0;
}

.appearance-theme-toggle {
  align-self: flex-start;
  margin-top: 2px;
}

.appearance-note,
.payment-methods-note,
.digital-menu-note,
.order-production-note,
.connections-note,
.plan-note {
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.appearance-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.appearance-option {
  display: grid;
  gap: 10px;
  min-height: 172px;
  padding: 12px;
  border: 1px solid var(--bd);
  border-radius: 18px;
  background: rgba(255, 247, 242, .74);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(55, 27, 18, .07);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.appearance-option:hover {
  transform: translateY(-2px);
  border-color: rgba(218, 35, 102, .35);
  box-shadow: 0 16px 30px rgba(55, 27, 18, .12);
}

.appearance-option.active {
  border-color: rgba(218, 35, 102, .62);
  box-shadow: 0 0 0 3px rgba(218, 35, 102, .10), 0 18px 34px rgba(218, 35, 102, .12);
}

.appearance-option strong {
  font-size: 14px;
  line-height: 1.2;
}

.appearance-option small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.appearance-preview {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  grid-template-rows: .55fr .45fr;
  gap: 6px;
  height: 74px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(55, 27, 18, .10);
  overflow: hidden;
}

.appearance-preview i {
  display: block;
  border-radius: 10px;
}

.appearance-preview i:first-child {
  grid-row: 1 / -1;
}

.appearance-preview-light {
  background: #fff7f2;
}

.appearance-preview-light i:first-child {
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #efdcd0;
}

.appearance-preview-light i:nth-child(2) {
  background: #da2366;
}

.appearance-preview-light i:nth-child(3) {
  background: #fff0f5;
  box-shadow: inset 0 0 0 1px #f0c6d4;
}

.appearance-preview-dark {
  background: #160907;
}

.appearance-preview-dark i:first-child {
  background: #2b1713;
  box-shadow: inset 0 0 0 1px rgba(255, 228, 207, .16);
}

.appearance-preview-dark i:nth-child(2) {
  background: #f06292;
}

.appearance-preview-dark i:nth-child(3) {
  background: #4a2a22;
  box-shadow: inset 0 0 0 1px rgba(255, 228, 207, .14);
}

.appearance-preview-auto {
  background: linear-gradient(110deg, #fff7f2 0 49%, #160907 51% 100%);
}

.appearance-preview-auto i:first-child {
  background: linear-gradient(110deg, #ffffff 0 49%, #2b1713 51% 100%);
  box-shadow: inset 0 0 0 1px rgba(218, 35, 102, .16);
}

.appearance-preview-auto i:nth-child(2) {
  background: #da2366;
}

.appearance-preview-auto i:nth-child(3) {
  background: linear-gradient(110deg, #fff0f5 0 49%, #4a2a22 51% 100%);
}

html[data-theme="dark"] .appearance-note,
html[data-theme="dark"] .appearance-option small {
  color: #d8bba8 !important;
}

html[data-theme="dark"] .appearance-option {
  background: rgba(255, 244, 234, .055) !important;
  border-color: rgba(255, 228, 207, .16) !important;
  color: var(--dark-text) !important;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .18);
}

html[data-theme="dark"] .appearance-option:hover,
html[data-theme="dark"] .appearance-option.active {
  border-color: rgba(240, 98, 146, .60) !important;
  box-shadow: 0 0 0 3px rgba(240, 98, 146, .14), 0 18px 38px rgba(0, 0, 0, .24);
}

html[data-theme="dark"] .appearance-preview {
  border-color: rgba(255, 228, 207, .16);
}

.plan-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

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

.plan-metric {
  min-height: 82px;
  padding: 13px;
  border: 1px solid var(--bd);
  border-radius: 16px;
  background: rgba(255, 247, 242, .70);
}

.plan-metric span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.plan-metric strong {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.05;
}

html[data-theme="dark"] .plan-note,
html[data-theme="dark"] .plan-metric span {
  color: #d8bba8 !important;
}

html[data-theme="dark"] .plan-metric {
  background: rgba(255, 244, 234, .055) !important;
  border-color: rgba(255, 228, 207, .16) !important;
}

html[data-theme="dark"] .plan-metric strong {
  color: var(--dark-text) !important;
}

.payment-methods-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.payment-method-toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--bd);
  border-radius: 16px;
  background: rgba(255, 247, 242, .70);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.payment-method-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(218, 35, 102, .35);
}

.payment-method-toggle.active {
  border-color: rgba(218, 35, 102, .55);
  box-shadow: 0 0 0 3px rgba(218, 35, 102, .08);
}

.payment-method-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-method-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #fff0f5;
  color: #da2366;
  font-weight: 900;
}

.payment-method-toggle strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
}

.payment-method-toggle small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.credit-payment-fields.hidden {
  display: none !important;
}

html[data-theme="dark"] .payment-methods-note,
html[data-theme="dark"] .payment-method-toggle small {
  color: #d8bba8 !important;
}

html[data-theme="dark"] .payment-method-toggle {
  background: rgba(255, 244, 234, .055) !important;
  border-color: rgba(255, 228, 207, .16) !important;
}

html[data-theme="dark"] .payment-method-toggle.active {
  border-color: rgba(240, 98, 146, .56) !important;
  box-shadow: 0 0 0 3px rgba(240, 98, 146, .13);
}

html[data-theme="dark"] .payment-method-toggle strong {
  color: var(--dark-text) !important;
}

html[data-theme="dark"] .payment-method-icon {
  background: rgba(240, 98, 146, .16);
  color: #ff9bbb;
}

.digital-menu-switches {
  display: grid;
  gap: 10px;
}

.digital-menu-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 70px;
  padding: 12px 14px;
  border: 1px solid var(--bd);
  border-radius: 16px;
  background: rgba(255, 247, 242, .70);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.digital-menu-switch:hover {
  transform: translateY(-1px);
  border-color: rgba(218, 35, 102, .35);
}

.digital-menu-switch.active {
  border-color: rgba(218, 35, 102, .55);
  box-shadow: 0 0 0 3px rgba(218, 35, 102, .08);
}

.digital-menu-switch strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
}

.digital-menu-switch small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.35;
}

.digital-menu-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.digital-menu-switch i {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: rgba(143, 123, 112, .22);
  border: 1px solid rgba(143, 123, 112, .20);
  transition: background .18s ease, border-color .18s ease;
}

.digital-menu-switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 9px rgba(80, 47, 31, .18);
  transition: transform .18s ease;
}

.digital-menu-switch.active i {
  background: #da2366;
  border-color: #da2366;
}

.digital-menu-switch.active i::after {
  transform: translateX(20px);
}

html[data-theme="dark"] .digital-menu-note,
html[data-theme="dark"] .digital-menu-switch small {
  color: #d8bba8 !important;
}

html[data-theme="dark"] .digital-menu-switch {
  background: rgba(255, 244, 234, .055) !important;
  border-color: rgba(255, 228, 207, .16) !important;
}

html[data-theme="dark"] .digital-menu-switch.active {
  border-color: rgba(240, 98, 146, .56) !important;
  box-shadow: 0 0 0 3px rgba(240, 98, 146, .13);
}

html[data-theme="dark"] .digital-menu-switch strong {
  color: var(--dark-text) !important;
}

html[data-theme="dark"] .digital-menu-switch i {
  background: rgba(255, 228, 207, .16);
  border-color: rgba(255, 228, 207, .22);
}

html[data-theme="dark"] .digital-menu-switch.active i {
  background: #f06292;
  border-color: #f06292;
}

.order-flow-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.order-flow-option {
  min-height: 104px;
  padding: 14px;
  border: 1px solid var(--bd);
  border-radius: 16px;
  background: rgba(255, 247, 242, .70);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.order-flow-option:hover {
  transform: translateY(-1px);
  border-color: rgba(218, 35, 102, .35);
}

.order-flow-option.active {
  border-color: rgba(218, 35, 102, .58);
  background: rgba(218, 35, 102, .08);
  box-shadow: 0 0 0 3px rgba(218, 35, 102, .08);
}

.order-flow-option strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
  color: var(--text);
}

.order-flow-option small {
  display: block;
  margin-top: 7px;
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--muted);
}

.order-production-switches {
  display: grid;
  gap: 10px;
}

.order-production-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 70px;
  padding: 12px 14px;
  border: 1px solid var(--bd);
  border-radius: 16px;
  background: rgba(255, 247, 242, .70);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.order-production-switch:hover {
  transform: translateY(-1px);
  border-color: rgba(218, 35, 102, .35);
}

.order-production-switch.active {
  border-color: rgba(218, 35, 102, .55);
  box-shadow: 0 0 0 3px rgba(218, 35, 102, .08);
}

.order-production-switch strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
}

.order-production-switch small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.35;
}

.order-production-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.order-production-switch i {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: rgba(143, 123, 112, .22);
  border: 1px solid rgba(143, 123, 112, .20);
  transition: background .18s ease, border-color .18s ease;
}

.order-production-switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 9px rgba(80, 47, 31, .18);
  transition: transform .18s ease;
}

.order-production-switch.active i {
  background: #da2366;
  border-color: #da2366;
}

.order-production-switch.active i::after {
  transform: translateX(20px);
}

.settings-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.settings-panel-head h2,
.settings-panel-head p {
  margin-top: 0;
}

.stock-control-mode-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.stock-control-mode-card {
  display: grid;
  gap: 8px;
  min-height: 152px;
  padding: 16px;
  border: 1px solid var(--bd);
  border-radius: 18px;
  background: rgba(255, 247, 242, .72);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.stock-control-mode-card:hover {
  transform: translateY(-1px);
  border-color: rgba(218, 35, 102, .35);
}

.stock-control-mode-card.active {
  border-color: rgba(218, 35, 102, .58);
  background: linear-gradient(135deg, rgba(218, 35, 102, .12), rgba(255, 247, 242, .9));
  box-shadow: 0 0 0 3px rgba(218, 35, 102, .08);
}

.stock-control-mode-card span {
  color: var(--rose);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.stock-control-mode-card strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.stock-control-mode-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  font-weight: 760;
}

.stock-production-switches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stock-production-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 12px 14px;
  border: 1px solid var(--bd);
  border-radius: 16px;
  background: rgba(255, 247, 242, .70);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.stock-production-switch:hover {
  transform: translateY(-1px);
  border-color: rgba(218, 35, 102, .35);
}

.stock-production-switch.active {
  border-color: rgba(218, 35, 102, .55);
  box-shadow: 0 0 0 3px rgba(218, 35, 102, .08);
}

.stock-production-switch strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
}

.stock-production-switch small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.35;
}

.stock-production-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.stock-production-switch i {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: rgba(143, 123, 112, .22);
  border: 1px solid rgba(143, 123, 112, .20);
  transition: background .18s ease, border-color .18s ease;
}

.stock-production-switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 9px rgba(80, 47, 31, .18);
  transition: transform .18s ease;
}

.stock-production-switch.active i {
  background: #da2366;
  border-color: #da2366;
}

.stock-production-switch.active i::after {
  transform: translateX(20px);
}

html[data-theme="dark"] .order-production-note,
html[data-theme="dark"] .order-flow-option small,
html[data-theme="dark"] .order-production-switch small,
html[data-theme="dark"] .stock-control-mode-card small,
html[data-theme="dark"] .stock-production-switch small {
  color: #d8bba8 !important;
}

html[data-theme="dark"] .order-flow-option,
html[data-theme="dark"] .order-production-switch,
html[data-theme="dark"] .stock-control-mode-card,
html[data-theme="dark"] .stock-production-switch {
  background: rgba(255, 244, 234, .055) !important;
  border-color: rgba(255, 228, 207, .16) !important;
}

html[data-theme="dark"] .order-flow-option.active,
html[data-theme="dark"] .order-production-switch.active,
html[data-theme="dark"] .stock-control-mode-card.active,
html[data-theme="dark"] .stock-production-switch.active {
  border-color: rgba(240, 98, 146, .56) !important;
  background: rgba(240, 98, 146, .12) !important;
  box-shadow: 0 0 0 3px rgba(240, 98, 146, .13);
}

html[data-theme="dark"] .order-flow-option strong,
html[data-theme="dark"] .order-production-switch strong,
html[data-theme="dark"] .stock-control-mode-card strong,
html[data-theme="dark"] .stock-production-switch strong {
  color: var(--dark-text) !important;
}

html[data-theme="dark"] .order-production-switch i,
html[data-theme="dark"] .stock-production-switch i {
  background: rgba(255, 228, 207, .16);
  border-color: rgba(255, 228, 207, .22);
}

html[data-theme="dark"] .order-production-switch.active i,
html[data-theme="dark"] .stock-production-switch.active i {
  background: #f06292;
  border-color: #f06292;
}

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

.connection-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--bd);
  border-radius: 18px;
  background: rgba(255, 247, 242, .72);
}

.connection-card.connected {
  border-color: rgba(46, 125, 50, .32);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, .08);
}

.connection-main {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.connection-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-weight: 900;
}

.connection-icon.google {
  background: #eef5ff;
  color: #2f6fed;
}

.connection-icon.whatsapp {
  background: #e8f8ee;
  color: #15803d;
}

.connection-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.connection-title-row h3 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
}

.connection-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.connection-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.connection-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.connection-status.on {
  color: #1f7a3a;
  background: #e8f8ee;
}

.connection-status.off {
  color: #9b4a4a;
  background: #fff0f0;
}

.connection-status.neutral {
  color: #8a5b18;
  background: #fff6df;
}

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

.connection-whatsapp-number {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(143, 123, 112, .18);
  background: rgba(255, 255, 255, .54);
}

.connection-whatsapp-number span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.connection-whatsapp-number strong {
  color: var(--text);
  font-size: 13px;
  text-align: right;
}

.connection-footnote {
  margin-top: -4px !important;
  font-size: 11px !important;
}

html[data-theme="dark"] .connections-note,
html[data-theme="dark"] .connection-card p,
html[data-theme="dark"] .connection-whatsapp-number span,
html[data-theme="dark"] .connection-footnote {
  color: #d8bba8 !important;
}

html[data-theme="dark"] .connection-card {
  background: rgba(255, 244, 234, .055) !important;
  border-color: rgba(255, 228, 207, .16) !important;
}

html[data-theme="dark"] .connection-card.connected {
  border-color: rgba(76, 175, 80, .42) !important;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, .12);
}

html[data-theme="dark"] .connection-title-row h3,
html[data-theme="dark"] .connection-whatsapp-number strong {
  color: var(--dark-text) !important;
}

html[data-theme="dark"] .connection-icon.google {
  background: rgba(66, 133, 244, .16);
  color: #9cc0ff;
}

html[data-theme="dark"] .connection-icon.whatsapp {
  background: rgba(34, 197, 94, .16);
  color: #83e0a4;
}

html[data-theme="dark"] .connection-whatsapp-number {
  background: rgba(8, 5, 4, .35);
  border-color: rgba(255, 228, 207, .14);
}

html[data-theme="dark"] .connection-status.on {
  color: #8ee6a8;
  background: rgba(34, 197, 94, .16);
}

html[data-theme="dark"] .connection-status.off {
  color: #ffb3b3;
  background: rgba(239, 68, 68, .14);
}

html[data-theme="dark"] .connection-status.neutral {
  color: #ffd98c;
  background: rgba(245, 158, 11, .14);
}

@media (max-height: 860px) {
  .profile-settings-profile .panel {
    position: static;
  }
}

@media (max-width: 1120px) {
  .profile-settings-layout {
    grid-template-columns: minmax(320px, .95fr) minmax(400px, 1.05fr);
  }

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

  .appearance-option {
    min-height: 126px;
  }

  .stock-control-mode-cards {
    grid-template-columns: 1fr;
  }

  .stock-production-switches {
    grid-template-columns: 1fr;
  }
}

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

  .profile-settings-profile .panel {
    position: static;
  }
}

@media (max-width: 767px) {
  .profile-settings-page {
    padding-bottom: 40px;
  }

  .profile-settings-hero {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 14px;
    padding: 18px;
    border-radius: 22px;
  }

  .profile-settings-hero h1 {
    font-size: 30px;
  }

  .profile-settings-layout {
    gap: 16px;
  }

  .profile-settings-column {
    padding: 10px;
    border-radius: 22px;
  }

  .settings-config-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-settings-kicker {
    width: 100%;
    justify-content: center;
  }

  .profile-settings-page .panel {
    padding: 18px;
    border-radius: 18px;
  }

  .profile-settings-page .panel h2 {
    font-size: 19px;
  }

  .profile-settings-page .form-grid,
  .profile-settings-page .form-grid.c2,
  .profile-settings-page .form-grid.c4 {
    grid-template-columns: 1fr !important;
  }

  .profile-bakery-head,
  .profile-card-grid {
    grid-template-columns: 1fr;
  }

  .profile-bakery-photo {
    place-items: start;
    text-align: left;
  }

  .profile-bakery-head .summary-box {
    margin-top: 4px !important;
  }

  .profile-field-card {
    min-height: 68px;
  }

  .profile-settings-page .action-row,
  .profile-settings-page .panel > div[style*="display:flex"] {
    display: grid !important;
    grid-template-columns: 1fr;
  }

  .profile-settings-page .btn {
    width: 100%;
    min-height: 44px;
  }

  .appearance-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .appearance-theme-toggle {
    align-self: flex-start;
  }

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

  .appearance-option {
    min-height: 120px;
  }

  .plan-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .plan-panel-head .btn {
    width: 100%;
  }

  .plan-metrics {
    grid-template-columns: 1fr;
  }

  .plan-metric {
    min-height: 74px;
  }

  .payment-methods-list {
    grid-template-columns: 1fr;
  }

  .digital-menu-switch {
    min-height: 74px;
  }

  .order-flow-options {
    grid-template-columns: 1fr;
  }

  .order-flow-option,
  .order-production-switch,
  .stock-control-mode-card,
  .stock-production-switch {
    min-height: 74px;
  }

  .settings-panel-head {
    display: grid;
  }

  .connection-card {
    padding: 12px;
  }

  .connection-whatsapp-number {
    align-items: flex-start;
    flex-direction: column;
  }

  .connection-whatsapp-number strong {
    text-align: left;
  }
}

@media (max-width: 430px) {
  .profile-settings-page .panel {
    padding: 15px;
  }

  .profile-settings-hero {
    padding: 16px;
  }

  .profile-settings-hero h1 {
    font-size: 27px;
  }

  .settings-config-tabs {
    grid-template-columns: 1fr;
  }

  .settings-config-tabs button {
    min-height: 44px;
  }

  .profile-bakery-photo img {
    width: 84px;
    height: 84px;
    border-radius: 20px;
  }

  .payment-method-toggle,
  .digital-menu-switch,
  .order-production-switch,
  .connection-main {
    gap: 10px;
  }

  .digital-menu-switch i,
  .order-production-switch i {
    width: 44px;
    height: 26px;
  }

  .digital-menu-switch i::after,
  .order-production-switch i::after {
    width: 18px;
    height: 18px;
  }

  .digital-menu-switch.active i::after,
  .order-production-switch.active i::after {
    transform: translateX(18px);
  }
}

/* Dark mode crisp pass: remove fuzzy margins and make surfaces read cleanly */
html[data-theme="dark"] {
  --dark-bg-0: #0d0706;
  --dark-bg-1: #130a08;
  --dark-bg-2: #1d100d;
  --dark-card: #211411;
  --dark-card-2: #2a1915;
  --dark-border: rgba(255, 225, 205, .20);
  --dark-border-strong: rgba(255, 225, 205, .30);
  --dark-shadow-crisp: 0 14px 34px rgba(0, 0, 0, .34);
}

html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] #app,
html[data-theme="dark"] .app-shell,
html[data-theme="dark"] .content,
html[data-theme="dark"] .page {
  background: linear-gradient(180deg, var(--dark-bg-1) 0%, var(--dark-bg-0) 100%) !important;
  background-attachment: fixed !important;
}

html[data-theme="dark"] body {
  min-width: 0;
}

html[data-theme="dark"] .content {
  width: 100%;
  max-width: 100%;
  padding-right: clamp(18px, 2.2vw, 32px);
}

html[data-theme="dark"] .page {
  position: relative;
  isolation: isolate;
}

html[data-theme="dark"] .page::before,
html[data-theme="dark"] .page::after,
html[data-theme="dark"] #products::before,
html[data-theme="dark"] #stock::before {
  content: none !important;
  display: none !important;
}

html[data-theme="dark"] :is(.app-header, .sidebar, .bottom-nav-main, .bottom-more-sheet, .theme-fab, .support-fab) {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-theme="dark"] .app-header {
  background: var(--dark-bg-1) !important;
  border-bottom: 1px solid rgba(255, 225, 205, .16) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .035) !important;
}

html[data-theme="dark"] :is(.panel, .dashboard-panel, .dashboard-card, .metric, .item, .list, .summary-box, .cart-wrap, .modal-card, .legal-card, .printer-card, .gcal-panel, .gcal-connect-banner, .agenda-shell, .agenda-day-panel, .agenda-map-panel, .agenda-orders-panel, .agenda-metric-card, #orders .orders-form-panel, #orders .orders-list-panel, #ordersTabQuotesPanel .quotes-panel, #ordersTabQuotesPanel .quotes-list-panel, #products .panel, #stock .stock-panel, #production .prod-metric, #production .prod-empty, #settings .panel, .profile-settings-column) {
  background: linear-gradient(180deg, rgba(37, 22, 18, .98), rgba(28, 16, 13, .98)) !important;
  border: 1px solid var(--dark-border) !important;
  box-shadow: var(--dark-shadow-crisp), inset 0 1px 0 rgba(255, 255, 255, .035) !important;
}

html[data-theme="dark"] :is(.dashboard-head, #orders .orders-polish-hero, #products .products-hero, #stock .stock-hero, #agenda .agenda-hero, #production .prod-progress-card, #ordersTabQuickPanel .qs-head, .profile-settings-hero) {
  background: linear-gradient(135deg, rgba(63, 25, 29, .98), rgba(26, 14, 11, .98)) !important;
  border: 1px solid var(--dark-border-strong) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .04) !important;
}

html[data-theme="dark"] :is(.orders-polish-metrics > div, .order-list-card, .orders-row, .qs-product, .qs-summary, .qs-sheet, .prod-card, .prod-column, .prod-dropzone, #products .item, #stock .item, #menu .item, .menu-product-card, .connection-card, .payment-method-toggle, .digital-menu-switch, .order-flow-option, .order-production-switch, .appearance-option, .plan-metric, .profile-field-card) {
  background: rgba(18, 9, 7, .42) !important;
  border-color: rgba(255, 225, 205, .18) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035) !important;
}

html[data-theme="dark"] :is(input, select, textarea, .auth-pw-wrap) {
  background: #0f0807 !important;
  border-color: rgba(255, 225, 205, .24) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025) !important;
}

html[data-theme="dark"] :is(input, select, textarea):focus {
  border-color: rgba(255, 126, 164, .78) !important;
  box-shadow: 0 0 0 3px rgba(255, 126, 164, .16), inset 0 1px 0 rgba(255, 255, 255, .035) !important;
}

html[data-theme="dark"] .sidebar {
  background: #0b0504 !important;
  border-right-color: rgba(255, 225, 205, .14) !important;
  box-shadow: 8px 0 24px rgba(0, 0, 0, .30) !important;
}

html[data-theme="dark"] .bottom-nav-main,
html[data-theme="dark"] .bottom-more-sheet {
  background: #130a08 !important;
  border-color: rgba(255, 225, 205, .18) !important;
  box-shadow: 0 -12px 32px rgba(0, 0, 0, .36) !important;
}

html[data-theme="dark"] .theme-fab,
html[data-theme="dark"] .support-fab {
  box-shadow: 0 12px 28px rgba(0, 0, 0, .38) !important;
}

@media (max-width: 767px) {
  html[data-theme="dark"] .content {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  html[data-theme="dark"] .page {
    overflow-x: clip;
  }

  html[data-theme="dark"] :is(.panel, .dashboard-panel, .metric, .item, .list, .summary-box, .cart-wrap, .agenda-shell, .agenda-day-panel, .agenda-map-panel, .agenda-orders-panel, #orders .orders-form-panel, #orders .orders-list-panel, #products .panel, #stock .stock-panel, #settings .panel) {
    box-shadow: 0 10px 24px rgba(0, 0, 0, .30), inset 0 1px 0 rgba(255, 255, 255, .035) !important;
  }
}

/* Theme switch: replaces text buttons and removes corner theme clutter */
.theme-fab {
  display: none !important;
}

.theme-toggle,
.btn.theme-toggle,
.btn-soft.theme-toggle {
  position: relative !important;
  flex: 0 0 auto;
  width: 74px !important;
  min-width: 74px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  border: 1px solid rgba(216, 154, 158, .42) !important;
  border-radius: 999px !important;
  overflow: hidden;
  background: linear-gradient(135deg, #f5b1b5, #d89a9e) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(216, 154, 158, .24) !important;
  transform: none !important;
}

.theme-toggle:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 14px 30px rgba(216, 154, 158, .30) !important;
}

.theme-toggle .theme-switch-icon {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  transition: opacity .18s ease, color .18s ease, transform .18s ease;
}

.theme-toggle .theme-switch-sun {
  left: 9px;
  color: #fff7dc;
  opacity: 1;
}

.theme-toggle .theme-switch-moon {
  right: 9px;
  color: rgba(94, 49, 37, .50);
  opacity: .36;
  font-size: 18px;
}

.theme-toggle .theme-switch-knob {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fffaf5;
  border: 1px solid rgba(111, 78, 55, .10);
  box-shadow: 0 5px 12px rgba(84, 45, 34, .22);
  transition: transform .22s cubic-bezier(.4, 0, .2, 1), background .18s ease;
}

.theme-toggle.is-dark,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .btn.theme-toggle,
html[data-theme="dark"] .btn-soft.theme-toggle {
  background: linear-gradient(135deg, #120907, #361812) !important;
  border-color: rgba(255, 225, 205, .22) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .34) !important;
}

.theme-toggle.is-dark .theme-switch-knob,
html[data-theme="dark"] .theme-toggle .theme-switch-knob {
  transform: translateX(-36px);
  background: #fff8ef;
  border-color: rgba(255, 225, 205, .22);
}

.theme-toggle.is-dark .theme-switch-sun,
html[data-theme="dark"] .theme-toggle .theme-switch-sun {
  color: rgba(255, 244, 234, .42);
  opacity: .45;
}

.theme-toggle.is-dark .theme-switch-moon,
html[data-theme="dark"] .theme-toggle .theme-switch-moon {
  color: #fff4ea;
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
}

@media (max-width: 767px) {
  .theme-toggle,
  .btn.theme-toggle,
  .btn-soft.theme-toggle {
    width: 70px !important;
    min-width: 70px !important;
    height: 38px !important;
  }
}

/* Dark mode consolidated layer: single source of truth for the final visual pass */
html[data-theme="dark"] {
  color-scheme: dark;
  --cream: #100807;
  --white: #231411;
  --surface: #21130f;
  --surface2: #2a1813;
  --surface3: #34201a;
  --text: #fff7ed;
  --muted: #d9bfaa;
  --cocoa: #fff7ed;
  --cocoa-lt: #efcfb8;
  --warm: #d2b39c;
  --bd: rgba(255, 226, 204, .20);
  --rose: #ec5d85;
  --rose-dk: #ff89a5;
  --petal: rgba(236, 93, 133, .18);
  --mint: #8edcaf;
  --sky: #a5cbed;
  --fc-dark-page: #100807;
  --fc-dark-panel: #241511;
  --fc-dark-panel-soft: #2d1b16;
  --fc-dark-panel-quiet: rgba(255, 244, 234, .055);
  --fc-dark-line: rgba(255, 226, 204, .18);
  --fc-dark-line-strong: rgba(255, 226, 204, .30);
  --fc-dark-title: #fff7ed;
  --fc-dark-copy: #efd4bf;
  --fc-dark-muted: #c8a891;
  --fc-dark-accent: #ec5d85;
  --fc-dark-accent-2: #ff8ca7;
  --fc-dark-focus: rgba(236, 93, 133, .22);
}

html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] #app,
html[data-theme="dark"] .app-shell,
html[data-theme="dark"] .content,
html[data-theme="dark"] .page {
  background: var(--fc-dark-page) !important;
  color: var(--fc-dark-title) !important;
}

html[data-theme="dark"] body,
html[data-theme="dark"] #app {
  overflow-x: hidden;
}

html[data-theme="dark"] .content {
  max-width: 100%;
  min-width: 0;
}

html[data-theme="dark"] .page {
  isolation: isolate;
}

html[data-theme="dark"] .page::before,
html[data-theme="dark"] .page::after,
html[data-theme="dark"] #dashboard::before,
html[data-theme="dark"] #dashboard::after,
html[data-theme="dark"] #products::before,
html[data-theme="dark"] #products::after,
html[data-theme="dark"] #stock::before,
html[data-theme="dark"] #stock::after,
html[data-theme="dark"] #settings::before,
html[data-theme="dark"] #settings::after {
  content: none !important;
  display: none !important;
}

html[data-theme="dark"] .app-header,
html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .bottom-nav-main,
html[data-theme="dark"] .bottom-more-sheet,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .dashboard-panel,
html[data-theme="dark"] .dashboard-card,
html[data-theme="dark"] .metric,
html[data-theme="dark"] .item,
html[data-theme="dark"] .list,
html[data-theme="dark"] .summary-box,
html[data-theme="dark"] .cart-wrap,
html[data-theme="dark"] .modal-card,
html[data-theme="dark"] .legal-card,
html[data-theme="dark"] .printer-card,
html[data-theme="dark"] .gcal-panel,
html[data-theme="dark"] .gcal-connect-banner,
html[data-theme="dark"] .agenda-shell,
html[data-theme="dark"] .agenda-day-panel,
html[data-theme="dark"] .agenda-map-panel,
html[data-theme="dark"] .agenda-orders-panel,
html[data-theme="dark"] .agenda-metric-card,
html[data-theme="dark"] .profile-settings-column,
html[data-theme="dark"] #orders .orders-form-panel,
html[data-theme="dark"] #orders .orders-list-panel,
html[data-theme="dark"] #ordersTabQuotesPanel .quotes-panel,
html[data-theme="dark"] #ordersTabQuotesPanel .quotes-list-panel,
html[data-theme="dark"] #products .panel,
html[data-theme="dark"] #stock .stock-panel,
html[data-theme="dark"] #production .prod-metric,
html[data-theme="dark"] #production .prod-empty {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-theme="dark"] :is(.panel, .dashboard-panel, .dashboard-card, .metric, .item, .list, .summary-box, .cart-wrap, .modal-card, .legal-card, .printer-card, .gcal-panel, .gcal-connect-banner, .agenda-shell, .agenda-day-panel, .agenda-map-panel, .agenda-orders-panel, .agenda-metric-card, .profile-settings-column, #orders .orders-form-panel, #orders .orders-list-panel, #ordersTabQuotesPanel .quotes-panel, #ordersTabQuotesPanel .quotes-list-panel, #products .panel, #stock .stock-panel, #production .prod-metric, #production .prod-empty, .connection-card, .payment-method-toggle, .digital-menu-switch, .order-flow-option, .order-production-switch, .appearance-option, .plan-metric, .profile-field-card) {
  background: linear-gradient(180deg, var(--fc-dark-panel), #1b0f0c) !important;
  border: 1px solid var(--fc-dark-line) !important;
  color: var(--fc-dark-title) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .035) !important;
}

html[data-theme="dark"] :is(.dashboard-head, #orders .orders-polish-hero, #products .products-hero, #stock .stock-hero, #agenda .agenda-hero, #production .prod-progress-card, #ordersTabQuickPanel .qs-head, .profile-settings-hero) {
  background: linear-gradient(135deg, #3a181b, #1b0f0c) !important;
  border: 1px solid var(--fc-dark-line-strong) !important;
  color: var(--fc-dark-title) !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .04) !important;
}

html[data-theme="dark"] :is(h1, h2, h3, h4, h5, h6, strong, b, .nm, .brand, .panel-head h2, .dashboard-head h1, .products-hero h1, .stock-hero h1, .agenda-hero h1, .orders-polish-hero h1, .profile-settings-hero h1, .profile-settings-hero h2) {
  color: var(--fc-dark-title) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

html[data-theme="dark"] :is(p, small, span, label, .sub, .muted, .eyebrow, .dashboard-kicker, .products-kicker, .stock-kicker, .orders-polish-kicker, .prod-subtitle, .agenda-card-head p, .agenda-toolbar p, .gcal-panel-sub, .gcal-sd, .quote-card-meta, .recipe-help) {
  color: var(--fc-dark-copy) !important;
  opacity: 1 !important;
}

html[data-theme="dark"] :is(input, select, textarea, .auth-pw-wrap) {
  background: #0e0706 !important;
  border: 1px solid var(--fc-dark-line-strong) !important;
  color: var(--fc-dark-title) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03) !important;
}

html[data-theme="dark"] :is(input, select, textarea)::placeholder {
  color: rgba(239, 212, 191, .62) !important;
}

html[data-theme="dark"] :is(input, select, textarea):focus {
  background: #140b09 !important;
  border-color: rgba(255, 140, 167, .82) !important;
  box-shadow: 0 0 0 3px var(--fc-dark-focus), inset 0 1px 0 rgba(255, 255, 255, .04) !important;
  outline: none !important;
}

html[data-theme="dark"] .sidebar {
  background: #0b0504 !important;
  border-right: 1px solid rgba(255, 226, 204, .14) !important;
  box-shadow: 6px 0 20px rgba(0, 0, 0, .28) !important;
}

html[data-theme="dark"] .sidebar .sb-brand,
html[data-theme="dark"] .sidebar .sb-label {
  color: var(--fc-dark-title) !important;
}

html[data-theme="dark"] .nav-btn {
  color: var(--fc-dark-copy) !important;
}

html[data-theme="dark"] .nav-btn:hover,
html[data-theme="dark"] .nav-btn.active,
html[data-theme="dark"] .bottom-nav button.active,
html[data-theme="dark"] .bottom-more-toggle.active {
  background: linear-gradient(135deg, var(--fc-dark-accent), var(--fc-dark-accent-2)) !important;
  color: #fff !important;
}

html[data-theme="dark"] .app-header {
  background: #100807 !important;
  border-bottom: 1px solid rgba(255, 226, 204, .16) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .035) !important;
}

html[data-theme="dark"] .bottom-nav-main,
html[data-theme="dark"] .bottom-more-sheet {
  background: #140b09 !important;
  border-color: rgba(255, 226, 204, .18) !important;
  box-shadow: 0 -10px 26px rgba(0, 0, 0, .34) !important;
}

html[data-theme="dark"] :is(.btn-primary, .products-tab.active, .auth-tab.active, .orders-tabs button.active, .qs-tabs button.active, .prod-filter.active, .production-filters button.active, #ordersTabQuickPanel .qs-sell) {
  background: linear-gradient(135deg, var(--fc-dark-accent), var(--fc-dark-accent-2)) !important;
  border-color: rgba(255, 140, 167, .58) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(236, 93, 133, .26) !important;
}

html[data-theme="dark"] :is(.btn-soft, .icon-btn, .btn-gcal, .prod-filter, .products-tab, .auth-tab, .orders-tabs button, .qs-tabs button, .agenda-toolbar-actions button, .production-filters button) {
  background: rgba(255, 244, 234, .075) !important;
  border-color: var(--fc-dark-line) !important;
  color: var(--fc-dark-copy) !important;
}

html[data-theme="dark"] :is(.orders-polish-metrics > div, .order-list-card, .orders-row, .qs-product, .qs-summary, .qs-sheet, .prod-card, .prod-column, .prod-dropzone, #products .item, #stock .item, #menu .item, .menu-product-card, .recipe-panel, .recipe-entry-grid, .recipe-total-card, .recipe-history-item) {
  background: rgba(14, 7, 6, .46) !important;
  border-color: var(--fc-dark-line) !important;
  color: var(--fc-dark-title) !important;
}

html[data-theme="dark"] #agenda .agenda-calendar-grid,
html[data-theme="dark"] .agenda-calendar-grid {
  background: rgba(14, 7, 6, .35) !important;
}

html[data-theme="dark"] #agenda .agenda-calendar-grid .cal-head,
html[data-theme="dark"] .agenda-calendar-grid .cal-head {
  color: var(--fc-dark-copy) !important;
}

html[data-theme="dark"] #agenda .agenda-calendar-grid .cal-cell,
html[data-theme="dark"] .agenda-calendar-grid .cal-cell,
html[data-theme="dark"] .cal-cell {
  background: #241511 !important;
  border-color: var(--fc-dark-line) !important;
  color: var(--fc-dark-title) !important;
}

html[data-theme="dark"] #agenda .agenda-calendar-grid .cal-cell.dim,
html[data-theme="dark"] .agenda-calendar-grid .cal-cell.dim {
  background: rgba(255, 244, 234, .045) !important;
  color: var(--fc-dark-muted) !important;
}

html[data-theme="dark"] #agenda .agenda-calendar-grid .cal-cell.selected,
html[data-theme="dark"] #agenda .agenda-calendar-grid .cal-cell.today,
html[data-theme="dark"] .agenda-calendar-grid .cal-cell.selected,
html[data-theme="dark"] .agenda-calendar-grid .cal-cell.today {
  background: linear-gradient(180deg, rgba(236, 93, 133, .24), #241511) !important;
  border-color: rgba(255, 140, 167, .78) !important;
}

html[data-theme="dark"] .stock-help,
html[data-theme="dark"] #psSuggestion,
html[data-theme="dark"] #menuPublicLink {
  background: rgba(14, 7, 6, .70) !important;
  border-color: var(--fc-dark-line) !important;
  color: var(--fc-dark-copy) !important;
}

@media (max-width: 767px) {
  html[data-theme="dark"] .content {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  html[data-theme="dark"] .page {
    overflow-x: clip;
  }

  html[data-theme="dark"] :is(.panel, .dashboard-panel, .metric, .item, .list, .summary-box, .cart-wrap, .agenda-shell, .agenda-day-panel, .agenda-map-panel, .agenda-orders-panel, #orders .orders-form-panel, #orders .orders-list-panel, #products .panel, #stock .stock-panel, #settings .panel) {
    border-radius: 16px !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .035) !important;
  }
}

/* Unified page headers */
.page-hero,
#dashboard .dashboard-head,
#agenda .agenda-hero,
#products .products-hero,
#stock .stock-hero,
#printers .printer-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  margin: 0 0 18px;
  padding: 22px 24px;
  border: 1px solid rgba(218, 35, 102, .16);
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(218, 35, 102, .14), transparent 34%),
    linear-gradient(135deg, rgba(255, 247, 242, .96), rgba(255, 239, 230, .72)) !important;
  box-shadow: 0 18px 44px rgba(55, 27, 18, .08);
}

.page-hero h1,
#dashboard .dashboard-head h1,
#agenda .agenda-hero h1,
#products .products-hero h1,
#stock .stock-hero h1,
#printers .printer-page-head h1 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  line-height: .98;
  letter-spacing: 0;
}

.page-hero-kicker,
#dashboard .dashboard-kicker,
#agenda .agenda-kicker,
#products .products-kicker,
#stock .stock-kicker {
  display: block;
  margin: 0 0 6px;
  color: #da2366;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.page-hero > div > span,
.page-hero > div > p:not(.page-hero-kicker),
#dashboard .dashboard-head > div > p:not(.dashboard-kicker),
#agenda .agenda-hero > div > p:not(.agenda-kicker),
#products .products-hero > p:not(.products-kicker),
#stock .stock-hero > p:not(.stock-kicker),
#printers .printer-page-head span:not(.printer-count) {
  display: block;
  max-width: 680px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

#products .products-hero {
  align-items: flex-start;
  flex-direction: column;
}

html[data-theme="dark"] .page-hero,
html[data-theme="dark"] #dashboard .dashboard-head,
html[data-theme="dark"] #agenda .agenda-hero,
html[data-theme="dark"] #products .products-hero,
html[data-theme="dark"] #stock .stock-hero,
html[data-theme="dark"] #printers .printer-page-head {
  background: linear-gradient(135deg, #3a181b, #1b0f0c) !important;
  border: 1px solid var(--fc-dark-line-strong) !important;
  border-radius: 26px !important;
  color: var(--fc-dark-title) !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .04) !important;
}

html[data-theme="dark"] .page-hero-kicker,
html[data-theme="dark"] #dashboard .dashboard-kicker,
html[data-theme="dark"] #agenda .agenda-kicker,
html[data-theme="dark"] #products .products-kicker,
html[data-theme="dark"] #stock .stock-kicker {
  color: #ff7fa1 !important;
}

html[data-theme="dark"] .page-hero h1,
html[data-theme="dark"] #dashboard .dashboard-head h1,
html[data-theme="dark"] #agenda .agenda-hero h1,
html[data-theme="dark"] #products .products-hero h1,
html[data-theme="dark"] #stock .stock-hero h1,
html[data-theme="dark"] #printers .printer-page-head h1 {
  color: var(--fc-dark-title) !important;
}

html[data-theme="dark"] .page-hero > div > span,
html[data-theme="dark"] .page-hero > div > p:not(.page-hero-kicker),
html[data-theme="dark"] #dashboard .dashboard-head > div > p:not(.dashboard-kicker),
html[data-theme="dark"] #agenda .agenda-hero > div > p:not(.agenda-kicker),
html[data-theme="dark"] #products .products-hero > p:not(.products-kicker),
html[data-theme="dark"] #stock .stock-hero > p:not(.stock-kicker),
html[data-theme="dark"] #printers .printer-page-head span:not(.printer-count) {
  color: var(--fc-dark-copy) !important;
}

@media (max-width: 767px) {
  .page-hero,
  #dashboard .dashboard-head,
  #agenda .agenda-hero,
  #products .products-hero,
  #stock .stock-hero,
  #printers .printer-page-head {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
  }

  .page-hero .btn,
  #agenda .agenda-hero .btn {
    width: 100%;
  }
}

.profile-logo-upload-card {
  gap: 10px;
}

.profile-logo-upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.profile-logo-file-btn {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.profile-logo-file-btn input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.profile-logo-upload-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

html[data-theme="dark"] .profile-logo-upload-card small {
  color: var(--fc-dark-copy) !important;
}

@media (max-width: 767px) {
  .profile-logo-upload-row {
    grid-template-columns: 1fr;
  }

  .profile-logo-file-btn {
    justify-content: center;
    width: 100%;
  }
}

/* Orders page identification header */
#orders .orders-polish-hero {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 18px !important;
  width: 100% !important;
  margin: 0 0 18px !important;
  padding: 22px 24px !important;
  border: 1px solid rgba(218, 35, 102, .16) !important;
  border-radius: 26px !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(218, 35, 102, .14), transparent 34%),
    linear-gradient(135deg, rgba(255, 247, 242, .96), rgba(255, 239, 230, .72)) !important;
  box-shadow: 0 18px 44px rgba(55, 27, 18, .08) !important;
}

#orders .orders-polish-kicker {
  display: block !important;
  margin: 0 0 6px !important;
  color: #da2366 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
}

#orders .orders-polish-hero h1 {
  margin: 0 !important;
  color: var(--text) !important;
  font-family: var(--font-display) !important;
  font-size: clamp(28px, 4vw, 44px) !important;
  line-height: .98 !important;
  letter-spacing: 0 !important;
}

#orders .orders-polish-hero p {
  display: block !important;
  max-width: 680px !important;
  margin: 8px 0 0 !important;
  color: var(--muted) !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

#orders .orders-polish-action {
  min-height: 44px !important;
  padding: 0 24px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
}

html[data-theme="dark"] #orders .orders-polish-hero {
  background: linear-gradient(135deg, #3a181b, #1b0f0c) !important;
  border-color: var(--fc-dark-line-strong) !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .04) !important;
}

html[data-theme="dark"] #orders .orders-polish-kicker {
  color: #ff7fa1 !important;
}

html[data-theme="dark"] #orders .orders-polish-hero h1 {
  color: var(--fc-dark-title) !important;
}

html[data-theme="dark"] #orders .orders-polish-hero p {
  color: var(--fc-dark-copy) !important;
}

@media (max-width: 767px) {
  #orders .orders-polish-hero {
    align-items: stretch !important;
    flex-direction: column !important;
    gap: 14px !important;
    padding: 18px !important;
    border-radius: 22px !important;
  }

  #orders .orders-polish-action {
    width: 100% !important;
  }
}

/* Critical UX fixes: pedidos, venda rapida, pagamentos e logo do cardapio */
#orders.orders-polish-page { padding-top: 6px; }
#orders .orders-tabs {
  position: sticky;
  top: 10px;
  z-index: 12;
  align-self: center;
  margin: 0 auto 14px;
  box-shadow: 0 10px 24px rgba(63, 32, 18, .08);
}
#orders .orders-polish-hero,
#orders .orders-polish-metrics { display: none !important; }
#ordersTabQuickPanel .qs-phone { position: relative; }
#ordersTabQuickPanel .qs-product { overflow: hidden; align-content: start; }
#ordersTabQuickPanel .qs-product img { border-radius: 16px; background: #fff; object-fit: cover; }
#ordersTabQuickPanel .qs-product strong,
#ordersTabQuickPanel .qs-product span {
  display: block;
  position: relative;
  z-index: 1;
  padding-inline: 2px;
  line-height: 1.25;
}
#ordersTabQuickPanel .qs-checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(22, 8, 5, .62);
  backdrop-filter: blur(10px);
}
#ordersTabQuickPanel .qs-checkout-modal .qs-sheet {
  position: relative;
  inset: auto;
  width: min(780px, 100%);
  max-height: min(86vh, 760px);
  overflow-y: auto;
  border-radius: 24px;
  padding: 26px;
  background: #fffdfb;
  box-shadow: 0 30px 90px rgba(29, 8, 0, .28);
}
#ordersTabQuickPanel .qs-checkout-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 18px;
  padding: 16px 18px;
  border: 1px solid #f0dce2;
  border-radius: 18px;
  background: #fff6f8;
}
#ordersTabQuickPanel .qs-checkout-total span {
  color: #7a6262;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
#ordersTabQuickPanel .qs-checkout-total strong {
  color: #d01e50;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1;
}
#ordersTabQuickPanel .qs-payments { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
#ordersTabQuickPanel .qs-payments button {
  justify-content: flex-start;
  min-height: 56px;
  padding: 12px 15px;
  text-align: left;
}
#ordersTabQuickPanel .qs-money-row { grid-template-columns: minmax(0, 1fr) minmax(240px, .8fr); }
body.qs-checkout-open { overflow: hidden; }

.payment-method-toggle { grid-template-columns: auto minmax(0, 1fr) auto; }
.payment-method-switch {
  position: relative;
  width: 58px;
  height: 32px;
  border-radius: 999px;
  background: #dbc8c1;
  box-shadow: inset 0 0 0 1px rgba(75, 41, 31, .08);
  transition: .18s ease;
  font-style: normal;
}
.payment-method-switch::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 10px rgba(48, 25, 16, .18);
  transition: .18s ease;
}
.payment-method-switch::before {
  content: attr(data-icon);
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  color: #7d5d54;
  font-size: 13px;
  line-height: 1;
  transform: translateX(0);
  transition: .18s ease;
}
.payment-method-toggle.active .payment-method-switch { background: linear-gradient(135deg, #df5d82, #ce2f67); }
.payment-method-toggle.active .payment-method-switch::after { transform: translateX(26px); }
.payment-method-toggle.active .payment-method-switch::before {
  color: #ce2f67;
  transform: translateX(26px);
}

.nav-logo.has-image { padding: 0 !important; overflow: hidden; background: #fff !important; }
.nav-logo.has-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
html[data-theme="dark"] #ordersTabQuickPanel .qs-checkout-modal { background: rgba(10, 4, 3, .78); }
html[data-theme="dark"] #ordersTabQuickPanel .qs-checkout-modal .qs-sheet,
html[data-theme="dark"] #ordersTabQuickPanel .qs-checkout-total {
  background: #211411 !important;
  border-color: rgba(255, 238, 224, .16) !important;
  color: #fff4ea !important;
}
html[data-theme="dark"] #ordersTabQuickPanel .qs-checkout-total span { color: #d8bcaa !important; }
html[data-theme="dark"] .payment-method-switch { background: rgba(255, 238, 224, .16); }
html[data-theme="dark"] .payment-method-switch::before { color: #d8bcaa; }
html[data-theme="dark"] .payment-method-toggle.active .payment-method-switch::before { color: #ce2f67; }

@media (max-width: 760px) {
  #orders .orders-tabs {
    top: 8px;
    width: min(100%, 440px);
    overflow-x: auto;
  }
  #ordersTabQuickPanel .qs-checkout-modal {
    align-items: end;
    padding: 10px;
  }
  #ordersTabQuickPanel .qs-checkout-modal .qs-sheet {
    width: 100%;
    max-height: 88vh;
    border-radius: 22px 22px 16px 16px;
    padding: 22px 16px 16px;
  }
  #ordersTabQuickPanel .qs-money-row,
  #ordersTabQuickPanel .qs-sheet-actions { grid-template-columns: 1fr; }
  .payment-method-toggle { grid-template-columns: auto minmax(0, 1fr) auto; }
  .payment-method-switch { grid-column: 3; grid-row: 1 / span 2; }
}

/* Perfil da doceria: inputs integrados no modo escuro */
html[data-theme="dark"] .profile-field-card {
  background: rgba(255, 238, 224, .055) !important;
  border-color: rgba(255, 238, 224, .15) !important;
}
html[data-theme="dark"] .profile-field-card:focus-within {
  border-color: rgba(255, 126, 162, .55) !important;
  box-shadow: 0 0 0 3px rgba(255, 126, 162, .10) !important;
}
html[data-theme="dark"] .profile-field-card input {
  min-height: 30px !important;
  padding: 2px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #fff6ee !important;
  box-shadow: none !important;
}
html[data-theme="dark"] .profile-field-card input::placeholder {
  color: rgba(255, 238, 224, .58) !important;
}
html[data-theme="dark"] .profile-field-card input:focus {
  outline: 0 !important;
}

html[data-theme="dark"] #settings .profile-card-grid .profile-field-card input,
html[data-theme="dark"] #settings .profile-logo-upload-card input {
  appearance: none !important;
  -webkit-appearance: none !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .business-day-row {
  background: rgba(255, 238, 224, .045) !important;
  border-color: rgba(255, 238, 224, .16) !important;
}

html[data-theme="dark"] .business-day-row.active {
  background: rgba(255, 126, 162, .08) !important;
  border-color: rgba(255, 126, 162, .32) !important;
}

html[data-theme="dark"] .business-day-row strong {
  color: #fff6ee !important;
}

html[data-theme="dark"] .business-hours-time input[type="time"] {
  border: 1px solid rgba(255, 238, 224, .22) !important;
  background: rgba(12, 5, 3, .42) !important;
  color: #fff6ee !important;
}

html[data-theme="dark"] .business-hours-time em,
html[data-theme="dark"] #businessHoursSummary {
  color: rgba(255, 238, 224, .68) !important;
}

/* Business hours compact fix 20260724 */
.business-hours-card {
  overflow: hidden;
}

.business-hours-card,
.business-hours-card * {
  box-sizing: border-box;
}

.business-day-toggle {
  width: 100%;
}

/* Native time inputs need room for the browser clock control. */
.business-hours-time {
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  width: 100% !important;
}

.business-hours-time em {
  display: none !important;
}

.business-hours-time input[type="time"] {
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 44px !important;
  padding-inline: 14px !important;
  font-size: 14px !important;
}

@media (max-width: 860px) {
  .business-hours-editor {
    grid-template-columns: 1fr;
  }
  .business-day-row {
    grid-template-columns: minmax(130px, .85fr) minmax(0, 1.15fr);
  }
}

@media (max-width: 520px) {
  .business-day-row {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .business-hours-time {
    grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr);
    gap: 6px;
  }
  .business-hours-time input[type="time"] {
    padding: 0 6px !important;
    font-size: 12px !important;
  }
}

/* Production start confirmation 20260723 */
.production-start-modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(34, 18, 14, 0.58);
  backdrop-filter: blur(10px);
}
.production-start-card {
  position: relative;
  width: min(920px, 100%);
  max-height: min(86vh, 860px);
  overflow: auto;
  background: var(--surface, #fffaf7);
  border: 1px solid rgba(125, 68, 58, 0.2);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(63, 34, 27, 0.24);
  padding: clamp(20px, 3vw, 34px);
}
.production-start-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(125, 68, 58, 0.18);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text, #2b140f);
  font-size: 22px;
  cursor: pointer;
}
.production-start-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(226, 24, 107, 0.1);
  color: var(--primary, #d81b60);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.production-start-card h3 {
  margin: 12px 48px 6px 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}
.production-start-card > p {
  margin: 0 0 18px;
  color: var(--muted, #856b62);
}
.production-start-card .production-preview-summary {
  margin-top: 18px;
}
.production-start-actions {
  position: sticky;
  bottom: -1px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
  padding-top: 16px;
  background: linear-gradient(180deg, transparent, var(--surface, #fffaf7) 28%);
}
.production-start-actions .btn {
  min-height: 46px;
  border-radius: 999px;
  padding-inline: 22px;
}
html[data-theme="dark"] .production-start-modal {
  background: rgba(9, 3, 2, 0.72);
}
html[data-theme="dark"] .production-start-card {
  background: #21130f;
  border-color: rgba(255, 232, 217, 0.16);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.54);
}
html[data-theme="dark"] .production-start-close {
  background: rgba(255, 232, 217, 0.1);
  color: #fff4ec;
  border-color: rgba(255, 232, 217, 0.18);
}
html[data-theme="dark"] .production-start-actions {
  background: linear-gradient(180deg, transparent, #21130f 32%);
}
html[data-theme="dark"] .production-start-card .production-preview-summary,
html[data-theme="dark"] .production-start-card .production-ingredient-card {
  background: rgba(255, 232, 217, 0.06);
  border-color: rgba(255, 232, 217, 0.14);
}
@media (max-width: 720px) {
  .production-start-modal {
    align-items: end;
    padding: 0;
  }
  .production-start-card {
    width: 100%;
    max-height: 88vh;
    border-radius: 28px 28px 0 0;
    padding: 22px 16px calc(18px + env(safe-area-inset-bottom));
  }
  .production-start-actions {
    flex-direction: column-reverse;
  }
  .production-start-actions .btn {
    width: 100%;
  }
}

/* Fichas técnicas e composição de produtos */
.technical-sheet-step,
.product-composition-card {
  border: 1px solid var(--bd);
  border-radius: 16px;
  background: rgba(255, 247, 242, .58);
  padding: 14px;
  margin-bottom: 12px;
}

.technical-sheet-step > strong,
.product-composition-card h3 {
  display: block;
  color: var(--choco);
  font-size: 14px;
  margin: 0 0 10px;
}

.product-composition-card p {
  color: var(--muted);
  font-size: 12px;
  margin: 2px 0 10px;
}

.product-cost-mode {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 10px;
  align-items: center;
  border: 1px solid var(--bd);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 247, 242, .58);
}

.product-cost-mode input {
  width: 18px;
  height: 18px;
  accent-color: var(--rose);
}

.product-cost-mode span {
  font-weight: 800;
  color: var(--choco);
}

.product-cost-mode small {
  grid-column: 2;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.recipe-history-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.recipe-history-filters input,
.recipe-history-filters select {
  min-height: 34px;
  border: 1px solid var(--bd);
  border-radius: 999px;
  padding: 0 12px;
  background: #fff;
  font-size: 12px;
}

.recipe-history-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.recipe-history-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

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

.recipe-component-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--bd);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .55);
}

.product-add-composition-btn {
  width: fit-content;
}

.product-composition-form {
  border: 1px solid rgba(124, 67, 52, .14);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255,255,255,.62);
  display: grid;
  gap: 10px;
}

.product-component-helper,
.product-component-recipe-hint {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(199, 79, 105, .18);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 244, 247, .78);
  color: #6f4f47;
}

.product-component-helper strong,
.product-component-recipe-hint strong {
  color: var(--choco);
  font-weight: 950;
}

.product-component-helper span,
.product-component-recipe-hint span,
.product-component-recipe-hint small {
  color: var(--muted);
  line-height: 1.4;
}

.product-component-recipe-hint small {
  font-weight: 900;
}

.product-component-grid label,
.product-composition-form .form-grid.c2 label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.product-component-grid label > span,
.product-composition-form .form-grid.c2 label > span {
  color: #8a655b;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.product-component-grid :is(input, select),
.product-composition-form .form-grid.c2 label select {
  width: 100%;
  min-height: 46px;
}

#productRecipeCostArea .product-component-grid {
  grid-template-columns: minmax(240px, 420px);
}

#productRecipeCostArea #productComponentRecipe {
  min-height: 54px;
  border: 1px solid rgba(196, 80, 109, .22);
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  font-weight: 900;
}

.product-cost-target {
  max-width: 220px;
}

.product-cost-target input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(124, 67, 52, .18);
  border-radius: 13px;
  padding: 0 12px;
  background: rgba(255,255,255,.82);
}

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

.product-cost-summary-grid span {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 96px;
  border: 1px solid rgba(196, 80, 109, .18);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,246,242,.9));
  box-shadow: 0 12px 24px rgba(83, 54, 42, .06);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.product-cost-summary-grid strong {
  color: var(--choco);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.05;
}

.product-cost-summary-grid strong.ok {
  color: #157347;
}

.product-cost-summary-grid strong.danger {
  color: #b4234b;
}

.product-cost-summary-grid small {
  color: #8a655b;
  font-size: .72rem;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
}

html[data-theme="dark"] .product-composition-form,
html[data-theme="dark"] .product-component-helper,
html[data-theme="dark"] .product-component-recipe-hint,
html[data-theme="dark"] .product-cost-summary-grid span,
html[data-theme="dark"] .product-cost-target input,
html[data-theme="dark"] .product-manual-yield,
html[data-theme="dark"] .product-manual-yield input,
html[data-theme="dark"] #productRecipeCostArea #productComponentRecipe {
  background: rgba(39, 19, 15, .86);
  border-color: rgba(255, 226, 205, .14);
  color: #fff4e6;
}

html[data-theme="dark"] .product-component-helper strong,
html[data-theme="dark"] .product-component-recipe-hint strong,
html[data-theme="dark"] .product-cost-summary-grid strong {
  color: #fff4e6;
}

html[data-theme="dark"] .product-component-helper span,
html[data-theme="dark"] .product-component-recipe-hint span,
html[data-theme="dark"] .product-component-recipe-hint small,
html[data-theme="dark"] .product-component-grid label > span,
html[data-theme="dark"] .product-composition-form .form-grid.c2 label > span,
html[data-theme="dark"] .product-manual-yield span {
  color: #d8bcad;
}

@media (max-width: 760px) {
  .product-add-composition-btn,
  .product-cost-target,
  .product-composition-form .btn {
    width: 100%;
  }

.product-cost-summary-grid {
    grid-template-columns: 1fr;
  }

  .recipe-component-row {
    display: grid;
    gap: 10px;
  }

  .recipe-component-row .icon-btn {
    width: 100%;
    min-height: 44px;
  }
}

.product-composition-card .recipe-sheet-grid {
  display: grid;
  gap: 0;
  margin: 0;
  border: 1px solid rgba(223, 189, 178, .9);
  border-radius: 18px;
  overflow: hidden;
  background: #fffdfb;
  box-shadow: 0 12px 28px rgba(83, 54, 42, .06);
}

.product-composition-card .recipe-sheet-head,
.product-composition-card .recipe-sheet-entry {
  display: grid;
  grid-template-columns: minmax(210px, 1.35fr) minmax(130px, .75fr) minmax(105px, .55fr) minmax(130px, .7fr) minmax(112px, auto);
  align-items: stretch;
}

.product-composition-card .recipe-sheet-head {
  background: linear-gradient(135deg, rgba(255, 248, 244, .98), rgba(255, 239, 245, .82));
  border-bottom: 1px solid rgba(223, 189, 178, .9);
}

.product-composition-card .recipe-sheet-head span {
  padding: 11px 12px;
  color: #7d5d52;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-right: 1px solid rgba(223, 189, 178, .62);
}

.product-composition-card .recipe-sheet-entry label {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border-right: 1px solid rgba(223, 189, 178, .62);
}

.product-composition-card .recipe-sheet-entry label span {
  display: none;
}

.product-composition-card .recipe-sheet-entry input,
.product-composition-card .recipe-sheet-entry select {
  width: 100%;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(255, 248, 242, .72);
  font-weight: 800;
}

.product-composition-card .recipe-sheet-entry .btn {
  align-self: center;
  justify-self: stretch;
  min-height: 42px;
  margin: 10px;
  border-radius: 12px;
}

html[data-theme="dark"] .product-composition-card .recipe-sheet-grid,
html[data-theme="dark"] .product-composition-card .recipe-sheet-entry input,
html[data-theme="dark"] .product-composition-card .recipe-sheet-entry select {
  background: rgba(39, 19, 15, .88);
  border-color: rgba(255, 226, 205, .14);
  color: #fff4e6;
}

html[data-theme="dark"] .product-composition-card .recipe-sheet-head {
  background: rgba(255, 238, 224, .07);
}

@media (max-width: 900px) {
  .product-cost-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .product-composition-card .recipe-sheet-head {
    display: none;
  }

  .product-composition-card .recipe-sheet-entry {
    grid-template-columns: 1fr;
  }

  .product-composition-card .recipe-sheet-entry label {
    border-right: 0;
    border-bottom: 1px solid rgba(223, 189, 178, .62);
  }

  .product-composition-card .recipe-sheet-entry label span {
    display: block;
    color: var(--muted);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
  }
}

/* Stock visual refactor: mobile-first cards for ingredients, packaging and ready products */
#stock .stock-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

#stock .stock-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

#stock .stock-toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

#stock .stock-toolbar:not(:has(.search-input)) {
  margin-bottom: 18px;
}

#stock .stock-toolbar .search-input {
  width: 100%;
  min-height: 46px;
}

#stock .stock-filter-row,
#stock .stock-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

#stock .stock-filter-row button,
#stock .stock-tabs button {
  border: 1px solid rgba(124, 67, 52, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: var(--choco);
  font-weight: 850;
  white-space: nowrap;
  min-height: 40px;
  padding: 0 15px;
}

#stock .stock-filter-row button.active,
#stock .stock-tabs button.active {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
  box-shadow: 0 10px 24px rgba(216, 93, 133, .22);
}

#stock .stock-summary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 14px 0;
}

#stock .stock-summary-grid .metric {
  min-height: 112px;
}

#stock .stock-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

#stock .stock-item-card,
#stock .stock-movement-card,
#stock .stock-empty-state {
  border: 1px solid rgba(124, 67, 52, .13);
  border-radius: 20px;
  background: rgba(255, 255, 255, .74);
  padding: 16px;
  box-shadow: 0 10px 24px rgba(73, 38, 28, .06);
}

#stock .stock-item-card.estoque_baixo,
#stock .stock-item-card.proximo_vencimento {
  border-color: rgba(212, 157, 57, .36);
}

#stock .stock-item-card.sem_estoque,
#stock .stock-item-card.vencido {
  border-color: rgba(211, 76, 94, .34);
}

#stock .stock-item-main {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

#stock .stock-item-main h3 {
  margin: 2px 0 4px;
  color: var(--choco);
  font-size: 1.08rem;
}

#stock .stock-item-main span,
#stock .stock-item-kind {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 750;
}

#stock .stock-item-kind {
  text-transform: uppercase;
  letter-spacing: .06em;
}

#stock .stock-qty-highlight {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

#stock .stock-qty-highlight strong {
  color: var(--rose);
  font-size: 2.25rem;
  line-height: 1;
}

#stock .stock-qty-highlight span {
  color: var(--muted);
  font-weight: 800;
}

#stock .stock-qty-highlight small {
  flex-basis: 100%;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .01em;
}

#stock .stock-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

#stock .stock-detail-grid div {
  border: 1px solid rgba(124, 67, 52, .10);
  border-radius: 14px;
  padding: 9px;
  background: rgba(255, 250, 246, .66);
}

#stock .stock-detail-grid small {
  display: block;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 850;
}

#stock .stock-detail-grid b {
  display: block;
  margin-top: 3px;
  color: var(--choco);
}

#stock .stock-actions-menu {
  margin-top: 12px;
  position: relative;
}

#stock .stock-actions-menu summary {
  cursor: pointer;
  list-style: none;
  width: fit-content;
  border: 1px solid rgba(124, 67, 52, .14);
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 850;
  color: var(--choco);
  background: rgba(255, 255, 255, .78);
}

#stock .stock-actions-menu summary::-webkit-details-marker {
  display: none;
}

#stock .stock-actions-menu div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

#stock .stock-actions-menu button {
  border: 1px solid rgba(124, 67, 52, .14);
  border-radius: 999px;
  background: #fff;
  color: var(--choco);
  min-height: 36px;
  padding: 0 12px;
  font-weight: 800;
}

#stock .stock-actions-menu button.danger {
  border-color: rgba(190, 55, 80, .22);
  background: rgba(255, 231, 235, .9);
  color: #9f1f3f;
}

#ordersTabQuickPanel .qs-stock-badge {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 5px;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(34, 197, 94, .12);
  color: #166534;
  font-size: .72rem;
  font-weight: 850;
}

#ordersTabQuickPanel .qs-stock-badge.danger {
  background: rgba(244, 63, 94, .12);
  color: #be123c;
}

#ordersTabQuickPanel .qs-product.out-of-stock {
  opacity: .72;
}

#ordersTabQuickPanel .qs-product.out-of-stock img {
  filter: grayscale(.25);
}

#stock .stock-movement-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

#stock .stock-movement-card strong,
#stock .stock-empty-state strong {
  color: var(--choco);
}

#stock .stock-movement-card span,
#stock .stock-empty-state p {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .82rem;
}

#stock .stock-movement-card b.positive {
  color: #15945c;
}

#stock .stock-movement-card b.negative {
  color: #d14b63;
}

html[data-theme="dark"] #stock .stock-filter-row button,
html[data-theme="dark"] #stock .stock-tabs button,
html[data-theme="dark"] #stock .stock-item-card,
html[data-theme="dark"] #stock .stock-movement-card,
html[data-theme="dark"] #stock .stock-empty-state,
html[data-theme="dark"] #stock .stock-detail-grid div,
html[data-theme="dark"] #stock .stock-actions-menu summary,
html[data-theme="dark"] #stock .stock-actions-menu button {
  background: rgba(37, 20, 16, .92);
  border-color: rgba(255, 226, 204, .16);
  color: #fff7ed;
}

html[data-theme="dark"] #stock .stock-item-main h3,
html[data-theme="dark"] #stock .stock-detail-grid b,
html[data-theme="dark"] #stock .stock-movement-card strong,
html[data-theme="dark"] #stock .stock-empty-state strong {
  color: #fff7ed;
}

html[data-theme="dark"] #stock .stock-item-main span,
html[data-theme="dark"] #stock .stock-item-kind,
html[data-theme="dark"] #stock .stock-detail-grid small,
html[data-theme="dark"] #stock .stock-qty-highlight span,
html[data-theme="dark"] #stock .stock-movement-card span,
html[data-theme="dark"] #stock .stock-empty-state p {
  color: #d8bcad;
}

html[data-theme="dark"] #stock .stock-qty-highlight small {
  color: #f0d8c9;
}

html[data-theme="dark"] #stock .stock-actions-menu button.danger {
  background: rgba(190, 55, 80, .18);
  border-color: rgba(255, 128, 162, .32);
  color: #ffdbe4;
}

html[data-theme="dark"] #ordersTabQuickPanel .qs-stock-badge {
  background: rgba(52, 211, 153, .15);
  color: #bbf7d0;
}

html[data-theme="dark"] #ordersTabQuickPanel .qs-stock-badge.danger {
  background: rgba(251, 113, 133, .16);
  color: #fecdd3;
}

/* Produtos: lista primeiro, cadastro sob demanda */
#products .product-editor-panel.hidden {
  display: none !important;
}

#productsTab-receita .recipe-stock-flow {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) minmax(260px, 1.1fr);
  gap: 12px;
  align-items: stretch;
  margin: 12px 0;
}

.product-choice-grid.two,
.product-cost-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-cost-source-grid {
  margin: 12px 0;
}

.product-cost-source-grid .product-choice-card {
  min-height: 118px;
}

.product-manual-cost-grid {
  margin: 0;
}

.product-manual-yield {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(196, 80, 109, .18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 248, 244, .98), rgba(255, 239, 245, .72));
}

.product-manual-yield span {
  color: #6f4b40;
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.product-manual-yield input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(124, 67, 52, .16);
  border-radius: 14px;
  padding: 0 14px;
  background: rgba(255,255,255,.9);
  color: var(--choco);
  font-size: 1rem;
  font-weight: 900;
}

.product-manual-cost-grid .recipe-sheet-entry {
  grid-template-columns: minmax(210px, 1.35fr) minmax(130px, .75fr) minmax(105px, .55fr) minmax(130px, .7fr) minmax(112px, auto);
}

#productsTab-receita .recipe-sheet-grid {
  display: grid;
  gap: 0;
  margin: 14px 0 10px;
  border: 1px solid rgba(223, 189, 178, .9);
  border-radius: 18px;
  overflow: hidden;
  background: #fffdfb;
  box-shadow: 0 12px 28px rgba(83, 54, 42, .06);
}

#productsTab-receita .recipe-sheet-head,
#productsTab-receita .recipe-sheet-entry {
  display: grid;
  grid-template-columns: minmax(210px, 1.35fr) minmax(130px, .75fr) minmax(105px, .55fr) minmax(130px, .7fr) minmax(112px, auto);
  align-items: stretch;
}

#productsTab-receita .recipe-sheet-grid.recipe-packaging-mode .recipe-sheet-head,
#productsTab-receita .recipe-sheet-grid.recipe-packaging-mode .recipe-sheet-entry {
  grid-template-columns: minmax(190px, 1.2fr) minmax(120px, .7fr) minmax(125px, .62fr) minmax(130px, .7fr) minmax(140px, .75fr) minmax(112px, auto);
}

#productsTab-receita .recipe-packaging-only {
  display: none !important;
}

#productsTab-receita .recipe-sheet-grid.recipe-packaging-mode .recipe-packaging-only {
  display: grid !important;
}

#productsTab-receita .recipe-sheet-head {
  background: linear-gradient(135deg, rgba(255, 248, 244, .98), rgba(255, 239, 245, .82));
  border-bottom: 1px solid rgba(223, 189, 178, .9);
}

#productsTab-receita .recipe-sheet-head span {
  padding: 11px 12px;
  color: #7d5d52;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-right: 1px solid rgba(223, 189, 178, .62);
}

#productsTab-receita .recipe-sheet-head span:last-child {
  border-right: 0;
}

#productsTab-receita .recipe-sheet-entry label {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border-right: 1px solid rgba(223, 189, 178, .62);
}

#productsTab-receita .recipe-sheet-entry label span {
  display: none;
}

#productsTab-receita .recipe-sheet-entry input,
#productsTab-receita .recipe-sheet-entry select {
  width: 100%;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(255, 248, 242, .72);
  font-weight: 800;
}

#productsTab-receita .recipe-sheet-entry input:focus,
#productsTab-receita .recipe-sheet-entry select:focus {
  border-color: rgba(196, 80, 109, .42);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(196, 80, 109, .1);
}

#productsTab-receita .recipe-sheet-entry #recipeAddBtn {
  align-self: center;
  justify-self: stretch;
  min-height: 42px;
  margin: 10px;
  border-radius: 12px;
}

#productsTab-receita .recipe-sheet-grid .recipe-ingredient-cost-preview {
  border-width: 1px 0 0;
  border-radius: 0;
  min-height: 46px;
}

#productsTab-receita .recipe-stock-select,
#productsTab-receita .recipe-entry-grid label {
  display: grid;
  gap: 7px;
}

#productsTab-receita .recipe-stock-select span,
#productsTab-receita .recipe-entry-grid label span {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

#productsTab-receita .recipe-ingredient-hint,
#productsTab-receita .recipe-ingredient-cost-preview {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 54px;
  border: 1px solid rgba(223, 189, 178, .78);
  border-radius: 18px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(255, 248, 244, .98), rgba(255, 239, 245, .74));
  color: #6f5047;
  font-size: .84rem;
  line-height: 1.35;
}

#productsTab-receita .recipe-ingredient-hint strong,
#productsTab-receita .recipe-ingredient-cost-preview strong {
  color: var(--choco);
  font-size: 1rem;
}

#productsTab-receita .recipe-ingredient-hint span,
#productsTab-receita .recipe-ingredient-cost-preview span,
#productsTab-receita .recipe-ingredient-cost-preview small {
  color: var(--muted);
}

#productsTab-receita .recipe-ingredient-cost-preview {
  border-color: rgba(34, 197, 94, .22);
  background: linear-gradient(135deg, rgba(237, 253, 245, .92), rgba(255, 250, 246, .96));
}

#productsTab-receita .recipe-ingredient-cost-preview.error {
  border-color: rgba(218, 35, 102, .28);
  background: rgba(255, 235, 239, .86);
  color: #9f1f3f;
}

#productsTab-receita .recipe-entry-grid {
  grid-template-columns: minmax(180px, 1fr) minmax(120px, .35fr) minmax(220px, .9fr);
  align-items: end;
}

#productsTab-receita .recipe-entry-grid.manual {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 10px;
}

#productsTab-receita .recipe-manual-cost {
  margin: 10px 0 0;
  border: 1px dashed rgba(223, 189, 178, .78);
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(255, 253, 250, .62);
}

#productsTab-receita .recipe-manual-cost summary {
  cursor: pointer;
  color: var(--choco);
  font-weight: 900;
}

#productsTab-receita .recipe-manual-cost p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .82rem;
}

#productsTab-receita .recipe-origin-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(34, 197, 94, .12);
  color: #166534;
  font-size: .68rem;
  font-weight: 900;
  vertical-align: middle;
}

#productsTab-receita .recipe-origin-badge.manual {
  background: rgba(218, 35, 102, .10);
  color: #a1254e;
}

#productsTab-receita .recipe-technical-muted {
  opacity: .72;
}

html[data-theme="dark"] #productsTab-receita .recipe-ingredient-hint,
html[data-theme="dark"] #productsTab-receita .recipe-ingredient-cost-preview,
html[data-theme="dark"] #productsTab-receita .recipe-manual-cost,
html[data-theme="dark"] #productsTab-receita .recipe-sheet-grid {
  background: rgba(255, 238, 224, .055) !important;
  border-color: rgba(255, 238, 224, .16) !important;
  color: #f1d5c2 !important;
}

html[data-theme="dark"] #productsTab-receita .recipe-sheet-head {
  background: rgba(255, 238, 224, .07) !important;
  border-color: rgba(255, 238, 224, .16) !important;
}

html[data-theme="dark"] #productsTab-receita .recipe-sheet-head span,
html[data-theme="dark"] #productsTab-receita .recipe-sheet-entry label {
  border-color: rgba(255, 238, 224, .14) !important;
}

html[data-theme="dark"] #productsTab-receita .recipe-sheet-head span {
  color: #e7cbb9 !important;
}

html[data-theme="dark"] #productsTab-receita .recipe-sheet-entry input,
html[data-theme="dark"] #productsTab-receita .recipe-sheet-entry select {
  background: rgba(255, 248, 242, .07) !important;
  border-color: rgba(255, 238, 224, .11) !important;
  color: #fff7ed !important;
}

html[data-theme="dark"] #productsTab-receita .recipe-ingredient-cost-preview {
  border-color: rgba(52, 211, 153, .24) !important;
}

html[data-theme="dark"] #productsTab-receita .recipe-ingredient-cost-preview.error {
  border-color: rgba(255, 128, 162, .35) !important;
  color: #ffdbe4 !important;
}

html[data-theme="dark"] #productsTab-receita .recipe-ingredient-hint strong,
html[data-theme="dark"] #productsTab-receita .recipe-ingredient-cost-preview strong,
html[data-theme="dark"] #productsTab-receita .recipe-manual-cost summary {
  color: #fff7ed !important;
}

html[data-theme="dark"] #productsTab-receita .recipe-origin-badge {
  background: rgba(52, 211, 153, .15);
  color: #bbf7d0;
}

html[data-theme="dark"] #productsTab-receita .recipe-origin-badge.manual {
  background: rgba(251, 113, 133, .16);
  color: #fecdd3;
}

#products .products-tabs {
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

#products .products-tabs::after {
  content: "";
  flex: 0 0 10px;
}

@media (max-width: 640px) {
  #products .products-tabs {
    margin-inline: -4px;
    padding: 0 4px 8px;
    mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent);
  }

  #products .products-tab {
    min-height: 44px;
    padding-inline: 14px;
  }

  #products .product-editor-panel {
    scroll-margin-top: 12px;
  }

  #productsTab-receita .recipe-stock-flow,
  #productsTab-receita .recipe-entry-grid,
  #productsTab-receita .recipe-entry-grid.manual {
    grid-template-columns: 1fr;
  }

  #productsTab-receita .recipe-sheet-head {
    display: none;
  }

  #productsTab-receita .recipe-sheet-entry {
    grid-template-columns: 1fr;
  }

  #productsTab-receita .recipe-sheet-entry label {
    border-right: 0;
    border-bottom: 1px solid rgba(223, 189, 178, .62);
  }

  #productsTab-receita .recipe-sheet-entry label span {
    display: block;
    color: var(--muted);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  #productsTab-receita .recipe-secondary-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  #productsTab-receita .recipe-secondary-actions .btn {
    width: 100%;
  }
}

@media (max-width: 980px) {
  #stock .stock-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  #stock .stock-hero {
    display: grid;
  }

  #stock .stock-hero-actions,
  #stock .stock-hero-actions .btn {
    width: 100%;
  }

  #stock .stock-summary-grid,
  #stock .stock-card-list,
  #stock .stock-detail-grid,
  #stock .stock-editor-card .form-grid,
  #stock .stock-editor-card .form-grid.c1,
  #stock .stock-editor-card .form-grid.c4 {
    grid-template-columns: 1fr;
  }

  #stock .stock-filter-row,
  #stock .stock-tabs {
    margin-left: -2px;
    padding: 0 2px 6px;
  }

  #stock .stock-actions-menu div {
    display: grid;
    grid-template-columns: 1fr;
  }

  #stock .stock-actions-menu button,
  #stock .stock-actions-menu summary,
  #stock .stock-editor-card .action-row .btn {
    width: 100%;
    min-height: 46px;
  }

  #stock .stock-qty-highlight strong {
    font-size: 2rem;
  }
}

.recipe-component-row strong,
.recipe-component-row span {
  display: block;
}

.recipe-component-row span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

html[data-theme="dark"] .technical-sheet-step,
html[data-theme="dark"] .product-composition-card,
html[data-theme="dark"] .product-cost-mode,
html[data-theme="dark"] .recipe-component-row {
  background: rgba(255, 238, 224, .055) !important;
  border-color: rgba(255, 238, 224, .16) !important;
}

html[data-theme="dark"] .technical-sheet-step > strong,
html[data-theme="dark"] .product-composition-card h3,
html[data-theme="dark"] .product-cost-mode span,
html[data-theme="dark"] .recipe-component-row strong {
  color: #fff6ee !important;
}

html[data-theme="dark"] .recipe-history-filters input,
html[data-theme="dark"] .recipe-history-filters select {
  background: rgba(12, 5, 3, .42) !important;
  border-color: rgba(255, 238, 224, .22) !important;
  color: #fff6ee !important;
}

@media (max-width: 760px) {
  .recipe-history-content,
  .recipe-component-row {
    align-items: stretch;
    flex-direction: column;
  }
  .recipe-history-actions {
    justify-content: flex-start;
  }
  .recipe-history-actions .icon-btn {
    min-height: 38px;
  }
}

/* Estoque + Fichas tecnicas: refinamento visual */
#products .product-editor-panel,
#products .products-list-panel,
#products .technical-sheet-panel,
#stock .stock-panel {
  border-radius: 28px;
}

#products .product-editor-panel,
#products .technical-sheet-panel {
  padding: clamp(18px, 2.4vw, 30px);
  background:
    radial-gradient(circle at 0% 0%, rgba(218, 35, 102, .075), transparent 32%),
    linear-gradient(180deg, rgba(255, 253, 250, .98), rgba(255, 247, 242, .94));
}

#products .product-editor-panel > h2,
#products .products-list-panel .panel-head h2 {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.05;
}

#products .product-composition-card {
  margin: 18px 0;
  padding: clamp(16px, 2vw, 22px);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 241, 246, .9), rgba(255, 252, 248, .96));
  box-shadow: 0 14px 32px rgba(83, 40, 24, .07);
}

#products .product-composition-card h3,
#products .technical-sheet-step > strong {
  font-size: 15px;
  letter-spacing: 0;
}

#products .product-cost-mode {
  min-height: 72px;
  border-radius: 20px;
  background: #fffaf6;
}

#productsTab-receita .recipe-calculator-head {
  position: relative;
  padding: 2px 0 4px;
}

#productsTab-receita .recipe-title-wrap h2 {
  font-size: clamp(24px, 3vw, 34px) !important;
  line-height: 1.05;
}

#productsTab-receita .recipe-title-wrap p {
  max-width: 650px;
  font-size: 13px !important;
  line-height: 1.45;
}

.technical-sheet-guide {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 18px;
}

.technical-sheet-guide div {
  min-height: 74px;
  padding: 14px;
  border: 1px solid rgba(218, 35, 102, .16);
  border-radius: 20px;
  background: rgba(255, 249, 246, .82);
  box-shadow: 0 10px 24px rgba(83, 40, 24, .055);
}

.technical-sheet-guide strong,
.technical-sheet-guide span {
  display: block;
}

.technical-sheet-guide strong {
  color: var(--choco);
  font-size: 14px;
  font-weight: 900;
}

.technical-sheet-guide span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

#productsTab-receita .technical-sheet-step,
#productsTab-receita .recipe-total-card,
#productsTab-receita .recipe-history-section {
  border-radius: 24px;
  background: rgba(255, 252, 248, .92);
  border-color: rgba(218, 190, 180, .8);
  box-shadow: 0 12px 28px rgba(83, 40, 24, .055);
}

#productsTab-receita .technical-sheet-step {
  padding: clamp(16px, 2vw, 22px);
}

#productsTab-receita .recipe-entry-grid {
  padding: 0;
  border: 0;
  background: transparent;
}

#productsTab-receita .recipe-total-card {
  align-items: center;
  padding: 18px 20px;
  margin-top: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(218, 35, 102, .09), transparent 28%),
    #fffaf7;
}

#productsTab-receita .recipe-history-section {
  padding: clamp(16px, 2vw, 22px);
}

#productsTab-receita .recipe-history-head {
  gap: 14px;
}

#productsTab-receita .recipe-history-head h3 {
  font-size: 16px !important;
}

#productsTab-receita .recipe-history-filters {
  margin-left: auto;
}

#productsTab-receita .recipe-history-filters input,
#productsTab-receita .recipe-history-filters select {
  min-height: 42px;
  border-radius: 14px;
  background: #fffaf7;
}

#productsTab-receita .recipe-history-item {
  border-radius: 20px;
  padding: 15px;
  background: #fffdf9;
  box-shadow: 0 10px 24px rgba(83, 40, 24, .045);
}

#productsTab-receita .recipe-history-title {
  font-size: 14px;
}

#productsTab-receita .recipe-history-ingredients {
  margin-top: 8px;
}

#stock .stock-panel {
  padding: clamp(18px, 2.4vw, 30px);
  background:
    radial-gradient(circle at 0% 0%, rgba(218, 35, 102, .07), transparent 30%),
    linear-gradient(180deg, rgba(255, 253, 250, .98), rgba(255, 247, 242, .94));
}

#stock .stock-panel-head {
  align-items: center;
  padding: 0 0 4px;
}

#stock .stock-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#stock .stock-summary-grid .metric {
  position: relative;
  overflow: hidden;
  min-height: 112px;
  padding: 18px;
  border-radius: 24px;
}

#stock .stock-summary-grid .metric::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 16px;
  width: 34px;
  height: 34px;
  border-radius: 14px;
  background: rgba(218, 35, 102, .08);
}

#stock .stock-workspace {
  display: grid;
  grid-template-columns: minmax(330px, .82fr) minmax(0, 1.18fr);
  gap: 16px;
  align-items: start;
}

#stock .stock-editor-card,
#stock .stock-list-card {
  border: 1px solid rgba(223, 189, 178, .72);
  border-radius: 24px;
  background: rgba(255, 253, 250, .72);
  padding: clamp(16px, 2vw, 22px);
  box-shadow: 0 12px 30px rgba(63, 32, 18, .055);
}

#stock .stock-card-title {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
}

#stock .stock-card-title strong {
  color: #3b2119;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
}

#stock .stock-card-title span {
  color: #755c55;
  font-size: 12px;
  line-height: 1.45;
}

#stock .stock-editor-card .form-grid,
#stock .stock-editor-card .form-grid.c1,
#stock .stock-editor-card .form-grid.c4 {
  grid-template-columns: 1fr;
  margin-bottom: 10px;
}

#stock .stock-editor-card .action-row {
  justify-content: stretch;
  margin-top: 12px;
}

#stock .stock-editor-card .action-row .btn {
  flex: 1 1 auto;
}

#stock .stock-help {
  margin: 12px 0 0;
}

#stock #stockList .item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 76px;
}

#stock #stockList .ra {
  min-width: 245px;
}

html[data-theme="dark"] #products .product-editor-panel,
html[data-theme="dark"] #products .technical-sheet-panel,
html[data-theme="dark"] #stock .stock-panel {
  background:
    radial-gradient(circle at 0% 0%, rgba(236, 93, 133, .13), transparent 34%),
    linear-gradient(180deg, rgba(38, 19, 16, .98), rgba(24, 12, 10, .98)) !important;
}

html[data-theme="dark"] #products .product-composition-card,
html[data-theme="dark"] #products .product-cost-mode,
html[data-theme="dark"] .technical-sheet-guide div,
html[data-theme="dark"] #productsTab-receita .technical-sheet-step,
html[data-theme="dark"] #productsTab-receita .recipe-total-card,
html[data-theme="dark"] #productsTab-receita .recipe-history-section,
html[data-theme="dark"] #productsTab-receita .recipe-history-item,
html[data-theme="dark"] #stock .stock-editor-card,
html[data-theme="dark"] #stock .stock-list-card,
html[data-theme="dark"] #stock .stock-summary-grid .metric {
  background: rgba(255, 238, 224, .055) !important;
  border-color: rgba(255, 238, 224, .16) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .035) !important;
}

html[data-theme="dark"] .technical-sheet-guide strong,
html[data-theme="dark"] #stock .stock-card-title strong {
  color: #fff6ee !important;
}

html[data-theme="dark"] .technical-sheet-guide span,
html[data-theme="dark"] #stock .stock-card-title span {
  color: rgba(239, 212, 191, .76) !important;
}

html[data-theme="dark"] #stock .stock-summary-grid .metric::after {
  background: rgba(255, 140, 167, .12);
}

@media (max-width: 1050px) {
  #stock .stock-workspace {
    grid-template-columns: 1fr;
  }
  #stock .stock-editor-card .form-grid,
  #stock .stock-editor-card .form-grid.c1,
  #stock .stock-editor-card .form-grid.c4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .technical-sheet-guide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #productsTab-receita .recipe-history-head {
    align-items: stretch !important;
    flex-direction: column;
  }
  #productsTab-receita .recipe-history-filters {
    margin-left: 0;
  }
}

@media (max-width: 700px) {
  #stock .stock-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #stock #stockList .item {
    grid-template-columns: 1fr;
  }
  #stock #stockList .ra {
    min-width: 0;
  }
}

@media (max-width: 520px) {
  #products .product-editor-panel,
  #products .products-list-panel,
  #products .technical-sheet-panel,
  #stock .stock-panel,
  #stock .stock-editor-card,
  #stock .stock-list-card {
    border-radius: 20px;
  }
  .technical-sheet-guide,
  #stock .stock-summary-grid,
  #stock .stock-editor-card .form-grid,
  #stock .stock-editor-card .form-grid.c1,
  #stock .stock-editor-card .form-grid.c4 {
    grid-template-columns: 1fr;
  }
  #productsTab-receita .recipe-total-card {
    align-items: stretch;
    flex-direction: column;
  }
  #productsTab-receita .recipe-total-actions,
  #productsTab-receita .recipe-total-actions .btn,
  #stock .stock-editor-card .action-row .btn {
    width: 100%;
  }
  #productsTab-receita .recipe-history-filters input,
  #productsTab-receita .recipe-history-filters select {
    width: 100%;
  }
}

/* Nova listagem visual de produtos */
#products .products-list-panel {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 2.4vw, 30px);
}

.products-list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.products-list-head h2 {
  margin: 0;
}

.products-list-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.products-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.products-view-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(223, 189, 178, .78);
  border-radius: 999px;
  background: rgba(255, 250, 246, .88);
}

.products-view-toggle button,
.products-filter-row button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6f5047;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.products-view-toggle button {
  padding: 0 14px;
}

.products-view-toggle button.active,
.products-filter-row button.active {
  background: linear-gradient(135deg, var(--rose), #c93d66);
  color: #fff;
  box-shadow: 0 10px 20px rgba(218, 35, 102, .18);
}

.products-filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.products-filter-row button {
  flex: 0 0 auto;
  padding: 0 13px;
  border: 1px solid rgba(223, 189, 178, .78);
  background: rgba(255, 250, 246, .88);
}

.products-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.products-list-view {
  display: grid;
  gap: 10px;
}

.product-card {
  position: relative;
  display: grid;
  grid-template-rows: 160px minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(223, 189, 178, .76);
  border-radius: 24px;
  background: #fffdf9;
  box-shadow: 0 14px 30px rgba(63, 32, 18, .065);
}

.product-card.is-paused {
  opacity: .78;
}

.product-card-photo {
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 210, 220, .7), transparent 34%),
    linear-gradient(135deg, #fff1f4, #fffaf6);
}

.product-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-photo span {
  font-size: 42px;
}

.product-card-body {
  display: grid;
  gap: 12px;
  padding: 15px;
}

.product-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.product-card-top h3 {
  margin: 0;
  color: var(--choco);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}

.product-card-top p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.product-card-top > strong {
  flex: 0 0 auto;
  color: var(--rose);
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}

.product-card-badges,
.product-card-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-badge {
  border: 1px solid transparent;
  font-size: 10px;
}

.product-badge.ready,
.product-badge.active {
  background: #e8f8ef;
  color: #197246;
}

.product-badge.order {
  background: #fff2df;
  color: #9a5a13;
}

.product-badge.paused,
.product-badge.no-stock {
  background: #ffe9ed;
  color: #b3263f;
}

.product-badge.low-stock {
  background: #fff5d7;
  color: #8a6500;
}

.product-card-facts span {
  color: #765d55;
  font-size: 12px;
  line-height: 1.35;
}

.product-card-facts strong {
  color: #3b2119;
}

.product-stock-link {
  border: 1px solid rgba(25, 114, 70, .22);
  background: #e8f8ef;
  color: #197246;
  border-radius: 999px;
  min-height: 34px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(25, 114, 70, .08);
}

.product-stock-link strong {
  color: inherit;
  font-size: 11px;
}

.product-stock-link.sem_estoque,
.product-stock-link.nao_controlado {
  background: #fff0f3;
  border-color: rgba(179, 38, 63, .24);
  color: #b3263f;
}

.product-stock-link.estoque_baixo {
  background: #fff6da;
  border-color: rgba(138, 101, 0, .26);
  color: #8a6500;
}

.product-stock-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(218, 35, 102, .12);
}

.product-actions-menu {
  position: relative;
  margin: 0 15px 15px;
}

.product-actions-menu summary {
  min-height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(218, 35, 102, .22);
  border-radius: 999px;
  background: #fff5f8;
  color: #9b2448;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.product-actions-menu summary::-webkit-details-marker {
  display: none;
}

.product-actions-menu[open] summary {
  background: linear-gradient(135deg, var(--rose), #c93d66);
  color: #fff;
}

.product-actions-menu div {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 20;
  display: grid;
  gap: 4px;
  min-width: 190px;
  padding: 8px;
  border: 1px solid rgba(223, 189, 178, .84);
  border-radius: 16px;
  background: #fffdf9;
  box-shadow: 0 18px 34px rgba(63, 32, 18, .16);
}

.product-actions-menu button {
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #4a332b;
  text-align: left;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.product-actions-menu button:hover {
  background: #fff1f4;
}

.product-actions-menu button.danger {
  color: #b3263f;
}

.product-card.is-list {
  grid-template-columns: 86px minmax(0, 1fr) 150px;
  grid-template-rows: auto;
  align-items: center;
  min-height: 108px;
}

.product-card.is-list .product-card-photo {
  height: 100%;
  min-height: 108px;
}

.product-card.is-list .product-actions-menu {
  margin: 15px;
}

.products-empty-state {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 190px;
  border: 1px dashed rgba(218, 35, 102, .28);
  border-radius: 24px;
  background: rgba(255, 249, 246, .7);
  color: var(--choco);
  text-align: center;
  padding: 20px;
}

.product-view-modal {
  display: grid;
  gap: 14px;
}

.product-view-cover {
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 180px;
  border-radius: 18px;
  background: #fff1f4;
}

.product-view-cover img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.product-view-cover span {
  font-size: 48px;
}

.product-view-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.product-view-grid div {
  border: 1px solid var(--bd);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 249, 246, .74);
}

.product-view-grid small,
.product-view-grid strong {
  display: block;
}

.product-view-grid small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-view-grid strong {
  margin-top: 4px;
  color: var(--choco);
}

html[data-theme="dark"] .products-view-toggle,
html[data-theme="dark"] .products-filter-row button,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .product-actions-menu div,
html[data-theme="dark"] .products-empty-state,
html[data-theme="dark"] .product-view-grid div {
  background: rgba(255, 238, 224, .055) !important;
  border-color: rgba(255, 238, 224, .16) !important;
  color: #fff6ee !important;
}

html[data-theme="dark"] .product-card-photo,
html[data-theme="dark"] .product-view-cover {
  background:
    radial-gradient(circle at 25% 20%, rgba(236, 93, 133, .16), transparent 38%),
    linear-gradient(135deg, rgba(255, 238, 224, .08), rgba(14, 7, 6, .22)) !important;
}

html[data-theme="dark"] .product-card-top h3,
html[data-theme="dark"] .product-card-facts strong,
html[data-theme="dark"] .product-view-grid strong {
  color: #fff6ee !important;
}

html[data-theme="dark"] .product-card-top p,
html[data-theme="dark"] .product-card-facts span,
html[data-theme="dark"] .products-list-head p,
html[data-theme="dark"] .product-view-grid small {
  color: rgba(239, 212, 191, .76) !important;
}

html[data-theme="dark"] .product-stock-link {
  background: rgba(63, 146, 99, .18) !important;
  border-color: rgba(99, 210, 147, .28) !important;
  color: #aaf0c6 !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
}

html[data-theme="dark"] .product-stock-link.sem_estoque,
html[data-theme="dark"] .product-stock-link.nao_controlado {
  background: rgba(236, 93, 133, .15) !important;
  border-color: rgba(255, 137, 166, .26) !important;
  color: #ffb7c8 !important;
}

html[data-theme="dark"] .product-stock-link.estoque_baixo {
  background: rgba(220, 170, 65, .16) !important;
  border-color: rgba(255, 204, 94, .28) !important;
  color: #ffe0a3 !important;
}

html[data-theme="dark"] .product-actions-menu summary {
  background: rgba(255, 244, 234, .075) !important;
  border-color: rgba(255, 238, 224, .18) !important;
  color: #ffd8e2 !important;
}

html[data-theme="dark"] .product-actions-menu[open] summary {
  background: linear-gradient(135deg, var(--fc-dark-accent), var(--fc-dark-accent-2)) !important;
  color: #fff !important;
}

html[data-theme="dark"] .product-actions-menu button {
  color: #fff0e6 !important;
}

html[data-theme="dark"] .product-actions-menu button:hover {
  background: rgba(255, 140, 167, .12) !important;
}

@media (min-width: 1280px) {
  .products-cards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .products-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-card.is-list {
    grid-template-columns: 78px minmax(0, 1fr);
  }
  .product-card.is-list .product-actions-menu {
    grid-column: 1 / -1;
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .products-list-head,
  .products-toolbar {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }
  .products-list-head .btn,
  .products-view-toggle {
    width: 100%;
  }
  .products-view-toggle button {
    flex: 1;
  }
  .products-cards-grid {
    grid-template-columns: 1fr;
  }
  .product-card,
  .product-card.is-list {
    grid-template-columns: 1fr;
    grid-template-rows: 150px auto auto;
  }
  .product-card.is-list .product-card-photo {
    min-height: 150px;
  }
  .product-actions-menu div {
    left: 0;
    right: 0;
    bottom: calc(100% + 8px);
  }
  .product-view-grid {
    grid-template-columns: 1fr;
  }
}

/* Assistente de cadastro de produto */
.product-wizard-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.product-wizard-head h2 {
  margin: 0;
}

.product-wizard-head p,
.product-step-sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.product-wizard-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.product-wizard-steps button {
  min-height: 58px;
  border: 1px solid rgba(223, 189, 178, .78);
  border-radius: 18px;
  background: rgba(255, 250, 246, .82);
  color: #6f5047;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.product-wizard-steps span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 0 auto 5px;
  border-radius: 999px;
  background: #fff1f4;
  color: var(--rose);
}

.product-wizard-steps button.active {
  border-color: rgba(218, 35, 102, .42);
  background: linear-gradient(135deg, rgba(255, 240, 246, .96), rgba(255, 250, 246, .96));
  color: var(--choco);
  box-shadow: 0 12px 24px rgba(218, 35, 102, .1);
}

.product-wizard-steps button.active span {
  background: var(--rose);
  color: #fff;
}

.product-wizard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.product-step {
  display: none;
  gap: 14px;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid rgba(223, 189, 178, .72);
  border-radius: 24px;
  background: rgba(255, 253, 250, .78);
}

.product-step.active {
  display: grid;
}

.product-step h3 {
  margin: 0;
  color: var(--choco);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.1;
}

.product-photo-picker {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.product-photo-preview {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 150px;
  aspect-ratio: 1;
  border: 1px solid rgba(223, 189, 178, .76);
  border-radius: 24px;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 210, 220, .7), transparent 36%),
    linear-gradient(135deg, #fff1f4, #fffaf6);
}

.product-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-photo-preview span {
  font-size: 44px;
}

.product-photo-actions {
  display: grid;
  gap: 9px;
}

.product-photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 54px);
  gap: 8px;
}

.product-photo-thumb {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 54px;
  aspect-ratio: 1;
  border: 1px solid rgba(223, 189, 178, .82);
  border-radius: 14px;
  background: #fffaf7;
  color: #c75269;
  cursor: pointer;
  padding: 0;
}

.product-photo-thumb.active {
  border-color: #c75269;
  box-shadow: 0 0 0 3px rgba(199, 82, 105, .14);
}

.product-photo-thumb:disabled {
  cursor: default;
  opacity: .72;
}

.product-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-photo-thumb span {
  font-weight: 900;
  font-size: 13px;
}

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

.product-choice-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-choice-card {
  position: relative;
  min-height: 146px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(223, 189, 178, .82);
  border-radius: 24px;
  background: rgba(255, 250, 246, .86);
  color: #4a332b;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.product-choice-card::after {
  content: '';
  position: absolute;
  top: 14px;
  right: 14px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(139, 101, 90, .28);
  background: rgba(255, 255, 255, .7);
}

.product-choice-card strong,
.product-choice-card span,
.product-choice-card small {
  display: block;
}

.product-choice-card strong {
  color: var(--choco);
  font-size: 17px;
  font-weight: 900;
}

.product-choice-card span {
  color: #654a42;
  font-size: 13px;
  line-height: 1.45;
}

.product-choice-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.product-choice-card.active {
  border-color: rgba(218, 35, 102, .5);
  background: linear-gradient(135deg, rgba(255, 238, 246, .96), rgba(255, 250, 246, .96));
  box-shadow: 0 16px 34px rgba(218, 35, 102, .14);
}

.product-choice-card.active::after {
  content: '✓';
  display: grid;
  place-items: center;
  border-color: rgba(218, 35, 102, .88);
  background: #d63d72;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.product-conditional-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px dashed rgba(218, 35, 102, .22);
  border-radius: 22px;
  background: rgba(255, 247, 242, .72);
}

.product-conditional-card h4 {
  margin: 0;
  color: var(--choco);
}

.product-switch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.switch-row {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(223, 189, 178, .72);
  border-radius: 16px;
  background: rgba(255, 253, 250, .74);
  color: #4a332b;
  font-size: 12px;
  font-weight: 800;
}

.switch-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--rose);
}

.product-wizard-summary {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(223, 189, 178, .76);
  border-radius: 24px;
  background: #fffdf9;
  box-shadow: 0 14px 30px rgba(63, 32, 18, .06);
}

.product-wizard-summary h3 {
  margin: 0;
  color: var(--choco);
}

#productWizardSummary,
.product-final-summary {
  display: grid;
  gap: 9px;
}

#productWizardSummary div,
.product-final-summary div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(223, 189, 178, .58);
}

#productWizardSummary span,
.product-final-summary span {
  color: var(--muted);
  font-size: 12px;
}

#productWizardSummary strong,
.product-final-summary strong {
  color: var(--choco);
  font-size: 12px;
  text-align: right;
}

.product-wizard-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  padding-top: 12px;
  background: linear-gradient(180deg, transparent, rgba(255, 253, 250, .96) 28%);
}

html[data-theme="dark"] .product-wizard-steps button,
html[data-theme="dark"] .product-step,
html[data-theme="dark"] .product-photo-preview,
html[data-theme="dark"] .product-choice-card,
html[data-theme="dark"] .product-conditional-card,
html[data-theme="dark"] .switch-row,
html[data-theme="dark"] .product-wizard-summary {
  background: rgba(255, 238, 224, .055) !important;
  border-color: rgba(255, 238, 224, .16) !important;
  color: #fff6ee !important;
}

html[data-theme="dark"] .product-step h3,
html[data-theme="dark"] .product-choice-card strong,
html[data-theme="dark"] .product-conditional-card h4,
html[data-theme="dark"] .product-wizard-summary h3,
html[data-theme="dark"] #productWizardSummary strong,
html[data-theme="dark"] .product-final-summary strong {
  color: #fff6ee !important;
}

html[data-theme="dark"] .product-wizard-head p,
html[data-theme="dark"] .product-step-sub,
html[data-theme="dark"] .product-choice-card span,
html[data-theme="dark"] .product-choice-card small,
html[data-theme="dark"] #productWizardSummary span,
html[data-theme="dark"] .product-final-summary span {
  color: rgba(239, 212, 191, .76) !important;
}

html[data-theme="dark"] .product-choice-card.active,
html[data-theme="dark"] .product-wizard-steps button.active {
  background: linear-gradient(135deg, rgba(236, 93, 133, .18), rgba(255, 238, 224, .055)) !important;
  border-color: rgba(255, 140, 167, .42) !important;
}

html[data-theme="dark"] .product-choice-card::after {
  border-color: rgba(255, 238, 224, .26);
  background: rgba(12, 6, 5, .58);
}

html[data-theme="dark"] .product-choice-card.active::after {
  border-color: rgba(255, 126, 164, .95);
  background: #f05b8f;
  color: #fff;
}

html[data-theme="dark"] .product-wizard-actions {
  background: linear-gradient(180deg, transparent, rgba(24, 12, 10, .96) 28%) !important;
}

@media (max-width: 980px) {
  .product-wizard-layout {
    grid-template-columns: 1fr;
  }
  .product-wizard-summary {
    position: static;
  }
  .product-choice-grid.three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .product-wizard-head {
    flex-direction: column;
  }
  .product-wizard-steps {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .product-wizard-steps button {
    min-width: 132px;
  }
  .product-photo-picker,
  .product-switch-grid {
    grid-template-columns: 1fr;
  }
  .product-choice-grid,
  .product-choice-grid.three {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .product-choice-card {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 48px 14px 16px;
    border-radius: 18px;
    background: rgba(255, 250, 246, .92);
  }
  .product-choice-card::after {
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
  }
  .product-choice-card strong {
    font-size: 15px;
    line-height: 1.2;
  }
  .product-choice-card span {
    font-size: 12px;
    line-height: 1.35;
  }
  .product-choice-card small {
    display: none;
  }
  .product-choice-card.active {
    box-shadow: 0 10px 24px rgba(218, 35, 102, .12);
    transform: translateY(-1px);
  }
  .product-photo-preview {
    width: 100%;
    max-width: 220px;
    justify-self: center;
  }
  .product-wizard-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .product-wizard-actions .btn {
    width: 100%;
  }
}
/* Fichas Técnicas - área dedicada e assistente */
.technical-sheets-area {
  display: grid;
  gap: 18px;
}

.technical-sheets-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 0 !important;
}

.technical-sheets-head .recipe-title-wrap h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  color: var(--choco);
}

.technical-sheets-head .recipe-title-wrap p:not(.products-kicker) {
  max-width: 620px;
  margin-top: 4px;
  color: var(--muted);
}

.technical-sheet-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(170px, 240px) auto;
  gap: 10px;
  align-items: center;
}

.technical-sheet-toolbar input,
.technical-sheet-toolbar select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(124, 67, 52, .18);
  border-radius: 14px;
  padding: 0 14px;
  background: rgba(255,255,255,.78);
  color: var(--choco);
}

.technical-sheet-list {
  display: grid;
  gap: 10px;
}

.technical-sheet-list .recipe-history-item {
  border: 1px solid rgba(124, 67, 52, .14);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 12px 30px rgba(57, 22, 9, .05);
}

.technical-sheet-list .recipe-history-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.technical-sheet-list .recipe-history-title {
  font-size: 1rem;
  font-weight: 900;
  color: var(--choco);
}

.technical-sheet-list .recipe-history-sub {
  color: var(--muted);
  font-size: .82rem;
  margin-top: 3px;
}

.technical-sheet-list .recipe-history-ingredients {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.technical-sheet-list .recipe-history-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff5f1;
  color: #6f4b40;
  border: 1px solid rgba(199, 122, 103, .18);
  font-size: .76rem;
  font-weight: 800;
}

.technical-sheet-list .recipe-history-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.technical-sheet-editor {
  display: grid;
  gap: 14px;
}

.technical-sheet-wizard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.technical-sheet-wizard button {
  border: 1px solid rgba(124, 67, 52, .14);
  border-radius: 16px;
  padding: 11px;
  background: rgba(255,255,255,.78);
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.technical-sheet-wizard button strong {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  margin-right: 7px;
  background: #f8dfdf;
  color: var(--rose);
}

.technical-sheet-wizard button.active {
  background: linear-gradient(135deg, rgba(228, 69, 130, .16), rgba(255,255,255,.9));
  border-color: rgba(228, 69, 130, .36);
  color: var(--choco);
}

.technical-sheet-builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.technical-sheet-main {
  min-width: 0;
}

.technical-sheet-step[data-recipe-step] {
  display: none;
}

.technical-sheet-step[data-recipe-step].active {
  display: grid;
  gap: 12px;
}

.technical-sheet-step p {
  margin: -4px 0 4px;
  color: var(--muted);
  font-size: .86rem;
}

.technical-sheet-summary {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 12px;
}

.technical-sheet-summary #recipeTotal {
  color: var(--choco);
  font-size: 1.15rem;
}

.technical-sheet-summary #recipeUnitCost,
.technical-sheet-summary #recipeConversionHint {
  color: var(--muted);
  font-size: .82rem;
  margin-top: 5px;
}

.technical-sheet-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
}

.technical-sheet-final-summary,
.recipe-summary-card {
  display: grid;
  gap: 12px;
}

.recipe-summary-card {
  border: 1px solid rgba(124, 67, 52, .14);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(255,244,239,.86));
}

.recipe-summary-card h3 {
  margin: 0;
  color: var(--choco);
  font-size: 1.35rem;
}

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

.recipe-summary-list {
  display: grid;
  gap: 8px;
}

.recipe-summary-row,
.recipe-summary-totals {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.recipe-summary-row {
  border: 1px solid rgba(124, 67, 52, .12);
  border-radius: 13px;
  padding: 10px 12px;
}

.recipe-summary-row span {
  display: grid;
  gap: 2px;
  color: var(--choco);
  font-weight: 850;
}

.recipe-summary-row small {
  color: var(--muted);
  font-weight: 700;
}

.recipe-summary-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(124, 67, 52, .16);
  padding-top: 12px;
}

.recipe-summary-totals span {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid rgba(124, 67, 52, .12);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255,255,255,.64);
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  font-weight: 850;
  letter-spacing: .05em;
}

.recipe-summary-totals strong {
  color: var(--choco);
  font-size: 1rem;
  word-break: break-word;
}

.recipe-summary-totals small {
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
}

html[data-theme="dark"] .technical-sheets-head .recipe-title-wrap h2,
html[data-theme="dark"] .technical-sheet-list .recipe-history-title,
html[data-theme="dark"] .technical-sheet-wizard button.active,
html[data-theme="dark"] .technical-sheet-summary #recipeTotal,
html[data-theme="dark"] .recipe-summary-card h3,
html[data-theme="dark"] .recipe-summary-row span,
html[data-theme="dark"] .recipe-summary-totals strong {
  color: #fff4e6;
}

html[data-theme="dark"] .technical-sheet-toolbar input,
html[data-theme="dark"] .technical-sheet-toolbar select,
html[data-theme="dark"] .technical-sheet-list .recipe-history-item,
html[data-theme="dark"] .technical-sheet-wizard button,
html[data-theme="dark"] .recipe-summary-card,
html[data-theme="dark"] .recipe-summary-totals span {
  background: rgba(39, 19, 15, .88);
  border-color: rgba(255, 226, 205, .14);
  color: #fff4e6;
}

html[data-theme="dark"] .technical-sheet-list .recipe-history-chip {
  background: rgba(255, 207, 190, .09);
  border-color: rgba(255, 226, 205, .14);
  color: #f5d8c8;
}

html[data-theme="dark"] .technical-sheet-summary #recipeUnitCost,
html[data-theme="dark"] .technical-sheet-summary #recipeConversionHint,
html[data-theme="dark"] .technical-sheet-step p,
html[data-theme="dark"] .technical-sheet-list .recipe-history-sub {
  color: #d8bcad;
}

@media (max-width: 920px) {
  .technical-sheet-toolbar,
  .technical-sheet-builder {
    grid-template-columns: 1fr;
  }

  .technical-sheet-summary {
    position: static;
  }
}

@media (max-width: 760px) {
  .technical-sheets-head {
    display: grid;
  }

  .technical-sheets-head .btn {
    width: 100%;
    min-height: 48px;
  }

  .technical-sheet-wizard {
    grid-template-columns: 1fr 1fr;
  }

  .technical-sheet-list .recipe-history-content,
  .recipe-summary-row,
  .recipe-summary-totals {
    grid-template-columns: 1fr;
    display: grid;
  }

  .technical-sheet-list .recipe-history-actions,
  .technical-sheet-actions,
  .recipe-total-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .technical-sheet-list .recipe-history-actions .icon-btn,
  .technical-sheet-actions .btn,
  .recipe-total-actions .btn {
    width: 100%;
    min-height: 46px;
  }
}

/* Final stock refactor overrides */
#stock .stock-panel {
  display: grid !important;
  gap: 14px !important;
}

#stock .stock-workspace {
  display: grid !important;
  grid-template-columns: 360px minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: start !important;
}

#stock .stock-editor-card.hidden {
  display: none !important;
}

#stock .stock-editor-card.hidden + .stock-list-card {
  grid-column: 1 / -1 !important;
}

#stock .stock-list-card {
  min-width: 0 !important;
}

#stock .stock-card-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 12px !important;
}

#stock .stock-filter-row,
#stock .stock-tabs {
  display: flex !important;
  gap: 8px !important;
  overflow-x: auto !important;
  max-width: 100% !important;
}

#stock .stock-filter-row button,
#stock .stock-tabs button {
  flex: 0 0 auto !important;
}

@media (max-width: 920px) {
  #stock .stock-workspace {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  #stock .stock-panel {
    padding: 14px !important;
    overflow-x: hidden !important;
  }

  #stock .stock-card-list,
  #stock .stock-detail-grid,
  #stock .stock-summary-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Guided ingredient stock wizard */
#stock .ingredient-wizard {
  display: grid;
  gap: 14px;
}

#stock .ingredient-wizard.hidden,
#stock .stock-simple-form.hidden {
  display: none !important;
}

#stock .ingredient-wizard-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

#stock .ingredient-wizard-steps button {
  border: 1px solid rgba(124, 67, 52, .13);
  border-radius: 14px;
  background: rgba(255,255,255,.74);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 850;
  padding: 9px 7px;
}

#stock .ingredient-wizard-steps button span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin: 0 auto 5px;
  border-radius: 999px;
  background: rgba(216, 154, 158, .18);
  color: var(--rose);
}

#stock .ingredient-wizard-steps button.active {
  border-color: rgba(216, 93, 133, .42);
  background: rgba(216, 93, 133, .12);
  color: var(--choco);
}

#stock .ingredient-step {
  display: none;
  gap: 12px;
}

#stock .ingredient-step.active {
  display: grid;
}

#stock .ingredient-step h3 {
  margin: 0;
  color: var(--choco);
  font-size: 1.25rem;
}

#stock .ingredient-step input,
#stock .ingredient-step select {
  width: 100%;
  min-height: 48px;
}

#stock .ingredient-unit-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

#stock .ingredient-unit-options button {
  border: 1px solid rgba(124, 67, 52, .13);
  border-radius: 18px;
  background: rgba(255,255,255,.76);
  color: var(--choco);
  min-height: 84px;
  padding: 13px;
  text-align: left;
  font-weight: 900;
}

#stock .ingredient-unit-options button span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 750;
}

#stock .ingredient-unit-options button.active {
  border-color: rgba(216, 93, 133, .46);
  background: linear-gradient(135deg, rgba(216, 93, 133, .16), rgba(255,255,255,.9));
  box-shadow: 0 12px 24px rgba(216, 93, 133, .12);
}

#stock .ingredient-example {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 750;
}

#stock .ingredient-cost-preview,
#stock .ingredient-wizard-summary {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(124, 67, 52, .13);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 250, 246, .74);
  color: var(--muted);
  font-weight: 800;
}

#stock .ingredient-cost-preview span,
#stock .ingredient-wizard-summary span,
#stock .ingredient-wizard-summary strong {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

#stock .ingredient-cost-preview strong,
#stock .ingredient-wizard-summary strong {
  color: var(--choco);
  font-size: 1.08rem;
}

#stock .ingredient-wizard-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  position: sticky;
  bottom: 10px;
  z-index: 3;
  padding-top: 8px;
  background: linear-gradient(180deg, transparent, rgba(255, 250, 246, .92) 35%);
}

#stock .ingredient-wizard-actions .btn {
  min-height: 46px;
}

html[data-theme="dark"] #stock .ingredient-wizard-steps button,
html[data-theme="dark"] #stock .ingredient-unit-options button,
html[data-theme="dark"] #stock .ingredient-cost-preview,
html[data-theme="dark"] #stock .ingredient-wizard-summary {
  background: rgba(37, 20, 16, .92);
  border-color: rgba(255, 226, 204, .16);
  color: #d8bcad;
}

html[data-theme="dark"] #stock .ingredient-step h3,
html[data-theme="dark"] #stock .ingredient-wizard-steps button.active,
html[data-theme="dark"] #stock .ingredient-unit-options button,
html[data-theme="dark"] #stock .ingredient-cost-preview strong,
html[data-theme="dark"] #stock .ingredient-wizard-summary strong {
  color: #fff7ed;
}

html[data-theme="dark"] #stock .ingredient-wizard-actions {
  background: linear-gradient(180deg, transparent, rgba(28, 14, 11, .96) 35%);
}

@media (max-width: 760px) {
  #stock .ingredient-wizard-steps {
    grid-template-columns: repeat(5, minmax(68px, 1fr));
    overflow-x: auto;
  }

  #stock .ingredient-unit-options,
  #stock .ingredient-step .form-grid,
  #stock .ingredient-step .form-grid.c2 {
    grid-template-columns: 1fr !important;
  }

  #stock .ingredient-wizard-actions {
    display: grid;
    grid-template-columns: 1fr;
    bottom: calc(92px + env(safe-area-inset-bottom));
  }

  #stock .ingredient-wizard-actions .btn {
    width: 100%;
    min-height: 50px;
  }
}

/* Production planner */
#production .prod-page-head {
  align-items: flex-start;
  gap: 16px;
}

#production .prod-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

#production .production-search-input {
  min-width: 220px;
}

.production-runs-list {
  margin: 14px 0 18px;
}

.production-runs-empty {
  border: 1px dashed rgba(124, 67, 52, .2);
  border-radius: 18px;
  padding: 16px;
  color: var(--muted);
  background: rgba(255, 250, 246, .58);
  font-weight: 750;
}

.production-run-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.production-run-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(124, 67, 52, .16);
  border-radius: 22px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 16px 32px rgba(83, 39, 25, .08);
}

.production-run-top,
.production-run-facts,
.production-run-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.production-run-top {
  justify-content: space-between;
}

.production-run-card h3 {
  margin: 0;
  color: var(--choco);
  font-size: 1.05rem;
}

.production-run-card p,
.production-run-card small {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.production-run-source,
.production-run-status,
.production-run-facts span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 240, 245, .8);
  color: var(--rose);
  font-size: .78rem;
  font-weight: 900;
}

.production-run-status.plan { background: rgba(255, 240, 245, .9); color: var(--rose); }
.production-run-status.wait { background: rgba(255, 246, 221, .9); color: #9a6b00; }
.production-run-status.work { background: rgba(220, 238, 255, .95); color: #1368b0; }
.production-run-status.done { background: rgba(220, 247, 232, .95); color: #147a49; }
.production-run-status.cancel { background: rgba(255, 229, 229, .95); color: #b42318; }

.production-run-facts span {
  background: rgba(255,255,255,.7);
  color: var(--muted);
}

.production-run-facts .danger { color: #b42318; background: rgba(255, 229, 229, .92); }
.production-run-facts .ok { color: #147a49; background: rgba(220, 247, 232, .95); }

.production-run-actions {
  padding-top: 4px;
}

.production-wizard-backdrop {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(40, 16, 10, .42);
  backdrop-filter: blur(10px);
}

.production-wizard-panel {
  width: min(920px, 100%);
  max-height: min(90vh, 820px);
  overflow: auto;
  border: 1px solid rgba(124, 67, 52, .18);
  border-radius: 26px;
  background: var(--card);
  box-shadow: 0 30px 90px rgba(65, 24, 16, .28);
  padding: 22px;
}

.production-wizard-head,
.production-wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.production-wizard-head h2 {
  margin: 0;
  color: var(--choco);
}

.production-wizard-steps,
.production-source-grid {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.production-wizard-steps {
  grid-template-columns: repeat(3, 1fr);
}

.production-wizard-steps button,
.production-source-grid button {
  border: 1px solid rgba(124, 67, 52, .15);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  color: var(--muted);
  min-height: 48px;
  padding: 12px;
  font-weight: 900;
}

.production-source-grid {
  grid-template-columns: repeat(3, 1fr);
}

.production-source-grid button {
  min-height: 104px;
  text-align: left;
}

.production-source-grid strong,
.production-source-grid span {
  display: block;
}

.production-source-grid span {
  margin-top: 6px;
  color: var(--muted);
  font-size: .82rem;
}

.production-wizard-steps button.active,
.production-source-grid button.active {
  border-color: rgba(216, 93, 133, .45);
  background: linear-gradient(135deg, rgba(216, 93, 133, .18), rgba(255,255,255,.92));
  color: var(--rose);
  box-shadow: 0 14px 30px rgba(216, 93, 133, .14);
}

.production-wizard-step h3 {
  margin: 0 0 12px;
  color: var(--choco);
}

.production-wizard-step textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
}

.production-preview {
  display: grid;
  gap: 12px;
}

.production-preview-summary,
.production-warning,
.production-ok,
.production-ingredient-card {
  border-radius: 18px;
  padding: 14px;
}

.production-preview-summary {
  border: 1px solid rgba(124, 67, 52, .14);
  background: rgba(255, 250, 246, .7);
}

.production-preview-summary h4,
.production-preview-summary p {
  margin: 0 0 8px;
}

.production-warning {
  background: rgba(255, 229, 229, .9);
  color: #a42116;
  font-weight: 900;
}

.production-ok {
  background: rgba(220, 247, 232, .95);
  color: #147a49;
  font-weight: 900;
}

.production-ingredients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.production-ingredient-card {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(124, 67, 52, .13);
  background: rgba(255,255,255,.72);
}

.production-ingredient-card strong {
  color: var(--choco);
}

.production-ingredient-card span {
  color: var(--muted);
  font-weight: 750;
}

.production-ingredient-card em {
  font-style: normal;
  color: #147a49;
  font-weight: 900;
}

.production-ingredient-card.missing {
  border-color: rgba(180, 35, 24, .22);
  background: rgba(255, 245, 245, .9);
}

.production-ingredient-card.missing em {
  color: #b42318;
}

html[data-theme="dark"] .production-runs-empty,
html[data-theme="dark"] .production-run-card,
html[data-theme="dark"] .production-wizard-panel,
html[data-theme="dark"] .production-wizard-steps button,
html[data-theme="dark"] .production-source-grid button,
html[data-theme="dark"] .production-preview-summary,
html[data-theme="dark"] .production-ingredient-card {
  background: rgba(37, 20, 16, .92);
  border-color: rgba(255, 226, 204, .16);
  color: #d8bcad;
}

html[data-theme="dark"] .production-run-card h3,
html[data-theme="dark"] .production-wizard-head h2,
html[data-theme="dark"] .production-wizard-step h3,
html[data-theme="dark"] .production-ingredient-card strong {
  color: #fff7ed;
}

html[data-theme="dark"] .production-run-card p,
html[data-theme="dark"] .production-run-card small,
html[data-theme="dark"] .production-source-grid span,
html[data-theme="dark"] .production-ingredient-card span {
  color: #d8bcad;
}

html[data-theme="dark"] .production-run-facts span {
  background: rgba(255, 226, 204, .08);
  color: #d8bcad;
}

html[data-theme="dark"] .production-wizard-steps button.active,
html[data-theme="dark"] .production-source-grid button.active {
  background: linear-gradient(135deg, rgba(230, 64, 126, .28), rgba(56, 26, 20, .94));
  color: #fff7ed;
}

html[data-theme="dark"] .production-warning {
  background: rgba(127, 29, 29, .38);
  color: #fecaca;
}

html[data-theme="dark"] .production-ok {
  background: rgba(20, 83, 45, .34);
  color: #bbf7d0;
}

@media (max-width: 900px) {
  #production .prod-actions,
  #production .prod-actions .btn,
  #production .prod-actions input,
  #production .prod-actions select {
    width: 100%;
  }

  #production .prod-page-head {
    display: grid;
  }

  .production-source-grid,
  .production-wizard-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .production-wizard-backdrop {
    align-items: end;
    padding: 8px;
  }

  .production-wizard-panel {
    max-height: calc(94vh - env(safe-area-inset-bottom));
    border-radius: 24px 24px 18px 18px;
    padding: 18px;
  }

  .production-wizard-actions {
    position: sticky;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr;
    padding-top: 10px;
    background: linear-gradient(180deg, transparent, var(--card) 30%);
  }

  .production-wizard-actions .btn {
    width: 100%;
    min-height: 50px;
  }
}

/* Stock item editor choices 20260721 */
#stock .stock-native-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#stock .stock-choice-block {
  display: grid !important;
  gap: 10px !important;
  margin-bottom: 14px !important;
}

#stock .stock-choice-block label {
  color: #7e6258 !important;
  font-size: .78rem !important;
  font-weight: 950 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
}

#stock .stock-choice-group {
  display: grid !important;
  gap: 10px !important;
}

#stock .stock-type-choice {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

#stock .stock-unit-choice {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

#stock .stock-choice-group button,
#stock .ingredient-unit-options button {
  position: relative !important;
  min-height: 78px !important;
  border: 1px solid rgba(194, 76, 100, .24) !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, #fff, #fff6f2) !important;
  color: #4a201a !important;
  padding: 13px !important;
  text-align: left !important;
  box-shadow: 0 8px 18px rgba(73, 38, 28, .06) !important;
}

#stock .stock-choice-group button strong {
  display: block !important;
  font-weight: 950 !important;
}

#stock .stock-choice-group button span,
#stock .ingredient-unit-options button span {
  display: block !important;
  margin-top: 5px !important;
  color: #8a7168 !important;
  font-size: .75rem !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}

#stock .stock-choice-group button::after,
#stock .ingredient-unit-options button::after {
  content: '' !important;
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  width: 14px !important;
  height: 14px !important;
  border: 2px solid rgba(194, 76, 100, .28) !important;
  border-radius: 999px !important;
  background: #fff !important;
}

#stock .stock-choice-group button.active,
#stock .ingredient-unit-options button.active {
  border-color: #c24c64 !important;
  background: linear-gradient(135deg, #c24c64, #dc5d86) !important;
  color: #fff !important;
  box-shadow: 0 14px 26px rgba(194, 76, 100, .24) !important;
  transform: translateY(-1px);
}

#stock .stock-choice-group button.active span,
#stock .ingredient-unit-options button.active span {
  color: rgba(255, 255, 255, .86) !important;
}

#stock .stock-choice-group button.active::after,
#stock .ingredient-unit-options button.active::after {
  content: '✓' !important;
  display: grid !important;
  place-items: center !important;
  border-color: #fff !important;
  background: #fff !important;
  color: #c24c64 !important;
  font-size: 10px !important;
  font-weight: 950 !important;
}

html[data-theme="dark"] #stock .stock-choice-block label {
  color: #e7cdbc !important;
}

html[data-theme="dark"] #stock .stock-choice-group button,
html[data-theme="dark"] #stock .ingredient-unit-options button {
  border-color: rgba(255, 224, 205, .18) !important;
  background: rgba(20, 10, 8, .72) !important;
  color: #fff7ed !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035) !important;
}

html[data-theme="dark"] #stock .stock-choice-group button span,
html[data-theme="dark"] #stock .ingredient-unit-options button span {
  color: #d8bcad !important;
}

html[data-theme="dark"] #stock .stock-choice-group button.active,
html[data-theme="dark"] #stock .ingredient-unit-options button.active {
  border-color: rgba(255, 107, 157, .74) !important;
  background: linear-gradient(135deg, #9f2645, #d64f7c) !important;
  color: #fff7ed !important;
  box-shadow: 0 14px 28px rgba(214, 79, 124, .22) !important;
}

html[data-theme="dark"] #stock .stock-choice-group button.active span,
html[data-theme="dark"] #stock .ingredient-unit-options button.active span {
  color: rgba(255, 247, 237, .86) !important;
}

@media (max-width: 1080px) {
  #stock .stock-type-choice,
  #stock .stock-unit-choice {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  #stock .stock-type-choice,
  #stock .stock-unit-choice {
    grid-template-columns: 1fr !important;
  }
}

/* Stock mobile editor field polish 20260721 */
#stock .stock-editor-card {
  background: rgba(255, 253, 250, .96) !important;
}

#stock .stock-editor-card .stock-card-title {
  display: grid !important;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 14px 18px !important;
}

#stock .stock-editor-card .stock-card-title strong {
  color: #4a201a !important;
  font-size: clamp(1.75rem, 3vw, 2.25rem) !important;
  line-height: 1 !important;
}

#stock .stock-editor-card .stock-card-title span {
  max-width: 380px !important;
  color: #80675f !important;
  font-size: .98rem !important;
  line-height: 1.45 !important;
}

#stock .ingredient-wizard-steps {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(74px, 1fr)) !important;
  gap: 8px !important;
  margin: 2px 0 10px !important;
}

#stock .ingredient-wizard-steps button {
  min-height: 62px !important;
  border: 1px solid #efd9d3 !important;
  border-radius: 14px !important;
  background: #fffaf7 !important;
  color: #8a7168 !important;
  padding: 8px 6px !important;
  font-size: .72rem !important;
  line-height: 1.15 !important;
  box-shadow: 0 6px 14px rgba(73, 38, 28, .04) !important;
}

#stock .ingredient-wizard-steps button span {
  width: 24px !important;
  height: 24px !important;
  margin-bottom: 5px !important;
  background: #ffe2e8 !important;
  color: #c24c64 !important;
  font-weight: 950 !important;
}

#stock .ingredient-wizard-steps button.active {
  border-color: #c24c64 !important;
  background: linear-gradient(135deg, #fff3f5, #ffe8ee) !important;
  color: #4a201a !important;
  box-shadow: 0 10px 20px rgba(194, 76, 100, .14) !important;
}

#stock .ingredient-step h3 {
  color: #321a13 !important;
  font-size: clamp(1.2rem, 3vw, 1.45rem) !important;
  line-height: 1.35 !important;
}

#stock .ingredient-step input,
#stock .ingredient-step select,
#stock .stock-simple-form input,
#stock .stock-simple-form select {
  min-height: 48px !important;
  border: 1px solid #e5cfc7 !important;
  border-radius: 14px !important;
  background: #fffdfb !important;
  color: #321a13 !important;
  box-shadow: inset 0 1px 0 rgba(75, 35, 24, .03) !important;
}

#stock .ingredient-step input:focus,
#stock .ingredient-step select:focus,
#stock .stock-simple-form input:focus,
#stock .stock-simple-form select:focus {
  border-color: #c24c64 !important;
  box-shadow: 0 0 0 4px rgba(194, 76, 100, .14) !important;
  outline: none !important;
}

#stock .ingredient-wizard-actions {
  justify-content: flex-end !important;
  background: linear-gradient(180deg, transparent, rgba(255, 253, 250, .96) 35%) !important;
}

#stock .ingredient-wizard-actions .btn-primary,
#stock #ingredientNextBtn,
#stock #ingredientSaveBtn,
#stock #stockBtn {
  border: 0 !important;
  background: linear-gradient(135deg, #c24c64, #df5f88) !important;
  color: #fff !important;
  box-shadow: 0 16px 30px rgba(194, 76, 100, .26) !important;
}

#stock .ingredient-wizard-actions .btn-soft {
  border-color: #ead8d1 !important;
  background: #fff !important;
  color: #6f4e45 !important;
}

#stock .stock-editor-cancel {
  border-color: rgba(194, 76, 100, .18) !important;
  background: #fff5f7 !important;
  color: #a53d55 !important;
  font-weight: 900 !important;
}

#stock .stock-editor-cancel:hover {
  border-color: rgba(194, 76, 100, .34) !important;
  background: #ffe7ed !important;
}

html[data-theme="dark"] #stock .stock-editor-card {
  background: rgba(42, 21, 17, .94) !important;
}

html[data-theme="dark"] #stock .ingredient-step input,
html[data-theme="dark"] #stock .ingredient-step select,
html[data-theme="dark"] #stock .stock-simple-form input,
html[data-theme="dark"] #stock .stock-simple-form select {
  border-color: rgba(255, 224, 205, .20) !important;
  background: rgba(12, 6, 5, .70) !important;
  color: #fff7ed !important;
}

html[data-theme="dark"] #stock .ingredient-wizard-steps button {
  border-color: rgba(255, 224, 205, .15) !important;
  background: rgba(20, 10, 8, .72) !important;
  color: #d8bcad !important;
}

html[data-theme="dark"] #stock .ingredient-wizard-steps button.active {
  border-color: rgba(255, 107, 157, .74) !important;
  background: linear-gradient(135deg, #9f2645, #d64f7c) !important;
  color: #fff7ed !important;
}

html[data-theme="dark"] #stock .ingredient-wizard-actions {
  background: linear-gradient(180deg, transparent, rgba(42, 21, 17, .96) 35%) !important;
}

html[data-theme="dark"] #stock .stock-editor-cancel {
  border-color: rgba(255, 154, 173, .24) !important;
  background: rgba(127, 29, 29, .24) !important;
  color: #fecaca !important;
}

@media (max-width: 760px) {
  #stock .stock-editor-card {
    padding: 20px !important;
    border-radius: 24px !important;
  }

  #stock .stock-editor-card .stock-card-title {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  #stock .stock-editor-card .stock-card-title strong {
    max-width: none !important;
    font-size: 2rem !important;
  }

  #stock .stock-editor-card .stock-card-title span {
    max-width: none !important;
  }

  #stock .ingredient-wizard-steps {
    display: flex !important;
    overflow-x: auto !important;
    padding-bottom: 4px !important;
    scroll-snap-type: x proximity;
  }

  #stock .ingredient-wizard-steps button {
    flex: 0 0 82px !important;
    scroll-snap-align: start;
  }

  #stock .ingredient-wizard-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  #stock .ingredient-wizard-actions .btn {
    width: 100% !important;
    min-height: 48px !important;
  }
}

/* Product categories manager 20260722 */
.product-categories-panel{margin-bottom:18px}
.field-with-action{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:stretch}
.field-with-action .btn{min-width:44px;padding-inline:14px}
.product-category-field select{min-width:0;width:100%}
.product-category-modal-card{width:min(520px,100%)}
.product-category-create{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;margin-top:12px}
.product-categories-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.product-category-chip{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--bd);border-radius:999px;background:var(--surface2);padding:8px 12px;font-weight:800;color:var(--text)}
.product-category-chip button{border:0;background:transparent;color:var(--muted);font-weight:900;cursor:pointer;font-size:15px;line-height:1}
.product-category-chip button:hover{color:var(--danger)}
html[data-theme="dark"] .product-category-chip{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.15);color:var(--cream)}
html[data-theme="dark"] .product-category-chip button{color:var(--muted)}
@media(max-width:640px){.product-category-create{grid-template-columns:1fr}.product-category-create .btn{width:100%}.field-with-action{grid-template-columns:minmax(0,1fr) 48px}}

/* Stock professional polish 20260721 */
#stock.page {
  --stock-card: rgba(255, 253, 250, .94);
  --stock-card-strong: #ffffff;
  --stock-border: rgba(121, 69, 55, .14);
  --stock-border-strong: rgba(216, 93, 133, .24);
  --stock-text: #321a13;
  --stock-muted: #7a6258;
  --stock-soft: #fff3ee;
  --stock-accent: #df2d72;
  --stock-green: #168253;
  --stock-amber: #b7791f;
  --stock-red: #b91c3a;
  color: var(--stock-text);
  overflow-x: hidden;
}

#stock.page::before {
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 205, 217, .40), transparent 28%),
    radial-gradient(circle at 92% 6%, rgba(255, 239, 181, .44), transparent 30%),
    linear-gradient(180deg, #fffaf7 0%, #fff5ef 50%, #fffdf9 100%) !important;
}

#stock .stock-hero {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  padding: clamp(20px, 3vw, 32px) !important;
  border: 1px solid rgba(233, 160, 178, .42) !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 206, 217, .74), transparent 35%),
    linear-gradient(135deg, rgba(255, 250, 247, .98), rgba(255, 241, 235, .90)) !important;
  box-shadow: 0 18px 42px rgba(70, 35, 24, .08) !important;
}

#stock .stock-hero h1 {
  margin: 6px 0 4px !important;
  color: var(--stock-text) !important;
  font-size: clamp(34px, 4vw, 52px) !important;
  line-height: 1 !important;
}

#stock .stock-hero span,
#stock .stock-hero p:last-child {
  display: block;
  max-width: 620px;
  color: var(--stock-muted) !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
}

#stock .page-hero-kicker,
#stock .stock-kicker {
  color: #cf265f !important;
  font-size: .75rem !important;
  font-weight: 950 !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
}

#stock .stock-hero-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  gap: 10px !important;
}

#stock .stock-hero-actions .btn {
  min-height: 44px !important;
  border-radius: 999px !important;
  padding-inline: 18px !important;
}

#stock .stock-panel {
  display: grid !important;
  gap: 18px !important;
  padding: clamp(16px, 2.5vw, 28px) !important;
  border: 1px solid var(--stock-border) !important;
  border-radius: 28px !important;
  background: rgba(255, 253, 250, .82) !important;
  box-shadow: 0 18px 44px rgba(70, 35, 24, .075) !important;
  backdrop-filter: blur(14px);
}

#stock .stock-toolbar {
  display: grid !important;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: center !important;
  margin: 0 !important;
}

#stock .stock-toolbar .search-input {
  min-height: 48px !important;
  border: 1px solid rgba(121, 69, 55, .18) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--stock-text) !important;
  box-shadow: 0 8px 18px rgba(70, 35, 24, .05) !important;
}

#stock .stock-filter-row,
#stock .stock-tabs {
  display: flex !important;
  gap: 8px !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  padding: 3px 2px 6px !important;
  scrollbar-width: thin;
}

#stock .stock-filter-row button,
#stock .stock-tabs button {
  flex: 0 0 auto !important;
  min-height: 42px !important;
  border: 1px solid rgba(121, 69, 55, .16) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .86) !important;
  color: var(--stock-text) !important;
  font-size: .84rem !important;
  font-weight: 900 !important;
  padding: 0 16px !important;
  box-shadow: 0 7px 16px rgba(70, 35, 24, .045) !important;
}

#stock .stock-filter-row button.active,
#stock .stock-tabs button.active {
  border-color: transparent !important;
  background: linear-gradient(135deg, #e72072, #c73555) !important;
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(218, 35, 102, .24) !important;
}

#stock .stock-summary-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin: 2px 0 0 !important;
}

#stock .stock-summary-grid .metric {
  position: relative !important;
  min-height: 106px !important;
  padding: 18px !important;
  overflow: hidden !important;
  border: 1px solid rgba(121, 69, 55, .12) !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, #fff, #fff8f3) !important;
  box-shadow: 0 12px 26px rgba(70, 35, 24, .055) !important;
}

#stock .stock-summary-grid .metric::after {
  content: '' !important;
  position: absolute !important;
  right: 16px !important;
  top: 16px !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 14px !important;
  background: rgba(223, 45, 114, .09) !important;
}

#stock .stock-summary-grid .metric span {
  color: var(--stock-muted) !important;
  font-size: .72rem !important;
  font-weight: 950 !important;
  letter-spacing: .10em !important;
  text-transform: uppercase !important;
}

#stock .stock-summary-grid .metric strong {
  display: block !important;
  margin-top: 12px !important;
  color: var(--stock-text) !important;
  font-size: clamp(1.45rem, 2.2vw, 2.15rem) !important;
  line-height: 1 !important;
}

#stock .stock-summary-grid .metric.accent {
  border-color: rgba(223, 45, 114, .20) !important;
  background: linear-gradient(135deg, #fff, #fff0f5) !important;
}

#stock .stock-workspace {
  display: grid !important;
  grid-template-columns: minmax(320px, 390px) minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: start !important;
}

#stock .stock-editor-card.hidden {
  display: none !important;
}

#stock .stock-editor-card.hidden + .stock-list-card {
  grid-column: 1 / -1 !important;
}

#stock .stock-editor-card,
#stock .stock-list-card {
  min-width: 0 !important;
  border: 1px solid var(--stock-border) !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, .76) !important;
  padding: clamp(15px, 2vw, 22px) !important;
  box-shadow: 0 14px 30px rgba(70, 35, 24, .06) !important;
}

#stock .stock-card-title {
  display: grid !important;
  gap: 5px !important;
  margin-bottom: 14px !important;
}

#stock .stock-card-title strong {
  color: var(--stock-text) !important;
  font-size: 1.12rem !important;
  font-weight: 950 !important;
}

#stock .stock-card-title span {
  color: var(--stock-muted) !important;
  font-size: .84rem !important;
}

#stock .stock-card-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 14px !important;
  margin-top: 10px !important;
}

#stock .stock-item-card,
#stock .stock-movement-card,
#stock .stock-empty-state {
  position: relative !important;
  overflow: hidden !important;
  border: 1px solid rgba(121, 69, 55, .12) !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,248,244,.94)) !important;
  padding: 16px !important;
  box-shadow: 0 13px 28px rgba(70, 35, 24, .06) !important;
}

#stock .stock-item-card::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 0 auto !important;
  height: 4px !important;
  background: linear-gradient(90deg, #2fbf7a, #78d8a3) !important;
}

#stock .stock-item-card.estoque_baixo::before,
#stock .stock-item-card.proximo_vencimento::before {
  background: linear-gradient(90deg, #e0a22b, #ffd47a) !important;
}

#stock .stock-item-card.sem_estoque::before,
#stock .stock-item-card.vencido::before {
  background: linear-gradient(90deg, #e11d48, #fb7185) !important;
}

#stock .stock-item-main {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: start !important;
}

#stock .stock-item-main h3 {
  margin: 3px 0 5px !important;
  color: var(--stock-text) !important;
  font-size: 1.08rem !important;
  line-height: 1.2 !important;
}

#stock .stock-item-main span,
#stock .stock-item-kind {
  color: var(--stock-muted) !important;
}

#stock .stock-item-kind {
  margin: 0 !important;
  font-size: .68rem !important;
  font-weight: 950 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
}

#stock .stock-qty-highlight {
  display: grid !important;
  grid-template-columns: auto 1fr !important;
  gap: 2px 9px !important;
  align-items: end !important;
  margin: 16px 0 !important;
  padding: 14px !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgba(223,45,114,.08), rgba(255,244,238,.82)) !important;
}

#stock .stock-qty-highlight strong {
  color: var(--stock-accent) !important;
  font-size: 2.35rem !important;
  line-height: .92 !important;
}

#stock .stock-qty-highlight span {
  color: var(--stock-text) !important;
  font-weight: 950 !important;
}

#stock .stock-qty-highlight small {
  grid-column: 1 / -1 !important;
  color: var(--stock-muted) !important;
  font-weight: 850 !important;
}

#stock .stock-detail-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

#stock .stock-detail-grid div {
  min-width: 0 !important;
  border: 1px solid rgba(121, 69, 55, .10) !important;
  border-radius: 15px !important;
  background: rgba(255, 255, 255, .72) !important;
  padding: 10px !important;
}

#stock .stock-detail-grid small {
  color: var(--stock-muted) !important;
  font-size: .68rem !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
}

#stock .stock-detail-grid b {
  color: var(--stock-text) !important;
  font-size: .94rem !important;
}

#stock .stock-actions-menu summary {
  min-height: 40px !important;
  border: 1px solid rgba(121, 69, 55, .14) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .86) !important;
  color: var(--stock-text) !important;
  padding: 10px 15px !important;
}

#stock .stock-actions-menu div {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 10px !important;
}

#stock .stock-actions-menu button {
  min-height: 38px !important;
  border: 1px solid rgba(121, 69, 55, .14) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--stock-text) !important;
  padding: 0 13px !important;
}

#stock .stock-actions-menu button.danger {
  border-color: rgba(225, 29, 72, .24) !important;
  background: #fff0f3 !important;
  color: var(--stock-red) !important;
}

#stock .stock-empty-state {
  display: grid !important;
  justify-items: center !important;
  gap: 8px !important;
  padding: 30px 18px !important;
  text-align: center !important;
}

#stock .stock-movement-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
}

#stock .stock-movement-card strong,
#stock .stock-empty-state strong {
  color: var(--stock-text) !important;
}

#stock .stock-movement-card span,
#stock .stock-empty-state p {
  color: var(--stock-muted) !important;
}

#stock .stock-editor-card input,
#stock .stock-editor-card select,
#stock .stock-editor-card textarea {
  min-height: 46px !important;
  border-radius: 14px !important;
}

#stock .stock-native-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#stock .stock-choice-block {
  display: grid !important;
  gap: 10px !important;
  margin-bottom: 14px !important;
}

#stock .stock-choice-block label {
  color: #7e6258 !important;
  font-size: .78rem !important;
  font-weight: 950 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
}

#stock .stock-choice-group {
  display: grid !important;
  gap: 10px !important;
}

#stock .stock-type-choice {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

#stock .stock-unit-choice {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

#stock .stock-choice-group button,
#stock .ingredient-unit-options button {
  position: relative !important;
  min-height: 78px !important;
  border: 1px solid rgba(194, 76, 100, .24) !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, #fff, #fff6f2) !important;
  color: #4a201a !important;
  padding: 13px !important;
  text-align: left !important;
  box-shadow: 0 8px 18px rgba(73, 38, 28, .06) !important;
}

#stock .stock-choice-group button strong,
#stock .ingredient-unit-options button {
  font-weight: 950 !important;
}

#stock .stock-choice-group button span,
#stock .ingredient-unit-options button span {
  display: block !important;
  margin-top: 5px !important;
  color: #8a7168 !important;
  font-size: .75rem !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}

#stock .stock-choice-group button::after,
#stock .ingredient-unit-options button::after {
  content: '' !important;
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  width: 14px !important;
  height: 14px !important;
  border: 2px solid rgba(194, 76, 100, .28) !important;
  border-radius: 999px !important;
  background: #fff !important;
}

#stock .stock-choice-group button.active,
#stock .ingredient-unit-options button.active {
  border-color: #c24c64 !important;
  background: linear-gradient(135deg, #c24c64, #dc5d86) !important;
  color: #fff !important;
  box-shadow: 0 14px 26px rgba(194, 76, 100, .24) !important;
  transform: translateY(-1px);
}

#stock .stock-choice-group button.active span,
#stock .ingredient-unit-options button.active span {
  color: rgba(255, 255, 255, .86) !important;
}

#stock .stock-choice-group button.active::after,
#stock .ingredient-unit-options button.active::after {
  content: '✓' !important;
  display: grid !important;
  place-items: center !important;
  border-color: #fff !important;
  background: #fff !important;
  color: #c24c64 !important;
  font-size: 10px !important;
  font-weight: 950 !important;
}

#stock .ingredient-wizard-steps button,
#stock .ingredient-unit-options button,
#stock .ingredient-cost-preview,
#stock .ingredient-wizard-summary {
  border-color: rgba(121, 69, 55, .12) !important;
  background: rgba(255, 255, 255, .76) !important;
}

html[data-theme="dark"] #stock.page {
  --stock-card: rgba(44, 23, 19, .90);
  --stock-card-strong: rgba(54, 28, 23, .96);
  --stock-border: rgba(255, 224, 205, .14);
  --stock-border-strong: rgba(255, 132, 168, .30);
  --stock-text: #fff7ed;
  --stock-muted: #d8bcad;
  --stock-soft: rgba(255, 226, 204, .08);
  --stock-accent: #ff6b9d;
  --stock-green: #8cf1bd;
  --stock-amber: #ffd37a;
  --stock-red: #ff9aad;
  color: var(--stock-text);
}

html[data-theme="dark"] #stock.page::before {
  background:
    radial-gradient(circle at 12% 10%, rgba(101, 31, 45, .38), transparent 28%),
    radial-gradient(circle at 90% 7%, rgba(145, 83, 31, .24), transparent 30%),
    linear-gradient(180deg, #130906 0%, #1d0f0c 48%, #120806 100%) !important;
}

html[data-theme="dark"] #stock .stock-hero {
  border-color: rgba(255, 224, 205, .16) !important;
  background:
    radial-gradient(circle at 10% 0%, rgba(232, 91, 132, .18), transparent 34%),
    linear-gradient(135deg, rgba(55, 24, 22, .96), rgba(31, 14, 11, .96)) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28) !important;
}

html[data-theme="dark"] #stock .stock-panel,
html[data-theme="dark"] #stock .stock-editor-card,
html[data-theme="dark"] #stock .stock-list-card {
  border-color: var(--stock-border) !important;
  background: rgba(39, 19, 15, .78) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .30), inset 0 1px 0 rgba(255,255,255,.035) !important;
}

html[data-theme="dark"] #stock .stock-summary-grid .metric,
html[data-theme="dark"] #stock .stock-item-card,
html[data-theme="dark"] #stock .stock-movement-card,
html[data-theme="dark"] #stock .stock-empty-state {
  border-color: var(--stock-border) !important;
  background: linear-gradient(180deg, rgba(49, 24, 20, .95), rgba(35, 16, 13, .95)) !important;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .26), inset 0 1px 0 rgba(255,255,255,.035) !important;
}

html[data-theme="dark"] #stock .stock-toolbar .search-input,
html[data-theme="dark"] #stock .stock-filter-row button,
html[data-theme="dark"] #stock .stock-tabs button,
html[data-theme="dark"] #stock .stock-detail-grid div,
html[data-theme="dark"] #stock .stock-actions-menu summary,
html[data-theme="dark"] #stock .stock-actions-menu button,
html[data-theme="dark"] #stock .ingredient-wizard-steps button,
html[data-theme="dark"] #stock .ingredient-unit-options button,
html[data-theme="dark"] #stock .ingredient-cost-preview,
html[data-theme="dark"] #stock .ingredient-wizard-summary {
  border-color: rgba(255, 224, 205, .13) !important;
  background: rgba(20, 10, 8, .72) !important;
  color: var(--stock-text) !important;
}

html[data-theme="dark"] #stock .stock-qty-highlight {
  background: linear-gradient(135deg, rgba(255, 107, 157, .14), rgba(255, 226, 204, .055)) !important;
}

html[data-theme="dark"] #stock .stock-summary-grid .metric.accent {
  border-color: rgba(255, 107, 157, .22) !important;
  background: linear-gradient(135deg, rgba(63, 25, 27, .96), rgba(37, 17, 14, .96)) !important;
}

html[data-theme="dark"] #stock .stock-actions-menu button.danger {
  border-color: rgba(255, 154, 173, .25) !important;
  background: rgba(127, 29, 29, .34) !important;
  color: #fecaca !important;
}

@media (max-width: 1080px) {
  #stock .stock-toolbar {
    grid-template-columns: 1fr !important;
  }

  #stock .stock-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  #stock .stock-workspace {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  #stock.page {
    gap: 14px !important;
  }

  #stock .stock-hero {
    align-items: stretch !important;
    flex-direction: column !important;
    padding: 20px !important;
    border-radius: 24px !important;
  }

  #stock .stock-hero-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-content: stretch !important;
  }

  #stock .stock-hero-actions .btn,
  #stock .stock-editor-card .action-row .btn {
    width: 100% !important;
    min-height: 48px !important;
  }

  #stock .stock-panel {
    padding: 12px !important;
    border-radius: 22px !important;
  }

  #stock .stock-summary-grid,
  #stock .stock-card-list,
  #stock .stock-detail-grid,
  #stock .stock-editor-card .form-grid,
  #stock .stock-editor-card .form-grid.c1,
  #stock .stock-editor-card .form-grid.c4 {
    grid-template-columns: 1fr !important;
  }

  #stock .stock-tabs,
  #stock .stock-filter-row {
    margin-inline: -2px !important;
    padding-inline: 2px !important;
  }

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

  #stock .stock-filter-menu {
    width: 100% !important;
  }

  #stock .stock-filter-menu summary {
    width: 100% !important;
  }

  #stock .stock-filter-menu .stock-filter-row {
    width: 100% !important;
  }

  #stock .stock-item-main {
    grid-template-columns: 1fr !important;
  }

  #stock .stock-actions-menu div {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  #stock .stock-actions-menu button,
  #stock .stock-actions-menu summary {
    width: 100% !important;
    min-height: 44px !important;
    text-align: center !important;
  }
}

/* Stock Lovable target composition 20260721 */
#stock.page {
  max-width: 1280px !important;
  margin-inline: auto !important;
  padding-top: clamp(14px, 2vw, 30px) !important;
  background: transparent !important;
}

#stock .stock-hero {
  min-height: 210px !important;
  align-items: center !important;
  padding: clamp(28px, 4vw, 38px) !important;
  border-radius: 30px !important;
  background:
    radial-gradient(circle at 10% 15%, rgba(255, 203, 214, .68), transparent 32%),
    radial-gradient(circle at 90% 20%, rgba(255, 232, 160, .72), transparent 38%),
    linear-gradient(135deg, #ffe0df 0%, #fff1e0 58%, #fff4d7 100%) !important;
  box-shadow: none !important;
}

#stock .stock-hero h1 {
  font-size: clamp(42px, 5vw, 58px) !important;
  margin-top: 16px !important;
}

#stock .stock-hero span {
  max-width: 720px !important;
  font-size: 1.05rem !important;
}

#stock .page-hero-kicker {
  display: inline-flex !important;
  align-items: center !important;
  width: fit-content !important;
  border-radius: 999px !important;
  padding: 6px 12px !important;
  background: rgba(255, 255, 255, .72) !important;
  color: #b75871 !important;
  letter-spacing: .18em !important;
}

#stock .stock-hero-actions {
  min-width: min(420px, 100%) !important;
}

#stock .stock-hero-actions .btn {
  min-width: 170px !important;
  min-height: 46px !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 22px rgba(84, 47, 34, .12) !important;
}

#stock .stock-hero-actions .btn-primary {
  background: linear-gradient(135deg, #c24c64, #b64b61) !important;
}

#stock .stock-panel {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

#stock .stock-toolbar {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 14px !important;
  padding: 24px !important;
  border: 1px solid #efe1dd !important;
  border-radius: 28px !important;
  background: rgba(255, 255, 255, .88) !important;
  box-shadow: 0 12px 28px rgba(73, 38, 28, .045) !important;
}

#stock .stock-toolbar .search-input {
  min-height: 50px !important;
  padding-left: 42px !important;
  border-color: #eee0dc !important;
  border-radius: 999px !important;
  background:
    linear-gradient(90deg, transparent 0, transparent 100%),
    #fff !important;
  box-shadow: inset 0 1px 0 rgba(91, 54, 43, .03), 0 3px 11px rgba(91, 54, 43, .055) !important;
}

#stock .stock-toolbar::before {
  content: none !important;
  display: none !important;
}

#stock .stock-filter-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  padding: 0 !important;
}

#stock .stock-filter-menu {
  position: relative !important;
  width: fit-content !important;
  min-width: min(100%, 260px) !important;
}

#stock .stock-filter-menu summary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  width: 100% !important;
  min-height: 42px !important;
  padding: 8px 14px !important;
  border: 1px solid #eee0dc !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #7b6259 !important;
  box-shadow: 0 8px 18px rgba(73, 38, 28, .06) !important;
  cursor: pointer !important;
  list-style: none !important;
}

#stock .stock-filter-menu summary::-webkit-details-marker {
  display: none !important;
}

#stock .stock-filter-menu summary::after {
  content: "⌄" !important;
  color: #b84459 !important;
  font-size: 15px !important;
  line-height: 1 !important;
}

#stock .stock-filter-menu[open] summary::after {
  transform: rotate(180deg) !important;
}

#stock .stock-filter-menu summary span {
  color: #b84459 !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

#stock .stock-filter-menu summary strong {
  color: #3f2118 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

#stock .stock-filter-menu .stock-filter-row {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  z-index: 15 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  width: min(320px, calc(100vw - 54px)) !important;
  padding: 10px !important;
  border: 1px solid #eee0dc !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 18px 38px rgba(73, 38, 28, .16) !important;
}

#stock .stock-filter-menu .stock-filter-row button {
  justify-content: flex-start !important;
  width: 100% !important;
  box-shadow: none !important;
  text-align: left !important;
}

#stock .stock-filter-row button,
#stock .stock-tabs button {
  min-height: 38px !important;
  border-color: #eee0dc !important;
  background: #fff !important;
  color: #7b6259 !important;
  box-shadow: 0 4px 12px rgba(73, 38, 28, .04) !important;
}

#stock .stock-filter-row button.active,
#stock .stock-tabs button.active {
  background: linear-gradient(135deg, #c75269, #b84459) !important;
  color: #fff !important;
}

#stock .stock-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

#stock .stock-summary-grid .metric {
  min-height: 142px !important;
  padding: 22px !important;
  border-color: #eaded8 !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, .92) !important;
  box-shadow: none !important;
}

#stock .stock-summary-grid .metric::after {
  content: attr(data-stock-icon) !important;
  display: grid !important;
  place-items: center !important;
  right: 20px !important;
  top: 22px !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 999px !important;
  background: #ffe1e8 !important;
  color: #bb5368 !important;
  font-size: 17px !important;
}

#stock .stock-summary-grid .metric:nth-child(2)::after {
  background: #ffeac6 !important;
  color: #9f6a1d !important;
}

#stock .stock-summary-grid .metric:nth-child(3)::after,
#stock .stock-summary-grid .metric:nth-child(4)::after {
  background: #ffe2e6 !important;
}

#stock .stock-summary-grid .metric span {
  color: #8d7770 !important;
  font-size: .77rem !important;
  letter-spacing: .16em !important;
}

#stock .stock-summary-grid .metric strong {
  margin-top: 22px !important;
  color: #4a201a !important;
  font-family: var(--font-display) !important;
  font-size: clamp(2rem, 3.2vw, 2.85rem) !important;
}

#stock .stock-summary-grid .metric small {
  display: block !important;
  margin-top: 8px !important;
  color: #8a7168 !important;
  font-size: .86rem !important;
  font-weight: 700 !important;
}

#stock .stock-list-card {
  padding: clamp(24px, 3vw, 32px) !important;
  border-color: #eaded8 !important;
  border-radius: 28px !important;
  background: rgba(255, 255, 255, .90) !important;
  box-shadow: none !important;
}

#stock .stock-card-title {
  display: flex !important;
  align-items: start !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin-bottom: 22px !important;
}

#stock .stock-card-title strong {
  display: block !important;
  color: #4a201a !important;
  font-family: var(--font-display) !important;
  font-size: 1.8rem !important;
}

#stock .stock-card-title span {
  color: #80675f !important;
  font-size: .96rem !important;
}

#stock #stockListCount {
  margin-top: 8px !important;
  color: #80675f !important;
  font-size: .9rem !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
}

#stock .stock-tabs {
  width: fit-content !important;
  max-width: 100% !important;
  margin-bottom: -2px !important;
  padding: 4px !important;
  border-radius: 999px !important;
  background: #f7efeb !important;
  overflow-x: auto !important;
}

#stock .stock-tabs button {
  min-width: 120px !important;
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

#stock .stock-card-list {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

#stock .stock-item-card {
  min-height: 320px !important;
  padding: 22px !important;
  border-color: #eaded8 !important;
  border-radius: 22px !important;
  background: #fff !important;
  box-shadow: none !important;
}

#stock .stock-item-card::before {
  display: none !important;
}

#stock .stock-item-main {
  grid-template-columns: 1fr auto !important;
}

#stock .stock-item-main h3 {
  color: #4a201a !important;
  font-family: var(--font-display) !important;
  font-size: 1.18rem !important;
}

#stock .stock-item-main > .badge {
  border-radius: 999px !important;
  padding: 7px 13px !important;
  background: #dff4e8 !important;
  color: #23734b !important;
}

#stock .stock-item-card.estoque_baixo .stock-item-main > .badge,
#stock .stock-item-card.proximo_vencimento .stock-item-main > .badge {
  background: #fff1d6 !important;
  color: #9c6614 !important;
}

#stock .stock-item-card.sem_estoque .stock-item-main > .badge,
#stock .stock-item-card.vencido .stock-item-main > .badge {
  background: #ffe1e8 !important;
  color: #ad263f !important;
}

#stock .stock-qty-highlight {
  display: block !important;
  margin: 22px 0 8px !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

#stock .stock-qty-highlight strong {
  color: #c24c64 !important;
  font-family: var(--font-display) !important;
  font-size: 2.9rem !important;
}

#stock .stock-qty-highlight span {
  margin-left: 5px !important;
  color: #6f5b54 !important;
}

#stock .stock-qty-highlight small {
  display: block !important;
  margin-top: 4px !important;
}

#stock .stock-restock-pill {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  margin: 14px 0 12px;
  padding: 12px 14px;
  border: 1px solid #f0ddd7;
  border-radius: 16px;
  background: #fff8f4;
}

#stock .stock-restock-pill b {
  color: #4a201a;
  font-size: .82rem;
}

#stock .stock-restock-pill > span {
  color: #bd4f68;
  font-weight: 900;
  white-space: nowrap;
}

#stock .stock-restock-pill small {
  grid-column: 1 / -1;
  color: #8a7167;
  line-height: 1.35;
}

#stock .stock-restock-pill.needs-restock {
  border-color: #f3c6cf;
  background: #fff0f4;
}

#stock .stock-restock-pill.needs-restock > span {
  color: #b42f4d;
}

#stock .stock-level-bar {
  height: 6px;
  margin: 12px 0 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #f2e7e2;
}

#stock .stock-level-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #c24c64;
}

#stock .stock-detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 !important;
  overflow: hidden !important;
  border-radius: 18px !important;
  background: #fff8f4 !important;
}

#stock .stock-detail-grid div {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 14px 12px !important;
}

#stock .stock-detail-grid small {
  color: #9a8178 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

#stock .stock-detail-grid b {
  margin-top: 4px !important;
  color: #4a201a !important;
}

#stock .stock-actions-menu {
  margin-top: 16px !important;
  padding-top: 16px !important;
  border-top: 1px solid #eee1dc !important;
}

#stock .stock-actions-menu summary {
  display: flex !important;
  width: 100% !important;
  align-items: center !important;
  justify-content: space-between !important;
  border: 0 !important;
  background: transparent !important;
  color: #bd556b !important;
  padding: 0 !important;
  min-height: 34px !important;
}

#stock .stock-actions-menu summary b {
  color: #9b8077 !important;
  font-size: 1rem !important;
}

#stockMovementModal .stock-movement-picker {
  display: grid;
  gap: 14px;
}

#stockMovementModal .stock-movement-field select,
#stockMovementModal .stock-movement-field input {
  width: 100%;
  min-height: 46px;
}

#stockMovementModal .stock-movement-field select {
  border: 1px solid rgba(124, 67, 52, .18);
  border-radius: 14px;
  background: #fffaf7;
  color: #4a201a;
  padding: 0 12px;
  font-weight: 800;
}

#stockMovementModal .stock-movement-actions .btn {
  min-height: 44px;
}

html[data-theme="dark"] #stock .stock-hero {
  background:
    radial-gradient(circle at 8% 14%, rgba(142, 45, 64, .42), transparent 34%),
    radial-gradient(circle at 92% 14%, rgba(171, 105, 44, .28), transparent 38%),
    linear-gradient(135deg, rgba(55, 24, 22, .96), rgba(31, 14, 11, .96)) !important;
}

html[data-theme="dark"] #stock .stock-toolbar,
html[data-theme="dark"] #stock .stock-list-card,
html[data-theme="dark"] #stock .stock-summary-grid .metric,
html[data-theme="dark"] #stock .stock-item-card {
  border-color: rgba(255, 224, 205, .14) !important;
  background: rgba(42, 21, 17, .88) !important;
}

html[data-theme="dark"] #stock .stock-tabs {
  background: rgba(255, 226, 204, .08) !important;
}

html[data-theme="dark"] #stock .stock-card-title strong,
html[data-theme="dark"] #stock .stock-item-main h3,
html[data-theme="dark"] #stock .stock-summary-grid .metric strong,
html[data-theme="dark"] #stock .stock-detail-grid b {
  color: #fff7ed !important;
}

html[data-theme="dark"] #stock .stock-card-title span,
html[data-theme="dark"] #stock #stockListCount,
html[data-theme="dark"] #stock .stock-summary-grid .metric span,
html[data-theme="dark"] #stock .stock-summary-grid .metric small,
html[data-theme="dark"] #stock .stock-detail-grid small,
html[data-theme="dark"] #stock .stock-qty-highlight span,
html[data-theme="dark"] #stock .stock-qty-highlight small {
  color: #d8bcad !important;
}

html[data-theme="dark"] #stock .stock-detail-grid,
html[data-theme="dark"] #stock .stock-level-bar {
  background: rgba(255, 226, 204, .08) !important;
}

html[data-theme="dark"] #stock .stock-restock-pill {
  border-color: rgba(255, 224, 205, .16) !important;
  background: rgba(255, 226, 204, .08) !important;
}

html[data-theme="dark"] #stock .stock-restock-pill b {
  color: #fff7ed !important;
}

html[data-theme="dark"] #stock .stock-restock-pill > span {
  color: #ff8fb0 !important;
}

html[data-theme="dark"] #stock .stock-restock-pill small {
  color: #d8bcad !important;
}

html[data-theme="dark"] #stock .stock-restock-pill.needs-restock {
  border-color: rgba(255, 119, 148, .34) !important;
  background: rgba(165, 50, 78, .16) !important;
}

html[data-theme="dark"] #stockMovementModal .stock-movement-field select {
  border-color: rgba(255, 224, 205, .18) !important;
  background: rgba(22, 11, 9, .88) !important;
  color: #fff7ed !important;
}

@media (max-width: 1180px) {
  #stock .stock-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  #stock .stock-card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  #stock.page {
    padding-inline: 12px !important;
  }

  #stock .stock-hero {
    min-height: 0 !important;
  }

  #stock .stock-summary-grid,
  #stock .stock-card-list {
    grid-template-columns: 1fr !important;
  }

  #stock .stock-card-title {
    display: grid !important;
  }

  #stock #stockListCount {
    white-space: normal !important;
  }

  #stock .stock-detail-grid {
    grid-template-columns: 1fr !important;
  }

  #stock .stock-restock-pill {
    grid-template-columns: 1fr;
  }

  #stockMovementModal .stock-movement-actions {
    grid-template-columns: 1fr !important;
  }
}

/* Stock editor full-width correction 20260721 */
#stock .stock-workspace {
  grid-template-columns: 1fr !important;
}

#stock .stock-editor-card {
  width: 100% !important;
  max-width: 860px !important;
  margin-inline: auto !important;
  overflow: hidden !important;
  background: rgba(255, 253, 250, .96) !important;
}

#stock .stock-editor-card:not(.hidden) + .stock-list-card {
  margin-top: 8px !important;
}

#stock .stock-editor-card .stock-card-title {
  display: grid !important;
  grid-template-columns: 1fr !important;
  max-width: 100% !important;
  gap: 8px !important;
}

#stock .stock-editor-card .stock-card-title strong {
  max-width: 100% !important;
  color: #4a201a !important;
  font-size: clamp(1.9rem, 4vw, 2.45rem) !important;
  line-height: 1.05 !important;
}

#stock .stock-editor-card .stock-card-title span {
  max-width: 560px !important;
  color: #80675f !important;
  font-size: .98rem !important;
  line-height: 1.45 !important;
}

#stock .ingredient-wizard,
#stock .ingredient-step,
#stock .stock-simple-form {
  min-width: 0 !important;
  max-width: 100% !important;
}

#stock .ingredient-step input,
#stock .ingredient-step select,
#stock .stock-simple-form input,
#stock .stock-simple-form select {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 48px !important;
  box-sizing: border-box !important;
  border: 1px solid #e5cfc7 !important;
  border-radius: 14px !important;
  background: #fffdfb !important;
  color: #321a13 !important;
}

#stock .ingredient-step input:focus,
#stock .ingredient-step select:focus,
#stock .stock-simple-form input:focus,
#stock .stock-simple-form select:focus {
  border-color: #c24c64 !important;
  box-shadow: 0 0 0 4px rgba(194, 76, 100, .14) !important;
  outline: none !important;
}

#stock .ingredient-wizard-steps {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  min-width: 0 !important;
  gap: 8px !important;
}

#stock .ingredient-wizard-steps button {
  min-width: 0 !important;
  overflow: hidden !important;
}

#stock .ingredient-wizard-actions .btn-primary,
#stock #ingredientNextBtn,
#stock #ingredientSaveBtn,
#stock #stockBtn {
  border: 0 !important;
  background: linear-gradient(135deg, #c24c64, #df5f88) !important;
  color: #fff !important;
  box-shadow: 0 16px 30px rgba(194, 76, 100, .26) !important;
}

html[data-theme="dark"] #stock .stock-editor-card {
  background: rgba(42, 21, 17, .94) !important;
}

html[data-theme="dark"] #stock .ingredient-step input,
html[data-theme="dark"] #stock .ingredient-step select,
html[data-theme="dark"] #stock .stock-simple-form input,
html[data-theme="dark"] #stock .stock-simple-form select {
  border-color: rgba(255, 224, 205, .20) !important;
  background: rgba(12, 6, 5, .70) !important;
  color: #fff7ed !important;
}

@media (max-width: 760px) {
  #stock .stock-editor-card {
    max-width: 100% !important;
    padding: 20px !important;
  }

  #stock .ingredient-wizard-steps {
    display: flex !important;
    overflow-x: auto !important;
    padding-bottom: 4px !important;
  }

  #stock .ingredient-wizard-steps button {
    flex: 0 0 86px !important;
  }

  #stock .ingredient-wizard-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  #stock .ingredient-wizard-actions .btn {
    width: 100% !important;
    min-height: 48px !important;
  }
}

/* Digital menu polish 20260723 */
#menu.page {
  max-width: 1240px;
}

#menu .menu-hero {
  border-radius: 28px !important;
  border: 1px solid rgba(215, 116, 135, .24) !important;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 210, 218, .72), transparent 30%),
    radial-gradient(circle at 96% 12%, rgba(255, 229, 179, .72), transparent 34%),
    linear-gradient(135deg, #fff7f2, #fffaf4) !important;
  box-shadow: 0 18px 48px rgba(98, 48, 35, .08) !important;
}

#menu .menu-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr);
  gap: 18px;
  align-items: start;
}

#menu .menu-share-panel,
#menu .menu-orders-panel,
#menu .menu-products-panel {
  border-radius: 24px !important;
  border: 1px solid rgba(215, 116, 135, .18) !important;
  background: rgba(255, 253, 250, .96) !important;
  box-shadow: 0 18px 42px rgba(83, 40, 31, .07) !important;
}

#menu .menu-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

#menu .menu-panel-head span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  background: #fff0f2;
  color: #c24c64;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#menu .menu-panel-head h2 {
  margin: 8px 0 0;
  color: #3b1b15;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.08;
}

#menu .menu-panel-head b {
  display: grid;
  min-width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  background: #fff0f2;
  color: #c24c64;
  font-size: 1rem;
}

#menu .menu-orders-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#menu .menu-orders-tools .btn {
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: .78rem;
  box-shadow: 0 10px 24px rgba(204, 49, 93, .20);
}

#menu .menu-share-panel > p,
#menu .menu-orders-panel > p,
#menu .menu-products-panel > p {
  margin: 0 0 16px;
  color: #80675f;
  font-size: .95rem;
  line-height: 1.45;
}

#menu .menu-link-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px;
  border: 1px solid #ead8d2;
  border-radius: 18px;
  background: #fff8f4;
}

#menu .menu-link-box input {
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
  color: #3b1b15 !important;
  font-size: .9rem;
  outline: none;
}

#menu .menu-share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

#menu .menu-share-actions :is(a, button),
#menu .menu-link-box button {
  justify-content: center;
  min-height: 42px;
}

#menu .menu-online-list {
  display: grid;
  gap: 12px;
}

#menu .online-order-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 180px !important;
  gap: 18px !important;
  align-items: stretch !important;
  padding: 18px !important;
  border-radius: 22px !important;
  background: #fff8f4 !important;
  border: 1px solid #efd6d3 !important;
  box-shadow: 0 12px 28px rgba(83, 40, 31, .06) !important;
}

#menu .online-order-card.alert {
  border-color: rgba(210, 72, 101, .42) !important;
  background: linear-gradient(135deg, #fff4f6, #fff9f5) !important;
}

#menu .online-order-main {
  gap: 12px !important;
}

#menu .online-order-title strong {
  color: #3b1b15;
  font-size: 1rem;
}

#menu .online-order-client {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

#menu .online-order-client b {
  color: #3b1b15;
}

#menu .online-order-client span,
#menu .online-order-client small {
  color: #8f736a;
  font-size: .83rem;
}

#menu .online-order-items {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#menu .online-order-items li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
}

#menu .online-order-items strong {
  color: #3b1b15;
  overflow-wrap: anywhere;
}

#menu .online-order-items span {
  flex: 0 0 auto;
  color: #9a8178;
  font-size: .78rem;
}

#menu .online-order-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

#menu .online-order-info-grid span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .66);
}

#menu .online-order-info-grid small {
  color: #a4857b;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#menu .online-order-info-grid strong {
  color: #3b1b15;
  font-size: .86rem;
  overflow-wrap: anywhere;
}

#menu .online-order-info-grid em {
  color: #997b72;
  font-size: .76rem;
  font-style: normal;
}

#menu .online-order-note {
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(194, 76, 100, .08);
  color: #70483f;
  font-size: .86rem;
  line-height: 1.4;
}

#menu .online-order-actions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  align-content: center;
  min-width: 0 !important;
  width: 100%;
}

#menu .online-order-actions :is(a, button) {
  width: 100%;
  justify-content: center;
  min-height: 42px !important;
  border-radius: 14px !important;
  font-weight: 900;
}

#menu .online-order-confirm {
  background: linear-gradient(135deg, #20b961, #18a954) !important;
  color: #fff !important;
  border-color: transparent !important;
}

#menu .online-order-reject {
  border-color: #f0c7cd !important;
  background: #fff6f7 !important;
  color: #b43f55 !important;
}

#menu .online-order-delete {
  background: #fff !important;
}

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

#menu .menu-product-card {
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px !important;
  align-items: center !important;
  min-width: 0;
  padding: 12px !important;
  border-radius: 18px !important;
  border: 1px solid #ead8d2 !important;
  background: #fffaf7 !important;
}

#menu .menu-product-card.is-hidden {
  opacity: .72;
  background: #f8efeb !important;
}

#menu .menu-product-photo {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: #ffecef;
  font-size: 1.55rem;
}

#menu .menu-product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#menu .menu-product-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

#menu .menu-product-info strong {
  color: #3b1b15;
  overflow-wrap: anywhere;
}

#menu .menu-product-info span {
  color: #80675f;
  font-size: .84rem;
}

#menu .menu-product-info em {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 9px;
  background: #f3e8e4;
  color: #8a6d63;
  font-size: .72rem;
  font-style: normal;
  font-weight: 900;
}

#menu .menu-product-info em.ok {
  background: #e7f8ef;
  color: #15803d;
}

#menu .menu-photo-btn {
  cursor: pointer;
  margin: 0;
}

#menu .menu-visibility-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  color: #80675f;
  font-size: .82rem;
  font-weight: 900;
}

#menu .menu-visibility-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

#menu .menu-visibility-switch i {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #e7d7d1;
  box-shadow: inset 0 0 0 1px rgba(75, 32, 24, .08);
}

#menu .menu-visibility-switch i::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(75, 32, 24, .18);
  transition: transform .2s ease;
}

#menu .menu-visibility-switch.active i {
  background: #c24c64;
}

#menu .menu-visibility-switch.active i::after {
  transform: translateX(18px);
}

html[data-theme="dark"] #menu .menu-hero {
  border-color: rgba(255, 220, 205, .14) !important;
  background:
    radial-gradient(circle at 10% 18%, rgba(119, 42, 54, .42), transparent 30%),
    radial-gradient(circle at 92% 10%, rgba(151, 91, 37, .26), transparent 34%),
    linear-gradient(135deg, rgba(55, 24, 22, .98), rgba(24, 10, 8, .98)) !important;
}

html[data-theme="dark"] #menu .menu-share-panel,
html[data-theme="dark"] #menu .menu-orders-panel,
html[data-theme="dark"] #menu .menu-products-panel,
html[data-theme="dark"] #menu .online-order-card,
html[data-theme="dark"] #menu .menu-product-card {
  border-color: rgba(255, 224, 205, .15) !important;
  background: rgba(42, 21, 17, .92) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .24) !important;
}

html[data-theme="dark"] #menu .online-order-card.alert {
  border-color: rgba(255, 115, 150, .32) !important;
  background: linear-gradient(135deg, rgba(70, 29, 32, .96), rgba(42, 21, 17, .94)) !important;
}

html[data-theme="dark"] #menu .menu-panel-head h2,
html[data-theme="dark"] #menu .online-order-title strong,
html[data-theme="dark"] #menu .online-order-client b,
html[data-theme="dark"] #menu .online-order-items strong,
html[data-theme="dark"] #menu .online-order-info-grid strong,
html[data-theme="dark"] #menu .menu-product-info strong,
html[data-theme="dark"] #menu .menu-link-box input {
  color: #fff7ed !important;
}

html[data-theme="dark"] #menu .menu-share-panel > p,
html[data-theme="dark"] #menu .menu-orders-panel > p,
html[data-theme="dark"] #menu .menu-products-panel > p,
html[data-theme="dark"] #menu .online-order-client span,
html[data-theme="dark"] #menu .online-order-client small,
html[data-theme="dark"] #menu .online-order-items span,
html[data-theme="dark"] #menu .online-order-info-grid em,
html[data-theme="dark"] #menu .menu-product-info span,
html[data-theme="dark"] #menu .menu-visibility-switch {
  color: #d8bcad !important;
}

html[data-theme="dark"] #menu .menu-panel-head span,
html[data-theme="dark"] #menu .menu-panel-head b,
html[data-theme="dark"] #menu .online-order-items li,
html[data-theme="dark"] #menu .online-order-info-grid span,
html[data-theme="dark"] #menu .menu-link-box {
  border-color: rgba(255, 224, 205, .14) !important;
  background: rgba(255, 226, 204, .08) !important;
}

html[data-theme="dark"] #menu .online-order-note {
  background: rgba(255, 115, 150, .11);
  color: #ffd8df;
}

@media (max-width: 980px) {
  #menu .menu-dashboard-grid,
  #menu .menu-products-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  #menu.page {
    padding-inline: 12px !important;
  }

  #menu .menu-hero {
    border-radius: 22px !important;
  }

  #menu .menu-link-box,
  #menu .menu-share-actions,
  #menu .online-order-card {
    grid-template-columns: 1fr !important;
  }

  #menu .online-order-info-grid {
    grid-template-columns: 1fr;
  }

  #menu .online-order-items li {
    display: grid;
  }

  #menu .menu-product-card {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  #menu .menu-product-photo {
    width: 58px;
    height: 58px;
  }

  #menu .menu-photo-btn,
  #menu .menu-visibility-switch {
    grid-column: 1 / -1;
    justify-content: center;
    min-height: 42px;
  }
}

/* Digital menu product controls refinement final 20260723 */
#menu .menu-products-grid .menu-product-card {
  grid-template-columns: 64px minmax(0, 1fr) auto auto !important;
  align-items: center !important;
  gap: 12px !important;
}

#menu .menu-products-grid .menu-photo-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 82px !important;
  min-height: 38px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  border: 1px solid #ead8d2 !important;
  background: #fff8f4 !important;
  color: #5a3027 !important;
  font-size: .82rem !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

#menu .menu-products-grid .menu-visibility-switch {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 9px !important;
  min-width: 132px !important;
  width: auto !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 6px 10px !important;
  border: 1px solid #ead8d2 !important;
  border-radius: 999px !important;
  background: #fff8f4 !important;
  color: #7c5e55 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

#menu .menu-products-grid .menu-visibility-switch span {
  display: inline !important;
  color: inherit !important;
  font-size: .78rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

#menu .menu-products-grid .menu-visibility-switch i {
  flex: 0 0 42px !important;
}

#menu .menu-products-grid .menu-visibility-switch.active {
  border-color: rgba(32, 185, 97, .28) !important;
  background: #effaf4 !important;
  color: #17643a !important;
}

html[data-theme="dark"] #menu .menu-products-grid .menu-photo-btn,
html[data-theme="dark"] #menu .menu-products-grid .menu-visibility-switch {
  border-color: rgba(255, 224, 205, .18) !important;
  background: rgba(255, 226, 204, .08) !important;
  color: #f2d9ca !important;
}

html[data-theme="dark"] #menu .menu-products-grid .menu-visibility-switch.active {
  border-color: rgba(88, 218, 142, .34) !important;
  background: rgba(37, 125, 78, .20) !important;
  color: #d8ffe6 !important;
}

html[data-theme="dark"] #menu .menu-products-grid .menu-visibility-switch span,
html[data-theme="dark"] #menu .menu-products-grid .menu-photo-btn {
  color: inherit !important;
}

@media (max-width: 900px) {
  #menu .menu-products-grid .menu-product-card {
    grid-template-columns: 58px minmax(0, 1fr) !important;
  }

  #menu .menu-products-grid .menu-photo-btn,
  #menu .menu-products-grid .menu-visibility-switch {
    grid-column: auto !important;
    width: 100% !important;
    justify-content: center !important;
  }
}

@media (max-width: 520px) {
  #menu .menu-products-grid .menu-product-card {
    grid-template-columns: 58px minmax(0, 1fr) !important;
  }

  #menu .menu-products-grid .menu-photo-btn {
    grid-column: 1 / 2 !important;
    min-width: 0 !important;
    padding-inline: 8px !important;
  }

  #menu .menu-products-grid .menu-visibility-switch {
    grid-column: 2 / 3 !important;
    min-width: 0 !important;
  }
}

/* Fluxo confiavel: cardapio digital + venda rapida */
#menu .online-order-production {
  background: linear-gradient(135deg, #d85b77, #c94362) !important;
  color: #fff !important;
  border-color: transparent !important;
}

#menu .online-order-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

#menu .online-order-title .badge {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
}

#menu .online-order-actions {
  gap: 8px !important;
}

#menu .online-order-actions .online-order-wa {
  background: #24c46a !important;
  color: #fff !important;
  border: 0 !important;
}

#ordersTabQuickPanel .qs-checkout-modal {
  overflow-y: auto;
}

#ordersTabQuickPanel .qs-checkout-modal .qs-sheet {
  display: grid;
  gap: 12px;
}

#ordersTabQuickPanel .qs-payments button {
  border-radius: 14px !important;
  background: #fffaf8 !important;
  border-color: #efd8d8 !important;
  color: #43261f !important;
}

#ordersTabQuickPanel .qs-payments button.active {
  background: linear-gradient(135deg, #ffe9ef, #fff8f5) !important;
  border-color: #d01e50 !important;
  color: #c8174b !important;
  box-shadow: 0 0 0 3px rgba(208, 30, 80, .08);
}

#ordersTabQuickPanel .qs-money-row input,
#ordersTabQuickPanel .qs-note-input {
  border-radius: 14px !important;
  border-color: #efd8d8 !important;
  background: #fffaf8 !important;
  color: #3e251f !important;
}

#ordersTabQuickPanel .qs-sheet-actions button {
  border-radius: 999px !important;
}

html[data-theme="dark"] #menu .online-order-production {
  background: linear-gradient(135deg, #f0648e, #d94373) !important;
  color: #fff !important;
}

html[data-theme="dark"] #menu .online-order-actions .online-order-wa {
  background: #2bc774 !important;
  color: #08130d !important;
}

html[data-theme="dark"] #ordersTabQuickPanel .qs-payments button,
html[data-theme="dark"] #ordersTabQuickPanel .qs-money-row input,
html[data-theme="dark"] #ordersTabQuickPanel .qs-note-input {
  background: rgba(255, 238, 224, .07) !important;
  border-color: rgba(255, 238, 224, .18) !important;
  color: #fff3e7 !important;
}

html[data-theme="dark"] #ordersTabQuickPanel .qs-payments button.active {
  background: rgba(240, 100, 142, .18) !important;
  border-color: rgba(240, 100, 142, .72) !important;
  color: #ffd9e4 !important;
}

html[data-theme="dark"] #ordersTabQuickPanel .qs-change {
  background: rgba(42, 154, 97, .13) !important;
  border-color: rgba(83, 218, 145, .24) !important;
}

@media (max-width: 760px) {
  #menu .online-order-card {
    grid-template-columns: 1fr !important;
    padding: 14px !important;
  }

  #menu .online-order-info-grid {
    grid-template-columns: 1fr !important;
  }

  #menu .online-order-items li {
    display: grid;
  }

  #ordersTabQuickPanel .qs-checkout-modal {
    padding: 8px;
    place-items: end stretch;
  }

  #ordersTabQuickPanel .qs-payments {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  #ordersTabQuickPanel .qs-payments button {
    min-height: 50px !important;
    padding: 10px 12px !important;
  }
}

@media (max-width: 430px) {
  #ordersTabQuickPanel .qs-payments {
    grid-template-columns: 1fr !important;
  }
}
/* Venda Rapida - balcão limpo e somente pronta entrega */
#ordersTabQuickPanel .quick-sale-pos {
  border: 0;
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 232, 236, .95), transparent 34%),
    linear-gradient(180deg, #fff9f5 0%, #fff 58%, #fff9f5 100%);
  box-shadow: 0 18px 44px rgba(84, 39, 39, .10);
  overflow: hidden;
}
#ordersTabQuickPanel .qs-phone { background: transparent; color: #301912; }
#ordersTabQuickPanel .qs-head {
  margin: 0;
  padding: 28px 30px 22px;
  border-radius: 0 0 26px 26px;
  background:
    radial-gradient(circle at 78% 18%, rgba(255,255,255,.26), transparent 22%),
    linear-gradient(135deg, #c9475b 0%, #dc4777 48%, #461d15 100%);
  min-height: 132px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto;
  gap: 18px;
  align-items: center;
}
#ordersTabQuickPanel .qs-brand {
  display: grid;
  grid-template-columns: 52px minmax(0,1fr);
  column-gap: 14px;
  row-gap: 2px;
  align-items: center;
}
#ordersTabQuickPanel .qs-brand span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255,255,255,.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.24);
}
#ordersTabQuickPanel .qs-brand strong {
  color: #fff;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: normal;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
  letter-spacing: 0;
}
#ordersTabQuickPanel .qs-brand small {
  grid-column: 2;
  color: rgba(255,255,255,.82);
  font-weight: 800;
  font-size: 14px;
}
#ordersTabQuickPanel .qs-fast {
  justify-self: end;
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,.24);
}
#ordersTabQuickPanel .qs-cart {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #fff;
  color: #c72d5d;
  border: 0;
  box-shadow: 0 14px 28px rgba(68, 18, 18, .18);
}
#ordersTabQuickPanel .qs-search-row {
  grid-template-columns: 1fr;
  padding: 22px 30px 10px;
  background: transparent;
}
#ordersTabQuickPanel .qs-search {
  min-height: 56px;
  border-radius: 18px;
  border: 1px solid #efd8d1;
  background: #fff;
  box-shadow: 0 10px 28px rgba(74, 32, 28, .07);
}
#ordersTabQuickPanel .qs-search input { color: #301912; font-weight: 700; }
#ordersTabQuickPanel .qs-tabs { padding: 12px 30px 18px; gap: 10px; }
#ordersTabQuickPanel .qs-tabs button {
  border-color: #efd8d1;
  background: #fff;
  color: #6c514a;
  box-shadow: 0 6px 16px rgba(70, 29, 21, .06);
}
#ordersTabQuickPanel .qs-tabs button.active { background: #cc3e5e; border-color: #cc3e5e; color: #fff; }
#ordersTabQuickPanel .qs-grid {
  padding: 0 30px 18px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}
#ordersTabQuickPanel .qs-product {
  min-height: 330px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid #efd8d1;
  background: rgba(255,255,255,.94);
  box-shadow: 0 14px 32px rgba(76, 34, 25, .08);
  display: grid;
  grid-template-rows: 170px auto auto auto auto;
  gap: 8px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
#ordersTabQuickPanel .qs-product:hover {
  transform: translateY(-2px);
  border-color: rgba(204, 62, 94, .46);
  box-shadow: 0 20px 40px rgba(76, 34, 25, .13);
}
#ordersTabQuickPanel .qs-product img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 18px;
  background: #fff5f2;
}
#ordersTabQuickPanel .qs-product strong {
  color: #301912;
  font-size: 17px;
  line-height: 1.2;
  min-height: 40px;
  margin: 4px 0 0;
}
#ordersTabQuickPanel .qs-product > span { color: #cc315d; font-size: 17px; font-weight: 950; }
#ordersTabQuickPanel .qs-stock-badge {
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  background: #e9faef;
  color: #18794e;
  border: 1px solid #c9efd8;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}
#ordersTabQuickPanel .qs-stepper {
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid #f0d6d2;
  background: #fff7f6;
  margin-top: 6px;
  overflow: hidden;
}
#ordersTabQuickPanel .qs-stepper button { background: #fff; color: #cc315d; font-size: 26px; }
#ordersTabQuickPanel .qs-stepper button:last-child { background: #d91b64; color: #fff; }
#ordersTabQuickPanel .qs-stepper b {
  color: #cc315d;
  font-size: 22px;
  border-inline: 1px solid #f0d6d2;
}
#ordersTabQuickPanel .qs-tip {
  min-height: 230px;
  border-radius: 22px;
  border-color: #f0bfd0;
  background: linear-gradient(180deg, #fff3f6, #fff);
}
#ordersTabQuickPanel .qs-empty {
  grid-column: 1 / -1;
  min-height: 180px;
  border: 1px dashed #e7c9c0;
  border-radius: 22px;
  background: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 6px;
  color: #7f655f;
}
#ordersTabQuickPanel .qs-empty strong { color: #301912; font-size: 18px; }
#ordersTabQuickPanel .qs-summary {
  margin: 4px 30px 18px;
  border-radius: 22px;
  border: 1px solid #efd8d1;
  background: #fff;
  box-shadow: 0 14px 32px rgba(76, 34, 25, .08);
  grid-template-columns: repeat(3, minmax(0,1fr));
}
#ordersTabQuickPanel .qs-summary div { padding: 18px 20px; }
#ordersTabQuickPanel .qs-summary span {
  color: #8a6d65;
  letter-spacing: .04em;
  text-transform: uppercase;
}
#ordersTabQuickPanel .qs-summary strong { color: #301912; }
#ordersTabQuickPanel .qs-summary div:last-child strong { color: #d91b64; }
#ordersTabQuickPanel .qs-sell {
  margin: 0 30px 26px;
  width: calc(100% - 60px);
  min-height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, #d91b64, #c8475a);
  box-shadow: 0 16px 30px rgba(217, 27, 100, .22);
}
html[data-theme="dark"] #ordersTabQuickPanel .quick-sale-pos {
  background:
    radial-gradient(circle at 12% 0%, rgba(120, 44, 58, .28), transparent 36%),
    linear-gradient(180deg, #1d0e0b 0%, #140806 100%);
}
html[data-theme="dark"] #ordersTabQuickPanel .qs-head {
  background:
    radial-gradient(circle at 76% 16%, rgba(255, 184, 198, .12), transparent 24%),
    linear-gradient(135deg, #5a1d24 0%, #9d3155 52%, #2a100c 100%);
}
html[data-theme="dark"] #ordersTabQuickPanel :is(.qs-search, .qs-product, .qs-summary, .qs-tip, .qs-empty) {
  background: rgba(43, 20, 16, .94);
  border-color: rgba(255, 218, 203, .18);
  box-shadow: 0 18px 34px rgba(0,0,0,.22);
}
html[data-theme="dark"] #ordersTabQuickPanel .qs-search input,
html[data-theme="dark"] #ordersTabQuickPanel .qs-product strong,
html[data-theme="dark"] #ordersTabQuickPanel .qs-summary strong,
html[data-theme="dark"] #ordersTabQuickPanel .qs-empty strong { color: #fff4eb; }
html[data-theme="dark"] #ordersTabQuickPanel :is(.qs-tabs button, .qs-stepper, .qs-stepper button) {
  background: rgba(255, 237, 227, .08);
  border-color: rgba(255, 218, 203, .16);
  color: #f3d8c8;
}
html[data-theme="dark"] #ordersTabQuickPanel .qs-tabs button.active,
html[data-theme="dark"] #ordersTabQuickPanel .qs-stepper button:last-child,
html[data-theme="dark"] #ordersTabQuickPanel .qs-sell {
  background: linear-gradient(135deg, #f05f91, #d84a69);
  color: #fff;
}
@media (max-width: 760px) {
  #ordersTabQuickPanel .quick-sale-pos { border-radius: 22px; }
  #ordersTabQuickPanel .qs-head {
    grid-template-columns: 1fr auto;
    padding: 22px 18px 18px;
    min-height: 112px;
  }
  #ordersTabQuickPanel .qs-fast { display: none; }
  #ordersTabQuickPanel .qs-brand { grid-template-columns: 44px minmax(0,1fr); }
  #ordersTabQuickPanel .qs-brand span { width: 44px; height: 44px; border-radius: 15px; }
  #ordersTabQuickPanel .qs-brand strong { font-size: 27px; }
  #ordersTabQuickPanel .qs-search-row,
  #ordersTabQuickPanel .qs-tabs,
  #ordersTabQuickPanel .qs-grid { padding-inline: 16px; }
  #ordersTabQuickPanel .qs-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
  #ordersTabQuickPanel .qs-product {
    min-height: 282px;
    padding: 10px;
    border-radius: 18px;
    grid-template-rows: 130px auto auto auto auto;
  }
  #ordersTabQuickPanel .qs-product img { height: 130px; border-radius: 15px; }
  #ordersTabQuickPanel .qs-product strong { font-size: 14px; min-height: 34px; }
  #ordersTabQuickPanel .qs-summary { margin-inline: 16px; grid-template-columns: 1fr; }
  #ordersTabQuickPanel .qs-summary div { border-left: 0; border-top: 1px solid #f1e1e6; }
  #ordersTabQuickPanel .qs-summary div:first-child { border-top: 0; }
  #ordersTabQuickPanel .qs-sell { margin-inline: 16px; width: calc(100% - 32px); }
}
@media (max-width: 430px) {
  #ordersTabQuickPanel .qs-grid { grid-template-columns: 1fr; }
  #ordersTabQuickPanel .qs-product {
    grid-template-columns: 104px minmax(0,1fr);
    grid-template-rows: auto auto auto auto;
    min-height: 0;
    align-items: center;
  }
  #ordersTabQuickPanel .qs-product img {
    grid-row: 1 / span 4;
    width: 104px;
    height: 104px;
  }
  #ordersTabQuickPanel .qs-stepper { margin-top: 2px; }
  #ordersTabQuickPanel .qs-tip { min-height: 150px; }
}
/* Calculadora de gas */
.gas-calculator-panel {
  overflow: hidden;
  border-color: rgba(205, 74, 104, .18);
  background:
    radial-gradient(circle at top right, rgba(255, 219, 160, .38), transparent 34%),
    linear-gradient(135deg, #fffaf7 0%, #fff4f3 100%);
}
.gas-calculator-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.gas-calculator-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  color: var(--cocoa);
}
.gas-calculator-head p:not(.products-kicker) {
  margin: 6px 0 0;
  color: var(--muted);
}
.gas-calculator-head > span {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: 0 18px 42px rgba(205, 74, 104, .18);
  font-size: 30px;
}
.gas-calculator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.gas-calculator-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(93, 50, 35, .13);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
}
.gas-calculator-grid span {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #8b6b5e;
}
.gas-calculator-grid input {
  border: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 800;
  color: var(--cocoa);
  outline: 0;
}
.gas-calculator-result {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.gas-calculator-result > div,
.gas-calculator-result > span {
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(205, 74, 104, .16);
  box-shadow: 0 16px 34px rgba(70, 31, 18, .06);
}
.gas-calculator-result small {
  display: block;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.gas-calculator-result strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: #c74362;
}
.gas-calculator-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.gas-history-panel { margin-top: 16px; }
.gas-history-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.gas-history-head h3 { margin: 0; }
.gas-history-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.gas-history-list { display: grid; gap: 10px; }
.gas-history-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; }
.gas-history-item > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gas-history-item span, .gas-history-item small { color: var(--muted); }
.gas-history-cost { text-align: right; }
.gas-history-cost strong { color: #c74362; font-size: 1.15rem; }
.gas-calculator-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
}
html[data-theme="dark"] .gas-calculator-panel {
  background:
    radial-gradient(circle at top right, rgba(214, 83, 122, .2), transparent 34%),
    linear-gradient(135deg, rgba(44, 20, 15, .98), rgba(25, 11, 8, .98));
  border-color: rgba(255, 226, 211, .14);
}
html[data-theme="dark"] .gas-calculator-head h2,
html[data-theme="dark"] .gas-calculator-grid input {
  color: #fff3e8;
}
html[data-theme="dark"] .gas-calculator-head p:not(.products-kicker),
html[data-theme="dark"] .gas-calculator-note {
  color: rgba(255, 226, 211, .72);
}
html[data-theme="dark"] .gas-calculator-head > span,
html[data-theme="dark"] .gas-calculator-grid label,
html[data-theme="dark"] .gas-calculator-result > div,
html[data-theme="dark"] .gas-calculator-result > span {
  background: rgba(22, 8, 5, .62);
  border-color: rgba(255, 226, 211, .14);
}
html[data-theme="dark"] .gas-calculator-grid span,
html[data-theme="dark"] .gas-calculator-result small {
  color: rgba(255, 226, 211, .72);
}
@media (max-width: 900px) {
  .gas-calculator-grid,
  .gas-calculator-result { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .gas-calculator-head { align-items: flex-start; }
  .gas-calculator-head > span { width: 52px; height: 52px; border-radius: 18px; font-size: 24px; }
  .gas-calculator-grid,
  .gas-calculator-result { grid-template-columns: 1fr; }
  .gas-calculator-actions .btn { width: 100%; justify-content: center; }
  .gas-calculator-actions { flex-direction: column; }
  .gas-history-head { align-items: flex-start; }
  .gas-history-item { grid-template-columns: 1fr; }
  .gas-history-cost { text-align: left; }
}
/* Mercado Pago automatic Pix */
.automatic-pix-panel{display:flex;flex-direction:column;gap:14px}
.automatic-pix-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.automatic-pix-head h2{margin:4px 0 6px}
.automatic-pix-head p{margin:0;color:var(--muted);font-size:12px;line-height:1.55;max-width:620px}
.automatic-pix-kicker{font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--rose)}
.automatic-pix-toggle{flex:0 0 auto;position:relative;width:48px;height:28px;cursor:pointer}
.automatic-pix-toggle input{position:absolute;opacity:0;pointer-events:none}
.automatic-pix-toggle span{display:block;width:100%;height:100%;border-radius:999px;background:var(--bd);transition:.2s;position:relative}
.automatic-pix-toggle span::after{content:"";position:absolute;width:22px;height:22px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 2px 5px #0002;transition:.2s}
.automatic-pix-toggle input:checked+span{background:#22a06b}
.automatic-pix-toggle input:checked+span::after{transform:translateX(20px)}
.automatic-pix-toggle input:disabled+span{opacity:.55;cursor:wait}
.automatic-pix-status{display:flex;align-items:center;gap:8px;padding:11px 13px;border:1px solid var(--bd);border-radius:12px;background:var(--soft);font-size:12px}
.automatic-pix-status i{width:9px;height:9px;border-radius:50%;background:#9b958f}
.automatic-pix-status.active i,.automatic-pix-status.connected i{background:#22a06b;box-shadow:0 0 0 4px #22a06b18}
.automatic-pix-status.warning i{background:#e0a52b}
.automatic-pix-status.error i{background:#d84b55}
.automatic-pix-prerequisite{display:flex;flex-direction:column;gap:10px;padding:13px;border:1px solid #e7bd67;border-radius:12px;background:#fff9e9}
.automatic-pix-prerequisite.confirmed{border-color:#8ccdab;background:#f1fbf5}
.automatic-pix-prerequisite-copy{display:flex;flex-direction:column;gap:3px}
.automatic-pix-prerequisite-copy strong{font-size:12px;color:var(--text)}
.automatic-pix-prerequisite-copy span,.automatic-pix-prerequisite small{font-size:11px;line-height:1.5;color:var(--muted)}
.automatic-pix-confirmation{display:flex;align-items:flex-start;gap:9px;font-size:12px;font-weight:700;line-height:1.45;cursor:pointer}
.automatic-pix-confirmation input{width:16px;height:16px;margin:1px 0 0;accent-color:#22a06b;flex:0 0 auto}
html[data-theme="dark"] .automatic-pix-prerequisite{border-color:#8a6a2f;background:#2b261d}
html[data-theme="dark"] .automatic-pix-prerequisite.confirmed{border-color:#3f7f5d;background:#1d2b23}
.automatic-pix-account{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:12px;border:1px dashed var(--bd);border-radius:12px}
.automatic-pix-account div{display:flex;flex-direction:column;gap:3px;min-width:0}
.automatic-pix-account span{font-size:10px;color:var(--muted)}
.automatic-pix-account strong{font-size:12px;overflow:hidden;text-overflow:ellipsis}
.automatic-pix-message{min-height:16px;margin:0;font-size:11px;color:var(--muted)}
.automatic-pix-message.error{color:var(--danger)}
.automatic-pix-actions{display:flex;gap:8px;flex-wrap:wrap}
.mercado-pago-methods{display:flex;flex-direction:column;gap:9px}
.mercado-pago-method{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 13px;border:1px solid var(--bd);border-radius:12px;background:var(--soft)}
.mercado-pago-method>div{display:flex;flex-direction:column;gap:3px}
.mercado-pago-method strong{font-size:12px}
.mercado-pago-method small{font-size:11px;line-height:1.45;color:var(--muted)}
.mercado-pago-method em{display:inline-flex;margin-left:6px;padding:2px 7px;border-radius:999px;background:#fff0cc;color:#8b5b00;font-size:9px;font-style:normal;text-transform:uppercase;letter-spacing:.04em}
.mercado-pago-method.is-preparing{opacity:.78}
html[data-theme="dark"] .mercado-pago-method em{background:#44351d;color:#ffd47d}
@media(max-width:620px){
  .automatic-pix-head{gap:12px}
  .automatic-pix-account{grid-template-columns:1fr}
  .mercado-pago-method{align-items:flex-start}
}

/* Digital menu received orders scroll fix 20260724 */
#menu .menu-orders-panel {
  display: flex;
  flex-direction: column;
  max-height: min(760px, calc(100vh - 170px));
  min-height: 0;
  overflow: hidden;
}

#menu .menu-online-list {
  display: grid;
  gap: 12px;
  max-height: clamp(360px, 62vh, 610px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(204, 49, 93, .46) rgba(255, 226, 218, .55);
}

#menu .menu-online-list::-webkit-scrollbar {
  width: 9px;
}

#menu .menu-online-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 226, 218, .55);
}

#menu .menu-online-list::-webkit-scrollbar-thumb {
  border: 2px solid rgba(255, 226, 218, .55);
  border-radius: 999px;
  background: rgba(204, 49, 93, .58);
}

#menu .menu-online-list .empty {
  margin: 0;
}

html[data-theme="dark"] #menu .menu-online-list {
  scrollbar-color: rgba(255, 111, 157, .55) rgba(255, 238, 224, .08);
}

html[data-theme="dark"] #menu .menu-online-list::-webkit-scrollbar-track {
  background: rgba(255, 238, 224, .08);
}

html[data-theme="dark"] #menu .menu-online-list::-webkit-scrollbar-thumb {
  border-color: rgba(255, 238, 224, .08);
  background: rgba(255, 111, 157, .62);
}

@media (max-width: 980px) {
  #menu .menu-orders-panel {
    max-height: none;
  }

  #menu .menu-online-list {
    max-height: min(68vh, 620px);
  }
}

@media (max-width: 520px) {
  #menu .menu-online-list {
    max-height: min(64vh, 520px);
    padding-right: 3px;
  }
}

/* Cardapio Digital V2 editor foundation 20260804 */
#menu .menu-v2-toolbar {
  position: sticky;
  top: 0;
  z-index: 18;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 14px;
  padding: 9px;
  border: 1px solid var(--bd);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 10px 28px rgba(74, 42, 29, .08);
  backdrop-filter: blur(16px);
}

#menu .menu-v2-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

#menu .menu-v2-nav::-webkit-scrollbar { display: none; }

#menu .menu-v2-nav button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
  transition: .18s ease;
}

#menu .menu-v2-nav button:hover { background: var(--surface2); color: var(--cocoa); }
#menu .menu-v2-nav button.active { background: var(--cocoa); color: #fff; box-shadow: 0 7px 18px rgba(63, 42, 31, .17); }
#menu :is(button, input, select, textarea, a, [tabindex]):focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 2px;
}

#menu .menu-v2-nav-count {
  display: grid;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-size: 9px;
}

#menu .menu-v2-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

#menu .menu-v2-toolbar-actions .btn { min-height: 36px; white-space: nowrap; }

#menu .menu-v2-save-state {
  position: relative;
  padding-left: 13px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

#menu .menu-v2-save-state::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5aa878;
  content: '';
  transform: translateY(-50%);
}

#menu .menu-v2-save-state.is-dirty::before { background: #d5963c; }
#menu .menu-v2-save-state.is-conflict::before { background: #d05252; }

#menu .menu-v2-notice {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  margin-bottom: 14px;
  padding: 11px 14px;
  border: 1px solid var(--bd);
  border-radius: 14px;
  background: var(--surface2);
}

#menu .menu-v2-notice > div { min-width: 0; flex: 1; }
#menu .menu-v2-notice strong { display: block; color: var(--choco); font-size: 12px; }
#menu .menu-v2-notice p { margin: 2px 0 0; color: var(--muted); font-size: 10.5px; line-height: 1.45; }
#menu .menu-v2-notice.is-warning { border-color: #efce96; background: #fff9ec; }
#menu .menu-v2-notice.is-info { border-color: #b9d4e8; background: #f2f8fc; }
#menu .menu-v2-notice.is-error { border-color: #ebaaaa; background: #fff3f3; }
#menu .menu-v2-notice.is-success { border-color: #a9d5b7; background: #f2faf5; }

#menu .menu-v2-notice-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border: 3px solid rgba(89, 164, 116, .22);
  border-radius: 50%;
  background: #59a474;
  box-sizing: content-box;
}

#menu .menu-v2-notice.is-warning .menu-v2-notice-dot { border-color: rgba(213,150,60,.2); background: #d5963c; }
#menu .menu-v2-notice.is-info .menu-v2-notice-dot { border-color: rgba(71,137,184,.2); background: #4789b8; }
#menu .menu-v2-notice.is-error .menu-v2-notice-dot { border-color: rgba(208,82,82,.2); background: #d05252; }

#menu .menu-v2-spinner {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 2px solid var(--bd);
  border-top-color: var(--rose);
  border-radius: 50%;
  animation: menu-v2-spin .8s linear infinite;
}

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

#menu .menu-v2-panel { display: none; }
#menu .menu-v2-panel.active { display: block; animation: menu-v2-panel-in .2s ease both; }
@keyframes menu-v2-panel-in { from { opacity: .55; transform: translateY(3px); } }

#menu .menu-v2-overview,
#menu .menu-v2-products-list { display: grid; gap: 14px; }

#menu .menu-v2-loading-card,
#menu .menu-v2-error-card { color: var(--muted); font-size: 12px; }
#menu .menu-v2-error-card strong { display: block; margin-bottom: 5px; color: var(--choco); }
#menu .menu-v2-error-card p { margin: 0; }

#menu .menu-v2-status-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 150px;
  overflow: hidden;
  position: relative;
  padding: 26px 28px;
  background:
    radial-gradient(circle at 92% 18%, rgba(255,255,255,.82) 0 5%, transparent 5.5%),
    linear-gradient(125deg, #fff7f0, #f5ddd7);
}

#menu .menu-v2-status-hero::after {
  position: absolute;
  right: 8%;
  bottom: -48px;
  width: 160px;
  height: 160px;
  border: 24px solid rgba(196,115,122,.09);
  border-radius: 50%;
  content: '';
}

#menu .menu-v2-status-hero > * { position: relative; z-index: 1; }
#menu .menu-v2-eyebrow { display: block; margin-bottom: 5px; color: var(--rose-dk); font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
#menu .menu-v2-status-hero h2 { margin: 0 0 5px; font-size: clamp(20px, 2.1vw, 29px); }
#menu .menu-v2-status-hero p { max-width: 630px; margin: 0; color: #79675d; font-size: 11px; line-height: 1.55; }

#menu .menu-v2-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

#menu .menu-v2-metrics .panel { min-height: 105px; padding: 17px; }
#menu .menu-v2-metrics span { display: block; margin-bottom: 10px; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
#menu .menu-v2-metrics strong { display: block; color: var(--choco); font-size: 19px; }
#menu .menu-v2-metrics small { display: block; margin-top: 5px; color: var(--muted); font-size: 9.5px; }

#menu .menu-v2-overview-grid,
#menu .menu-v2-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

#menu .menu-v2-draft-card { display: flex; flex-direction: column; }
#menu .menu-v2-draft-card > p { flex: 1; color: var(--muted); font-size: 11px; line-height: 1.55; }
#menu .menu-v2-draft-actions { display: flex; gap: 8px; flex-wrap: wrap; }

#menu .menu-v2-products-panel > p { margin-bottom: 14px; color: var(--muted); font-size: 11px; line-height: 1.55; }

#menu .menu-v2-product-row {
  display: grid;
  grid-template-columns: 30px 72px minmax(190px, 1fr) minmax(420px, 1.15fr);
  align-items: center;
  gap: 13px;
  padding: 11px;
  border: 1px solid var(--bd);
  border-radius: 14px;
  background: var(--surface2);
  transition: opacity .18s, border-color .18s;
}

#menu .menu-v2-product-row.is-hidden { opacity: .62; }
#menu .menu-v2-product-row.is-inactive { border-style: dashed; }
#menu .menu-v2-select-product { display: grid; min-height: 44px; place-items: center; cursor: pointer; }
#menu .menu-v2-select-product input { width: 17px; height: 17px; accent-color: var(--rose); }
#menu .menu-v2-product-image { display: grid; width: 72px; height: 62px; overflow: hidden; place-items: center; border-radius: 11px; background: #f3dfd6; font-size: 24px; }
#menu .menu-v2-product-image img { width: 100%; height: 100%; object-fit: cover; }

#menu .menu-v2-product-main { display: grid; gap: 8px; min-width: 0; }
#menu .menu-v2-product-main strong { display: block; overflow: hidden; color: var(--choco); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
#menu .menu-v2-product-main > div > span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
#menu .menu-v2-product-flags { display: flex; gap: 5px; flex-wrap: wrap; }

#menu .menu-v2-product-controls {
  display: grid;
  grid-template-columns: minmax(125px, 1fr) minmax(105px, .8fr) minmax(110px, .9fr) auto auto;
  align-items: end;
  gap: 7px;
}

#menu .menu-v2-product-controls > label > span { display: block; margin: 0 0 4px; color: var(--muted); font-size: 8.5px; font-weight: 750; text-transform: uppercase; }
#menu .menu-v2-product-controls select,
#menu .menu-v2-product-controls input { width: 100%; min-height: 34px; padding: 6px 8px; border: 1px solid var(--bd); border-radius: 8px; background: var(--surface); color: var(--choco); font-size: 10px; }
#menu .menu-v2-mini-check { display: grid; min-height: 34px; padding: 6px 8px; grid-template-columns: auto 1fr; align-items: center; gap: 5px; border: 1px solid var(--bd); border-radius: 8px; background: var(--surface); cursor: pointer; }
#menu .menu-v2-mini-check > span { margin: 0 !important; color: var(--choco) !important; font-size: 9px !important; text-transform: none !important; }
#menu .menu-v2-mini-check input { accent-color: var(--rose); }

#menu .menu-v2-catalog-workspace { display: grid; gap: 18px; }
#menu .menu-v2-catalog-section { display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--bd); }
#menu .menu-v2-catalog-section > p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
#menu .menu-v2-section-title { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
#menu .menu-v2-section-title > div:last-child { display: flex; gap: 7px; flex-wrap: wrap; }
#menu .menu-v2-section-title span { color: var(--rose-dk); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
#menu .menu-v2-section-title h3 { margin: 3px 0 0; color: var(--choco); font-size: 16px; }
#menu .menu-v2-section-title small { color: var(--muted); font-size: 9px; text-align: right; }
#menu .menu-v2-catalog-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 8px; }
#menu .menu-v2-catalog-summary > div { min-height: 74px; padding: 12px; border: 1px solid var(--bd); border-radius: 11px; background: var(--surface2); }
#menu .menu-v2-catalog-summary span { display: block; color: var(--muted); font-size: 8px; font-weight: 750; text-transform: uppercase; }
#menu .menu-v2-catalog-summary strong { display: block; margin-top: 8px; color: var(--choco); font-size: 17px; }
#menu .menu-v2-create-category > label,
#menu .menu-v2-product-filters label > span,
#menu .menu-v2-bulk-bar label > span,
#menu .menu-v2-catalog-picker-tools label > span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 8.5px; font-weight: 750; text-transform: uppercase; }
#menu .menu-v2-create-category > div { display: flex; gap: 8px; }
#menu .menu-v2-create-category input { min-width: min(100%, 330px); flex: 1; }
#menu .menu-v2-create-category input,
#menu .menu-v2-category-copy input,
#menu .menu-v2-product-filters input,
#menu .menu-v2-product-filters select,
#menu .menu-v2-bulk-bar select,
#menu .menu-v2-catalog-picker-tools input,
#menu .menu-v2-inline-modal select { min-height: 40px; padding: 8px 10px; border: 1px solid var(--bd); border-radius: 9px; background: var(--surface); color: var(--choco); font-size: 10px; }
#menu .menu-v2-categories-list { display: grid; gap: 8px; }
#menu .menu-v2-category-row { display: grid; grid-template-columns: minmax(220px, 1fr) auto auto auto; align-items: center; gap: 10px; padding: 11px; border: 1px solid var(--bd); border-radius: 12px; background: var(--surface2); }
#menu .menu-v2-category-row.is-hidden { border-style: dashed; opacity: .68; }
#menu .menu-v2-category-copy label { display: block; margin-bottom: 3px; color: var(--muted); font-size: 8px; font-weight: 750; text-transform: uppercase; }
#menu .menu-v2-category-copy input { width: 100%; }
#menu .menu-v2-category-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
#menu .menu-v2-order-buttons { display: flex; align-items: center; gap: 4px; }
#menu .menu-v2-order-buttons button { display: grid; width: 36px; min-height: 36px; border: 1px solid var(--bd); place-items: center; border-radius: 8px; background: var(--surface); color: var(--choco); cursor: pointer; }
#menu .menu-v2-order-buttons button:disabled { opacity: .35; cursor: default; }
#menu .menu-v2-order-buttons span { min-width: 22px; color: var(--muted); font-size: 9px; text-align: center; }
#menu .menu-v2-remove-link { color: #b24848; }
#menu .menu-v2-product-filters { display: grid; grid-template-columns: minmax(170px, 1.2fr) repeat(3, minmax(145px, 1fr)); gap: 8px; }
#menu .menu-v2-product-filters input,
#menu .menu-v2-product-filters select { width: 100%; }
#menu .menu-v2-bulk-bar { display: grid; grid-template-columns: minmax(175px, auto) auto repeat(3, minmax(125px, 1fr)) auto; align-items: end; gap: 8px; padding: 10px; border: 1px solid var(--bd); border-radius: 12px; background: var(--surface2); }
#menu .menu-v2-bulk-bar strong { align-self: center; color: var(--choco); font-size: 9px; }
#menu .menu-v2-product-row-actions { display: flex; grid-column: 2 / -1; justify-content: space-between; gap: 10px; }
#menu .menu-v2-add-products summary { color: var(--choco); font-size: 12px; font-weight: 800; cursor: pointer; }
#menu .menu-v2-catalog-picker-tools { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto auto; align-items: end; gap: 8px; }
#menu .menu-v2-catalog-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 8px; max-height: 420px; overflow-y: auto; padding: 2px; overscroll-behavior: contain; }
#menu .menu-v2-catalog-product { display: grid; grid-template-columns: auto 48px 1fr; align-items: center; gap: 8px; min-width: 0; padding: 8px; border: 1px solid var(--bd); border-radius: 11px; background: var(--surface2); cursor: pointer; }
#menu .menu-v2-catalog-product.is-inactive { border-style: dashed; opacity: .68; }
#menu .menu-v2-catalog-product > input { width: 17px; height: 17px; accent-color: var(--rose); }
#menu .menu-v2-catalog-product .menu-v2-product-image { width: 48px; height: 48px; font-size: 18px; }
#menu .menu-v2-catalog-product > span:last-child { min-width: 0; }
#menu .menu-v2-catalog-product strong,
#menu .menu-v2-catalog-product small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#menu .menu-v2-catalog-product strong { color: var(--choco); font-size: 10px; }
#menu .menu-v2-catalog-product small { margin-top: 3px; color: var(--muted); font-size: 8px; }
#menu .menu-v2-catalog-live { min-height: 18px; margin: 0; color: #35734c; font-size: 10px; font-weight: 700; }
#menu .menu-v2-catalog-live.is-error { color: #b24848; }
#menu .menu-v2-inline-modal { position: fixed; z-index: 10030; display: grid; padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); place-items: center; background: rgba(35,24,20,.58); inset: 0; }
#menu .menu-v2-inline-modal.hidden { display: none; }
#menu .menu-v2-inline-modal .panel { width: min(100%, 460px); }
#menu .menu-v2-inline-modal h3 { margin-top: 0; }
#menu .menu-v2-inline-modal p,
#menu .menu-v2-inline-modal label { color: var(--muted); font-size: 11px; line-height: 1.55; }
#menu .menu-v2-inline-modal select { width: 100%; margin: 5px 0 14px; }
#menu .menu-v2-inline-modal .panel > div { display: flex; justify-content: flex-end; gap: 8px; }

#menu .menu-v2-editor-grid {
  display: grid;
  grid-template-columns: minmax(360px, .85fr) minmax(420px, 1.15fr);
  align-items: start;
  gap: 14px;
}
#menu [data-menu-v2-panel="appearance"] { overflow-x: clip; }

#menu .menu-v2-editor-settings { max-height: calc(100vh - 92px); overflow-y: auto; scrollbar-width: thin; }
#menu .menu-v2-open-preview { display: none; width: 100%; margin-bottom: 10px; }
#menu .menu-v2-group-help { margin: -2px 0 12px; color: var(--muted); font-size: 9.5px; line-height: 1.5; }
#menu .menu-v2-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-bottom: 15px; }
#menu .menu-v2-choice,
#menu .menu-v2-type-choice,
#menu .menu-v2-palette { border: 1px solid var(--bd); background: var(--surface); color: var(--choco); cursor: pointer; }
#menu .menu-v2-choice { min-height: 78px; padding: 11px; border-radius: 11px; text-align: left; }
#menu .menu-v2-choice strong,
#menu .menu-v2-choice span { display: block; }
#menu .menu-v2-choice strong { margin-bottom: 4px; font-size: 11px; }
#menu .menu-v2-choice span { color: var(--muted); font-size: 8.5px; line-height: 1.4; }
#menu .menu-v2-choice.active,
#menu .menu-v2-type-choice.active,
#menu .menu-v2-palette.active { border-color: var(--rose); box-shadow: 0 0 0 2px rgba(196,115,122,.12); }

#menu .menu-v2-palette-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-bottom: 13px; }
#menu .menu-v2-palette { display: flex; min-height: 45px; align-items: center; gap: 8px; padding: 7px; border-radius: 10px; text-align: left; }
#menu .menu-v2-palette > span { display: flex; overflow: hidden; flex: 0 0 auto; border: 1px solid rgba(0,0,0,.08); border-radius: 999px; }
#menu .menu-v2-palette i { width: 14px; height: 28px; background: var(--swatch); }
#menu .menu-v2-palette strong { min-width: 0; font-size: 8.5px; line-height: 1.25; }

#menu .menu-v2-color-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
#menu .menu-v2-color-field { min-width: 0; }
#menu .menu-v2-color-field > label { display: block; margin-bottom: 4px; color: var(--muted); font-size: 8.5px; font-weight: 750; letter-spacing: .03em; text-transform: uppercase; }
#menu .menu-v2-color-field > div { display: grid; grid-template-columns: 42px 1fr; min-height: 39px; overflow: hidden; border: 1px solid var(--bd); border-radius: 9px; background: var(--surface); }
#menu .menu-v2-color-field input[type="color"] { width: 42px; height: 100%; min-height: 39px; padding: 4px; border: 0; border-right: 1px solid var(--bd); background: transparent; cursor: pointer; }
#menu .menu-v2-color-field input[type="text"] { width: 100%; min-width: 0; border: 0; outline: 0; padding: 7px 8px; background: transparent; color: var(--choco); font: 700 10px ui-monospace, SFMono-Regular, Consolas, monospace; text-transform: uppercase; }
#menu .menu-v2-color-field input[aria-invalid="true"] { background: rgba(208,82,82,.08); color: #a52e2e; }
#menu .menu-v2-color-field small { display: block; min-height: 12px; margin-top: 2px; color: #b33c3c; font-size: 7.5px; }

#menu .menu-v2-contrast { display: grid; gap: 6px; margin: 5px 0 15px; }
#menu .menu-v2-contrast-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px; padding: 7px; border: 1px solid var(--bd); border-radius: 9px; background: var(--surface2); }
#menu .menu-v2-contrast-row.fails { border-color: #e5a3a3; background: #fff5f5; }
#menu .menu-v2-contrast-sample { display: grid; width: 34px; height: 30px; place-items: center; border-radius: 6px; background: var(--bg); color: var(--fg); font-size: 10px; font-weight: 800; }
#menu .menu-v2-contrast-row div strong,
#menu .menu-v2-contrast-row div span { display: block; }
#menu .menu-v2-contrast-row div strong { color: var(--choco); font-size: 8.5px; }
#menu .menu-v2-contrast-row div span { margin-top: 1px; color: var(--muted); font-size: 7.5px; }
#menu .menu-v2-contrast-row > b { color: #388254; font-size: 7.5px; }
#menu .menu-v2-contrast-row.fails > b { color: #b33c3c; }

#menu .menu-v2-type-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding-bottom: 15px; }
#menu .menu-v2-type-choice { display: grid; min-height: 63px; place-items: center; padding: 7px 4px; border-radius: 10px; }
#menu .menu-v2-type-choice span { font-family: var(--sample-font); font-size: 19px; }
#menu .menu-v2-type-choice strong { font-size: 7.5px; }

#menu .menu-v2-sections-list { display: grid; gap: 6px; margin-bottom: 12px; }
#menu .menu-v2-section-row { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 7px 6px 10px; border: 1px solid var(--bd); border-radius: 9px; background: var(--surface2); }
#menu .menu-v2-section-row.is-hidden { opacity: .6; }
#menu .menu-v2-section-row > label { display: flex; min-width: 0; flex: 1; align-items: center; gap: 7px; color: var(--choco); font-size: 9px; font-weight: 700; cursor: pointer; }
#menu .menu-v2-section-row input { accent-color: var(--rose); }
#menu .menu-v2-section-row > div { display: flex; gap: 4px; }
#menu .menu-v2-section-row button { display: grid; width: 29px; height: 29px; border: 1px solid var(--bd); place-items: center; border-radius: 7px; background: var(--surface); color: var(--choco); cursor: pointer; }
#menu .menu-v2-section-row button:disabled { opacity: .35; cursor: default; }
#menu .menu-v2-section-options { padding-top: 2px; }
#menu .menu-v2-close-preview { display: none; width: 40px; height: 40px; border: 1px solid var(--bd); place-items: center; border-radius: 50%; background: var(--surface); color: var(--choco); font-size: 22px; cursor: pointer; }

#menu :is(.menu-v2-choice,.menu-v2-palette,.menu-v2-type-choice,.menu-v2-section-row button,.menu-v2-close-preview):focus-visible { outline: 3px solid rgba(196,115,122,.3); outline-offset: 2px; }

#menu .menu-v2-editor-settings > p,
#menu .menu-v2-preview-note { margin: 0 0 14px; color: var(--muted); font-size: 10.5px; line-height: 1.5; }

#menu .menu-v2-editor-group { border-top: 1px solid var(--bd); }
#menu .menu-v2-editor-group:last-child { border-bottom: 1px solid var(--bd); }
#menu .menu-v2-editor-group summary { position: relative; padding: 14px 22px 14px 2px; color: var(--choco); font-size: 11px; font-weight: 800; list-style: none; cursor: pointer; }
#menu .menu-v2-editor-group summary::-webkit-details-marker { display: none; }
#menu .menu-v2-editor-group summary::after { position: absolute; top: 50%; right: 4px; color: var(--muted); content: '+'; font-size: 17px; font-weight: 400; transform: translateY(-50%); }
#menu .menu-v2-editor-group[open] summary::after { content: '−'; }

#menu .menu-v2-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 0 15px; }
#menu .menu-v2-field { display: grid; gap: 5px; }
#menu .menu-v2-field.span-2 { grid-column: span 2; }
#menu .menu-v2-field > span,
#menu .menu-v2-color > span { color: var(--muted); font-size: 8.5px; font-weight: 750; letter-spacing: .03em; text-transform: uppercase; }
#menu .menu-v2-field input,
#menu .menu-v2-field select,
#menu .menu-v2-field textarea { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid var(--bd); border-radius: 9px; outline: 0; background: var(--surface); color: var(--choco); font: inherit; font-size: 10.5px; }
#menu .menu-v2-field textarea { min-height: 76px; resize: vertical; }
#menu .menu-v2-field :is(input, select, textarea):focus { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(196,115,122,.11); }
#menu .menu-v2-color { display: grid; grid-template-columns: 1fr 38px; align-items: center; gap: 7px; min-height: 38px; padding: 5px 6px 5px 10px; border: 1px solid var(--bd); border-radius: 9px; background: var(--surface); }
#menu .menu-v2-color input { width: 38px; height: 28px; padding: 0; border: 0; border-radius: 7px; background: transparent; cursor: pointer; }
#menu .menu-v2-check { display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 7px 9px; border: 1px solid var(--bd); border-radius: 9px; background: var(--surface2); color: var(--choco); font-size: 9.5px; font-weight: 650; cursor: pointer; }
#menu .menu-v2-check input { accent-color: var(--rose); }

#menu .menu-v2-preview-panel { position: sticky; top: 76px; overflow: hidden; padding: 16px; }
#menu .menu-v2-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
#menu .menu-v2-preview-head span { color: var(--rose-dk); font-size: 8.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
#menu .menu-v2-preview-head h2 { margin: 2px 0 0; color: var(--choco); font-size: 15px; }
#menu .menu-v2-device-switch { display: flex; padding: 3px; border: 1px solid var(--bd); border-radius: 10px; background: var(--surface2); }
#menu .menu-v2-device-switch button { min-height: 29px; padding: 5px 9px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 9px; font-weight: 750; cursor: pointer; }
#menu .menu-v2-device-switch button.active { background: var(--surface); color: var(--choco); box-shadow: 0 3px 10px rgba(62,36,26,.09); }

#menu .menu-v2-preview-shell {
  display: flex;
  min-height: 590px;
  max-height: calc(100vh - 215px);
  overflow: auto;
  justify-content: center;
  padding: 16px;
  border-radius: 18px;
  background: #e9e5e2;
  scrollbar-width: thin;
}

#menu .menu-v2-preview-shell.is-mobile .menu-v2-preview { width: min(100%, 370px); }
#menu .menu-v2-preview-shell.is-desktop .menu-v2-preview { width: 100%; }

#menu .menu-v2-preview {
  --preview-primary: #c4737a;
  --preview-secondary: #f3ddd3;
  --preview-bg: #fff8f1;
  --preview-surface: #fff;
  --preview-text: #5c3f2c;
  --preview-accent: #934a56;
  --preview-border: #e7c9c2;
  --preview-button: #934a56;
  --preview-button-text: #fff;
  min-height: 560px;
  align-self: flex-start;
  overflow: hidden;
  border: 7px solid #292523;
  border-radius: 25px;
  background: var(--preview-bg);
  box-shadow: 0 22px 50px rgba(44,34,29,.2);
  color: var(--preview-text);
  font-family: var(--preview-body-font);
  transition: width .25s ease;
}

#menu .menu-v2-preview-shell.is-desktop .menu-v2-preview { border-width: 5px; border-radius: 14px; }
#menu .menu-v2-demo-cover { position: relative; height: 170px; overflow: hidden; background: linear-gradient(145deg, var(--preview-primary), var(--preview-secondary)); }
#menu .menu-v2-demo-cover.without-banner { background: var(--preview-surface); }
#menu .menu-v2-demo-cover.without-banner .menu-v2-demo-cover-shade { background: linear-gradient(135deg, var(--preview-primary), var(--preview-accent)); opacity: .94; }
#menu .menu-v2-preview.banner-small .menu-v2-demo-cover { height: 125px; }
#menu .menu-v2-preview.banner-large .menu-v2-demo-cover { height: 225px; }
#menu .menu-v2-demo-cover > img { position: absolute; width: 100%; height: 100%; object-fit: cover; inset: 0; }
#menu .menu-v2-demo-cover-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(34,22,18,.05), rgba(34,22,18,.65)); }
#menu .menu-v2-demo-brand { position: absolute; right: 18px; bottom: 17px; left: 18px; display: flex; align-items: center; gap: 10px; color: #fff; }
#menu .menu-v2-preview.header-centered .menu-v2-demo-brand { flex-direction: column; text-align: center; }
#menu .menu-v2-preview.header-compact .menu-v2-demo-brand { bottom: 12px; }
#menu .menu-v2-demo-logo { display: grid; width: 45px; height: 45px; flex: 0 0 auto; overflow: hidden; place-items: center; border: 2px solid rgba(255,255,255,.8); border-radius: 50%; background: #fff; color: var(--preview-text); font-size: 19px; }
#menu .menu-v2-demo-logo img { width: 100%; height: 100%; object-fit: cover; }
#menu .menu-v2-demo-brand small { display: block; margin-bottom: 1px; font-size: 7px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
#menu .menu-v2-demo-brand h3 { margin: 0; color: #fff; font-family: var(--preview-title-font); font-size: 22px; line-height: 1.1; }
#menu .menu-v2-demo-brand p { margin: 3px 0 0; color: rgba(255,255,255,.82); font-size: 8px; }

#menu .menu-v2-demo-content-section { padding: 14px 16px 0; }
#menu .menu-v2-demo-content-section + .menu-v2-demo-content-section { padding-top: 12px; }
#menu .menu-v2-demo-product-groups { display: grid; gap: 17px; }
#menu .menu-v2-demo-product-group + .menu-v2-demo-product-group { padding-top: 12px; border-top: 1px solid var(--preview-border); }
#menu .menu-v2-demo-description { margin: 0 0 12px; color: color-mix(in srgb, var(--preview-text) 72%, transparent); font-size: 8.5px; line-height: 1.55; }
#menu .menu-v2-demo-order-modes { display: flex; gap: 6px; overflow: hidden; padding: 14px 16px 0; }
#menu .menu-v2-demo-order-modes span { padding: 6px 9px; border: 1px solid var(--preview-border); border-radius: 999px; background: var(--preview-surface); color: var(--preview-text); font-size: 7.5px; white-space: nowrap; }
#menu .menu-v2-demo-search { display: flex; align-items: center; gap: 7px; height: 36px; margin-bottom: 11px; padding: 0 11px; border: 1px solid var(--preview-border); border-radius: 999px; background: var(--preview-surface); color: color-mix(in srgb, var(--preview-text) 68%, transparent); font-size: 8.5px; }
#menu .menu-v2-demo-categories { display: flex; gap: 6px; overflow: hidden; margin-bottom: 14px; }
#menu .menu-v2-demo-categories span { padding: 6px 9px; border: 1px solid var(--preview-border); border-radius: 999px; background: var(--preview-surface); color: var(--preview-text); font-size: 7.5px; white-space: nowrap; }
#menu .menu-v2-demo-categories span.active { border-color: var(--preview-button); background: var(--preview-button); color: var(--preview-button-text); }
#menu .menu-v2-demo-section-head { display: flex; align-items: end; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
#menu .menu-v2-demo-section-head small { display: block; color: var(--preview-primary); font-size: 6.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
#menu .menu-v2-demo-section-head h4 { margin: 2px 0 0; color: var(--preview-text); font-family: var(--preview-title-font); font-size: 16px; }
#menu .menu-v2-demo-section-head > span { color: color-mix(in srgb, var(--preview-text) 55%, transparent); font-size: 7px; }
#menu .menu-v2-demo-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#menu .menu-v2-preview-shell.is-desktop .menu-v2-demo-products.cols-1 { grid-template-columns: 1fr; }
#menu .menu-v2-preview-shell.is-desktop .menu-v2-demo-products.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#menu .menu-v2-preview-shell.is-desktop .menu-v2-demo-products.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#menu .menu-v2-preview-shell.is-desktop .menu-v2-demo-products.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#menu .menu-v2-demo-product { min-width: 0; overflow: hidden; border: 1px solid var(--preview-border); border-radius: 14px; background: var(--preview-surface); box-shadow: 0 5px 18px rgba(58,35,26,.06); }
#menu .menu-v2-preview.radius-square .menu-v2-demo-product { border-radius: 0; }
#menu .menu-v2-preview.radius-soft .menu-v2-demo-product { border-radius: 7px; }
#menu .menu-v2-demo-product.is-unavailable { opacity: .58; }
#menu .menu-v2-demo-photo { position: relative; display: grid; height: 95px; overflow: hidden; place-items: center; background: var(--preview-secondary); font-size: 27px; }
#menu .menu-v2-demo-photo img { width: 100%; height: 100%; object-fit: cover; }
#menu .menu-v2-demo-photo b { position: absolute; top: 6px; left: 6px; max-width: calc(100% - 12px); overflow: hidden; padding: 3px 5px; border-radius: 999px; background: var(--preview-accent); color: var(--preview-button-text); font-size: 5.5px; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
#menu .menu-v2-demo-product-copy { padding: 8px; }
#menu .menu-v2-demo-product-copy > small { display: block; overflow: hidden; margin-bottom: 2px; color: var(--preview-primary); font-size: 5.5px; font-weight: 750; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
#menu .menu-v2-demo-product-copy > strong { display: block; overflow: hidden; color: var(--preview-text); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
#menu .menu-v2-demo-product-copy > p { display: -webkit-box; min-height: 19px; overflow: hidden; margin: 3px 0; color: color-mix(in srgb, var(--preview-text) 62%, transparent); font-size: 6.5px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
#menu .menu-v2-demo-product-copy > div { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-top: 6px; }
#menu .menu-v2-demo-product-copy > div > span { color: var(--preview-text); font-size: 8px; font-weight: 800; }
#menu .menu-v2-demo-product-copy button { display: grid; width: 21px; height: 21px; border: 0; place-items: center; border-radius: 50%; background: var(--preview-button); color: var(--preview-button-text); font-size: 12px; }
#menu .menu-v2-demo-product-copy em { color: var(--preview-primary); font-size: 6px; font-style: normal; font-weight: 700; }
#menu .menu-v2-preview.format-horizontal .menu-v2-demo-product { display: grid; grid-template-columns: 42% 1fr; }
#menu .menu-v2-preview.format-horizontal .menu-v2-demo-photo { height: 100%; min-height: 92px; }
#menu .menu-v2-preview.style-compact .menu-v2-demo-photo { height: 72px; }
#menu .menu-v2-preview.style-editorial .menu-v2-demo-photo { height: 120px; }
#menu .menu-v2-demo-empty { grid-column: 1 / -1; padding: 28px 10px; color: color-mix(in srgb, var(--preview-text) 60%, transparent); font-size: 8px; text-align: center; }
#menu .menu-v2-demo-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; padding: 13px 16px; border-top: 1px solid var(--preview-border); background: var(--preview-surface); color: var(--preview-text); }
#menu .menu-v2-demo-footer strong { font-family: var(--preview-title-font); font-size: 9px; }
#menu .menu-v2-demo-footer span { font-size: 7px; }

#menu .menu-v2-info-card { display: flex; align-items: flex-start; flex-direction: column; }
#menu .menu-v2-info-card .menu-v2-info-icon { display: grid; width: 38px; height: 38px; margin-bottom: 12px; place-items: center; border-radius: 12px; background: var(--petal); color: var(--rose-dk); font-size: 21px; }
#menu .menu-v2-info-card p { flex: 1; color: var(--muted); font-size: 11px; line-height: 1.55; }
#menu .menu-v2-reset-card p { color: var(--muted); font-size: 11px; line-height: 1.55; }
#menu .menu-v2-legacy-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 14px 16px; border: 1px solid #efce96; border-radius: 14px; background: #fff9ec; }
#menu .menu-v2-legacy-banner strong { display: block; color: var(--choco); font-size: 12px; }
#menu .menu-v2-legacy-banner div span { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
#menu [data-menu-v2-panel="settings"] { display: none; gap: 14px; }
#menu [data-menu-v2-panel="settings"].active { display: grid; }

html[data-theme="dark"] #menu .menu-v2-toolbar { background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: 0 12px 30px rgba(0,0,0,.22); }
html[data-theme="dark"] #menu .menu-v2-nav button.active { background: var(--rose); }
html[data-theme="dark"] #menu .menu-v2-notice.is-warning,
html[data-theme="dark"] #menu .menu-v2-legacy-banner { border-color: rgba(214,166,85,.35); background: rgba(137,94,28,.15); }
html[data-theme="dark"] #menu .menu-v2-notice.is-info { border-color: rgba(77,147,195,.35); background: rgba(41,104,148,.14); }
html[data-theme="dark"] #menu .menu-v2-notice.is-error { border-color: rgba(211,87,87,.4); background: rgba(139,42,42,.16); }
html[data-theme="dark"] #menu .menu-v2-notice.is-success { border-color: rgba(90,171,120,.35); background: rgba(42,119,71,.14); }
html[data-theme="dark"] #menu .menu-v2-status-hero { background: linear-gradient(125deg, rgba(105,63,51,.5), rgba(76,43,47,.75)); }
html[data-theme="dark"] #menu .menu-v2-status-hero p { color: var(--muted); }
html[data-theme="dark"] #menu .menu-v2-preview-shell { background: #25211f; }

@media (max-width: 1180px) {
  #menu .menu-v2-toolbar { align-items: stretch; flex-direction: column; }
  #menu .menu-v2-toolbar-actions { justify-content: flex-end; }
  #menu .menu-v2-editor-grid { grid-template-columns: minmax(330px, .9fr) minmax(380px, 1.1fr); }
  #menu .menu-v2-product-row { grid-template-columns: 64px 1fr; }
  #menu .menu-v2-product-controls { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  #menu .menu-v2-editor-grid { grid-template-columns: 1fr; }
  #menu .menu-v2-editor-settings { max-height: none; overflow: visible; }
  #menu .menu-v2-open-preview { display: block; }
  #menu .menu-v2-preview-panel { display: none; position: static; }
  #menu .menu-v2-preview-shell { max-height: 760px; }
  #menu .menu-v2-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.menu-v2-preview-open { overflow: hidden; }
  #menu .menu-v2-preview-panel.is-fullscreen { position: fixed; z-index: 10020; display: flex; height: 100dvh; max-height: none; overflow: hidden; flex-direction: column; inset: 0; margin: 0; padding: max(14px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); border: 0; border-radius: 0; background: var(--surface); }
  #menu .menu-v2-preview-panel.is-fullscreen .menu-v2-close-preview { display: grid; flex: 0 0 auto; }
  #menu .menu-v2-preview-panel.is-fullscreen .menu-v2-preview-note { flex: 0 0 auto; }
  #menu .menu-v2-preview-panel.is-fullscreen .menu-v2-preview-shell { min-height: 0; max-height: none; flex: 1; overscroll-behavior: contain; }
}

@media (max-width: 680px) {
  #menu .menu-v2-toolbar { top: 6px; margin-inline: -4px; padding: 7px; }
  #menu .menu-v2-toolbar-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #menu .menu-v2-toolbar-actions .menu-v2-save-state { grid-column: 1 / -1; }
  #menu .menu-v2-toolbar-actions .btn { width: 100%; min-height: 44px; }
  #menu .menu-v2-nav button,
  #menu .menu-v2-device-switch button,
  #menu .menu-v2-field input,
  #menu .menu-v2-field select,
  #menu .menu-v2-check,
  #menu .menu-v2-product-controls select,
  #menu .menu-v2-product-controls input[type="number"],
  #menu .menu-v2-mini-check { min-height: 44px; }
  #menu .menu-v2-notice { align-items: flex-start; flex-wrap: wrap; }
  #menu .menu-v2-notice .btn { width: 100%; }
  #menu .menu-v2-overview-grid,
  #menu .menu-v2-section-grid { grid-template-columns: 1fr; }
  #menu .menu-v2-status-hero { align-items: flex-start; flex-direction: column; gap: 15px; min-height: 165px; padding: 21px; }
  #menu .menu-v2-product-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #menu .menu-v2-preview-panel { margin-inline: -4px; padding: 11px; }
  #menu .menu-v2-preview-panel.is-fullscreen { margin: 0; }
  #menu .menu-v2-preview-shell { min-height: 520px; padding: 9px; }
  #menu .menu-v2-preview-shell.is-mobile .menu-v2-preview { width: min(100%, 350px); }
  #menu .menu-v2-choice-grid,
  #menu .menu-v2-palette-grid,
  #menu .menu-v2-color-grid { grid-template-columns: 1fr; }
  #menu .menu-v2-type-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  #menu .menu-v2-panel.active,
  #menu .menu-v2-spinner { animation: none; }
  #menu .menu-v2-nav button,
  #menu .menu-v2-product-row,
  #menu .menu-v2-preview { transition: none; }
}

@media (max-width: 460px) {
  #menu .menu-v2-metrics { grid-template-columns: 1fr; }
  #menu .menu-v2-metrics .panel { min-height: 88px; }
  #menu .menu-v2-product-row { grid-template-columns: 54px 1fr; }
  #menu .menu-v2-product-image { width: 54px; height: 54px; }
  #menu .menu-v2-product-controls { grid-template-columns: 1fr 1fr; }
  #menu .menu-v2-fields { grid-template-columns: 1fr; }
  #menu .menu-v2-field.span-2 { grid-column: auto; }
  #menu .menu-v2-preview-head { align-items: flex-start; flex-direction: column; }
  #menu .menu-v2-device-switch { width: 100%; }
  #menu .menu-v2-device-switch button { flex: 1; }
  #menu .menu-v2-preview-shell { margin-inline: -4px; }
  #menu .menu-v2-preview { border-width: 5px; border-radius: 20px; }
}

@media (max-width: 1180px) {
  #menu .menu-v2-product-row { grid-template-columns: 30px 64px minmax(0, 1fr); }
  #menu .menu-v2-product-controls,
  #menu .menu-v2-product-row-actions { grid-column: 1 / -1; }
  #menu .menu-v2-bulk-bar { grid-template-columns: repeat(3, minmax(140px, 1fr)); }
  #menu .menu-v2-bulk-bar > button { min-height: 40px; }
}

@media (max-width: 800px) {
  #menu .menu-v2-section-title { align-items: flex-start; flex-direction: column; }
  #menu .menu-v2-section-title small { text-align: left; }
  #menu .menu-v2-category-row { grid-template-columns: 1fr auto; }
  #menu .menu-v2-category-copy { grid-column: 1 / -1; }
  #menu .menu-v2-product-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #menu .menu-v2-bulk-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #menu .menu-v2-catalog-picker-tools { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  #menu .menu-v2-create-category > div,
  #menu .menu-v2-product-row-actions { align-items: stretch; flex-direction: column; }
  #menu .menu-v2-create-category input,
  #menu .menu-v2-create-category .btn,
  #menu .menu-v2-product-filters input,
  #menu .menu-v2-product-filters select,
  #menu .menu-v2-bulk-bar select,
  #menu .menu-v2-bulk-bar .btn,
  #menu .menu-v2-catalog-picker-tools input,
  #menu .menu-v2-catalog-picker-tools .btn,
  #menu .menu-v2-category-copy input,
  #menu .menu-v2-product-controls input,
  #menu .menu-v2-product-controls select,
  #menu .menu-v2-order-buttons button { min-height: 44px; }
  #menu .menu-v2-product-row { grid-template-columns: 30px 54px minmax(0, 1fr); padding: 10px 8px; }
  #menu .menu-v2-product-image { width: 54px; height: 54px; }
  #menu .menu-v2-product-controls { grid-template-columns: 1fr 1fr; }
  #menu .menu-v2-product-controls > label:first-child,
  #menu .menu-v2-product-controls > label:nth-child(3) { grid-column: 1 / -1; }
  #menu .menu-v2-product-row-actions .menu-v2-order-buttons { justify-content: space-between; }
  #menu .menu-v2-product-row-actions .menu-v2-order-buttons button { flex: 1; }
}

@media (max-width: 460px) {
  #menu .menu-v2-catalog-workspace { padding-inline: 12px; }
  #menu .menu-v2-catalog-summary,
  #menu .menu-v2-product-filters,
  #menu .menu-v2-bulk-bar,
  #menu .menu-v2-catalog-picker-tools,
  #menu .menu-v2-catalog-picker { grid-template-columns: 1fr; }
  #menu .menu-v2-category-row { grid-template-columns: 1fr; }
  #menu .menu-v2-category-copy,
  #menu .menu-v2-category-row > * { grid-column: 1; }
  #menu .menu-v2-category-row .menu-v2-order-buttons { justify-content: space-between; }
  #menu .menu-v2-product-row { grid-template-columns: 28px 50px minmax(0, 1fr); }
  #menu .menu-v2-product-image { width: 50px; height: 50px; }
  #menu .menu-v2-product-main { grid-column: 2 / -1; }
  #menu .menu-v2-product-controls { grid-template-columns: 1fr; }
  #menu .menu-v2-product-controls > label { grid-column: 1 !important; }
  #menu .menu-v2-inline-modal .panel > div { flex-direction: column-reverse; }
  #menu .menu-v2-inline-modal .btn { width: 100%; min-height: 44px; }
}

html[data-theme="dark"] #stock .stock-filter-menu summary,
html[data-theme="dark"] #stock .stock-filter-menu .stock-filter-row {
  border-color: var(--stock-border) !important;
  background: rgba(44, 23, 19, .94) !important;
  color: var(--stock-text) !important;
}

html[data-theme="dark"] #stock .stock-filter-menu summary strong {
  color: var(--stock-text) !important;
}

html[data-theme="dark"] #stock .stock-filter-menu summary span,
html[data-theme="dark"] #stock .stock-filter-menu summary::after {
  color: var(--stock-red) !important;
}

/* Dashboard rankings: keep the approved desktop layout above older responsive rules. */
#dashboard .dashboard-ranking-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

#dashboard .dashboard-ranking-title {
  display: flex !important;
  align-items: center !important;
}

#dashboard .dashboard-ranking-icon {
  flex: 0 0 54px;
}

#dashboard .dashboard-ranking-panel .top-product-item {
  display: grid !important;
}

#dashboard .dashboard-ranking-panel .dashboard-ranking-head {
  display: grid !important;
  grid-template-columns: 30px 50px minmax(96px, 1fr) minmax(64px, 110px) 74px 86px 24px !important;
  align-items: end !important;
  gap: 12px !important;
  padding: 0 10px 10px !important;
  text-align: left !important;
}

#dashboard .dashboard-ranking-watch .dashboard-ranking-head {
  grid-template-columns: 30px 50px minmax(92px, 1fr) minmax(58px, 96px) 58px minmax(86px, 104px) !important;
}

#dashboard .dashboard-ranking-panel .top-product-item {
  grid-template-columns: 30px 50px minmax(96px, 1fr) minmax(64px, 110px) 74px 86px 24px !important;
}

#dashboard .dashboard-ranking-panel .ranking-watch-row {
  grid-template-columns: 30px 50px minmax(92px, 1fr) minmax(58px, 96px) 58px minmax(86px, 104px) !important;
}

#dashboard .dashboard-ranking-panel .top-product-total,
#dashboard .dashboard-ranking-panel .top-product-value,
#dashboard .dashboard-ranking-panel .top-product-note {
  align-self: center !important;
  justify-self: start !important;
  text-align: left !important;
}

#dashboard .dashboard-ranking-panel .top-product-copy .nm,
#dashboard .dashboard-ranking-panel .top-product-copy .sub {
  display: block !important;
  max-width: 100% !important;
}

#dashboard .dashboard-ranking-panel .top-product-note {
  max-width: 100% !important;
  min-width: 0 !important;
  padding: 7px 10px !important;
  overflow: hidden !important;
  border-color: #f0bac2 !important;
  background: #fff0f2 !important;
  color: #b92f48 !important;
  font-size: 11px !important;
  line-height: 1.15 !important;
  text-align: center !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html[data-theme="dark"] #dashboard .dashboard-ranking-panel .top-product-note {
  border-color: rgba(255, 143, 169, .45) !important;
  background: rgba(255, 120, 155, .18) !important;
  color: #ffd7df !important;
}

html[data-theme="dark"] #dashboard .dashboard-ranking-panel .top-product-bar {
  background: rgba(255, 255, 255, .18) !important;
}

html[data-theme="dark"] #dashboard .dashboard-ranking-watch .top-product-bar span {
  background: linear-gradient(90deg, #d8b7ff, #f2ddff) !important;
}

@media (max-width: 980px) {
  #dashboard .dashboard-ranking-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Sidebar pinned state */
.sidebar-pin-btn {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  margin-left: auto;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--cocoa);
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  line-height: 1;
  opacity: 0;
  transform: translateX(4px);
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.sidebar:hover .sidebar-pin-btn,
.sidebar:focus-within .sidebar-pin-btn,
body.sidebar-pinned .sidebar-pin-btn {
  opacity: 1;
  transform: translateX(0);
}

.sidebar-pin-btn:hover {
  background: var(--petal);
  border-color: var(--blush);
}

body.sidebar-pinned .sidebar {
  width: 210px !important;
}

body.sidebar-pinned .sidebar .sb-label,
body.sidebar-pinned .sidebar .sb-brand .sb-label {
  max-width: 150px !important;
  opacity: 1 !important;
  transform: translateX(0) !important;
}

body.sidebar-pinned .sidebar .sb-group-label {
  opacity: 1 !important;
}

body.sidebar-pinned .sidebar:not(:hover):not(:focus-within) .nav-btn {
  color: var(--cocoa) !important;
  background: transparent;
}

body.sidebar-pinned .sidebar:not(:hover):not(:focus-within) .nav-btn.active {
  background: var(--rose) !important;
  color: #fff !important;
}

body.sidebar-pinned .sidebar:not(:hover):not(:focus-within) .nav-btn::after {
  display: none !important;
}

body.sidebar-pinned .content {
  padding-left: 234px !important;
}

body.sidebar-pinned #sidebarPinBtn {
  background: rgba(224, 127, 147, .16);
  border-color: rgba(224, 127, 147, .35);
  color: var(--rose-dark, var(--rose));
}

html[data-theme="dark"] .sidebar-pin-btn {
  background: transparent;
  border-color: transparent;
  color: var(--text);
}

html[data-theme="dark"] .sidebar-pin-btn:hover {
  background: rgba(224, 127, 147, .2);
}

html[data-theme="dark"] body.sidebar-pinned #sidebarPinBtn {
  background: rgba(255, 120, 155, .18);
  border-color: rgba(255, 143, 169, .38);
  color: #ffd7df;
}

html[data-theme="dark"] body.sidebar-pinned .sidebar:not(:hover):not(:focus-within) .nav-btn {
  color: var(--muted) !important;
}

html[data-theme="dark"] body.sidebar-pinned .sidebar:not(:hover):not(:focus-within) .nav-btn.active {
  color: #fff !important;
}

@media (max-width: 767px) {
  .sidebar-pin-btn {
    display: none !important;
  }

  body.sidebar-pinned .content {
    padding-left: 18px !important;
  }
}

/* Production layout rescue when the sidebar is pinned on desktop. */
@media (min-width: 901px) {
  #production .prod-page-head {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    margin-bottom: 18px !important;
  }

  #production .prod-page-head > div:first-child {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  #production .prod-page-head h2 {
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  #production .prod-subtitle {
    max-width: 52ch !important;
  }

  #production .prod-actions {
    display: flex !important;
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
  }

  #production .prod-date-input,
  #production .prod-actions .btn {
    width: auto !important;
    min-height: 34px !important;
    max-width: 100% !important;
    white-space: nowrap !important;
  }

  #production .prod-date-input {
    flex: 0 1 170px !important;
    min-width: 150px !important;
  }

  #production .production-search-input {
    flex: 1 1 240px !important;
    min-width: 220px !important;
    text-align: left !important;
  }

  #production .prod-actions .btn {
    flex: 0 0 auto !important;
    padding-inline: 18px !important;
  }

  #production .prod-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)) !important;
  }
}
/* Dashboard daily alerts share the same row. */
#dashboard .dashboard-alert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

#dashboard .dashboard-alert-grid .dashboard-panel {
  min-width: 0;
  overflow: hidden;
}

#dashboard .dashboard-alert-grid .dashboard-panel h2 {
  margin-top: 0;
  line-height: 1.15;
}

@media (max-width: 1100px) {
  #dashboard .dashboard-alert-grid {
    grid-template-columns: 1fr;
  }
}

/* Finance workspace */
#finance .finance-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

#finance .finance-toolbar > .finance-field {
  flex: 0 1 260px;
}

#finance .finance-custom-dates {
  display: flex;
  gap: 12px;
  flex: 1 1 360px;
}

#finance .finance-custom-dates.hidden {
  display: none;
}

#finance .finance-custom-dates .finance-field {
  flex: 1 1 160px;
}

#finance .finance-export-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

#finance .finance-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

#finance .finance-field > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

#finance .finance-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

#finance .finance-tab {
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

#finance .finance-tab:hover {
  border-color: var(--line);
  color: var(--text);
}

#finance .finance-tab.active {
  border-color: rgba(211, 65, 111, .32);
  background: rgba(211, 65, 111, .12);
  color: var(--primary);
}

#finance .finance-tab-panel {
  display: none;
}

#finance .finance-tab-panel.active {
  display: block;
}

#finance .finance-metrics {
  margin-bottom: 16px;
}

#finance .finance-metrics .metric small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

#finance .finance-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 16px;
}

#finance .finance-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

#finance .finance-form-grid .span-2 {
  grid-column: span 2;
}

#finance .panel-help {
  margin: 4px 0 14px;
  color: var(--muted);
  font-size: 13px;
}

#finance .finance-cash-summary,
#finance .finance-report-summary {
  margin: 14px 0;
}

html[data-theme="dark"] #finance .finance-tab.active {
  border-color: rgba(255, 116, 157, .55);
  background: rgba(255, 116, 157, .2);
  color: #ff91b2;
}

@media (max-width: 1000px) {
  #finance .finance-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #finance .finance-overview-grid {
    grid-template-columns: 1fr;
  }

  #finance .finance-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  #finance .finance-toolbar,
  #finance .finance-custom-dates,
  #finance .finance-export-actions {
    align-items: stretch;
    flex-direction: column;
  }

  #finance .finance-toolbar > .finance-field,
  #finance .finance-custom-dates,
  #finance .finance-custom-dates .finance-field,
  #finance .finance-export-actions {
    width: 100%;
    flex-basis: auto;
  }

  #finance .finance-export-actions {
    margin-left: 0;
  }

  #finance .finance-tabs,
  #finance .finance-form-grid {
    grid-template-columns: 1fr;
  }

  #finance .finance-form-grid .span-2 {
    grid-column: auto;
  }

  #finance .finance-tab {
    text-align: left;
  }
}

#finance .finance-report-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

#finance .finance-report-heading .finance-field {
  width: min(100%, 360px);
}

#finance .finance-product-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

#finance .finance-product-metrics > div {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

#finance .finance-product-metrics span,
#finance .finance-product-metrics small {
  color: var(--muted);
  font-size: 12px;
}

#finance .finance-product-metrics strong {
  color: var(--text);
  font-size: 22px;
}

#finance .finance-product-chart {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

#finance .finance-line-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 260px;
}

#finance .finance-line-svg .finance-series-line {
  fill: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

#finance .finance-chart-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

#finance .finance-chart-title > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

#finance .finance-chart-title span {
  color: var(--muted);
  font-size: 12px;
}

#finance .finance-chart-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--soft);
}

#finance .finance-chart-switch button {
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

#finance .finance-chart-switch button.active {
  border-color: var(--line);
  background: var(--card);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(62, 39, 31, .08);
}

#finance.finance-loading .finance-tab-panel.active {
  opacity: .62;
  pointer-events: none;
}

#finance.finance-loading .finance-toolbar::after {
  content: 'Atualizando relatório...';
  width: 100%;
  color: var(--muted);
  font-size: 12px;
}

#finance .finance-chart-bars {
  display: grid;
  gap: 12px;
}

#finance .finance-chart-row {
  display: grid;
  grid-template-columns: 92px minmax(80px, 1fr) 72px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

#finance .finance-chart-track,
#finance .finance-product-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}

#finance .finance-chart-track i,
#finance .finance-product-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

#finance .finance-chart-row.best .finance-chart-track i {
  background: #20a66a;
}

#finance .finance-product-sales-list {
  display: grid;
  gap: 8px;
}

#finance .finance-product-row {
  display: grid;
  grid-template-columns: 34px 46px minmax(130px, 1.4fr) minmax(100px, 1fr) 90px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

#finance .finance-product-row:hover {
  border-color: var(--primary);
}

#finance .finance-product-row img,
#finance .finance-product-placeholder {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

#finance .finance-product-placeholder {
  display: grid;
  place-items: center;
  background: var(--soft);
}

#finance .finance-product-rank {
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

#finance .finance-product-name {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

#finance .finance-product-name strong,
#finance .finance-product-name small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#finance .finance-product-name small {
  color: var(--muted);
}

#finance .finance-product-quantity {
  text-align: right;
}

@media (max-width: 900px) {
  #finance .finance-product-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #finance .finance-report-heading {
    align-items: stretch;
    flex-direction: column;
  }

  #finance .finance-report-heading .finance-field {
    width: 100%;
  }
}

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

  #finance .finance-product-row {
    grid-template-columns: 28px 42px minmax(0, 1fr) 76px;
  }

  #finance .finance-product-row img,
  #finance .finance-product-placeholder {
    width: 42px;
    height: 42px;
  }

  #finance .finance-product-bar {
    display: none;
  }

  #finance .finance-chart-row {
    grid-template-columns: 76px minmax(60px, 1fr) 66px;
    gap: 8px;
  }

  #finance .finance-chart-title {
    align-items: stretch;
    flex-direction: column;
  }

  #finance .finance-chart-switch {
    width: 100%;
  }

  #finance .finance-chart-switch button {
    flex: 1;
  }
}

/* Simplified product organization for the digital menu. */
#menu .menu-v2-products-panel { padding: 22px; }
#menu .menu-v2-product-row { grid-template-columns: 30px 82px minmax(0,1fr); align-items:start; gap:14px; padding:16px; border-radius:8px; background:var(--surface); }
#menu .menu-v2-product-image { width:82px; height:82px; aspect-ratio:1; border-radius:8px; }
#menu .menu-v2-product-image img { width:100%; height:100%; object-fit:cover; }
#menu .menu-v2-product-main strong { color:var(--cocoa); font-size:15px; }
#menu .menu-v2-product-main > div > span { margin-top:5px; font-size:11px; }
#menu .menu-v2-product-controls { grid-column:3; grid-template-columns:minmax(135px,1.1fr) minmax(105px,.75fr) minmax(120px,.9fr) minmax(120px,.9fr) auto auto; gap:10px; }
#menu .menu-v2-product-controls > label > span { font-size:9px; }
#menu .menu-v2-product-controls select,#menu .menu-v2-product-controls input { min-height:40px; color:var(--cocoa); font-size:11px; }
#menu .menu-v2-promo-field input { color:#16734f; font-weight:750; }
#menu .menu-v2-product-row-actions { grid-column:3; align-items:center; }
#menu .menu-v2-order-buttons > span { width:auto; margin-right:4px; font-size:10px; }
#menu .menu-v2-section-title h3,#menu .menu-v2-bulk-bar strong,#menu .menu-v2-add-products summary { color:var(--cocoa); }
#menu .menu-v2-advanced-actions { border:1px solid var(--bd); border-radius:8px; background:var(--surface2); }
#menu .menu-v2-advanced-actions > summary { padding:12px 14px; color:var(--cocoa); font-size:11px; font-weight:750; cursor:pointer; }
#menu .menu-v2-advanced-actions[open] > summary { border-bottom:1px solid var(--bd); }
#menu .menu-v2-advanced-order { display:flex; gap:8px; padding:12px 12px 0; }
#menu .menu-v2-advanced-actions .menu-v2-bulk-bar { border:0; background:transparent; }
@media(max-width:900px){#menu .menu-v2-product-controls{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));}#menu .menu-v2-product-row-actions{grid-column:1/-1;}}
@media(max-width:560px){#menu .menu-v2-products-panel{padding:14px 10px;}#menu .menu-v2-product-row{grid-template-columns:28px 64px minmax(0,1fr);padding:12px 8px;}#menu .menu-v2-product-image{width:64px;height:64px;}#menu .menu-v2-product-controls{grid-template-columns:1fr;}#menu .menu-v2-product-controls>label{grid-column:1!important;}}

/* Dashboard V2 */
.app-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reminder-bell-button {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--bd);
  border-radius: 12px;
  background: var(--white);
  color: var(--cocoa);
  box-shadow: 0 7px 18px rgba(76, 49, 38, .07);
  cursor: pointer;
}

.reminder-bell-button:hover { border-color: var(--rose); color: var(--rose); }
.reminder-bell-button:focus-visible { outline: 3px solid rgba(224, 127, 147, .3); outline-offset: 2px; }
.reminder-bell-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.reminder-bell-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border: 2px solid var(--white);
  border-radius: 999px;
  background: #df3e68;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  line-height: 15px;
  text-align: center;
}

.reminder-panel-backdrop { position: fixed; inset: 0; z-index: 790; border: 0; background: rgba(47, 29, 24, .14); backdrop-filter: blur(1px); }
.reminder-notification-panel {
  position: fixed;
  top: 78px;
  right: 28px;
  z-index: 800;
  display: flex;
  width: min(430px, calc(100vw - 36px));
  max-height: calc(100vh - 98px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #eaded2;
  border-radius: 22px;
  background: #fffdfb;
  box-shadow: 0 24px 70px rgba(58, 34, 25, .22);
}

.reminder-notification-panel[hidden], .reminder-panel-backdrop[hidden] { display: none !important; }
.reminder-panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 20px 17px; border-bottom: 1px solid #eee2d7; background: linear-gradient(135deg, #fff8f1, #fff1f6); }
.reminder-panel-header p { margin: 0 0 3px; color: #d34c7b; font-size: 9px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.reminder-panel-header h2 { margin: 0; color: #2c1711; font-family: Georgia, 'Times New Roman', serif; font-size: 21px; }
.reminder-panel-close { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 1px solid #eaded2; border-radius: 999px; background: #fff; color: #715f56; font-size: 22px; cursor: pointer; }
.reminder-panel-close:focus-visible, .reminder-panel-all:focus-visible, .reminder-panel-item button:focus-visible { outline: 3px solid rgba(224, 127, 147, .3); outline-offset: 2px; }
.reminder-panel-content { display: grid; gap: 17px; overflow-y: auto; padding: 18px 20px; }
.reminder-panel-group { display: grid; gap: 8px; }
.reminder-panel-group-title { display: flex; align-items: center; justify-content: space-between; }
.reminder-panel-group-title h3 { margin: 0; color: #4b3931; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.reminder-panel-group-title span { display: grid; min-width: 22px; height: 22px; place-items: center; border-radius: 999px; background: #f5eee8; color: #725f54; font-size: 10px; font-weight: 800; }
.reminder-panel-group.overdue .reminder-panel-group-title h3 { color: #c74352; }
.reminder-panel-group.today .reminder-panel-group-title h3 { color: #d87524; }
.reminder-panel-list { display: grid; gap: 8px; }
.reminder-panel-item { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 11px; border: 1px solid #eee3da; border-radius: 14px; background: #fff; }
.reminder-panel-date { display: grid; gap: 2px; min-width: 0; }
.reminder-panel-date strong { color: #d34c7b; font-size: 12px; }
.reminder-panel-date small, .reminder-panel-item > div small { overflow: hidden; color: #948178; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.reminder-panel-item > div { display: grid; min-width: 0; gap: 3px; }
.reminder-panel-item > div strong { overflow: hidden; color: #35231c; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.reminder-panel-item button { border: 0; border-radius: 9px; padding: 7px 9px; background: #e5f5ed; color: #277d55; font-size: 9px; font-weight: 800; cursor: pointer; }
.reminder-panel-empty { display: grid; place-items: center; gap: 5px; padding: 34px 10px; color: #8b786e; text-align: center; }
.reminder-panel-empty span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 999px; background: #e7f6ee; color: #348861; font-size: 20px; }
.reminder-panel-empty strong { color: #49372f; font-size: 13px; }
.reminder-panel-empty small { font-size: 10px; }
.reminder-panel-all { margin: 0 20px 20px; border: 1px solid #eaded2; border-radius: 11px; padding: 10px 14px; background: #fbf5ef; color: #4a372f; font-size: 11px; font-weight: 800; cursor: pointer; }
.reminder-panel-all:hover { border-color: #e4aabc; background: #fff4f8; color: #c73c6d; }

#dashboard.dashboard-page { gap: 18px; }
#dashboard #dashboardCapacityWarningBanner .item { padding: 14px 16px; border-radius: 14px; }
#dashboard .dashboard-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#dashboard .dashboard-kpi { min-height: 150px; overflow: hidden; padding: 19px 20px 18px; }
#dashboard .dashboard-kpi::after { display: none !important; }
#dashboard .dashboard-kpi-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 17px; }
#dashboard .dashboard-kpi .dashboard-kpi-label { display: block; max-width: calc(100% - 48px); margin: 2px 0 0; color: var(--dash-muted); font-size: 9px; font-weight: 900; letter-spacing: .1em; line-height: 1.35; text-transform: uppercase; }
#dashboard .dashboard-kpi .dashboard-kpi-icon { display: grid; width: 39px; height: 39px; flex: 0 0 39px; place-items: center; margin: 0; border-radius: 12px; background: #fde8f1; color: #d9317c; }
#dashboard .dashboard-kpi-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#dashboard .dashboard-kpi-revenue .dashboard-kpi-icon { background: #fff3d8; color: #b58120; }
#dashboard .dashboard-kpi-profit .dashboard-kpi-icon { background: #e5f5ec; color: #2d8c60; }
#dashboard .dashboard-kpi-month .dashboard-kpi-icon { background: #eee8ff; color: #7355c7; }
#dashboard .dashboard-kpi strong { margin-bottom: 8px; font-size: clamp(24px, 2.2vw, 31px); }
#dashboard .dashboard-kpi small { display: block; color: var(--dash-muted); font-size: 10px; line-height: 1.35; }
#dashboard .dashboard-kpi-orders { background: linear-gradient(145deg, #fff, #fff6fa); }

#dashboard .dashboard-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
#dashboard .dashboard-section-head h2 { margin: 2px 0 3px; font-size: 20px; }
#dashboard .dashboard-section-head p { margin: 0; color: var(--dash-muted); font-size: 11px; }
#dashboard .dashboard-section-kicker { display: block; margin: 0; color: var(--dash-pink); font-size: 9px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
#dashboard .dashboard-revenue-card { padding: 24px; }
#dashboard .dashboard-revenue-card .chart-wrap { overflow-x: auto; overscroll-behavior-inline: contain; }
#dashboard .dashboard-operations-grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: start; }
#dashboard .dashboard-orders-panel, #dashboard .dashboard-products-performance { min-width: 0; }
#dashboard .dashboard-order-item { display: grid; grid-template-columns: 75px minmax(0, 1fr) auto; gap: 12px; }
#dashboard .dashboard-order-date { display: grid; gap: 2px; margin: 0; }
#dashboard .dashboard-order-date strong { font-family: inherit; font-size: 13px; font-weight: 900; }
#dashboard .dashboard-order-date small { color: var(--dash-muted); font-size: 9px; }
#dashboard .dashboard-order-copy { min-width: 0; }

#dashboard .dashboard-product-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 12px; padding: 4px; border-radius: 12px; background: var(--dash-cream); }
#dashboard .dashboard-product-tabs button { min-height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--dash-muted); font-size: 10px; font-weight: 800; cursor: pointer; }
#dashboard .dashboard-product-tabs button.active { background: #fff; color: var(--dash-pink); box-shadow: 0 3px 12px rgba(69, 42, 31, .09); }
#dashboard .dashboard-product-tabs button:focus-visible { outline: 3px solid rgba(233, 30, 140, .18); outline-offset: 1px; }
#dashboard .dashboard-product-tab-panel[hidden] { display: none !important; }
#dashboard .dashboard-products-performance .dashboard-ranking-head { display: none !important; }
#dashboard .dashboard-products-performance .top-product-item,
#dashboard .dashboard-products-performance .ranking-watch-row { grid-template-columns: 30px 46px minmax(0, 1fr) auto !important; gap: 10px !important; min-height: 82px; padding: 12px 5px !important; }
#dashboard .dashboard-products-performance .top-product-photo { width: 46px; height: 46px; }
#dashboard .dashboard-products-performance .top-product-bar { grid-column: 3 / -1; width: 100%; }
#dashboard .dashboard-products-performance .top-product-total { grid-column: 3; justify-self: start !important; font-size: 11px; }
#dashboard .dashboard-products-performance .top-product-value,
#dashboard .dashboard-products-performance .top-product-note { grid-column: 4; justify-self: end !important; font-size: 11px; }
#dashboard .dashboard-products-performance .top-product-trend { display: none; }
#dashboard .dashboard-products-performance .top-product-copy .nm { font-size: 12px; }
#dashboard .dashboard-products-performance .top-product-copy .sub { font-size: 9px; }
#dashboard .dashboard-unpaid-panel[hidden] { display: none !important; }
#dashboard .dashboard-unpaid-icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; margin: 0; border-radius: 13px; background: #fde8f1; color: var(--dash-pink); font-size: 12px; font-weight: 900; }

.dashboard-personalization-kicker { display: block; margin-bottom: 5px; color: var(--rose); font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.dashboard-personalization-panel .settings-panel-head { margin-bottom: 15px; }
.dashboard-personalization-panel .settings-panel-head h2 { margin: 0 0 4px; }
.dashboard-personalization-panel .settings-panel-head p { margin: 0; color: var(--muted); font-size: 11px; }
.dashboard-preference-switch { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 15px; border: 1px solid var(--bd); border-radius: 14px; background: var(--surface2); cursor: pointer; }
.dashboard-preference-switch > span { display: grid; gap: 4px; }
.dashboard-preference-switch strong { color: var(--cocoa); font-size: 12px; }
.dashboard-preference-switch small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.dashboard-preference-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dashboard-preference-switch i { position: relative; width: 43px; height: 24px; border-radius: 999px; background: #d9cec7; transition: .18s ease; }
.dashboard-preference-switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 999px; background: #fff; box-shadow: 0 2px 6px rgba(57, 35, 27, .2); transition: .18s ease; }
.dashboard-preference-switch input:checked + i { background: var(--rose); }
.dashboard-preference-switch input:checked + i::after { transform: translateX(19px); }
.dashboard-preference-switch input:focus-visible + i { outline: 3px solid rgba(224, 127, 147, .28); outline-offset: 2px; }

html[data-theme="dark"] .reminder-bell-button,
html[data-theme="dark"] .reminder-notification-panel,
html[data-theme="dark"] .reminder-panel-item { border-color: rgba(255, 232, 219, .14); background: #241714; color: #f7e9e0; }
html[data-theme="dark"] .reminder-bell-badge { border-color: #241714; }
html[data-theme="dark"] .reminder-panel-header { border-color: rgba(255, 232, 219, .12); background: linear-gradient(135deg, #2b1b18, #311a23); }
html[data-theme="dark"] .reminder-panel-header h2,
html[data-theme="dark"] .reminder-panel-item > div strong,
html[data-theme="dark"] .reminder-panel-empty strong { color: #fff2e9; }
html[data-theme="dark"] .reminder-panel-close,
html[data-theme="dark"] .reminder-panel-all { border-color: rgba(255, 232, 219, .14); background: #2b1b18; color: #f7e9e0; }
html[data-theme="dark"] #dashboard .dashboard-product-tabs { background: rgba(255, 255, 255, .06); }
html[data-theme="dark"] #dashboard .dashboard-product-tabs button.active { background: #34211d; color: #ff9bbb; }
html[data-theme="dark"] .dashboard-preference-switch { border-color: rgba(255, 232, 219, .13); background: rgba(255, 255, 255, .035); }

@media (max-width: 1100px) {
  #dashboard .dashboard-operations-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .app-header .app-header-actions { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .app-header .app-header-actions .gcal-badge { flex: 1 1 auto; }
  .reminder-notification-panel { top: auto; right: 0; bottom: 0; left: 0; width: 100%; max-height: min(82vh, 680px); border-radius: 24px 24px 0 0; }
  body.reminder-panel-open { overflow: hidden; }
  #dashboard .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  #dashboard.dashboard-page { gap: 14px; }
  #dashboard .dashboard-head { gap: 10px; }
  #dashboard .dashboard-period { width: auto; min-width: 140px; }
  #dashboard .dashboard-metrics { gap: 10px; }
  #dashboard .dashboard-kpi { min-height: 132px; padding: 14px; }
  #dashboard .dashboard-kpi-head { margin-bottom: 13px; }
  #dashboard .dashboard-kpi .dashboard-kpi-icon { width: 34px; height: 34px; flex-basis: 34px; }
  #dashboard .dashboard-kpi .dashboard-kpi-label { max-width: calc(100% - 40px); font-size: 8px; }
  #dashboard .dashboard-kpi strong { font-size: clamp(20px, 6vw, 25px); }
  #dashboard .dashboard-kpi small { font-size: 9px; }
  #dashboard .dashboard-panel, #dashboard .dashboard-revenue-card { padding: 16px; }
  #dashboard .dashboard-section-head { align-items: stretch; flex-direction: column; }
  #dashboard .dashboard-section-head .btn { width: 100%; }
  #dashboard .dashboard-revenue-card .bar-chart { min-width: 540px; }
  #dashboard .dashboard-order-item { grid-template-columns: 64px minmax(0, 1fr); }
  #dashboard .dashboard-order-item .badge { grid-column: 2; justify-self: start; }
  #dashboard .dashboard-products-performance .top-product-item,
  #dashboard .dashboard-products-performance .ranking-watch-row { grid-template-columns: 28px 42px minmax(0, 1fr) !important; }
  #dashboard .dashboard-products-performance .top-product-photo { width: 42px; height: 42px; }
  #dashboard .dashboard-products-performance .top-product-bar,
  #dashboard .dashboard-products-performance .top-product-total,
  #dashboard .dashboard-products-performance .top-product-value,
  #dashboard .dashboard-products-performance .top-product-note { grid-column: 3 / -1; justify-self: start !important; }
  .reminder-panel-content { padding: 15px 14px; }
  .reminder-panel-header { padding: 18px 16px 15px; }
  .reminder-panel-all { margin: 0 14px 16px; }
  .reminder-panel-item { grid-template-columns: 58px minmax(0, 1fr); }
  .reminder-panel-item button { grid-column: 2; justify-self: start; }
  .dashboard-preference-switch { grid-template-columns: minmax(0, 1fr) auto; padding: 13px; }
}

@media (max-width: 380px) {
  #dashboard .dashboard-metrics { grid-template-columns: 1fr; }
  #dashboard .dashboard-kpi { min-height: 118px; }
  .app-header .app-header-actions .btn:not(.theme-toggle) { display: none; }
}

/* Keep the mobile navigation usable across the whole tablet breakpoint. */
@media (max-width: 900px) {
  .bottom-nav {
    display: block;
    left: 10px;
    right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    z-index: 680;
  }

  .bottom-nav-main {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 3px;
    width: 100%;
    padding: 7px;
    overflow: hidden;
    border: 1px solid var(--bd);
    border-radius: 20px;
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
  }

  .bottom-nav button {
    min-width: 0;
    width: 100%;
  }

  html[data-theme="dark"] .bottom-nav-main {
    background: rgba(30, 17, 13, .96);
  }
}

/* Financeiro V2 */
#finance {
  --finance-green: #31936f;
  --finance-green-soft: #e8f5ef;
  --finance-gold: #b78635;
  --finance-gold-soft: #fbf3df;
  --finance-lilac: #7c68b8;
  --finance-lilac-soft: #f0ebfb;
}

#finance .finance-hero {
  margin-bottom: 18px;
  border-color: rgba(220, 118, 153, .18);
  background: linear-gradient(135deg, rgba(255, 236, 242, .82), rgba(255, 249, 241, .9));
}

#finance .finance-toolbar {
  display: grid;
  grid-template-columns: minmax(170px, .55fr) minmax(380px, 1.4fr) auto;
  align-items: end;
  gap: 20px;
  margin-bottom: 14px;
  padding: 18px 20px;
}

#finance .finance-toolbar-copy {
  display: grid;
  align-self: center;
  gap: 4px;
}

#finance .finance-toolbar-copy strong {
  color: var(--cocoa);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

#finance .finance-section-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--rose);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

#finance .finance-toolbar-fields {
  display: flex;
  min-width: 0;
  align-items: end;
  gap: 12px;
}

#finance .finance-toolbar-fields > .finance-field {
  min-width: 210px;
  flex: 1 1 250px;
}

#finance .finance-custom-dates {
  min-width: 0;
  flex: 1 1 390px;
}

#finance .finance-field select,
#finance .finance-field input {
  min-height: 44px;
  border-color: var(--bd);
  border-radius: 12px;
  background: var(--surface2);
}

#finance .finance-export-actions {
  align-self: end;
  flex-wrap: nowrap;
}

#finance .finance-export-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-inline: 14px;
  white-space: nowrap;
}

#finance .finance-export-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

#finance .finance-tabs {
  display: flex;
  grid-template-columns: none;
  gap: 3px;
  margin: 0 0 18px;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid var(--bd);
  border-radius: 16px;
  background: var(--surface2);
  scrollbar-width: none;
}

#finance .finance-tabs::-webkit-scrollbar {
  display: none;
}

#finance .finance-tab {
  position: relative;
  min-width: max-content;
  min-height: 44px;
  flex: 1 0 auto;
  padding: 10px 18px;
  border: 0;
  border-radius: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .01em;
  text-align: center;
  white-space: nowrap;
}

#finance .finance-tab:hover {
  border-color: transparent;
  background: rgba(224, 127, 147, .08);
  color: var(--cocoa);
}

#finance .finance-tab.active {
  border-color: transparent;
  background: var(--surface);
  box-shadow: 0 5px 16px rgba(88, 55, 43, .08);
  color: var(--rose-dk);
}

#finance .finance-tab.active::after {
  position: absolute;
  right: 18px;
  bottom: 5px;
  left: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--rose);
  content: '';
}

#finance .finance-tab:focus-visible {
  outline: 3px solid rgba(224, 127, 147, .25);
  outline-offset: -2px;
}

#finance .finance-tab-panel[hidden] {
  display: none !important;
}

#finance .finance-overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(310px, .72fr);
  align-items: start;
  gap: 18px;
}

#finance .finance-overview-side {
  display: grid;
  min-width: 0;
  gap: 18px;
}

#finance .finance-summary-panel,
#finance .finance-overview-side > .panel {
  min-width: 0;
  padding: 22px;
}

#finance .finance-overview-heading {
  margin-bottom: 4px;
}

#finance .finance-report-heading h2 {
  margin: 0;
  color: var(--cocoa);
  font-size: 20px;
  line-height: 1.2;
}

#finance .finance-report-heading .panel-help {
  max-width: 620px;
  margin: 5px 0 0;
  font-size: 11px;
  line-height: 1.5;
}

#finance .finance-period-summary {
  display: grid;
  gap: 0;
}

#finance .finance-summary-group {
  padding: 20px 0;
  border-top: 1px solid var(--bd);
}

#finance .finance-summary-group:first-child {
  border-top: 0;
}

#finance .finance-summary-group > header {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
}

#finance .finance-summary-group h3,
#finance .finance-summary-group p {
  margin: 0;
}

#finance .finance-summary-group h3 {
  color: var(--cocoa);
  font-size: 13px;
}

#finance .finance-summary-group p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

#finance .finance-summary-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: #fce9f1;
  color: var(--rose-dk);
}

#finance .finance-summary-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

#finance .finance-summary-result .finance-summary-icon {
  background: var(--finance-green-soft);
  color: var(--finance-green);
}

#finance .finance-summary-operation .finance-summary-icon {
  background: var(--finance-lilac-soft);
  color: var(--finance-lilac);
}

#finance .finance-summary-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}

#finance .finance-summary-row {
  display: flex;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 2px;
  border-bottom: 1px solid rgba(171, 139, 123, .16);
}

#finance .finance-summary-row span {
  min-width: 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.35;
}

#finance .finance-summary-row strong {
  flex: 0 0 auto;
  color: var(--cocoa);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

#finance .finance-summary-row.finance-summary-primary {
  color: var(--rose-dk);
}

#finance .finance-summary-row.finance-summary-primary span,
#finance .finance-summary-row.finance-summary-primary strong {
  color: inherit;
  font-weight: 850;
}

#finance .finance-summary-revenue .finance-summary-primary,
#finance .finance-summary-operation .finance-summary-primary {
  grid-column: 1 / -1;
}

#finance .finance-payment-panel {
  margin-top: 0;
}

#finance .finance-payment-breakdown {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 13px;
}

#finance .finance-payment-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 14px;
  padding: 13px 0;
  border: 0;
  border-top: 1px solid var(--bd);
  border-radius: 0;
  background: transparent;
}

#finance .finance-payment-item:first-child {
  border-top: 0;
}

#finance .finance-payment-copy {
  display: contents;
}

#finance .finance-payment-copy > span {
  align-self: end;
  color: var(--cocoa);
  font-size: 11px;
  font-weight: 750;
}

#finance .finance-payment-copy > strong {
  color: var(--cocoa);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

#finance .finance-payment-progress {
  grid-column: 1 / -1;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface2);
}

#finance .finance-payment-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rose), #eda6bd);
}

#finance .finance-payment-item > small {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

#finance .finance-payment-empty,
#finance .finance-receivable-empty {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px dashed var(--bd);
  border-radius: 13px;
  background: var(--surface2);
  text-align: center;
}

#finance .finance-payment-empty strong,
#finance .finance-receivable-empty strong {
  color: var(--cocoa);
  font-size: 11px;
}

#finance .finance-payment-empty span,
#finance .finance-receivable-empty span {
  color: var(--muted);
  font-size: 9.5px;
}

#finance .finance-receivables-list {
  display: grid;
  gap: 9px;
  max-height: 400px;
  margin-top: 13px;
  overflow-y: auto;
}

#finance .finance-receivable-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border: 1px solid var(--bd);
  border-radius: 14px;
  background: var(--surface2);
}

#finance .finance-receivable-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--finance-gold-soft);
  color: var(--finance-gold);
  font-size: 10px;
  font-weight: 900;
}

#finance .finance-receivable-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

#finance .finance-receivable-copy > strong {
  overflow: hidden;
  color: var(--cocoa);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#finance .finance-receivable-copy > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#finance .finance-receivable-copy > small {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

#finance .finance-receivable-copy > small span {
  color: var(--muted);
  font-size: 8.5px;
}

#finance .finance-receivable-copy > small span + span::before {
  margin-right: 5px;
  color: var(--bd);
  content: '•';
}

#finance .finance-receivable-value {
  display: grid;
  gap: 2px;
  text-align: right;
}

#finance .finance-receivable-value small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#finance .finance-receivable-value strong {
  color: #c55066;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

#finance .finance-receivable-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 5px;
}

#finance .finance-receivable-actions .client-wa,
#finance .finance-receivable-actions .icon-btn {
  min-height: 27px;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 8.5px;
  font-weight: 800;
}

html[data-theme="dark"] #finance .finance-hero {
  border-color: rgba(255, 153, 187, .16);
  background: linear-gradient(135deg, rgba(73, 34, 44, .72), rgba(46, 27, 21, .88));
}

html[data-theme="dark"] #finance .finance-tab.active {
  border-color: transparent;
  background: #35231f;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .18);
  color: #ff9bbb;
}

html[data-theme="dark"] #finance .finance-summary-result .finance-summary-icon {
  background: rgba(75, 174, 134, .14);
}

html[data-theme="dark"] #finance .finance-summary-operation .finance-summary-icon {
  background: rgba(149, 125, 210, .15);
}

html[data-theme="dark"] #finance .finance-receivable-mark {
  background: rgba(202, 159, 73, .14);
}

@media (max-width: 1120px) {
  #finance .finance-toolbar {
    grid-template-columns: minmax(150px, .45fr) minmax(320px, 1fr);
  }

  #finance .finance-export-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  #finance .finance-overview-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  #finance .finance-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 14px;
  }

  #finance .finance-toolbar-fields {
    align-items: stretch;
    flex-direction: column;
  }

  #finance .finance-toolbar-fields > .finance-field,
  #finance .finance-custom-dates {
    width: 100%;
    min-width: 0;
    flex-basis: auto;
  }

  #finance .finance-export-actions {
    grid-column: auto;
    justify-content: stretch;
  }

  #finance .finance-export-button {
    flex: 1 1 0;
  }

  #finance .finance-tab {
    min-width: 132px;
    flex: 0 0 auto;
  }

  #finance .finance-overview-side {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  #finance .finance-hero {
    margin-bottom: 14px;
  }

  #finance .finance-toolbar,
  #finance .finance-summary-panel,
  #finance .finance-overview-side > .panel {
    padding: 16px;
  }

  #finance .finance-custom-dates,
  #finance .finance-export-actions {
    flex-direction: column;
  }

  #finance .finance-summary-rows {
    grid-template-columns: 1fr;
  }

  #finance .finance-summary-revenue .finance-summary-primary,
  #finance .finance-summary-operation .finance-summary-primary {
    grid-column: auto;
  }

  #finance .finance-receivable-item {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  #finance .finance-receivable-mark {
    width: 34px;
    height: 34px;
  }

  #finance .finance-receivable-value {
    grid-column: 2;
    text-align: left;
  }

  #finance .finance-receivable-actions {
    justify-content: flex-start;
  }
}
#menu .menu-v2-demo-banner-carousel { position:absolute; overflow:hidden; inset:0; }
#menu .menu-v2-demo-banner-carousel img { position:absolute; width:100%; height:100%; inset:0; object-fit:cover; }
#menu .menu-v2-demo-banner-carousel.count-2 img,#menu .menu-v2-demo-banner-carousel.count-3 img { opacity:0; animation:menuV2PreviewBanner 12s infinite ease-in-out; animation-delay:calc(var(--menu-banner-index) * 4s); }
#menu .menu-v2-demo-banner-carousel.count-2 img { animation-name:menuV2PreviewBannerTwo; animation-duration:8s; }
#menu .menu-v2-demo-banner-dots { position:absolute; z-index:3; right:12px; bottom:10px; display:flex; gap:5px; padding:5px 7px; border-radius:999px; background:rgba(0,0,0,.3); }
#menu .menu-v2-demo-banner-dots span { width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,.55); }
@keyframes menuV2PreviewBanner { 0%,33%{opacity:1}38%,95%{opacity:0}100%{opacity:1} }
@keyframes menuV2PreviewBannerTwo { 0%,48%{opacity:1}55%,95%{opacity:0}100%{opacity:1} }
