/* Verdugo 1.0.0 — visual aprovado (canvas "Verdugo — prévia dos ajustes", 04/10/2026).
   Tema escuro (noite), claro (dia) ou automático (segue o aparelho). Sem estilos embutidos no HTML (CSP). */
:root {
  --bg: #0d0e11; --s: #16181d; --s2: #1d2027; --b: #2a2e37; --b2: #22252d;
  --t: #eef0f4; --m: #9aa1ae; --f: #8a91a0;
  --blue: #3a63e0; --blueSoft: rgba(58, 99, 224, .22); --chipOnT: #ffffff;
  --red: #d62b35; --redTxt: #ff8c93; --redSoft: rgba(214, 43, 53, .18);
  --green: #3bb27b; --greenSoft: rgba(59, 178, 123, .16);
  --amber: #e2a72e; --amberBg: rgba(226, 167, 46, .12); --amberBd: rgba(226, 167, 46, .4);
  --blueBg: rgba(58, 99, 224, .12); --blueBd: rgba(58, 99, 224, .35);
  --tag: #f0c064; --tagBg: rgba(226, 167, 46, .16);
  --inp: #0d0e11; --link: #8fa9ff; --topbar: rgba(13, 14, 17, .94);
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
html[data-tema="claro"] {
  --bg: #f4f5f7; --s: #ffffff; --s2: #eef0f3; --b: #dde1e8; --b2: #e8ebf0;
  --t: #15171c; --m: #4f5664; --f: #5f6673;
  --blue: #2f56d0; --blueSoft: rgba(47, 86, 208, .12); --chipOnT: #1d3a9e;
  --red: #c9252f; --redTxt: #c9252f; --redSoft: rgba(201, 37, 47, .12);
  --green: #1b8454; --greenSoft: rgba(27, 132, 84, .12);
  --amber: #b77900; --amberBg: #fff6e0; --amberBd: #f0c35a;
  --blueBg: #eef2ff; --blueBd: #b9c8f5; --tag: #8a5a00; --tagBg: #fdecc4;
  --inp: #ffffff; --link: #2f56d0; --topbar: rgba(244, 245, 247, .94);
  --shadow: 0 10px 30px rgba(20, 24, 33, .14);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  html[data-tema="auto"] {
    --bg: #f4f5f7; --s: #ffffff; --s2: #eef0f3; --b: #dde1e8; --b2: #e8ebf0;
    --t: #15171c; --m: #4f5664; --f: #5f6673;
    --blue: #2f56d0; --blueSoft: rgba(47, 86, 208, .12); --chipOnT: #1d3a9e;
    --red: #c9252f; --redTxt: #c9252f; --redSoft: rgba(201, 37, 47, .12);
    --green: #1b8454; --greenSoft: rgba(27, 132, 84, .12);
    --amber: #b77900; --amberBg: #fff6e0; --amberBd: #f0c35a;
    --blueBg: #eef2ff; --blueBd: #b9c8f5; --tag: #8a5a00; --tagBg: #fdecc4;
    --inp: #ffffff; --link: #2f56d0; --topbar: rgba(244, 245, 247, .94);
    --shadow: 0 10px 30px rgba(20, 24, 33, .14);
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--t); font-family: var(--font); font-size: 15px; line-height: 1.45; }
body { min-height: 100vh; -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; }
a { color: var(--link); }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; }
h1 { font-size: 22px; font-weight: 650; }
h2 { font-size: 18px; font-weight: 650; }
h3, .h3 { font-size: 13px; color: var(--m); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.muted { color: var(--m); }
.faint { color: var(--f); font-size: 13px; }
.hidden { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.verde { color: var(--green); }
.vermelho { color: var(--redTxt); }
.ambar { color: var(--tag); }
.forte { font-weight: 700; }
.grande { font-size: 20px; font-weight: 700; }
.mt { margin-top: 16px; }
.mb { margin-bottom: 12px; }
.sep-t { border-top: 1px solid var(--b); padding-top: 12px; }
.span2 { grid-column: 1 / -1; }

/* ---------- topo ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; height: 68px; padding: 0 24px;
  background: var(--topbar); border-bottom: 1px solid var(--b); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.topbar .logo { display: flex; align-items: center; }
.topbar .logo img { height: 46px; width: auto; display: block; }
.topbar .logo img.claro { display: none; }
html[data-tema="claro"] .topbar .logo img.escuro { display: none; }
html[data-tema="claro"] .topbar .logo img.claro { display: block; }
@media (prefers-color-scheme: light) { html[data-tema="auto"] .topbar .logo img.escuro { display: none; } html[data-tema="auto"] .topbar .logo img.claro { display: block; } }
.topbar .divisor { width: 1px; height: 28px; background: var(--b); }
.topbar .titulo { font-weight: 600; color: var(--m); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.topbar .espaco { flex: 1; }
.sino { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--b); border-radius: 10px;
  color: var(--t); background: var(--s); cursor: pointer; padding: 0; }
.sino:hover { border-color: var(--m); }
.sino .cont, .contador { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; border-radius: 999px; background: var(--red); color: #fff;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.seg { display: flex; border: 1px solid var(--b); border-radius: 10px; overflow: hidden; }
.seg button { display: flex; align-items: center; gap: 6px; background: var(--s); color: var(--m); border: 0; padding: 8px 12px; font-size: 13px; font-family: inherit; cursor: pointer; }
.seg button:hover { color: var(--t); }
.seg button.on { background: var(--blueSoft); color: var(--chipOnT); font-weight: 600; }
.tema-cel { display: none; }
.btn-sair { white-space: nowrap; }

/* ---------- estrutura ---------- */
.layout { display: flex; min-height: calc(100vh - 68px); background: linear-gradient(var(--b), var(--b)) 239px 0 / 1px 100% no-repeat; }
.sidebar { width: 240px; flex-shrink: 0; padding: 16px 10px; display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 68px; height: calc(100vh - 68px); overflow-y: auto; }
.sidebar a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; text-decoration: none; font-size: 15px;
  color: var(--m); border-left: 3px solid transparent; }
.sidebar a:hover { background: var(--s); color: var(--t); text-decoration: none; }
.sidebar a.ativo { background: var(--s2); color: var(--t); border-left-color: var(--red); font-weight: 600; }
.sidebar a .ic { display: flex; }
.sidebar .badge-nav { margin-left: auto; background: var(--red); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 1px 7px; }
.sidebar .sep { height: 1px; background: var(--b); margin: 10px 8px; }
main { flex: 1; min-width: 0; padding: 22px 28px 48px; display: flex; flex-direction: column; gap: 16px; }
main > * { margin: 0; }
.bottomnav { display: none; }

/* ---------- componentes ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.page-head .acoes-linha { display: flex; gap: 10px; flex-wrap: wrap; }
.trilha { color: var(--m); font-size: 13px; }
.trilha a { color: var(--link); }
.card { background: var(--s); border: 1px solid var(--b); border-radius: 12px; padding: 18px 20px; min-width: 0; }
.card.realce { border-color: var(--blue); }
.card.aviso-ambar, .kpi.aviso-ambar { border-left: 4px solid var(--amber); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-16 { display: flex; flex-direction: column; gap: 16px; }
.row-flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g-46 { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.g-73 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.g-37 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); }
.g-55 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.grupo { border: 1px solid var(--b); border-radius: 12px; padding: 14px 12px 12px; display: flex; flex-direction: column; gap: 12px; background: transparent; }
.grupo > .h3 { padding: 2px 0 0; }

.kpi { background: var(--s); border: 1px solid var(--b); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; min-width: 0; text-align: left;
  font: inherit; color: inherit; }
.kpi .rot { font-size: 13px; color: var(--m); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.kpi .val { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi .sub { color: var(--f); font-size: 13px; }
.kpi.verde .val, .val.verde { color: var(--green); }
.kpi.vermelho .val, .val.vermelho { color: var(--redTxt); }
.kpi.ambar .val { color: var(--amber); }
button.kpi, a.kpi { cursor: pointer; text-decoration: none; }
button.kpi:hover, a.kpi:hover { border-color: var(--m); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { white-space: nowrap; border: 1px solid var(--b); background: var(--s); color: var(--m); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-family: inherit; cursor: pointer; }
.chip:hover { border-color: var(--m); color: var(--t); }
.chip.ativo, .chip.on { border-color: var(--blue); background: var(--blueSoft); color: var(--chipOnT); font-weight: 600; }
.chip:focus-visible, .btn:focus-visible, .tab:focus-visible, .seg button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
select.chip, input.chip { width: auto; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--b); overflow-x: auto; scrollbar-width: thin; }
.tab { background: none; border: 0; color: var(--m); padding: 10px 8px 12px; cursor: pointer; font-size: 15px; border-bottom: 3px solid transparent;
  white-space: nowrap; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; font-family: inherit; }
.tab:hover { color: var(--t); text-decoration: none; }
.tab.ativo { color: var(--t); border-bottom-color: var(--red); font-weight: 650; }
.tab .n { background: var(--red); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 1px 6px; }
.tabs.sub { border-bottom: 0; margin-top: -8px; }

.tag { display: inline-block; background: var(--tagBg); color: var(--tag); border-radius: 6px; padding: 2px 8px; font-size: 12px; font-weight: 700; letter-spacing: .03em; white-space: nowrap; }
.pill { white-space: nowrap; display: inline-block; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 600; background: var(--s2); color: var(--m); border: 1px solid var(--b); }
.pill.red { background: var(--redSoft); color: var(--redTxt); border-color: transparent; }
.pill.green { background: var(--greenSoft); color: var(--green); border-color: transparent; }
.pill.amber { background: var(--tagBg); color: var(--tag); border-color: transparent; }
.pill.blue { background: var(--blueSoft); color: var(--chipOnT); border-color: transparent; }
.badge { white-space: nowrap; display: inline-block; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 600; background: var(--s2); color: var(--m); }
.badge.red { background: var(--redSoft); color: var(--redTxt); }
.badge.green { background: var(--greenSoft); color: var(--green); }
.badge.amber { background: var(--tagBg); color: var(--tag); }
.badge.blue { background: var(--blueSoft); color: var(--chipOnT); }
.dot { width: 9px; height: 9px; border-radius: 999px; display: inline-block; flex-shrink: 0; background: var(--m); }
.dot.ml { background: #f2c200; } .dot.full { background: var(--green); } .dot.shopee { background: #ee4d2d; } .dot.geral { background: var(--red); } .dot.cinza { background: #8a91a0; }

.alert { border-radius: 10px; padding: 12px 14px; border: 1px solid transparent; font-size: 14px; }
.alert.red { background: var(--redSoft); border-color: rgba(214, 43, 53, .35); }
.alert.amber { background: var(--amberBg); border-color: var(--amberBd); }
.alert.blue { background: var(--blueBg); border-color: var(--blueBd); }
.nota-reserva { background: var(--s); border: 1px solid var(--b); border-left: 4px solid var(--amber); border-radius: 12px; padding: 14px 18px; }
.nota-ambar { background: var(--amberBg); border: 1px solid var(--amberBd); border-radius: 12px; padding: 14px 16px; }
.nota-ambar .t { color: var(--tag); font-weight: 700; }
a.nota-ambar { display: block; color: inherit; text-decoration: none; margin-top: 12px; }

/* listas e tabelas */
.list { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--b2); }
.row:last-child { border-bottom: 0; }
.row .main { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.row .main .t { font-weight: 650; overflow-wrap: anywhere; }
.row .main .s { color: var(--f); font-size: 13px; margin-top: 1px; overflow-wrap: anywhere; }
.row .v { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.row.click, a.row { cursor: pointer; color: inherit; text-decoration: none; }
.row.click:hover, a.row:hover { background: var(--s2); text-decoration: none; }
.row.cancelado .t, .row.cancelado .v { text-decoration: line-through; color: var(--f); }
.empty { color: var(--f); padding: 18px 4px; text-align: center; }
table.tbl { border-collapse: collapse; width: 100%; }
.tbl th { text-align: left; font-size: 12px; color: var(--f); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--b); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--b2); font-size: 14px; vertical-align: middle; }
.tbl td.n, .tbl th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tr.total td { font-weight: 700; border-bottom: 0; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: var(--s2); }
.tbl tr.baixo td { background: var(--redSoft); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.linha-v { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.linha-v .v { font-variant-numeric: tabular-nums; white-space: nowrap; }
.linha-v.ind { padding-left: 14px; color: var(--m); }
.linha-v.tot { font-weight: 700; border-top: 1px solid var(--b); padding-top: 8px; margin-top: 2px; }
.bloco-l { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--b2); align-items: flex-start; }
.bloco-l:last-child { border-bottom: 0; }
.bloco-l .t { font-weight: 650; }
.bloco-l .s { color: var(--f); font-size: 13px; }
.bloco-l .v { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bloco-l.final .t { font-size: 17px; }
.bloco-l.final .v { font-size: 22px; color: var(--green); }

/* formulários */
.form { display: grid; gap: 14px; }
.form .linha { display: grid; gap: 12px; grid-template-columns: 1fr; }
.form .linha.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form .linha.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form .linha.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form .linha.pq { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--m); min-width: 0; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-size: 14px; color: var(--t); }
input, select, textarea { box-sizing: border-box; width: 100%; background: var(--inp); color: var(--t); border: 1px solid var(--b); border-radius: 10px; padding: 11px 12px;
  font-size: 15px; font-family: inherit; min-width: 0; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--blue); padding: 0; flex-shrink: 0; }
