
/* ============ TOKENS ============ */
:root {
  --bg: #f8fafc; --card: #ffffff; --ink: #0f172a; --muted: #475569;
  --line: #e2e8f0; --accent: #2563eb; --accent-ink: #1d4ed8;
  --ok: #047857; --ok-bg: #d1fae5; --bad: #dc2626; --bad-bg: #fee2e2;
  --warn: #b45309; --warn-bg: #fef3c7; --info-bg: #dbeafe;
  --r: 8px; --shadow: 0 1px 2px rgba(15,23,42,.05), 0 4px 14px -4px rgba(15,23,42,.08);
  --ease: cubic-bezier(.23,1,.32,1);
}
/* ============ BASE ============ */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: "Inter", system-ui, sans-serif; }
body { background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.5; }
button { font: inherit; cursor: pointer; }
h1 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.badge-concept { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--warn); background: var(--warn-bg); border-radius: 99px; padding: 4px 12px; margin-bottom: 10px; }
/* ============ APP SHELL ============ */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100dvh; background: #0f172a; color: #cbd5e1; padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.brand { color: #fff; font-weight: 800; font-size: 17px; letter-spacing: -.02em; padding: 0 10px 4px; text-decoration: none; display: block; }
.brand small { display: block; color: #94a3b8; font-weight: 500; font-size: 11.5px; }
.nav-group { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; color: #475569; padding: 16px 10px 6px; }
.nav-link { display: flex; align-items: center; gap: 10px; color: #cbd5e1; text-decoration: none; font-weight: 600; font-size: 13.5px; border-radius: var(--r); padding: 10px 12px; border: 1px solid transparent; transition: background .18s var(--ease), color .18s var(--ease); }
.nav-link svg { width: 17px; height: 17px; flex: none; }
.nav-link:hover { background: rgba(148,163,184,.12); color: #fff; }
.nav-link.active { background: rgba(37,99,235,.22); border-color: rgba(96,165,250,.4); color: #fff; }
.side-foot { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid rgba(148,163,184,.18); font-size: 12px; color: #94a3b8; }
.side-foot a { color: #93c5fd; }
/* ============ CONTEÚDO ============ */
.content { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(248,250,252,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1440px; margin: 0 auto; padding: 12px 28px; display: flex; align-items: center; gap: 12px; }
.topbar .search { flex: 1; max-width: 440px; margin: 0 auto; }
main { max-width: 1440px; margin: 0 auto; padding: 28px; }
.view.hidden { display: none; }
/* Cabeçalho padrão das telas: título | filtros | ação */
.page-head { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; margin-bottom: 22px; }
.page-head .filters { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
/* ============ CARDS ============ */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; position: relative; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.card:hover { transform: translateY(-2px); }
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); }
.card.c-ok::before { background: var(--ok); } .card.c-warn::before { background: #d97706; }
.card span.lbl { display: block; color: var(--muted); font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.card strong.val { display: block; font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.03em; }
.card small { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }
/* ============ PAINÉIS / GRÁFICOS ============ */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; margin-bottom: 16px; }
.panel > p.sub { color: var(--muted); font-size: 13px; margin: 2px 0 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chart { width: 100%; height: auto; display: block; }
/* Prioridades */
.prio { display: grid; gap: 10px; }
.prio-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.prio-item .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.prio-item b { display: block; font-size: 13.5px; } .prio-item span { color: var(--muted); font-size: 12px; }
.prio-item .v { margin-left: auto; font-weight: 800; white-space: nowrap; }
/* ============ TABELAS LIMPAS ============ */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 12px; text-align: left; font-size: 13px; }
th { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--line); }
tbody tr { border-bottom: 1px solid var(--line); transition: background .15s ease; }
tbody tr:last-child { border-bottom: 0; }
tbody tr:hover { background: #f1f5f9; }
td.num, th.num { text-align: right; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 4px 10px; white-space: nowrap; }
.b-red { color: var(--bad); background: var(--bad-bg); } .b-green { color: var(--ok); background: var(--ok-bg); }
.b-amber { color: var(--warn); background: var(--warn-bg); } .b-blue { color: var(--accent-ink); background: var(--info-bg); }
/* ============ FORM / BOTÕES ============ */
label { display: block; color: var(--muted); font-size: 12px; font-weight: 600; margin: 14px 0 6px; }
input, select, textarea { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); font-size: 14px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
input.search { border-radius: 99px; background: #fff; }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: var(--r); font-weight: 700; font-size: 13.5px; padding: 11px 18px; border: 1px solid transparent; text-decoration: none; transition: transform .15s var(--ease), box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 18px -8px rgba(37,99,235,.5); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-lg { padding: 13px 24px; font-size: 14.5px; }
.btn:focus-visible, a:focus-visible { outline: 3px solid rgba(37,99,235,.35); outline-offset: 2px; }
/* ============ MODAL + DRAWER ============ */
.overlay { position: fixed; inset: 0; z-index: 90; background: rgba(15,23,42,.5); display: flex; align-items: center; justify-content: center; padding: 18px; opacity: 0; pointer-events: none; transition: opacity .22s var(--ease); }
.overlay.open { opacity: 1; pointer-events: auto; }
.modal { width: min(520px, 100%); max-height: 90dvh; overflow-y: auto; background: #fff; border-radius: 12px; box-shadow: 0 24px 60px -12px rgba(15,23,42,.35); padding: 26px; transform: translateY(14px) scale(.98); transition: transform .25s var(--ease); }
.overlay.open .modal { transform: none; }
.modal h2 { margin-bottom: 2px; } .modal .sub { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.drawer-wrap { justify-content: flex-end; padding: 0; align-items: stretch; }
.drawer { width: min(440px, 94vw); background: #fff; box-shadow: -18px 0 50px -12px rgba(15,23,42,.3); padding: 26px; overflow-y: auto; transform: translateX(40px); transition: transform .28s var(--ease); margin-left: auto; min-height: 100%; }
.overlay.open .drawer { transform: none; }
.m-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
/* Toast */
.toast { position: fixed; bottom: 20px; left: 50%; transform: translate(-50%, 20px); background: #0f172a; color: #fff; font-size: 13.5px; font-weight: 600; border-radius: 10px; padding: 12px 20px; opacity: 0; pointer-events: none; transition: all .25s var(--ease); z-index: 120; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
/* Menu mobile */
#btn-menu { display: none; }
.backdrop { display: none; }
.empty { text-align: center; color: var(--muted); padding: 30px 12px; font-size: 13px; border: 1.5px dashed var(--line); border-radius: var(--r); }
/* ============ RESPONSIVO ≤800px ============ */
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 800px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(300px, 84vw); z-index: 80; transform: translateX(-105%); transition: transform .25s var(--ease); }
  body.nav-open .sidebar { transform: none; }
  .backdrop { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(15,23,42,.5); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
  body.nav-open .backdrop { opacity: 1; pointer-events: auto; }
  #btn-menu { display: inline-flex; }
  main { padding: 20px 14px 40px; }
  .topbar-in { padding: 10px 14px; }
  .page-head { grid-template-columns: 1fr; }
  .page-head .filters { justify-content: flex-start; }
  .cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { padding: 14px; } .card strong.val { font-size: 22px; }
  .table-scroll { overflow-x: auto; } table { min-width: 560px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; } }
  .legal-cnpj { font-size: 12px; color: #a6b4cb; margin-top: 6px; }

    html, body, * { scrollbar-width: none; -ms-overflow-style: none; }
    html::-webkit-scrollbar, body::-webkit-scrollbar, *::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
  
.is0{background:${p.c}}