.rs-report-evidence-final {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #d7e3e0;
  border-radius: 16px;
  background: #fff;
  color: #173f45;
  box-shadow: 0 10px 28px rgba(23, 63, 69, .06);
  overflow: hidden;
}

.rs-report-evidence-final *,
.rs-report-evidence-final *::before,
.rs-report-evidence-final *::after {
  box-sizing: border-box;
}

.rs-report-evidence-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.rs-report-evidence-head > div { min-width: 0; }

.rs-report-evidence-kicker {
  display: block;
  margin-bottom: 4px;
  color: #587076;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rs-report-evidence-head h2 {
  margin: 0;
  color: #173f45;
  font-size: 1.15rem;
  line-height: 1.25;
}

.rs-report-evidence-head p {
  max-width: 720px;
  margin: 6px 0 0;
  color: #587076;
  font-size: .9rem;
  line-height: 1.45;
}

.rs-report-evidence-refresh,
.rs-report-evidence-final button {
  min-height: 44px;
  touch-action: manipulation;
}

.rs-report-evidence-refresh {
  padding: 9px 14px;
  border: 1px solid #b9cfca;
  border-radius: 10px;
  background: #f8fbfa;
  color: #173f45;
  font: inherit;
  font-size: .86rem;
  font-weight: 800;
  cursor: pointer;
}

.rs-report-evidence-status {
  min-height: 1.35em;
  margin: 11px 0 0;
  color: #587076;
  font-size: .84rem;
  line-height: 1.4;
}

