/* Radar SPM — identidade visual na linguagem da marca SPM: preto, prata e ouro.
   (Os nomes --navy* foram mantidos por compatibilidade: hoje são os tons de preto/grafite.) */
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("fonts/poppins-regular.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("fonts/poppins-medium.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("fonts/poppins-bold.woff") format("woff"); }
:root {
  --navy: #141416;
  --navy-2: #1f1f22;
  --navy-3: #3a3a3f;
  --black: #0a0a0b;
  --gold: #d4a63a;
  --gold-dark: #8a6a12;
  --gold-soft: #f7eed6;
  --silver: #c9cbd0;
  --signal: #3ccb9a;
  --link: #7a5c0f;
  --bg: #f4f4f2;
  --surface: #ffffff;
  --text: #1a1a1d;
  --muted: #5f6066;
  --line: #e2e1dc;
  --ok: #1f7a4d;
  --ok-soft: #e3f3ea;
  --warn: #9a6400;
  --warn-soft: #fff3d6;
  --danger: #b42318;
  --danger-soft: #fde8e6;
  --info: #1d4f91;
  --info-soft: #e5eefb;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  font-size: 15px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.45;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, .brand-name, .wordmark { font-family: "Poppins", "Segoe UI", system-ui, sans-serif; }
h1 { font-size: 1.45rem; font-weight: 700; margin: 0 0 .25rem; color: var(--navy); }
h2 { font-weight: 500; font-size: 1.1rem; margin: 0 0 .75rem; color: var(--navy); }
h3 { font-weight: 500; font-size: .95rem; margin: 0 0 .5rem; color: var(--navy); }
small, .muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; }

