/* ===== Fonte local (funciona sem internet) ===== */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../vendor/fonts/plus-jakarta-sans-latin-400.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../vendor/fonts/plus-jakarta-sans-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../vendor/fonts/plus-jakarta-sans-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../vendor/fonts/plus-jakarta-sans-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url('../vendor/fonts/plus-jakarta-sans-latin-800.woff2') format('woff2'); }
/* ===== Yieldo Negócios — paleta (claro) ===== */
:root {
  color-scheme: light;
  --ink: #0F172A;
  --muted: #64748B;
  --bg: #F4F6FB;
  --surface: #FFFFFF;
  --input: #F8FAFC;
  --border: #E2E8F0;
  --side: #0B1020;
  --side-2: #141C38;
  --brand: #4F46E5;
  --brand-2: #06B6D4;
  --brand-d: #4338CA;
  --brand-l: #EEF2FF;
  --brand-line: #C7D2FE;
  --pink: #0EA5E9;
  --lime: #34D399;
  --good: #059669;
  --good-l: #D1FAE5;
  --mid: #B45309;
  --mid-l: #FEF3C7;
  --bad: #DC2626;
  --bad-l: #FEE2E2;
  --off: #E5E7EB;
  --off-ink: #6B7280;
  --toast: #0F172A;
  --toast-ink: #FFFFFF;
  --backdrop: rgba(11, 16, 32, .55);
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-brand: rgba(79, 70, 229, .3);
}
/* ===== Modo escuro ===== */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #E2E8F0;
  --muted: #94A3B8;
  --bg: #0A0E1A;
  --surface: #121829;
  --input: #0E1424;
  --border: #232B45;
  --side: #060914;
  --side-2: #0E1428;
  --brand: #6366F1;
  --brand-2: #22D3EE;
  --brand-d: #4F46E5;
  --brand-l: #1C2244;
  --brand-line: #2E3770;
  --pink: #38BDF8;
  --good: #34D399;
  --good-l: #0B2A22;
  --mid: #FBBF24;
  --mid-l: #33260B;
  --bad: #F87171;
  --bad-l: #3A1417;
  --off: #1E2538;
  --off-ink: #94A3B8;
  --toast: #E2E8F0;
  --toast-ink: #0B1020;
  --backdrop: rgba(0, 0, 0, .65);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-brand: rgba(99, 102, 241, .35);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg); color: var(--ink);
  display: grid; grid-template-columns: 240px 1fr; min-height: 100vh;
  font-size: 14px;
}
h1, h2, h3, h4 { margin: 0; letter-spacing: -.01em; }
h1 { font-size: 26px; font-weight: 800; }
h3 { font-size: 16px; font-weight: 700; }
h4 { font-size: 13px; font-weight: 700; margin: 14px 0 8px; color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.block { display: block; }
.nowrap { white-space: nowrap; }
.pos { color: var(--good); }
.neg { color: var(--bad); }
button { font-family: inherit; cursor: pointer; }

/* ===== Sidebar ===== */
.sidebar {
  background: linear-gradient(180deg, var(--side), var(--side-2));
  color: #fff; padding: 22px 14px; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
}
.side-brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 22px; }
.logo {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--pink)); font-weight: 800; letter-spacing: -.04em;
  box-shadow: 0 6px 18px var(--shadow-brand);
}
.side-brand b { display: block; font-size: 17px; }
.side-brand span { font-size: 12px; color: #A5B0CF; }
#nav { display: flex; flex-direction: column; gap: 4px; }
#nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px;
  color: #C3CBE3; text-decoration: none; font-weight: 600; position: relative; transition: .15s;
}
#nav a svg { width: 19px; height: 19px; fill: currentColor; flex: none; }
#nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
#nav a.on { background: rgba(99, 102, 241, .28); color: #fff; box-shadow: inset 3px 0 0 var(--lime); }
#nav a em {
  margin-left: auto; font-style: normal; background: var(--pink); color: #fff; font-size: 11px;
  min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 6px;
}
.side-foot { margin-top: auto; font-size: 12px; color: #7E89AB; padding: 8px; }

/* ===== Page ===== */
#page { padding: 28px 32px 60px; max-width: 1400px; width: 100%; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; }
.head-actions { display: flex; gap: 8px; align-items: center; }
.head-actions.wrap { flex-wrap: wrap; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px; margin-bottom: 18px; min-width: 0;
}
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 8px; }
.card.info { background: var(--brand-l); border-color: var(--brand-line); line-height: 1.9; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 18px; }
.grid-2 > .card, .grid-3 > .card { margin-bottom: 0; }
.grid-2, .grid-3 { margin-bottom: 18px; }

