/* Ensure dialog container has proper z-index and visual layering */
.ui-dialog {
  z-index: 10000;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  background-color: #fff;
}

/* Title bar styling */
.ui-dialog-titlebar {
  background-color: #005ea5;
  color: #fff;
  padding: 0.75em 1em;
  font-weight: bold;
  border-bottom: 1px solid #ccc;
}

/* Close button styling */
.ui-dialog-titlebar-close {
  position: absolute;
  right: 0.5em;
  top: 0.5em;
  width: 2em;
  height: 2em;
  background: transparent;
  border: none;
  cursor: pointer;
}

.ui-dialog-titlebar-close .ui-icon-closethick {
  background-image: url("/core/misc/icons/000000/close.svg"); /* fallback icon */
  background-size: contain;
  width: 16px;
  height: 16px;
  display: inline-block;
}

/* Dialog content area */
.ui-dialog-content {
  padding: 1.5em;
  overflow-y: auto;
  max-height: 80vh;
}

/* Button pane */
.ui-dialog-buttonpane {
  padding: 1em;
  text-align: right;
  background-color: #f9f9f9;
  border-top: 1px solid #ddd;
}