/* Relatórios da operação 1.4.25 · mesma linguagem da Visão geral (faixa com aurora e cartões claros). */
.rx-root{--rx-ink:#1d1238;--rx-text:#4a3f66;--rx-muted:#8a80a3;--rx-line:#ece7f4;--rx-soft:#f8f6fc;--rx-violet:#6a3df0;
  display:flex;flex-direction:column;gap:18px;color:var(--rx-text);font-family:'Nunito Sans',Arial,sans-serif;min-width:0}
.rx-card{background:#fff;border:1px solid var(--rx-line);border-radius:20px;padding:18px 20px;box-shadow:0 6px 20px rgba(29,18,56,.04);min-width:0}

.rx-hero{position:relative;isolation:isolate;overflow:hidden;border-radius:24px;padding:24px 28px;color:#fff;
  background:radial-gradient(120% 140% at 0% 0%,#2a1460 0%,#170c38 50%,#0e0826 100%);box-shadow:0 20px 50px rgba(23,12,56,.2)}
.rx-hero-aurora{position:absolute;inset:-60% -10%;z-index:-1;filter:blur(70px);pointer-events:none}
.rx-hero-aurora i{position:absolute;border-radius:50%;opacity:.45;mix-blend-mode:screen;animation:rx-drift 24s ease-in-out infinite alternate}
.rx-hero-aurora i:nth-child(1){width:380px;height:380px;left:-60px;top:-40px;background:#e5179b}
.rx-hero-aurora i:nth-child(2){width:420px;height:420px;left:42%;top:10%;background:#2f6bff;animation-delay:-8s}
.rx-hero-aurora i:nth-child(3){width:280px;height:280px;right:-40px;top:-60px;background:#ff7a1a;opacity:.32;animation-delay:-14s}
@keyframes rx-drift{to{transform:translate3d(50px,24px,0) scale(1.1)}}
.rx-hero-eyebrow{font-size:12px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:#bff7de}
.rx-hero h1{margin:6px 0 4px;font-size:26px;line-height:1.15;letter-spacing:-.6px;font-weight:800;color:#fff}
.rx-hero p{margin:0;font-size:14px;color:rgba(239,233,255,.78)}

.rx-filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;position:sticky;top:0;z-index:5;padding:14px 18px}
.rx-filters label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:800;color:var(--rx-muted);min-width:150px;flex:1 1 150px;max-width:230px}
.rx-filters label[hidden]{display:none}
.rx-filters select,.rx-filters input{height:40px;border:1px solid #ddd5ec;border-radius:12px;padding:0 12px;font:inherit;font-size:14px;font-weight:600;color:var(--rx-ink);background:#fff;min-width:0}
.rx-filters select:focus,.rx-filters input:focus{outline:2px solid rgba(106,61,240,.35);outline-offset:1px;border-color:var(--rx-violet)}
.rx-filter-actions{display:flex;gap:8px;margin-left:auto}
.rx-loading-line{font-size:13px;color:var(--rx-muted);padding:8px 0}
.rx-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:40px;padding:0 16px;border-radius:12px;border:0;cursor:pointer;
  font:inherit;font-size:13.5px;font-weight:800;color:#fff;background:linear-gradient(120deg,#ff7a1a,#e5179b 45%,#6a3df0);box-shadow:0 8px 18px rgba(106,61,240,.22)}
.rx-button:hover{filter:brightness(1.05)}
.rx-button.ghost{background:#fff;color:var(--rx-violet);border:1px solid #ddd5ec;box-shadow:none;height:36px}
.rx-button.ghost:hover{background:#f6f2ff}
.rx-button:disabled{opacity:.5;cursor:not-allowed}

.rx-layout{display:grid;grid-template-columns:236px minmax(0,1fr);gap:18px;align-items:start}
.rx-nav{position:sticky;top:84px;padding:12px;display:flex;flex-direction:column;gap:12px;max-height:calc(100vh - 110px);overflow:auto}
.rx-nav-group{display:flex;flex-direction:column;gap:2px}
.rx-nav-group>span{font-size:11px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:var(--rx-muted);padding:4px 10px}
.rx-nav button{display:flex;align-items:center;gap:10px;width:100%;border:0;background:transparent;text-align:left;padding:9px 10px;border-radius:12px;
  font:inherit;font-size:13.5px;font-weight:700;color:var(--rx-text);cursor:pointer}
.rx-nav button svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;color:#9a8fbd}
.rx-nav button:hover{background:var(--rx-soft)}
.rx-nav button.active{background:linear-gradient(120deg,rgba(255,122,26,.12),rgba(229,23,155,.1) 45%,rgba(106,61,240,.14));color:var(--rx-ink)}
.rx-nav button.active svg{color:var(--rx-violet)}

.rx-body{display:flex;flex-direction:column;gap:16px;min-width:0;transition:opacity .2s}
.rx-body.rx-busy{opacity:.6}
.rx-skeleton{padding:70px;text-align:center;color:var(--rx-muted);border-radius:20px;background:linear-gradient(90deg,#f4f1fa,#fbfaff,#f4f1fa);background-size:200% 100%;animation:rx-shimmer 1.4s infinite}
@keyframes rx-shimmer{to{background-position:-200% 0}}
.rx-error{padding:20px;border-radius:16px;background:#fff1f2;border:1px solid #fecdd3;color:#9f1239}
.rx-error h3{margin:0 0 6px;font-size:16px}.rx-error p{margin:0 0 10px}

.rx-report-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:16px}
.rx-eyebrow{font-size:11.5px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:var(--rx-violet)}
.rx-report-head h2{margin:4px 0 4px;font-size:24px;line-height:1.15;font-weight:800;letter-spacing:-.5px;color:var(--rx-ink)}
.rx-report-head p{margin:0;font-size:14px;color:var(--rx-muted);max-width:640px}
.rx-period{display:flex;flex-direction:column;align-items:flex-end;gap:2px;text-align:right;font-size:12.5px;color:var(--rx-muted)}
.rx-period b{font-size:14px;color:var(--rx-ink)}

.rx-kpis{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px}
.rx-kpi{position:relative;overflow:hidden;padding:16px 18px}
.rx-kpi::before{content:'';position:absolute;inset:0 0 auto 0;height:3px;background:linear-gradient(90deg,#ff7a1a,#e5179b,#6a3df0,#2f8cff)}
.rx-kpi-label{display:block;font-size:12.5px;font-weight:800;color:var(--rx-muted)}
.rx-kpi strong{display:block;margin:6px 0 6px;font-size:28px;line-height:1.1;font-weight:800;color:var(--rx-ink);letter-spacing:-.8px;overflow-wrap:anywhere}
.rx-kpi-foot{display:flex;flex-direction:column;align-items:flex-start;gap:5px;font-size:12px;color:var(--rx-muted)}
.rx-kpi-foot small{font-size:11.5px;line-height:1.35}
.rx-delta{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:999px;font-weight:800;font-size:12px}
.rx-delta b{font-size:9px}
.rx-delta.good{background:#ecfdf3;color:#15803d}.rx-delta.bad{background:#fff4ed;color:#c2410c}.rx-delta.neutral{background:#f3f1f8;color:#6b6385}

.rx-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.rx-chart.wide{grid-column:1/-1}
.rx-card>header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin:0 0 10px}
.rx-card h3{margin:0;font-size:15.5px;font-weight:800;color:var(--rx-ink);letter-spacing:-.2px}
.rx-card header p{margin:3px 0 0;font-size:12.5px;color:var(--rx-muted)}
.rx-legend{display:flex;flex-wrap:wrap;gap:6px 14px;margin:0 0 8px;padding:0;list-style:none;font-size:12.5px;color:var(--rx-text)}
.rx-legend li{display:inline-flex;align-items:center;gap:6px}
.rx-legend i{width:10px;height:10px;border-radius:3px;display:inline-block}
.rx-legend i.dash{width:16px;height:0;border-top:2px dashed;border-radius:0;background:none}
.rx-legend b{color:var(--rx-ink)}
.rx-empty{display:grid;place-items:center;min-height:120px;padding:18px;text-align:center;border-radius:14px;background:var(--rx-soft);color:var(--rx-muted);font-size:13.5px}

.rx-plot{position:relative}
.rx-plot svg{display:block;width:100%;height:auto;overflow:visible}
.rx-grid{stroke:#efebf6;stroke-width:1}
.rx-axis{fill:#9a91b3;font-size:11px;font-family:inherit}
.rx-value{fill:#4a3f66;font-size:11px;font-weight:700;font-family:inherit}
.rx-line{fill:none;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.rx-line.dashed{stroke-dasharray:5 4}
.rx-hit{fill:transparent;cursor:crosshair}
.rx-hit.on{fill:rgba(106,61,240,.06)}
.rx-tip{position:absolute;z-index:3;min-width:150px;max-width:260px;padding:10px 12px;border-radius:12px;background:#1d1238;color:#fff;font-size:12.5px;
  box-shadow:0 12px 30px rgba(29,18,56,.28);pointer-events:none}
.rx-tip strong{display:block;margin-bottom:6px;font-size:12.5px}
.rx-tip div{display:flex;align-items:center;gap:6px;margin:2px 0}
.rx-tip div b{margin-left:auto;padding-left:10px}
.rx-tip i{width:9px;height:9px;border-radius:3px;flex:none}
.rx-tip i.dash{width:12px;height:0;border-top:2px dashed;border-radius:0}
.rx-tip .rx-tip-total{margin-top:6px;padding-top:6px;border-top:1px solid rgba(255,255,255,.18)}

.rx-hbars{display:flex;flex-direction:column;gap:9px}
.rx-hbar{display:grid;grid-template-columns:minmax(90px,34%) minmax(0,1fr) auto;align-items:center;gap:10px;font-size:13px}
.rx-hbar-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--rx-text);font-weight:600}
.rx-hbar-track{height:12px;border-radius:6px;background:#f3f0f9;overflow:hidden;display:flex}
.rx-hbar-track>i{display:block;height:100%;border-radius:0 6px 6px 0}
.rx-stack{display:flex;height:100%;gap:2px}
.rx-stack i{display:block;height:100%;min-width:2px}
.rx-stack i:last-child{border-radius:0 6px 6px 0}
.rx-hbar>b{font-size:13px;color:var(--rx-ink);white-space:nowrap;text-align:right}
.rx-hbar>b small{font-weight:700;color:var(--rx-muted);margin-left:4px}

.rx-heat{display:flex;flex-direction:column;gap:3px;overflow-x:auto;padding-bottom:4px}
.rx-heat-row{display:grid;grid-template-columns:38px repeat(24,minmax(14px,1fr));gap:3px;align-items:center;min-width:430px}
.rx-heat-row span{font-size:11.5px;font-weight:700;color:var(--rx-muted)}
.rx-heat-row em{font-style:normal;font-size:10.5px;color:var(--rx-muted)}
.rx-heat-row i{display:block;height:22px;border-radius:5px}
.rx-heat-scale{display:flex;align-items:center;gap:4px;justify-content:flex-end;margin-top:8px;font-size:11.5px;color:var(--rx-muted)}
.rx-heat-scale i{width:18px;height:10px;border-radius:3px;display:block}

.rx-table-card header{align-items:center}
.rx-table-scroll{overflow:auto;max-height:560px;border:1px solid var(--rx-line);border-radius:14px}
.rx-table{width:100%;border-collapse:collapse;font-size:13px}
.rx-table th{position:sticky;top:0;background:#faf8fd;z-index:1;border-bottom:1px solid var(--rx-line);padding:0}
.rx-table th button{display:flex;align-items:center;gap:4px;width:100%;border:0;background:none;padding:10px 12px;font:inherit;font-size:12px;font-weight:800;color:var(--rx-muted);cursor:pointer;white-space:nowrap}
.rx-table th.right button{justify-content:flex-end}
.rx-table th button span{font-size:9px;color:var(--rx-violet)}
.rx-table td{padding:9px 12px;border-bottom:1px solid #f3f0f8;color:var(--rx-text);white-space:nowrap}
.rx-table td.right{text-align:right;font-variant-numeric:tabular-nums}
.rx-table td.lead{font-weight:700;color:var(--rx-ink);white-space:normal;min-width:140px}
.rx-table tbody tr:hover td{background:#fbfaff}
.rx-notes{margin:0;padding:0 0 0 18px;font-size:12.5px;color:var(--rx-muted);display:flex;flex-direction:column;gap:4px}

/* 1.4.58: Insights da operação - the AI texts */
.rx-ai{display:flex;flex-direction:column;gap:12px;border:1px solid #e6defd;background:linear-gradient(180deg,#fbf9ff,#fff)}
.rx-ai>.rx-ai-head{display:flex;justify-content:flex-start;align-items:center;gap:12px;margin:0}
.rx-ai-head h3{margin:0;font-size:16px;color:var(--rx-ink)}.rx-ai-head p{margin:2px 0 0;font-size:12.5px;color:var(--rx-muted)}
.rx-ai-badge{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:linear-gradient(135deg,#6a3df0,#e5179b)}
.rx-ai-badge svg{width:20px;height:20px;fill:#fff}
.rx-ai-summary{margin:0;font-size:14px;line-height:1.5;color:var(--rx-ink)}
.rx-ai-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.rx-ai-item{display:flex;gap:10px;padding:12px;border-radius:12px;border:1px solid #eee9f7;background:#fff}
.rx-ai-item b{display:block;font-size:13.5px;color:var(--rx-ink);margin:2px 0 4px}
.rx-ai-item p{margin:0;font-size:13px;line-height:1.5;color:#3f3854}
.rx-ai-meta{font-size:11px;font-weight:700;letter-spacing:.3px;text-transform:uppercase;color:var(--rx-muted)}
.rx-ai-icon{flex:none;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;font-weight:800;font-size:13px}
.rx-ai-item.alerta .rx-ai-icon{background:#fff1ec;color:#c2410c}
.rx-ai-item.oportunidade .rx-ai-icon{background:#f1edff;color:#6a3df0}
.rx-ai-item.positivo .rx-ai-icon{background:#ecfdf3;color:#15803d}
.rx-ai-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.rx-ai-foot small,.rx-ai-off,.rx-ai-empty p{font-size:12.5px;color:var(--rx-muted);margin:0}
.rx-ai-empty{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.rx-ai-error{margin:0;color:#b42318;font-size:13px}
.rx-ai-wait{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--rx-muted)}
.rx-ai-wait i{width:16px;height:16px;border-radius:50%;border:2px solid #d9d0f7;border-top-color:#6a3df0;animation:rx-ai-spin .9s linear infinite}
@keyframes rx-ai-spin{to{transform:rotate(360deg)}}
@media (max-width:900px){.rx-ai-list{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){.rx-ai-wait i{animation:none}}

@media (max-width:1280px){.rx-layout{grid-template-columns:210px minmax(0,1fr)}}
@media (max-width:1100px){.rx-charts{grid-template-columns:1fr}}
@media (max-width:900px){
  .rx-layout{grid-template-columns:1fr}
  .rx-nav{position:static;max-height:none;flex-direction:row;overflow-x:auto;gap:6px;padding:8px}
  .rx-nav-group{flex-direction:row;gap:6px}
  .rx-nav-group>span{display:none}
  .rx-nav button{white-space:nowrap;width:auto;background:var(--rx-soft)}
  .rx-filters{position:static}
}
@media (max-width:640px){
  .rx-report-head{grid-template-columns:1fr}
  .rx-hero{padding:20px}.rx-hero h1{font-size:21px}
  .rx-filters label{max-width:none;flex:1 1 100%}
  .rx-filter-actions{margin-left:0;width:100%}.rx-filter-actions .rx-button{flex:1}
  .rx-period{align-items:flex-start;text-align:left}
  .rx-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .rx-kpi strong{font-size:22px}
  .rx-card{padding:14px}
  .rx-hbar{grid-template-columns:minmax(70px,38%) minmax(0,1fr) auto}
}
@media (prefers-reduced-motion:reduce){.rx-hero-aurora i,.rx-skeleton{animation:none}}
