.rc-report {
  display: grid;
  gap: 16px;
}

.rc-updating {
  opacity: 1;
}

.rc-loading {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #eff6ff;
  color: #1e3a8a;
  font-weight: 600;
}

.rc-sample {
  display: inline-block;
  margin: 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-weight: 600;
}

.rc-presets,
.rc-custom,
.rc-cards,
.rc-differences,
.rc-legend,
.hr-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
}

.rc-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.rc-card {
  text-align: left;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-top: 4px solid #2563eb;
  border-radius: 12px;
  padding: 12px 14px;
  display: grid;
  gap: 4px;
  cursor: pointer;
}

.rc-card strong {
  font-size: 1.35rem;
}

.rc-badge {
  display: inline-block;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffedd5;
  color: #9a3412;
  font-size: 0.8rem;
}

.rc-chart-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  min-height: 420px;
}

.rc-chart-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.rc-chart-panel {
  margin: 0;
  min-width: 0;
}

.rc-chart-panel h4 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.rc-chart-panel .muted {
  margin: 2px 0 8px;
}

.rc-chart {
  display: block;
  width: 100%;
  height: 400px;
  min-height: 360px;
  background: #fff;
}

.rc-loading {
  margin: 0;
  font-weight: 600;
}

.rc-legend i,
.rc-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  margin-right: 6px;
}

.rc-tick,
.rc-axis-name,
.rc-bar-label,
.rc-axis-title {
  fill: #334155;
  font-size: 12px;
}

.rc-bar {
  cursor: pointer;
}

.rc-bar:focus {
  outline: 2px solid #0f172a;
  outline-offset: 2px;
}

.rc-note {
  color: #475569;
}

.rc-access-table,
.rc-drawer table {
  width: 100%;
  border-collapse: collapse;
}

.rc-access-table th,
.rc-access-table td,
.rc-drawer th,
.rc-drawer td {
  border-bottom: 1px solid #e2e8f0;
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

.rc-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.rc-differences {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.rc-differences div,
.rc-phase2,
.rc-import {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.rc-export {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.rc-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(720px, 100%);
  height: 100%;
  background: #fff;
  border-left: 1px solid #e2e8f0;
  padding: 16px;
  overflow: auto;
  z-index: 30;
  box-shadow: -8px 0 24px rgba(15, 23, 42, 0.08);
}

.rc-drawer header,
.rc-drawer footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

@media (max-width: 800px) {
  .rc-cards,
  .rc-differences {
    grid-template-columns: 1fr;
  }

  .rc-chart-row {
    grid-template-columns: 1fr;
  }

  .rc-chart {
    height: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rc-report,
  .rc-bar,
  .rc-card {
    transition: none;
  }
}
