/* Revendas — seção do painel admin (complementa style.css) */
.rv-tabs{display:inline-flex;gap:4px;padding:4px;margin:-6px 0 22px;background:#fff;border:1px solid var(--border);border-radius:14px;flex-wrap:wrap}
.rv-tabs button{background:none;padding:9px 16px;border-radius:10px;font-size:14px;color:#5c687a}
.rv-tabs button:hover{background:#f3f5f8;filter:none}
.rv-tabs button.on{background:#1a1a1e;color:#fff}
.rv-count{display:inline-block;min-width:20px;padding:1px 6px;margin-left:4px;border-radius:999px;background:#eef1f5;color:#5c687a;font-size:11px}
.rv-tabs button.on .rv-count{background:#ffffff24;color:#fff}

.rv-top{display:grid;grid-template-columns:minmax(300px,1fr) minmax(0,2fr);gap:18px;margin-bottom:22px}
.rv-hero{position:relative;overflow:hidden;border-radius:18px;padding:26px 28px 22px;color:#fff;display:flex;flex-direction:column;gap:6px;
  background:radial-gradient(120% 140% at 100% 0%,rgba(46,182,245,.22),transparent 55%),radial-gradient(110% 120% at 0% 100%,rgba(10,142,240,.28),transparent 58%),#15161b}
.rv-eyebrow{margin:0;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#b9c1cf}
.rv-hero-value{font-size:48px;font-weight:700;letter-spacing:-1.6px;line-height:1.1;margin:6px 0 2px}
.rv-hero-meta{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;font-size:13px;color:#c9d0dc}
.rv-hero .rv-delta.up{background:#2fbf7124;color:#8ef0bc}.rv-hero .rv-delta.down{background:#f04f6a26;color:#ffa3b1}
.rv-hero .rv-delta small{color:inherit;opacity:.8}
.rv-hero-spark{margin:auto 0 0;padding-top:14px}
.rv-hero-foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 16px;padding-top:14px;margin-top:4px;border-top:1px solid #ffffff1a;font-size:12px;color:#aab3c2}
.rv-hero-foot b{color:#fff;font-weight:600}

.rv-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.rv-tile{background:#fff;border:1px solid var(--border);border-radius:16px;padding:16px 18px;min-width:0}
.rv-tile p{margin:0 0 8px;font-size:12.5px;color:#768093;line-height:1.35}
.rv-tile strong{display:block;font-size:28px;font-weight:600;letter-spacing:-.8px;line-height:1.1;color:#1f2633}
.rv-tile strong em{font-style:normal;font-size:15px;font-weight:500;color:#8a93a3;letter-spacing:0}
.rv-tile small{display:block;margin-top:8px;font-size:11.5px;color:#8791a1;line-height:1.45}
.rv-delta{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:999px;font-size:11.5px;font-weight:700}
.rv-delta small{display:inline!important;margin:0!important;font-weight:500;font-size:11px!important;color:inherit!important;opacity:.75}
.rv-delta.up{background:#eaf7f0;color:#1d7a4e}.rv-delta.down{background:#fcecef;color:#b72943}
.rv-note{font-size:11px;color:#8791a1}

.rv-card{padding:22px 24px}
.rv-card.table-card{padding:0}
.rv-card h2{margin:0 0 4px}
.rv-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px;flex-wrap:wrap}
.rv-pad{padding:22px 24px 4px}
.rv-cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px}
.rv-cols>.card{margin-bottom:22px}
.rv-seg{display:inline-flex;gap:3px;padding:3px;background:#f1f3f7;border-radius:10px}
.rv-seg button{background:none;padding:7px 13px;font-size:13px;border-radius:8px;color:#5c687a}
.rv-seg button.on{background:#fff;color:#1f2633;box-shadow:0 1px 3px #12141a1f}
.rv-seg-full{display:flex;margin-bottom:18px}.rv-seg-full button{flex:1}
.rv-link{color:#2a78d6;font-weight:600;font-size:13px;background:none;padding:0}
.rv-link:hover{text-decoration:underline;filter:none}

.rv-rows{display:grid}
.rv-row{display:flex;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid #f0f2f5}
.rv-row:last-child{border-bottom:0}
.rv-row>div{flex:1;min-width:0}
.rv-row strong{display:block;font-size:14px;color:#303a4c}
.rv-row small{display:block;font-size:12px;color:#8791a1;margin-top:3px}
.rv-ok{display:flex;align-items:center;gap:10px;padding:26px 4px;color:#5c687a;font-size:14px}
.rv-ok span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#eaf7f0;color:#1d7a4e;font-weight:700}

.rv-kind{display:inline-block;padding:4px 9px;border-radius:6px;font-size:11px;font-weight:700}
.rv-kind.sale{background:#e8f1fc;color:#1d5fae}
.rv-kind.bonus{background:#f4f0ff;color:#6b46c1}
.rv-kind.remove{background:#fcecef;color:#b72943}
.rv-kind.use{background:#eef1f5;color:#4b586b}
.rv-kind.move{background:#fff4e5;color:#975a16}
.rv-num{font-variant-numeric:tabular-nums;white-space:nowrap}
.rv-num small{display:block;color:#8791a1;font-size:11px;margin-top:3px}
.rv-num.pos{color:#1d7a4e;font-weight:600}.rv-num.neg{color:#b72943;font-weight:600}
.rv-branch{color:#a5afbd;margin-right:6px}
.rv-role{display:inline-block;padding:2px 7px;border-radius:5px;background:#e8f7f9;color:#1f7b88;font-size:10.5px;font-weight:700;vertical-align:middle}
.rv-warn{color:#b72943!important}

.rv-sum{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}

.rv-sub{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#7a8494;margin:26px 0 12px}
.rv-tier{display:flex;align-items:flex-end;gap:12px;margin-bottom:10px}
.rv-tier label{flex:1;margin:0;font-weight:500;font-size:12px}
.rv-tier .icon-button{margin-bottom:6px}
.rv-check{display:block;font-weight:600}
.rv-check input{margin-right:8px}
.rv-check .hint{margin-top:4px}
.rv-rule{display:flex;gap:14px;align-items:flex-start;padding:14px 0;border-bottom:1px solid #f0f2f5}
.rv-rule span{flex:0 0 34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#e6f3fd;color:#0567c2;font-weight:800;font-size:13px}
.rv-rule strong{display:block;font-size:14px;color:#303a4c}
.rv-rule small{display:block;font-size:12.5px;color:#7c8595;margin-top:3px;line-height:1.5}

.rv-quick{display:flex;gap:6px;margin-top:8px;flex-wrap:wrap}
.rv-quick button{padding:5px 11px;font-size:12px;border-radius:999px;background:#f1f3f7}
.rv-total{display:grid;gap:8px;background:#f7f8fb;border:1px solid var(--border);border-radius:12px;padding:14px 16px;margin:4px 0 6px}
.rv-total div{display:flex;justify-content:space-between;align-items:baseline;font-size:14px;color:#5c687a}
.rv-total b{color:#1f2633;font-variant-numeric:tabular-nums}
.rv-big{font-size:22px;letter-spacing:-.5px}
.rv-access{display:grid;gap:10px;background:#15161b;color:#fff;border-radius:14px;padding:18px 20px}
.rv-access div{display:flex;justify-content:space-between;gap:16px;font-size:14px}
.rv-access span{color:#aab3c2}
.rv-access b{word-break:break-all;text-align:right}
.rv-access .mono{color:#fff;font-size:15px}

dialog.rv-wide{width:min(1080px,96vw)}
.rv-dhead{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:-10px}
.rv-dhead .sub{margin-left:4px}
.rv-minis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-top:18px}
.rv-mini{background:#f7f8fb;border:1px solid var(--border);border-radius:12px;padding:12px 14px;min-width:0}
.rv-mini span{display:block;font-size:11.5px;color:#7c8595}
.rv-mini strong{display:block;font-size:20px;font-weight:600;margin-top:4px;color:#1f2633;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rv-mini small{display:block;font-size:11px;color:#8791a1;margin-top:3px}
.rv-dclients{max-height:340px;border:1px solid var(--border);border-radius:12px}
.rv-dclients td,.rv-dclients th{padding:11px 16px}
.rv-audit{display:grid;border:1px solid var(--border);border-radius:12px;overflow:hidden}
.rv-audit div{display:flex;justify-content:space-between;gap:12px;padding:10px 14px;font-size:13px;border-bottom:1px solid #f0f2f5}
.rv-audit div:last-child{border-bottom:0}
.rv-audit small{color:#8791a1;text-align:right}
.rv-dactions{flex-wrap:wrap}
.rv-dactions .danger{margin-right:auto}

@media(max-width:1250px){.rv-top{grid-template-columns:minmax(0,1fr)}.rv-minis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1050px){.rv-cols{grid-template-columns:minmax(0,1fr);gap:0}.rv-tiles,.rv-sum{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.rv-hero-value{font-size:38px}.rv-tile strong{font-size:23px}.rv-minis{grid-template-columns:repeat(2,minmax(0,1fr))}.rv-tabs{display:flex}.rv-tabs button{flex:1;padding:9px 8px;font-size:13px}.rv-card{padding:18px}.rv-tier{flex-wrap:wrap}}
.rv-table th,.rv-table td{padding-left:18px;padding-right:18px}

/* Minha conta — segurança */
.sec-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:22px}
.sec-grid>.card{margin-bottom:22px}
.sec-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:16px}
.sec-head h2{margin-bottom:6px}
.sec-badge{padding:6px 12px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}
.sec-badge.on{background:#eaf7f0;color:#1d7a4e}.sec-badge.off{background:#fff4e5;color:#975a16}
.sec-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:6px 0 4px}
.sec-facts div{background:#f7f8fb;border:1px solid var(--border);border-radius:12px;padding:12px 14px}
.sec-facts span{display:block;font-size:11.5px;color:#7c8595}
.sec-facts strong{display:block;font-size:17px;margin-top:4px;color:#1f2633}
.sec-actions{flex-wrap:wrap}.sec-actions .danger{margin-right:auto}
.sec-steps{margin:0 0 6px;padding-left:22px;display:grid;gap:18px}
.sec-steps li strong{display:block;font-size:14px;margin-bottom:4px}
.sec-steps small{display:block;color:#7c8595;font-size:12.5px;line-height:1.5}
.sec-qr{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin-top:10px}
.sec-qr svg{border:1px solid var(--border);border-radius:12px;padding:6px;background:#fff;flex:0 0 auto}
.sec-qr>div{flex:1;min-width:200px}
.sec-key{display:block;margin:8px 0;padding:10px 12px;background:#15161b;color:#fff;border-radius:10px;font-family:Consolas,monospace;font-size:14px;letter-spacing:.06em;word-break:break-all}
.sec-codes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:6px}
.sec-codes code{background:#f7f8fb;border:1px solid var(--border);border-radius:8px;padding:10px;text-align:center;font-family:Consolas,monospace;font-size:15px;letter-spacing:.08em}
@media(max-width:1050px){.sec-grid{grid-template-columns:minmax(0,1fr);gap:0}}

/* ---- Revendas v3: árvore, ranking, segurança, suporte ---- */
.nav-badge{margin-left:auto;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#d03b3b;color:#fff;font-size:11px;font-weight:800;display:inline-grid;place-items:center}
.rv-count.alert{background:#d03b3b;color:#fff}
.rv-tabs button.on .rv-count.alert{background:#d03b3b;color:#fff}
.rv-2fa{display:inline-block;padding:2px 7px;border-radius:5px;background:#eaf7f0;color:#1d7a4e;font-size:10.5px;font-weight:700;vertical-align:middle;margin-left:6px}
.rv-2fa.off{background:#fff4e5;color:#975a16}
.rv-pay{display:inline-block;padding:2px 7px;border-radius:5px;background:#e6f3fd;color:#0567c2;font-size:10.5px;font-weight:700}
.rv-pay.off{background:#eef1f5;color:#5c687a}
.rv-tree-tools input{width:220px;max-width:100%}
.rv-tree{border:1px solid var(--border);border-radius:14px;overflow:hidden}
.rv-node{position:relative;display:grid;grid-template-columns:28px minmax(0,1fr) minmax(140px,240px) 92px 92px;align-items:center;gap:12px;padding:10px 14px 10px calc(14px + var(--lvl,0)*28px);border-bottom:1px solid #f0f2f5;background:#fff}
.rv-tree>.rv-node:last-child,.rv-kids:last-child>.rv-node:last-child{border-bottom:0}
.rv-node-head{background:none;border:0;padding:0 14px 8px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#7a8494}
.rv-kids>.rv-node::before{content:'';position:absolute;top:0;bottom:0;left:calc(var(--lvl)*28px);border-left:1px dashed #cfd6df}
.rv-kids>.rv-node{background:#fbfcfe}
.rv-node.hit{background:#eef6fe}
.rv-node.off .rv-nname strong{color:#8a93a3;text-decoration:line-through}
.rv-tg{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;background:#f1f3f7;color:#3f4a5c;font-size:13px;padding:0}
.rv-tg:hover{background:#e6f3fd;color:#0567c2;filter:none}
.rv-tg.leaf{background:none}
.rv-tg.leaf::after{content:'';width:6px;height:6px;border-radius:50%;background:#c7cfda}
.rv-nname{display:block;text-align:left;background:none;padding:0;min-width:0;color:inherit;font:inherit}
.rv-nname:hover{filter:none}.rv-nname:hover strong{color:#0277d4;text-decoration:underline}
.rv-nname strong{font-size:14px;color:#1f2633;margin-right:6px}
.rv-nname small{display:block;font-size:12px;color:#8791a1;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rv-nbar{position:relative;height:24px;border-radius:7px;background:#f1f3f7;overflow:hidden}
.rv-nbar i{position:absolute;inset:0 auto 0 0;background:linear-gradient(90deg,#2a78d6,#2eb6f5);border-radius:7px}
.rv-nbar span{position:relative;display:block;padding:0 9px;line-height:24px;font-size:12px;font-weight:700;color:#1f2633;text-shadow:0 0 6px #fff}
.rv-nnum{text-align:right;font-variant-numeric:tabular-nums;font-weight:600;color:#303a4c}
.rv-nnum small{display:block;font-weight:500;font-size:11px;color:#8791a1}
.rv-podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:20px}
.rv-pod{display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left;padding:18px;border-radius:16px;border:1px solid var(--border);background:#fff;color:inherit;font:inherit;min-width:0}
.rv-pod:hover{filter:none;border-color:#9cc9f0}
.rv-pod strong{font-size:15px;color:#1f2633;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rv-pod small{font-size:12px;color:#8791a1}
.rv-pod b{font-size:26px;letter-spacing:-.6px;color:#1f2633;margin:8px 0 2px;font-variant-numeric:tabular-nums}
.rv-pod.p1{background:linear-gradient(135deg,#e6f3fd,#fff 70%);border-color:#9cc9f0}
.rv-medal{display:inline-grid;place-items:center;min-width:34px;height:26px;padding:0 8px;border-radius:999px;font-size:12px;font-weight:800;background:#eef1f5;color:#3f4a5c;margin-bottom:6px}
.p1 .rv-medal{background:#0277d4;color:#fff}.p2 .rv-medal{background:#5c8fc4;color:#fff}.p3 .rv-medal{background:#9db6cf;color:#fff}
.rv-rank .rv-pos{font-weight:800;color:#7a8494;width:40px}
.rv-rbar{height:6px;border-radius:4px;background:#f1f3f7;overflow:hidden;margin-bottom:5px;max-width:160px}
.rv-rbar i{display:block;height:100%;background:#2a78d6;border-radius:4px}.rv-rbar i.neg{background:#d03b3b}
tr.clickable{cursor:pointer}tr.clickable:hover td{background:#f7faff}
.rv-sev-tile.crit strong{color:#b72943}.rv-sev-tile.warn strong{color:#975a16}.rv-sev-tile.info strong{color:#0567c2}
.rv-sec-tools{flex-wrap:wrap;gap:10px;align-items:center}
.rv-inline{display:inline-flex;align-items:center;gap:6px;margin:0;font-weight:600;font-size:13px}
.rv-inline input{margin:0}
.rv-ev{display:grid;grid-template-columns:32px minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:13px 18px;border-top:1px solid #f0f2f5;border-left:3px solid transparent}
.rv-ev.crit{border-left-color:#d03b3b}.rv-ev.warn{border-left-color:#e0a33a}.rv-ev.info{border-left-color:#7fb3e6}
.rv-ev.seen{opacity:.62}
.rv-ev-ic{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;background:#f1f3f7;font-size:15px}
.rv-ev.crit .rv-ev-ic{background:#fcecef}.rv-ev.warn .rv-ev-ic{background:#fff4e5}.rv-ev.info .rv-ev-ic{background:#e6f3fd}
.rv-ev-main{min-width:0}.rv-ev-main strong{display:block;font-size:14px;color:#1f2633}
.rv-ev-main small{display:block;font-size:12px;color:#7c8595;margin-top:3px;line-height:1.5}
.rv-ev-main .rv-link{font-size:12px}
.rv-ev-act{gap:6px;flex-wrap:nowrap}
.rv-sev{display:inline-block;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:700;white-space:nowrap;background:#eef1f5;color:#4b586b}
.rv-sev.crit{background:#fcecef;color:#b72943}.rv-sev.warn{background:#fff4e5;color:#975a16}.rv-sev.info{background:#e6f3fd;color:#0567c2}.rv-sev.ok{background:#eaf7f0;color:#1d7a4e}
.rv-minis.rv-minis-4{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:0}
.rv-tk{display:grid;grid-template-columns:10px minmax(0,1fr) auto auto;gap:12px;align-items:center;width:100%;text-align:left;padding:14px 18px;border:0;border-top:1px solid #f0f2f5;background:#fff;color:inherit;font:inherit;border-radius:0}
.rv-tk:hover{background:#f7faff;filter:none}
.rv-tk-dot{width:8px;height:8px;border-radius:50%}
.rv-tk.unread .rv-tk-dot{background:#0277d4}
.rv-tk-main{min-width:0}.rv-tk-main strong{display:block;font-size:14px;color:#1f2633;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rv-tk.unread .rv-tk-main strong{font-weight:800}
.rv-tk-main small{display:block;font-size:12px;color:#7c8595;margin-top:3px}
.rv-thread{display:flex;flex-direction:column;gap:10px;max-height:46vh;overflow:auto;margin:16px 0;padding:14px;background:#f7f8fb;border:1px solid var(--border);border-radius:14px}
.rv-msg{max-width:84%;padding:11px 14px;border-radius:14px;font-size:14px;line-height:1.55;word-wrap:break-word}
.rv-msg small{display:block;font-size:11.5px;font-weight:700;color:#7c8595;margin-bottom:4px}
.rv-msg.me{align-self:flex-end;background:#e6f3fd;border:1px solid #b9dcf7;border-bottom-right-radius:4px}
.rv-msg.them{align-self:flex-start;background:#fff;border:1px solid var(--border);border-bottom-left-radius:4px}
@media(max-width:1050px){.rv-podium{grid-template-columns:minmax(0,1fr)}.rv-node{grid-template-columns:28px minmax(0,1fr) 120px 70px 70px}}
@media(max-width:700px){.rv-node{grid-template-columns:28px minmax(0,1fr) 64px;padding-left:calc(10px + var(--lvl,0)*16px)}.rv-kids>.rv-node::before{left:calc(var(--lvl)*16px - 4px)}.rv-node .rv-nbar,.rv-node>.rv-nnum:last-child{display:none}.rv-node-head{display:none}.rv-ev{grid-template-columns:32px minmax(0,1fr);}.rv-ev .rv-sev,.rv-ev-act{grid-column:2}.rv-minis.rv-minis-4{grid-template-columns:repeat(2,minmax(0,1fr))}.rv-tk{grid-template-columns:10px minmax(0,1fr)}.rv-tk .rv-sev{grid-column:2;justify-self:start}.rv-tree-tools input{width:100%}}
.rv-card-head>.row{flex-wrap:wrap;gap:8px;max-width:100%}.rv-card-head .rv-seg{flex-wrap:wrap;max-width:100%}