/* ---------- layout */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 236px; flex-shrink: 0; background: var(--black); color: #b9bbc1;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.brand { padding: 20px 20px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand .logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; letter-spacing: .5px; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 8px; background: var(--gold); color: var(--navy);
  display: grid; place-items: center; font-weight: 800; font-size: .85rem;
}
.brand small { color: #8c8e94; display: block; margin-top: 2px; font-size: .75rem; }
.nav { padding: 10px 10px; flex: 1; overflow-y: auto; }
.nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #cfd8e6;
  padding: 9px 12px; border-radius: 8px; margin: 2px 0; font-size: .93rem;
}
.nav a:hover { background: var(--navy-2); color: #fff; text-decoration: none; }
.nav a.active { background: var(--navy-2); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.nav .section { height: 1px; padding: 0; margin: 14px 12px; background: rgba(255,255,255,.14); }
.nav .count { background: var(--danger); color: #fff; border-radius: 999px; font-size: .72rem; padding: 1px 7px; }
.nav .count.gold { background: var(--gold); color: var(--navy); }
.userbox { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }
.userbox strong { color: #fff; display: block; }
.userbox .links { display: flex; gap: 12px; margin-top: 6px; }
.userbox a, .userbox button { color: #a9abb1; font-size: .82rem; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.main { flex: 1; min-width: 0; }
.topbar { display: none; }
.content { padding: 24px 28px 48px; max-width: 1320px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.demo-banner {
  background: var(--gold-soft); color: #6b5300; border-bottom: 1px solid #ecdca5;
  padding: 7px 28px; font-size: .84rem;
}

/* ---------- cards & grids */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.card + .card { margin-top: 16px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-side { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); display: block; color: inherit; }
.stat:hover { text-decoration: none; border-color: var(--navy-3); }
.stat .label { font-size: .8rem; color: var(--muted); }
.stat .value { font-size: 1.7rem; font-weight: 700; color: var(--navy); line-height: 1.2; margin-top: 4px; }
.stat.danger .value { color: var(--danger); }
.stat.warn .value { color: var(--warn); }
.stat.danger { border-left: 4px solid var(--danger); }
.stat.warn { border-left: 4px solid var(--gold); }
dl.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; margin: 0; font-size: .92rem; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; }

/* ---------- tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; background: #f8fafc; white-space: nowrap; }
tr:hover td { background: #fafbfd; }
tr.row-danger td { background: #fff7f6; }
tr.row-danger td:first-child { box-shadow: inset 3px 0 0 var(--danger); }
tr.row-warn td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
tfoot td, tr.total td { font-weight: 700; background: #eef2f8; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.empty { text-align: center; color: var(--muted); padding: 28px; }

/* ---------- badges */
.badge { display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: #eef2f7; color: #344054; white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.gold { background: var(--gold-soft); color: #6b5300; }
.badge.navy { background: var(--navy); color: #fff; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; }
.f-nao_contatado { background: #eef2f7; color: #475467; }
.f-sem_resposta { background: #f2f4f7; color: #667085; }
.f-numero_invalido { background: var(--danger-soft); color: var(--danger); }
.f-respondeu { background: var(--info-soft); color: var(--info); }
.f-interessado { background: var(--gold-soft); color: #6b5300; }
.f-recusou { background: #f4ebff; color: #6941c6; }
.f-retorno_agendado { background: #e0f2fe; color: #026aa2; }
.f-proposta_iniciada { background: #e6f4f1; color: #0f766e; }
.f-concluido { background: var(--ok-soft); color: var(--ok); }

/* ---------- funil */
.funnel { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.funnel a { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fff; color: inherit; display: block; }
.funnel a:hover { text-decoration: none; border-color: var(--navy-3); }
.funnel a.on { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: #faf6ea; }
.funnel .n { font-size: 1.25rem; font-weight: 700; color: var(--navy); }
.funnel .t { font-size: .76rem; color: var(--muted); }

/* ---------- forms */
form.inline { display: inline; }
label { display: block; font-size: .82rem; font-weight: 600; color: #344054; margin-bottom: 4px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=datetime-local],
input[type=number], input[type=search], input[type=file], select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid #c9d1dc; border-radius: 8px; font: inherit; font-size: .92rem;
  background: #fff; color: var(--text);
}
textarea { min-height: 74px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(212, 166, 58, .45); border-color: var(--gold-dark); }
.field { margin-bottom: 12px; }
.row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.hint { font-size: .78rem; color: var(--muted); margin-top: 3px; }
.req::after { content: " *"; color: var(--danger); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 14px; }
.filters .field { margin: 0; min-width: 150px; flex: 1; }
.filters .field.grow { flex: 2; min-width: 220px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.checks label { font-weight: 400; display: flex; align-items: center; gap: 6px; margin: 0; }
.offer-grid { display: grid; gap: 6px; }
.offer-grid .offer { display: grid; grid-template-columns: 1fr 150px; gap: 8px; align-items: center; font-size: .9rem; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px 12px; margin: 0 0 12px; }
legend { font-size: .8rem; font-weight: 600; color: #344054; padding: 0 4px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent;
  background: var(--navy); color: #fff; padding: 8px 15px; border-radius: 8px; font: inherit; font-size: .9rem;
  font-weight: 600; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--navy-3); text-decoration: none; }
.btn.secondary { background: #fff; color: var(--navy); border-color: #d3d2cc; }
.btn.secondary:hover { background: #f4f4f2; }
.btn.gold { background: var(--gold); color: var(--navy); }
.btn.gold:hover { background: #c4952b; }
.btn.danger { background: var(--danger); }
.btn.small { padding: 5px 10px; font-size: .82rem; }
.btn.block { width: 100%; }

/* ---------- alerts */
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; font-size: .92rem; border: 1px solid; }
.flash.success { background: var(--ok-soft); color: var(--ok); border-color: #b7e0c8; }
.flash.error { background: var(--danger-soft); color: var(--danger); border-color: #f5c2bd; }
.flash.info { background: var(--info-soft); color: var(--info); border-color: #c4d7f2; }
.callout { padding: 12px 14px; border-radius: 8px; font-size: .9rem; margin-bottom: 14px; }
.callout.danger { background: var(--danger-soft); color: var(--danger); }
.callout.warn { background: var(--warn-soft); color: var(--warn); }
.callout.info { background: var(--info-soft); color: var(--info); }

/* ---------- timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 22px; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li:last-child { border-left-color: transparent; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--navy-3); }
.timeline .when { font-size: .78rem; color: var(--muted); }
.timeline .what { font-size: .92rem; margin-top: 2px; }
.timeline .note { font-size: .88rem; color: #344054; margin-top: 4px; white-space: pre-wrap; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; color: var(--muted); border-bottom: 2px solid transparent; font-weight: 600; font-size: .9rem; }
.tabs a.on { color: var(--navy); border-bottom-color: var(--gold); }
.tabs a:hover { text-decoration: none; color: var(--navy); }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 12px; font-size: .88rem; }

/* ---------- login */
.login-page { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at 70% 20%, #1c1c20 0%, var(--black) 60%); padding: 16px; }
.login-card { background: #111113; border: 1px solid #26262a; color: #e9eaec; border-radius: 16px; padding: 36px 32px; width: 100%; max-width: 410px; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.login-card label { color: #a9abb1; }
.login-card input { background: #18181b; border-color: #3a3a3e; color: #e9eaec; }
.login-card input:focus { border-color: var(--gold); }
.login-card .btn { background: var(--gold); color: var(--black); font-weight: 700; letter-spacing: .04em; }
.login-card .btn:hover { background: #e0b44a; }
.login-card .hint, .login-card .muted { color: #8c8e94; }
.login-card .callout { color: var(--text); }
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 26px; text-align: center; }
.login-brand img.mark-lg { width: 84px; height: 84px; }
.login-brand .wordmark { font-size: 1.7rem; }
.login-brand .tagline { font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.login-foot { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; color: #8c8e94; font-size: .8rem; }
.login-foot img { width: 40px; height: 40px; border-radius: 50%; }
.login-card .brand-lg { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }

.login-card .brand-lg strong { font-size: 1.2rem; color: var(--navy); display: block; }

/* ---------- responsivo */
@media (max-width: 1100px) {
  .grid-side { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 40; transform: translateX(-100%); transition: transform .2s ease; }
  body.nav-open .sidebar { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.35); }
  body.nav-open .scrim { display: block; }
  .scrim { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 30; }
  .topbar { display: flex; align-items: center; gap: 12px; background: var(--navy); color: #fff; padding: 10px 16px; position: sticky; top: 0; z-index: 20; }
  .topbar button { background: none; border: 0; color: #fff; font-size: 1.4rem; cursor: pointer; padding: 0 4px; }
  .topbar strong { font-size: 1rem; }
  .content { padding: 16px 16px 40px; }
  .demo-banner { padding: 7px 16px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  dl.kv { grid-template-columns: 110px 1fr; }
  .offer-grid .offer { grid-template-columns: 1fr 130px; }
  /* tabelas viram cartões no celular */
  table.responsive thead { display: none; }
  table.responsive, table.responsive tbody, table.responsive tr, table.responsive td { display: block; width: 100%; }
  table.responsive tr { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; background: #fff; padding: 6px 0; }
  table.responsive td { border: 0; padding: 4px 12px; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  table.responsive td::before { content: attr(data-label); color: var(--muted); font-size: .78rem; text-align: left; flex-shrink: 0; }
  table.responsive td.num { text-align: right; }
  table.responsive tr.row-danger { border-left: 4px solid var(--danger); }
}
@media print {
  .sidebar, .topbar, .demo-banner, .actions, .filters, form { display: none !important; }
  .content { padding: 0; }
}
.narrow { max-width: 560px; }
.spaced { margin-top: 18px; }
.section-title { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:10px; flex-wrap:wrap; }
.section-title h2 { margin:0; }
.stack > * + * { margin-top: 16px; }
code { background:#eef2f7; padding:1px 5px; border-radius:4px; font-size:.85em; }
.spaced-sm { margin-top: 6px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar { display:flex; flex-wrap:wrap; gap:12px; align-items:flex-end; padding:12px; background:#f8fafc; border:1px solid var(--line); border-radius:8px; margin-bottom:12px; }
.toolbar .field { margin:0; min-width:180px; }
[hidden] { display:none !important; }
.grid > .card + .card, .stack > .card + .card { margin-top: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* ---------- atividade da equipe */
.tabs-inline { border-bottom: 0; margin: 0; }
.team-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.team-card { display: block; color: inherit; margin: 0 !important; }
.team-card:hover { text-decoration: none; border-color: var(--navy-3); }
.team-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.team-name { flex: 1; min-width: 0; }
.team-name strong { display: block; color: var(--navy); }
.team-name small { color: var(--muted); font-size: .8rem; }
.dot-status { font-size: .74rem; font-weight: 600; padding: 2px 9px 2px 20px; border-radius: 999px; position: relative; background: #eef2f7; color: #475467; white-space: nowrap; vertical-align: middle; }
.dot-status::before { content: ""; position: absolute; left: 8px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #98a2b3; }
.dot-status.online { background: var(--ok-soft); color: var(--ok); }
.dot-status.online::before { background: #22a861; box-shadow: 0 0 0 3px rgba(34,168,97,.2); }
.dot-status.inativo { background: var(--danger-soft); color: var(--danger); }
.dot-status.inativo::before { background: var(--danger); }
h1 .dot-status { font-size: .78rem; margin-left: 6px; }
dl.kv.compact { grid-template-columns: 100px 1fr; font-size: .85rem; margin-bottom: 12px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-stats div { background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; padding: 8px; font-size: .74rem; color: var(--muted); line-height: 1.25; }
.mini-stats span { display: block; font-size: 1.2rem; font-weight: 700; color: var(--navy); }
.mini-stats .warn { background: var(--warn-soft); }
.mini-stats .warn span { color: var(--warn); }
.mini-stats .danger { background: var(--danger-soft); }
.mini-stats .danger span { color: var(--danger); }
.team-link { display: block; margin-top: 12px; font-size: .85rem; color: var(--navy-3); font-weight: 600; }
.filter-chips a:hover { text-decoration: none; }
.filter-chips .badge { padding: 4px 11px; }
.timeline li.ev-alerta::before { border-color: var(--danger); background: var(--danger-soft); }
.timeline li.ev-exportacao::before { border-color: var(--gold); background: var(--gold-soft); }
.timeline li.ev-acesso::before { border-color: #22a861; }
.viewing-as { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- central de ajuda */
.help-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 25; width: 48px; height: 48px; border-radius: 50%;
  background: var(--gold); color: var(--navy); font-weight: 800; font-size: 1.35rem; display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(11,37,69,.28); border: 2px solid #fff;
}
.help-fab:hover { text-decoration: none; background: #b8931f; }
.help-fab-inline { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: var(--navy); font-weight: 800; font-size: .75rem; }
.help-hero { background: linear-gradient(135deg, var(--black) 0%, #24242a 100%); color: #dcdde0; border-radius: 14px; padding: 26px 28px; margin-bottom: 22px; }
.help-hero h1 { color: #fff; font-size: 1.6rem; }
.help-hero p { margin: 6px 0 0; max-width: 720px; }
.help-hero .hint { color: #b8c7dc; }
.help-group { margin: 22px 0 12px; }
.help-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.help-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: inherit; display: flex; flex-direction: column; }
.help-card:hover { text-decoration: none; border-color: var(--navy-3); transform: translateY(-1px); }
.help-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--navy-2); overflow: hidden; }
.help-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; opacity: .9; }
.help-thumb .play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(10,10,11,.82); color: var(--gold); display: grid; place-items: center; font-size: 1.15rem; padding-left: 3px; }
.help-thumb .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.72); color: #fff; font-size: .75rem; padding: 2px 7px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.help-body { padding: 14px 16px 16px; }
.help-body strong { color: var(--navy); display: block; }
.help-body p { margin: 4px 0 8px; font-size: .88rem; color: #344054; }
.help-body small { color: var(--muted); font-size: .78rem; }
.help-layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.help-video { padding: 0; overflow: hidden; }
.help-video video { width: 100%; display: block; background: #000; aspect-ratio: 16 / 9; }
.help-video-bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 16px; font-size: .85rem; color: var(--muted); }
.help-steps { list-style: none; padding: 0; margin: 0; }
.help-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.help-steps li:first-child { border-top: 0; padding-top: 4px; }
.step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-weight: 700; }
.step-content p { margin: 4px 0 10px; font-size: .95rem; }
.step-content img { width: 100%; border: 1px solid var(--line); border-radius: 8px; display: block; }
details.faq { border-top: 1px solid var(--line); padding: 10px 0; }
details.faq:first-of-type { border-top: 0; }
details.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); font-size: .92rem; }
details.faq p { margin: 8px 0 0; font-size: .9rem; color: #344054; }
.help-nav { display: flex; flex-direction: column; gap: 10px; }
.help-nav a { display: block; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-weight: 600; }
.help-nav a small { display: block; color: var(--muted); font-weight: 400; }
.help-nav a.next { text-align: right; }
@media (max-width: 1100px) { .help-layout { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .help-fab { right: 14px; bottom: 14px; } .help-hero { padding: 20px; } }
@media print { .help-fab { display: none; } }
.field-wide { grid-column: span 3; }
@media (max-width: 860px) { .field-wide { grid-column: auto; } }
tr.muted td { opacity: .6; }
.stat .value.value-sm { font-size: 1.3rem; }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); }
@media (max-width: 860px) { .grid-auto { grid-template-columns: 1fr; } }
.commission-bar { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 8px 28px 0; font-size: .82rem; color: var(--muted); }
@media (max-width: 860px) { .commission-bar { padding: 8px 16px 0; } }
@media print { .commission-bar { display: none !important; } }

/* ---------- esteira */
.esteira-filters .filters { margin: 10px 0; }
.period-links { display: flex; gap: 6px; flex-wrap: wrap; }
.period-links .badge { padding: 5px 12px; font-size: .8rem; }
.period-links a:hover { text-decoration: none; }
.toggle-group { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 8px; font-size: .88rem; }
.toggle-title { font-weight: 700; color: var(--navy); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.toggle { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; margin: 0; background: #f3f6fa; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.toggle b { color: var(--navy); }
.inline-select { width: auto; min-width: 200px; }
.total-bar { position: sticky; bottom: 0; display: flex; gap: 24px; flex-wrap: wrap; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; margin-top: 10px; font-size: .9rem; }
.hbar { margin-bottom: 10px; }
.hbar-label { display: flex; justify-content: space-between; gap: 10px; font-size: .84rem; }
.hbar-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-label small { color: var(--muted); white-space: nowrap; }
.hbar-track { height: 8px; background: #eef2f7; border-radius: 999px; margin-top: 3px; overflow: hidden; }
.hbar-fill { height: 100%; background: var(--navy-3); border-radius: 999px; width: 0; }
textarea#wa-text { font-family: inherit; min-height: 220px; }
.print-only { display: none; }
@media print {
  .no-print, .help-fab, .total-bar { display: none !important; }
  .print-only { display: block; }
  @page { size: A4 landscape; margin: 12mm; }
  .card { box-shadow: none; break-inside: avoid; }
}

/* ---------- esteira no painel e ações rápidas */
.esteira-stat small { display: block; color: var(--danger, #b42318); font-weight: 600; font-size: .78rem; }
.pend-card { border-left: 4px solid var(--danger, #b42318); }
.pend-card h2 small { font-weight: 400; font-size: .85rem; }
.esteira-outdated { margin-bottom: 14px; }
.row-actions { white-space: nowrap; }
.row-actions .btn { padding: 4px 9px; margin: 1px 0; }
.esteira-table small.reason { color: var(--muted); display: inline-block; max-width: 220px; }

/* ---------- botão Voltar */
.back-link { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 6px 14px; border: 1px solid var(--line, #d5dbe3);
  border-radius: 999px; background: #fff; color: var(--navy); font-weight: 600; font-size: .88rem; text-decoration: none; }
.back-link:hover { background: var(--navy); color: #fff; text-decoration: none; }

/* ---------- relatório individual */
.period-card { padding: 12px 18px; }
.period-card .period-links { align-items: center; }
.period-card .filters { margin: 10px 0 0; }
.collab-comm { border-left: 4px solid var(--gold, #c9a227); }
.ok-stat .value { color: #13795b; }
.indicator-stats .stat .value { font-size: 1.5rem; }
.person-card { text-decoration: none; color: inherit; }
.person-card.inactive { opacity: .6; }
.person-stats { display: flex; gap: 18px; margin: 12px 0; }
.person-stats div { display: flex; flex-direction: column; }
.person-stats b { font-size: 1.1rem; color: var(--navy); }
.radio-line { display: block; font-weight: 400; margin: 4px 0; }
.note-row td { padding-top: 0; border-top: 0; }

/* ---------- marca Radar SPM */
.brand .logo img { width: 34px; height: 34px; flex-shrink: 0; }
.wordmark { font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: #e9eaec; white-space: nowrap; }
.wordmark b { color: var(--gold); font-weight: 700; }
.brand .wordmark { font-size: 1rem; }
.topbar .wordmark { font-size: .95rem; }
.topbar img { width: 26px; height: 26px; }
.print-brand { display: none; }
@media print {
  .print-brand { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid #d4a63a; padding-bottom: 8px; margin-bottom: 14px; }
  .print-brand .wordmark { color: #141416; font-size: 14pt; }
  .print-brand .wordmark b { color: #8a6a12; }
  .print-brand small { color: #5f6066; }
}
.login-card .callout { margin-top: 14px; }

/* ---------- dicas ⓘ */
.tip { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #e2e1dc; color: #4a4b50;
  font: 700 .66rem/1 Georgia, serif; font-style: italic; margin-left: 4px; cursor: help; position: relative; vertical-align: 1px;
  text-transform: none; letter-spacing: 0; }
.tip:hover, .tip:focus { background: var(--gold); color: var(--black); outline: none; }
.tip:hover::after, .tip:focus::after { content: attr(data-tip); position: absolute; left: -10px; bottom: calc(100% + 8px); width: max-content; max-width: 280px;
  background: #141416; color: #f1f1f2; padding: 9px 11px; border-radius: 8px; font: 400 .8rem/1.4 "Segoe UI", system-ui, sans-serif;
  font-style: normal; z-index: 80; white-space: normal; box-shadow: 0 8px 24px rgba(0,0,0,.25); pointer-events: none; }
@media (max-width: 860px) { .tip:hover::after, .tip:focus::after { max-width: 220px; } }
@media print { .tip { display: none; } }

/* ---------- tour de boas-vindas */
.tour-spot { position: fixed; z-index: 90; border-radius: 12px; box-shadow: 0 0 0 4px var(--gold), 0 0 0 9999px rgba(10,10,11,.62);
  transition: all .25s ease; pointer-events: none; }
.tour-pop { position: fixed; z-index: 91; width: 340px; max-width: calc(100vw - 32px); background: #fff; color: var(--text); border-radius: 14px;
  padding: 18px 20px 16px; box-shadow: 0 20px 50px rgba(0,0,0,.35); border-top: 4px solid var(--gold); }
.tour-pop h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--navy); }
.tour-pop p { margin: 0 0 14px; font-size: .92rem; line-height: 1.5; }
.tour-pop .tour-foot { display: flex; align-items: center; gap: 8px; }
.tour-pop .tour-count { font-size: .78rem; color: var(--muted); margin-right: auto; }

/* ---------- cobrança ao banco */
.sel-col { width: 34px; text-align: center; }
.sel-col input { width: 18px; height: 18px; accent-color: var(--gold-dark); }
.cobranca-card { border-left: 4px solid var(--gold); }
.letter { max-width: 1200px; }
.letter-head { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid var(--gold); padding-bottom: 12px; margin-bottom: 16px; }
.letter-head img { width: 56px; height: 56px; border-radius: 50%; }
.letter-table { font-size: .84rem; }
.letter-table td, .letter-table th { padding: 7px 8px; }
@media print {
  .letter { box-shadow: none; border: 0; padding: 0; }
  .letter-table { font-size: 8pt; width: 100%; table-layout: auto; }
  .card.letter { break-inside: auto !important; }
  .letter .table-wrap { overflow: visible !important; }
  .letter-table tr { break-inside: avoid; }
  .letter-table thead { display: table-header-group; }
  .letter-table td, .letter-table th { padding: 4px 5px; }
  .letter-table tfoot { display: table-row-group; }
  .letter-table td:nth-child(4) { min-width: 120px; }
  body.page-letter .print-brand { display: none !important; }
  .letter-table th { background: #eee !important; color: #000 !important; }
  @page { size: A4 landscape; margin: 12mm; }
}
.letter-table td.nowrap { white-space: nowrap; }
.status-checks { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.status-checks label { font-weight: 400; }

/* relatório semanal da esteira */
.sit { display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; background: #eef2f7; color: #344054; }
.sit-paga { background: var(--ok-soft); color: var(--ok); }
.sit-pagamento { background: var(--info-soft); color: var(--info); }
.sit-averbacao { background: var(--gold-soft); color: #6b5300; }
.sit-pendenciada { background: var(--warn-soft); color: var(--warn); }
.sit-cancelada { background: var(--danger-soft); color: var(--danger); }
.text-danger { color: var(--danger); }
.text-warn { color: var(--warn); }
dl.kv.kv-wide { grid-template-columns: minmax(0, 1fr) auto; }
dl.kv.kv-wide dd { text-align: right; font-variant-numeric: tabular-nums; }
tr.muted td { color: var(--muted); }
.weekly-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.weekly-link p { margin: 4px 0 0; }
@media print { .grid-2, .grid-auto { break-inside: avoid; } }
.weekly-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.weekly-sit td.num, .weekly-sit th.num, .weekly-dig td.num { white-space: nowrap; }
.weekly-sit { font-size: .9rem; }
.weekly-dig td:first-child { min-width: 160px; }
@media (max-width: 900px) { .weekly-grid { grid-template-columns: 1fr; } }
.weekly-sit tr.zero td { color: var(--muted); }
.stat.ok { border-left: 4px solid var(--ok); }
.stat.ok .value { color: var(--ok); }
dl.kv.kv-2col { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; column-gap: 28px; }
@media (max-width: 900px) { dl.kv.kv-2col { grid-template-columns: minmax(0, 1fr) auto; } }
.personalize summary { cursor: pointer; padding: 2px 0; }
.personalize form { margin-top: 14px; }
.personalize-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 12px 0; }
.personalize fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 0; }
.personalize legend { font-weight: 600; font-size: .85rem; padding: 0 4px; }
.personalize fieldset label { display: block; font-size: .9rem; padding: 3px 0; }
.report-obs { background: var(--gold-soft); border-left: 4px solid var(--gold); white-space: pre-line; }

/* relatório da esteira (modelo HatchBank) */
.rel-select .filters { margin-bottom: 8px; }
.rel-cols { margin: 6px 0 12px; }
.rel-cols summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.cols-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 14px; margin-top: 8px; }
.rel-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 12px; }
.rel-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hb-table { font-size: .84rem; }
.hb-table th { white-space: nowrap; }
.hb-table td { vertical-align: top; }
.hb-table tr.is-cancel td { color: var(--muted); }
.hb-table td.nowrap { white-space: nowrap; }
@media print {
  .hb-table { font-size: 7.5pt; }
  .hb-table th, .hb-table td { padding: 3px 4px; }
  .rel-card { box-shadow: none; border: 0; padding: 0; break-inside: auto !important; }
  .hb-table thead { display: table-header-group; }
  .hb-table tfoot { display: table-row-group; }
}
.grupo-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 4px 14px; margin: 6px 0; }
.grupo-checks label { font-size: .92rem; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.grupo-checks label:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.grupo-checks b { float: right; font-weight: 600; }
.modo-row { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: .88rem; margin: 6px 0 12px; }
.grupo-resumo { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 10px; }
.grupo-resumo .stat { box-shadow: none; padding: 10px 12px; }

/* relatório da esteira: tabela legível na tela e no PDF */
.hb-table { table-layout: fixed; width: 100%; }
.hb-table td.wrap, .hb-table td { overflow-wrap: anywhere; word-break: normal; }
.hb-table th { white-space: normal; line-height: 1.2; vertical-align: bottom; }
.hb-table .hora { color: var(--muted); font-size: .85em; }
.hb-table tr.grupo-head td { background: #141416; color: #fff; font-weight: 700; padding: 7px 10px; }
.hb-table tr.grupo-head span { font-weight: 400; color: #d9d9dd; }
.hb-table .badge { white-space: normal; text-align: left; }
@media print {
  .rel-card .grupo-resumo { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .rel-card .grupo-resumo .stat { padding: 6px 8px; border: 1px solid #ccc; }
  .rel-card .grupo-resumo .value { font-size: 13pt; }
  .hb-table { font-size: 8.5pt !important; }
  .hb-table th { font-size: 7.5pt; text-transform: none; letter-spacing: 0; padding: 4px 4px !important; border-bottom: 1.5px solid #141416; }
  .hb-table td { padding: 4px 4px !important; border-bottom: 1px solid #ddd; }
  .hb-table tr { break-inside: avoid; }
  .hb-table tr.grupo-head td { -webkit-print-color-adjust: exact; print-color-adjust: exact; padding: 5px 6px !important; }
  .hb-table tbody.grupo { break-inside: auto; }
  .hb-table .hora { display: none; }
  .hb-table .badge { background: none !important; padding: 0; font-weight: 600; color: #141416 !important; font-size: 8pt; }
  .hb-table a { color: #141416; text-decoration: none; }
  .rel-select, .period-card { display: none !important; }
}
@media print {
  .hb-table { font-size: 8pt !important; }
  .hb-table td.nowrap { white-space: nowrap; overflow: hidden; text-overflow: clip; }
}
@media print {
  .rel-card .table-wrap { overflow: visible !important; }
  .hb-table th { overflow-wrap: anywhere; }
  .hb-table tfoot td { white-space: nowrap; overflow: visible !important; }
  .hb-table tfoot td:first-child { white-space: nowrap; }
}

/* uma página por opção */
.rel-page { margin-top: 22px; }
.rel-page-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 1.1rem; border-bottom: 2px solid var(--gold); padding-bottom: 6px; }
.rel-page-title small { font-family: inherit; font-weight: 400; color: var(--muted); font-size: .85rem; }
.rel-page-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #141416; color: #fff; font-size: .8rem; }
@media print {
  .rel-page { margin-top: 0; }
  .rel-page + .rel-page { break-before: page; }
  .rel-page-title { font-size: 12pt; margin: 0 0 8px; }
  .rel-page-n { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* capa do relatório */
.capa { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px 30px; margin-bottom: 18px; color: #141416; }
.capa-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; border-bottom: 2px solid var(--gold); padding-bottom: 14px; }
.capa-kicker { margin: 0; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; }
.capa-title { margin: 4px 0 2px; font-size: 2.1rem; line-height: 1.1; }
.capa-title span { color: var(--gold-dark); }
.capa-period { margin: 0; letter-spacing: .12em; text-transform: uppercase; font-size: .82rem; color: #5f6066; }
.capa-brand { text-align: right; }
.capa-brand img { height: 64px; display: block; margin-left: auto; }
.capa-brand em { display: block; font-family: Georgia, serif; color: var(--gold-dark); margin-top: 4px; }
.capa-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0 12px; }
.capa-kpi { border-radius: 12px; padding: 14px 16px; border: 1px solid var(--line); background: #f7f7f5; display: flex; flex-direction: column; gap: 2px; }
.capa-kpi span { font-size: .85rem; font-weight: 600; }
.capa-kpi b { font-size: 2.3rem; line-height: 1.05; font-family: Poppins, sans-serif; }
.capa-kpi b.money { font-size: 1.45rem; }
.capa-kpi small { font-size: .8rem; color: #5f6066; }
.capa-kpi.dark { background: #141416; color: #fff; border-color: #141416; }
.capa-kpi.dark small { color: #c9c9cf; }
.capa-kpi.ok { border-left: 6px solid var(--ok); }
.capa-kpi.ok b { color: var(--ok); }
.capa-kpi.bad { border-left: 6px solid var(--danger); }
.capa-kpi.bad b { color: var(--danger); }
.capa-kpi.gold { border-left: 6px solid var(--gold); background: #fbf6e8; }
.capa-mid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; }
.capa-box { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #f7f7f5; }
.capa-box h3 { margin: 0 0 8px; font-size: 1.05rem; }
.capa-box h3 small { font-weight: 400; color: #5f6066; font-size: .8rem; }
.capa-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.capa-list li { background: #fff; border-radius: 8px; padding: 6px 10px; display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.capa-list li b { background: #141416; color: #fff; border-radius: 999px; padding: 2px 9px; font-size: .85rem; }
.capa-money { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.capa-geral { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 12px; padding: 12px 16px; border-radius: 12px; background: #f7f7f5; border: 1px solid var(--line); font-size: .92rem; }
.capa-geral b { display: inline-block; margin-left: 6px; background: #141416; color: #fff; border-radius: 8px; padding: 2px 10px; font-size: 1.05rem; }
.capa-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding: 12px 16px; border-radius: 12px; background: #141416; color: #fff; }
.capa-foot strong { color: var(--gold); }
.capa-foot small { color: #c9c9cf; }
@media (max-width: 800px) { .capa-kpis, .capa-mid, .capa-money { grid-template-columns: 1fr 1fr; } .capa-mid { grid-template-columns: 1fr; } }
@media print {
  .capa { break-after: page; border: 0; padding: 0; margin: 0; }
  .capa, .capa * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .capa-title { font-size: 26pt; }
  .capa-kpi b { font-size: 26pt; }
  .capa-kpi b.money { font-size: 15pt; }
  body:has(.capa) .print-brand { display: none; }
  body:has(.capa) .page-head { display: none; }
}
.capa-brand img { height: 84px; border-radius: 8px; }
@media print {
  .capa { min-height: 182mm; display: flex; flex-direction: column; }
  .capa-mid { flex: 1; }
  .capa-kpis { margin: 7mm 0 4mm; }
  .capa-kpi { padding: 5mm 6mm; }
  .capa-list li { font-size: 11pt; padding: 2.5mm 4mm; }
  .capa-geral, .capa-foot { margin-top: 4mm; font-size: 11pt; }
}
.capa-money .capa-kpi { justify-content: center; }
@media print { .capa-money .capa-kpi b.money { font-size: 22pt; } .capa-money .capa-kpi span { font-size: 12pt; } }
/* capa: sempre uma única página A4 deitada, independente da largura da janela */
@media print {
  .capa { box-sizing: border-box; height: 178mm !important; min-height: 0 !important; max-height: 178mm; overflow: hidden;
          display: grid !important; grid-template-rows: auto auto 1fr auto auto; gap: 3.5mm; padding: 0 !important;
          break-inside: avoid; page-break-inside: avoid; break-after: page; page-break-after: always; font-size: 10pt; }
  .capa-head { display: flex !important; padding-bottom: 3mm; }
  .capa-kicker { font-size: 7.5pt; }
  .capa-title { font-size: 24pt !important; margin: 1mm 0; }
  .capa-period { font-size: 8.5pt; }
  .capa-brand img { height: 20mm !important; }
  .capa-brand em { font-size: 10pt; }
  .capa-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 3mm !important; margin: 0 !important; }
  .capa-kpi { padding: 3.5mm 4.5mm !important; border-radius: 3mm; }
  .capa-kpi span { font-size: 9.5pt !important; }
  .capa-kpi b { font-size: 24pt !important; }
  .capa-kpi small { font-size: 8pt !important; }
  .capa-mid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) !important; gap: 3mm !important; min-height: 0; overflow: hidden; }
  .capa-box { padding: 3.5mm 4.5mm !important; overflow: hidden; }
  .capa-box h3 { font-size: 12pt; margin-bottom: 2mm; }
  .capa-list { gap: 1.8mm !important; }
  .capa-list li { font-size: 10pt !important; padding: 1.6mm 3mm !important; }
  .capa-money { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 3mm !important; min-height: 0; }
  .capa-money .capa-kpi b.money { font-size: 17pt !important; }
  .capa-money .capa-kpi span { font-size: 10pt !important; }
  .capa-geral, .capa-foot { margin: 0 !important; padding: 2.8mm 4.5mm !important; font-size: 9.5pt !important; }
  .capa-geral b { font-size: 10.5pt; }
}
@media print { .capa { padding: 0 1.5mm !important; } .capa-kicker { letter-spacing: .12em; } }

/* PDF: linhas baixas para cada opção caber na sua página */
.hb-table .cell-tabela { font-size: .9em; }
@media print {
  .hb-table { font-size: 7.6pt !important; line-height: 1.22; }
  .hb-table th { font-size: 7pt !important; padding: 2.5px 3px !important; }
  .hb-table td { padding: 2.5px 3px !important; }
  .hb-table .cell-tabela { font-size: 6.8pt; color: #333; }
  .hb-table td small { font-size: 6.8pt; }
  body:has(.capa) .rel-summary, body:has(.capa) .grupo-resumo, body:has(.capa) .rel-chips { display: none !important; }
  .rel-card .hint { display: none; }
  .rel-page-title { font-size: 11pt !important; margin-bottom: 2mm !important; padding-bottom: 1.5mm; }
  .rel-page-n { width: 5.5mm; height: 5.5mm; font-size: 8pt; }
}
@media print {
  .hb-table { font-size: 8.6pt !important; line-height: 1.25; }
  .hb-table th { font-size: 7.6pt !important; padding: 3px 3px !important; }
  .hb-table td { padding: 3.2px 3px !important; }
  .hb-table .cell-tabela { font-size: 7.4pt; }
}
@media print { .hb-table th { overflow-wrap: normal; word-break: normal; hyphens: none; } }
@media print { .hb-table .cell-tabela { font-size: 7pt; line-height: 1.2; } }
.rel-rodape { margin: 16px 0 0; padding-top: 8px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
@media print { .rel-rodape { display: block !important; font-size: 8pt; margin-top: 4mm; } .print-brand small { display: none; } }

/* capa: comissão detalhada */
.capa-money { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) !important; gap: 12px; align-items: stretch; }
.capa-money.no-comm { grid-template-columns: 1fr !important; }
.capa-prods { display: grid; gap: 10px; grid-auto-rows: 1fr; }
.capa-prods .capa-kpi { justify-content: center; }
.capa-comm { border: 1px solid var(--line); border-left: 6px solid var(--gold); border-radius: 12px; background: #fbf6e8; padding: 12px 16px; }
.capa-comm h3 { margin: 0 0 6px; font-size: 1.05rem; }
.capa-comm table { width: 100%; border-collapse: collapse; }
.capa-comm td { padding: 6px 0; border-bottom: 1px solid #ecdfbf; vertical-align: middle; }
.capa-comm tr:last-child td { border-bottom: 0; }
.capa-comm td strong { display: block; font-size: .92rem; }
.capa-comm td small { color: #5f6066; font-size: .76rem; }
.capa-comm td.num { text-align: right; font-weight: 700; font-size: 1.1rem; white-space: nowrap; font-family: Poppins, sans-serif; }
.capa-comm tr.ok td.num { color: var(--ok); }
.capa-comm tr.bad td.num { color: var(--danger); }
.capa-comm tr.gold td.num { color: var(--gold-dark); }
@media print {
  .capa-money { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) !important; gap: 3mm !important; }
  .capa-prods { gap: 3mm; }
  .capa-comm { padding: 3mm 4.5mm; }
  .capa-comm h3 { font-size: 11.5pt; margin-bottom: 1mm; }
  .capa-comm td { padding: 1.4mm 0; }
  .capa-comm td strong { font-size: 9.5pt; }
  .capa-comm td small { font-size: 7.5pt; }
  .capa-comm td.num { font-size: 12.5pt; }
  .capa-prods .capa-kpi b.money { font-size: 17pt !important; }
}

.capa-kpis.kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.capa-prods { grid-auto-rows: auto; align-content: stretch; }
.capa-prod { background: #141416; color: #fff; border-radius: 12px; padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; }
.capa-prod-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-bottom: 1px solid #3a3a3e; padding-bottom: 6px; }
.capa-prod-head span { font-weight: 600; font-size: .95rem; }
.capa-prod-head b { font-family: Poppins, sans-serif; font-size: 1.35rem; color: var(--gold); }
.capa-prod dl { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; margin: 0; font-size: .84rem; }
.capa-prod dt { color: #c9c9cf; }
.capa-prod dd { margin: 0; text-align: right; font-weight: 600; }
.capa-prod ul { list-style: none; margin: 4px 0 0; padding: 6px 0 0; border-top: 1px dashed #3a3a3e; font-size: .78rem; display: grid; gap: 2px; }
.capa-prod li { display: flex; justify-content: space-between; gap: 8px; color: #c9c9cf; }
.capa-prod li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.capa-prod li b { color: #fff; white-space: nowrap; font-weight: 600; }
.capa-prod p { margin: 0; color: #c9c9cf; font-size: .85rem; }
.capa-comm tr.total td { border-top: 2px solid var(--gold); border-bottom: 0; padding-top: 7px; }
.capa-comm tr.total td.num { font-size: 1.25rem; }
@media print {
  .capa-kpis.kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .capa-prod { padding: 3mm 4.5mm; gap: 1.5mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .capa-prod-head span { font-size: 10.5pt; }
  .capa-prod-head b { font-size: 15pt; }
  .capa-prod dl { font-size: 8.8pt; }
  .capa-prod ul { font-size: 8pt; }
  .capa-comm tr.total td.num { font-size: 13.5pt; }
}
.capa-prod-head { flex-direction: column; align-items: flex-start; gap: 0; }
.capa-prod-head b { white-space: nowrap; }
.capa-comm tr.total td { background: transparent !important; }
.capa-kpi small.kpi-line { display: flex; justify-content: space-between; gap: 8px; }
.capa-kpi small.kpi-line strong { color: #141416; white-space: nowrap; }
@media print { .capa-kpi small.kpi-line { font-size: 8.8pt !important; } }
.capa-comm h3 small { font-weight: 400; color: #5f6066; font-size: .78rem; }
.capa-comm-note { margin: 4px 0 0; font-size: .72rem; color: #5f6066; }
@media print { .capa-comm h3 small { font-size: 8pt; } .capa-comm-note { font-size: 7pt; } }
.capa-comm h3 small { display: block; margin-top: 1px; }

/* capa v2: produção, dinheiro, travado */
.capa2 .c2-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 12px; margin: 16px 0 12px; }
.c2-big { border-radius: 14px; padding: 16px 20px; border: 1px solid var(--line); background: #f7f7f5; display: flex; flex-direction: column; gap: 2px; }
.c2-big span { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.c2-big b { font-family: Poppins, sans-serif; font-size: 2rem; line-height: 1.15; white-space: nowrap; }
.c2-big small { font-size: .85rem; color: #5f6066; }
.c2-big.dark { background: #141416; color: #fff; border-color: #141416; }
.c2-big.dark small { color: #c9c9cf; }
.c2-big.dark b { color: var(--gold); }
.c2-big.ok { border-left: 6px solid var(--ok); }
.c2-big.ok b { color: var(--ok); }
.c2-big.gold { border-left: 6px solid var(--gold); background: #fbf6e8; }
.c2-big.gold b { color: var(--gold-dark); }
.c2-big.gold strong { color: #141416; }
.c2-bar-box { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.c2-bar-title { font-weight: 700; margin-bottom: 8px; }
.c2-bar { display: flex; height: 38px; border-radius: 10px; overflow: hidden; background: #eee; }
.c2-seg { display: flex; align-items: center; justify-content: center; min-width: 0; flex: 0 0 auto; color: #fff; font-size: .82rem; white-space: nowrap; overflow: hidden; }
.c2-seg span { padding: 0 6px; overflow: hidden; text-overflow: ellipsis; }
.c2-seg b { font-size: 1rem; margin-left: 3px; }
.c2-seg.ok { background: var(--ok); } .c2-seg.gold { background: var(--gold); color: #141416; } .c2-seg.dark { background: #3a3a3e; }
.c2-seg.warn { background: #c27a00; } .c2-seg.bad { background: var(--danger); }
.c2-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: .82rem; }
.c2-legend span.zero { color: #9a9aa0; }
.c2-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.c2-legend i.ok { background: var(--ok); } .c2-legend i.gold { background: var(--gold); } .c2-legend i.dark { background: #3a3a3e; }
.c2-legend i.warn { background: #c27a00; } .c2-legend i.bad { background: var(--danger); }
.c2-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.c2-prod, .c2-acao { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.c2-prod h3, .c2-acao h3 { margin: 0 0 8px; font-size: 1rem; }
.c2-prod-row { display: flex; justify-content: space-between; font-size: 1rem; border-bottom: 1px solid var(--line); padding-bottom: 4px; margin-bottom: 4px; }
.c2-prod-row b { font-family: Poppins, sans-serif; color: var(--gold-dark); }
.c2-prod-sub { display: flex; justify-content: space-between; font-size: .84rem; color: #444; padding: 1px 0 1px 10px; }
.c2-prod-meta { font-size: .78rem; color: #5f6066; margin: 4px 0 8px; }
.c2-acao { border-left: 6px solid var(--danger); background: #fdf6f5; }
.c2-acao-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid #f0dcd9; }
.c2-acao-row:last-child { border-bottom: 0; }
.c2-acao-row span { font-weight: 600; font-size: .92rem; }
.c2-acao-row small { display: block; font-weight: 400; color: #5f6066; font-size: .76rem; }
.c2-acao-row b { font-family: Poppins, sans-serif; font-size: 1.5rem; min-width: 46px; text-align: center; background: #141416; color: #fff; border-radius: 10px; padding: 2px 8px; }
.c2-acao-row.gold b { background: var(--gold); color: #141416; }
.c2-acao-row.warn b { background: #c27a00; }
.c2-acao-row.bad b { background: var(--danger); }
@media (max-width: 800px) { .capa2 .c2-hero, .c2-bottom { grid-auto-flow: row; grid-template-columns: 1fr; } }
@media print {
  .capa2 { grid-template-rows: auto auto auto 1fr auto !important; }
  .capa2 .c2-hero { grid-auto-flow: column !important; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)) !important; gap: 3.5mm; margin: 0 !important; }
  .c2-big { padding: 4mm 5mm; }
  .c2-big span { font-size: 8pt; }
  .c2-big b { font-size: 22pt; }
  .c2-big small { font-size: 9pt; }
  .c2-bar-box { padding: 3mm 4.5mm; }
  .c2-bar-title { font-size: 10.5pt; margin-bottom: 2mm; }
  .c2-bar { height: 10mm; }
  .c2-seg { font-size: 8.5pt; }
  .c2-legend { font-size: 8.5pt; margin-top: 2mm; }
  .c2-bottom { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; gap: 3.5mm; margin: 0 !important; min-height: 0; overflow: hidden; }
  .c2-prod, .c2-acao { padding: 3mm 4.5mm; }
  .c2-prod h3, .c2-acao h3 { font-size: 11pt; margin-bottom: 2mm; }
  .c2-prod-row { font-size: 10.5pt; }
  .c2-prod-sub { font-size: 9pt; }
  .c2-prod-meta { font-size: 8pt; }
  .c2-acao-row { padding: 1.5mm 0; }
  .c2-acao-row span { font-size: 10pt; }
  .c2-acao-row small { font-size: 8pt; }
  .c2-acao-row b { font-size: 15pt; }
  .capa2 *, .c2-seg, .c2-legend i { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.c2-big.ok strong { color: #141416; }

/* capa v3: um bloco por opção marcada */
.capa3 { display: flex; flex-direction: column; gap: 14px; }
.c3-grid { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); flex: 1; align-content: start; }
.c3-grid.c3-n1 { grid-template-columns: minmax(0, 1fr); } .c3-grid.c3-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.c3-grid.c3-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.c3-bloco { border: 1px solid var(--line); border-top: 8px solid #141416; border-radius: 14px; padding: 14px 18px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.c3-bloco.ok { border-top-color: var(--ok); } .c3-bloco.gold { border-top-color: var(--gold); }
.c3-bloco.bad { border-top-color: var(--danger); } .c3-bloco.warn { border-top-color: #c27a00; }
.c3-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.c3-head span { font-weight: 700; font-size: 1rem; }
.c3-head b { font-family: Poppins, sans-serif; font-size: 2.2rem; line-height: 1; }
.c3-bloco.ok .c3-head b { color: var(--ok); } .c3-bloco.gold .c3-head b { color: var(--gold-dark); } .c3-bloco.bad .c3-head b { color: var(--danger); }
.c3-bloco dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; margin: 0; font-size: .92rem; border-top: 1px solid var(--line); padding-top: 8px; }
.c3-bloco dt { color: #5f6066; }
.c3-bloco dd { margin: 0; text-align: right; font-weight: 600; white-space: nowrap; }
.c3-comm { margin-top: auto; border-radius: 10px; background: #141416; color: #fff; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.c3-comm span { font-size: .78rem; color: #c9c9cf; }
.c3-comm b { font-family: Poppins, sans-serif; font-size: 1.45rem; color: var(--gold); white-space: nowrap; }
.c3-comm small { font-size: .72rem; color: #c9c9cf; }
.c3-bloco.ok .c3-comm b { color: #7ee2a8; } .c3-bloco.bad .c3-comm b { color: #ff9a8f; }
@media (max-width: 800px) { .c3-grid, .c3-grid.c3-n3, .c3-grid.c3-n2 { grid-template-columns: 1fr 1fr; } }
@media print {
  .capa3 { display: flex !important; flex-direction: column; gap: 5mm; }
  .c3-grid { gap: 4mm; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .c3-grid.c3-n1 { grid-template-columns: minmax(0, 1fr) !important; } .c3-grid.c3-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .c3-grid.c3-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .c3-bloco { padding: 5mm 6mm; gap: 4mm; }
  .c3-head span { font-size: 12.5pt; }
  .c3-head b { font-size: 30pt; }
  .c3-bloco dl { font-size: 11pt; gap: 2mm 3mm; padding-top: 3mm; }
  .c3-comm { padding: 4mm 5mm; }
  .c3-comm span { font-size: 9pt; }
  .c3-comm b { font-size: 19pt; }
  .c3-comm small { font-size: 7.5pt; }
  .capa3 *, .c3-bloco { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media print {
  .c3-grid { flex: 1; align-content: stretch; grid-auto-rows: 1fr; }
  .c3-bloco { justify-content: space-between; padding: 7mm 7mm; }
  .c3-head span { font-size: 14pt; }
  .c3-head b { font-size: 38pt; }
  .c3-bloco dl { font-size: 12.5pt; gap: 3mm 3mm; padding-top: 5mm; }
  .c3-comm { padding: 6mm 6mm; }
  .c3-comm span { font-size: 10pt; }
  .c3-comm b { font-size: 24pt; }
}
@media print {
  .c3-grid { align-content: center; grid-auto-rows: auto; }
  .c3-bloco { justify-content: flex-start; }
  .c3-comm { margin-top: 3mm; }
}
.c3-aviso { margin: 0; padding: 8px 14px; border: 1px solid #ecdfbf; border-left: 4px solid var(--gold); border-radius: 8px; background: #fbf6e8; font-size: .85rem; color: #3a3a3e; }
@media print { .c3-aviso { font-size: 9.5pt; padding: 2.5mm 4mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.hb-table .badge { overflow-wrap: normal !important; word-break: keep-all; hyphens: none; white-space: normal; border-radius: 8px; line-height: 1.25; }

/* cores por status (tela e PDF) */
.hb-table .badge.st { font-weight: 600; border: 1px solid transparent; }
.badge.st.st-paga { background: #e3f3ea !important; color: #1f7a4d !important; border-color: #b7e0c8; }
.badge.st.st-averb { background: #fbf1d6 !important; color: #7a5c0f !important; border-color: #ecd593; }
.badge.st.st-pend { background: #fde9cc !important; color: #9a5600 !important; border-color: #f3c98a; }
.badge.st.st-cancel { background: #fbe4e2 !important; color: #b42318 !important; border-color: #f2b8b2; }
.badge.st.st-analise { background: #eeeef0 !important; color: #3a3a3e !important; border-color: #dcdce0; }
.hb-table tr.grupo-head.st-paga td { background: #1f7a4d; }
.hb-table tr.grupo-head.st-averb td { background: #b8891f; }
.hb-table tr.grupo-head.st-pend td { background: #b86a00; }
.hb-table tr.grupo-head.st-cancel td { background: #b42318; }
.hb-table tr.grupo-head.st-analise td { background: #3a3a3e; }
.hb-table tr.grupo-head td span { color: #fff; opacity: .9; }
@media print {
  .hb-table .badge.st { padding: 1px 5px !important; font-size: 7.6pt !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .hb-table tr.grupo-head td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media print {
  .hb-table { line-height: 1.16 !important; }
  .hb-table td { padding: 2.4px 3px !important; }
  .rel-rodape { margin-top: 2mm !important; padding-top: 1mm; }
}

/* Auditoria em português claro */
.audit-det { margin: 0; padding: 0; list-style: none; font-size: .86em; line-height: 1.35; }
.audit-det li + li { margin-top: 2px; }
.audit-table tr.ev-alerta td:first-child { box-shadow: inset 3px 0 0 var(--danger, #c0392b); }

/* Esteira: bloco Emitir relatório */
.emitir-card .grupo-checks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.emitir-card .grupo-checks label { font-weight: 500; font-size: .92em; }
.emitir-card details summary { cursor: pointer; }
.emitir-card details[open] summary { margin-bottom: 10px; }

/* Esteira: status com várias escolhas */
.multi-select { position: relative; display: inline-block; }
.multi-select > summary { list-style: none; cursor: pointer; min-width: 200px; max-width: 340px; padding: 7px 34px 7px 12px;
  border: 1px solid var(--line, #d0d4dc); border-radius: 8px; background: var(--card, #fff); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; position: relative; }
.multi-select > summary::-webkit-details-marker { display: none; }
.multi-select > summary::after { content: "▾"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); opacity: .7; }
.multi-select[open] > summary { border-color: var(--gold, #d4a531); }
.multi-select-list { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; min-width: 100%; width: max-content;
  max-width: 360px; background: var(--card, #fff); border: 1px solid var(--line, #d0d4dc); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; }
.multi-select-list label { display: flex; align-items: center; gap: 8px; padding: 4px 2px; cursor: pointer; font-weight: 500; }
.multi-select-list .hint { margin-top: 4px; }

/* Esteira: total segue a seleção */
.total-bar .total-label { font-weight: 700; text-transform: uppercase; font-size: .78em; letter-spacing: .04em; opacity: .75; }
.total-bar { align-items: center; }
.total-bar.is-selection { background: var(--gold, #d4a531); color: #141416; }
.total-bar.is-selection .total-label { opacity: 1; }
.esteira-table tr.row-selected td { background: #fdf8ea; }
.total-bar [data-sel-clear] { margin-left: auto; }
.multi-select-list b.zero { color: var(--muted, #9aa0aa); font-weight: 400; opacity: .6; }

/* Relatório individual: cartões com 4 números */
.person-stats-4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.person-stats-4 small { color: var(--muted); font-size: .8rem; }
.person-stats-4 .alerta b { color: var(--danger, #c0392b); }

/* Posicionamento no topo, recolhível */
details.cobranca-card > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
details.cobranca-card > summary::-webkit-details-marker { display: none; }
details.cobranca-card > summary h2 { margin: 0; }
details.cobranca-card > summary::after { content: "▾"; margin-left: auto; opacity: .6; }
details.cobranca-card[open] > summary::after { content: "▴"; }
details.cobranca-card[open] > summary { margin-bottom: 14px; }
details.cobranca-card[open] > summary .hint { display: none; }

.nowrap { white-space: nowrap; }
.esteira-table td[data-label="Datas"] small { white-space: nowrap; }

/* ---------------- Esteira reorganizada ---------------- */
.est-filtros { padding: 14px 18px; }
.est-filtros-form { display: flex; flex-direction: column; gap: 10px; }
.est-linha { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.est-rot { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; min-width: 64px; }
.est-linha input[type=date] { width: auto; }
.est-linha select, .est-linha input[type=search], .est-linha input[type=date] { height: 38px; padding: 6px 10px; }
.est-linha input[type=search] { flex: 1 1 220px; min-width: 180px; }
.est-linha .multi-select > summary { min-width: 190px; height: 38px; display: flex; align-items: center; }
.chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: #eef0f3; color: var(--navy, #141416); font-size: .82rem; font-weight: 600; text-decoration: none; }
.chip.on { background: var(--navy, #141416); color: #fff; }
.ms-modo { border-top: 1px solid var(--line, #e3e5ea); margin-top: 6px; padding-top: 6px; display: flex; flex-direction: column; gap: 2px; }
.ms-modo label { font-weight: 400; font-size: .86em; }

.est-quadros { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0 6px; }
.est-quadro { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--card, #fff); border: 1px solid var(--line, #e3e5ea);
  border-radius: 10px; text-decoration: none; color: inherit; border-left: 4px solid transparent; transition: box-shadow .15s, border-color .15s; }
.est-quadro:hover { box-shadow: 0 4px 14px rgba(0,0,0,.07); }
.est-quadro .lbl { font-size: .8rem; color: var(--muted); }
.est-quadro .n { font-size: 1.6rem; font-weight: 700; line-height: 1.15; }
.est-quadro .val { font-size: .86rem; font-weight: 600; }
.est-quadro .sub { font-size: .74rem; color: var(--muted); }
.est-quadro .comm { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line, #e3e5ea); font-size: .74rem; color: var(--muted); display: flex; flex-direction: column; }
.est-quadro .comm strong { font-size: .92rem; color: var(--navy, #141416); }
.est-quadro.ok { border-left-color: #2e8b57; }
.est-quadro.warn { border-left-color: var(--gold, #d4a531); }
.est-quadro.danger { border-left-color: var(--danger, #c0392b); }
.est-quadro.danger .n { color: var(--danger, #c0392b); }
.est-quadro.on { border-color: var(--navy, #141416); box-shadow: 0 0 0 2px var(--navy, #141416) inset; }
.est-aviso { margin: 0 0 8px; }
.callout.compact { padding: 8px 12px; font-size: .86rem; }

.est-lista-topo { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.est-lista-topo select { height: 34px; padding: 4px 10px; width: auto; }
.est-tabela td { vertical-align: top; }
.est-tabela .reason { display: inline-block; max-width: 260px; }

details.est-det > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
details.est-det > summary::-webkit-details-marker { display: none; }
details.est-det > summary h2 { margin: 0; }
details.est-det > summary::after { content: "▾"; margin-left: auto; opacity: .6; }
details.est-det[open] > summary::after { content: "▴"; }
details.est-det[open] > summary { margin-bottom: 14px; }
details.est-det[open] > summary .hint { display: none; }
details.est-det textarea { width: 100%; }
.est-linha select { width: auto; flex: 0 1 230px; min-width: 170px; }
.est-linha .multi-select { flex: 0 1 auto; }
.est-quadro.is-selection { background: #fffaf0; }
.est-sel-aviso { background: #fbf3dc; border-radius: 8px; padding: 6px 10px; }
.linklike { background: none; border: 0; padding: 0; color: var(--gold-dark, #8a6510); text-decoration: underline; cursor: pointer; font: inherit; }
.mov-div { display: flex; flex-direction: column; gap: 1px; }
.mov-div b { color: var(--navy, #141416); }
.est-quadro, .est-quadro:hover, .est-quadro * { text-decoration: none; }
.est-grupos { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; margin: 14px 0 6px; }
.est-grupo { background: #fff; border: 1px solid var(--line, #e3e5ea); border-radius: 12px; padding: 10px 12px 12px; }
.est-grupo-2 { background: #fbf8f0; }
.est-grupo-tit { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--navy, #141416); margin: 2px 2px 8px; }
.est-grupo-tit span { color: var(--muted); font-weight: 600; text-transform: none; letter-spacing: 0; }
.est-grupo .est-quadros { margin: 0; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
@media (max-width: 1100px) { .est-grupos { grid-template-columns: 1fr; } }
.est-bloco { background: #fff; border: 1px solid var(--line, #e3e5ea); border-radius: 12px; padding: 10px 12px 12px; margin: 14px 0 6px; }
.est-bloco .est-quadros { margin: 0; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); }
.est-quadro.base { background: #f7f8fa; }
