/* Estoque de Materiais — interface
   Tokens → base → layout → componentes → páginas → responsivo. */

:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --surface-3: #eef0f6;
  --border: #e4e7ef;
  --border-strong: #d3d8e4;
  --text: #121826;
  --text-2: #4b5468;
  --text-3: #7b8498;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-soft: #eef0ff;
  --primary-text: #3730a3;
  --accent: #0d9488;
  --ok: #059669;      --ok-soft: #e7f8f1;    --ok-text: #046c4e;
  --warn: #d97706;    --warn-soft: #fff5e1;  --warn-text: #92400e;
  --crit: #ea580c;    --crit-soft: #fff0e6;  --crit-text: #9a3412;
  --out: #dc2626;     --out-soft: #fdecec;   --out-text: #991b1b;
  --info: #2563eb;    --info-soft: #eaf1ff;  --info-text: #1e40af;
  --chart-a: #4f46e5;
  --chart-b: #14b8a6;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 8px 24px -12px rgba(16, 24, 40, .12);
  --shadow-lg: 0 24px 48px -12px rgba(16, 24, 40, .25);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 7px;
  --sidebar: 256px;
  --topbar: 64px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0f19; --surface: #121826; --surface-2: #161d2d; --surface-3: #1d2537;
    --border: #232c40; --border-strong: #2f3a52; --text: #eef1f7; --text-2: #b4bccd; --text-3: #8690a5;
    --primary: #818cf8; --primary-hover: #a5b4fc; --primary-soft: #1e2142; --primary-text: #c7d2fe;
    --ok: #34d399; --ok-soft: #0f2a22; --ok-text: #6ee7b7;
    --warn: #fbbf24; --warn-soft: #2d2410; --warn-text: #fcd34d;
    --crit: #fb923c; --crit-soft: #2f1c10; --crit-text: #fdba74;
    --out: #f87171; --out-soft: #301415; --out-text: #fca5a5;
    --info: #60a5fa; --info-soft: #132239; --info-text: #93c5fd;
    --chart-a: #818cf8; --chart-b: #2dd4bf;
    --shadow: 0 1px 3px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0f19; --surface: #121826; --surface-2: #161d2d; --surface-3: #1d2537;
  --border: #232c40; --border-strong: #2f3a52; --text: #eef1f7; --text-2: #b4bccd; --text-3: #8690a5;
  --primary: #818cf8; --primary-hover: #a5b4fc; --primary-soft: #1e2142; --primary-text: #c7d2fe;
  --ok: #34d399; --ok-soft: #0f2a22; --ok-text: #6ee7b7;
  --warn: #fbbf24; --warn-soft: #2d2410; --warn-text: #fcd34d;
  --crit: #fb923c; --crit-soft: #2f1c10; --crit-text: #fdba74;
  --out: #f87171; --out-soft: #301415; --out-text: #fca5a5;
  --info: #60a5fa; --info-soft: #132239; --info-text: #93c5fd;
  --chart-a: #818cf8; --chart-b: #2dd4bf;
  --shadow: 0 1px 3px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01"; font-variant-numeric: tabular-nums;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.015em; }
h1 { font-size: 1.6rem; font-weight: 700; }
h2 { font-size: 1.1rem; font-weight: 650; }
h3 { font-size: .98rem; font-weight: 650; }
p { margin: 0 0 .75rem; }
small, .small { font-size: .84rem; }
.muted { color: var(--text-2); }
.subtle { color: var(--text-3); }
.mono { font-family: var(--mono); font-size: .9em; }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.hidden, [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.25rem 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--primary-soft); }

.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9;
     stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.i-lg { width: 22px; height: 22px; }
.i-sm { width: 15px; height: 15px; vertical-align: -2px; }

/* ---------------------------------------------------------------- layout */
.app { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar); background: var(--surface);
  border-right: 1px solid var(--border); display: flex; flex-direction: column; z-index: 40;
}
.brand { display: flex; align-items: center; gap: .7rem; padding: 1.1rem 1.25rem; height: var(--topbar); }
.brand-logo {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #6366f1, #0d9488); box-shadow: 0 6px 16px -6px rgba(79, 70, 229, .7);
}
.brand-logo .i { width: 19px; height: 19px; }
.brand-txt { line-height: 1.15; }
.brand-txt strong { display: block; font-size: .96rem; letter-spacing: -.01em; }
.brand-txt span { font-size: .75rem; color: var(--text-3); }
.nav { flex: 1; overflow-y: auto; padding: .5rem .75rem 1rem; }
.nav-grupo { margin-top: 1rem; }
.nav-titulo { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3);
              font-weight: 650; padding: 0 .65rem .35rem; }
