/* Keep asset details above the fixed account toolbar and its dropdowns. */
#detailModal {
  z-index: 100010;
  padding: 12px;
}

#detailModal .modalbox {
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overscroll-behavior: contain;
}

#detailModal .modalhead {
  position: sticky;
  top: -20px;
  z-index: 2;
  margin: -20px -20px 15px;
  padding: 12px 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

#detailModal .close {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  border-radius: 8px;
}

#detailModal .close:focus-visible {
  outline: 2px solid var(--dark);
  outline-offset: -2px;
}
