/* AdCheck — base visual copiada do AdZap (assets/app.css): mesmas cores, rail, cards, tabelas, botões e avisos */
/* Cores da logo Adconserv: azul #002E63, cinza #A3A19E */
:root {
  --navy: #002E63;
  --navy-2: #0B3F80;
  --navy-soft: #E9EFF7;
  --navy-softer: #F3F6FB;
  --silver: #A3A19E;
  --silver-soft: #F2F1EF;
  --bg: #F5F6F8;
  --panel: #FFFFFF;
  --text: #16202F;
  --text-2: #3B4556;
  --muted: #7A8292;
  --line: #E6E8EC;
  --line-2: #EFF1F4;
  --green: #1F9D63;
  --green-soft: #E6F6EE;
  --amber: #C98A12;
  --amber-soft: #FDF5E3;
  --red: #D14343;
  --red-soft: #FCEBEB;
  --note: #FFF7DB;
  --note-line: #F1DC8C;
  --bubble-out: #E7EEF8;
  --radius: 14px;
  --radius-s: 10px;
  --shadow-1: 0 1px 2px rgba(10, 25, 50, .05);
  --shadow-2: 0 2px 6px rgba(10, 25, 50, .06), 0 1px 2px rgba(10, 25, 50, .04);
  --shadow-3: 0 18px 50px rgba(10, 25, 50, .18);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }

html { height: 100%; }
body { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 "Inter", "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-2); }
h1 { font-size: 20px; font-weight: 650; letter-spacing: -.02em; margin: 0; }
h3 { font-size: 14px; font-weight: 600; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
h3 i { color: var(--silver); }
h3.mt { margin-top: 22px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
code { font: 12.5px ui-monospace, "Cascadia Mono", Consolas, monospace; background: var(--silver-soft); padding: 2px 6px; border-radius: 6px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
::selection { background: rgba(0, 46, 99, .15); }
:focus-visible { outline: 2px solid rgba(0, 46, 99, .45); outline-offset: 2px; }

/* ---------- Barra lateral (ícones) ---------- */
body.app { display: flex; }
.rail { width: 68px; flex: none; height: 100vh; position: sticky; top: 0; background: var(--navy); display: flex; flex-direction: column; align-items: center; padding: 14px 0; z-index: 40; }
.rail-logo { width: 42px; height: 42px; border-radius: 12px; background: #fff; display: grid; place-items: center; margin-bottom: 18px; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); transition: transform .3s var(--spring); }
.rail-logo:hover { transform: rotate(-6deg) scale(1.05); }
.rail-logo img { width: 30px; }
.rail nav, .rail-foot { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.rail nav { flex: 1; }
.rail a { position: relative; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: rgba(255, 255, 255, .62); font-size: 17px; transition: background .2s, color .2s, transform .2s var(--ease); }
.rail a:hover { color: #fff; background: rgba(255, 255, 255, .09); }
.rail a.on { color: var(--navy); background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); }
.rail a.out:hover { color: #FFB4B4; }
.rail a[data-tip]::after { content: attr(data-tip); position: absolute; left: 54px; top: 50%; transform: translate(-4px, -50%); background: #0E1726; color: #fff; font-size: 12px; font-weight: 500; white-space: nowrap; padding: 6px 10px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s var(--ease); }
.rail a[data-tip]:hover::after { opacity: 1; transform: translate(0, -50%); }
.me { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: #fff; background: hsl(var(--h) 45% 45%); border: 2px solid rgba(255, 255, 255, .6); }
.rail a.on .me { border-color: var(--navy); }

.main { flex: 1; min-width: 0; min-height: 100vh; }
.sim-banner { background: var(--amber-soft); color: #8A5D00; font-size: 12.5px; padding: 7px 24px; border-bottom: 1px solid #F3E2B5; }

/* ---------- Páginas ---------- */
.page { padding: 28px 32px 60px; max-width: 980px; margin: 0 auto; animation: rise .35s var(--ease); }
.page.wide { max-width: 1320px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; }
.page-actions { display: flex; gap: 8px; align-items: center; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-1); }
.card + .card { margin-top: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.side-card { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; } /* mais alto que a tela: rola por dentro para chegar ao Salvar */
.side-empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.side-empty i { font-size: 30px; color: var(--silver); margin-bottom: 10px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; }
.grid-cards .card + .card { margin-top: 0; }
.grid-cards .span2 { grid-column: 1 / -1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.span2 { grid-column: span 2; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Formulários ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12.5px; font-weight: 500; color: var(--text-2); }
input, select, textarea { font: inherit; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 12px; transition: border-color .15s, box-shadow .15s; width: 100%; }
input:hover, select:hover, textarea:hover { border-color: #D3D7DE; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(0, 46, 99, .09); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--navy); }
input[type=color] { width: 40px; height: 34px; padding: 2px; cursor: pointer; }
textarea { resize: vertical; }
.hint { font-size: 12px; color: var(--muted); margin: -4px 0 0; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.color-field { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.inline-form { display: flex; gap: 8px; margin-top: 12px; }
.inline-form input[name=name] { flex: 1; }
.pw { position: relative; display: block; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 500 13.5px "Inter", sans-serif; padding: 10px 16px; border-radius: var(--radius-s); border: 1px solid var(--line); background: #fff; color: var(--text); cursor: pointer; transition: transform .12s var(--ease), background .15s, box-shadow .15s, border-color .15s, color .15s; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: #D3D7DE; box-shadow: var(--shadow-2); color: var(--text); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-2); box-shadow: 0 6px 16px rgba(0, 46, 99, .25); color: #fff; }
.btn.dark { background: var(--green); border-color: var(--green); color: #fff; }
.btn.dark:hover { filter: brightness(1.06); color: #fff; box-shadow: 0 6px 16px rgba(31, 157, 99, .25); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--silver-soft); box-shadow: none; }
.btn.danger { color: var(--red); }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.btn.red:hover { filter: brightness(1.06); color: #fff; box-shadow: 0 6px 16px rgba(209, 67, 67, .25); }
.danger-zone { margin-top: 10px; }
.btn.sm { padding: 7px 12px; font-size: 13px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link-btn { border: 0; background: none; color: var(--navy); font: inherit; cursor: pointer; padding: 4px; }
.link-btn:hover { text-decoration: underline; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--text-2); display: grid; place-items: center; cursor: pointer; font-size: 15px; position: relative; transition: background .15s, color .15s, transform .12s; }
.icon-btn:hover { background: var(--silver-soft); color: var(--navy); }
.icon-btn:active { transform: scale(.92); }
.icon-btn.on { background: var(--note); color: #8A6A00; }
[data-tip] { position: relative; }
.conv [data-tip]:hover::after, .composer [data-tip]:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: #0E1726; color: #fff; font-size: 11.5px; font-weight: 500; white-space: nowrap; padding: 5px 9px; border-radius: 7px; pointer-events: none; z-index: 60; animation: fade .15s; }
.conv-head [data-tip]:hover::after { bottom: auto; top: calc(100% + 6px); }

/* Chaves liga/desliga */
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch span { width: 34px; height: 20px; border-radius: 20px; background: #D5D8DE; position: relative; transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .25s var(--spring); }
.switch input:checked + span { background: var(--navy); }
.switch input:checked + span::after { transform: translateX(14px); }

/* Chips e etiquetas */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { cursor: pointer; }
.chip input { display: none; }
.chip span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 20px; border: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); background: #fff; transition: all .15s; }
.chip span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--silver)); }
.chip input:checked + span { border-color: var(--navy); background: var(--navy-soft); color: var(--navy); font-weight: 500; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; padding: 2px 8px; border-radius: 20px; background: color-mix(in srgb, var(--c) 14%, white); color: color-mix(in srgb, var(--c) 70%, black); margin: 1px 3px 1px 0; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 500; padding: 3px 9px; border-radius: 20px; background: var(--silver-soft); color: var(--text-2); }
.pill.navy { background: var(--navy-soft); color: var(--navy); }
.pill.green { background: var(--green-soft); color: #137046; }
.pill.warn { background: var(--amber-soft); color: #8A5D00; }
.pill.red { background: var(--red-soft); color: #A42828; }
.kbd { font: 600 12px ui-monospace, Consolas, monospace; background: var(--navy-soft); color: var(--navy); padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.qdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-right: 3px; }
.copy { cursor: copy; }

/* Tabelas */
.toolbar { display: flex; gap: 10px; margin-bottom: 14px; }
.toolbar select { width: 220px; }
.table-wrap { overflow-x: auto; margin: 0 -20px -20px; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 10px 20px; border-bottom: 1px solid var(--line); }
.table td { padding: 11px 20px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tr[data-href] { cursor: pointer; }
.table tr[data-href]:hover { background: var(--navy-softer); }
.table tr.sel { background: var(--navy-soft); }
.table tr.off { opacity: .55; }
.table .empty, .empty { text-align: center; color: var(--muted); padding: 30px; }
.av { width: 40px; height: 40px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; font-size: 13.5px; font-weight: 600; color: hsl(var(--h, 215) 45% 32%); background: hsl(var(--h, 215) 55% 92%); position: relative; vertical-align: middle; }
.av.sm { width: 28px; height: 28px; font-size: 11px; margin-right: 8px; }
.dot-online { position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; background: var(--green); border: 2px solid #fff; }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); margin-bottom: 16px; }
.notice.ok { background: var(--green-soft); color: #145C3B; }
.notice.warn { background: var(--amber-soft); color: #7A5200; }
.notice i { margin-top: 3px; }
.status-list { list-style: none; margin: 0 0 14px; padding: 0; }
.status-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.status-list li:last-child { border-bottom: 0; }
.status-list li > span:first-child { color: var(--text-2); }
.status-list.big b { font-size: 18px; letter-spacing: -.01em; }

/* Painel */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; position: relative; overflow: hidden; box-shadow: var(--shadow-1); }
.kpi span { font-size: 12.5px; color: var(--muted); }
.kpi b { display: block; font-size: 30px; font-weight: 650; letter-spacing: -.03em; color: var(--navy); margin-top: 4px; }
.kpi i { position: absolute; right: 16px; top: 16px; font-size: 20px; color: var(--silver); opacity: .6; }
.kpi:first-child { background: var(--navy); border-color: var(--navy); }
.kpi:first-child span, .kpi:first-child i { color: rgba(255, 255, 255, .7); }
.kpi:first-child b { color: #fff; }
.period input { width: auto; padding: 7px 10px; }
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 170px 1fr 36px; align-items: center; gap: 10px; font-size: 12.5px; }
.bar-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.bar { height: 8px; background: var(--line-2); border-radius: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); background: var(--c); border-radius: 8px; animation: grow .9s var(--ease) both; transform-origin: left; }
.bar-row b { text-align: right; }

/* Filas */
.queue-list { display: flex; flex-direction: column; gap: 8px; }
.queue { border: 1px solid var(--line); border-radius: var(--radius-s); transition: box-shadow .2s, border-color .2s; }
.queue[open] { border-color: #D3D7DE; box-shadow: var(--shadow-2); }
.queue.off { opacity: .6; }
.queue.new { margin-top: 12px; border-style: dashed; }
.queue summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.queue summary::-webkit-details-marker { display: none; }
.queue summary b { font-weight: 500; flex: 1; }
.queue .chev { color: var(--muted); transition: transform .25s var(--ease); }
.queue[open] .chev { transform: rotate(180deg); }
.queue form { padding: 4px 14px 14px; animation: rise .25s var(--ease); }
.qnum { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-weight: 600; font-size: 12.5px; background: color-mix(in srgb, var(--c, var(--silver)) 16%, white); color: color-mix(in srgb, var(--c, var(--silver)) 75%, black); }
.wa-preview { background: #EFEAE2; border-radius: var(--radius-s); padding: 14px; }
.tpl-table { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; max-height: 260px; overflow: auto; }
.tpl-row { display: flex; align-items: center; gap: 8px; }
.tpl-row b { flex: 1; font-weight: 500; }

/* Respostas rápidas */
.qa-list { display: flex; flex-direction: column; }
.qa { display: flex; gap: 14px; padding: 12px 6px; border-bottom: 1px solid var(--line-2); align-items: flex-start; border-radius: 8px; transition: background .12s; }
.qa[data-href] { cursor: pointer; }
.qa[data-href]:hover { background: var(--navy-softer); }
.qa.sel { background: var(--navy-soft); }
.qa-text { font-size: 13.5px; color: var(--text-2); }

.sim-card { border: 1px dashed #E7C979; background: #FFFCF3; }
.steps { margin: 0; padding-left: 20px; line-height: 1.9; }

/* ---------- Entrada (login) ---------- */
body.guest { display: grid; place-items: center; min-height: 100vh; background: radial-gradient(1200px 600px at 10% -10%, #DCE6F3 0%, transparent 60%), radial-gradient(900px 500px at 110% 110%, #ECEBE8 0%, transparent 60%), var(--bg); }
.guest-main { width: 100%; max-width: 420px; padding: 20px; }
.guest-card { background: #fff; border-radius: 20px; padding: 36px 34px 30px; box-shadow: var(--shadow-3); animation: pop .5s var(--spring); }
.guest-logo { display: block; width: 190px; margin: 0 auto 26px; }
.guest-title { font-size: 18px; font-weight: 650; text-align: center; margin: 0 0 6px; letter-spacing: -.01em; }
.guest-sub { text-align: center; color: var(--muted); margin: 0 0 20px; font-size: 13.5px; }
.guest-note { text-align: center; color: var(--muted); font-size: 12px; margin: 18px 0 0; }
.guest-card .form { margin-top: 16px; }
.otp { display: flex; gap: 8px; justify-content: center; }
.otp input { width: 44px; height: 52px; text-align: center; font-size: 22px; font-weight: 600; padding: 0; border-radius: 12px; transition: transform .15s var(--spring), border-color .15s, box-shadow .15s; }
.otp input:focus { transform: translateY(-2px); }
.otp.shake { animation: shake .4s; }
.resend { text-align: center; margin-top: 12px; }
.dev-code { background: var(--amber-soft); color: #8A5D00; border-radius: 10px; padding: 10px 12px; font-size: 13px; text-align: center; margin-bottom: 6px; }

/* ---------- Avisos (toasts) ---------- */
.toasts { position: fixed; top: 84px; right: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 200; pointer-events: none; }
.toast { pointer-events: auto; min-width: 260px; max-width: 420px; background: #fff; color: #1B2430; padding: 12px 16px 12px 40px; border-radius: 12px; border: 1px solid #E3E7ED; border-left: 4px solid #1E9E62; box-shadow: var(--shadow-3); font-size: 13.5px; line-height: 1.4; font-weight: 500; position: relative; animation: toastIn .45s var(--spring); }
.toast::before { content: "\f00c"; font: 900 13px "Font Awesome 6 Free"; position: absolute; left: 14px; top: 14px; color: #1E9E62; }
.toast.err { border-left-color: #D64545; }
.toast.err::before { content: "\f071"; color: #D64545; }
/* "info" também é a classe do painel lateral do contato (.info): aqui o aviso precisa ganhar dela (era o "quadradinho branco sem texto") */
.toasts .toast.info { width: auto; display: block; flex: none; background: #fff; color: #1B2430; border: 1px solid #E3E7ED; border-left: 4px solid #2F6FE0; animation: toastIn .45s var(--spring); }
.toasts .toast.info.hide { animation: toastOut .3s var(--ease) forwards; }
.toast.info::before { content: "\f05a"; color: #2F6FE0; }
.toast.hide { animation: toastOut .3s var(--ease) forwards; }

/* ---------- Animações ---------- */
@keyframes fade { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }
@keyframes popOut { to { opacity: 0; transform: scale(.96); } }
@keyframes popUp { from { opacity: 0; transform: translateY(6px); } }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px) scale(.985); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(16px); } }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes bump { 40% { transform: scale(1.35); } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes fly { 50% { transform: translate(8px, -8px); opacity: 0; } 51% { transform: translate(-8px, 8px); } }
@keyframes flash { from { background: var(--navy-soft); } }
.ticket.fresh { animation: flash 1.2s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Telas menores ---------- */
@media (max-width: 1100px) {
  .info { position: absolute; right: 0; top: 0; bottom: 0; z-index: 30; box-shadow: var(--shadow-3); }
  .split { grid-template-columns: 1fr; }
  .side-card { position: static; max-height: none; overflow: visible; }
  .kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .rail { width: 56px; }
  .inbox { width: 100%; }
  .conv { position: fixed; inset: 0 0 0 56px; z-index: 35; transform: translateX(100%); transition: transform .3s var(--ease); }
  .chat-app.viewing .conv { transform: none; }
  .window-chip { display: none; }
  .page { padding: 20px 16px 40px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .grid-cards { grid-template-columns: 1fr; }
  .messages { padding: 14px 10px; }
  .msg { max-width: 86%; }
}

/* ---------- Relatórios ---------- */
.report-filters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.report-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.report { text-align: left; display: flex; flex-direction: column; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; cursor: pointer; font: inherit; color: var(--text); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; animation: rise .35s var(--ease) both; }
.report:nth-child(2) { animation-delay: .04s; } .report:nth-child(3) { animation-delay: .08s; } .report:nth-child(4) { animation-delay: .12s; } .report:nth-child(5) { animation-delay: .16s; } .report:nth-child(6) { animation-delay: .2s; }
.report:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: #D3D7DE; }
.report:active { transform: scale(.98); }
.report > i { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--navy-soft); color: var(--navy); font-size: 16px; margin-bottom: 4px; }
.report b { font-size: 14.5px; }
.report span { font-size: 12.5px; color: var(--muted); flex: 1; }
.report em { font-style: normal; font-size: 12.5px; font-weight: 500; color: var(--navy); margin-top: 6px; }
.report.featured { background: var(--navy); border-color: var(--navy); color: #fff; }
.report.featured > i { background: rgba(255, 255, 255, .14); color: #fff; }
.report.featured span { color: rgba(255, 255, 255, .72); }
.report.featured em { color: #fff; }
.wide-form input[name=contato] { flex: 2; }
.wide-form input[type=date] { width: 160px; }
@media (max-width: 900px) { .report-grid, .report-filters { grid-template-columns: 1fr 1fr; } }


/* ---------- AdCheck ---------- */
.crumb { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.crumb a { color: var(--navy); }
.right { text-align: right; }
.b { font-weight: 600; }
.razao { font-weight: 600; font-size: 13px; }
form.inline { display: inline-flex; margin: 0 0 0 4px; }
.toolbar { flex-wrap: wrap; align-items: center; }
.toolbar .grow, .inline-form .grow { flex: 1; min-width: 180px; }
.toolbar select { width: auto; }
.seg { display: inline-flex; background: var(--line-2); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg a { padding: 6px 12px; border-radius: 8px; font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.seg a:hover { background: #fff; color: var(--navy); }
.seg a.on { background: #fff; color: var(--navy); box-shadow: var(--shadow-1); }
.select-bar { display: flex; align-items: center; gap: 10px; background: var(--navy-soft); color: var(--navy); border-radius: var(--radius-s); padding: 8px 12px; margin-bottom: 12px; font-size: 13px; font-weight: 500; }
.table td .pill { white-space: normal; }

/* Painel federal: cards com contadores clicáveis (padrão Véri) */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 16px; }
.dash-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-1); animation: rise .35s var(--ease) both; transition: box-shadow .2s, border-color .2s; }
.dash-card:hover { box-shadow: var(--shadow-2); border-color: #D3D7DE; }
.dash-title { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 10px; }
.dash-title i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--navy-soft); color: var(--navy); font-size: 14px; }
.dash-title a { color: var(--text); }
.dash-nums { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.dash-nums a, .dash-nums span { color: var(--text-2); }
.dash-nums a:hover { color: var(--navy); }
.dash-nums b { color: var(--navy); font-size: 15px; font-variant-numeric: tabular-nums; margin-right: 2px; }

/* Ficha da empresa: um bloco por serviço */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-bottom: 16px; }
.svc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 8px; }
.svc-head { display: flex; gap: 10px; align-items: center; }
.svc-head i { color: var(--navy); }
.svc-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.svc-acts form.inline { margin: 0; }
.svc-custo { font-size: 11.5px; color: var(--muted); }
.grid-2col { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; margin-top: 16px; }
.grid-2col .card + .card { margin-top: 0; }
.msg-list { list-style: none; margin: 0; padding: 0; }
.msg-list li a { display: flex; flex-direction: column; gap: 2px; padding: 9px 4px; border-bottom: 1px solid var(--line-2); color: var(--text); border-radius: 6px; }
.msg-list li a:hover { background: var(--navy-softer); }
.msg-list li:last-child a { border-bottom: 0; }
.msg-corpo { line-height: 1.65; }
.msg-corpo table { border-collapse: collapse; }
.msg-corpo td, .msg-corpo th { border: 1px solid var(--line); padding: 4px 8px; }
.ok-ico { color: var(--green); }
.menu-det summary { list-style: none; }
.menu-det summary::-webkit-details-marker { display: none; }
.menu-det[open] { min-width: 240px; }
.page-actions form.inline { margin: 0; }
.btn.busy { opacity: .7; pointer-events: none; }
.btn.busy i { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) { .grid-2col { grid-template-columns: 1fr; } }

/* ---------- Visualizador de PDF e histórico (janela sobre a tela) ---------- */
body.modal-on { overflow: hidden; }
.viewer { position: fixed; inset: 0; z-index: 150; background: rgba(10, 20, 40, .55); display: grid; place-items: center; padding: 24px; animation: fade .2s; }
.viewer-card { background: #fff; border-radius: 16px; box-shadow: var(--shadow-3); width: min(1100px, 100%); height: min(92vh, 1000px); display: flex; flex-direction: column; overflow: hidden; animation: pop .25s var(--spring); }
.viewer-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.viewer-title { display: flex; align-items: center; gap: 10px; font-weight: 600; min-width: 0; }
.viewer-title i { color: var(--red); }
.viewer-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-acts { display: flex; gap: 8px; align-items: center; }
.viewer iframe { flex: 1; border: 0; width: 100%; background: #525659; }
.hist-card { height: auto; max-height: 86vh; width: min(900px, 100%); }
.hist-body { padding: 16px 20px 20px; overflow: auto; }
.hist-body .table-wrap { margin: 0; }

/* ---------- Padrão de lista do Véri: período (pílula verde com setas) e barra de exportação ---------- */
.periodo { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 14px; }
.periodo .pilula { display: flex; align-items: center; gap: 8px; background: var(--navy); padding: 7px 9px; border-radius: 12px; }
.periodo .pilula a { width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; }
.periodo .pilula a:hover { background: rgba(255,255,255,.25); }
.periodo { position: relative; }
.periodo-mes { position: relative; cursor: pointer; }
.mes-pop { position: fixed; z-index: 1000; background: var(--card, #fff);
  border: 1px solid var(--line, #e3e8ef); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,30,70,.18); padding: 10px; width: 250px; }
.mes-pop-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mes-pop-top b { color: var(--navy); font-size: 15px; }
.mes-pop button { border: 0; background: transparent; border-radius: 8px; cursor: pointer; font: inherit; color: var(--text); }
.mes-pop-top button { width: 30px; height: 30px; }
.mes-pop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mes-pop-grid button { padding: 8px 0; font-weight: 500; }
.mes-pop button:hover:not(:disabled) { background: var(--navy-soft); color: var(--navy); }
.mes-pop-grid button.on { background: var(--navy); color: #fff; }
.mes-pop button:disabled { opacity: .3; cursor: default; }
.periodo-mes input, .mes-oculto { position: absolute; inset: 0; opacity: 0; pointer-events: none; width: 1px !important; }
.mes-campo-caixa { position: relative; display: inline-block; }
.mes-campo { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 150px; padding: 8px 10px;
  border: 1px solid var(--line, #d7dee8); border-radius: 8px; background: #fff; color: var(--text); font: inherit; cursor: pointer; }
.mes-campo i { color: var(--muted); }
.mes-campo:hover { border-color: var(--navy); }
[data-ano-url] { cursor: pointer; }
input[type="date"] { cursor: pointer; }
.periodo-mes span i { font-size: 12px; margin-left: 4px; opacity: .6; }
.periodo-mes:hover span { box-shadow: 0 0 0 2px rgba(255,255,255,.5); }
.periodo .pilula span { background: #fff; color: var(--navy); border-radius: 8px; padding: 5px 16px; font-weight: 600; min-width: 140px; text-align: center; }
.periodo .pa { font-size: 11.5px; color: var(--muted); background: var(--navy-soft); border-radius: 8px; padding: 3px 14px; text-align: center; }
.periodo .pa b { display: block; color: var(--navy); font-size: 13px; }
.exporta { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.exporta a { padding: 7px 12px; font-size: 12px; font-weight: 600; color: var(--navy); background: var(--navy-softer); border-right: 1px solid var(--line); }
.exporta a:last-child { border-right: 0; }
.exporta a:hover { background: var(--navy-soft); }
.acoes-ic { display: inline-flex; gap: 4px; }
.acoes-ic > * { margin: 0; }
.ic-btn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--navy); display: inline-grid; place-items: center; cursor: pointer; font-size: 13px; }
.ic-btn:hover { background: var(--navy-soft); }
.ic-btn[disabled] { opacity: .35; pointer-events: none; }
.ic-btn.buscar { border-style: dashed; color: var(--muted); background: transparent; }
.ic-btn.buscar:hover { color: var(--navy); border-color: var(--navy); background: var(--navy-soft); }
.btn.verde { background: var(--green); border-color: var(--green); color: #fff; padding: 5px 12px; font-size: 12.5px; }
.btn.verde:hover { color: #fff; filter: brightness(1.06); }

/* ---------- Gestão à Vista: gráficos ---------- */
.secao { font-size: 15px; font-weight: 650; margin: 22px 0 12px; }
.graf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 16px; }
.graf-grid .card + .card { margin-top: 0; }
.graf-sub { font-size: 12px; color: var(--muted); margin: -10px 0 14px; }
.donut { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.donut svg { width: 180px; height: 180px; flex: none; }
.legenda { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.legenda li { display: flex; align-items: center; gap: 8px; }
.legenda i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.legenda b { margin-left: auto; padding-left: 16px; }
.kpi small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 6px; border-top: 1px solid var(--line-2); padding-top: 6px; }
.kpi small.alerta { color: var(--red); }
.kpi small.bom { color: var(--green); }
.kpi:first-child small { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.18); }
.kpis.k6 { grid-template-columns: repeat(4, 1fr); }
.kpis.k5 { grid-template-columns: repeat(5, 1fr); }
a.kpi { display: block; color: inherit; transition: box-shadow .2s, transform .2s var(--ease); }
a.kpi:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); color: inherit; }
.risco td .pill { font-weight: 600; }
.colunas-svg { width: 100%; height: 220px; }

/* Dashboard Federal: card ainda não ligado */
.dash-card.breve { background: var(--line-2); box-shadow: none; }
.dash-card.breve .dash-title i { background: #fff; color: var(--silver); }
.dash-card.breve .dash-nums span { color: var(--muted); }
.dash-card.novo { border-color: #C9D6EA; background: var(--navy-softer); position: relative; }
.dash-card .selo { position: absolute; right: 12px; top: 14px; font-size: 10.5px; font-weight: 600; background: var(--green); color: #fff; border-radius: 6px; padding: 2px 7px; }
.dash-card.novo .dash-title { padding-right: 64px; }
.page.wide { max-width: 1600px; }

/* ---------- Menu lateral que se abre ao passar o mouse ---------- */
body.app .main { margin-left: 68px; }
body.app .rail { position: fixed; left: 0; top: 0; bottom: 0; height: auto; width: 68px; align-items: stretch; padding: 14px 12px; overflow: hidden;
  transition: width .22s var(--ease), box-shadow .22s; }
body.app .rail:hover { width: 248px; box-shadow: 12px 0 40px rgba(0, 20, 50, .28); }
.rail .rail-logo { margin-left: 1px; display: flex; align-items: center; gap: 12px; width: auto; background: none; box-shadow: none; }
.rail .rail-logo img { width: 42px; height: 42px; padding: 6px; border-radius: 12px; background: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); flex: none; }
.rail .rail-logo:hover { transform: none; }
.rail .rail-logo:hover img { transform: rotate(-6deg) scale(1.05); transition: transform .3s var(--spring); }
.rail-nome { color: #fff; font-weight: 700; font-size: 16px; letter-spacing: -.01em; white-space: nowrap; opacity: 0; transition: opacity .15s; }
.rail nav, .rail-foot { align-items: stretch; }
.rail nav { overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.rail a { width: auto; display: flex; justify-content: flex-start; gap: 14px; padding: 0 12px; white-space: nowrap; flex: none; }
.rail a > i, .rail a > .ic-parc { width: 20px; text-align: center; flex: none; }
.rail a .me { margin-left: -6px; flex: none; }
.rail-txt { font-size: 13.5px; font-weight: 500; opacity: 0; transition: opacity .12s; }
.rail:hover .rail-txt, .rail:hover .rail-nome { opacity: 1; transition-delay: .06s; }
.rail a[data-tip]::after { display: none; }
@media (max-width: 760px) { body.app .main { margin-left: 56px; } body.app .rail { width: 56px; padding: 14px 6px; } }

/* Ícone de parcelamento: boleto com duas folhas atrás (várias parcelas) */
.ic-parc { position: relative; display: inline-grid; place-items: center; width: 20px; height: 20px; }
.ic-parc i { position: relative; z-index: 2; font-size: 13px; background: currentColor; -webkit-background-clip: text; }
.ic-parc::before, .ic-parc::after { content: ""; position: absolute; width: 15px; height: 12px; border: 1.6px solid currentColor; border-radius: 3px; }
.ic-parc::before { transform: translate(3px, -3px); opacity: .45; }
.ic-parc::after { transform: translate(1.5px, -1.5px); opacity: .7; }
.ic-parc i { padding: 1px 2px; border-radius: 2px; }
.dash-title .ic-parc { width: 32px; height: 32px; border-radius: 10px; background: var(--navy-soft); color: var(--navy); }

/* ---------- Relatório de faturamento (tela e impressão em PDF) ---------- */
.relatorio { max-width: 820px; }
.rel-topo { display: flex; gap: 20px; align-items: center; border-bottom: 2px solid var(--navy); padding-bottom: 14px; margin-bottom: 16px; }
.rel-topo img { width: 170px; }
.rel-topo h2 { margin: 0 0 4px; font-size: 18px; color: var(--navy); }
.rel-topo p { margin: 0; }
.rel-tab { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.rel-tab th, .rel-tab td { border-bottom: 1px solid var(--line); padding: 7px 10px; text-align: left; }
.rel-tab .right { text-align: right; }
.rel-tab .tot td { font-weight: 700; border-top: 2px solid var(--navy); }
.rel-ass { display: flex; flex-direction: column; align-items: flex-start; margin-top: 40px; gap: 2px; }
.rel-ass img { height: 60px; }
@media print {
  .rail, .sim-banner, .no-print, .toasts, .viewer { display: none !important; }
  body.app .main { margin: 0; }
  .page { padding: 0; }
  .card { border: 0; box-shadow: none; }
}
/* ícone de parcelamento em SVG (substitui a versão com pseudo-elementos) */
.ic-parc::before, .ic-parc::after { display: none; }
.ic-parc svg { width: 20px; height: 20px; display: block; }
.dash-title .ic-parc svg { width: 18px; height: 18px; }
/* Logo da barra lateral: mesma proporção do AdZap (caixa branca de 42 px, imagem de 30 px) e no mesmo eixo dos ícones */
.rail .rail-logo { padding: 0; margin: 0 0 18px 1px; gap: 14px; height: 42px; }
.rail .rail-logo img { width: 30px; height: auto; padding: 0; background: none; box-shadow: none; border-radius: 0; object-fit: contain; }
.rail-logo-box { width: 42px; height: 42px; flex: none; border-radius: 12px; background: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18); transition: transform .3s var(--spring); }
.rail .rail-logo:hover img { transform: none; }
.rail .rail-logo:hover .rail-logo-box { transform: rotate(-6deg) scale(1.05); }

/* Certidões: célula com status + botões, e janela de atualizar */
.cnd-cel { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.cnd-acts { display: flex; gap: 4px; flex-wrap: wrap; }
.cnd-acts .btn { padding: 4px 9px; font-size: 12px; }
.passos { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 18px; }
.passos .inline-form { margin-top: 8px; }
.soltar { display: block; border: 2px dashed var(--line); border-radius: 12px; padding: 22px; text-align: center; color: var(--muted); cursor: pointer; transition: border-color .15s, background .15s; }
.soltar:hover, .soltar.sobre { border-color: var(--navy); background: var(--navy-softer); color: var(--navy); }
.soltar input { display: none; }

/* Tela inicial limpa */
.limpa .kpis { margin-bottom: 20px; }
.inicio-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.inicio-grid .card + .card { margin-top: 0; }
.atencao { list-style: none; margin: 0; padding: 0; }
.atencao a { display: flex; align-items: center; gap: 12px; padding: 11px 8px; border-bottom: 1px solid var(--line-2); color: var(--text); border-radius: 8px; transition: background .12s; }
.atencao li:last-child a { border-bottom: 0; }
.atencao a:hover { background: var(--navy-softer); }
.atencao a > i:first-child { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); font-size: 13px; flex: none; }
.atencao span { flex: 1; }
.atencao b { font-size: 16px; color: var(--navy); }
.atencao .seta { color: var(--silver); font-size: 11px; }
.tudo-ok { display: flex; gap: 12px; align-items: center; padding: 14px; background: var(--green-soft); border-radius: 12px; color: #145C3B; }
.tudo-ok > i { font-size: 22px; }
@media (max-width: 1000px) { .inicio-grid { grid-template-columns: 1fr; } }
.colunas-svg { width: 100%; height: auto; max-height: 260px; }
.periodo { flex-direction: row; justify-content: center; gap: 12px; }
.periodo-rot { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.ic-btn.verde { color: var(--green); border-color: #BFE5D1; }
.ic-btn.verde:hover { background: var(--green-soft); }
.cnd-acts .ic-btn { width: 28px; height: 28px; font-size: 12.5px; }
.cnd-cel { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 8px; } .cnd-cel .cnd-val { flex-basis: 100%; order: 3; margin-top: -2px; }
/* Certidões: cada coluna centralizada sob o título */
.tab-cnd th:not(:first-child), .tab-cnd td:not(:first-child) { text-align: center; }
.tab-cnd .cnd-cel { justify-content: center; }
.tab-cnd .cnd-val { text-align: center; }

/* Boas-vindas com a Adélia (o fundo lilás é o mesmo da foto, para ela "sair" do quadro) */
.boas-vindas { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: stretch; min-height: 250px;
  margin-bottom: 20px; border-radius: 20px; overflow: hidden; background: linear-gradient(100deg, #FFFFFF 0%, #F4EEF9 38%, #E3D3EF 62%); border: 1px solid #E6DCF0; box-shadow: var(--shadow-1); animation: rise .45s var(--ease); }
.bv-texto { padding: 30px 34px; display: flex; flex-direction: column; justify-content: center; gap: 10px; z-index: 1; }
.bv-oi { font-size: 13px; font-weight: 600; color: #6B4FA0; letter-spacing: .02em; }
.bv-texto h1 { font-size: 26px; font-weight: 750; color: var(--navy); letter-spacing: -.02em; }
.bv-texto p { margin: 0; color: var(--text-2); font-size: 14.5px; max-width: 46ch; line-height: 1.55; }
.bv-texto p b { color: var(--navy); }
.bv-texto .seg { align-self: flex-start; margin-top: 6px; background: rgba(255, 255, 255, .7); }
.bv-adelia { width: 100%; height: 100%; min-height: 250px; border: 0; display: block; background: #E3D3EF;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
@media (max-width: 900px) { .boas-vindas { grid-template-columns: 1fr; } .bv-adelia { height: 240px; } }
.boas-vindas { min-height: 290px; } .bv-adelia { min-height: 290px; }
.boas-vindas { grid-template-columns: minmax(0, 1fr) minmax(0, .78fr); }

@media (max-width: 1100px) { .kpis.k5 { grid-template-columns: 1fr 1fr; } }

/* Tabela com as colunas centralizadas (menos a seleção e a razão social): título e conteúdo no mesmo eixo */
.table.centro th:nth-child(n+3), .table.centro td:nth-child(n+3) { text-align: center; }
.table.centro td:nth-child(n+3) .inline { display: inline-flex; }
a.dash-title { color: var(--text); }
a.dash-title:hover { color: var(--navy); }
.parc-ped + .parc-ped { margin-top: 4px; }

/* Raio-X Fiscal: Diagnóstico fiscal e Pré-análise (tela e PDF pela impressão) */
.relatorio.diag { max-width: 900px; }
.diag-score { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: center; margin: 6px 0 10px; }
.medidor { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.medidor svg { width: 200px; height: auto; }
.medidor-rot { font-weight: 600; color: var(--navy); font-size: 13.5px; }
.medidor-rot i { color: #D14343; }
.diag-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.diag-nums > div { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.diag-nums span { flex: 1; font-size: 13px; color: var(--text-2); }
.diag-nums b { font-size: 20px; color: var(--navy); }
.rel-sec { font-size: 15px; color: var(--navy); margin: 22px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.rel-dados th { width: 190px; color: var(--muted); font-weight: 500; vertical-align: top; }
.rel-check td:first-child { width: 38%; }
.plano { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 7px; }
.plano li.pend::marker { color: #D14343; font-weight: 700; }
.plano li.atencao::marker { color: #C98A12; font-weight: 700; }
.rel-alertas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rel-alertas li { padding: 9px 12px; border-radius: 10px; background: var(--navy-softer); border-left: 4px solid var(--navy); }
.rel-alertas li.red { background: var(--red-soft); border-color: #D14343; }
.rel-alertas li.warn { background: var(--amber-soft); border-color: #C98A12; }
.rel-anexos { margin: 0; padding-left: 4px; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.rel-rodape { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 10px; }
@media (max-width: 700px) { .diag-score { grid-template-columns: 1fr; } }
@media print {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .relatorio.diag { max-width: none; padding: 0; }
  .relatorio .pill, .rel-alertas li, .medidor svg { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rel-sec { break-after: avoid; }
  .rel-tab tr, .plano li { break-inside: avoid; }
}