/* ===== Botões / inputs ===== */
.btn {
  border: 1px solid var(--border); background: var(--surface); color: var(--ink);
  padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: 13.5px; transition: .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 16px var(--shadow-brand); }
.btn.primary:hover { background: var(--brand-d); color: #fff; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, var(--surface)); }
.btn.sm { padding: 6px 10px; font-size: 12px; border-radius: 9px; }
.btn.block { width: 100%; margin-top: 10px; padding: 14px; font-size: 15px; }
.link { background: none; border: 0; color: var(--brand); font-weight: 700; text-decoration: none; padding: 0; font-size: inherit; }
.link:hover { text-decoration: underline; }
.x {
  border: 0; background: var(--bad-l); color: var(--bad); width: 26px; height: 26px; border-radius: 8px;
  font-size: 17px; line-height: 1; flex: none;
}
.inp {
  width: 100%; border: 1px solid var(--border); background: var(--input); border-radius: 10px;
  padding: 9px 11px; font: inherit; color: var(--ink); outline: none; transition: .15s;
}
.inp:focus { border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
.inp.price { width: 96px; text-align: right; font-weight: 700; }
label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
label .inp { margin-top: 5px; }
label.check { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 13px; }
label.check input { width: 17px; height: 17px; accent-color: var(--brand); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

.seg, .tabs, .canal-toggle { display: flex; gap: 6px; flex-wrap: wrap; }
.seg { background: var(--surface); border: 1px solid var(--border); padding: 4px; border-radius: 12px; }
.seg button, .tabs button {
  border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; font-weight: 700; color: var(--muted);
}
.seg button.on { background: var(--brand); color: #fff; }
.tabs { margin-bottom: 16px; }
.tabs button { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; }
.tabs button.on { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.canal-toggle button {
  border: 2px solid var(--border); background: var(--surface); padding: 10px 20px; border-radius: 12px; font-weight: 800; font-size: 15px; color: var(--muted);
}
.canal-toggle button.on { border-color: var(--c); background: var(--c); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--c) 35%, transparent); }

.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: color-mix(in srgb, var(--c) 16%, var(--surface)); color: color-mix(in srgb, var(--c) 75%, var(--ink)); }
.tag { font-style: normal; background: var(--lime); color: #1A2E05; font-size: 10px; font-weight: 800; padding: 3px 7px; border-radius: 6px; letter-spacing: .04em; }
.tag.sm { font-size: 9px; padding: 2px 5px; vertical-align: middle; }
.tag.off { background: var(--off); color: var(--off-ink); }
.tag.warn { background: var(--mid-l); color: var(--mid); }
.badge { background: var(--brand-l); color: var(--brand-d); padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.mchip { display: inline-flex; gap: 6px; align-items: baseline; padding: 3px 9px; border-radius: 8px; font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.mchip small { font-weight: 600; opacity: .8; }
.mchip.good { background: var(--good-l); color: var(--good); }
.mchip.mid { background: var(--mid-l); color: var(--mid); }
.mchip.bad { background: var(--bad-l); color: var(--bad); }
.empty { text-align: center; color: var(--muted); padding: 26px 10px; }

/* ===== KPIs ===== */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.kpi::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--border); }
.kpi.brand::before { background: var(--brand); }
.kpi.good::before { background: var(--good); }
.kpi.warn::before { background: var(--mid); }
.kpi.pink::before { background: var(--pink); }
.kpi span { font-size: 12px; font-weight: 600; color: var(--muted); }
.kpi b { display: block; font-size: 24px; font-weight: 800; margin: 6px 0 2px; letter-spacing: -.02em; }
.kpi small { color: var(--muted); font-size: 12px; }
.kpi.brand { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border: 0; }
.kpi.brand span, .kpi.brand small { color: #E9DEFF; }

.chart-box { position: relative; height: 270px; }
.chart-box.sm { height: 180px; }
.canal-list div { display: grid; grid-template-columns: 12px 1fr auto auto auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--border); font-size: 13px; }
.canal-list i { width: 10px; height: 10px; border-radius: 3px; }
.meter { margin-bottom: 16px; }
.meter-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; gap: 8px; }
.bar { height: 10px; background: var(--brand-l); border-radius: 99px; overflow: hidden; margin-bottom: 6px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--pink)); border-radius: 99px; }
.result { display: flex; justify-content: space-between; padding: 12px 14px; background: var(--bg); border-radius: 12px; font-size: 13px; margin-top: 10px; gap: 8px; }
.result.pos b { color: var(--good); }
.result.neg b { color: var(--bad); }
.alert-list { list-style: none; margin: 0; padding: 0; }
.alert-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }

