.rep-topbar {
  background: #004a9c;
  color: #fff;
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.rep-topbar .brand {
  font-size: 12px;
  opacity: 0.9;
  font-weight: 700;
}

.rep-topbar .title {
  font-size: 18px;
  font-weight: 750;
  margin-top: 2px;
}

.rep-topbar .sub {
  font-size: 13px;
  opacity: 0.92;
  margin-top: 4px;
}

.rep-bi-panel,
.rep-result-card,
.rep-kpi {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.rep-bi-panel {
  padding: 16px;
}

.rep-bi-title,
.rep-result-title {
  font-weight: 700;
  color: #0f172a;
}

.rep-result-sub {
  color: #64748b;
  font-size: 13px;
}

.rep-input,
.form-select {
  border-radius: 12px;
  border-color: rgba(15, 23, 42, 0.14);
  min-height: 38px;
}

.rep-multi-btn {
  width: 100%;
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  padding: 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.msel {
  position: relative;
}

.rep-multi-menu {
  position: absolute;
  z-index: 1000;
  width: 100%;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.16);
  padding: 10px;
  margin-top: 6px;
}

.rep-multi-actions {
  display: flex;
  gap: 8px;
  margin: 8px 0;
}

.rep-chip-btn {
  border-radius: 999px;
  background: #f1f5f9;
  font-weight: 700;
}

.rep-multi-list {
  max-height: 220px;
  overflow: auto;
}

.rep-check-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 7px 4px;
  font-size: 13px;
}

.rep-btn-primary,
.rep-btn-run {
  background: #004a9c;
  color: #fff;
  border-radius: 12px;
  font-weight: 800;
}

.rep-btn-primary:hover,
.rep-btn-run:hover {
  background: #003f85;
  color: #fff;
}

.rep-btn-soft {
  background: #eef5ff;
  color: #004a9c;
  border-radius: 12px;
  font-weight: 800;
}

.rep-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.rep-kpi {
  padding: 14px;
}

.rep-kpi-label {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.rep-kpi-value {
  font-size: 22px;
  font-weight: 750;
  color: #0f172a;
}

.rep-result-card {
  padding: 16px;
}

.rep-result-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.rep-sort-box {
  min-width: 280px;
}

.rep-sort-label {
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
}

.rep-state {
  border-radius: 14px;
  padding: 12px;
  margin: 10px 0;
  font-weight: 700;
}

.rep-state-loading {
  background: #eef5ff;
  color: #004a9c;
}

.rep-state-error {
  background: #fff1f2;
  color: #be123c;
}

.rep-state-empty {
  background: #f8fafc;
  color: #64748b;
}

.rep-list table {
  font-size: 13px;
}

.rep-list thead th {
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  text-transform: uppercase;
  border-bottom: 1px solid #e2e8f0;
}

.rep-list tbody td {
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
}

.rep-list tbody tr:hover {
  background: #f8fbff;
}

.rep-meta-hidden {
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
}

@media (max-width: 768px) {
  .rep-result-head {
    display: block;
  }

  .rep-sort-box {
    min-width: 0;
    margin-top: 10px;
  }

  .rep-actions-grid {
    grid-template-columns: 1fr;
  }
}

.rep-class-group {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
  background: #fff;
}

.rep-class-head {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.rep-class-title {
  font-weight: 750;
  color: #0f172a;
}

.rep-class-sub {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.rep-class-count {
  background: #004a9c;
  color: #fff;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}
