﻿.reports-page {
  padding-bottom: 30px;
}
.reports-head {
  align-items: flex-end;
}
.report-kicker {
  color: var(--cyan);
  font-size: max(0.5625rem, var(--a11y-min-font-size));
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.report-primary-button,
.report-secondary-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border-radius: 10px;
  font-size: max(0.6875rem, var(--a11y-min-font-size));
  font-weight: 800;
}
.report-primary-button {
  color: #021018;
  background: linear-gradient(135deg, #00c8ff, #20d466);
  box-shadow: 0 10px 24px rgba(0, 183, 244, 0.18);
}
.report-primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 13px 30px rgba(0, 183, 244, 0.25);
}
.report-secondary-button {
  border: 1px solid var(--line);
  color: var(--muted);
}
.report-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.report-kpi-strip article {
  min-height: 106px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(155deg, rgba(12, 38, 56, 0.88), rgba(5, 20, 31, 0.9));
  box-shadow: var(--shadow-card);
}
.report-kpi-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
}
.report-kpi-icon svg {
  width: 20px;
}
.report-kpi-icon.cyan {
  color: var(--cyan);
  background: rgba(0, 183, 244, 0.1);
}
.report-kpi-icon.green {
  color: var(--green);
  background: rgba(32, 212, 102, 0.1);
}
.report-kpi-icon.yellow {
  color: var(--yellow);
  background: rgba(244, 176, 26, 0.1);
}
.report-kpi-icon.blue {
  color: #7897ff;
  background: rgba(120, 151, 255, 0.1);
}
.report-kpi-strip article div {
  display: grid;
  gap: 2px;
}
.report-kpi-strip span,
.report-kpi-strip small {
  color: var(--muted);
  font-size: max(0.5625rem, var(--a11y-min-font-size));
}
.report-kpi-strip strong {
  font-size: max(1.4375rem, var(--a11y-min-font-size));
}
.report-view-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 16px;
  padding: 5px;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(5, 21, 32, 0.72);
}
.report-view-tabs button {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--muted);
  font-size: max(0.625rem, var(--a11y-min-font-size));
  font-weight: 700;
}
.report-view-tabs button svg {
  width: 15px;
}
.report-view-tabs button span {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(104, 184, 230, 0.1);
  font-size: max(0.5rem, var(--a11y-min-font-size));
}
.report-view-tabs button.active {
  color: white;
  background: rgba(0, 183, 244, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 183, 244, 0.2);
}
.temporal-filter-panel {
  margin-bottom: 14px;
  border: 1px solid rgba(0, 183, 244, 0.22);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(11, 38, 55, 0.92), rgba(5, 20, 30, 0.94));
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.temporal-filter-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 13px 16px 10px;
}
.temporal-filter-heading > div {
  display: grid;
  gap: 3px;
}
.temporal-filter-heading strong {
  font-size: max(0.75rem, var(--a11y-min-font-size));
}
.filter-result-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: max(0.5rem, var(--a11y-min-font-size));
}
.filter-result-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: var(--glow-green);
}
.temporal-filter-bar {
  display: grid;
  grid-template-columns: 150px minmax(250px, 1fr) 190px 155px 165px;
  gap: 7px;
  padding: 0 10px 10px;
}
.temporal-control,
.temporal-date-navigator,
.compare-control {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: rgba(3, 15, 24, 0.62);
}
.temporal-control {
  position: relative;
  padding: 0 10px;
}
.temporal-control > svg:first-child,
.compare-control > svg {
  width: 15px;
  color: var(--cyan);
}
.temporal-control > svg:last-child {
  width: 12px;
}
.temporal-control > span,
.compare-control > span,
.temporal-date-navigator label > span {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}
.temporal-control small,
.compare-control small,
.temporal-date-navigator small {
  color: var(--muted);
  font-size: max(0.5rem, var(--a11y-min-font-size));
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}
.temporal-control select {
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 0;
  appearance: none;
  border: 0;
  outline: 0;
  color: white;
  background: transparent;
  font-size: max(0.625rem, var(--a11y-min-font-size));
  font-weight: 700;
  line-height: 1.25;
}
.temporal-date-navigator {
  overflow: hidden;
}
.temporal-date-navigator > button {
  width: 40px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  color: var(--muted);
}
.temporal-date-navigator > button:last-child {
  border-right: 0;
  border-left: 1px solid var(--line);
}
.temporal-date-navigator > button:hover {
  color: var(--cyan);
  background: rgba(0, 183, 244, 0.07);
}
.temporal-date-navigator > button svg {
  width: 14px;
}
.temporal-date-navigator label {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-align: center;
  cursor: pointer;
}
.temporal-date-navigator label > svg {
  width: 14px;
  color: var(--cyan);
}
.temporal-date-navigator label strong {
  font-size: max(0.625rem, var(--a11y-min-font-size));
  text-transform: capitalize;
}
.temporal-date-navigator input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.compare-control {
  padding: 0 10px;
  cursor: pointer;
}
.compare-control strong {
  font-size: max(0.5rem, var(--a11y-min-font-size));
}
.compare-control input {
  position: absolute;
  opacity: 0;
}
.compare-control > i {
  width: 28px;
  height: 16px;
  padding: 2px;
  border-radius: 10px;
  background: rgba(104, 184, 230, 0.14);
  transition: 180ms ease;
}
.compare-control > i::after {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--muted);
  transition: 180ms ease;
}
.compare-control.active {
  border-color: rgba(32, 212, 102, 0.3);
  background: rgba(32, 212, 102, 0.05);
}
.compare-control.active > i {
  background: rgba(32, 212, 102, 0.24);
}
.compare-control.active > i::after {
  transform: translateX(12px);
  background: var(--green);
}
.custom-period-row {
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 4px 16px 14px;
}
.custom-period-row label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: max(0.5rem, var(--a11y-min-font-size));
}
.custom-period-row input {
  min-height: 36px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: white;
  background: rgba(3, 15, 24, 0.65);
}
.custom-period-row > i {
  width: 14px;
  height: 1px;
  margin-bottom: 18px;
  background: var(--line);
}
.custom-period-row button {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 7px;
  color: #031019;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  font-size: max(0.5rem, var(--a11y-min-font-size));
  font-weight: 800;
}
.active-filter-summary {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: max(0.5rem, var(--a11y-min-font-size));
}
.active-filter-summary i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--cyan);
}
.report-analytics {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
}
.analytics-main {
  min-width: 0;
  padding: 20px;
}
.analytics-header,
.analytics-controls,
.chart-context {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.analytics-header h2 {
  margin: 4px 0;
  font-size: max(1.125rem, var(--a11y-min-font-size));
}
.analytics-header p {
  color: var(--muted);
  font-size: max(0.5625rem, var(--a11y-min-font-size));
}
.analytics-actions {
  display: flex;
  gap: 6px;
}
.analytics-actions button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}
.analytics-actions svg {
  width: 14px;
}
.analytics-controls {
  margin: 20px -20px 0;
  padding: 12px 20px;
  border-block: 1px solid var(--line);
  background: rgba(4, 16, 26, 0.32);
}
.metric-segment,
.date-navigator {
  display: flex;
  align-items: center;
  gap: 4px;
}
.metric-segment {
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.metric-segment button {
  min-height: 31px;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: max(0.5625rem, var(--a11y-min-font-size));
  font-weight: 700;
}
.metric-segment button.active {
  color: white;
  background: rgba(0, 183, 244, 0.14);
}
.date-navigator > button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.date-navigator svg {
  width: 14px;
}
.date-navigator label {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.date-navigator select {
  border: 0;
  color: var(--text);
  background: transparent;
  font-size: max(0.5625rem, var(--a11y-min-font-size));
}
.analytics-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 16px 0 4px;
}
.analytics-summary > div {
  display: grid;
  gap: 2px;
  padding: 5px 14px;
  border-right: 1px solid var(--line);
}
.analytics-summary > div:first-child {
  padding-left: 0;
}
.analytics-summary > div:last-child {
  border: 0;
}
.analytics-summary span,
.analytics-summary small {
  color: var(--muted);
  font-size: max(0.5rem, var(--a11y-min-font-size));
}
.analytics-summary strong {
  font-size: max(1.125rem, var(--a11y-min-font-size));
}
.analytics-summary strong.positive {
  color: var(--green);
}
.condition-analytics-chart,
.analytics-chart-skeleton {
  height: 340px;
  width: 100%;
}
.chart-context {
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: max(0.5rem, var(--a11y-min-font-size));
}
.chart-context span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.chart-context i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.chart-context i.normal {
  background: var(--green);
}
.chart-context i.attention {
  background: var(--yellow);
}
.chart-context button,
.diagnostic-card button {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--cyan);
  font-weight: 700;
}
.chart-context button svg,
.diagnostic-card button svg {
  width: 13px;
}
.analytics-side {
  display: grid;
  align-content: start;
  gap: 14px;
}
.health-score {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
}
.score-ring {
  --score: 331deg;
  width: 82px;
  height: 82px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--green) var(--score), rgba(32, 212, 102, 0.1) 0);
  position: relative;
}
.score-ring::after {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  background: #09202e;
}
.score-ring div {
  z-index: 1;
  display: flex;
  align-items: baseline;
}
.score-ring strong {
  font-size: max(1.5rem, var(--a11y-min-font-size));
}
.score-ring span {
  color: var(--muted);
  font-size: max(0.5rem, var(--a11y-min-font-size));
}
.health-score h3 {
  margin: 4px 0;
  font-size: max(0.8125rem, var(--a11y-min-font-size));
}
.health-score p,
.diagnostic-card p {
  color: var(--muted);
  font-size: max(0.5625rem, var(--a11y-min-font-size));
  line-height: 1.55;
}
.diagnostic-card,
.contributors-card {
  padding: 18px;
}
.diagnostic-card header {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.diagnostic-card header > svg {
  width: 21px;
  color: var(--green);
}
.diagnostic-card header div {
  display: grid;
  gap: 3px;
}
.diagnostic-card header span {
  color: var(--muted);
  font-size: max(0.5rem, var(--a11y-min-font-size));
}
.diagnostic-card header strong {
  font-size: max(0.6875rem, var(--a11y-min-font-size));
}
.diagnostic-confidence {
  display: flex;
  justify-content: space-between;
  margin: 14px 0;
  padding: 10px;
  border-radius: 8px;
  background: rgba(32, 212, 102, 0.06);
  color: var(--muted);
  font-size: max(0.5625rem, var(--a11y-min-font-size));
}
.diagnostic-confidence strong {
  color: var(--green);
}
.contributors-card header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}
.contributors-card header span {
  font-weight: 800;
  font-size: max(0.6875rem, var(--a11y-min-font-size));
}
.contributors-card header small {
  color: var(--muted);
  font-size: max(0.5rem, var(--a11y-min-font-size));
}
.contributors-card > div {
  display: grid;
  grid-template-columns: 60px 1fr 28px;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
  color: var(--muted);
  font-size: max(0.5rem, var(--a11y-min-font-size));
}
.contributors-card > div > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.contributors-card > div > span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.contributors-card .x {
  background: var(--cyan);
}
.contributors-card .y {
  background: var(--green);
}
.contributors-card .z {
  background: var(--yellow);
}
.contributors-card b {
  height: 4px;
  border-radius: 4px;
  background: rgba(104, 184, 230, 0.1);
}
.contributors-card b i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--green));
}
.contributors-card strong {
  color: white;
  text-align: right;
}
.events-workspace {
  min-height: 500px;
}
.event-timeline {
  padding: 5px 22px 28px;
}
.event-timeline article {
  display: grid;
  grid-template-columns: 92px 12px 1fr;
  gap: 14px;
  min-height: 104px;
}
.event-timeline time {
  color: var(--muted);
  font-size: max(0.5rem, var(--a11y-min-font-size));
  padding-top: 3px;
  text-align: right;
}
.event-timeline article > i {
  width: 9px;
  height: 9px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  position: relative;
}
.event-timeline article > i::after {
  content: '';
  position: absolute;
  width: 1px;
  height: 90px;
  left: 2px;
  top: 8px;
  background: var(--line);
}
.event-timeline article:last-child > i::after {
  display: none;
}
.event-timeline article div > span {
  font-size: max(0.5rem, var(--a11y-min-font-size));
  font-weight: 800;
  text-transform: uppercase;
}
.event-timeline .atenÃ§Ã£o {
  color: var(--yellow);
}
.event-timeline .normal {
  color: var(--green);
}
.event-timeline .informativo {
  color: var(--cyan);
}
.event-timeline h3 {
  margin: 5px 0;
  font-size: max(0.75rem, var(--a11y-min-font-size));
}
.event-timeline p {
  color: var(--muted);
  font-size: max(0.5625rem, var(--a11y-min-font-size));
}
.report-generator {
  width: min(620px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, #0b2638, #061620);
  border-left: 1px solid var(--line);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.45);
}
.report-generator > header {
  display: flex;
  justify-content: space-between;
  padding: 22px;
}
.report-generator > header span {
  color: var(--cyan);
  font-size: max(0.5rem, var(--a11y-min-font-size));
  text-transform: uppercase;
}
.report-generator > header h2 {
  margin: 4px 0;
}
.report-generator > header p {
  color: var(--muted);
  font-size: max(0.5625rem, var(--a11y-min-font-size));
}
.report-generator > header button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
}
.generator-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 0 22px 18px;
}
.generator-progress i {
  height: 3px;
  border-radius: 3px;
  background: rgba(104, 184, 230, 0.12);
}
.generator-progress i.active {
  background: linear-gradient(90deg, var(--cyan), var(--green));
}
.generator-body {
  flex: 1;
  overflow-y: auto;
  padding: 26px 22px;
  border-block: 1px solid var(--line);
}
.generator-body h3 {
  margin: 7px 0 22px;
  font-size: max(1.1875rem, var(--a11y-min-font-size));
}
.report-template-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.report-template-grid button {
  min-height: 112px;
  display: grid;
  grid-template-columns: 30px 1fr 18px;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  text-align: left;
}
.report-template-grid button > svg:first-child {
  width: 23px;
  color: var(--cyan);
}
.report-template-grid button > svg:last-child {
  width: 15px;
  opacity: 0;
}
.report-template-grid button strong,
.report-template-grid button small {
  grid-column: 2;
}
.report-template-grid button strong {
  color: white;
}
.report-template-grid button small {
  font-size: max(0.5rem, var(--a11y-min-font-size));
}
.report-template-grid button.active {
  border-color: rgba(0, 183, 244, 0.5);
  background: rgba(0, 183, 244, 0.07);
}
.report-template-grid button.active > svg:last-child {
  opacity: 1;
  color: var(--green);
}
.generator-field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.generator-field span {
  color: var(--muted);
  font-size: max(0.5625rem, var(--a11y-min-font-size));
  font-weight: 700;
}
.generator-field select {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: white;
  background: rgba(4, 16, 26, 0.72);
}
.generator-option {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 25px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.generator-option > svg {
  color: var(--cyan);
}
.generator-option div {
  display: grid;
  gap: 3px;
}
.generator-option small {
  color: var(--muted);
  font-size: max(0.5rem, var(--a11y-min-font-size));
}
.generator-review > div {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 6px 12px;
  padding: 20px;
  border: 1px solid rgba(32, 212, 102, 0.25);
  border-radius: 12px;
  background: rgba(32, 212, 102, 0.05);
}
.generator-review > div svg {
  grid-row: 1/3;
  color: var(--green);
}
.generator-review > div span {
  color: var(--muted);
  font-size: max(0.5625rem, var(--a11y-min-font-size));
}
.generator-review p {
  margin-top: 16px;
  color: var(--muted);
  font-size: max(0.625rem, var(--a11y-min-font-size));
  line-height: 1.6;
}
.report-generator > footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 22px;
}
.reports-workspace {
  overflow: visible;
}
.reports-toolbar {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto 210px;
  gap: 10px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}