/* ===== PDV ===== */
.pdv { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; }
.pdv-cat { min-width: 0; }
.linha { margin: 6px 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.pcard {
  border: 1px solid var(--border); background: var(--surface); border-radius: 14px; padding: 0; overflow: hidden;
  text-align: left; position: relative; transition: .15s; box-shadow: var(--shadow);
}
.pcard:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: 0 10px 26px var(--shadow-brand); }
.pcard img, .pcard .ph { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; display: block; }
.pcard .tag { position: absolute; top: 8px; left: 8px; }
.pc-b { padding: 10px 12px 12px; }
.pc-b b { display: block; font-size: 13.5px; line-height: 1.25; }
.pc-b small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.pc-b span { display: block; margin-top: 6px; font-weight: 800; color: var(--brand); }
.ph { display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, var(--brand-2), var(--brand) 55%, var(--side) 100%); color: #fff; }
.ph span { font-weight: 800; font-size: 28px; opacity: .9; letter-spacing: -.04em; }
.ph.big span { font-size: 44px; }

.cart { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow: auto; }
.cart-items { margin: 6px 0 14px; border-top: 1px solid var(--border); }
.ci { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.ci b { display: block; font-size: 13.5px; }
.ci small { color: var(--muted); font-size: 12px; }
.ci-r { display: flex; align-items: flex-start; gap: 8px; font-weight: 700; white-space: nowrap; }
.resumo { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; margin: 6px 0; font-size: 13px; }
.resumo dt { color: var(--muted); }
.resumo dd { margin: 0; text-align: right; font-weight: 600; }
.resumo .big { font-size: 16px; font-weight: 800; color: var(--ink); padding-top: 8px; border-top: 1px solid var(--border); }
.resumo .lucro { color: var(--good); font-weight: 800; font-size: 15px; }

/* configurador */
.cfg-head { display: flex; gap: 16px; align-items: center; margin-bottom: 4px; padding-right: 30px; }
.cfg-head img, .cfg-head .ph { width: 96px; height: 96px; border-radius: 14px; object-fit: cover; flex: none; }
.cfg-head p { margin: 4px 0 0; font-size: 13px; }
.cfg-sec { margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--border); background: var(--surface); border-radius: 999px; padding: 8px 14px;
  font-weight: 600; font-size: 13px; color: var(--ink);
}
.chip b { color: var(--brand); margin-left: 4px; }
.chip.on { border-color: var(--brand); background: var(--brand); color: #fff; }
.chip.on b { color: #fff; }
.fixed { padding: 9px 14px; background: var(--bg); border-radius: 10px; font-weight: 600; }
.add-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.add-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 10px; padding: 6px 8px 6px 12px; font-size: 13px; }
.add-row.on { border-color: var(--brand); background: var(--brand-l); }
.add-row .price { color: var(--muted); font-size: 12px; font-weight: 600; }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); font-weight: 800; font-size: 15px; color: var(--brand); }
.stepper b { min-width: 16px; text-align: center; }
.stepper.big button { width: 40px; height: 40px; font-size: 20px; border-radius: 12px; }
.stepper.big b { font-size: 18px; min-width: 24px; }
.cfg-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--border); position: sticky; bottom: -22px; background: var(--surface); padding-bottom: 6px;
}
.cfg-total { text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.cfg-total small { color: var(--good); font-weight: 600; font-size: 12px; }

/* ===== Tabelas ===== */
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl .r { text-align: right; }
.tbl tr.first td { border-top: 2px solid var(--border); }
.tbl tr.inativo td:not(.acts) { opacity: .45; }
.tbl tr.tot td { font-weight: 800; background: var(--bg); }
.tbl td.itens div { margin: 2px 0; }
.price-tbl td:first-child { min-width: 190px; }
.analise { display: flex; flex-wrap: wrap; gap: 14px; margin: 14px 0 4px; }
.analise div { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 600; }

/* ===== Vendas ===== */
.canal-card { border-top: 4px solid var(--c); }
.canal-card .mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.canal-card .mini span { font-size: 12px; color: var(--muted); }
.canal-card .mini b { display: block; font-size: 16px; color: var(--ink); margin-top: 2px; }

/* ===== Combos ===== */
.combo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.combo { padding: 0; overflow: hidden; display: flex; flex-direction: column; margin: 0; }
.combo.inativo .combo-img { opacity: .5; filter: grayscale(.6); }
.combo-img { position: relative; }
.combo-img img, .combo-img .ph { width: 100%; height: 200px; object-fit: cover; display: grid; }
.combo-img .tag { position: absolute; top: 12px; left: 12px; }
.combo-b { padding: 16px 18px; }
.combo-b p { margin: 4px 0 10px; font-size: 13px; }
.slots { list-style: none; padding: 0; margin: 0 0 12px; font-size: 12.5px; }
.slots li { padding: 5px 0; border-bottom: 1px dashed var(--border); }
.slots small { color: var(--muted); }
.combo-nums { display: grid; grid-template-columns: auto 1fr 1fr; gap: 12px; align-items: end; }
.combo-nums label { margin: 0; }
.combo-nums div span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.combo-nums div b { display: block; font-size: 16px; }
.combo-nums div small { font-size: 11.5px; font-weight: 600; }

/* editores */
.rec-row, .slot-row, .fixo-row { display: grid; gap: 8px; margin-bottom: 8px; align-items: start; }
.rec-row { grid-template-columns: 1fr 110px; }
.slot-row { grid-template-columns: 1fr 110px 1.3fr 26px; padding: 8px; background: var(--bg); border-radius: 10px; }
.fixo-row { grid-template-columns: 1fr 110px 26px; align-items: center; }
.canal-cfg { display: grid; grid-template-columns: 90px 1fr 1fr auto; gap: 10px; align-items: end; padding: 10px 0 10px 12px; border-left: 4px solid var(--c); margin-bottom: 10px; }
.canal-cfg label { margin: 0; }
.canal-cfg b { align-self: center; }
.movs { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.movs li { padding: 7px 0; border-bottom: 1px dashed var(--border); }

/* ===== Modal ===== */
.modal { position: fixed; inset: 0; background: var(--backdrop); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal.open { display: flex; }
.modal-card { background: var(--surface); border-radius: 20px; width: min(620px, 100%); max-height: 92vh; position: relative; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); display: flex; }
.modal-card.wide { width: min(820px, 100%); }
.modal-body { padding: 22px; overflow: auto; width: 100%; }
.modal-body > h3 { margin-bottom: 14px; padding-right: 30px; }
.modal-x { position: absolute; top: 12px; right: 12px; border: 0; background: var(--bg); width: 34px; height: 34px; border-radius: 10px; font-size: 20px; z-index: 2; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

/* ===== Toast ===== */
#toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { background: var(--toast); color: var(--toast-ink); padding: 12px 16px; border-radius: 12px; font-weight: 600; box-shadow: var(--shadow); transform: translateY(10px); opacity: 0; transition: .25s; border-left: 4px solid var(--lime); max-width: 340px; }
.toast.warn { border-left-color: #F59E0B; }
.toast.show { transform: none; opacity: 1; }

/* ===== Responsivo ===== */
@media (max-width: 1150px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-3 > .card:first-child { grid-column: 1 / -1; }
  .pdv { grid-template-columns: 1fr 320px; }
}
@media (max-width: 860px) {
  body { grid-template-columns: 1fr; }
  .sidebar { position: fixed; bottom: 0; top: auto; left: 0; right: 0; height: auto; padding: 6px; z-index: 40; flex-direction: row; }
  .side-brand, .side-foot { display: none; }
  #nav { flex-direction: row; width: 100%; overflow-x: auto; scrollbar-width: none; }
  #nav a { flex-direction: column; gap: 3px; padding: 7px 8px; font-size: 10px; flex: 1 0 auto; min-width: 64px; text-align: center; }
  #nav a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  #nav a.on { box-shadow: inset 0 -3px 0 var(--lime); }
  #nav a em { position: absolute; top: 2px; right: 8px; }
  #page { padding: 18px 16px 100px; }
  .grid-2, .grid-3, .pdv { grid-template-columns: 1fr; }
  .cart { position: static; max-height: none; }
  .add-list { grid-template-columns: 1fr; }
  .row4 { grid-template-columns: 1fr 1fr; }
  .canal-cfg { grid-template-columns: 1fr 1fr; }
  .slot-row { grid-template-columns: 1fr 1fr; }
  .combo-grid { grid-template-columns: 1fr; }
  h1 { font-size: 22px; }
}

/* ===== Pausar / ativar itens ===== */
.btn.pause { color: var(--mid); border-color: color-mix(in srgb, var(--mid) 35%, var(--surface)); background: var(--mid-l); }
.btn.go { color: var(--good); border-color: color-mix(in srgb, var(--good) 35%, var(--surface)); background: var(--good-l); }
.acts .x { vertical-align: middle; }
.card-head h3 small { font-weight: 600; font-size: 12px; margin-left: 6px; }
.var-row { display: grid; grid-template-columns: 1fr 1.4fr 70px 90px 26px; gap: 8px; margin-bottom: 8px; align-items: center; }
@media (max-width: 560px) { .var-row { grid-template-columns: 1fr 60px 70px 26px; } .var-row .v-label { grid-column: 1 / -1; } }

/* ===== Relatório mensal ===== */
.delta { font-weight: 700; font-size: 12px; }
.delta.up { color: var(--good); }
.delta.down { color: var(--bad); }
.kpi.brand .delta.up, .kpi.brand .delta.down { color: #fff; }
.insights { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.insights li { padding: 10px 14px 10px 40px; border-radius: 12px; background: var(--bg); position: relative; line-height: 1.5; }
.insights li::before { position: absolute; left: 14px; top: 10px; font-weight: 800; }
.insights li.good { background: var(--good-l); } .insights li.good::before { content: '✓'; color: var(--good); }
.insights li.warn { background: var(--mid-l); } .insights li.warn::before { content: '!'; color: var(--mid); }
.insights li.bad { background: var(--bad-l); } .insights li.bad::before { content: '✕'; color: var(--bad); }
.insights li.info { background: var(--brand-l); } .insights li.info::before { content: '→'; color: var(--brand); }
.tbl.dre tr.b td { font-weight: 700; }
.tbl.dre tr.hi td { background: var(--brand-l); }
.tbl.dre tr.tot.pos td:nth-child(2) { color: var(--good); }
.tbl.dre tr.tot.neg td:nth-child(2) { color: var(--bad); }
.head-actions input[type=month] { width: auto; }

@media print {
  @page { size: A4; margin: 12mm; }
  body { display: block; background: #fff; font-size: 11px; }
  .sidebar, .no-print, #toasts, .modal { display: none !important; }
  #page { padding: 0; max-width: none; }
  .card, .kpi { box-shadow: none; break-inside: avoid; }
  .kpi.brand { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .insights li, .mchip, .pill, .tbl.dre tr.hi td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .grid-2, .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-3 > .card:first-child { grid-column: auto; }
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .table-wrap { overflow: visible; }
  .chart-box { height: 200px; }
}

/* ===== Valores reais / tema ===== */
.reais { border: 1px dashed var(--brand-line); background: var(--brand-l); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.reais summary { cursor: pointer; font-weight: 700; font-size: 13px; color: var(--brand); }
.reais summary small { font-weight: 500; color: var(--muted); }
.reais .row2 { margin-top: 10px; }
.reais p { margin: 0; }
.tag.real { background: var(--good-l); color: var(--good); }
.taxa-real { margin: -4px 0 12px 16px; font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.side-foot { display: flex; flex-direction: column; gap: 10px; }
.tema-btn { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: #DCE2F2; border-radius: 10px; padding: 9px 12px; font-weight: 600; text-align: left; }
.tema-btn:hover { background: rgba(255, 255, 255, .13); }
:root[data-theme="dark"] .kpi.brand { box-shadow: 0 10px 30px var(--shadow-brand); }
:root[data-theme="dark"] .pcard img, :root[data-theme="dark"] .combo-img img { filter: brightness(.92); }
@media (max-width: 860px) { .side-foot { display: none; } }

/* ===== Financeiro / backup / perdas ===== */
.aviso { background: var(--mid-l); color: var(--ink); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-size: 13px; line-height: 1.5; }
.mono { font-family: Consolas, 'Courier New', monospace; font-size: 12px; font-weight: 600; word-break: break-all; text-align: right; }
.tbl.dre tr.sub td { font-size: 11.5px; color: var(--muted); background: var(--bg); padding: 6px 10px; }
.salvo { font-size: 12px; font-weight: 600; color: #6EE7B7; }
.salvo.salvando { color: #DCE2F2; }
.salvo.erro { color: #FCA5A5; }
.salvo.local { color: #7E89AB; }

/* ===== Yieldo: assistente, editor, canais ===== */
.wiz { text-align: left; }
.wiz-logo { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 30px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 10px 26px var(--shadow-brand); margin-bottom: 14px; }
.wiz h2 { font-size: 22px; margin-bottom: 6px; }
.wiz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.wiz-opt { text-align: left; border: 1.5px solid var(--border); background: var(--surface); color: var(--ink); border-radius: 14px; padding: 12px 14px; }
.wiz-opt b { display: block; font-size: 14px; }
.wiz-opt small { color: var(--muted); font-size: 12px; line-height: 1.4; display: block; margin-top: 4px; }
.wiz-opt.on { border-color: var(--brand); background: var(--brand-l); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.var-block { border: 1px solid var(--border); border-radius: 12px; padding: 10px; margin-bottom: 10px; background: var(--bg); }
.var-head { display: grid; grid-template-columns: 1fr 120px 26px; gap: 8px; align-items: center; margin-bottom: 8px; }
.vr-row { display: grid; grid-template-columns: 1fr 100px 26px; gap: 8px; margin-bottom: 6px; align-items: center; }
.foto-campo { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.foto-prev { width: 84px; height: 84px; border-radius: 14px; overflow: hidden; background: var(--bg); border: 1px dashed var(--border); display: grid; place-items: center; flex: none; }
.foto-prev img { width: 100%; height: 100%; object-fit: cover; }
.foto-prev span { font-size: 11px; color: var(--muted); }
.canal-cfg { grid-template-columns: minmax(170px, 1.4fr) 1fr 1fr auto; }
.canal-cfg.off { opacity: .55; }
.canal-nome { display: flex; gap: 8px; align-items: center; }
.canal-nome input[type=color] { width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 8px; padding: 2px; background: var(--surface); flex: none; cursor: pointer; }
.canal-acoes { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.canal-acoes .check { margin: 0; }
.add-canal { display: flex; gap: 8px; margin: 6px 0 10px; }
.add-canal select { max-width: 320px; }
#nomeNegocio { font-weight: 700; color: #C3CBE3; }
@media (max-width: 860px) {
  .wiz-grid { grid-template-columns: 1fr; }
  .canal-cfg { grid-template-columns: 1fr 1fr; }
  .canal-nome, .canal-acoes { grid-column: 1 / -1; }
}
.modal.travado .modal-x { display: none; }
.pcard .ph, .combo-img .ph { display: grid; place-items: center; }

/* ===== Online: login ===== */
body.modo-login { grid-template-columns: 1fr; background: radial-gradient(1200px 600px at 20% -10%, color-mix(in srgb, var(--brand) 22%, transparent), transparent), radial-gradient(900px 500px at 110% 110%, color-mix(in srgb, var(--brand-2) 18%, transparent), transparent), var(--bg); }
body.modo-login .sidebar { display: none; }
body.modo-login #page { max-width: none; padding: 0; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 28px; box-shadow: 0 30px 80px rgba(15, 23, 42, .15); }
.login-card h1 { font-size: 24px; margin-bottom: 4px; }
.login-card h3 { margin: 18px 0 12px; }
.login-links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; }
.salvo.offline, .salvo.bloqueado { color: #FCA5A5; }
.salvo.nuvem { color: #6EE7B7; }
.faixa-plano { background: var(--bad-l); color: var(--ink); border: 1px solid color-mix(in srgb, var(--bad) 35%, var(--surface)); border-radius: 14px; padding: 12px 16px; margin-bottom: 16px; font-size: 13.5px; line-height: 1.5; }
