/* ===== 看板深色紧凑弹窗（新增，作用域受限，不影响原弹窗样式） ===== */
.swal-dark-compact.swal2-popup {
  border-radius: 14px;
  border: 1px solid rgba(102, 126, 234, 0.3);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}
.swal-dark-compact .swal2-icon {
  transform: scale(0.8);
  margin: 10px auto 0;
}
.swal-dark-compact .swal2-title {
  font-size: 1.05rem;
  padding-top: 8px;
}
.swal-dark-compact .swal2-html-container {
  font-size: 0.88rem;
}
.swal-dark-compact .swal2-confirm.swal-dark-confirm {
  border-radius: 8px;
  padding: 7px 18px;
  font-size: 0.85rem;
  font-weight: 600;
}
.swal-dark-compact .swal2-timer-progress-bar {
  background: linear-gradient(90deg, #667eea, #764ba2);
  height: 3px;
}

/* ===== 统一确认框（浅色医疗蓝白，色值与 dashboard.css 一致） =====
   挂载方式：assets/js/sweetalert2-utils.js 的 confirm() 默认加 .swal-medical-confirm，
             页面脚本无需再手写 customClass；删除类危险操作再加 .swal-confirm-danger。 */
.swal-medical-confirm.swal2-popup {
  /* SweetAlert2 默认宽 32em，这里收窄到约 2/3（21.5em ≈ 344px），窄屏不超出视口。
     库会把 width 以内联样式写在 .swal2-popup 上，必须用 !important 才能覆盖。 */
  width: 21.5em !important;
  max-width: calc(100% - 32px) !important;
  border-radius: 14px;
  border: 1px solid rgba(30, 111, 217, 0.14);
  box-shadow: 0 18px 50px rgba(21, 72, 131, 0.18);
  padding: 20px 22px 16px;
  font-family: inherit;
  color: #12304d;
}

.swal-medical-confirm .swal2-title {
  padding-top: 4px;
  font-size: 1.02rem;
  font-weight: 600;
  color: #12304d;
}

.swal-medical-confirm .swal2-html-container {
  margin: 6px 0 0;
  font-size: 0.84rem;
  color: #5b7899;
}

.swal-medical-confirm .swal2-icon {
  transform: scale(0.78);
  margin: 6px auto 0;
}

.swal-medical-confirm .swal2-actions {
  gap: 10px;
  margin-top: 16px;
}

.swal-medical-confirm .swal2-confirm,
.swal-medical-confirm .swal2-cancel {
  border-radius: 8px;
  padding: 7px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: none !important;
}

.swal-medical-confirm .swal2-confirm {
  background: linear-gradient(135deg, #1e6fd9, #3aa0ea) !important;
  color: #ffffff !important;
}

/* 危险操作（删除）的确认按钮 */
.swal-medical-confirm .swal2-confirm.swal-confirm-danger {
  background: linear-gradient(135deg, #e2483d, #f0705f) !important;
}

.swal-medical-confirm .swal2-cancel {
  background: #f5f9fd !important;
  border: 1px solid rgba(30, 111, 217, 0.18) !important;
  color: #5b7899 !important;
}

.swal-medical-confirm .swal2-confirm:focus,
.swal-medical-confirm .swal2-cancel:focus {
  box-shadow: 0 0 0 3px rgba(30, 111, 217, 0.14) !important;
}