.report-search,
.report-select {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(4, 16, 26, 0.62);
}
.report-search:focus-within {
  border-color: rgba(0, 183, 244, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 183, 244, 0.08);
}
.report-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
}
.report-search kbd {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-size: max(0.5625rem, var(--a11y-min-font-size));
}
.report-filter-button {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(4, 16, 26, 0.55);
}
.report-filter-button.active {
  color: var(--cyan);
  border-color: rgba(0, 183, 244, 0.35);
  background: rgba(0, 183, 244, 0.08);
}
.report-select select {
  width: 100%;
  appearance: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: max(0.625rem, var(--a11y-min-font-size));
}
.report-select option,
.report-filter-drawer option {
  background: #092030;
}
.report-filter-drawer {
  display: grid;
  grid-template-columns: 1fr 180px 220px auto;
  align-items: end;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 183, 244, 0.025);
}
.report-filter-drawer label,
.filter-group {
  display: grid;
  gap: 8px;
}
.report-filter-drawer label > span,
.filter-group > span {
  color: var(--muted);
  font-size: max(0.5625rem, var(--a11y-min-font-size));
  font-weight: 700;
  text-transform: uppercase;
}
.report-filter-drawer select {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: white;
  background: rgba(4, 16, 26, 0.72);
}
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.filter-pills button {
  min-height: 31px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: max(0.5625rem, var(--a11y-min-font-size));
}
.filter-pills button.active {
  color: white;
  border-color: rgba(0, 183, 244, 0.34);
  background: rgba(0, 183, 244, 0.12);
}
.clear-filters {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: max(0.625rem, var(--a11y-min-font-size));
}
.filter-drawer-enter-active,
.filter-drawer-leave-active {
  transition:
    opacity 180ms ease,
    transform 220ms ease;
}
.filter-drawer-enter-from,
.filter-drawer-leave-to {
  opacity: 0;
  transform: translateY(-8px);
}
.reports-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 14px;
}
.reports-section-head > div {
  display: grid;
  gap: 2px;
}
.reports-section-head span {
  color: var(--cyan);
  font-size: max(0.5rem, var(--a11y-min-font-size));
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.reports-section-head h2 {
  font-size: max(1rem, var(--a11y-min-font-size));
}
.reports-section-head p {
  color: var(--muted);
  font-size: max(0.5625rem, var(--a11y-min-font-size));
}
.reports-section-head > button {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: max(0.5625rem, var(--a11y-min-font-size));
}
.report-table-scroll {
  overflow-x: auto;
}
.report-table {
  width: 100%;
  border-collapse: collapse;
}
.report-table th {
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: rgba(4, 16, 26, 0.42);
  font-size: max(0.5rem, var(--a11y-min-font-size));
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}
.report-table td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(104, 184, 230, 0.09);
  color: #cfdae1;
  font-size: max(0.625rem, var(--a11y-min-font-size));
}
.report-table tbody tr {
  cursor: pointer;
  transition: background 140ms ease;
}
.report-table tbody tr:hover {
  background: rgba(0, 183, 244, 0.045);
}
.report-table td:first-child {
  min-width: 250px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.report-table td:first-child div,
.report-table td:nth-child(2) {
  display: grid;
  gap: 3px;
}
.report-table td small {
  color: var(--muted);
  font-size: max(0.5rem, var(--a11y-min-font-size));
}
.report-file-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--cyan);
  background: rgba(0, 183, 244, 0.08);
}
.report-file-icon svg {
  width: 16px;
}
.report-type {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
}
.report-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
.report-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.report-status.pronto {
  color: var(--green);
}
.report-status.pronto i {
  background: var(--green);
}
.report-status.processando {
  color: var(--cyan);
}
.report-status.processando i {
  background: var(--cyan);
  animation: report-pulse 1.4s infinite;
}
.report-status.falhou {
  color: var(--red);
}
.report-status.falhou i {
  background: var(--red);
}
.report-download {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--cyan);
}
.report-download svg {
  width: 15px;
}
.report-download:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.report-table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  color: var(--muted);
  font-size: max(0.5625rem, var(--a11y-min-font-size));
}
.report-table-footer div {
  display: flex;
  gap: 4px;
}
.report-table-footer button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
}
.report-table-footer button.active {
  color: white;
  border-color: rgba(0, 183, 244, 0.4);
  background: rgba(0, 183, 244, 0.12);
}
.report-empty {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: var(--muted);
  text-align: center;
}
.report-empty > svg {
  width: 32px;
  color: var(--cyan);
}
.report-empty h3 {
  color: white;
}
.report-empty p {
  font-size: max(0.625rem, var(--a11y-min-font-size));
}
.report-empty button {
  margin-top: 8px;
  color: var(--cyan);
  font-size: max(0.625rem, var(--a11y-min-font-size));
}
.report-insights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}
.report-distribution,
.report-schedule {
  padding-bottom: 18px;
}
.distribution-bars {
  display: grid;
  gap: 13px;
  padding: 2px 20px 10px;
}
.distribution-bars div {
  display: grid;
  grid-template-columns: 90px 1fr 24px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: max(0.5625rem, var(--a11y-min-font-size));
}
.distribution-bars i {
  height: 5px;
  border-radius: 5px;
  background: rgba(104, 184, 230, 0.1);
}
.distribution-bars b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--green));
}
.distribution-bars strong {
  color: white;
  text-align: right;
}
.scheduled-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 0 20px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.scheduled-item div {
  display: grid;
  gap: 3px;
}
.scheduled-item strong {
  font-size: max(0.625rem, var(--a11y-min-font-size));
}
.scheduled-item p {
  color: var(--muted);
  font-size: max(0.5625rem, var(--a11y-min-font-size));
}
.schedule-enabled {
  padding: 5px 8px;
  border-radius: 10px;
  color: var(--green);
  background: rgba(32, 212, 102, 0.08);
  font-size: max(0.5rem, var(--a11y-min-font-size));
}
.report-preview-layer {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  justify-content: flex-end;
  background: rgba(0, 7, 12, 0.68);
  backdrop-filter: blur(10px);
}
.report-preview {
  width: min(520px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  background: linear-gradient(160deg, #0b2638, #061620);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.45);
}
.report-preview > header {
  display: flex;
  justify-content: space-between;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}
.report-preview header span {
  color: var(--cyan);
  font-size: max(0.5rem, var(--a11y-min-font-size));
  font-weight: 800;
  text-transform: uppercase;
}
.report-preview header h2 {
  margin: 4px 0;
}
.report-preview header p {
  color: var(--muted);
  font-size: max(0.5625rem, var(--a11y-min-font-size));
}
.report-preview header button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
}
.preview-document {
  flex: 1;
  margin: 22px;
  padding: 28px;
  overflow: hidden;
  border-radius: 5px;
  color: #193241;
  background: #f4f8fa;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.preview-brand {
  display: flex;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 2px solid #00aee8;
}
.preview-brand strong {
  color: #008ac1;
}
.preview-brand span {
  font-size: max(0.5rem, var(--a11y-min-font-size));
}
.preview-title {
  padding: 26px 0 18px;
}
.preview-title small {
  color: #008ac1;
  font-weight: 800;
}
.preview-title h3 {
  margin: 5px 0;
  color: #102b3a;
  font-size: max(1.3125rem, var(--a11y-min-font-size));
}
.preview-title p {
  font-size: max(0.5625rem, var(--a11y-min-font-size));
}
.preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.preview-metrics div {
  padding: 10px;
  border-radius: 4px;
  background: #e5eef2;
}
.preview-metrics span {
  display: block;
  font-size: max(0.4375rem, var(--a11y-min-font-size));
}
.preview-metrics strong {
  font-size: max(0.8125rem, var(--a11y-min-font-size));
}
.preview-chart {
  height: 150px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-top: 22px;
  padding: 18px;
  border-left: 1px solid #b9ccd5;
  border-bottom: 1px solid #b9ccd5;
}
.preview-chart i {
  flex: 1;
  background: linear-gradient(#00b7f4, #87d81d);
}
.preview-lines {
  display: grid;
  gap: 9px;
  margin-top: 22px;
}
.preview-lines i {
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: #dbe6eb;
}
.preview-lines i:nth-child(2) {
  width: 82%;
}
.preview-lines i:nth-child(4) {
  width: 68%;
}
.report-preview > footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
}
.report-preview-enter-active,
.report-preview-leave-active {
  transition: opacity 200ms ease;
}
.report-preview-enter-active .report-preview,
.report-preview-leave-active .report-preview {
  transition: transform 340ms cubic-bezier(0.22, 1, 0.36, 1);
}
.report-preview-enter-from,
.report-preview-leave-to {
  opacity: 0;
}
.report-preview-enter-from .report-preview,
.report-preview-leave-to .report-preview {
  transform: translateX(100%);
}
@keyframes report-pulse {
  50% {
    opacity: 0.25;
    box-shadow: 0 0 12px var(--cyan);
  }
}
@keyframes report-skeleton {
  to {
    background-position: -220% 0;
  }
}
.report-loading {
  min-height: 260px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 24px;
}
.report-loading i {
  display: block;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    rgba(104, 184, 230, 0.05),
    rgba(104, 184, 230, 0.14),
    rgba(104, 184, 230, 0.05)
  );
  background-size: 220% 100%;
  animation: report-skeleton 1.4s ease infinite;
}
@media (max-width: 900px) {
  .temporal-filter-bar {
    grid-template-columns: 1fr 1fr;
  }
  .temporal-date-navigator {
    grid-column: 1/-1;
    grid-row: 1;
  }
  .compare-control {
    grid-column: 1/-1;
  }
  .report-analytics {
    grid-template-columns: 1fr;
  }
  .analytics-side {
    grid-template-columns: 1fr 1fr;
  }
  .contributors-card {
    grid-column: 1/-1;
  }
  .report-kpi-strip {
    grid-template-columns: 1fr 1fr;
  }
  .reports-toolbar {
    grid-template-columns: 1fr auto;
  }
  .report-select.compact {
    grid-column: 1/-1;
  }
  .report-filter-drawer {
    grid-template-columns: 1fr 1fr;
  }
  .filter-group {
    grid-column: 1/-1;
  }
  .report-insights {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .report-analytics {
    margin-inline: -12px;
  }
  .reports-head {
    align-items: stretch;
    flex-direction: column;
  }
  .reports-head .report-primary-button {
    width: 100%;
  }
  .temporal-filter-panel {
    border-radius: 13px;
  }
  .temporal-filter-heading {
    align-items: center;
    padding: 15px 14px 12px;
  }
  .temporal-filter-heading strong {
    font-size: max(0.875rem, var(--a11y-min-font-size));
  }
  .filter-result-badge {
    flex: 0 0 auto;
    font-size: max(0.5625rem, var(--a11y-min-font-size));
  }
  .temporal-filter-bar {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 0 12px 12px;
  }
  .temporal-date-navigator {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 58px;
  }
  .compare-control {
    grid-column: 1 / -1;
  }
  .temporal-control,
  .compare-control {
    min-height: 62px;
    padding: 0 12px;
  }
  .temporal-control > span,
  .compare-control > span {
    align-content: center;
    align-self: stretch;
    gap: 4px;
  }
  .temporal-control small,
  .compare-control small,
  .temporal-date-navigator small {
    position: static;
    font-size: max(0.625rem, var(--a11y-min-font-size));
    line-height: 1.15;
  }
  .temporal-control select,
  .compare-control strong,
  .temporal-date-navigator label strong {
    font-size: max(0.8125rem, var(--a11y-min-font-size));
    line-height: 1.25;
  }
  .temporal-date-navigator > button {
    width: 44px;
    height: 58px;
  }
  .temporal-date-navigator label {
    gap: 7px;
  }
  .temporal-date-navigator label > svg {
    width: 16px;
  }
  .compare-control > i {
    flex: 0 0 auto;
  }
  .custom-period-row {
    align-items: stretch;
    flex-direction: column;
  }
  .custom-period-row > i {
    display: none;
  }
  .active-filter-summary {
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    width: 100%;
    text-align: left;
  }
  .active-filter-summary span {
    padding: 5px 8px;
    border: 1px solid rgba(104, 184, 230, 0.14);
    border-radius: 999px;
    background: rgba(104, 184, 230, 0.05);
    font-size: max(0.5rem, var(--a11y-min-font-size));
  }
  .active-filter-summary i {
    display: none;
  }
  .report-view-tabs {
    width: 100%;
    overflow-x: auto;
  }
  .report-view-tabs button {
    flex: 1 0 auto;
    justify-content: center;
  }
  .analytics-main {
    padding: 14px 10px;
  }
  .analytics-header {
    align-items: flex-start;
  }
  .analytics-controls {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    margin-inline: -10px;
    padding-inline: 10px;
  }
  .metric-segment {
    width: 100%;
  }
  .metric-segment button {
    flex: 1;
  }
  .date-navigator {
    justify-content: space-between;
  }
  .date-navigator label {
    flex: 1;
    justify-content: center;
  }
  .analytics-summary {
    grid-template-columns: 1fr 1fr;
  }
  .analytics-summary > div {
    min-height: 82px;
    align-content: center;
    padding: 12px;
    border-bottom: 1px solid var(--line);
  }
  .analytics-summary > div:first-child {
    padding-left: 12px;
  }
  .analytics-summary strong {
    font-size: max(1.25rem, var(--a11y-min-font-size));
  }
  .analytics-summary > div:nth-child(2) {
    border-right: 0;
  }
  .analytics-summary > div:nth-child(3),
  .analytics-summary > div:nth-child(4) {
    border-bottom: 0;
  }
  .condition-analytics-chart,
  .analytics-chart-skeleton {
    width: calc(100% + 8px);
    height: 320px;
    margin-top: 6px;
    margin-inline: -4px;
  }
  .chart-context {
    align-items: flex-start;
    flex-direction: column;
  }
  .analytics-side {
    grid-template-columns: 1fr;
  }
  .contributors-card {
    grid-column: auto;
  }
  .event-timeline article {
    grid-template-columns: 12px 1fr;
  }
  .event-timeline time {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
  }
  .event-timeline article > i {
    grid-column: 1;
    grid-row: 1/3;
  }
  .event-timeline article > div {
    grid-column: 2;
  }
  .report-generator {
    height: 94%;
    align-self: flex-end;
    border-radius: 20px 20px 0 0;
  }
  .report-template-grid {
    grid-template-columns: 1fr;
  }
  .reports-head {
    align-items: stretch;
    flex-direction: column;
  }
  .reports-head .report-primary-button {
    width: 100%;
  }
  .report-kpi-strip {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .report-kpi-strip article {
    min-height: 118px;
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    padding: 13px;
  }
  .report-kpi-icon {
    width: 34px;
    height: 34px;
  }
  .report-kpi-icon svg {
    width: 17px;
  }
  .report-kpi-strip strong {
    font-size: max(1.1875rem, var(--a11y-min-font-size));
  }
  .reports-toolbar {
    grid-template-columns: 1fr;
  }
  .report-filter-button,
  .report-select.compact {
    grid-column: auto;
  }
  .report-filter-drawer {
    grid-template-columns: 1fr;
  }
  .filter-group {
    grid-column: auto;
  }
  .report-search kbd {
    display: none;
  }
  .report-table {
    min-width: 850px;
  }
  .report-insights {
    grid-template-columns: 1fr;
  }
  .report-preview {
    border-radius: 20px 20px 0 0;
    height: 94%;
    align-self: flex-end;
  }
}
