/* =====================================================
   SZ Grupo — identidade visual
   Grafite + laranja, barra superior escura, cantos generosos
   ===================================================== */
/* SZ Grupo — azul-marinho + dourado (identidade Soares e Zoccal) */
:root, [data-theme="claro"] {
  --bg: #f6f4ef; --surface: #ffffff; --surface-2: #f9f8f5; --line: #e6e2d9; --line-2: #d3cdc0;
  --ink: #0d1f3c; --muted: #5e6879; --faint: #9aa1ad;
  --accent: #0c2b57; --accent-hover: #163d75; --accent-ink: #ffffff; --accent-soft: #e6ecf5;
  --gold: #c4922f; --gold-soft: #f7edd6;
  --gold-grad: linear-gradient(115deg, #a8741f 0%, #f3d27c 45%, #d5a443 70%, #9b6a1a 100%);
  --ok: #0f7a52; --ok-soft: #e1f2ea; --warn: #a87418; --warn-soft: #f8eed6;
  --danger: #c23a2f; --danger-soft: #fbe6e3; --info: #2457b8; --info-soft: #e5ecfa;
  --bar: #0c2b57; --bar-ink: #f6f4ef; --bar-muted: #a3b3cb; --bar-hover: #163d75;
  --hero: #0c2b57; --hero-ink: #f6f4ef;
  --shadow: 0 1px 0 rgba(12,43,87,.04), 0 12px 30px -14px rgba(12,43,87,.18);
  --radius: 16px; --radius-sm: 10px;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif; --display: 'Montserrat', 'Plus Jakarta Sans', sans-serif; --mono: 'IBM Plex Mono', ui-monospace, monospace;
  color-scheme: light;
}
[data-theme="escuro"] {
  --bg: #081224; --surface: #0e1b33; --surface-2: #13223f; --line: #1d2e4f; --line-2: #2a3f66;
  --ink: #ecebe6; --muted: #9aa6bb; --faint: #5f6d86;
  --accent: #d4a64a; --accent-hover: #e3b95e; --accent-ink: #0c1a33; --accent-soft: #2a2414;
  --gold: #d4a64a; --gold-soft: #2a2414;
  --ok: #3cc58c; --ok-soft: #0f2a22; --warn: #e3b04f; --warn-soft: #2b2312;
  --danger: #f0675b; --danger-soft: #331717; --info: #7ea2f5; --info-soft: #152445;
  --bar: #050c19; --bar-ink: #ecebe6; --bar-muted: #7f8ca5; --bar-hover: #13223f;
  --hero: #13223f; --hero-ink: #ecebe6;
  --shadow: 0 1px 0 rgba(0,0,0,.3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--ink); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 2px; }
h1 { font-family: var(--display); font-size: 28px; line-height: 1.15; margin: 0 0 4px; font-weight: 800; letter-spacing: -.025em; }
h2 { font-family: var(--display); font-size: 16px; margin: 0 0 14px; font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 13.5px; margin: 0; font-weight: 700; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12.5px; } .xs { font-size: 11.5px; }
.mono { font-family: var(--mono); } .nowrap { white-space: nowrap; } .right { text-align: right; }
.ok { color: var(--ok); } .warn { color: var(--warn); } .danger { color: var(--danger); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .spacer { flex: 1; }
.stack > * + * { margin-top: 12px; }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ===== Barra superior ===== */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--bar); color: var(--bar-ink); }
.topbar::after { content: ''; display: block; height: 3px; background: var(--gold-grad); }
.topbar-inner { max-width: 1280px; margin: 0 auto; height: 64px; padding: 0 24px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 12px; font: 800 15px var(--display); letter-spacing: .01em; color: inherit; text-decoration: none; white-space: nowrap; text-transform: uppercase; }
.brand-mark { width: 46px; height: 23px; color: #ffffff; flex: none; display: block; }
.card .brand-mark { color: var(--accent); }
[data-theme="escuro"] .card .brand-mark { color: #ffffff; }
.role-tag { font: 600 10px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: #e3bd63; border: 1px solid currentColor; border-radius: 99px; padding: 1px 7px; }
.mainnav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.mainnav::-webkit-scrollbar { display: none; }
.mainnav a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 99px; color: var(--bar-muted); text-decoration: none; font-weight: 600; font-size: 13.5px; white-space: nowrap; transition: background .15s, color .15s; }
.mainnav a:hover { color: var(--bar-ink); background: var(--bar-hover); }
.mainnav a.active { color: #0c2b57; background: var(--gold-grad); }
.top-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 36px; height: 36px; border-radius: 99px; border: 0; background: transparent; color: var(--bar-muted); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--bar-hover); color: var(--bar-ink); }
.user { display: flex; align-items: center; gap: 8px; color: var(--bar-ink); text-decoration: none; font-size: 13px; font-weight: 600; padding: 4px 10px 4px 4px; border-radius: 99px; }
.user:hover { background: var(--bar-hover); }
.avatar { width: 30px; height: 30px; border-radius: 99px; background: rgba(255,255,255,.1); border: 1.5px solid #d5a443; color: #f3d27c; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; }
.uname { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

main { max-width: 1280px; margin: 0 auto; padding: 30px 24px 70px; min-width: 0; }
.page-head { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; max-width: 760px; }

/* ===== Blocos ===== */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; min-width: 0; }
.card.tight { padding: 14px 16px; box-shadow: none; background: var(--surface-2); }
.grid { display: grid; gap: 16px; }
.kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.kpi .label { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.kpi .value { font-family: var(--display); font-size: 26px; font-weight: 800; margin: 8px 0 2px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpi .sub { color: var(--muted); font-size: 12px; }
.kpis > .kpi:first-child { background: var(--hero); color: var(--hero-ink); border-color: transparent; position: relative; overflow: hidden; }
.kpis > .kpi:first-child .label, .kpis > .kpi:first-child .sub { color: inherit; opacity: .7; }
.kpis > .kpi:first-child .value { color: inherit; }
.kpis > .kpi:first-child::after { content: ''; position: absolute; right: -38px; bottom: -52px; width: 104px; height: 104px; border-radius: 50%; border: 14px solid #d5a443; opacity: .9; }
.kpis > .kpi:first-child { box-shadow: inset 4px 0 0 #d5a443, var(--shadow); }
.two-col { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }

/* ===== Botões ===== */
.btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px; border-radius: 99px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); font: 600 13px var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
.btn.danger:hover { background: var(--danger-soft); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { height: 30px; padding: 0 12px; font-size: 12.5px; }
.btn.lg { height: 46px; font-size: 14.5px; }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }
.btn.strike { text-decoration: line-through; color: var(--faint); border-style: dashed; }

/* ===== Formulários ===== */
input, select, textarea { font: 14px var(--font); color: var(--ink); background: var(--surface-2); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 0 12px; height: 40px; width: 100%; transition: border-color .15s, background .15s; }
textarea { padding: 10px 12px; height: auto; min-height: 80px; }
input:hover, select:hover { border-color: var(--line-2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); flex: none; box-shadow: none; }
input[type=file] { padding: 8px; height: auto; }
label.field { display: block; } label.field > span { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }

/* ===== Etiquetas de status ===== */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 2px; background: currentColor; opacity: .8; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.danger { background: var(--danger-soft); color: var(--danger); }
.pill.accent { background: var(--accent-soft); color: var(--accent); }
.badge { background: var(--accent); color: #fff; border-radius: 99px; font-size: 10.5px; padding: 1px 7px; font-weight: 700; }

/* ===== Tabelas ===== */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11.5px; color: var(--faint); font-weight: 700; padding: 10px; border-bottom: 1.5px solid var(--line); }
td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }

/* ===== Abas ===== */
.tabs { display: inline-flex; gap: 2px; flex-wrap: wrap; background: var(--surface-2); border: 1px solid var(--line); padding: 3px; border-radius: 99px; }
.tab { padding: 6px 14px; border-radius: 99px; border: 0; background: transparent; color: var(--muted); font: 600 12.5px var(--font); cursor: pointer; }
.tab:hover { color: var(--ink); }
.tab.active { background: var(--ink); color: var(--bg); }
.tab.active .muted { color: inherit; opacity: .65; }

/* ===== Avisos ===== */
.note { background: transparent; border: 1.5px dashed var(--line-2); border-radius: var(--radius); padding: 14px 18px; color: var(--muted); font-size: 12.5px; margin-top: 18px; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; }
.alert.warn { background: var(--warn-soft); color: var(--warn); }
.alert.danger { background: var(--danger-soft); color: var(--danger); }
.alert.ok { background: var(--ok-soft); color: var(--ok); }
.empty { text-align: center; color: var(--muted); padding: 32px 12px; font-size: 13.5px; }

.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress > div { height: 100%; background: var(--gold-grad); border-radius: 99px; }

/* ===== Novidades (linha do tempo vertical) ===== */
.feed { max-height: 580px; overflow-y: auto; padding-left: 4px; }
.feed-item { display: grid; grid-template-columns: 14px 1fr; gap: 12px; padding: 0 0 16px; position: relative; }
.feed-item::before { content: ''; position: absolute; left: 5px; top: 14px; bottom: 0; width: 2px; background: var(--line); }
.feed-item:last-child::before { display: none; }
.feed-item .dot { width: 12px; height: 12px; border-radius: 4px; margin-top: 4px; background: var(--ok); position: relative; z-index: 1; }
.feed-item .dot.esgotou { background: var(--danger); } .feed-item .dot.promocao, .feed-item .dot.preco { background: var(--warn); }
.feed-item .dot.pedido, .feed-item .dot.financeiro { background: var(--info); } .feed-item .dot.aviso, .feed-item .dot.produto_novo { background: var(--gold); }
.feed-item .kind { display: block; font: 600 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 1px; }
.feed-item .title { font-weight: 700; font-size: 13.5px; }
.feed-item .meta { font-size: 12px; color: var(--muted); }

/* ===== Andamento do pedido (segmentos) ===== */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 16px 0 14px; }
.timeline .bar { display: none; }
.step { padding-top: 10px; border-top: 5px solid var(--line); border-radius: 2px; }
.step.done { border-image: var(--gold-grad) 1; border-top-color: var(--gold); }
.step .circle { display: none; }
.step .t { font-size: 12.5px; font-weight: 700; color: var(--faint); }
.step.done .t { color: var(--ink); }
.step .d { font-size: 11.5px; color: var(--muted); font-family: var(--mono); }

.order-card { margin-bottom: 16px; }
.order-card .head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.order-card .code { font: 700 17px var(--mono); letter-spacing: -.01em; }
details summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; padding: 4px 0; }
details summary::-webkit-details-marker { display: none; }
details summary::before { content: '+'; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-weight: 700; }
details[open] summary::before { content: '−'; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }

/* ===== Upload ===== */
.drop { display: grid; place-items: center; gap: 4px; min-height: 170px; border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 28px; text-align: center; cursor: pointer; background:
  repeating-linear-gradient(-45deg, transparent 0 14px, color-mix(in srgb, var(--line) 45%, transparent) 14px 15px), var(--surface-2); transition: .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background-color: var(--accent-soft); }
.drop strong { display: block; font-size: 16px; font-weight: 800; }
.drop strong::before { content: '↥'; display: block; margin: 0 auto 8px; width: 44px; height: 44px; line-height: 44px; border-radius: 12px; background: var(--gold-grad); color: #0c2b57; font-size: 22px; font-weight: 800; }
.file-row { display: grid; grid-template-columns: 1.3fr 1.6fr 1fr auto auto auto; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius-sm); margin-top: 10px; background: var(--surface); }
.file-row .fname { font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qty { display: inline-flex; align-items: center; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 99px; overflow: hidden; }
.qty button { width: 32px; height: 34px; border: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 16px; font-weight: 700; }
.qty button:hover { color: var(--accent); }
.qty input { width: 44px; height: 34px; border: 0; border-radius: 0; text-align: center; padding: 0; background: transparent; font-weight: 700; box-shadow: none; }
.nf-box { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1.5px solid var(--line); margin-top: 16px; font-weight: 700; cursor: pointer; }
.nf-box:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.footer-bar { display: flex; align-items: center; gap: 14px; margin: 18px -20px -20px; padding: 16px 20px; background: var(--surface-2); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); flex-wrap: wrap; }
.footer-bar .total { font-size: 24px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* ===== Estoque ===== */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; transition: border-color .15s, transform .15s; }
.products .product:hover { border-color: var(--line-2); transform: translateY(-2px); }
.product .top { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; }
.product .name { font-weight: 800; font-size: 14px; letter-spacing: -.01em; }
.product .price { font-weight: 800; font-size: 17px; text-align: right; white-space: nowrap; letter-spacing: -.02em; }
.product .old { text-decoration: line-through; color: var(--faint); font-size: 12px; font-weight: 500; display: block; }
.product .nf { color: var(--muted); font-size: 11px; text-align: right; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { --c: var(--ok); position: relative; display: inline-flex; align-items: center; gap: 6px; padding-left: 12px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); font-size: 12px; line-height: 26px; }
.chip.low { --c: var(--warn); } .chip.out { --c: var(--danger); }
.chip::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.chip .sku { font-family: var(--mono); font-size: 10px; color: var(--faint); }
.chip .n { align-self: stretch; display: flex; align-items: center; padding: 0 9px; font-weight: 800; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); font-variant-numeric: tabular-nums; }
.chip .mine { font-size: 10.5px; font-weight: 600; color: var(--info); margin-left: -6px; padding: 0 9px 0 0; align-self: stretch; display: flex; align-items: center; background: color-mix(in srgb, var(--c) 12%, transparent); }
.thumb { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; background: var(--line); flex: none; }

/* ===== Modal / toast ===== */
.modal-bg { position: fixed; inset: 0; background: rgba(14, 15, 17, .55); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 50; padding: 16px; animation: fade .15s ease-out; }
.modal { background: var(--surface); border-radius: 20px; width: min(640px, 100%); max-height: 90vh; overflow: auto; padding: 24px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); animation: rise .18s ease-out; }
.modal.wide { width: min(980px, 100%); }
.modal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.modal-head h2 { margin: 0; font-size: 19px; font-weight: 800; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.98); } }
#toast-root { position: fixed; top: 76px; right: 20px; z-index: 60; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 12px; font-size: 13px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: 360px; border-left: 4px solid var(--gold); animation: rise .18s ease-out; }
.toast.error { background: var(--danger); color: #fff; border-left-color: rgba(0,0,0,.25); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.gallery figure { margin: 0; border-radius: 12px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.gallery figcaption { display: flex; justify-content: space-between; padding: 8px 10px; font-size: 12px; }

/* ===== Login (tela dividida) ===== */
.login-split { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-hero { background: #fbfaf6; color: #0c2b57; padding: 48px; display: grid; place-items: center; position: relative; overflow: hidden; }
.login-hero::before, .login-hero::after { content: ''; position: absolute; width: 95%; height: 46%; transform: rotate(-34deg); pointer-events: none; }
.login-hero::before { left: -48%; top: -24%; background: linear-gradient(180deg, #163d75 0%, #0c2b57 80%, #e8c56a 80%, #f3d27c 84%, #a8741f 88%, transparent 88%, transparent 91%, #e9d3a0 91%, #e9d3a0 91.6%, transparent 91.6%); }
.login-hero::after { right: -48%; bottom: -24%; background: linear-gradient(0deg, #163d75 0%, #0c2b57 80%, #a8741f 80%, #f3d27c 84%, #c4922f 88%, transparent 88%, transparent 91%, #e9d3a0 91%, #e9d3a0 91.6%, transparent 91.6%); }
.hero-copy { position: relative; z-index: 1; text-align: center; max-width: 520px; }
.lockup-mark { width: 220px; height: 110px; color: #0c2b57; display: block; margin: 0 auto 18px; filter: drop-shadow(0 6px 14px rgba(12,43,87,.12)); }
.lockup-grupo { font: 700 22px var(--display); letter-spacing: .55em; margin-right: -.55em; color: #b8862f; }
.lockup-name { font: 800 36px/1.1 var(--display); color: #0c2b57; letter-spacing: -.01em; margin: 4px 0 8px; }
.lockup-tag { font: 600 11px var(--display); letter-spacing: .16em; text-transform: uppercase; color: #b8862f; }
.hero-sub { margin-top: 34px; padding-top: 22px; border-top: 1px solid #e5dccb; display: inline-block; text-align: left; }
.hero-sub h2 { color: #0c2b57; font-size: 15px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px; }
.hero-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; color: #3c4a63; font-weight: 600; font-size: 13.5px; }
.hero-steps li { display: flex; gap: 12px; align-items: center; }
.hero-steps b { font: 700 11px var(--mono); color: #0c2b57; background: var(--gold-grad); border-radius: 7px; padding: 3px 7px; }
.login-side { display: flex; flex-direction: column; padding: 24px; background: var(--bg); }
.login-top { display: flex; justify-content: flex-end; }
.login-top .icon-btn { color: var(--muted); } .login-top .icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.login { width: min(380px, 100%); margin: auto; }
.login-title { font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin: 0 0 4px; }

/* ===== Bipe ===== */
.scan-input { height: 56px; font: 600 20px var(--mono); letter-spacing: .05em; text-transform: uppercase; border-width: 2px; }
.scan-log { font-family: var(--mono); font-size: 12.5px; max-height: 260px; overflow: auto; }
.scan-log div { padding: 6px 0; border-bottom: 1px dashed var(--line); }

/* ===== Comprovante ===== */
.receipt { max-width: 800px; margin: 0 auto; }
.receipt .card { border-top: 6px solid var(--gold); }
@media print {
  .topbar, .no-print, #toast-root { display: none !important; }
  main { padding: 0; max-width: none; } body { background: #fff; color: #000; }
  .card { box-shadow: none; border-color: #ccc; }
}

/* ===== Responsivo ===== */
@media (max-width: 1080px) {
  .uname { display: none; }
  .mainnav a { padding: 8px 10px; }
}
@media (max-width: 960px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col { grid-template-columns: 1fr; }
  .file-row { grid-template-columns: 1fr 1fr; }
  .login-split { grid-template-columns: 1fr; }
  .login-hero { min-height: 280px; padding: 28px; }
  .login-hero { padding: 40px 24px; } .hero-sub { display: none; } .lockup-mark { width: 150px; height: 75px; } .lockup-name { font-size: 26px; } .lockup-grupo { font-size: 16px; }
}
@media (max-width: 760px) {
  .topbar-inner { padding: 0 16px; height: 58px; }
  .mainnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--bar); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); gap: 0; border-top: 1px solid #24252b; }
  .mainnav a { flex: 1 0 64px; flex-direction: column; gap: 2px; padding: 6px 4px; border-radius: 12px; font-size: 10.5px; justify-content: center; }
  .brand-name { display: none; } .role-tag { display: none; }
  .top-actions { margin-left: auto; }
  main { padding: 20px 16px 110px; }
  h1 { font-size: 23px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-bar { margin: 16px -20px -20px; }
  #toast-root { top: auto; bottom: 90px; left: 16px; right: 16px; }
}
@media (max-width: 480px) { .kpis { grid-template-columns: 1fr; } .file-row { grid-template-columns: 1fr; } .card { padding: 16px; } .footer-bar { margin: 16px -16px -16px; } }
