/* =====================================================================
   Nexus Sistemas · visual dos painéis (loja, contador e mestre)
   Identidade Nexus: marinho #1E1F41, off-white #F6F4F3 e vermelho de ação,
   fonte Sora, cantos arredondados e sem sombras pesadas.
   ===================================================================== */
:root {
  /* painel da loja e do contador: neutro; a cor de destaque vem da loja (Minha conta → Logo e cor) */
  --bg: #f3f4f6; --panel: #ffffff; --side: #f8f8f9; --sub: #f0f1f3;
  --ink: #14161b; --text: #2c3038; --muted: #697080; --faint: #9aa0aa;
  --line: #e3e5e9; --line2: #eef0f2;
  --accent: #4b2c8f; --accent-2: #3a2071; --accent-soft: #f2eefa; --accent-line: #d9cff0; --on-accent: #ffffff;
  --accent2: #2a1857; --accent2-soft: #efeaf8; --accent2-ink: #22134a;
  --navy: #1e1f41; --navy-2: #2a2b52; --paper: #f6f4f3;
  --grad: linear-gradient(45deg, #d72359 0%, #e3313e 55%, #f04124 100%);
  --ok: #17734b; --okbg: #e9f5ef; --warn: #8f5d00; --warnbg: #fcf4e1; --bad: #b42318; --badbg: #fdeceb;
  --info: #1f56b8; --infobg: #edf3fd; --gray: #555b66; --graybg: #f0f1f3;
  --r: 8px; --r2: 12px; --top: 58px; --sidew: 236px; --nav: 62px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
/* identidade Nexus: só nas telas de entrada (login) e no Painel Mestre */
.auth, body.nexus {
  --bg: #f4f2f1; --side: #faf9f8; --sub: #efecea;
  --ink: #1e1f41; --text: #2e2f4d; --muted: #5c5b72; --faint: #9a99ab;
  --line: #e4e1de; --line2: #efedeb;
  --accent: #c2263f; --accent-2: #9e2743; --accent-soft: #fcecee; --accent-line: #f3c9cf; --on-accent: #f6f4f3;
  --accent2: #e3313e; --accent2-soft: #fdecee; --accent2-ink: #9e2743;
  --info: #2b4fa8; --infobg: #edf1fb; --gray: #55566b; --graybg: #efedeb;
  --r2: 14px;
  --font: 'Sora', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-family: var(--font); color: var(--text);
}
body.nexus .logo { background: var(--grad); }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 400 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; letter-spacing: -.01em; }
a { color: var(--accent); }
.hide { display: none !important; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .num { font-variant-numeric: tabular-nums; }
.cap::first-letter { text-transform: uppercase; }

/* ---------- login (identidade Nexus) ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--paper); }
.auth .art { position: relative; overflow: hidden; background: var(--navy); color: #e9e8f0; padding: 52px 56px; display: flex; flex-direction: column; justify-content: space-between; isolation: isolate; }
.auth .art::before { content: ''; position: absolute; z-index: -1; width: 620px; height: 620px; right: -220px; top: -200px; border-radius: 50%; background: radial-gradient(circle at 35% 65%, #d72359 0%, #e3313e 38%, rgba(240,65,36,.0) 70%); opacity: .55; filter: blur(10px); }
.auth .art::after { content: ''; position: absolute; z-index: -1; width: 520px; height: 520px; left: -240px; bottom: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(173,18,79,.55) 0%, rgba(30,31,65,0) 70%); }
.nx { display: inline-flex; align-items: flex-end; gap: 8px; text-decoration: none; }
.nx img { height: 30px; width: auto; display: block; }
.nx span { font: 600 10.5px/1 var(--font); letter-spacing: .22em; text-transform: uppercase; color: #a7a6b8; padding-bottom: 2px; }
.nx.dark span { color: var(--muted); }
.nxtag { display: inline-block; margin-top: 16px; font: 600 11px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: #ff8a73; border: 1px solid rgba(255,138,115,.35); border-radius: 99px; padding: 7px 12px; }
.auth .art h2 { color: var(--paper); font-size: 40px; line-height: 1.08; font-weight: 700; max-width: 480px; letter-spacing: -.025em; }
.auth .art h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth .art p { color: #a7a6b8; max-width: 440px; font-size: 15px; line-height: 1.6; }
.auth .art ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 480px; }
.auth .art li { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 14px 16px; color: #e9e8f0; font-size: 13.5px; line-height: 1.4; display: flex; gap: 10px; align-items: flex-start; }
.auth .art li::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: 5px; border-radius: 3px; background: var(--grad); }
.auth .art li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.auth .art .small a { color: #ff8a73; }
.auth .form { display: grid; place-items: center; padding: 32px; background: var(--paper); }
.auth .box { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 34px 32px; }
.auth .box .nx { display: none; margin-bottom: 22px; }
.auth h1 { font-size: 26px; letter-spacing: -.02em; } .auth .tag { color: var(--muted); margin: 6px 0 22px; }
.auth .seg { background: var(--sub); border-radius: 12px; padding: 4px; border: 0; }
.auth .seg button { border-radius: 9px; }
.auth input, .auth select { padding: 11px 12px; border-radius: 10px; font-size: 14px; }
.auth .btn { border-radius: 12px; padding: 13px 18px; font-size: 14.5px; }
.logo { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 700; font-size: 15px; letter-spacing: 0; flex: none; }
.logo.light { background: #fff; color: var(--ink); }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth .art { display: none; } .auth .box .nx { display: inline-flex; } .auth .box { padding: 28px 22px; border-radius: 20px; } }

/* ---------- estrutura ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; height: var(--top); background: var(--panel); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 18px; padding: 0 20px; z-index: 30; }
.acct { display: flex; align-items: center; gap: 10px; border: 0; background: none; cursor: pointer; padding: 6px 8px; border-radius: var(--r); font-weight: 600; font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); max-width: 320px; }
.acct:hover { background: var(--sub); } .acct span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct svg { width: 12px; height: 12px; flex: none; }
.topbar .sp { flex: 1; }
.toplinks { display: flex; gap: 4px; }
.toplinks button, .toplinks a { border: 0; background: none; padding: 8px 10px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); cursor: pointer; text-decoration: none; border-radius: var(--r); }
.toplinks button:hover, .toplinks a:hover { color: var(--ink); background: var(--sub); }
.search { position: relative; width: 250px; }
.search input { width: 100%; border: 1px solid var(--line); background: var(--side); border-radius: var(--r); padding: 8px 12px 8px 34px; font-size: 13px; }
.search input:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px var(--accent-soft); }
.search svg { position: absolute; left: 11px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); color: var(--faint); }
.results { position: absolute; top: calc(100% + 6px); right: 0; width: 360px; background: #fff; border: 1px solid var(--line); border-radius: var(--r2); box-shadow: 0 18px 40px -18px rgba(20,22,27,.35); padding: 6px; max-height: 420px; overflow: auto; }
.results .r { display: flex; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: var(--r); cursor: pointer; }
.results .r:hover, .results .r.sel { background: var(--sub); } .results .h { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 8px 10px 4px; }
.menu { position: absolute; top: calc(var(--top) - 6px); left: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r2); box-shadow: 0 18px 40px -18px rgba(20,22,27,.35); padding: 6px; min-width: 240px; z-index: 40; }
.menu button, .menu a { display: flex; width: 100%; border: 0; background: none; padding: 9px 10px; border-radius: var(--r); text-align: left; cursor: pointer; text-decoration: none; color: var(--text); font-size: 13.5px; }
.menu button:hover, .menu a:hover { background: var(--sub); } .menu hr { border: 0; border-top: 1px solid var(--line2); margin: 5px 0; }

.side { position: fixed; top: var(--top); bottom: 0; left: 0; width: var(--sidew); background: var(--side); border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 2px; overflow: auto; z-index: 20; }
.navb { display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 10px 12px; border-radius: var(--r); cursor: pointer; text-align: left; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; position: relative; }
.navb:hover { background: #eeeff2; color: var(--ink); }
.navb.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(20,22,27,.06), inset 0 0 0 1px var(--line); }
.navb.on::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; background: var(--accent); border-radius: 0 2px 2px 0; }
.ic { width: 18px; height: 18px; display: inline-flex; flex: none; }
.ic svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.side .sp { flex: 1; min-height: 16px; }
.side .sep { border-top: 1px solid var(--line); margin: 8px 4px; }
.nb { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 11px; font-weight: 600; letter-spacing: 0; display: inline-flex; align-items: center; justify-content: center; }
.nb:empty { display: none; } .nb.alert { background: var(--bad); color: #fff; border-color: var(--bad); }
.tagnew { margin-left: auto; font-size: 10px; font-weight: 700; letter-spacing: .06em; color: var(--ok); border: 1px solid #b8e0cb; background: var(--okbg); border-radius: 99px; padding: 1px 7px; }
.main { margin: var(--top) 0 0 var(--sidew); padding: 26px 32px 48px; min-width: 0; }
.wrap { max-width: 1180px; }

/* ---------- cabeçalho de página ---------- */
.ph { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.ph h2 { font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ph p { margin: 4px 0 0; color: var(--muted); max-width: 640px; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }

/* abas (nível 1) e sub-abas (nível 2) */
.tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin: 0 0 0; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: none; padding: 14px 2px 13px; display: flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button:hover { color: var(--ink); } .tabs button.on { color: var(--ink); border-bottom-color: var(--ink); }
.tabs .ic, .tabs .ic svg { width: 16px; height: 16px; }
.subtabs { display: flex; gap: 4px; background: var(--sub); border-bottom: 1px solid var(--line); padding: 6px 8px 0; overflow-x: auto; scrollbar-width: none; }
.subtabs::-webkit-scrollbar { display: none; }
.subtabs button { border: 0; background: none; padding: 9px 14px; border-radius: var(--r) var(--r) 0 0; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; display: flex; gap: 7px; align-items: center; white-space: nowrap; }
.subtabs button.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 -1px 0 var(--line), 1px 0 0 var(--line), -1px 0 0 var(--line); }
.subtabs .ic, .subtabs .ic svg { width: 15px; height: 15px; }
.sheet { background: #fff; border: 1px solid var(--line); border-radius: var(--r2); overflow: hidden; margin-bottom: 18px; }
.sheet > .body { padding: 26px 28px; }
.sheet h3 { font-size: 14px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.sheet .lead { color: var(--muted); margin: 4px 0 20px; }

/* ---------- componentes ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r2); padding: 20px 22px; margin-bottom: 16px; }
.card h3 { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 4px; }
.card .lead { color: var(--muted); margin: 2px 0 14px; }
.btn { border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); border-radius: 10px; padding: 9px 18px; font-weight: 600; font-size: 13.5px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.lg { padding: 12px 22px; font-size: 14px; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); } .btn.ghost:hover { border-color: #c9ccd3; background: var(--side); }
.btn.dark { background: var(--ink); border-color: var(--ink); } .btn.dark:hover { background: #000; }
.btn.soft { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-soft); } .btn.soft:hover { border-color: var(--accent-line); }
.btn.danger { background: #fff; color: var(--bad); border-color: #f0c9c5; } .btn.danger:hover { background: var(--badbg); }
.btn.ok { background: var(--ok); border-color: var(--ok); }
.btn.sm { padding: 6px 12px; font-size: 12.5px; }
.btn.link { border: 0; background: none; color: var(--accent); padding: 4px 0; }
.btn .ic, .btn .ic svg { width: 15px; height: 15px; }
.btn:focus-visible, .navb:focus-visible, .tabs button:focus-visible, .subtabs button:focus-visible, .chip:focus-visible, .seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .grow { flex: 1; min-width: 0; }
.right { margin-left: auto; }
label { display: block; font-size: 12.5px; font-weight: 600; margin: 14px 0 6px; color: var(--text); }
label .opt { font-weight: 400; color: var(--faint); }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--r); padding: 9px 11px; background: #fff; font-size: 13.5px; }
textarea { min-height: 88px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input:disabled { background: var(--side); color: var(--muted); }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.chk { display: flex; align-items: center; gap: 10px; font-weight: 500; margin: 12px 0; cursor: pointer; font-size: 13.5px; }
.hint { color: var(--muted); font-size: 12.5px; margin: 6px 0 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; } .three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 16px; }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; padding: 2px 9px; font-size: 11.5px; font-weight: 600; background: var(--graybg); color: var(--gray); white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.pill.ok { background: var(--okbg); color: var(--ok); } .pill.warn { background: var(--warnbg); color: var(--warn); } .pill.bad { background: var(--badbg); color: var(--bad); }
.pill.info { background: var(--infobg); color: var(--info); } .pill.acc { background: var(--accent-soft); color: var(--accent); }
.pill.plain::before { display: none; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); padding: 2px; background: var(--side); }
.seg button { border: 0; background: none; padding: 6px 13px; border-radius: 4px; cursor: pointer; font-size: 13px; color: var(--muted); }
.seg button.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(20,22,27,.08); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 5px 12px; cursor: pointer; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.chip b { color: var(--ink); margin-left: 5px; font-weight: 600; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); } .chip.on b { color: #fff; }
.err { background: var(--badbg); color: var(--bad); border-radius: var(--r); padding: 10px 12px; margin-top: 12px; font-size: 13px; border: 1px solid #f5d0cc; }
.okmsg { background: var(--okbg); color: var(--ok); border-radius: var(--r); padding: 10px 12px; margin-top: 12px; font-size: 13px; border: 1px solid #c8e6d6; }
.note { background: var(--side); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; font-size: 13px; color: var(--text); }
.note.warn { background: var(--warnbg); border-color: #f1dfb2; } .note.acc { background: var(--accent-soft); border-color: var(--accent-line); }
.banner { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--warn); border-radius: var(--r2); padding: 12px 16px; margin-bottom: 14px; }
.banner.bad { border-left-color: var(--bad); }
.empty { text-align: center; color: var(--muted); padding: 34px 12px; }

/* tabelas */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--side); white-space: nowrap; }
.tbl td { padding: 13px 14px; border-bottom: 1px solid var(--line2); vertical-align: middle; font-size: 13.5px; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: #fafafb; }
.tbl .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl .c { text-align: center; }
.tbl td.strong { color: var(--ink); font-weight: 600; }
.tbl .sub { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; margin-top: 1px; }
.tbl tr.late td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
.tblwrap { overflow-x: auto; }
.tbl .grp th { background: #fff; text-align: center; color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 13px; border-left: 1px solid var(--line); }

/* indicadores */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r2); padding: 18px 20px; }
.kpi .l { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kpi .v { font-size: 26px; font-weight: 600; color: var(--ink); margin-top: 6px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .d { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.kpi .d.up { color: var(--ok); } .kpi .d.down { color: var(--bad); }
button.kpi { text-align: left; cursor: pointer; font: inherit; } button.kpi:hover { border-color: #c9ccd3; }
.kpi.alert .v { color: var(--bad); }
.grid2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.grid2 > * { min-width: 0; }
.chart { width: 100%; height: 220px; display: block; }
.chart text { font: 500 11px var(--font); fill: var(--faint); }
.chart .bar { fill: #d9d2ea; } .chart .bar.cur { fill: var(--accent); }
.chart .val { fill: var(--ink); font-weight: 600; }
.meter { height: 8px; border-radius: 99px; background: var(--sub); overflow: hidden; margin: 10px 0 6px; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.meter.warn i { background: var(--warn); } .meter.bad i { background: var(--bad); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 13.5px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; color: var(--ink); font-weight: 500; text-align: right; }

/* listas e pedidos */
.list .it { display: flex; gap: 14px; align-items: center; padding: 13px 16px; border-bottom: 1px solid var(--line2); }
.list .it:last-child { border-bottom: 0; }
.list .it.click { cursor: pointer; } .list .it.click:hover { background: #fafafb; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 8px; }
.thumbs a { aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--sub); border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; color: var(--muted); text-decoration: none; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.artrow { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line2); }
.artrow:last-child { border-bottom: 0; }
.artrow .pv { width: 76px; height: 76px; border-radius: var(--r); overflow: hidden; background: var(--sub); display: grid; place-items: center; font-size: 12px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; }
.artrow .pv img { width: 100%; height: 100%; object-fit: cover; }
.box { border: 1px solid var(--line); border-radius: var(--r2); padding: 16px 18px; margin: 14px 0; }
.box.hl { border-color: var(--accent-line); background: #fcfbfe; }
.box h4 { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.sum div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line2); font-variant-numeric: tabular-nums; }
.sum .t { font-weight: 600; color: var(--ink); font-size: 14.5px; }
.line { display: grid; grid-template-columns: 1fr 80px 36px; gap: 8px; margin-bottom: 8px; } .line .det { grid-column: 1 / -1; }
.pimg { width: 44px; height: 44px; border-radius: var(--r); background: var(--sub); overflow: hidden; display: grid; place-items: center; flex: none; font-weight: 600; color: var(--muted); border: 1px solid var(--line); }
.pimg img { width: 100%; height: 100%; object-fit: cover; }
.switch { position: relative; width: 38px; height: 22px; flex: none; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: #d5d8de; border-radius: 99px; cursor: pointer; transition: background .2s; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.switch input:checked + span { background: var(--accent); } .switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.qtyv { font-weight: 600; font-size: 16px; color: var(--ink); min-width: 70px; text-align: right; font-variant-numeric: tabular-nums; }
.qtyv small { font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 3px; }
.stk.low .qtyv { color: var(--warn); } .stk.zero .qtyv { color: var(--bad); }
.acts { display: flex; gap: 6px; flex-wrap: wrap; }
.vars { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; } .vars code { background: var(--sub); border: 1px solid var(--line); border-radius: 4px; padding: 2px 7px; font-size: 12px; cursor: pointer; }
.copy { display: flex; gap: 8px; } .copy input { background: var(--side); }
.qr { text-align: center; } .qr img { width: 240px; max-width: 100%; border: 1px solid var(--line); border-radius: var(--r2); }
.code { font-weight: 700; font-size: 28px; letter-spacing: 6px; background: var(--side); border: 1px solid var(--line); border-radius: var(--r2); padding: 16px; text-align: center; margin: 10px 0; color: var(--ink); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line2); }
.steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--muted); flex: none; }
.steps li.done::before { content: '✓'; background: var(--ok); border-color: var(--ok); color: #fff; }

/* modal */
.ov { position: fixed; inset: 0; background: rgba(20,22,27,.48); display: grid; place-items: center; z-index: 60; padding: 16px; overflow: auto; }
.md { background: #fff; border-radius: 12px; width: 100%; max-width: 520px; padding: 24px 26px; max-height: 94vh; overflow: auto; box-shadow: 0 40px 90px -30px rgba(0,0,0,.45); }
.md.wide { max-width: 760px; }
.md h3 { font-size: 18px; margin-bottom: 6px; }
.mdft { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; align-items: center; }

.tabbar { display: none; }
@media (max-width: 980px) { .kpis { grid-template-columns: 1fr 1fr; } .grid2 { grid-template-columns: 1fr; } .search { width: 200px; } }
@media (max-width: 860px) {
  .side { display: none; } .toplinks { display: none; }
  .main { margin-left: 0; padding: 18px 14px calc(var(--nav) + 28px); }
  .topbar { padding: 0 10px; gap: 8px; } .search { width: auto; flex: 1; } .results { width: calc(100vw - 20px); right: -10px; }
  .acct { max-width: 46vw; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: var(--nav); background: #fff; border-top: 1px solid var(--line); z-index: 25; padding-bottom: env(safe-area-inset-bottom); overflow-x: auto; scrollbar-width: none; }
  .tabbar::-webkit-scrollbar { display: none; }
  .tabbar button { flex: 1 0 72px; border: 0; background: none; font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; position: relative; }
  .tabbar button.on { color: var(--accent); }
  .tabbar .nb { position: absolute; top: 6px; left: calc(50% + 6px); margin: 0; height: 17px; min-width: 17px; font-size: 10px; }
  .two, .three, .four { grid-template-columns: 1fr; }
  .sheet > .body { padding: 18px 16px; } .ph { margin-bottom: 14px; }
  .tbl.resp thead { display: none; } .tbl.resp tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .tbl.resp td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 14px; text-align: right; }
  .tbl.resp td::before { content: attr(data-l); color: var(--muted); font-size: 12px; text-align: left; }
  .tbl.resp td.strong { display: block; text-align: left; } .tbl.resp td.strong::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- cor secundária da loja: detalhes ---------- */
.topbar { box-shadow: inset 0 -2px 0 var(--accent2); }
.navb.on::before { background: var(--accent2); }
.navb.on .ic { color: var(--accent2-ink); }
.tabs button.on { border-bottom-color: var(--accent2); }
.subtabs button.on { box-shadow: inset 0 -2px 0 var(--accent2); }
.tabbar button.on { color: var(--accent2-ink); }
.pill.acc { background: var(--accent2-soft); color: var(--accent2-ink); }
.meter i { background: var(--accent2); }
.banner { border-left-color: var(--accent2); }
.eyebrow { color: var(--accent2-ink); }
