/**
 * SweetAlert2 – Same card as admin .modal-content
 * Same structure, shape, corners, and buttons as Add General Staff Note / confirm modal.
 */

/* ----- Hidden template elements: no layout, no space ----- */
.swal2-popup .swal2-input,
.swal2-popup .swal2-file,
.swal2-popup .swal2-select,
.swal2-popup .swal2-textarea,
.swal2-popup .swal2-checkbox,
.swal2-popup .swal2-radio,
.swal2-popup .swal2-range {
  display: none !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ----- Card = same as .modal-content ----- */
.swal2-container .swal2-popup.swal2-modal {
  filter: none !important;
  -webkit-backdrop-filter: none !important;
  pointer-events: auto !important;
  max-width: 480px !important;
  padding: 0 !important;
  display: block !important;
  border-radius: 0.375rem !important;
  border: 1px solid rgba(0, 0, 0, 0.075) !important;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
  background: #fff !important;
  overflow: hidden !important;
}

/* Layout like modal: block flow (icon = header, html = body, actions = footer) */
.swal2-container .swal2-popup.swal2-modal > * {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Hide elements we don't use in simple confirm */
.swal2-container .swal2-popup .swal2-close[style*="display: none"],
.swal2-container .swal2-popup .swal2-progress-steps[style*="display: none"],
.swal2-container .swal2-popup .swal2-image[style*="display: none"],
.swal2-container .swal2-popup .swal2-title[style*="display: none"],
.swal2-container .swal2-popup .swal2-footer[style*="display: none"],
.swal2-container .swal2-popup .swal2-timer-progress-bar-container {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* ----- Header area: icon row (like modal-header) ----- */
.swal2-container .swal2-popup .swal2-icon {
  margin: 0 !important;
  padding: 1rem 1.5rem 0 !important;
  width: auto !important;
  height: auto !important;
  min-height: 3rem !important;
  border: none !important;
  border-radius: 0 !important;
  border-bottom: 1px solid #dee2e6 !important;
  background: transparent !important;
  color: #364a63 !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.swal2-container .swal2-popup .swal2-icon .swal2-icon-content {
  font-size: 1.25rem !important;
  font-weight: 600 !important;
}

.swal2-container .swal2-popup .swal2-icon.swal2-warning {
  color: #364a63 !important;
}

.swal2-container .swal2-popup .swal2-icon.swal2-error {
  color: #c92a2a !important;
}

.swal2-container .swal2-popup .swal2-icon.swal2-success {
  color: #2b8a3e !important;
}

/* ----- Body = modal-body ----- */
.swal2-container .swal2-popup .swal2-html-container {
  margin: 0 !important;
  padding: 1rem 1.5rem 1.25rem !important;
  color: #495057 !important;
  font-size: 0.9375rem !important;
  line-height: 1.5 !important;
  text-align: left !important;
}

/* ----- Footer = modal-footer (same as other cards) ----- */
.swal2-container .swal2-popup .swal2-actions {
  margin: 0 !important;
  padding: 1rem 1.5rem 1.25rem !important;
  gap: 0.5rem !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  border-top: 1px solid #dee2e6 !important;
  background: #fff !important;
}

/* ----- Buttons: same as modal Cancel / Save ----- */
.swal2-container .swal2-popup .swal2-styled {
  margin: 0 !important;
  min-width: 110px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0.55rem 1.75rem !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
  font-size: 0.9375rem !important;
  border-radius: 0.375rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
}

/* Cancel = btn-secondary */
.swal2-container .swal2-popup .swal2-cancel.swal2-styled {
  background: rgb(241, 244, 251) !important;
  border: 1px solid rgb(201, 210, 227) !important;
  color: rgb(32, 41, 56) !important;
  box-shadow: none !important;
}

.swal2-container .swal2-popup .swal2-cancel.swal2-styled:hover {
  background: rgb(233, 237, 246) !important;
  border-color: rgb(141, 157, 185) !important;
  color: rgb(32, 41, 56) !important;
}

/* Confirm (Apply) = btn-primary */
.swal2-container .swal2-popup .swal2-confirm.swal2-styled,
.swal2-container .swal2-popup .swal2-confirm.btn-danger.swal2-styled {
  background: linear-gradient(135deg, rgb(31, 43, 58) 0%, rgb(54, 74, 99) 100%) !important;
  border: 2px solid rgb(54, 74, 99) !important;
  box-shadow: rgba(31, 43, 58, 0.3) 0 4px 15px !important;
  color: rgb(255, 255, 255) !important;
}

.swal2-container .swal2-popup .swal2-confirm.swal2-styled:hover,
.swal2-container .swal2-popup .swal2-confirm.btn-danger.swal2-styled:hover {
  background: linear-gradient(135deg, rgb(54, 74, 99) 0%, rgb(74, 95, 122) 100%) !important;
  border-color: rgb(74, 95, 122) !important;
  color: rgb(255, 255, 255) !important;
}

/* Deny = secondary */
.swal2-container .swal2-popup .swal2-deny.swal2-styled {
  background: rgb(241, 244, 251) !important;
  border: 1px solid rgb(201, 210, 227) !important;
  color: rgb(32, 41, 56) !important;
}

.swal2-container .swal2-popup .swal2-deny.swal2-styled:hover {
  background: rgb(233, 237, 246) !important;
  border-color: rgb(141, 157, 185) !important;
  color: rgb(32, 41, 56) !important;
}

/* Backdrop = same as modal */
.swal2-container.swal2-backdrop-show {
  background: rgba(0, 0, 0, 0.5) !important;
}
