/* ENFAB: papel pêssego do rótulo, verde babosa, bronze do logotipo e o duplo anel do adesivo. */
:root {
  --aloe: #5f7a16;
  --aloe-light: #b8cc35;
  --bronze: #7a4a1c;
  --paper: #fff6ec;
  --ink: #33291c;
  --ink-2: #6b5c49;
  --ink-3: #8d7d68;
  --card: #fffdf9;
  --line: #eaddca;
  --line-2: #dcc9ae;
  --peach: #fed8b4;
  --stone: #efe7da;
  --water: #2f7f7b;
  --ok: #3c7a2c;
  --warn: #a76a06;
  --danger: #a93a22;
  --font-display: 'Sorts Mill Goudy', 'Palatino Linotype', Palatino, Georgia, serif;
  --font-body: 'Hanken Grotesk', 'Segoe UI', system-ui, sans-serif;
  --radius: 16px;
  --shadow: 0 1px 0 rgba(122, 74, 28, .05), 0 10px 26px -18px rgba(90, 58, 20, .35);
  --bronze-text: linear-gradient(95deg, #6b3f14 0%, #a86f3b 48%, #6b3f14 100%);
  --nav-h: 66px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font: 400 16px/1.5 var(--font-body);
  background: linear-gradient(180deg, #fffaf3 0, var(--paper) 45%, #fde9d4 100%) fixed;
  min-height: 100dvh;
}
body.no-scroll { overflow: hidden; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; margin: 0; line-height: 1.15; letter-spacing: .002em; }
p { margin: 0; }
a { color: var(--aloe); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.ico { width: 22px; height: 22px; flex: none; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.num { font-variant-numeric: lining-nums tabular-nums; }
.boot { display: grid; place-items: center; min-height: 100dvh; color: var(--ink-2); }
.stack { display: grid; gap: 14px; align-content: start; }
.stack-lg { display: grid; gap: 26px; align-content: start; }
input, select, textarea { min-width: 0; }
.mobile-top .ico { stroke-width: 3; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.row-end { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }

/* ---- título em bronze, como no rótulo ---- */
.bronze {
  background: var(--bronze-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-title { font-size: clamp(1.9rem, 4.6vw, 2.6rem); }
.page-sub { color: var(--ink-2); margin-top: 4px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.section-title { font-size: 1.35rem; color: var(--bronze); margin-bottom: 12px; }

/* ---- estrutura ---- */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100dvh; }
.side {
  position: sticky; top: 0; height: 100dvh; padding: 22px 14px 14px; display: flex; flex-direction: column; gap: 14px;
  border-right: 1px solid var(--line); background: rgba(255, 253, 249, .72); overflow: hidden;
}
.side::after {
  content: ''; position: absolute; left: -70px; bottom: -80px; width: 340px; height: 400px; pointer-events: none;
  background: url('/img/folhas.png') no-repeat center / contain; opacity: .22; transform: scaleY(-1);
}
.side-brand { display: flex; flex-direction: column; align-items: center; text-decoration: none; gap: 2px; padding-bottom: 6px; position: relative; z-index: 1; }
.side-brand img { height: 62px; }
.side-nav { display: grid; gap: 1px; overflow-y: auto; position: relative; z-index: 1; scrollbar-width: thin; }
.nav-link {
  display: flex; align-items: center; gap: 11px; padding: 8px 11px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .94rem;
}
.nav-link:hover { background: var(--stone); color: var(--ink); }
.nav-link.on { background: linear-gradient(90deg, rgba(184, 204, 53, .32), rgba(184, 204, 53, .1)); color: #3f5209; }
.nav-link.on .ico { color: var(--aloe); }
.side-foot { margin-top: auto; position: relative; z-index: 1; display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 8px; }
.side-user { font-size: .82rem; color: var(--ink-3); padding: 0 11px 2px; }
.main { padding: 30px clamp(16px, 3.4vw, 44px) 60px; min-width: 0; max-width: 1240px; width: 100%; }
.mobile-top { display: none; }
.bottom-nav { display: none; }

/* ---- cartões ---- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.card-title { font-family: var(--font-display); font-size: 1.15rem; color: var(--bronze); margin-bottom: 12px; }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); min-width: 0; position: relative; }
.kpi-label { font-size: .8rem; color: var(--ink-2); font-weight: 500; }
.kpi-value { font-family: var(--font-display); font-size: 1.75rem; line-height: 1.15; margin-top: 3px; font-feature-settings: 'lnum'; overflow-wrap: anywhere; }
.kpi-note { font-size: .8rem; color: var(--ink-3); margin-top: 2px; }
.kpi.hero { background: linear-gradient(135deg, #4f6a10, #6d8a1b); border: 0; color: #fff; }
.kpi.hero .kpi-label, .kpi.hero .kpi-note { color: rgba(255, 255, 255, .85); }
.kpi.champ .kpi-value { font-size: 1.3rem; line-height: 1.2; }
.kpi.alert-val .kpi-value { color: var(--danger); }

/* ---- botões ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 10px 18px;
  font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none; background: none; transition: transform .12s ease, background .15s ease; min-height: 44px; line-height: 1.2; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--aloe); color: #fff; }
.btn.primary:hover { filter: brightness(.93); }
.btn.bronze-btn { background: var(--bronze); color: #fff; }
.btn.ghost { border-color: var(--line-2); color: var(--ink); background: var(--card); }
.btn.ghost:hover { background: var(--stone); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.danger-ghost { border-color: #e4bdb2; color: var(--danger); background: var(--card); }
.btn.small { padding: 6px 13px; font-size: .86rem; min-height: 36px; }
.btn.block { width: 100%; }
.btn.large { font-size: 1.08rem; padding: 15px 24px; min-height: 56px; }
.btn[aria-busy='true'] { opacity: .6; pointer-events: none; }
.icon-btn { background: none; border: 0; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; color: var(--ink-2); display: inline-grid; place-items: center; font-size: 1rem; }
.icon-btn:hover { background: var(--stone); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, label:focus-within { outline: 2px solid var(--aloe); outline-offset: 2px; }
.field:focus-within { outline: none; }

/* Botões grandes do vendedor: selo de duplo anel, como o adesivo */
.big-actions { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.big-action {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; text-decoration: none; color: var(--ink); font-weight: 600;
  padding: 18px 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-height: 124px; transition: transform .14s ease, border-color .14s ease; cursor: pointer;
}
.big-action:hover { transform: translateY(-2px); border-color: var(--line-2); }
.big-action.main-action { background: linear-gradient(135deg, #4f6a10, #6d8a1b); color: #fff; border: 0; }
.seal { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--aloe); border: 2px solid currentColor; box-shadow: 0 0 0 3px var(--card), 0 0 0 4px var(--line-2); background: #fff; }
.main-action .seal { color: #fff; background: transparent; box-shadow: 0 0 0 3px #5d7a15, 0 0 0 4px rgba(255, 255, 255, .5); }
.seal .ico { width: 26px; height: 26px; }

/* ---- formulários ---- */
.field { display: grid; gap: 5px; min-width: 0; }
.field-label { font-size: .86rem; font-weight: 600; color: var(--ink-2); }
input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]), select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 11px; background: #fff; min-height: 46px; font-size: 16px;
}
input:focus, select:focus, textarea:focus { border-color: var(--aloe); outline: 2px solid rgba(95, 122, 22, .22); outline-offset: 0; }
textarea { resize: vertical; }
input[type=color] { width: 54px; height: 44px; padding: 2px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; cursor: pointer; }
.hint { color: var(--ink-3); font-size: .8rem; }
.form-grid { display: grid; gap: 13px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.span-all { grid-column: 1 / -1; }
.photo-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.photo-prev { width: 76px; height: 76px; border-radius: 12px; border: 1px dashed var(--line-2); overflow: hidden; display: grid; place-items: center; background: #fff; font-size: .7rem; text-align: center; }
.photo-prev img { width: 100%; height: 100%; object-fit: cover; }
.photo-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.photo-field.uploading { opacity: .55; pointer-events: none; }
.qty-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.qty-row:last-child { border-bottom: 0; }
.qty-row input { width: 92px !important; text-align: center; }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; font-size: 1.3rem; cursor: pointer; line-height: 1; color: var(--aloe); }
.stepper input { width: 66px !important; text-align: center; padding: 8px 4px !important; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: block; padding: 9px 15px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; font-size: .92rem; font-weight: 500; }
.chip input:checked + span { background: var(--aloe); color: #fff; border-color: var(--aloe); }
.chip input:focus-visible + span { outline: 2px solid var(--aloe); outline-offset: 2px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line-2); margin-bottom: 20px; scrollbar-width: none; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .94rem; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: #3f5209; border-color: var(--aloe-light); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.filters .field { flex: 1 1 150px; max-width: 240px; }

/* ---- tabelas e listas ---- */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th { text-align: left; font-weight: 600; color: var(--ink-2); font-size: .8rem; padding: 8px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
tfoot td { font-weight: 700; border-top: 2px solid var(--line-2); border-bottom: 0; }
.list { display: grid; }
.list-item { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 2px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.list-item:last-child { border-bottom: 0; }
a.list-item:hover { background: rgba(239, 231, 218, .4); }
.list-item .t { font-weight: 600; }
.list-item .s { font-size: .85rem; color: var(--ink-2); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--stone); color: var(--ink-2); white-space: nowrap; }
.badge.ok { background: #e4f0d3; color: #3c5f10; }
.badge.warn { background: #fbecc8; color: #7f5100; }
.badge.bad { background: #f8dfd7; color: #8f2f19; }
.badge.info { background: #dcefed; color: #205e5b; }
.struck { text-decoration: line-through; color: var(--ink-3); }
.money-pos { color: var(--ok); }
.money-neg { color: var(--danger); }
.empty { text-align: center; padding: 34px 16px; color: var(--ink-2); display: grid; gap: 14px; justify-items: center; }

/* ---- alertas e inteligência ---- */
.alert { display: flex; gap: 11px; padding: 11px 13px; border-radius: 12px; align-items: flex-start; text-decoration: none; color: inherit; font-size: .94rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--line-2); }
.alert.critico { border-left-color: var(--danger); }
.alert.aviso { border-left-color: #d99a22; }
.alert.info { border-left-color: var(--water); }
.alert .lvl { font-size: .72rem; font-weight: 700; flex: none; width: 54px; padding-top: 2px; }
.alert.critico .lvl { color: var(--danger); }
.alert.aviso .lvl { color: var(--warn); }
.alert.info .lvl { color: var(--water); }
.insight { padding: 12px 14px; border-radius: 12px; background: linear-gradient(95deg, rgba(184, 204, 53, .16), rgba(255, 255, 255, .55)); font-size: .96rem; }
.insight small { display: block; font-size: .72rem; font-weight: 700; color: var(--aloe); margin-bottom: 2px; }
.quote { font-family: var(--font-display); font-size: 1.28rem; line-height: 1.3; color: var(--bronze); }

/* ---- cartões de pessoa e produto ---- */
.person-name { font-size: 1.45rem; }
.stat-pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 12px 0; }
.stat-pairs small { display: block; color: var(--ink-2); font-size: .78rem; }
.stat-pairs b { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; font-feature-settings: 'lnum'; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.product-card { display: flex; gap: 14px; text-decoration: none; color: inherit; }
.thumb { width: 74px; height: 74px; border-radius: 13px; object-fit: cover; flex: none; background: linear-gradient(135deg, #f3f6d8, #fde9d4); display: grid; place-items: center; color: var(--aloe); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.greeting { font-size: clamp(2.1rem, 7vw, 2.9rem); }
.vendor-stock-line { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dotted var(--line-2); }
.vendor-stock-line:last-child { border: 0; }
.vendor-stock-line b { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; font-feature-settings: 'lnum'; }
.champion { display: flex; align-items: center; gap: 14px; background: linear-gradient(120deg, #fff, #fbf3c9); }
.champion .seal { color: var(--bronze); flex: none; }
.big-balance { font-family: var(--font-display); font-size: clamp(2.3rem, 9vw, 3.2rem); line-height: 1.05; font-feature-settings: 'lnum'; }
.ledger { display: grid; gap: 0; }
.ledger div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ledger div:last-child { border-bottom: 0; }
.ledger .total { font-weight: 700; border-top: 2px solid var(--line-2); border-bottom: 0; font-size: 1.1rem; }
.ledger span:last-child { font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.price-out { text-align: center; padding: 18px; border-radius: 14px; background: linear-gradient(135deg, #4f6a10, #6d8a1b); color: #fff; }
.price-out .val { font-family: var(--font-display); font-size: 2.6rem; font-feature-settings: 'lnum'; line-height: 1.1; }

/* ---- gráficos ---- */
.chart-cols { position: relative; display: flex; align-items: flex-end; gap: clamp(2px, 1vw, 8px); padding-top: 20px; }
.cols-max { position: absolute; top: 0; left: 0; font-size: .74rem; color: var(--ink-3); }
.col { flex: 1; min-width: 0; display: grid; gap: 5px; cursor: default; }
.col-track { height: var(--h); display: flex; align-items: flex-end; border-bottom: 1px solid var(--line-2); padding: 0 8%; }
.col:hover .col-bar { filter: brightness(1.15); }
.col-bar { width: 100%; border-radius: 4px 4px 0 0; min-height: 1px; }
.col-label { font-size: .68rem; color: var(--ink-3); text-align: center; white-space: nowrap; overflow: hidden; }
.chart-bars { display: grid; gap: 11px; }
.hbar-head { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; margin-bottom: 4px; }
.hbar-head strong { font-weight: 600; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.hbar-track { height: 9px; background: var(--stone); border-radius: 5px; overflow: hidden; display: flex; gap: 2px; }
.hbar-fill { height: 100%; border-radius: 4px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--ink-2); margin-bottom: 10px; }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.chart-line { display: grid; gap: 4px; }
.line-top { font-size: .74rem; color: var(--ink-3); }
.line-plot { position: relative; height: var(--h); }
.line-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.line-plot .grid { stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 3 3; }
.line-dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 2px #fff; }
.line-hits { position: absolute; inset: 0; display: flex; }
.line-hits div { flex: 1; }
.line-hits div:hover { background: rgba(184, 204, 53, .16); }
.line-axis { display: flex; justify-content: space-between; font-size: .72rem; color: var(--ink-3); }
#tip { position: fixed; z-index: 90; background: #33291c; color: #fff; font-size: .8rem; padding: 5px 10px; border-radius: 8px; pointer-events: none; max-width: 260px; }

/* ---- modal e aviso ---- */
.modal-back { position: fixed; inset: 0; background: rgba(51, 41, 28, .46); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 18px; }
.modal { background: var(--card); border-radius: 20px; width: 100%; max-width: 480px; max-height: calc(100dvh - 36px); overflow: auto; animation: rise .22s ease; }
.modal-wide { max-width: 720px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 8px; position: sticky; top: 0; background: var(--card); z-index: 1; }
.modal-head h2 { font-size: 1.4rem; color: var(--bronze); }
.modal-body { padding: 8px 20px 22px; }
#toast-root { position: fixed; left: 50%; transform: translateX(-50%); bottom: 22px; z-index: 80; display: grid; gap: 8px; width: min(92vw, 440px); }
.toast { padding: 12px 16px; border-radius: 12px; background: #33291c; color: #fff; font-weight: 500; animation: rise .22s ease; box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .5); }
.toast-erro { background: var(--danger); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.view-enter > * { animation: rise .32s ease both; }
.view-enter > *:nth-child(2) { animation-delay: .04s; }
.view-enter > *:nth-child(3) { animation-delay: .08s; }
.view-enter > *:nth-child(4) { animation-delay: .12s; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---- login ---- */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; position: relative; overflow: hidden; }
.login::before, .login::after { content: ''; position: absolute; width: min(46vw, 460px); height: min(70vw, 680px); background: url('/img/folhas.png') no-repeat top left / contain; pointer-events: none; opacity: .9; -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent); }
.login::before { top: 0; left: 0; }
.login::after { top: 0; right: 0; transform: scaleX(-1); }
.login-card { position: relative; z-index: 1; width: 100%; max-width: 400px; background: rgba(255, 253, 249, .93); backdrop-filter: blur(4px); border: 1px solid var(--line); border-radius: 26px; padding: 30px 26px 26px; box-shadow: 0 24px 60px -30px rgba(90, 58, 20, .5); display: grid; gap: 16px; }
.login-logo { width: 150px; margin: 0 auto; }
.login-sub { text-align: center; color: var(--ink-2); font-size: .94rem; margin-top: -10px; }
.demo-box { font-size: .82rem; color: var(--ink-2); background: var(--stone); border-radius: 12px; padding: 10px 12px; }
.demo-box code { font-weight: 700; color: var(--ink); }

/* ---- galeria e marketing ---- */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 210px), 1fr)); }
.gal-item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); text-decoration: none; color: inherit; cursor: pointer; }
.gal-item img, .gal-item video { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--stone); }
.gal-body { padding: 9px 11px 11px; display: grid; gap: 4px; font-size: .86rem; }
.gal-body .t { font-weight: 600; overflow-wrap: anywhere; }
.preview-photo { width: 100%; max-height: 340px; object-fit: contain; border-radius: 14px; background: var(--stone); }
.text-result { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; display: grid; gap: 7px; }
.text-result h4 { font-family: var(--font-body); font-size: .78rem; font-weight: 700; color: var(--aloe); }
.text-result p { white-space: pre-line; }
.text-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.art-canvas { width: 100%; max-width: 340px; border-radius: 14px; border: 1px solid var(--line); display: block; }
.step-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1.5px solid var(--bronze); border-radius: 50%; color: var(--bronze); font-size: .85rem; font-family: var(--font-display); margin-right: 8px; font-feature-settings: 'lnum'; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- comprovante ---- */
.receipt { display: grid; gap: 12px; font-size: .95rem; }
.receipt-head { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid var(--line-2); padding-bottom: 12px; }
.receipt-head img { height: 58px; }
.receipt h3 { font-size: 1.3rem; color: var(--bronze); }
.signature { margin-top: 40px; border-top: 1px solid #777; width: 70%; padding-top: 4px; font-size: .84rem; color: #555; }
.report-title { font-family: var(--font-display); font-size: 1.5rem; }
#print-root { display: none; }

/* ---- celular ---- */
@media (max-width: 860px) {
  .shell { display: block; padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); }
  .side { display: none; }
  .main { padding: 14px 16px 34px; }
  .mobile-top { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; padding-top: calc(8px + env(safe-area-inset-top)); position: sticky; top: 0; z-index: 20; background: rgba(255, 250, 243, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
  .mobile-top img { height: 40px; }
  .bottom-nav {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255, 253, 249, .97); border-top: 1px solid var(--line-2);
    height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  }
  .bottom-nav a, .bottom-nav button { background: none; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--ink-3); font-size: .68rem; font-weight: 600; padding: 4px 1px; cursor: pointer; line-height: 1.15; text-align: center; min-width: 0; }
  .bottom-nav a.on { color: #3f5209; }
  .bottom-nav a.on .ico { color: var(--aloe); }
  .bottom-nav .sell { color: #fff; }
  .bottom-nav .sell .sell-dot { width: 46px; height: 46px; border-radius: 50%; background: var(--aloe); display: grid; place-items: center; margin-top: -20px; box-shadow: 0 0 0 4px #fffdf9, 0 6px 14px -4px rgba(79, 106, 16, .7); }
  .bottom-nav .sell span { color: #3f5209; }
  .modal-back { align-items: flex-end; padding: 0; }
  .modal { border-radius: 22px 22px 0 0; max-width: none; max-height: 92dvh; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 12px; }
  .kpi-value { font-size: 1.42rem; }
  .kpi.champ .kpi-value { font-size: 1.1rem; }
  .page-head { margin-bottom: 16px; }
  .page-head .btn { flex: 1 1 auto; }
  .big-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .big-action.main-action { grid-column: 1 / -1; flex-direction: row; min-height: 84px; font-size: 1.18rem; }
  #toast-root { bottom: calc(var(--nav-h) + 14px); }
  .login::before, .login::after { opacity: .75; width: 66vw; }
  .filters .field { max-width: none; }
}

/* ---- impressão: só a folha preparada ---- */
@media print {
  body { background: #fff; }
  body > *:not(#print-root) { display: none !important; }
  #print-root { display: block; color: #222; font-size: 12px; }
  table { font-size: 11px; }
  @page { margin: 14mm; }
  .bronze { color: #6b3f14; background: none; -webkit-background-clip: initial; }
}

/* PIX para o cliente */
.pix-panel { display: grid; gap: 14px; justify-items: center; text-align: center; }
.pix-amount { font-family: var(--font-display); font-size: 2.4rem; font-feature-settings: 'lnum'; line-height: 1.1; color: var(--bronze); }
.pix-qr { width: min(100%, 280px); aspect-ratio: 1; background: #fff; border-radius: 12px; }
.pix-holder { font-weight: 700; font-size: 1.05rem; }
.pix-key { font-size: 1.1rem; font-weight: 600; overflow-wrap: anywhere; }
.pix-actions { display: grid; gap: 8px; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pix-actions .btn { width: 100%; }
.pix-actions .btn.primary { grid-column: 1 / -1; }
.pix-value { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); text-align: left; }
#sell-pix[hidden] { display: none; }

/* Print da compra */
.print-box { display: grid; gap: 8px; padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: 12px; }
.print-box .btn { justify-self: start; cursor: pointer; }
.print-bad { color: var(--danger); }
.print-items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* Acesso do vendedor */
.access-value { font-weight: 700; overflow-wrap: anywhere; text-align: right; min-width: 0; }

/* Manual */
.manual { padding-block: 6px; }
.manual-item { border-bottom: 1px solid var(--line); }
.manual-item:last-child { border-bottom: 0; }
.manual-item summary { padding: 13px 2px; font-weight: 700; cursor: pointer; }
.manual-item ol { padding-left: 22px; margin-bottom: 12px; display: grid; gap: 7px; }
.manual-note { margin-bottom: 14px; padding: 10px 12px; border-radius: 10px; background: rgba(184, 204, 53, .14); font-size: .92rem; }
.manual-cols { align-items: start; }

/* Avisos do alto da tela */
.top-notes { display: flex; gap: 6px; justify-content: center; align-items: center; }
.top-notes:empty { display: none; }
.side .top-notes { margin: 2px 0 10px; }
.note-btn { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: .9rem; text-decoration: none; cursor: pointer; }
.note-btn .ico { width: 18px; height: 18px; }
.note-btn.money { background: linear-gradient(135deg, #4f6a10, #6d8a1b); border-color: transparent; color: #fff; }
.note-sign { font-weight: 800; font-size: 1.1rem; line-height: 1; }
