.rs-report-photo-timestamp-final {
  margin: 0 0 16px;
  border: 1px solid rgba(13, 57, 73, .16);
  border-radius: 15px;
  background: #fff;
  color: #123443;
  box-shadow: 0 10px 28px rgba(8, 43, 57, .08);
  overflow: hidden;
}

#dmExportTools .rs-report-photo-timestamp-final { margin: 12px 0 0; }

#dmExportTools .rs-photo-timestamp-report-field {
  display: grid;
  grid-column: 1 / -1;
  gap: 5px;
  min-width: 0;
}

#dmExportTools .rs-photo-timestamp-report-field label {
  color: #3f5e69;
  font-size: 12px;
  font-weight: 800;
}

#dmExportTools .rs-photo-timestamp-report-field select {
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid rgba(13, 57, 73, .22);
  border-radius: 10px;
  background: #fff;
  color: #123443;
  font: inherit;
}

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

.rs-report-photo-timestamp-final > details > summary::-webkit-details-marker { display: none; }

.rs-report-photo-timestamp-final > details > summary > span:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.rs-report-photo-timestamp-final > details > summary small {
  color: #268b6b;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.rs-report-photo-timestamp-final > details > summary strong {
  overflow: hidden;
  color: #123443;
  font-size: 15px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rs-report-photo-timestamp-summary-action {
  flex: 0 0 auto;
  min-width: 54px;
  color: #456874;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.rs-report-photo-timestamp-final details[open] .rs-report-photo-timestamp-summary-action::before { content: "Close"; }
.rs-report-photo-timestamp-final details[open] .rs-report-photo-timestamp-summary-action { font-size: 0; }
.rs-report-photo-timestamp-final details[open] .rs-report-photo-timestamp-summary-action::before { font-size: 12px; }

.rs-report-photo-timestamp-body {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
  border-top: 1px solid rgba(13, 57, 73, .09);
}

.rs-report-photo-timestamp-body > p {
  margin: 12px 0 0;
  color: #58717b;
  font-size: 13px;
  line-height: 1.48;
}

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

.rs-report-photo-timestamp-fields label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #3f5e69;
  font-size: 12px;
  font-weight: 800;
}

.rs-report-photo-timestamp-fields select,
.rs-report-photo-timestamp-fields input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid rgba(13, 57, 73, .22);
  border-radius: 10px;
  background: #fff;
  color: #123443;
  font: inherit;
  font-size: 16px;
}

.rs-report-photo-timestamp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rs-report-photo-timestamp-actions .rs-btn,
.rs-report-photo-timestamp-review .rs-btn {
  min-height: 42px;
  padding-inline: 14px;
  touch-action: manipulation;
}

.rs-report-photo-timestamp-actions .rs-btn:disabled,
.rs-report-photo-timestamp-review .rs-btn:disabled {
  cursor: not-allowed;
  opacity: .52;
}

.rs-report-photo-timestamp-review,
.rs-report-photo-timestamp-message {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(38, 139, 107, .2);
  border-radius: 12px;
  background: #f4faf8;
}

.rs-report-photo-timestamp-review > strong,
.rs-report-photo-timestamp-message > strong {
  color: #173f3a;
  font-size: 14px;
}

.rs-report-photo-timestamp-review p {
  margin: 0;
  color: #496860;
  font-size: 13px;
  line-height: 1.48;
}

.rs-report-photo-timestamp-message span {
  color: #5b7179;
  font-size: 13px;
  line-height: 1.45;
}

.rs-report-photo-timestamp-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rs-report-photo-timestamp-counts span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid rgba(38, 139, 107, .18);
  border-radius: 999px;
  background: #fff;
  color: #345c50;
  font-size: 12px;
  font-weight: 750;
}

.rs-report-photo-timestamp-confirm {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  padding: 9px;
  border-radius: 10px;
  background: #fff;
  color: #405e67;
  font-size: 13px;
  line-height: 1.42;
  cursor: pointer;
}

.rs-report-photo-timestamp-confirm input {
  width: 20px;
  height: 20px;
  margin: 0;
}

.rs-report-photo-timestamp-status {
  min-height: 20px;
  color: #617780;
  font-size: 12px;
  line-height: 1.4;
}

.rs-report-photo-timestamp-status.is-warning { color: #80611b; }
.rs-report-photo-timestamp-status.is-error { color: #9b3733; }
.rs-report-photo-timestamp-status.is-success { color: #197456; }

.rs-report-photo-timestamp-final.is-busy { opacity: .82; }

@media (min-width: 680px) {
  .rs-report-photo-timestamp-fields {
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, .9fr);
  }
}

@media (max-width: 480px) {
  .rs-report-photo-timestamp-final {
    margin-bottom: 12px;
    border-radius: 13px;
  }

  .rs-report-photo-timestamp-final > details > summary,
  .rs-report-photo-timestamp-body { padding-inline: 12px; }

  .rs-report-photo-timestamp-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .rs-report-photo-timestamp-actions .rs-btn,
  .rs-report-photo-timestamp-review .rs-btn {
    width: 100%;
    justify-content: center;
  }
}

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