/* Scroll the movement list while keeping its title and close action visible. */
#cash-detail-dialog, #report-detail-dialog {
  width: min(94vw, 520px);
  max-height: 85vh;
  max-height: 85dvh;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #f1f5f9;
}
#cash-detail-dialog[open], #report-detail-dialog[open] {
  display: flex;
  flex-direction: column;
}
#cash-detail-title, #report-detail-title {
  flex: none;
  margin: 0;
  padding: 20px;
  background: #08213d;
  color: #fff;
  font-size: 21px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
#cash-detail-content, #report-detail-content {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px;
  flex: 1 1 auto;
}
#cash-detail-content p, #report-detail-content p {
  margin: 0 0 12px;
  padding: 16px;
  border: 1px solid #dae6ed;
  border-left: 4px solid #08a875;
  border-radius: 14px;
  background: #fff;
  color: #476077;
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  box-shadow: 0 3px 10px #08213d08;
}
#cash-detail-content p:last-child, #report-detail-content p:last-child { margin-bottom: 0; }
#cash-detail-content b, #report-detail-content b { color: #102b4a; font-size: 16px; }
#close-cash-detail, #close-report-detail {
  flex: none;
  align-self: stretch;
  min-height: 48px;
  margin: 4px 14px 14px;
  padding: 13px 18px;
  border-radius: 13px;
  background: #087c5b;
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
#close-cash-detail:hover, #close-report-detail:hover { background: #066449; }
#close-cash-detail:focus-visible, #close-report-detail:focus-visible {
  outline: 3px solid #38bdf8;
  outline-offset: 2px;
}