input[type=file] { padding: 9px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blueSoft); }
input.invalido, .falta { border: 1.5px solid var(--red) !important; background: var(--redSoft) !important; }
.faltatxt { color: var(--redTxt); font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.faltatxt::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--redTxt); }
textarea { min-height: 70px; resize: vertical; }
.hint { color: var(--f); font-size: 13px; }
.btn { border: 1px solid var(--b); background: var(--s2); color: var(--t); border-radius: 10px; padding: 10px 16px; font-size: 14px; font-weight: 600; font-family: inherit;
  cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:hover { border-color: var(--m); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primario { background: var(--red); border-color: var(--red); color: #fff; font-size: 15px; padding: 11px 18px; }
.btn.primario:hover { filter: brightness(1.08); }
.btn.azul { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.fantasma { background: transparent; }
.btn.pequeno { padding: 7px 12px; font-size: 13px; }
.btn.largo { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: default; }
.acoes { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.toggle { position: relative; width: 44px; height: 26px; flex-shrink: 0; }
.toggle input { position: absolute; opacity: 0; width: 44px; height: 26px; margin: 0; cursor: pointer; z-index: 1; }
.toggle span { position: absolute; inset: 0; background: var(--s2); border: 1px solid var(--b); border-radius: 999px; transition: .15s; }
.toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 999px; background: #fff; transition: .15s; }
.toggle input:checked + span { background: var(--green); border-color: var(--green); }
.toggle input:checked + span::after { left: 21px; }
.toggle input:disabled { cursor: not-allowed; }
.toggle input:disabled + span { opacity: .6; }

/* itens do atendimento/venda */
.itens { display: flex; flex-direction: column; gap: 10px; }
.item { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr) 40px; gap: 12px; align-items: end; background: var(--s2); padding: 14px; border-radius: 12px; }
.item.prod { grid-template-columns: minmax(0, 4fr) minmax(0, 1fr) minmax(0, 1.4fr) 40px; }
.item .tag-p { color: var(--redTxt); font-weight: 700; font-size: 12px; }
.item .rm { height: 44px; padding: 0; }
.item .item-extra { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: end; }
.item .item-extra label { flex: 1 1 200px; }
.caixa-com { border: 1px solid var(--b); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.caixa-com .linha-pct { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.caixa-com input { width: 120px; }
.resumo { background: var(--s2); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; font-variant-numeric: tabular-nums; }
.resumo .l { display: flex; justify-content: space-between; gap: 12px; }
.resumo .l.tot { font-weight: 700; font-size: 17px; }
.resumo .l.m { color: var(--m); }
.resumo .l.c { color: var(--tag); }

/* anotações */
.nota { padding: 10px 0; border-bottom: 1px solid var(--b2); }
.nota:last-child { border-bottom: 0; }
.nota .d { color: var(--f); font-size: 12px; display: flex; gap: 6px; align-items: center; }
.avatar { width: 20px; height: 20px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; background: var(--blue); flex-shrink: 0; }
.avatar.a2 { background: var(--red); }

/* Início */
.alerta-tile { display: flex; gap: 12px; align-items: center; background: var(--s2); border: 1px solid var(--b); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: inherit; min-width: 0; }
.alerta-tile:hover { border-color: var(--m); text-decoration: none; }
.alerta-tile .ic { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.alerta-tile .ic.amber { background: var(--tagBg); color: var(--tag); }
.alerta-tile .ic.red { background: var(--redSoft); color: var(--redTxt); }
.alerta-tile .ic.blue { background: var(--blueSoft); color: var(--chipOnT); }
.alerta-tile .txt { flex: 1; min-width: 0; }
.alerta-tile .t { font-weight: 650; }
.alerta-tile .s { color: var(--f); font-size: 13px; }
.alerta-tile .n { font-size: 20px; font-weight: 700; align-self: flex-start; }
.alerta-tile .n.amber { color: var(--amber); } .alerta-tile .n.red { color: var(--redTxt); } .alerta-tile .n.blue { color: var(--blue); }
.alerta-tile.zero .n { color: var(--f); }
.barb-row { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid transparent; border-radius: 10px; text-decoration: none; color: inherit; }
.barb-row:hover { border-color: var(--blue); background: var(--s2); text-decoration: none; }
.barb-row .pos { width: 28px; height: 28px; border-radius: 999px; background: var(--redSoft); color: var(--redTxt); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.barb-row .main { flex: 1; min-width: 0; }
.barb-row .t { font-weight: 650; font-size: 16px; }
.barb-row .s { color: var(--f); font-size: 13px; }
.barb-row .v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.barb-row .v small { display: block; color: var(--green); font-size: 12px; font-weight: 500; }
.barb-row .seta { color: var(--m); }
.mini-tabela { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-variant-numeric: tabular-nums; }
.mini-tabela .v { text-align: right; font-weight: 700; }
.card-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.card-head a { font-size: 13px; color: var(--m); text-decoration: none; }
.card-head a:hover { color: var(--t); }
.barra { height: 10px; border-radius: 999px; background: var(--s2); overflow: hidden; display: flex; }
.barra i { display: block; height: 100%; }
.cor0 { background: var(--blue); } .cor1 { background: var(--red); } .cor2 { background: #8a91a0; } .cor3 { background: var(--amber); } .cor4 { background: var(--green); }
.rank-linha { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; }
.rank-linha .p { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.w0 { width: 0; }

/* folha (janela) e painel do sino */
.sheet-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.sheet { background: var(--s); border: 1px solid var(--b); border-radius: 16px; width: 100%; max-width: 760px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; padding: 26px 30px; box-shadow: var(--shadow); }
.sheet.larga { max-width: 1040px; }
.sheet .sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 10px; }
.sheet .sheet-head h2 { font-size: 20px; }
.painel-sino { position: fixed; top: 74px; right: 24px; width: 430px; max-width: calc(100vw - 24px); max-height: calc(100vh - 100px); overflow-y: auto; z-index: 45;
  background: var(--s); border: 1px solid var(--blue); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.aviso-it { display: flex; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--s2); }
.aviso-it.lido { background: transparent; }
.aviso-it .dot { margin-top: 6px; }
.aviso-it .q { color: var(--f); font-size: 12px; }
.aviso-it .x { font-weight: 650; font-size: 14px; }
.aviso-it.lido .x { font-weight: 400; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 60; background: var(--s2); color: var(--t); border: 1px solid var(--b); border-left: 4px solid var(--green);
  padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow); max-width: min(560px, 92vw); pointer-events: none; }
.toast.erro { border-left-color: var(--red); pointer-events: auto; }

/* login / configurar */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login { width: 100%; max-width: 380px; text-align: center; }
.login img { width: 220px; max-width: 70%; border-radius: 16px; margin-bottom: 10px; }
.login .card { text-align: left; }
.login .aviso { margin-top: 14px; color: var(--f); font-size: 13px; text-align: center; }

/* recibo (tela) */
.recibo-papel { background: #fff; color: #15171c; border-radius: 12px; padding: 40px 48px; max-width: 760px; margin: 0 auto; width: 100%; }
.recibo-papel .topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 3px solid #d62b35; padding-bottom: 16px; }
.recibo-papel .topo img { width: 170px; height: auto; }
.recibo-papel .topo .r { text-align: right; color: #5f6673; font-size: 13px; }
.recibo-papel h2 { margin: 20px 0 4px; font-size: 20px; }
.recibo-papel .sub { color: #5f6673; font-size: 13px; }
.recibo-papel .dados { background: #f2f3f5; border-radius: 10px; padding: 14px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin: 18px 0; font-size: 14px; }
.recibo-papel .lin { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #e3e6eb; }
.recibo-papel .lin .s { color: #5f6673; font-size: 13px; }
.recibo-papel .lin .v { font-weight: 700; white-space: nowrap; }
.recibo-papel .lin.total .t { font-size: 18px; font-weight: 700; }
.recibo-papel .lin.total .v { font-size: 22px; }
.recibo-papel .decl { margin-top: 16px; font-size: 14px; }
.recibo-papel .assin { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 70px; font-size: 13px; color: #5f6673; }
.recibo-papel .assin div { border-top: 1px solid #15171c; padding-top: 8px; }

/* celular */
.so-cel { display: none; }
@media (max-width: 1100px) {
  .g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* utilitários e peças usados pelas telas aprovadas */
.flex1 { flex: 1; min-width: 0; }
.escondido { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.curto-90 { width: 90px; max-width: 100%; }
.curto-180 { width: 180px; max-width: 100%; }
.curto-130 { width: 130px; max-width: 100%; }
.acoes-tab { min-width: 150px; line-height: 1.6; }
.busca { width: 300px; max-width: 100%; }
.tbl tr.sel td { background: var(--blueSoft); }
.row.sel, .conf-it.sel { background: var(--blueSoft); border-radius: 10px; }
.conf-it { width: 100%; text-align: left; background: transparent; border: 0; font: inherit; color: inherit; }
.pos-n { width: 28px; height: 28px; border-radius: 999px; background: var(--blueSoft); color: var(--chipOnT); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icone-app { border-radius: 16px; flex-shrink: 0; }
.logo-canal { width: 44px; height: 44px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex-shrink: 0; color: #111; }
.logo-canal.ml { background: #ffe600; }
.logo-canal.sh { background: #ee4d2d; color: #fff; }
.logo-canal.am { background: #232f3e; color: #ff9900; }
.logo-canal.tt { background: #111; color: #fff; border: 1px solid var(--b); }
.voltar { display: inline-flex; vertical-align: middle; color: var(--m); margin-right: 4px; }
mark { background: var(--amberBg); color: inherit; border-radius: 3px; padding: 0 2px; }
.nota-cinza { background: var(--s2); border: 1px solid var(--b); border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.soltar { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 2px dashed var(--b); border-radius: 12px; padding: 28px 16px; text-align: center; cursor: pointer; min-height: 120px; }
.soltar:hover { border-color: var(--m); }
.parcela-linha { align-items: center; }
.btn.largo { width: 100%; justify-content: center; }

@media (max-width: 899px) {
  .topbar { height: 64px; padding: 0 16px; gap: 10px; }
  .topbar .logo img { height: 40px; }
  .topbar .divisor, .topbar .titulo, .topbar .seg, .btn-sair { display: none; }
  .tema-cel { display: flex; }
  .sidebar { display: none; }
  .layout { min-height: calc(100vh - 64px); min-height: calc(100dvh - 64px); background: none; }
  /* celular: o fim de cada tela sempre acima da barra de baixo do app e da área segura do aparelho.
     --nav-h = altura real da barra de baixo (medida pelo app, já inclui a área segura) */
  html { scroll-padding-bottom: calc(var(--nav-h, calc(64px + env(safe-area-inset-bottom))) + 24px); }
  main { padding: 16px 16px calc(var(--nav-h, calc(64px + env(safe-area-inset-bottom))) + 56px); gap: 14px; }
  .bottomnav { display: grid; grid-template-columns: repeat(6, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: var(--s);
    border-top: 1px solid var(--b); padding-bottom: env(safe-area-inset-bottom); }
  .bottomnav a, .bottomnav button { color: var(--m); text-decoration: none; font-size: 11px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 2px 10px;
    background: none; border: 0; font-family: inherit; cursor: pointer; position: relative; min-height: 56px; justify-content: center; }
  .bottomnav .ativo { color: var(--red); }
  .bottomnav .badge-nav { position: absolute; top: 4px; right: calc(50% - 22px); background: var(--red); color: #fff; border-radius: 999px; font-size: 10px; font-weight: 700; padding: 0 5px; }
  .g2, .g3, .g4, .g-46, .g-73, .g-37, .g-55 { grid-template-columns: minmax(0, 1fr); }
  .g4.kpis2, .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form .linha.c2, .form .linha.c3, .form .linha.c4 { grid-template-columns: minmax(0, 1fr); }
  .form .linha.c2.fica, .form .linha.c3.fica { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: 14px 16px; }
  .kpi .val { font-size: 19px; }
  h1 { font-size: 20px; }
  .card { padding: 16px; }
  .so-cel { display: block; }
  .so-pc { display: none !important; }
  .item, .item.prod { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; }
  .item > label:first-child { grid-column: 1 / -1; }
  .item:not(.prod) > label:first-child { grid-column: 1 / -1; }
  .sheet-bg { align-items: flex-end; padding: 0; }
  .sheet-bg { height: 100vh; height: 100dvh; }
  .sheet { border-radius: 16px 16px 0 0; padding: 20px 16px calc(40px + env(safe-area-inset-bottom)); max-height: 94vh; max-height: calc(100dvh - 12px); }
  .painel-sino { top: 70px; right: 8px; left: 8px; width: auto; max-height: calc(100dvh - 78px - var(--nav-h, 64px)); }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .tabs { gap: 2px; }
  .tab { padding: 10px 8px 12px; font-size: 14px; }
  .chip { padding: 8px 14px; min-height: 38px; }
  .btn { min-height: 42px; }
  .recibo-papel { padding: 24px 18px; }
  .recibo-papel .dados, .recibo-papel .assin { grid-template-columns: 1fr; }
}
@media print {
  @page { margin: 12mm; }
  html, body { background: #fff !important; color: #000 !important; }
  .topbar, .sidebar, .bottomnav, .nao-imprimir, .toast, .painel-sino { display: none !important; }
  main { padding: 0 !important; }
  .recibo-papel { padding: 0; max-width: none; }
}

/* 1.0.3 — Bancos e caixa */
.btn.aberto { border-color: var(--amberBd); background: var(--amberBg); }
.sel-semana { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.sel-semana select { min-width: 210px; }
.tbl.bancos td { vertical-align: middle; }
@media (max-width: 899px) { .sel-semana select { min-width: 0; max-width: 62vw; } }

/* 1.0.3 — barra de baixo do celular sempre presa no rodapé.
   Com o teclado aberto ela some (antes subia junto com o teclado e aparecia no meio da tela). */
@media (max-width: 899px) {
  .bottomnav { top: auto; transform: translateZ(0); -webkit-transform: translateZ(0); will-change: transform; }
  body.teclado .bottomnav { display: none; }
}
.card-head.quebra { flex-wrap: wrap; row-gap: 6px; }
.card-head.quebra .pill, .card-head.quebra .tag { white-space: normal; max-width: 100%; }
/* celular: cada conta vira um cartão (saldo informado e Atualizar sempre visíveis, sem rolar para o lado) */
@media (max-width: 899px) {
  .tbl.bancos thead { display: none; }
  .tbl.bancos, .tbl.bancos tbody { display: block; }
  .tbl.bancos tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--b); align-items: center; }
  .tbl.bancos td { display: block; padding: 0; border: 0; text-align: left; }
  .tbl.bancos td:first-child, .tbl.bancos td.acoes-tab { grid-column: 1 / -1; }
  .tbl.bancos td[data-l]::before { content: attr(data-l); display: block; font-size: 11px; color: var(--f); text-transform: uppercase; letter-spacing: .04em; }
  .tbl.bancos td.n { text-align: left; }
  .tbl.bancos td.td-atualizar { align-self: end; }
  .tbl.bancos input.curto-130 { width: 100%; max-width: none; }
}

/* página de retorno da conexão com o Mercado Livre (sem estilo embutido: a política de segurança bloqueia) */
.pagina-retorno { max-width: 520px; margin: 12vh auto; padding: 0 16px; }
/* 1.0.12: escolha "só este mês / este e os próximos" nas contas fixas */
fieldset.seg-radio { border: 1px solid var(--b); border-radius: 10px; padding: 8px 12px; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
fieldset.seg-radio legend { font-size: 13px; color: var(--m); padding: 0 4px; }
fieldset.seg-radio label { flex-direction: row; align-items: center; gap: 6px; font-size: 14px; color: var(--t); }
fieldset.seg-radio input[type=radio] { width: 18px; height: 18px; padding: 0; accent-color: var(--blue); flex-shrink: 0; }
.kpi.amarelo .val { color: var(--amber); }
.tbl tr.aviso td { background: var(--amberBg); }
.campo-curto { width: 72px !important; display: inline-block; }
/* 1.0.14: extrato da conta e acordos */
.tbl tr.realce td { background: var(--blueSoft); }
.lista-prod { max-height: 220px; overflow-y: auto; border: 1px solid var(--b); border-radius: 8px; }
.lista-prod button { display: flex; width: 100%; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 0; background: none; text-align: left; cursor: pointer; }
.lista-prod button:hover { background: var(--s2); }
.tbl tr.sem-efeito td { color: var(--f); }
.caixa-com input[data-busca-prod] { width: 100%; }
.item-acordo { border-top: 1px solid var(--b); padding-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.item-acordo .t { font-size: 14px; }
.caixa-com input[data-busca] { width: 100%; }
.caixa-com .row-flex input[data-busca] { flex: 1; min-width: 0; }
/* módulo fiscal (desenvolvimento — simulação) */
.fis-sim { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 10px; border: 2px solid #c81e1e; background: color-mix(in srgb, #c81e1e 10%, var(--s)); }
.fis-sim b { color: #c81e1e; letter-spacing: .02em; }
.fis-pend { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.fis-pend li.aviso { color: var(--m); }
.fis-botoes { flex-wrap: wrap; gap: 8px; }
.fis-acoes { white-space: nowrap; }
.fis-emp { border: 1px solid var(--b); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.fis-num { display: flex; flex-direction: column; gap: 6px; }
.fis-num b { font-size: 26px; }
.txt-amber { color: #b45309; } .txt-red { color: #c81e1e; }
@media (max-width: 899px) {
  .tbl.fis-tbl thead { display: none; }
  .tbl.fis-tbl, .tbl.fis-tbl tbody { display: block; }
  .tbl.fis-tbl tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--b); }
  .tbl.fis-tbl td { display: block; padding: 0; border: 0; text-align: left; min-width: 0; overflow-wrap: anywhere; }
  .tbl.fis-tbl td[data-l]::before { content: attr(data-l); display: block; font-size: 11px; color: var(--f); text-transform: uppercase; letter-spacing: .04em; }
  .tbl.fis-tbl td:first-child { grid-column: 1 / -1; }
  .tbl.fis-tbl td:first-child::before { display: none; }
  .tbl.fis-tbl td:last-child { grid-column: 1 / -1; }
  .tbl.fis-tbl td.n { text-align: left; }
  .fis-acoes { white-space: normal; display: flex; gap: 8px; flex-wrap: wrap; }
}
.fis-l { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px dashed var(--b); }
.fis-l span { color: var(--m); }
.fis-l b { text-align: right; overflow-wrap: anywhere; }
.fis-tot { border-bottom: 0; font-size: 16px; }
/* 1.0.16: Gerenciar anúncios */
.anc-filtros { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.anc-filtros input[type=search] { flex: 1 1 260px; min-width: 0; }
.anc-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; border: 1px solid var(--b); display: inline-flex; align-items: center; justify-content: center; background: var(--s2); color: var(--f); flex-shrink: 0; }
.anc-td-img { width: 56px; }
.anc-topo { display: flex; gap: 12px; align-items: center; }
.anc-topo .anc-thumb { width: 64px; height: 64px; }
.anc-campos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.anc-campo { display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1px solid var(--b); border-radius: 10px; }
.trava { font-size: 12px; color: var(--f); }
.anc-galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.anc-galeria figure { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.anc-galeria img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--b); }
.anc-galeria figcaption { font-size: 12px; color: var(--f); }
.anc-json { max-height: 260px; overflow: auto; font-size: 12px; background: var(--s2); padding: 8px; border-radius: 8px; white-space: pre-wrap; word-break: break-word; }
.lista-passos { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.anc-plat .btn { white-space: normal; }
.anc-filtros select { width: auto; flex: 0 1 240px; }
.anc-campo > .pill, .anc-campo > .trava { align-self: flex-start; }
@media (max-width: 700px) { .anc-filtros select { flex: 1 1 100%; } }
/* celular: cada anúncio vira um cartão (sem rolar para o lado) */
@media (max-width: 899px) {
  .tbl.anc-tbl thead { display: none; }
  .tbl.anc-tbl, .tbl.anc-tbl tbody { display: block; }
  .tbl.anc-tbl tr { display: grid; grid-template-columns: auto 1fr 1fr; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--b); align-items: start; }
  .tbl.anc-tbl td { display: block; padding: 0; border: 0; text-align: left; min-width: 0; overflow-wrap: anywhere; }
  .tbl.anc-tbl td:empty { display: none; }
  .tbl.anc-tbl td.anc-td-img { grid-row: span 2; }
  .tbl.anc-tbl td[data-l="Anúncio"], .tbl.anc-tbl td[data-l="Identificação"] { grid-column: 2 / -1; }
  .tbl.anc-tbl td[data-l]::before { content: attr(data-l); display: block; font-size: 11px; color: var(--f); text-transform: uppercase; letter-spacing: .04em; }
  .tbl.anc-tbl td[data-l="Anúncio"]::before { display: none; }
  .tbl.anc-tbl td.n { text-align: left; }
  .tbl.anc-tbl td:last-child { grid-column: 1 / -1; }
  .tbl.anc-prev tr { grid-template-columns: 1fr 1fr; }
  .tbl.anc-prev td[data-l="Campo"] { grid-column: 1 / -1; font-weight: 650; }
  .tbl.anc-prev td[data-l="Campo"]::before { display: none; }
}
/* ---------- Marketplaces (desenvolvimento, simulação) ---------- */
.mkt-sim { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 10px 14px; border-radius: 10px; border: 2px solid #c81e1e; background: color-mix(in srgb, #c81e1e 9%, var(--s)); }
.mkt-sim b { color: #c81e1e; letter-spacing: .02em; }
.mkt-sim span { color: var(--m); font-size: 13px; }
.tabs.mkt-sub { border-bottom: 0; font-size: 13px; align-items: center; margin-top: -6px; }
.tabs.mkt-sub .tab { padding-top: 4px; padding-bottom: 4px; }
.mkt-sub-rot { white-space: nowrap; padding-right: 4px; }
.mkt-num { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.mkt-num > div { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--b); border-radius: 10px; padding: 8px 10px; }
.mkt-num b { font-size: 22px; }
.mkt-num span { font-size: 12px; color: var(--f); }
input.mini { width: 84px; flex: 0 0 auto; }
.tabs.anc-abas { font-size: 13px; }
.anc-foto-acoes { gap: 4px; justify-content: center; }
.anc-desc { white-space: pre-wrap; max-height: 220px; overflow: auto; }
.mkt-matriz code { white-space: normal; overflow-wrap: anywhere; font-size: 12px; }
@media (max-width: 899px) { .tabs.mkt-sub { flex-wrap: nowrap; } }
.tbl.anc-tbl td[data-l="Anúncio"] { min-width: 200px; }
.tbl.anc-tbl td[data-l="Aviso"] { min-width: 150px; }
.tbl.anc-tbl td[data-l="Aviso"] .pill { white-space: normal; display: inline-block; margin: 0 0 3px; }
.anc-tit { color: inherit; text-decoration: none; } .anc-tit:hover b { text-decoration: underline; }
.anc-avisos { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; } .anc-avisos .pill { white-space: normal; }
.mkt-perm label.row-flex { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px; font-weight: 400; }
.mkt-perm label.row-flex input { width: auto; flex: 0 0 auto; }
.mkt-matriz td { min-width: 90px; }
/* navegação da área Marketplaces: nomes curtos, sem rolagem lateral; repasses recolhidos */
.mkt-onde { font-weight: 500; color: var(--m); font-size: .7em; }
.mkt-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.mkt-nav-item { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--b); color: var(--m); text-decoration: none; font-size: 14px; background: var(--s); white-space: nowrap; }
.mkt-nav-item:hover { color: var(--t); border-color: var(--m); }
.mkt-nav-item.ativo { background: var(--t); color: var(--s); border-color: var(--t); font-weight: 650; }
.mkt-nav-item:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.mkt-nav.sub .mkt-nav-item { font-size: 13px; padding: 5px 10px; }
.mkt-repasses > summary { cursor: pointer; color: var(--m); font-size: 14px; padding: 4px 0; }
.mkt-repasses[open] > summary { margin-bottom: 8px; }
.anc-foto-add { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.anc-arquivo { position: relative; overflow: hidden; cursor: pointer; }
.anc-arquivo input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.anc-arquivo:focus-within { outline: 3px solid var(--red); outline-offset: 2px; }
.anc-req { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; font-size: 12px; text-align: left; }
.anc-req .pill { white-space: normal; }
.anc-url > summary { cursor: pointer; color: var(--m); font-size: 14px; }
@media (max-width: 899px) {
  .mkt-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mkt-nav.sub { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mkt-nav-item { text-align: center; overflow: hidden; text-overflow: ellipsis; padding: 8px 4px; }
  .mkt-repasses > summary .faint { display: none; }
  .mkt-onde { display: block; font-size: .55em; }
}
/* seções do detalhe do anúncio: no celular quebram em linhas (sem rolar para o lado) */
@media (max-width: 899px) {
  .tabs.anc-abas { flex-wrap: wrap; overflow: visible; border-bottom: 0; gap: 6px; }
  .tabs.anc-abas .tab { border: 1px solid var(--b); border-radius: 999px; padding: 6px 10px; font-size: 13px; }
  .tabs.anc-abas .tab.ativo { background: var(--t); color: var(--s); border-color: var(--t); }
}
.tabs.anc-abas { flex-wrap: wrap; overflow: visible; }
/* celular: cartões das plataformas compactos, para a lista de anúncios aparecer logo */
@media (max-width: 899px) {
  .anc-plat { padding: 12px 14px; gap: 8px; }
  .anc-plat > p.faint { display: none; }
  .anc-plat .grande { font-size: 16px; }
}

/* 1.0.21: prévia técnica não alarga a tela no celular */
.anc-pre{white-space:pre-wrap;word-break:break-word;max-width:100%;overflow-x:auto;font-size:.8rem}
/* 1.0.22: estoques separados (físico × anunciado no ML × Full), bloco de envio real e foco do atalho “Revisar vínculo” */
.anc-estoques{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}
.anc-estq{display:flex;flex-direction:column;gap:.15rem;padding:.6rem;border:1px solid var(--b);border-radius:10px;min-width:0}
.anc-estq b{font-size:1.25rem}
.anc-envio th[scope=row]{text-align:left;font-weight:500;color:var(--m);white-space:nowrap}
.anc-foco{outline:2px solid var(--amber);outline-offset:3px;border-radius:8px}
.anc-vinc-linha{flex-wrap:wrap;gap:.4rem}
.anc-vinc-linha select{max-width:100%}
.anc-faltam{margin:0;padding-left:1.1rem}
@media (max-width:600px){.anc-estoques{grid-template-columns:1fr}.anc-envio th[scope=row]{white-space:normal}}
.alert.green{background:var(--greenSoft);border-color:var(--green)}
