/* ================================================================
   ABA RENOVAÇÃO – painel de renovação de contratos
================================================================ */
.rn-wrap { --rn-navy:#0A2364; --rn-blue:#1455C0; --rn-sky:#2878F2; --rn-ok:#16B364; --rn-ok2:#4ADE80;
  --rn-wait:#F5A524; --rn-pend:#F04461; --rn-ink:#0C1D3A; --rn-mute:#64748B; --rn-line:#E6EDF8; }
.rn-wrap * { box-sizing:border-box; }
.rn-mono { font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }
.rn-num { font-variant-numeric: tabular-nums; }

/* ---------- HERO ---------- */
.rn-hero { position:relative; overflow:hidden; border-radius:24px; padding:22px; color:#fff;
  background: radial-gradient(1200px 400px at 110% -20%, rgba(74,222,128,.22), transparent 60%),
              radial-gradient(800px 380px at -10% 120%, rgba(40,120,242,.55), transparent 60%),
              linear-gradient(135deg, #071a4d 0%, #0A2364 45%, #123f9e 100%);
  box-shadow: 0 18px 50px -18px rgba(10,35,100,.65); }
.rn-hero::before { content:""; position:absolute; inset:0; pointer-events:none; opacity:.35;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.rn-hero > * { position:relative; }
.rn-eyebrow { font-size:11px; letter-spacing:.18em; text-transform:uppercase; color:rgba(255,255,255,.6); font-weight:700; display:flex; align-items:center; gap:8px; }
.rn-eyebrow .rn-dot { width:8px; height:8px; border-radius:99px; background:var(--rn-ok2); box-shadow:0 0 0 0 rgba(74,222,128,.7); animation: rn-pulse 2s infinite; }
@keyframes rn-pulse { 0%{box-shadow:0 0 0 0 rgba(74,222,128,.7)} 70%{box-shadow:0 0 0 10px rgba(74,222,128,0)} 100%{box-shadow:0 0 0 0 rgba(74,222,128,0)} }
.rn-hero-grid { display:grid; grid-template-columns: 1fr; gap:22px; align-items:center; margin-top:14px; }
@media (min-width: 900px) { .rn-hero-grid { grid-template-columns: 220px 1fr 260px; } }
.rn-ring { position:relative; width:200px; height:200px; margin:0 auto; }
.rn-ring svg { width:100%; height:100%; transform: rotate(-90deg); overflow:visible; }
.rn-ring .rn-ring-bg { stroke: rgba(255,255,255,.12); }
.rn-ring .rn-ring-fg { stroke: url(#rnGrad); stroke-linecap: round; transition: stroke-dashoffset 1.6s cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 0 10px rgba(74,222,128,.55)); }
.rn-ring .rn-ring-wait { stroke: var(--rn-wait); stroke-linecap: butt; opacity:.9; transition: stroke-dashoffset 1.6s cubic-bezier(.2,.8,.2,1), stroke-dasharray 1.6s; }
.rn-ring-center { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; }
.rn-ring-pct { font-size:44px; font-weight:900; line-height:1; letter-spacing:-.03em; }
.rn-ring-pct small { font-size:20px; font-weight:800; opacity:.75; }
.rn-ring-lbl { font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:rgba(255,255,255,.65); margin-top:6px; font-weight:700; }
.rn-headline { font-size:24px; font-weight:800; line-height:1.15; letter-spacing:-.02em; }
@media (min-width: 640px) { .rn-headline { font-size:30px; } }
.rn-headline em { font-style:normal; background: linear-gradient(90deg,#4ADE80,#A7F3D0); -webkit-background-clip:text; background-clip:text; color:transparent; }
.rn-sub { color: rgba(255,255,255,.7); font-size:13px; margin-top:6px; }
.rn-seg { display:flex; height:14px; border-radius:99px; overflow:hidden; background:rgba(255,255,255,.1); margin-top:16px; }
.rn-seg > span { display:block; height:100%; width:0; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.rn-seg .s-ok { background: linear-gradient(90deg,#16B364,#4ADE80); }
.rn-seg .s-wait { background: var(--rn-wait); }
.rn-seg .s-pend { background: linear-gradient(90deg,#F04461,#FF7A90); }
.rn-legend { display:flex; flex-wrap:wrap; gap:14px; margin-top:10px; font-size:12px; color:rgba(255,255,255,.75); }
.rn-legend i { display:inline-block; width:9px; height:9px; border-radius:3px; margin-right:6px; vertical-align:middle; }
.rn-mile { background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14); border-radius:18px; padding:14px 16px; backdrop-filter: blur(6px); }
.rn-mile-title { font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:rgba(255,255,255,.6); font-weight:700; }
.rn-mile-big { font-size:28px; font-weight:900; letter-spacing:-.02em; margin-top:4px; }
.rn-mile-row { display:flex; gap:6px; margin-top:12px; }
.rn-mile-row div { flex:1; height:6px; border-radius:99px; background:rgba(255,255,255,.14); position:relative; overflow:hidden; }
.rn-mile-row div b { position:absolute; inset:0; width:0; background: linear-gradient(90deg,#16B364,#4ADE80); border-radius:99px; transition: width 1.4s; }
.rn-mile-lbls { display:flex; justify-content:space-between; font-size:10px; color:rgba(255,255,255,.55); margin-top:6px; }
.rn-hero-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; justify-content:space-between; }
.rn-btn-glass { display:inline-flex; align-items:center; gap:8px; font-size:12px; font-weight:700; color:#fff; padding:8px 14px; border-radius:99px;
  background: rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.2); transition: background .2s, transform .2s; cursor:pointer; }
.rn-btn-glass:hover { background: rgba(255,255,255,.2); transform: translateY(-1px); }
.rn-btn-glass:disabled { opacity:.6; cursor:wait; }

/* ---------- KPIs ---------- */
.rn-kpis { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:12px; margin-top:16px; }
@media (min-width: 768px) { .rn-kpis { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1200px) { .rn-kpis { grid-template-columns: repeat(6, minmax(0,1fr)); } }
.rn-kpi { position:relative; overflow:hidden; background:#fff; border:1px solid var(--rn-line); border-radius:18px; padding:14px 16px;
  box-shadow: 0 1px 2px rgba(12,29,58,.04); transition: transform .25s, box-shadow .25s; }
.rn-kpi:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -16px rgba(10,35,100,.35); }
.rn-kpi::after { content:""; position:absolute; right:-30px; top:-30px; width:90px; height:90px; border-radius:99px; background: var(--rn-acc, #2878F2); opacity:.08; }
.rn-kpi-ico { width:32px; height:32px; border-radius:10px; display:flex; align-items:center; justify-content:center; color:#fff; background: var(--rn-acc, #2878F2); font-size:13px; }
.rn-kpi-lbl { font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color: var(--rn-mute); margin-top:10px; }
.rn-kpi-val { font-size:26px; font-weight:900; color: var(--rn-ink); letter-spacing:-.02em; line-height:1.1; margin-top:2px; }
.rn-kpi-foot { font-size:11.5px; color: var(--rn-mute); margin-top:4px; }

/* ---------- CARDS ---------- */
.rn-grid2 { display:grid; grid-template-columns: 1fr; gap:16px; margin-top:16px; }
@media (min-width: 1024px) { .rn-grid2 { grid-template-columns: 1.15fr .85fr; } }
.rn-card { background:#fff; border:1px solid var(--rn-line); border-radius:20px; padding:18px; box-shadow: 0 1px 2px rgba(12,29,58,.04); }
.rn-card-h { display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-bottom:14px; }
.rn-card-t { font-size:16px; font-weight:800; color: var(--rn-ink); letter-spacing:-.01em; }
.rn-card-t i { color: var(--rn-sky); margin-right:6px; }
.rn-card-s { font-size:11.5px; color: var(--rn-mute); }

/* Pódio */
.rn-podium { display:grid; grid-template-columns: 1fr 1.15fr 1fr; gap:10px; align-items:end; margin-bottom:16px; }
.rn-pod { text-align:center; cursor:pointer; }
.rn-pod-av { width:52px; height:52px; border-radius:99px; margin:0 auto 6px; display:flex; align-items:center; justify-content:center; font-weight:900; color:#fff; font-size:18px; position:relative;
  box-shadow: 0 8px 20px -8px rgba(10,35,100,.6); }
.rn-pod-av .rn-medal { position:absolute; right:-6px; bottom:-4px; font-size:18px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
.rn-pod-name { font-size:13px; font-weight:800; color: var(--rn-ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rn-pod-base { margin-top:8px; border-radius:14px 14px 6px 6px; color:#fff; padding:10px 6px; font-weight:900; font-size:20px; line-height:1;
  background: linear-gradient(180deg, var(--rn-sky), var(--rn-navy)); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); transition: transform .2s; }
.rn-pod:hover .rn-pod-base { transform: translateY(-3px); }
.rn-pod-base small { display:block; font-size:10px; font-weight:700; opacity:.75; margin-top:4px; letter-spacing:.06em; text-transform:uppercase; }
.rn-pod.p1 .rn-pod-base { height:118px; background: linear-gradient(180deg,#FFD25E,#E39B10); color:#3b2600; }
.rn-pod.p2 .rn-pod-base { height:92px; background: linear-gradient(180deg,#E7EEF9,#9FB1CC); color:#1b2a44; }
.rn-pod.p3 .rn-pod-base { height:74px; background: linear-gradient(180deg,#F6C6A0,#C8763D); color:#3b1c05; }
.rn-pod-base { display:flex; flex-direction:column; justify-content:center; }

/* Linhas de ranking */
.rn-row { display:grid; grid-template-columns: 28px 34px 1fr auto; gap:10px; align-items:center; padding:10px 8px; border-radius:14px; cursor:pointer; transition: background .2s; }
.rn-row:hover { background:#F4F8FF; }
.rn-row.is-active { background:#EAF2FF; box-shadow: inset 0 0 0 1.5px #2878F2; }
.rn-row-pos { font-size:12px; font-weight:800; color:#94A3B8; text-align:center; }
.rn-av { width:34px; height:34px; border-radius:99px; color:#fff; font-weight:800; font-size:13px; display:flex; align-items:center; justify-content:center; }
.rn-row-name { font-size:13.5px; font-weight:700; color: var(--rn-ink); display:flex; justify-content:space-between; gap:8px; }
.rn-row-name span:last-child { font-size:12px; color: var(--rn-mute); font-weight:600; }
.rn-mini { display:flex; height:7px; border-radius:99px; overflow:hidden; background:#EEF2F8; margin-top:6px; }
.rn-mini > span { height:100%; width:0; transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.rn-mini .s-ok { background: var(--rn-ok); } .rn-mini .s-wait { background: var(--rn-wait); } .rn-mini .s-pend { background: var(--rn-pend); }
.rn-row-pct { font-size:15px; font-weight:900; color: var(--rn-ink); min-width:48px; text-align:right; }
.rn-row-pct small { display:block; font-size:10px; font-weight:700; color: var(--rn-mute); }

/* Alerta sem dono */
.rn-alert { display:flex; gap:12px; align-items:flex-start; padding:14px 16px; border-radius:16px; margin-top:16px;
  background: linear-gradient(135deg,#FFF4E5,#FFE8EC); border:1px solid #FFD6A8; color:#7A3B00; font-size:13px; line-height:1.45; }
.rn-alert .rn-alert-ico { width:34px; height:34px; border-radius:12px; background:#F5A524; color:#fff; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.rn-alert b { color:#5B2A00; }
.rn-alert button { margin-top:8px; font-size:12px; font-weight:800; color:#B42318; background:#fff; border:1px solid #FECDCA; border-radius:99px; padding:5px 12px; }

/* Funil */
.rn-funnel { display:flex; flex-direction:column; gap:8px; }
.rn-funnel { gap:12px; }
.rn-fun-top { display:flex; justify-content:space-between; align-items:baseline; font-size:13px; font-weight:700; color:#334155; }
.rn-fun-top b { font-size:17px; font-weight:900; color: var(--rn-ink); }
.rn-fun-track { height:12px; border-radius:99px; background:#EEF2F8; overflow:hidden; margin-top:5px; }
.rn-fun-fill { height:100%; width:0; border-radius:99px; transition: width 1.3s cubic-bezier(.2,.8,.2,1); }
.rn-fun-conv { font-size:11px; color: var(--rn-mute); margin-top:3px; font-weight:600; }

/* Cidades */
.rn-cities { display:grid; grid-template-columns: repeat(1, minmax(0,1fr)); gap:12px; }
@media (min-width: 560px) { .rn-cities { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1100px) { .rn-cities { grid-template-columns: repeat(5, minmax(0,1fr)); } }
.rn-city { position:relative; border:1px solid var(--rn-line); border-radius:18px; padding:14px; cursor:pointer; background: linear-gradient(180deg,#fff,#F8FBFF);
  transition: transform .2s, box-shadow .2s, border-color .2s; }
.rn-city:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(10,35,100,.4); border-color:#C9DBF8; }
.rn-city.is-active { border-color:#2878F2; box-shadow: 0 0 0 2px #2878F2 inset; }
.rn-city-top { display:flex; align-items:center; gap:12px; }
.rn-city-ring { width:58px; height:58px; flex-shrink:0; position:relative; }
.rn-city-ring svg { width:100%; height:100%; transform: rotate(-90deg); }
.rn-city-ring .bg { stroke:#EEF2F8; } .rn-city-ring .fg { stroke: var(--rn-ok); stroke-linecap:round; transition: stroke-dashoffset 1.4s cubic-bezier(.2,.8,.2,1); }
.rn-city-ring div { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:900; color: var(--rn-ink); }
.rn-city-name { font-size:14px; font-weight:800; color: var(--rn-ink); line-height:1.2; }
.rn-city-sub { font-size:11.5px; color: var(--rn-mute); margin-top:2px; }
.rn-city-stats { display:flex; gap:10px; margin-top:12px; font-size:11.5px; font-weight:700; }
.rn-city-stats span { display:flex; align-items:center; gap:4px; }
.rn-city-risk { margin-top:8px; font-size:11px; color:#B42318; background:#FFF1F3; border-radius:10px; padding:6px 8px; font-weight:700; }
.rn-tag-dono { position:absolute; top:10px; right:10px; font-size:9.5px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; padding:3px 7px; border-radius:99px; }

/* Radar de vencimentos */
.rn-radar { display:grid; grid-template-columns: repeat(31, minmax(0,1fr)); gap:3px; align-items:end; height:120px; }
.rn-bar { position:relative; border-radius:6px 6px 2px 2px; background: linear-gradient(180deg,#FF7A90,#F04461); min-height:3px; cursor:pointer; transition: height 1s cubic-bezier(.2,.8,.2,1), opacity .2s, transform .2s; opacity:.35; }
.rn-bar.is-week { opacity:1; box-shadow: 0 6px 14px -6px rgba(240,68,97,.7); }
.rn-bar.is-today { background: linear-gradient(180deg,#4ADE80,#16B364); opacity:1; }
.rn-bar:hover { transform: scaleY(1.04); opacity:1; }
.rn-bar .tip { display:none; position:absolute; bottom:calc(100% + 6px); left:50%; transform:translateX(-50%); background:#0C1D3A; color:#fff; font-size:11px; padding:4px 8px; border-radius:8px; white-space:nowrap; z-index:5; font-weight:700; }
.rn-bar:hover .tip { display:block; }
.rn-radar-x { display:grid; grid-template-columns: repeat(31, minmax(0,1fr)); gap:3px; margin-top:6px; font-size:9px; color:#94A3B8; text-align:center; font-weight:700; }
.rn-radar-x .t { color:#16B364; }
.rn-week { display:flex; align-items:center; gap:14px; padding:12px 14px; border-radius:14px; margin-top:12px; background: linear-gradient(135deg,#0A2364,#1455C0); color:#fff; }
.rn-week b { font-size:24px; font-weight:900; }
.rn-week button { margin-left:auto; font-size:12px; font-weight:800; background:#fff; color:#0A2364; border-radius:99px; padding:6px 12px; white-space:nowrap; }

/* Insights */
.rn-insights { display:grid; grid-template-columns: 1fr; gap:10px; }
@media (min-width: 768px) { .rn-insights { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.rn-ins { display:flex; gap:12px; align-items:flex-start; padding:12px 14px; border-radius:16px; border:1px solid var(--rn-line); background:#FBFDFF; font-size:13px; color:#334155; line-height:1.45; }
.rn-ins-ico { width:34px; height:34px; border-radius:12px; display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:14px; }
.rn-ins b { color: var(--rn-ink); }

/* Lista de clientes */
.rn-toolbar { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.rn-search { position:relative; flex:1 1 260px; }
.rn-search input { width:100%; border:1px solid var(--rn-line); background:#F8FBFF; border-radius:14px; padding:11px 14px 11px 38px; font-size:13.5px; outline:none; transition: border-color .2s, box-shadow .2s; }
.rn-search input:focus { border-color:#2878F2; box-shadow: 0 0 0 4px rgba(40,120,242,.12); background:#fff; }
.rn-search i { position:absolute; left:14px; top:50%; transform:translateY(-50%); color:#94A3B8; font-size:13px; }
.rn-chip { font-size:12px; font-weight:700; padding:7px 12px; border-radius:99px; border:1px solid var(--rn-line); background:#fff; color:#475569; cursor:pointer; transition: all .2s; white-space:nowrap; }
.rn-chip:hover { border-color:#C9DBF8; }
.rn-chip.on { background: var(--rn-navy); border-color: var(--rn-navy); color:#fff; }
.rn-chip .n { opacity:.65; margin-left:4px; font-weight:800; }
.rn-select { font-size:12px; font-weight:700; padding:8px 10px; border-radius:12px; border:1px solid var(--rn-line); background:#fff; color:#334155; }
.rn-active-filters { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.rn-af { display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:700; background:#EAF2FF; color:#1455C0; border-radius:99px; padding:5px 10px; }
.rn-af button { color:#1455C0; opacity:.7; }
.rn-list { margin-top:12px; display:flex; flex-direction:column; gap:8px; }
.rn-cli { display:grid; grid-template-columns: 1fr; gap:8px; padding:12px 14px; border:1px solid var(--rn-line); border-radius:16px; background:#fff; transition: box-shadow .2s, border-color .2s; }
.rn-cli:hover { border-color:#C9DBF8; box-shadow: 0 10px 24px -18px rgba(10,35,100,.45); }
@media (min-width: 900px) { .rn-cli { grid-template-columns: minmax(0,2.2fr) minmax(0,1fr) minmax(0,1.3fr) minmax(0,1.4fr) auto; align-items:center; } }
.rn-cli-name { font-size:13.5px; font-weight:800; color: var(--rn-ink); line-height:1.25; }
.rn-cli-meta { font-size:11.5px; color: var(--rn-mute); margin-top:2px; }
.rn-pill { display:inline-flex; align-items:center; gap:6px; font-size:11.5px; font-weight:800; padding:4px 10px; border-radius:99px; white-space:nowrap; }
.rn-pill.ok { background:#E8F8EF; color:#0B7A43; } .rn-pill.wait { background:#FFF5E1; color:#9A5B00; } .rn-pill.pend { background:#FFECEF; color:#B42318; }
.rn-pill i { font-size:7px; }
.rn-resp { display:flex; align-items:center; gap:8px; font-size:12.5px; font-weight:700; color:#334155; }
.rn-resp .rn-av { width:26px; height:26px; font-size:11px; }
.rn-resp.none { color:#B42318; font-style:italic; font-weight:600; }
.rn-cli-plan { font-size:12px; color:#334155; font-weight:600; line-height:1.3; }
.rn-cli-plan small { display:block; color: var(--rn-mute); font-weight:600; }
.rn-cli-act { display:flex; gap:6px; justify-content:flex-end; }
.rn-ic { width:34px; height:34px; border-radius:12px; display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--rn-line); color:#475569; background:#fff; transition: all .2s; }
.rn-ic:hover { transform: translateY(-1px); }
.rn-ic.wa { background:#25D366; border-color:#25D366; color:#fff; box-shadow: 0 6px 14px -8px rgba(37,211,102,.8); }
.rn-ic.wa:hover { background:#1EBE5A; }
.rn-due { display:inline-flex; align-items:center; gap:4px; font-size:11px; font-weight:800; padding:2px 7px; border-radius:8px; background:#F1F5F9; color:#475569; }
.rn-due.hot { background:#FFECEF; color:#B42318; }
.rn-obs { font-size:11.5px; color:#7A5A00; background:#FFF8E6; border-radius:10px; padding:5px 8px; margin-top:6px; display:inline-block; }
.rn-more { display:block; margin:14px auto 0; font-size:13px; font-weight:800; color:#1455C0; background:#EAF2FF; border-radius:99px; padding:9px 18px; }
.rn-empty { text-align:center; padding:36px 10px; color:#94A3B8; font-size:13px; }

/* Esqueleto de carregamento */
.rn-skel { border-radius:20px; background: linear-gradient(90deg,#EEF3FB 0%,#F8FBFF 40%,#EEF3FB 80%); background-size: 200% 100%; animation: rn-shimmer 1.3s infinite; }
@keyframes rn-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.rn-in { animation: rn-up .6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rn-up { from { opacity:0; transform: translateY(12px); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce) { .rn-in, .rn-skel, .rn-eyebrow .rn-dot { animation:none; } }

.rn-city-dono { margin-top:8px; font-size:11px; color:#1455C0; background:#EAF2FF; border-radius:10px; padding:6px 8px; font-weight:600; }
.rn-city-dono i { margin-right:5px; }
.rn-city-dono.none { color:#9A5B00; background:#FFF5E1; font-weight:700; }
