.rs-report-series-stage1 {
  margin: 0 0 18px;
  border: 1px solid rgba(7, 40, 56, 0.14);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(7, 40, 56, 0.98), rgba(12, 59, 72, 0.96));
  color: #fff;
  box-shadow: 0 18px 46px rgba(4, 28, 40, 0.16);
  overflow: hidden;
}

.rs-report-series-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.rs-report-series-head h2 {
  margin: 3px 0 5px;
  color: #fff;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.08;
}

.rs-report-series-head p,
.rs-report-series-property small,
.rs-report-series-intro span,
.rs-report-series-create span,
.rs-report-series-pending span,
.rs-report-series-empty span {
  display: block;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.rs-report-series-kicker {
  color: #59e0ad;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rs-report-series-refresh {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.rs-report-series-refresh:hover {
  border-color: rgba(89, 224, 173, 0.8);
  background: rgba(89, 224, 173, 0.12);
}

.rs-report-series-status {
  min-height: 22px;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.84rem;
}

.rs-report-series-status.is-success { color: #92f0cb; }
.rs-report-series-status.is-warning { color: #ffe4a8; }
.rs-report-series-status.is-error { color: #ffc3bd; }

#rsReportSeriesStage1Body {
  padding: 20px 24px 24px;
}

.rs-report-series-empty,
.rs-report-series-intro,
.rs-report-series-create,
.rs-report-series-pending {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
}

.rs-report-series-empty code {
  display: inline-block;
  margin-top: 8px;
  color: #b8f6de;
  font-size: 0.84em;
}

.rs-report-series-fields,
.rs-report-series-row-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.rs-report-series-stage1 label {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rs-report-series-stage1 input,
.rs-report-series-stage1 select {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: #fff;
  color: #092838;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.rs-report-series-stage1 .rs-btn {
  justify-self: start;
}

.rs-report-series-stage1 .rs-btn-primary {
  border-color: #42d79f;
  background: #42d79f;
  color: #062a3a;
}

.rs-report-series-stage1 .rs-btn-secondary {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.rs-report-series-property {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
}

.rs-report-series-property > div {
  display: grid;
  gap: 3px;
}

.rs-report-series-property > div > span {
  color: #59e0ad;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rs-report-series-property strong {
  font-size: 1.16rem;
}

.rs-report-series-count,
.rs-report-series-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.76rem;
  font-weight: 750;
}

.rs-report-series-list {
  display: grid;
  gap: 12px;
}

.rs-report-series-row {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
}

.rs-report-series-row.is-current {
  border-color: rgba(66, 215, 159, 0.64);
  box-shadow: inset 3px 0 0 #42d79f;
}

.rs-report-series-row-summary,
.rs-report-series-row-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rs-report-series-row-summary > div:first-child {
  display: grid;
  gap: 3px;
}

.rs-report-series-row-summary > div:first-child span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
}

.rs-report-series-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.rs-report-series-pills span.is-current {
  border-color: rgba(66, 215, 159, 0.6);
  background: rgba(66, 215, 159, 0.18);
  color: #a9f5d8;
}

.rs-report-series-pills span.is-cloud { color: #d9e7ef; }

.rs-report-series-row-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.rs-report-series-create {
  margin-top: 16px;
  background: rgba(66, 215, 159, 0.075);
}

.rs-report-series-note {
  margin: -4px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  line-height: 1.45;
}

.rs-report-series-stage1.is-busy {
  cursor: progress;
}

.rs-report-series-stage1 button:disabled,
.rs-report-series-stage1 input:disabled,
.rs-report-series-stage1 select:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

@media (max-width: 760px) {
  .rs-report-series-head,
  .rs-report-series-property,
  .rs-report-series-row-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .rs-report-series-head,
  #rsReportSeriesStage1Body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .rs-report-series-status {
    padding-left: 16px;
    padding-right: 16px;
  }

  .rs-report-series-fields,
  .rs-report-series-row-fields {
    grid-template-columns: 1fr;
  }

  .rs-report-series-refresh,
  .rs-report-series-stage1 .rs-btn {
    width: 100%;
    justify-content: center;
  }

  .rs-report-series-pills {
    justify-content: flex-start;
  }
}
