/* Macedo HUB — camada premium para Rotina, Central e Fiscal (tudo escuro). */
html[data-tema="escuro"] .jc > .rt, html[data-tema="escuro"] .cb, html[data-tema="escuro"] .fs {
  background: radial-gradient(120% 80% at 50% -10%, rgba(201,162,74,0.07), transparent 60%), linear-gradient(180deg, #0E241B, #0A1B14);
}
.mx-cent { font-size: 0.72em; opacity: 0.75; }
/* faixa de números da Central */
.cb-resumo { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }
.cb-resumo > div { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 10px 24px rgba(0,0,0,0.25); animation: mx-sobe 420ms cubic-bezier(0.2,0,0,1) both; }
.cb-resumo > div:nth-child(2) { animation-delay: 60ms; } .cb-resumo > div:nth-child(3) { animation-delay: 120ms; } .cb-resumo > div:nth-child(4) { animation-delay: 180ms; }
.cb-resumo small { font-size: 12px; color: rgba(239,230,211,0.6); }
.cb-resumo strong { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: #EFE6D3; font-variant-numeric: tabular-nums; }
.cb-resumo span { font-size: 12.5px; color: rgba(239,230,211,0.7); font-variant-numeric: tabular-nums; }
.cb-resumo .a strong { color: #E9C878; } .cb-resumo .e strong { color: #F08A7E; } .cb-resumo .ok strong { color: #6FCF9C; }
.cb-resumo > div::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(145deg, rgba(201,162,74,0.35), rgba(239,230,211,0.06) 50%, rgba(201,162,74,0.12)); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
@keyframes mx-sobe { from { opacity: 0; transform: translateY(10px); } }
/* linhas: vidro, cascata e subida no hover */
html[data-tema="escuro"] .cb-lin, html[data-tema="escuro"] .fs-lin { background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015)); box-shadow: inset 0 0 0 1px rgba(239,230,211,0.07), inset 0 1px 0 rgba(255,255,255,0.05); transition: transform 160ms ease-out, box-shadow 160ms ease-out, background-color 160ms ease-out; }
@media (hover: hover) {
  html[data-tema="escuro"] .cb-lin:hover, html[data-tema="escuro"] .fs-lin:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(201,162,74,0.35), 0 12px 26px rgba(0,0,0,0.3); }
}
@media (prefers-reduced-motion: no-preference) {
  .cb-tab .cb-lin{ animation: mx-sobe 360ms cubic-bezier(0.2,0,0,1) both; }
  .cb-tab .cb-lin:nth-child(2){ animation-delay: 40ms; }
  .cb-tab .cb-lin:nth-child(3){ animation-delay: 80ms; }
  .cb-tab .cb-lin:nth-child(4){ animation-delay: 120ms; }
  .cb-tab .cb-lin:nth-child(5){ animation-delay: 160ms; }
  .cb-tab .cb-lin:nth-child(n+6){ animation-delay: 200ms; }
}
/* aba ativa */
html[data-tema="escuro"] .cb-abas button[aria-current="true"] { position: relative; background: linear-gradient(90deg, rgba(201,162,74,0.16), rgba(201,162,74,0.03)); box-shadow: inset 0 0 0 1px rgba(201,162,74,0.22); }
html[data-tema="escuro"] .cb-abas button[aria-current="true"]::before { content: ""; position: absolute; left: -1px; top: 9px; bottom: 9px; width: 3px; border-radius: 2px; background: #C9A24A; box-shadow: 0 0 10px rgba(201,162,74,0.6); }
/* checklist da conciliação em sequência */
@media (prefers-reduced-motion: no-preference) {
  .cb-conf li { animation: mx-sobe 320ms cubic-bezier(0.2,0,0,1) both; }
  .cb-conf li:nth-child(2) { animation-delay: 90ms; } .cb-conf li:nth-child(3) { animation-delay: 180ms; } .cb-conf li:nth-child(4) { animation-delay: 270ms; } .cb-conf li:nth-child(5) { animation-delay: 360ms; } .cb-conf li:nth-child(6) { animation-delay: 450ms; }
}
/* cards de vidro: detalhe, certificados, números */
html[data-tema="escuro"] :is(.cb-conf, .cb-acao, .cb-passos, .cb-docs, .fs-cert, .fs-stats > div) { position: relative; background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)); }
html[data-tema="escuro"] :is(.cb-conf, .cb-acao, .fs-cert, .fs-stats > div)::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(145deg, rgba(201,162,74,0.3), rgba(239,230,211,0.05) 50%, rgba(201,162,74,0.1)); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
html[data-tema="escuro"] .fs-stats strong { font-size: 24px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
/* anel de validade */
.fs-val2 { display: flex; align-items: center; gap: 14px; }
.fs-anel { position: relative; width: 76px; height: 76px; flex: none; }
.fs-anel span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-size: 10.5px; line-height: 1.1; color: rgba(239,230,211,0.6); }
.fs-anel span b { display: block; font-size: 20px; font-weight: 600; color: #EFE6D3; font-variant-numeric: tabular-nums; }
.fs-val2 > div:last-child { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; font-size: 13px; }
.fs-val2 small { color: rgba(239,230,211,0.55); font-size: 12px; }
.fs-cert.erro .fs-anel { filter: drop-shadow(0 0 10px rgba(230,103,103,0.35)); }
/* nota suspeita em destaque */
html[data-tema="escuro"] .fs-lin.suspeita, html[data-tema="escuro"] .fs-lin[data-susp="1"] { box-shadow: inset 0 0 0 1px rgba(230,103,103,0.5), 0 0 22px rgba(230,103,103,0.12); }
/* Rotina: início e "pago" */
html[data-tema="escuro"] .rt-resumo span { background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); box-shadow: inset 0 0 0 1px rgba(201,162,74,0.25); color: #EFE6D3; }
html[data-tema="escuro"] .rt-sobre { background: rgba(8,22,16,0.78); }
html[data-tema="escuro"] :is(.rt-sobre .cx, .rt-modal .cx) { background: linear-gradient(180deg, #16352A, #0F261D); box-shadow: inset 0 0 0 1px rgba(201,162,74,0.28), 0 24px 60px rgba(0,0,0,0.5); color: #EFE6D3; }
html .rt-resumo span.mx-cent, html[data-tema="escuro"] .rt-resumo span.mx-cent { padding: 0; background: none; box-shadow: none; border-radius: 0; font-size: 0.8em; }
/* contas do Financeiro na Rotina */
.rt-extra { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 14px; border-radius: 16px; text-align: left; background: rgba(6,17,13,0.45); box-shadow: inset 0 0 0 1px rgba(201,162,74,0.35); color: #EFE6D3; max-width: 520px; }
.rt-extra .ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #E8CB85; background: rgba(201,162,74,0.15); }
.rt-extra div { flex: 1; display: flex; flex-direction: column; gap: 2px; } .rt-extra strong { font-size: 14px; } .rt-extra span { font-size: 12.5px; color: #A6B5A7; }
.rt-xbt { height: 36px; padding: 0 16px; border: 0; border-radius: 11px; background: linear-gradient(180deg, #E8CB85, #C9A24A); color: #1A2A1F; font: 600 13px var(--body); cursor: pointer; }
.rt-xov { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; padding: 24px; background: rgba(3,10,7,0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
@media (prefers-reduced-motion: no-preference) { .rt-xov { animation: fxF 200ms ease-out both; } .rt-xcx { animation: fxIn 380ms cubic-bezier(0.2,0,0,1) both; } }
.rt-xcx { width: min(900px, 100%); max-height: 100%; overflow: auto; padding: 24px; border-radius: 22px; color: #EFE6D3; background: linear-gradient(180deg, #16352A, #0D2219); box-shadow: 0 30px 80px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(201,162,74,0.3); }
.rt-xcx > header { display: flex; justify-content: space-between; align-items: flex-start; } .rt-xcx small { color: #E8CB85; font-size: 12.5px; } .rt-xcx h3 { margin: 2px 0 0; font-family: var(--display); font-size: 24px; color: #F7F1E6; }
.rt-xx { width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(239,230,211,0.08); color: #EFE6D3; font-size: 22px; cursor: pointer; }
.rt-xnota { margin: 10px 0 16px; font-size: 13.5px; color: #A6B5A7; }
.rt-xgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.rt-xc { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 18px; background: rgba(6,17,13,0.45); box-shadow: inset 0 0 0 1px rgba(239,230,211,0.08); transition: opacity 300ms, transform 300ms; }
.rt-xc.atr { box-shadow: inset 0 0 0 1px rgba(230,103,103,0.5); } .rt-xc.hj { box-shadow: inset 0 0 0 1px rgba(201,162,74,0.55); } .rt-xc.fut { opacity: 0.75; }
.rt-xc.pago { opacity: 0; transform: scale(0.96); }
.rt-xc header span { font-size: 12px; color: #A6B5A7; } .rt-xc.atr header span { color: #F4A399; } .rt-xc.hj header span { color: #F0D592; }
.rt-xc strong { font-size: 14.5px; color: #F7F1E6; } .rt-xc .e { font-size: 12.5px; color: #A6B5A7; } .rt-xc b { font-family: var(--display); font-size: 22px; color: #F7F1E6; font-variant-numeric: tabular-nums; }
.rt-xf { position: relative; display: flex; align-items: center; justify-content: center; height: 36px; border-radius: 11px; font-size: 12.5px; color: #A6B5A7; background: rgba(239,230,211,0.05); box-shadow: inset 0 0 0 1px dashed rgba(239,230,211,0.2); cursor: pointer; overflow: hidden; }
.rt-xf input { position: absolute; inset: 0; opacity: 0; cursor: pointer; } .rt-xf.ok { color: #7FD0A6; }
.rt-xp { width: 100%; margin: 4px 0 0; }
.rt-xag { font-size: 12px; color: #A6B5A7; }