.nav a {
  display: flex; align-items: center; gap: .7rem; padding: .52rem .65rem; border-radius: var(--radius-sm);
  color: var(--text-2); font-weight: 520; font-size: .92rem; transition: background .15s, color .15s;
}
.nav a:hover { background: var(--surface-3); color: var(--text); }
.nav a.ativo { background: var(--primary-soft); color: var(--primary-text); }
.nav a.ativo .i { color: var(--primary); }
.nav .contador { margin-left: auto; }
.sidebar-rodape { padding: .75rem; border-top: 1px solid var(--border); }

.principal { margin-left: var(--sidebar); min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--topbar); display: flex; align-items: center; gap: .75rem;
  padding: 0 1.75rem; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
}
.topbar.rolou { border-bottom-color: var(--border); }
.busca-topo { flex: 1; max-width: 420px; position: relative; }
.busca-topo input[type=search] { padding-left: 2.4rem; background: var(--surface); }
.busca-topo .i { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.topbar-acoes { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.topbar .marca-movel { display: none; }
.conteudo { padding: 1.25rem 1.75rem 3rem; max-width: 1360px; }

.cabecalho { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
             flex-wrap: wrap; margin-bottom: 1.25rem; }
.cabecalho p { margin: .3rem 0 0; color: var(--text-2); }
.migalhas { font-size: .82rem; color: var(--text-3); margin-bottom: .35rem; display: flex; gap: .35rem; align-items: center; }
.migalhas a { color: var(--text-3); }
.migalhas a:hover { color: var(--text); }
.acoes { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

.grade { display: grid; gap: 1rem; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-lado { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.pilha > * + * { margin-top: 1rem; }
.linha { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.entre { justify-content: space-between; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; }
.w-100 { width: 100%; }

/* barra inferior (celular) */
.tabbar { display: none; }

/* ---------------------------------------------------------------- cartões */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
        box-shadow: var(--shadow-sm); }
.card-pad { padding: 1.15rem 1.25rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem;
             padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.card-head h2 { font-size: 1rem; }
.card-head .muted { font-size: .84rem; }
.card-body { padding: 1.1rem 1.25rem; }
.card-foot { padding: .8rem 1.25rem; border-top: 1px solid var(--border); background: var(--surface-2);
             border-radius: 0 0 var(--radius) var(--radius); }
.card-link { display: flex; align-items: center; gap: .3rem; font-size: .86rem; font-weight: 600; }

.kpi { padding: 1.05rem 1.2rem; display: flex; flex-direction: column; gap: .2rem; position: relative;
       overflow: hidden; color: var(--text); transition: transform .15s, box-shadow .15s; }
a.kpi:hover { transform: translateY(-1px); box-shadow: var(--shadow); color: var(--text); }
.kpi-rotulo { font-size: .82rem; color: var(--text-2); font-weight: 550; display: flex; align-items: center; gap: .45rem; }
.kpi-valor { font-size: 1.85rem; font-weight: 720; letter-spacing: -.03em; line-height: 1.1; }
.kpi-valor small { font-size: .95rem; font-weight: 600; color: var(--text-3); letter-spacing: 0; }
.kpi-extra { font-size: .8rem; color: var(--text-3); }
.kpi::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: transparent; }
.kpi.k-out::after { background: var(--out); }
.kpi.k-crit::after { background: var(--crit); }
.kpi.k-warn::after { background: var(--warn); }
.kpi.k-ok::after { background: var(--ok); }
.kpi.k-pri::after { background: var(--primary); }
.icone-kpi { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
.icone-kpi .i { width: 16px; height: 16px; }
.k-out .icone-kpi { background: var(--out-soft); color: var(--out); }
.k-crit .icone-kpi { background: var(--crit-soft); color: var(--crit); }
.k-warn .icone-kpi { background: var(--warn-soft); color: var(--warn); }
.k-ok .icone-kpi { background: var(--ok-soft); color: var(--ok); }
.k-pri .icone-kpi { background: var(--primary-soft); color: var(--primary); }

.destaque-compra {
  background: linear-gradient(135deg, #4f46e5 0%, #6d28d9 55%, #0d9488 130%); color: #fff; border: 0;
  position: relative; overflow: hidden;
}
.destaque-compra::before { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  border-radius: 50%; background: rgba(255, 255, 255, .08); }
.destaque-compra .muted, .destaque-compra .subtle { color: rgba(255, 255, 255, .78); }
.destaque-compra .grande { font-size: 2.4rem; font-weight: 750; letter-spacing: -.04em; line-height: 1; }
.destaque-compra .btn { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .25); }
.destaque-compra .btn:hover { background: rgba(255, 255, 255, .26); color: #fff; }
.linha-datas { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1.1rem; }
.linha-datas div { background: rgba(255, 255, 255, .1); border-radius: 10px; padding: .55rem .7rem; }
.linha-datas span { display: block; font-size: .72rem; opacity: .8; text-transform: uppercase; letter-spacing: .05em; }
.linha-datas strong { font-size: .98rem; }

/* ---------------------------------------------------------------- selos */
.badge {
  display: inline-flex; align-items: center; gap: .38rem; padding: .17rem .58rem; border-radius: 999px;
  font-size: .76rem; font-weight: 650; white-space: nowrap; line-height: 1.5; border: 1px solid transparent;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-ok { background: var(--ok-soft); color: var(--ok-text); }
.badge-warn { background: var(--warn-soft); color: var(--warn-text); }
.badge-crit { background: var(--crit-soft); color: var(--crit-text); }
.badge-out { background: var(--out-soft); color: var(--out-text); }
.badge-info { background: var(--info-soft); color: var(--info-text); }
.badge-pri { background: var(--primary-soft); color: var(--primary-text); }
.badge-neutral { background: var(--surface-3); color: var(--text-2); }
.badge-borda { background: transparent; border-color: var(--border-strong); color: var(--text-2); }
.contador { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; font-size: .72rem;
            font-weight: 700; display: inline-grid; place-items: center; background: var(--out); color: #fff; }
.contador.neutro { background: var(--surface-3); color: var(--text-2); }

/* ---------------------------------------------------------------- botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .55rem 1rem;
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; line-height: 1.2;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s;
  white-space: nowrap; min-height: 40px;
}
.btn:hover { background: var(--surface-3); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primario { background: var(--primary); border-color: var(--primary); color: #fff;
                box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--primary) 80%, transparent); }
.btn-primario:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
:root[data-theme="dark"] .btn-primario, :root[data-theme="dark"] .btn-primario:hover { color: #0b0f19; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primario,
  :root:not([data-theme="light"]) .btn-primario:hover { color: #0b0f19; } }
.btn-perigo { background: var(--out); border-color: var(--out); color: #fff; }
.btn-perigo:hover { filter: brightness(.95); background: var(--out); color: #fff; }
.btn-sucesso { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-sucesso:hover { filter: brightness(.95); background: var(--ok); color: #fff; }
.btn-fantasma { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-fantasma:hover { background: var(--surface-3); }
.btn-sm { padding: .35rem .7rem; font-size: .82rem; min-height: 32px; border-radius: 8px; }
.btn-lg { padding: .8rem 1.3rem; font-size: 1rem; min-height: 50px; }
.btn-icone { padding: 0; width: 40px; }
.btn-sm.btn-icone { width: 32px; }
.btn-bloco { width: 100%; }

/* ---------------------------------------------------------------- formulários */
label, .rotulo { display: block; font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: .35rem; }
.obrigatorio::after { content: " *"; color: var(--out); }
input[type=text], input[type=search], input[type=email], input[type=password], input[type=number],
input[type=date], input:not([type]), select, textarea {
  width: 100%; font: inherit; font-size: .94rem; color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: .55rem .75rem;
  min-height: 42px; transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
textarea { min-height: 72px; resize: vertical; }
select {
  padding-right: 2.2rem; background-repeat: no-repeat; background-position: right .75rem center; background-size: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b8498' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent); }
input::placeholder, textarea::placeholder { color: var(--text-3); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--primary); vertical-align: -3px; }
input[type=file] { font-size: .85rem; max-width: 100%; }
.campo { margin-bottom: 1rem; }
.ajuda { font-size: .8rem; color: var(--text-3); margin-top: .3rem; }
.erro-campo { font-size: .82rem; color: var(--out); margin-top: .3rem; font-weight: 550; }
.campo.com-erro input, .campo.com-erro select, .campo.com-erro textarea { border-color: var(--out); }
.check { display: flex; gap: .55rem; align-items: flex-start; font-weight: 500; cursor: pointer; }
.check input { margin-top: 2px; }
.lista-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .45rem .9rem;
                list-style: none; padding: 0; margin: 0; }
.lista-checks label { display: flex; gap: .5rem; font-weight: 500; font-size: .88rem; margin: 0; align-items: flex-start; }
.dias-semana ul, .dias-semana div > div { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.dias-semana label { display: inline-flex; gap: .35rem; align-items: center; padding: .35rem .7rem; font-weight: 550;
                     border: 1px solid var(--border-strong); border-radius: 999px; cursor: pointer; margin: 0; }
.grupo-campos { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.secao-form { padding: 1.2rem 1.25rem; border-bottom: 1px solid var(--border); }
.secao-form:last-child { border-bottom: 0; }
.secao-form h3 { margin-bottom: .2rem; }
.secao-form > .muted { font-size: .85rem; margin-bottom: 1rem; }
.prefixo { position: relative; }
.prefixo span { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: .9rem; }
.prefixo input[type=text], .prefixo input[type=search] { padding-left: 2.3rem; }

.segmentado { display: inline-flex; background: var(--surface-3); padding: 3px; border-radius: 11px; gap: 2px; flex-wrap: wrap; }
.segmentado a, .segmentado button { padding: .4rem .8rem; border-radius: 8px; font-size: .84rem; font-weight: 600;
  color: var(--text-2); border: 0; background: transparent; cursor: pointer; font-family: inherit; white-space: nowrap; }
.segmentado a.ativo, .segmentado button.ativo { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* ---------------------------------------------------------------- avisos */
.aviso { display: flex; gap: .75rem; padding: .85rem 1rem; border-radius: var(--radius-sm); border: 1px solid;
         font-size: .9rem; align-items: flex-start; }
.aviso .i { margin-top: 2px; }
.aviso strong { display: block; }
.aviso p:last-child { margin-bottom: 0; }
.aviso-info { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 25%, transparent); color: var(--info-text); }
.aviso-ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 25%, transparent); color: var(--ok-text); }
.aviso-warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); color: var(--warn-text); }
.aviso-erro { background: var(--out-soft); border-color: color-mix(in srgb, var(--out) 25%, transparent); color: var(--out-text); }
.aviso ul { margin: .3rem 0 0; padding-left: 1.1rem; }

.toasts { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 100; display: flex; flex-direction: column; gap: .5rem;
          max-width: min(420px, calc(100vw - 2rem)); }
.toast { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 12px; background: var(--surface);
         box-shadow: var(--shadow-lg); border: 1px solid var(--border); font-size: .9rem; animation: entra .25s ease-out; }
.toast .i { margin-top: 1px; }
.toast-success .i { color: var(--ok); } .toast-error .i { color: var(--out); }
.toast-info .i { color: var(--info); } .toast-warning .i { color: var(--warn); }
.toast button { margin-left: auto; background: none; border: 0; color: var(--text-3); cursor: pointer; padding: 0 0 0 .5rem; }
.toast.saindo { opacity: 0; transform: translateY(-6px); transition: .25s; }
@keyframes entra { from { opacity: 0; transform: translateY(8px); } }

/* ---------------------------------------------------------------- tabelas */
.tabela-wrap { overflow-x: auto; }
table.tabela { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem; }
.tabela th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3);
             font-weight: 650; padding: .7rem 1rem; border-bottom: 1px solid var(--border); background: var(--surface-2);
             white-space: nowrap; position: sticky; top: 0; }
.tabela th.num { text-align: right; }
.tabela td { padding: .78rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tabela tbody tr:last-child td { border-bottom: 0; }
.tabela tbody tr { transition: background .1s; }
.tabela tbody tr:hover { background: var(--surface-2); }
.tabela tfoot td { font-weight: 700; background: var(--surface-2); border-top: 1px solid var(--border-strong); padding: .75rem 1rem; }
.tabela .principal-cel { font-weight: 600; color: var(--text); }
.tabela .principal-cel small { display: block; font-weight: 450; color: var(--text-3); }
.tabela a.principal-cel:hover { color: var(--primary); }
.tabela-compacta td, .tabela-compacta th { padding: .5rem .75rem; }
tr.linha-out td:first-child { box-shadow: inset 3px 0 0 var(--out); }
tr.linha-crit td:first-child { box-shadow: inset 3px 0 0 var(--crit); }
tr.linha-warn td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.positivo { color: var(--ok); font-weight: 600; }
.negativo { color: var(--out); font-weight: 600; }
.vazio { padding: 2.5rem 1rem; text-align: center; color: var(--text-3); }
.vazio .i { width: 34px; height: 34px; margin-bottom: .5rem; color: var(--border-strong); }

.barra-saldo { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; min-width: 70px; margin-top: .35rem; }
.barra-saldo span { display: block; height: 100%; border-radius: 99px; background: var(--ok); }
.barra-saldo.warn span { background: var(--warn); } .barra-saldo.crit span { background: var(--crit); }
.barra-saldo.out span { background: var(--out); }

/* lista de itens (painel, alertas) */
.lista { list-style: none; margin: 0; padding: 0; }
.lista > li { display: flex; gap: .85rem; align-items: center; padding: .8rem 1.25rem; border-bottom: 1px solid var(--border); }
.lista > li:last-child { border-bottom: 0; }
.lista .grow { flex: 1; min-width: 0; }
.lista .titulo { font-weight: 600; color: var(--text); display: block; overflow: hidden; text-overflow: ellipsis; }
.lista .detalhe { font-size: .82rem; color: var(--text-3); }
.avatar { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none;
          background: var(--surface-3); color: var(--text-2); font-weight: 700; font-size: .82rem; }
.avatar.out { background: var(--out-soft); color: var(--out); } .avatar.crit { background: var(--crit-soft); color: var(--crit); }
.avatar.warn { background: var(--warn-soft); color: var(--warn); } .avatar.ok { background: var(--ok-soft); color: var(--ok); }
.avatar.info { background: var(--info-soft); color: var(--info); } .avatar.pri { background: var(--primary-soft); color: var(--primary); }

/* barras horizontais simples */
.barras { display: flex; flex-direction: column; gap: .8rem; }
.barra-item .linha { justify-content: space-between; font-size: .88rem; }
.barra-trilho { height: 8px; background: var(--surface-3); border-radius: 99px; overflow: hidden; margin-top: .3rem; }
.barra-trilho span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--chart-a), var(--chart-b)); }
.w-3{width:3%}.w-5{width:5%}.w-10{width:10%}.w-15{width:15%}.w-20{width:20%}.w-25{width:25%}.w-30{width:30%}.w-35{width:35%}
.w-40{width:40%}.w-45{width:45%}.w-50{width:50%}.w-55{width:55%}.w-60{width:60%}.w-65{width:65%}.w-70{width:70%}.w-75{width:75%}
.w-80{width:80%}.w-85{width:85%}.w-90{width:90%}.w-95{width:95%}.w-100p{width:100%}

/* gráfico SVG */
.grafico svg { width: 100%; height: auto; overflow: visible; }
.grafico .rot { fill: var(--text-2); font-size: 12px; }
.grafico .val { fill: var(--text-3); font-size: 11px; }
.grafico .ba { fill: var(--chart-a); } .grafico .bb { fill: var(--chart-b); }
.grafico .trilho { fill: var(--surface-3); }
.legenda { display: flex; gap: 1rem; font-size: .82rem; color: var(--text-2); margin-bottom: .75rem; flex-wrap: wrap; }
.legenda span { display: inline-flex; align-items: center; gap: .4rem; }
.legenda i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legenda .la { background: var(--chart-a); } .legenda .lb { background: var(--chart-b); }

/* progresso */
.progresso { height: 8px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.progresso span { display: block; height: 100%; background: var(--primary); border-radius: 99px; }

/* ---------------------------------------------------------------- menu suspenso (details) */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-painel { position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; background: var(--surface);
               border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: .35rem; z-index: 60; }
.menu-painel a, .menu-painel button { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .55rem .7rem;
  border-radius: 8px; color: var(--text); font: inherit; font-size: .9rem; background: none; border: 0; cursor: pointer; text-align: left; }
.menu-painel a:hover, .menu-painel button:hover { background: var(--surface-3); }
.menu-painel .sep { height: 1px; background: var(--border); margin: .35rem 0; }
.menu-painel .cab { padding: .55rem .7rem .4rem; font-size: .8rem; color: var(--text-3); }
.menu-painel .cab strong { display: block; color: var(--text); font-size: .9rem; }
.usuario-btn { display: flex; align-items: center; gap: .55rem; padding: .3rem .55rem .3rem .3rem; border-radius: 12px;
               border: 1px solid var(--border); background: var(--surface); }
.usuario-btn:hover { background: var(--surface-3); }
.usuario-btn .avatar { width: 30px; height: 30px; border-radius: 9px; background: var(--primary-soft); color: var(--primary); }
.usuario-btn span.nome { font-size: .86rem; font-weight: 600; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------- diálogo */
dialog { border: 0; border-radius: 18px; padding: 0; max-width: 520px; width: calc(100vw - 2rem); background: var(--surface);
         color: var(--text); box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(9, 12, 22, .5); backdrop-filter: blur(3px); }
dialog .card-head { border-radius: 18px 18px 0 0; }
dialog .card-foot { border-radius: 0 0 18px 18px; display: flex; justify-content: flex-end; gap: .5rem; }

/* ---------------------------------------------------------------- lançamento */
.itens-lanc { display: flex; flex-direction: column; gap: .75rem; }
.item-lanc { border: 1px solid var(--border); border-radius: 12px; padding: .9rem; background: var(--surface-2);
             display: grid; gap: .75rem; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr) minmax(0, 1.25fr) auto; align-items: end; }
.item-lanc.entrada { grid-template-columns: minmax(0, 2fr) minmax(0, .9fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) auto; }
.item-lanc label { font-size: .78rem; color: var(--text-2); }
.item-lanc .info-item { grid-column: 1 / -1; font-size: .82rem; color: var(--text-2); display: flex; gap: .4rem 1rem;
                        flex-wrap: wrap; margin-top: -.25rem; }
.item-lanc .info-item:empty { display: none; }
.item-lanc .info-item .alerta { color: var(--out); font-weight: 650; }
.busca-material { position: relative; }
.resumo-lanc { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--border);
               padding: .9rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
               border-radius: 0 0 var(--radius) var(--radius); z-index: 5; }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip { padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface);
        font-size: .82rem; font-weight: 600; color: var(--text-2); cursor: pointer; font-family: inherit; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.ativo { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-text); }
.tipo-lanc { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; margin-bottom: 1.25rem; }
.tipo-lanc a { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .7rem .4rem; border-radius: 12px;
               border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: .82rem; font-weight: 600; text-align: center; }
.tipo-lanc a:hover { border-color: var(--border-strong); color: var(--text); }
.tipo-lanc a.ativo { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-text); }

/* calendário */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal .dow { font-size: .7rem; text-transform: uppercase; color: var(--text-3); text-align: center; font-weight: 650; padding-bottom: .2rem; }
.cal .dia { border-radius: 8px; padding: .35rem .4rem; min-height: 54px; font-size: .78rem; background: var(--surface-2);
            border: 1px solid var(--border); display: flex; flex-direction: column; justify-content: space-between; }
.cal .dia b { font-size: .82rem; }
.cal .dia.f0 { background: var(--surface-3); color: var(--text-3); }
.cal .dia.fbaixo { background: var(--info-soft); }
.cal .dia.falto { background: var(--warn-soft); }
.cal .dia.hoje { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.cal .dia.passado { opacity: .45; }
.cal .dia span { font-size: .68rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* detalhes */
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.25rem; margin: 0; font-size: .9rem; }
.dl dt { color: var(--text-3); font-weight: 500; }
.dl dd { margin: 0; font-weight: 550; }
.linha-tempo { list-style: none; margin: 0; padding: 0; }
.linha-tempo li { position: relative; padding: 0 0 1rem 1.25rem; border-left: 2px solid var(--border); margin-left: .35rem; font-size: .88rem; }
.linha-tempo li:last-child { padding-bottom: 0; }
.linha-tempo li::before { content: ""; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%;
                          background: var(--surface); border: 2px solid var(--primary); }

.paginacao { display: flex; gap: .4rem; align-items: center; justify-content: space-between; padding: .8rem 1.25rem;
             border-top: 1px solid var(--border); font-size: .85rem; color: var(--text-3); }

.login-tela { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.login-tela .card { width: 100%; max-width: 380px; padding: 2rem; box-shadow: var(--shadow); }
.h-login { font-size: 1.15rem; }
.login-tela .linha { flex-wrap: nowrap; }

.erro-pagina { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 2rem; }
.erro-pagina .codigo { font-size: 4rem; font-weight: 800; letter-spacing: -.05em; color: var(--primary); }

.mais-grade { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.mais-grade a { display: flex; flex-direction: column; gap: .5rem; padding: 1rem; border-radius: 14px; background: var(--surface);
                border: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: .92rem; }
.mais-grade a .i { color: var(--primary); width: 22px; height: 22px; }

/* ---------------------------------------------------------------- impressão */
@media print {
  .sidebar, .topbar, .tabbar, .acoes, .toasts, .no-print { display: none !important; }
  .principal { margin: 0; }
  .card { box-shadow: none; }
}

/* ---------------------------------------------------------------- responsivo */
@media (max-width: 1180px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-lado { grid-template-columns: minmax(0, 1fr); }
  .item-lanc.entrada { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .item-lanc.entrada > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 1023px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s; box-shadow: var(--shadow-lg); }
  body.menu-aberto .sidebar { transform: none; }
  body.menu-aberto::after { content: ""; position: fixed; inset: 0; background: rgba(9, 12, 22, .45); z-index: 35; }
  .principal { margin-left: 0; }
  .topbar { padding: 0 1rem; }
  .topbar .marca-movel { display: flex; align-items: center; gap: .55rem; font-weight: 700; }
  .topbar .marca-movel .brand-logo { width: 30px; height: 30px; border-radius: 9px; }
  .conteudo { padding: 1rem 1rem calc(96px + env(safe-area-inset-bottom)); }
  .busca-topo { display: none; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border); padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom));
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .68rem; font-weight: 600;
              color: var(--text-3); padding: .3rem 0; position: relative; }
  .tabbar a.ativo { color: var(--primary); }
  .tabbar a .i { width: 22px; height: 22px; }
  .tabbar .fab { margin-top: -22px; }
  .tabbar .fab span.circulo { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; color: #fff;
    background: linear-gradient(135deg, #6366f1, #4f46e5); box-shadow: 0 10px 22px -8px rgba(79, 70, 229, .8); }
  .tabbar .fab .i { width: 24px; height: 24px; stroke-width: 2.3; }
  .tabbar .contador { position: absolute; top: 0; left: 55%; height: 17px; min-width: 17px; font-size: .62rem; }
  .usuario-btn span.nome { display: none; }
  .ocultar-movel { display: none !important; }
}
@media (min-width: 1024px) { .so-movel { display: none !important; } }
@media (max-width: 760px) {
  h1 { font-size: 1.3rem; }
  .g-2, .g-3 { grid-template-columns: minmax(0, 1fr); }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .kpi { padding: .85rem .95rem; }
  .kpi-valor { font-size: 1.5rem; }
  .cabecalho { align-items: flex-start; }
  .cabecalho .acoes { width: 100%; }
  .cabecalho .acoes .btn { flex: 1; }
  .item-lanc, .item-lanc.entrada { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: .6rem; }
  .item-lanc > :first-child { grid-column: 1 / 3; grid-row: 1; }
  .item-lanc .remover { grid-column: 3; grid-row: 1; align-self: end; }
  .item-lanc > :nth-child(2) { grid-column: 1; }
  .item-lanc > :nth-child(3) { grid-column: 2 / 4; }
  .item-lanc.entrada > :nth-child(4) { grid-column: 1; }
  .item-lanc.entrada > :nth-child(5) { grid-column: 2 / 4; }
  .tipo-lanc { display: flex; overflow-x: auto; gap: .45rem; margin-left: -1rem; margin-right: -1rem;
               padding: 0 1rem .25rem; scrollbar-width: none; }
  .tipo-lanc a { flex: 0 0 auto; min-width: 88px; padding: .55rem .6rem; }
  .filtro-extra { display: none; }
  .linha-datas { grid-template-columns: 1fr 1fr 1fr; gap: .4rem; }
  .card-head, .card-body, .secao-form { padding-left: 1rem; padding-right: 1rem; }
  .lista > li { padding: .75rem 1rem; }
  /* Tabelas viram cartões */
  table.responsiva thead { display: none; }
  table.responsiva, table.responsiva tbody, table.responsiva tr, table.responsiva td { display: block; width: 100%; }
  table.responsiva tr { padding: .8rem 1rem; border-bottom: 1px solid var(--border); }
  table.responsiva tbody tr:hover { background: transparent; }
  table.responsiva td { border: 0; padding: .15rem 0; display: flex; justify-content: space-between; gap: 1rem; text-align: right; }
  table.responsiva td::before { content: attr(data-rotulo); color: var(--text-3); font-size: .8rem; text-align: left; font-weight: 500; }
  table.responsiva td.cel-titulo { display: block; text-align: left; padding-bottom: .35rem; }
  table.responsiva td.cel-titulo::before { content: none; }
  table.responsiva td:empty { display: none; }
  table.responsiva tfoot { display: block; }
  table.responsiva tr.linha-out td:first-child, table.responsiva tr.linha-crit td:first-child,
  table.responsiva tr.linha-warn td:first-child { box-shadow: none; }
  table.responsiva tr.linha-out { box-shadow: inset 3px 0 0 var(--out); }
  table.responsiva tr.linha-crit { box-shadow: inset 3px 0 0 var(--crit); }
  table.responsiva tr.linha-warn { box-shadow: inset 3px 0 0 var(--warn); }
  .dl { grid-template-columns: 1fr; gap: .1rem; }
  .dl dd { margin-bottom: .5rem; }
  .toasts { left: 1rem; right: 1rem; bottom: calc(84px + env(safe-area-inset-bottom)); max-width: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.topbar .btn-icone { position: relative; }
.topbar .btn-icone .contador { position: absolute; top: 2px; right: 0; height: 17px; min-width: 17px; font-size: .62rem; }

/* ---------------------------------------------------------------- tutorial */
.tutorial { max-width: 1040px; margin: 0 auto; }
.tut-topo { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.tut-topo > div { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.tut-pontos { display: flex; gap: 6px; }
.tut-pontos span { width: 8px; height: 8px; border-radius: 99px; background: var(--border-strong); transition: background .2s, transform .2s; }
.tut-pontos span.feito { background: color-mix(in srgb, var(--primary) 45%, transparent); }
.tut-pontos span.atual { background: var(--primary); transform: scale(1.35); }
.tut-passo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem; padding: 2rem; align-items: center; margin-bottom: 1rem; }
.tutorial.js-ativo .tut-passo { display: none; margin-bottom: 0; }
.tutorial.js-ativo .tut-passo.atual { display: grid; animation: tut-entra .25s ease-out; }
@keyframes tut-entra { from { opacity: 0; transform: translateX(10px); } }
.tut-texto h1 { font-size: 1.8rem; margin-bottom: .6rem; }
.tut-texto h2 { font-size: 1.45rem; margin-bottom: .6rem; }
.tut-lead { font-size: 1.05rem; color: var(--text-2); }
.tut-num { display: inline-block; font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700;
           color: var(--primary); margin-bottom: .35rem; }
.tut-lista { padding-left: 0; list-style: none; margin: .5rem 0; display: grid; gap: .55rem; }
.tut-lista li { display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
.tut-lista.numerada { counter-reset: tut; }
.tut-lista.numerada li { counter-increment: tut; display: block; padding-left: 2rem; position: relative; }
.tut-lista.numerada li::before { content: counter(tut); position: absolute; left: 0; top: 0; width: 1.45rem; height: 1.45rem;
  border-radius: 50%; background: var(--primary-soft); color: var(--primary-text); font-size: .78rem; font-weight: 700;
  display: grid; place-items: center; }
.tut-acoes { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.25rem; }
.tut-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.tut-nav .btn { min-width: 120px; }
.tut-icone { display: grid; place-items: center; height: 220px; border-radius: var(--radius); background: var(--primary-soft); color: var(--primary); }
.tut-icone .i { width: 84px; height: 84px; stroke-width: 1.4; }
.tut-icone.ok { background: var(--ok-soft); color: var(--ok); }

/* ilustração de tela */
.tut-texto, .tut-ilustra { min-width: 0; }
.tela { min-width: 0; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); box-shadow: var(--shadow); overflow: hidden; font-size: .8rem; }
.tela-barra { display: flex; align-items: center; gap: 5px; padding: .55rem .75rem; background: var(--surface); border-bottom: 1px solid var(--border); }
.tela-barra i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.tela-barra span { margin-left: .5rem; font-weight: 650; color: var(--text-2); }
.tela-corpo { padding: .85rem; display: grid; gap: .6rem; }
.tela-campo label, .tela-item label { display: block; font-size: .68rem; color: var(--text-3); font-weight: 600; margin: 0 0 .2rem; }
.tela-campo > div, .tela-item > div > div { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 7px; padding: .35rem .5rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tela-dupla { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5rem; }
.tela-item { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: .45rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: .55rem; }
.tela-item > div > div { background: var(--surface-2); }
.tela-info { font-size: .74rem; color: var(--text-2); }
.tela-busca { display: flex; gap: .4rem; align-items: center; background: var(--surface); border: 1px solid var(--primary); border-radius: 8px;
  padding: .35rem .55rem; color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent); }
.tela-botao { justify-self: end; background: var(--primary); color: #fff; font-weight: 650; padding: .4rem .8rem; border-radius: 8px; }
.tela-abas { display: flex; gap: .3rem; flex-wrap: wrap; }
.tela-abas span { padding: .25rem .5rem; border-radius: 7px; border: 1px solid var(--border); background: var(--surface); color: var(--text-3); font-weight: 600; font-size: .7rem; }
.tela-abas span.ativa { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-text); }
.tela-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; }
.tela-kpis .k { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: .4rem; font-size: .66rem; color: var(--text-3); }
.tela-kpis .k b { display: block; font-size: 1rem; color: var(--text); }
.tela-kpis .k-out b { color: var(--out); } .tela-kpis .k-crit b { color: var(--crit); }
.tela-kpis .k-warn b { color: var(--warn); } .tela-kpis .k-ok b { color: var(--ok); }
.tela-linha span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tela-linha { display: flex; justify-content: space-between; align-items: center; gap: .5rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: 8px; padding: .4rem .55rem; }

/* primeiros passos no painel */
.passos-lista { list-style: none; margin: 0; padding: 0; }
.passos-lista li { display: flex; align-items: center; gap: .75rem; padding: .7rem 1.25rem; border-bottom: 1px solid var(--border); }
.passos-lista li:last-child { border-bottom: 0; }
.passos-lista .marca { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border-strong); display: grid; place-items: center; flex: none; }
.passos-lista li.feito .marca { background: var(--ok); border-color: var(--ok); color: #fff; }
.passos-lista li.feito .grow { color: var(--text-3); text-decoration: line-through; }

@media (max-width: 760px) {
  .tut-passo { grid-template-columns: 1fr; padding: 1.25rem; gap: 1.25rem; }
  .tut-icone { height: 120px; }
  .tut-icone .i { width: 56px; height: 56px; }
  .tut-texto h1 { font-size: 1.45rem; }
  .tut-texto h2 { font-size: 1.25rem; }
  .tut-nav { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); background: var(--bg); padding: .6rem 0;
             border-top: 1px solid var(--border); z-index: 4; }
  .tela-kpis .k { font-size: .6rem; padding: .3rem; }
  .tut-nav .btn { min-width: 0; flex: 1; }
  .tut-acoes .btn { width: 100%; }
}
.mx-card { margin: 0 1.25rem .25rem; }
