.report-page{display:flex;flex-direction:column;gap:16px;padding:4px 0 24px}.report-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.report-head h1{font-size:22px;font-weight:800;margin:0}.report-head p{margin:4px 0 0;color:var(--muted,#94a3b8);font-size:13px}.report-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:end;background:var(--card,#111827);border:1px solid var(--border,#243044);border-radius:16px;padding:12px}.report-filters label{font-size:12px;color:var(--muted,#94a3b8);display:flex;flex-direction:column;gap:4px}.report-filters input,.report-filters select{min-height:36px;border:1px solid var(--border,#243044);border-radius:10px;background:var(--input,#0b1220);color:var(--text,#e5e7eb);padding:7px 10px}.report-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.report-kpi,.report-card{background:var(--card,#111827);border:1px solid var(--border,#243044);border-radius:18px;padding:16px}.report-kpi span{display:block;color:var(--muted,#94a3b8);font-size:12px}.report-kpi strong{display:block;font-size:22px;font-weight:850;margin-top:4px}.report-kpi em{display:block;margin-top:2px;color:var(--muted,#94a3b8);font-size:12px;font-style:normal}.report-grid.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.report-card h2{font-size:15px;font-weight:750;margin:0 0 12px}.report-chart{height:260px!important;width:100%!important}.report-table{width:100%;border-collapse:collapse;font-size:13px}.report-table th,.report-table td{text-align:left;border-bottom:1px solid var(--border,#243044);padding:10px 8px;vertical-align:middle}.report-table th{color:var(--muted,#94a3b8);font-size:12px;font-weight:700}.report-table small{color:var(--muted,#94a3b8)}.btn-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 12px;border:1px solid var(--border,#243044);border-radius:10px;color:var(--text,#e5e7eb);text-decoration:none;background:transparent;font-weight:700;font-size:13px}@media(max-width:900px){.report-kpis,.report-grid.two{grid-template-columns:1fr}.report-head{flex-direction:column}.report-table{display:block;overflow-x:auto;white-space:nowrap}.report-filters label{width:100%}}
.report-tabs{display:flex;gap:8px;overflow-x:auto;padding:2px 0}.report-tabs a{white-space:nowrap;text-decoration:none;border:1px solid var(--border,#243044);border-radius:999px;padding:8px 12px;color:var(--muted,#94a3b8);font-size:13px;font-weight:700;background:var(--card,#111827)}.report-tabs a.is-active{color:var(--text,#e5e7eb);border-color:var(--primary,#2563eb)}


/* V11_54 - correção tema light dos filtros de relatórios */
:root[data-theme="light"] .report-filters,
html[data-theme="light"] .report-filters,
body[data-theme="light"] .report-filters{
  background:#ffffff !important;
  border-color:#dbe4ef !important;
}
:root[data-theme="light"] .report-filters input,
:root[data-theme="light"] .report-filters select,
html[data-theme="light"] .report-filters input,
html[data-theme="light"] .report-filters select,
body[data-theme="light"] .report-filters input,
body[data-theme="light"] .report-filters select{
  background:#ffffff !important;
  color:#172033 !important;
  border-color:#dbe4ef !important;
}
:root[data-theme="light"] .report-filters input::placeholder,
html[data-theme="light"] .report-filters input::placeholder,
body[data-theme="light"] .report-filters input::placeholder{
  color:#94a3b8 !important;
}
:root[data-theme="light"] .report-filters select option,
html[data-theme="light"] .report-filters select option,
body[data-theme="light"] .report-filters select option{
  background:#ffffff !important;
  color:#172033 !important;
}
.report-mini-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.report-mini{background:var(--card,#111827);border:1px solid var(--border,#243044);border-radius:16px;padding:14px}.report-mini span{display:block;color:var(--muted,#94a3b8);font-size:12px}.report-mini strong{display:block;margin-top:4px;font-size:18px}.report-mini em{display:block;margin-top:2px;font-style:normal;font-size:12px;color:var(--muted,#94a3b8)}.report-mini.up strong{color:#16a34a}.report-mini.down strong{color:#dc2626}@media(max-width:900px){.report-mini-grid{grid-template-columns:1fr}}

/* V11_55 - melhorias visuais dos relatórios */
.report-badge{display:inline-flex;align-items:center;justify-content:center;min-height:24px;padding:2px 8px;border-radius:999px;background:rgba(37,99,235,.10);color:var(--primary,#2563eb);font-size:12px;font-weight:700}.report-badge.status-vendida{background:rgba(22,163,74,.12);color:#15803d}.report-badge.status-perdida{background:rgba(220,38,38,.12);color:#b91c1c}.report-badge.status-em_andamento{background:rgba(37,99,235,.12);color:#1d4ed8}
.report-kpi strong{line-height:1.15}.report-card .report-table:last-child tr:last-child td{border-bottom:0}
@media(max-width:1100px){.report-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* V11_57 - Empresa 360 e Tempo Real RD */
.report-link{color:var(--primary,#2563eb);font-weight:700;text-decoration:none}.report-link:hover{text-decoration:underline}.report-muted{color:var(--muted,#64748b);font-size:12px;margin:0 0 12px}.report-realtime .report-mini strong{font-size:22px}
.report-table-wrap{width:100%;overflow:auto}.report-inline-input{width:110px;min-height:34px;border:1px solid var(--border,#d9e3f0);border-radius:10px;background:#fff;color:#0f172a;padding:6px 9px}.theme-dark .report-inline-input,[data-theme="dark"] .report-inline-input{background:#0f172a;color:#e5e7eb;border-color:#334155}.report-goals-form .btn-primary{margin-top:14px}.report-muted{color:#64748b;line-height:1.55}.report-page .report-card h2{margin-bottom:12px}@media(max-width:760px){.report-inline-input{width:92px}.report-kpis{grid-template-columns:1fr 1fr}.report-grid.two{grid-template-columns:1fr}}

/* V11_59 - Comissões, alertas e dashboard TV */
.report-tv-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.report-tv-page .report-kpi strong{font-size:28px}.report-chart-tv{height:320px!important}.report-page .report-card p.report-muted{margin-top:0}.report-table .report-badge{white-space:nowrap}
@media(max-width:1200px){.report-tv-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.report-tv-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.report-tv-page .report-kpi strong{font-size:22px}}


.report-methodology-card{margin-top:16px;border-style:dashed;background:rgba(255,255,255,.78)}
.report-methodology-card h2{margin-bottom:10px}
.report-methodology-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.report-methodology-grid h3{margin:0 0 6px;font-size:13px;color:var(--muted,#64748b);text-transform:uppercase;letter-spacing:.04em}
.report-methodology-grid p{margin:0;color:var(--text,#0f172a);line-height:1.45}
@media (max-width:760px){.report-methodology-grid{grid-template-columns:1fr}}
[data-theme="dark"] .report-methodology-card,body.theme-dark .report-methodology-card{background:rgba(15,23,42,.78)}


/* V11_64 - navegação de relatórios mais compacta */
.report-nav-compact{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.report-tabs-primary{flex:1 1 auto;overflow:visible;flex-wrap:wrap;padding:0}
.report-tabs-primary a{padding:8px 12px}
.report-more-menu{position:relative;flex:0 0 auto}
.report-more-menu summary{list-style:none;cursor:pointer;min-height:38px;display:inline-flex;align-items:center;gap:8px;border:1px solid var(--border,#d9e3f0);border-radius:999px;padding:0 14px;background:var(--card,#fff);color:var(--text,#0f172a);font-size:13px;font-weight:800;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.report-more-menu summary::-webkit-details-marker{display:none}
.report-more-menu summary:after{content:'▾';font-size:11px;color:var(--muted,#64748b)}
.report-more-menu[open] summary{border-color:var(--primary,#2563eb);color:var(--primary,#2563eb)}
.report-more-list{position:absolute;right:0;top:44px;z-index:40;min-width:240px;max-height:390px;overflow:auto;background:var(--card,#fff);border:1px solid var(--border,#d9e3f0);border-radius:16px;padding:8px;box-shadow:0 18px 38px rgba(15,23,42,.16)}
.report-more-list a{display:flex;align-items:center;min-height:36px;padding:0 10px;border-radius:10px;color:var(--text,#0f172a);text-decoration:none;font-size:13px;font-weight:700;white-space:nowrap}
.report-more-list a:hover,.report-more-list a.is-active{background:rgba(37,99,235,.10);color:var(--primary,#2563eb)}
.report-permission-note{margin:8px 0 0;color:var(--muted,#64748b);font-size:12px;line-height:1.5;padding:0 4px}
.report-methodology-card .report-muted{display:none}
@media(max-width:760px){.report-nav-compact{display:block}.report-tabs-primary{display:flex;overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px}.report-more-menu{margin-top:8px}.report-more-menu summary{width:100%;justify-content:center}.report-more-list{position:static;max-height:none;margin-top:8px;width:100%;box-shadow:none}.report-tabs-primary a{white-space:nowrap}}
[data-theme="dark"] .report-more-menu summary,body.theme-dark .report-more-menu summary,[data-theme="dark"] .report-more-list,body.theme-dark .report-more-list{background:var(--card,#111827);border-color:var(--border,#243044);color:var(--text,#e5e7eb)}
[data-theme="dark"] .report-more-list a,body.theme-dark .report-more-list a{color:var(--text,#e5e7eb)}


.report-filter-summary{
  margin: -6px 0 14px 0;
  padding: 8px 12px;
  color: var(--muted, #64748b);
  font-size: 12px;
  line-height: 1.45;
}
.report-filter-summary strong{
  color: var(--text, #0f172a);
  font-weight: 700;
}
.report-clear-filters{
  align-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border, #dbe4f0);
  border-radius: 12px;
  background: #fff;
  color: var(--text, #0f172a);
  text-decoration: none;
  font-weight: 700;
}
[data-theme="dark"] .report-clear-filters,
body.dark .report-clear-filters{
  background: #111827;
  color: #e5e7eb;
  border-color: #334155;
}

.btn-mini{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:4px 10px;
  border:1px solid var(--border,#dbe4f0);
  border-radius:999px;
  background:#fff;
  color:#2563eb;
  font-weight:700;
  font-size:12px;
  text-decoration:none;
}
.btn-mini:hover{border-color:#2563eb;background:#eff6ff}

.company-detail-head h2{
  margin:4px 0 6px;
  font-size:22px;
}
.report-scroll-y{
  overflow-y:auto;
  overflow-x:hidden;
  scrollbar-width:thin;
}
.company-movements-scroll{
  max-height:420px;
  padding-right:4px;
}
.company-movements-scroll .report-table thead th{
  position:sticky;
  top:0;
  background:var(--card,#fff);
  z-index:2;
}

.report-nav-categorized{
  margin:18px 0 14px;
}
.report-category-bar{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.report-category-menu{
  position:relative;
}
.report-category-menu summary,
.report-category-settings{
  list-style:none;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:38px;
  padding:0 16px;
  border:1px solid var(--border,#dbe4f0);
  border-radius:999px;
  background:var(--card,#fff);
  color:var(--muted,#64748b);
  font-weight:800;
  text-decoration:none;
  box-shadow:0 1px 2px rgba(15,23,42,.04);
}
.report-category-menu summary::-webkit-details-marker{display:none}
.report-category-menu summary::after{
  content:"▾";
  font-size:11px;
  opacity:.7;
}
.report-category-menu summary.is-active,
.report-category-settings.is-active{
  color:#1d4ed8;
  border-color:#2563eb;
  background:#eff6ff;
}
.report-category-panel{
  position:absolute;
  z-index:50;
  top:46px;
  left:0;
  width:270px;
  padding:10px;
  border:1px solid var(--border,#dbe4f0);
  border-radius:18px;
  background:var(--card,#fff);
  box-shadow:0 18px 45px rgba(15,23,42,.16);
}
.report-category-hint{
  padding:6px 8px 9px;
  color:var(--muted,#64748b);
  font-size:12px;
  line-height:1.35;
}
.report-category-panel a{
  display:flex;
  align-items:center;
  min-height:36px;
  padding:8px 10px;
  border-radius:12px;
  color:var(--text,#0f172a);
  text-decoration:none;
  font-weight:700;
}
.report-category-panel a:hover{
  background:#f1f5f9;
}
.report-category-panel a.is-active{
  background:#2563eb;
  color:#fff;
}
.report-current-line{
  margin-top:10px;
  color:var(--muted,#64748b);
  font-size:12px;
}
.report-current-line strong{
  color:var(--text,#0f172a);
}
@media (max-width: 720px){
  .report-category-bar{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
  }
  .report-category-menu,
  .report-category-settings{
    width:100%;
  }
  .report-category-menu summary,
  .report-category-settings{
    justify-content:space-between;
    width:100%;
  }
  .report-category-panel{
    position:fixed;
    left:12px;
    right:12px;
    top:auto;
    width:auto;
    margin-top:8px;
  }
}

.report-category-menu:not([open]) .report-category-panel{
  display:none;
}
.report-category-menu[open] summary{
  box-shadow:0 0 0 3px rgba(37,99,235,.08);
}

.deal-temperature-line{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  margin-top:4px;
  font-size:11px;
}
.deal-temp-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:20px;
  padding:2px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  line-height:1;
  border:1px solid transparent;
}
.deal-temp-days{
  color:var(--muted,#64748b);
  font-size:11px;
}
.deal-temp-badge.temp-quente{background:#dcfce7;color:#166534;border-color:#86efac}
.deal-temp-badge.temp-morno{background:#fef9c3;color:#854d0e;border-color:#fde68a}
.deal-temp-badge.temp-esfriando{background:#ffedd5;color:#9a3412;border-color:#fdba74}
.deal-temp-badge.temp-parado{background:#fee2e2;color:#991b1b;border-color:#fecaca}
.deal-temp-badge.temp-finalizado{background:#e2e8f0;color:#475569;border-color:#cbd5e1}

.report-temperature-help .deal-temperature-line{
  gap:8px;
  margin-top:8px;
}

.report-deal-link{
  color:#1d4ed8;
  font-weight:800;
  text-decoration:none;
}
.report-deal-link:hover{
  text-decoration:underline;
}