.rs-report-evidence-status.is-success { color: #176d54; }
.rs-report-evidence-status.is-warning { color: #8a5d12; }
.rs-report-evidence-status.is-error { color: #a52a2a; }

.rs-report-evidence-empty {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 15px;
  border: 1px dashed #cbdad7;
  border-radius: 12px;
  background: #f8fbfa;
}

.rs-report-evidence-empty strong { color: #173f45; }
.rs-report-evidence-empty span {
  color: #587076;
  font-size: .88rem;
  line-height: 1.45;
}

.rs-report-evidence-compose {
  margin-top: 14px;
  border: 1px solid #d7e3e0;
  border-radius: 14px;
  background: #fbfdfc;
}

.rs-report-evidence-compose > summary {
  min-height: 52px;
  padding: 14px 16px;
  color: #173f45;
  font-size: .95rem;
  font-weight: 850;
  cursor: pointer;
  touch-action: manipulation;
}

.rs-report-evidence-compose[open] > summary {
  border-bottom: 1px solid #e2ebe8;
}

.rs-report-evidence-form {
  display: grid;
  gap: 13px;
  padding: 15px;
}

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

.rs-report-evidence-field,
.rs-report-evidence-note-field,
.rs-report-evidence-files-field {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: #294f55;
  font-size: .8rem;
  font-weight: 800;
}

.rs-report-evidence-field select,
.rs-report-evidence-field input,
.rs-report-evidence-note-field textarea,
.rs-report-evidence-files-field input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 11px;
  border: 1px solid #b9cfca;
  border-radius: 10px;
  background: #fff;
  color: #173f45;
  font: inherit;
}

.rs-report-evidence-note-field textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.45;
}

.rs-report-evidence-files-field small,
.rs-report-evidence-form-note {
  margin: 0;
  color: #657a7f;
  font-size: .76rem;
  font-weight: 500;
  line-height: 1.45;
}

.rs-report-evidence-pending {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
  gap: 9px;
}

.rs-report-evidence-pending[hidden] { display: none !important; }

.rs-report-evidence-pending-item {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d7e3e0;
  border-radius: 11px;
  background: #fff;
}

.rs-report-evidence-pending-thumb {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #edf4f2;
  color: #587076;
  font-size: .74rem;
  font-weight: 800;
}

.rs-report-evidence-pending-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rs-report-evidence-pending-copy {
  display: grid;
  gap: 2px;
  padding: 8px;
}

.rs-report-evidence-pending-copy strong,
.rs-report-evidence-pending-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rs-report-evidence-pending-copy strong { font-size: .75rem; }
.rs-report-evidence-pending-copy span { color: #657a7f; font-size: .7rem; }

.rs-report-evidence-pending-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 36px;
  min-height: 36px !important;
  padding: 0 9px;
  border: 1px solid rgba(23, 63, 69, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: #173f45;
  font: inherit;
  font-size: .74rem;
  font-weight: 850;
  cursor: pointer;
}

.rs-report-evidence-submit {
  justify-self: stretch;
}

.rs-report-evidence-list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 18px 0 9px;
}

.rs-report-evidence-list-head strong { font-size: .95rem; }
.rs-report-evidence-list-head span { color: #657a7f; font-size: .78rem; }

.rs-report-evidence-list {
  display: grid;
  gap: 10px;
}

.rs-report-evidence-entry {
  min-width: 0;
  padding: 13px;
  border: 1px solid #d7e3e0;
  border-radius: 13px;
  background: #fff;
}

.rs-report-evidence-entry.is-selected {
  border-color: #8fbab0;
  box-shadow: inset 3px 0 0 #2c8170;
}

.rs-report-evidence-entry-head {
  display: grid;
  gap: 9px;
}

.rs-report-evidence-entry-title {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.rs-report-evidence-entry-title strong {
  color: #173f45;
  font-size: .92rem;
}

.rs-report-evidence-entry-title span {
  color: #657a7f;
  font-size: .76rem;
  line-height: 1.4;
}

.rs-report-evidence-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rs-report-evidence-pill {
  max-width: 100%;
  padding: 5px 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf4f2;
  color: #35575d;
  font-size: .7rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rs-report-evidence-note {
  margin: 11px 0 0;
  padding: 10px 11px;
  border-left: 3px solid #abc9c2;
  background: #f8fbfa;
  color: #294f55;
  font-size: .83rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.rs-report-evidence-images {
  display: flex;
  gap: 8px;
  margin-top: 11px;
  padding-bottom: 2px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  touch-action: pan-x pan-y;
}

.rs-report-evidence-image {
  position: relative;
  flex: 0 0 104px;
  width: 104px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid #d7e3e0;
  border-radius: 10px;
  background: #edf4f2;
}

.rs-report-evidence-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rs-report-evidence-image span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 6px;
  color: #587076;
  font-size: .7rem;
  font-weight: 800;
  text-align: center;
}

.rs-report-evidence-image img:not([hidden]) + span { display: none; }

.rs-report-evidence-entry-actions {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #e2ebe8;
}

.rs-report-evidence-target {
  display: grid;
  min-width: 0;
  gap: 5px;
  color: #294f55;
  font-size: .76rem;
  font-weight: 800;
}

.rs-report-evidence-target select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid #b9cfca;
  border-radius: 10px;
  background: #fff;
  color: #173f45;
  font: inherit;
}

.rs-report-evidence-include {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  gap: 9px;
  color: #294f55;
  font-size: .8rem;
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
}

.rs-report-evidence-include input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #2c8170;
}

.rs-report-evidence-delete {
  justify-self: start;
  border-color: #d9b5b5 !important;
  color: #8b2d2d !important;
}

.rs-tenant-evidence-item {
  border-color: rgba(44, 129, 112, .34) !important;
  background: #f7fcfa !important;
  box-shadow: inset 0 0 0 1px rgba(44, 129, 112, .07), 0 10px 26px rgba(23, 63, 69, .06) !important;
}

.rs-tenant-evidence-inventory-image {
  position: relative;
  width: 100%;
  min-height: 112px;
  overflow: hidden;
  border-radius: 14px;
  background: #e9f3f0;
}

.rs-tenant-evidence-inventory-image img {
  width: 100%;
  height: 112px;
  object-fit: cover;
}

.rs-tenant-evidence-inventory-image > span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #587076;
  font-size: .76rem;
  font-weight: 800;
}

.rs-tenant-evidence-inventory-image > span[hidden] { display: none; }

.rs-tenant-evidence-inventory-label {
  display: grid;
  gap: 4px;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.rs-tenant-evidence-inventory-label strong {
  justify-self: start;
  padding: 4px 7px;
  border: 1px solid rgba(44, 129, 112, .28);
  border-radius: 999px;
  background: rgba(44, 129, 112, .1);
  color: #176d54;
  font-size: .68rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.rs-tenant-evidence-inventory-label span {
  color: #294f55;
  font-size: .78rem;
  font-weight: 850;
}

.rs-tenant-evidence-inventory-note {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.rs-report-evidence-final.is-busy {
  opacity: .86;
}

.rs-report-evidence-final button:disabled,
.rs-report-evidence-final input:disabled,
.rs-report-evidence-final select:disabled,
.rs-report-evidence-final textarea:disabled {
  cursor: not-allowed;
  opacity: .62;
}

.rs-report-evidence-final button:focus-visible,
.rs-report-evidence-final input:focus-visible,
.rs-report-evidence-final select:focus-visible,
.rs-report-evidence-final textarea:focus-visible,
.rs-report-evidence-final summary:focus-visible {
  outline: 3px solid rgba(44, 129, 112, .28);
  outline-offset: 2px;
}

@media (min-width: 680px) {
  .rs-report-evidence-final { padding: 18px; }
  .rs-report-evidence-head {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
  .rs-report-evidence-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-report-evidence-submit { justify-self: start; }
  .rs-report-evidence-entry-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
  .rs-report-evidence-entry-actions {
    grid-template-columns: minmax(220px, 1fr) minmax(180px, auto) auto;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rs-report-evidence-final * { scroll-behavior: auto !important; }
}
