.rs-report-merged-final {
  width: 100%;
  box-sizing: border-box;
  margin: 14px 0 0;
  border: 1px solid rgba(17, 49, 56, 0.13);
  border-radius: 14px;
  background: #fff;
  color: #08181d;
  overflow: hidden;
}

.rs-report-merged-final-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  touch-action: manipulation;
}

.rs-report-merged-final-details > summary::-webkit-details-marker { display: none; }
.rs-report-merged-final-details > summary span:first-child { display: grid; gap: 2px; min-width: 0; }
.rs-report-merged-final-details > summary small {
  color: #617277;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.rs-report-merged-final-details > summary strong { font-size: 0.98rem; }
.rs-report-merged-final-summary-action {
  flex: none;
  color: #173137;
}
.rs-report-merged-final-summary-action label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 5px 9px;
  border: 1px solid rgba(23, 131, 100, .28);
  border-radius: 9px;
  background: #f4faf8;
  font-size: .78rem;
  font-weight: 850;
  cursor: pointer;
}
.rs-report-merged-final-summary-action input { width: 18px; height: 18px; margin: 0; accent-color: #178364; }
.rs-report-merged-final-summary-action input:disabled + span { color: #879397; }

.rs-report-merged-final-panel { border-top: 1px solid rgba(17, 49, 56, 0.1); padding: 14px; }
.rs-report-merged-final-intro,
.rs-report-merged-final-grid fieldset > p,
.rs-report-merged-final-muted {
  margin: 0 0 10px;
  color: #617277;
  font-size: 0.82rem;
  line-height: 1.45;
}
.rs-report-merged-final-status {
  min-height: 18px;
  margin: 7px 0 10px;
  color: #53686d;
  font-size: 0.8rem;
}
.rs-report-merged-final-status.is-success { color: #176f56; }
.rs-report-merged-final-status.is-warning { color: #8c6419; }
.rs-report-merged-final-status.is-error { color: #a94743; }

.rs-report-merged-final-grid { display: grid; gap: 10px; }
.rs-report-merged-final-base,
.rs-report-merged-final-grid fieldset {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(17, 49, 56, 0.11);
  border-radius: 10px;
  background: #f7faf9;
}
.rs-report-merged-final-base > span,
.rs-report-merged-final-grid legend {
  padding: 0;
  color: #173137;
  font-size: 0.8rem;
  font-weight: 800;
}
.rs-report-merged-final-base select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd9d6;
  border-radius: 8px;
  background: #fff;
  color: #08181d;
  font: inherit;
  padding: 8px 10px;
}
.rs-report-merged-final-choices { display: grid; gap: 6px; max-height: 210px; overflow: auto; overscroll-behavior: contain; }
.rs-report-merged-final-choices label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  padding: 7px;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.rs-report-merged-final-choices input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: #178364; }
.rs-report-merged-final-choices label span { display: grid; gap: 2px; min-width: 0; }
.rs-report-merged-final-choices strong { font-size: 0.79rem; overflow-wrap: anywhere; }
.rs-report-merged-final-choices small { color: #617277; font-size: 0.72rem; line-height: 1.35; overflow-wrap: anywhere; }
.rs-report-merged-final-empty { padding: 10px; border-radius: 9px; background: #f7faf9; color: #617277; font-size: 0.82rem; }

.rs-report-merged-final-actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  margin-top: 12px;
}
.rs-report-merged-final-actions button {
  min-height: 42px;
  border: 1px solid #bdd0cc;
  border-radius: 9px;
  background: #fff;
  color: #173137;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 9px 12px;
  cursor: pointer;
  touch-action: manipulation;
}
.rs-report-merged-final.is-busy { opacity: 0.78; }

#dmExportTools .dm-export-actions #dmDownloadPDF {
  flex: 1 1 100%;
  width: 100%;
  max-width: none;
}

@media (min-width: 720px) {
  .rs-report-merged-final-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-report-merged-final-actions { flex-direction: row; justify-content: flex-end; }
}

@media (max-width: 520px) {
  .rs-report-merged-final-details > summary { align-items: flex-start; flex-direction: column; }
  .rs-report-merged-final-summary-action,
  .rs-report-merged-final-summary-action label { width: 100%; box-sizing: border-box; }
  .rs-report-merged-final-actions button { width: 100%; }
}
