/* Brisa Caixa — identidade do manual da marca: preto, Verde Brisa (#9CE84C) e branco.
   Tipografia: Urbanist (substituta livre da Visby CF, para títulos e valores grandes) + Figtree (interface e tabelas,
   com algarismos tabulares). Elemento-assinatura: o "ponto" verde do logo (b.), usado como marcador de estado. */

@font-face { font-family: "Urbanist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../assets/fonts/urbanist-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Urbanist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../assets/fonts/urbanist-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(../assets/fonts/figtree-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(../assets/fonts/figtree-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* marca */
  --preto: #000000;
  --verde: #9CE84C;          /* Verde Brisa oficial */
  --verde-tinta: #3A7410;    /* verde legível sobre branco (texto/ícones) */
  --verde-claro: #EDFADC;
  --branco: #FFFFFF;
  /* interface */
  --papel: #F3F4EF;
  --surface: #FFFFFF;
  --surface-2: #F8F9F5;
  --ink: #121411;
  --muted: #61675C;
  --line: #E2E5DC;
  --line-strong: #C9CEC1;
  --nav-ink: #F2F4EF;
  --nav-muted: #8E948A;
  --nav-hover: #161816;
  /* estados (sempre com texto) */
  --ok: #2E6E0C;   --ok-bg: #EDFADC;
  --warn: #8F5600; --warn-bg: #FFF2D9;
  --bad: #B3261E;  --bad-bg: #FDE9E6;
  --info: #24489A; --info-bg: #E8EEFB;
  /* forma */
  --r-panel: 18px; --r-box: 12px; --r-field: 10px;
  --display: "Urbanist", "Figtree", system-ui, sans-serif;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
  /* compatibilidade com nomes antigos usados em estilos inline */
  --brisa: var(--verde); --brisa-soft: var(--verde-claro); --brisa-deep: var(--verde-tinta); --nav: var(--preto);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  color: var(--ink); font: 15px/1.5 var(--font); -webkit-text-size-adjust: 100%;
  font-feature-settings: "tnum" 1; /* valores alinhados em toda a interface */
  /* papel com grade de pontos: eco discreto do ponto do logo */
  background-color: var(--papel);
  background-image: radial-gradient(circle at 1px 1px, rgba(18,20,17,.075) 1px, transparent 1.4px);
  background-size: 22px 22px;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--ink); text-decoration-color: var(--verde); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
