
/* M1c: página Resumo. Paleta e cards do CLAUDE.md; prefixo rs-. Reaproveita .cm-row/.cm-f/.cm-banner e .pg-*. */
#rsRoot { max-width: none; }  .rs-per { margin-top: 12px; font-size: 12px; color: #919eab; }
#rsBanner:empty { display: none; } #rsBanner .cm-banner a, #rsBanner .mx-link, .rs-note a, .rs-note .mx-link { color: #B8F6FD; } #rsBanner .mx-link, .rs-note .mx-link, .rs-bmsg .mx-link { background: none; border: 0; padding: 0; min-height: 44px; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.rs-lay { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; align-items: stretch; margin-bottom: 12px; } .rs-lay > *, .rs-lay > #rsCards > * { grid-column: span var(--rs-span, 3); margin-bottom: 0 !important; min-width: 0; } .rs-lay > #rsCards { display: contents; } .rs-lay > #rsCards > .rs-err { grid-column: 1 / -1; } .rs-lay > #rsCards > .rs-card { min-height: 108px; }
@media (max-width: 800px) { .rs-lay { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .rs-lay > *, .rs-lay > #rsCards > * { grid-column: span var(--rs-span-m, 2); } }
#rsCustomBtn { display: none; } body:has(#page-resumo.active) #rsCustomBtn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: transparent; border: 0; cursor: pointer; }
.rl-ov { position: fixed; inset: 0; z-index: 1190; background: rgba(0,0,0,.35); } .rl-pn { position: fixed; z-index: 1200; top: 16px; bottom: 16px; left: 16px; width: min(380px, calc(100vw - 32px)); display: flex; flex-direction: column; background: var(--nx-solid-bg, #15171c); color: var(--nx-text, #fff); border: 1px solid var(--nx-card-bd, rgba(255,255,255,.12)); border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.rl-hd { display: flex; align-items: center; gap: 10px; padding: 16px 18px 10px; } .rl-hd h2 { margin: 0; font-size: 16px; flex: 1; } .rl-x2 { width: 40px; height: 40px; border: 0; background: transparent; color: inherit; font-size: 22px; cursor: pointer; border-radius: 10px; }
.rl-sub { margin: 0; padding: 0 18px 10px; font-size: 12.5px; color: var(--nx-muted, #919eab); line-height: 1.5; } .rl-bd { overflow: auto; padding: 4px 12px 12px; flex: 1; } .rl-gt { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--nx-muted, #919eab); padding: 12px 6px 6px; }
.rl-it { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; border: 1px solid transparent; } .rl-it:hover { background: var(--nx-hover, rgba(255,255,255,.05)); } .rl-it.off { opacity: .55; } .rl-it.drag { border-color: var(--nx-ring, #B8F6FD); } .rl-nm { font-size: 13.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rl-ft { display: flex; gap: 10px; padding: 12px 18px 16px; border-top: 1px solid var(--nx-card-bd, rgba(255,255,255,.1)); } .rl-ft .pg-btn { flex: 1; }
.rs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-bottom: 16px; }
.rs-card, .rs-blk { background: #1a1a1a; border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,.35); padding: 20px; position: relative; min-width: 0; }
.rs-card { display: flex; flex-direction: column; gap: 4px; min-height: 108px; padding: 14px 18px; }
#page-resumo .rs-card .rs-lab, #page-resumo .rs-card .rs-lab span { color: var(--nx-text) !important; font-family: "DM Sans", sans-serif !important; font-size: 15px !important; font-weight: 600 !important; letter-spacing: .01em; line-height: 1.3; }
#page-resumo .rs-card.pos .rs-lab, #page-resumo .rs-card.pos .rs-lab span, #page-resumo .rs-card.pos .rs-val { color: var(--nx-ok, #4ADE80) !important; }   /* o mesmo verde de antes (token --nx-ok) */
#page-resumo .rs-card.neg .rs-lab, #page-resumo .rs-card.neg .rs-lab span, #page-resumo .rs-card.neg .rs-val { color: var(--nx-no, #ff7a7a) !important; }   /* negativo: nome e número no mesmo vermelho; zero fica neutro (sem classe) */   /* verde do Resumo (card positivo): número e nome */   /* nome do card: mesmo branco dos números, um pouco maior */
.rs-lab { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: #919eab; } .rs-lab span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-val { font-family: 'Figtree', 'DM Sans', sans-serif; font-size: 22px; font-weight: 700; line-height: 1.25; color: #fff; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; } .rs-card.pos .rs-val { color: #7ee0a1; } .rs-card.neg .rs-val { color: #ff7a7a; }
.rs-orig { display: flex; flex-direction: column; gap: 12px; margin: 6px 0 12px; } .rs-orow { display: grid; grid-template-columns: 120px minmax(0, 1fr) 110px 110px; gap: 12px; align-items: center; font-size: 13px; color: #d1d5db; } .rs-ol { font-weight: 600; } .rs-ob { height: 8px; border-radius: 4px; background: #262626; overflow: hidden; } .rs-ob i { display: block; height: 100%; border-radius: 4px; background: #60a5fa; } .rs-o-falso .rs-ob i { background: #fbbf24; } .rs-o-puro .rs-ob i { background: #4ade80; } .rs-on { font-variant-numeric: tabular-nums; white-space: nowrap; } .rs-oc { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 640px) { .rs-orow { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; } .rs-ob { grid-column: 1 / -1; order: 3; } .rs-oc { text-align: right; } }
.rs-note { font-size: 12px; color: #919eab; line-height: 1.5; } .rs-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.rs-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(184,246,253,.12); color: #B8F6FD; } .rs-badge.part { background: rgba(245,158,11,.14); color: #f5b84a; }
.rs-i { flex: 0 0 auto; position: relative; width: 22px; height: 22px; border-radius: 50%; border: 1px solid #3a3a3a; background: transparent; color: #919eab; font: italic 600 12px serif; cursor: pointer; padding: 0; } .rs-i::after { content: ''; position: absolute; inset: -11px; }
.rs-i:hover, .rs-i:focus-visible { color: #B8F6FD; border-color: #B8F6FD; }
.rs-tipbox { position: absolute; z-index: 20; left: 12px; right: 12px; top: 52px; background: #0a0a0a; color: #e5e7eb; font-size: 12.5px; line-height: 1.55; padding: 12px 14px; border-radius: 6px; box-shadow: 0 6px 24px rgba(0,0,0,.6); }
 .rs-blk { margin-bottom: 12px; } .rs-bh { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; } .rs-bh h3 { margin: 0; font-size: 15px; font-weight: 600; color: #fff; flex: 1 1 auto; }
.rs-bmsg { color: #919eab; font-size: 13px; padding: 24px 0; text-align: center; } .rs-big { font-size: 26px; font-weight: 700; color: #fff; margin: 6px 0 8px; font-variant-numeric: tabular-nums; }
.rs-chartbox { position: relative; height: 230px; } .rs-cb-d { height: 190px; width: 190px; flex: 0 0 190px; } .rs-cb-w { height: 320px; }
.rs-donut { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; } .rs-dc { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; } .rs-dc b { font-size: 26px; color: #fff; } .rs-dc small { color: #919eab; font-size: 12px; }
.rs-leg { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1 1 140px; font-size: 13px; color: #d1d5db; } .rs-leg li { display: flex; align-items: center; gap: 8px; } .rs-leg i { width: 10px; height: 10px; border-radius: 50%; } .rs-leg li { display: grid; grid-template-columns: 10px 1fr minmax(110px, 1.3fr) 120px; align-items: center; column-gap: 8px; } .rs-leg .rs-lm { grid-column: 3; justify-self: start; font-style: normal; display: inline-flex; align-items: center; gap: 6px; } .rs-leg span { grid-column: 4; margin-left: auto; text-align: right; color: #fff; font-variant-numeric: tabular-nums; }
.rs-plist { max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-right: 4px; } .rs-prow { display: flex; align-items: center; gap: 12px; } .rs-pn { flex: 1; min-width: 0; display: flex; flex-direction: column; } .rs-pn b { font-size: 13px; color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rs-pn small { color: #919eab; font-size: 12px; } .rs-pp { font-size: 13px; color: #B8F6FD; font-variant-numeric: tabular-nums; }
.rs-appr { display: flex; flex-direction: column; gap: 14px; } .rs-arow { display: grid; grid-template-columns: minmax(0, 1fr) 30px 76px; gap: 4px 12px; align-items: center; font-size: 13px; color: #d1d5db; } .rs-arow b { text-align: right; color: #fff; font-variant-numeric: tabular-nums; } .rs-arow small { grid-column: 2 / 4; color: #919eab; font-size: 11px; margin-top: -2px; }
.rs-rg-p[stroke-dasharray^="0 "] { display: none; }
.rs-rg-t { stroke: var(--nx-div, rgba(255,255,255,.14)); } .rs-rg-p { stroke: var(--nx-acc-text, #B8F6FD); }
     .rs-fv2 { position: relative; min-height: 260px; margin-top: 6px; } .rs-fv2 svg { position: absolute; inset: 0; width: 100%; height: 100%; } .rs-fcols { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: 260px; }
.rs-fc { display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center; padding: 6px 4px; border-left: 1px solid #B8F6FD; } .rs-fc:first-child { border-left: 0; }
.rs-fh { font-size: 13px; font-weight: 600; color: var(--nx-muted-hi, #cbd2d9); } .rs-fp { font-size: 16px; font-weight: 700; color: #fff; background: rgba(12,14,34,.62); padding: 2px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; } .rs-fn { font-size: 13px; font-weight: 600; color: var(--nx-muted-hi, #cbd2d9); font-variant-numeric: tabular-nums; }
@media (max-width: 800px) { .rs-fv2, .rs-fcols { min-height: 220px; height: 220px; } .rs-fh { font-size: 10.5px; } .rs-fp { font-size: 11px; padding: 2px 5px; } .rs-fn { font-size: 11.5px; } }
.rs-fv { text-align: right; display: flex; flex-direction: column; } .rs-fv b { color: #fff; font-variant-numeric: tabular-nums; } .rs-fv small { color: #919eab; font-size: 11px; }
.rs-seg { display: inline-flex; background: #0a0a0a; border-radius: 6px; padding: 2px; } .rs-seg button { min-height: 44px; min-width: 76px; border: 0; border-radius: 4px; background: transparent; color: #919eab; font: inherit; font-size: 13px; cursor: pointer; } .rs-seg button.on { background: #B8F6FD; color: #121635; font-weight: 600; }
.rs-sk { background: linear-gradient(90deg, #232323, #2c2c2c, #232323); background-size: 200% 100%; animation: rsShimmer 1.2s linear infinite; border-radius: 6px; } .rs-sk-v { height: 28px; width: 70%; } .rs-sk-n { height: 12px; width: 50%; } .rs-sk-h { height: 16px; width: 40%; margin-bottom: 16px; } .rs-sk-b { height: 180px; }
@keyframes rsShimmer { to { background-position: -200% 0; } } @media (prefers-reduced-motion: reduce) { .rs-sk { animation: none; } }
.rs-err { grid-column: 1 / -1; padding: 20px; } .rs-err p { color: #919eab; font-size: 13px; } .rs-foot { height: 24px; }
@media (max-width: 800px) { .rs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .rs-card { padding: 14px; min-height: 104px; } .rs-val { font-size: 19px; }  .rs-cb-w { height: 260px; }  .rs-blk { padding: 16px; } .rs-donut { justify-content: center; }  }