.num, td.num, .money { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.boot { display: grid; place-items: center; height: 100vh; color: var(--muted); font-family: var(--display); font-weight: 700; }
.env-banner { background: repeating-linear-gradient(-45deg, #FFE14D 0 14px, #FFD91A 14px 28px); color: #2B2400; text-align: center; font-weight: 700; padding: 5px; font-size: 13px; }

/* ---------- estrutura ---------- */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; background: linear-gradient(to right, var(--preto) 252px, transparent 252px); }
.nav { background: var(--preto); color: var(--nav-ink); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.nav .brand { padding: 26px 24px 22px; display: flex; align-items: flex-end; gap: 10px; }
.nav .brand img { height: 36px; display: block; }
.nav .brand small { font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--verde); line-height: 1; padding-bottom: 7px; letter-spacing: -.01em; }
.nav ul { list-style: none; margin: 6px 0; padding: 0 12px; flex: 1; overflow-y: auto; display: grid; align-content: start; gap: 2px; }
.nav li a { position: relative; display: flex; gap: 11px; align-items: center; padding: 11px 28px 11px 12px; border-radius: 12px; color: var(--nav-muted); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; transition: color .15s, background-color .15s; }
.nav li a:hover { color: var(--nav-ink); background: var(--nav-hover); }
.nav li a .ico { width: 20px; height: 20px; flex: none; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
/* ícones (url relativa a este arquivo) */
.ico-visao { --icon: url(../assets/icons/visao.svg); } .ico-fechamentos { --icon: url(../assets/icons/fechamentos.svg); } .ico-self { --icon: url(../assets/icons/self.svg); } .ico-cofre { --icon: url(../assets/icons/cofre.svg); } .ico-relatorios { --icon: url(../assets/icons/relatorios.svg); } .ico-usuarios { --icon: url(../assets/icons/usuarios.svg); } .ico-auditoria { --icon: url(../assets/icons/auditoria.svg); }
.nav li a[aria-current="page"] { color: var(--branco); background: #1A1C19; }
.nav li a[aria-current="page"]::after { content: ""; position: absolute; right: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--verde); }
.nav li a[aria-current="page"] .ico { background: var(--verde); }
.nav .me { margin: 12px; padding: 12px; border-radius: 14px; background: #121411; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: 12.5px; color: var(--nav-muted); }
.nav .me .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--verde); color: var(--preto); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 13px; }
.nav .me .who { min-width: 0; }
.nav .me .who strong { display: block; color: var(--nav-ink); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav .me .who span { display: block; overflow: hidden; text-overflow: ellipsis; }
.nav .me button { background: transparent; border: 1px solid #2C2F2B; color: var(--nav-ink); border-radius: 999px; padding: 5px 12px; cursor: pointer; font-size: 12.5px; font-weight: 600; }
.nav .me button:hover { border-color: var(--verde); }

.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: 12px 32px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.topbar .ctx { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.topbar .menu-btn { display: none; }
.store-select { width: auto; min-width: 240px; font-family: var(--display); font-weight: 800; font-size: 17px !important; border-radius: 999px !important; padding-left: 18px !important; padding-right: 40px !important; }
.content { padding: 30px 32px 48px; max-width: 1640px; }

h1 { font-family: var(--display); font-size: 32px; line-height: 1.1; font-weight: 800; margin: 2px 0 6px; letter-spacing: -.02em; }
h2 { font-family: var(--display); font-size: 21px; line-height: 1.2; font-weight: 800; margin: 0 0 12px; letter-spacing: -.01em; }
h3 { font-family: var(--display); font-size: 17px; font-weight: 800; margin: 0 0 8px; }
.sub { color: var(--muted); margin: 0 0 24px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.row.between { justify-content: space-between; align-items: center; }
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.spacer { flex: 1; }
.mt { margin-top: 18px; } .mb { margin-bottom: 18px; }

/* ---------- painéis ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 22px; }
.card.flat { background: var(--surface-2); }
.card > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.kpi { display: flex; flex-direction: column; gap: 4px; }
.kpi .v { font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.kpi .l { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.store-card h3 { display: flex; align-items: baseline; gap: 8px; font-size: 22px; }
.store-card h3 small { color: var(--muted); font-family: var(--font); font-weight: 600; font-size: 14px; }
.store-card dl { display: grid; grid-template-columns: 1fr auto; margin: 14px 0 0; font-size: 14px; }
.store-card dt, .store-card dd { padding: 7px 0; border-top: 1px solid var(--line); }
.store-card dt { color: var(--muted); } .store-card dd { margin: 0; text-align: right; font-weight: 700; }

/* ---------- faixa de contexto do fechamento: o bloco preto da marca ---------- */
.ctx-strip { display: flex; flex-wrap: wrap; gap: 14px 34px; padding: 18px 24px; background: var(--preto); color: var(--branco); border-radius: var(--r-panel); margin: 14px 0 20px; position: relative; overflow: hidden; }
.ctx-strip::after { content: ""; position: absolute; right: -26px; top: -26px; width: 92px; height: 92px; border-radius: 50%; background: var(--verde); }
.ctx-strip div { display: flex; flex-direction: column; gap: 2px; position: relative; z-index: 1; }
.ctx-strip span { font-size: 12.5px; color: var(--nav-muted); font-weight: 600; }
.ctx-strip strong { font-family: var(--display); font-size: 18px; font-weight: 800; letter-spacing: -.01em; }

/* ---------- chips de estado (cor + texto, nunca só cor) ---------- */
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.ok::before { background: var(--verde); box-shadow: 0 0 0 1.5px var(--ok); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.chip.info { background: var(--info-bg); color: var(--info); }
.chip.neutral { background: var(--surface); color: var(--muted); border-color: var(--line); }
.topbar .chip.info { background: var(--preto); color: var(--branco); }
.topbar .chip.info::before { background: var(--verde); }

/* ---------- formulários ---------- */
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); min-width: 140px; }
label.f > span { font-weight: 700; color: var(--ink); font-size: 13.5px; }
input[type=text], input[type=password], input[type=date], input[type=number], input[type=search], input[type=tel], input[type=datetime-local], select, textarea {
  min-height: 46px; padding: 9px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-field); background: var(--surface); width: 100%; transition: border-color .15s, box-shadow .15s;
}
select { appearance: none; -webkit-appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121411' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
select[multiple] { background-image: none; padding-right: 14px; }
textarea { min-height: 80px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #A9AFA1; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--preto); box-shadow: 0 0 0 4px rgba(156,232,76,.55); }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--preto); outline-offset: 2px; box-shadow: 0 0 0 6px var(--verde); border-radius: 10px; }
input.money { text-align: right; font-variant-numeric: tabular-nums; font-size: 17px; font-weight: 700; }
input[aria-invalid="true"] { border-color: var(--bad); background: var(--bad-bg); }
.help { font-size: 13px; color: var(--muted); }
.err { color: var(--bad); font-size: 13.5px; font-weight: 600; }
.err:empty { display: none; }
.radio-cards { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-cards label { border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 10px 18px; cursor: pointer; display: flex; gap: 10px; align-items: center; background: var(--surface); min-height: 46px; font-weight: 600; }
.radio-cards input { accent-color: var(--preto); width: 18px; height: 18px; margin: 0; }
.radio-cards label:has(input:checked) { border-color: var(--preto); background: var(--preto); color: var(--branco); }
.radio-cards label:has(input:checked) input { accent-color: var(--verde); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 20px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); cursor: pointer; font-weight: 700; text-decoration: none; color: var(--ink); transition: background-color .15s, border-color .15s, transform .1s; }
.btn:hover { border-color: var(--preto); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--preto); border-color: var(--preto); color: var(--branco); }
.btn.primary:hover { background: #222520; }
.btn.accent { background: var(--verde); border-color: var(--verde); color: var(--preto); }
.btn.accent:hover { border-color: var(--preto); }
.btn.danger { color: var(--bad); border-color: #EDB8B2; }
.btn.danger:hover { border-color: var(--bad); }
.btn.small { min-height: 34px; padding: 5px 14px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn.busy { position: relative; color: transparent !important; }
.btn.busy::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2.5px solid var(--verde); border-top-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.linklike { background: none; border: none; padding: 0; color: var(--ink); cursor: pointer; font-weight: 700; text-decoration: underline; text-decoration-color: var(--verde); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- tabelas (organização de planilha) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-box); background: var(--surface); }
table.t { border-collapse: collapse; width: 100%; font-size: 14px; }
table.t th, table.t td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.t thead th { background: var(--surface-2); font-size: 12.5px; font-weight: 700; color: var(--muted); position: sticky; top: 0; border-bottom: 1.5px solid var(--ink); white-space: nowrap; }
table.t tbody tr:last-child td { border-bottom: none; }
table.t tbody td:first-child { white-space: nowrap; }
table.t tbody tr:hover { background: #FAFBF7; }
table.t tfoot td { font-weight: 800; background: var(--verde-claro); border-top: 1.5px solid var(--ink); border-bottom: none; }
table.t td.neg { color: var(--bad); font-weight: 800; }
table.t td.pos { color: var(--ok); font-weight: 800; }
table.t input, table.t select { min-height: 38px; }
.empty { padding: 28px; text-align: center; color: var(--muted); }

/* ---------- etapas do fechamento (sequência real: numeradas) ---------- */
.stepper { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; margin-bottom: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px; }
.stepper button { display: flex; align-items: center; gap: 10px; text-align: left; border: none; background: transparent; border-radius: 999px; padding: 8px 14px 8px 8px; cursor: pointer; font-weight: 700; color: var(--muted); min-width: 0; }
.stepper button:hover { color: var(--ink); }
.stepper .step-n { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-strong); font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--ink); background: var(--surface); }
.stepper .step-t { line-height: 1.2; }
.stepper button[aria-current="step"] { background: var(--preto); color: var(--branco); }
.stepper button[aria-current="step"] .step-n { background: var(--verde); border-color: var(--verde); color: var(--preto); }

/* ---------- sessão de caixa ---------- */
.session { border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); margin-bottom: 14px; overflow: hidden; }
.session[open] { border-color: var(--line-strong); }
.session > summary { list-style: none; cursor: pointer; padding: 16px 20px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.session > summary::-webkit-details-marker { display: none; }
.session > summary::after { content: ""; margin-left: auto; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s; }
.session[open] > summary::after { transform: rotate(-135deg); }
.session > summary .title { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.session > .body { padding: 0 20px 20px; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.block { border-top: 1px solid var(--line); padding-top: 16px; }
.block h4 { margin: 0 0 12px; font-family: var(--display); font-size: 16px; font-weight: 800; color: var(--ink); }

/* valores: números grandes, o que importa no fechamento */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.figure { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-box); padding: 12px 14px; }
.figure span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.figure strong { display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: -.015em; margin-top: 2px; }
.figure.locked strong::after { content: ""; width: 15px; height: 15px; background: var(--muted); -webkit-mask: url(../assets/icons/cadeado.svg) center / contain no-repeat; mask: url(../assets/icons/cadeado.svg) center / contain no-repeat; }
.figure.bad { border-color: #EDB8B2; background: var(--bad-bg); } .figure.bad strong { color: var(--bad); }
.figure.ok { border-color: #CBEBA6; background: var(--ok-bg); } .figure.ok strong { color: var(--ok); }
.figure.info { border-color: #C3D2F2; background: var(--info-bg); }

.notice { padding: 12px 16px; border-radius: var(--r-box); font-size: 14px; border: 1px solid; border-left-width: 5px; }
.notice.warn { background: var(--warn-bg); border-color: #F0D296; border-left-color: #E09A1A; color: #4F3000; }
.notice.bad { background: var(--bad-bg); border-color: #EDB8B2; border-left-color: var(--bad); color: #6E1712; }
.notice.info { background: var(--info-bg); border-color: #C3D2F2; border-left-color: var(--info); color: #142F66; }
.notice.ok { background: var(--ok-bg); border-color: #CBEBA6; border-left-color: var(--verde); color: #23500A; }
.save-state { font-size: 13px; color: var(--muted); font-weight: 600; }
.save-state.unsaved { color: var(--warn); }
.save-state.error { color: var(--bad); }

/* ---------- acesso ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: var(--surface); }
.login .side { background: var(--preto); color: var(--branco); padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login .side img { height: 60px; align-self: flex-start; position: relative; z-index: 1; }
.login .side > div { position: relative; z-index: 1; max-width: 30rem; }
.login .side h2 { font-family: var(--display); font-size: clamp(36px, 4.4vw, 60px); line-height: 1; font-weight: 900; letter-spacing: -.03em; margin: 0 0 18px; color: var(--branco); }
.login .side p { color: #B8BDB3; font-size: 17px; max-width: 40ch; margin: 0; }
/* o ponto do logo, ampliado: único gesto decorativo da tela */
.login .brand-dot { position: absolute; width: min(46vw, 560px); aspect-ratio: 1; border-radius: 50%; background: var(--verde); right: max(-16vw, -200px); top: max(-16vw, -200px); animation: dot-in .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes dot-in { from { transform: scale(.2); opacity: 0; } to { transform: none; opacity: 1; } }
.login .form { display: grid; place-items: center; padding: 40px 24px; }
.login form { width: 100%; max-width: 400px; display: grid; gap: 16px; }
.login form > img:not(.mfa-qr) { display: none; }
.login form h1 { font-size: 34px; margin-top: 8px; }
.login .mfa-qr { background: #fff; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-box); width: 200px; height: 200px; }
.login .btn.primary { min-height: 52px; font-size: 16px; }

/* ---------- diálogos e avisos ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: var(--surface); border-radius: 22px; max-width: 580px; width: 100%; max-height: 90vh; overflow: auto; padding: 26px; box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: pop .18s ease-out; }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal h2 { margin-top: 0; }
.modal .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.toasts { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 8px; z-index: 60; max-width: min(420px, calc(100vw - 36px)); }
.toast { padding: 13px 18px 13px 16px; border-radius: 14px; color: var(--branco); background: var(--preto); font-size: 14px; font-weight: 600; display: flex; gap: 10px; align-items: center; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.toast::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--nav-muted); flex: none; }
.toast.ok::before { background: var(--verde); } .toast.bad { background: var(--bad); } .toast.bad::before { background: #fff; } .toast.warn::before { background: #FFC24A; }

.tabs { display: flex; gap: 4px; margin-bottom: 18px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px; width: fit-content; max-width: 100%; }
.tabs button { border: none; background: none; padding: 8px 16px; cursor: pointer; border-radius: 999px; font-weight: 700; color: var(--muted); }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--branco); background: var(--preto); }
.code-box { font-family: var(--display); font-weight: 900; font-size: 30px; letter-spacing: .14em; background: var(--preto); color: var(--verde); padding: 18px; text-align: center; border-radius: var(--r-box); }
.denoms { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px,1fr)); gap: 8px; }
.denoms label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.denoms input { min-height: 40px; }
details > summary { cursor: pointer; font-weight: 700; }
code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 13px; }

/* itens de grade não podem forçar largura maior que a tela */
.grid > *, .body > * { min-width: 0; }

/* ---------- responsivo ---------- */
@media (max-width: 1100px) {
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid.cols-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stepper { grid-template-columns: repeat(2, minmax(0,1fr)); border-radius: 22px; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; background: none; }
  .nav { position: fixed; inset: 0 auto 0 0; width: 84vw; max-width: 300px; transform: translateX(-100%); transition: transform .22s ease; z-index: 40; }
  .nav.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.5); }
  .topbar { position: static; padding: 12px 16px; }
  .topbar .menu-btn { display: inline-flex; }
  .store-select { min-width: 0; flex: 1 1 200px; }
  .content { padding: 20px 16px 40px; }
  h1 { font-size: 27px; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .ctx-strip { padding: 16px 18px; gap: 12px 22px; }
  .ctx-strip strong { font-size: 16px; }
  .stepper .step-t { white-space: normal; font-size: 13.5px; line-height: 1.2; }
  .session > summary, .session > .body { padding-left: 16px; padding-right: 16px; }
  .login { grid-template-columns: 1fr; }
  .login .side { padding: 28px 22px 34px; min-height: 230px; }
  .login .side img { height: 44px; }
  .login form > img:not(.mfa-qr) { display: none; }
  .login .side h2 { font-size: 34px; margin: 26px 0 0; max-width: 11ch; }
  .login .side p { display: none; }
  .login .brand-dot { width: 170px; right: -55px; top: -55px; }
  label.f { min-width: 0; flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
  .nav, .topbar, .btn, .stepper { display: none !important; }
  .shell { display: block; }
  body { background: #fff; }
  .ctx-strip { background: #fff; color: #000; border: 1.5px solid #000; }
  .ctx-strip::after { display: none; }
}
table.t select { min-width: 140px; }
table.t input.money { min-width: 120px; }
table.t input[type=number], table.t input[inputmode=numeric] { min-width: 64px; }
