/* 百特 ERP — 统一弹窗（基于 SweetAlert2） */

.swal2-popup.erp-dialog-popup {
    border-radius: 16px !important;
    padding: 28px 28px 22px !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", sans-serif;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid #e8e8ed;
}

.swal2-popup.erp-dialog-popup .swal2-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1d1d1f !important;
    letter-spacing: -0.02em;
    padding: 0 0 8px !important;
}

.swal2-popup.erp-dialog-popup .swal2-content,
.swal2-popup.erp-dialog-popup .swal2-html-container {
    font-size: 14px !important;
    color: #6e6e73 !important;
    line-height: 1.6 !important;
    margin-top: 0 !important;
}

.swal2-popup.erp-dialog-popup .swal2-icon {
    margin: 8px auto 16px !important;
    transform: scale(0.85);
}

.swal2-popup.erp-dialog-popup .swal2-actions {
    margin-top: 22px !important;
    gap: 10px;
}

.swal2-popup.erp-dialog-popup .swal2-styled.swal2-confirm {
    min-width: 96px;
    padding: 10px 22px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    background: #0071e3 !important;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.28) !important;
    border: none !important;
}

.swal2-popup.erp-dialog-popup .swal2-styled.swal2-confirm:hover {
    background: #0058b0 !important;
}

.swal2-popup.erp-dialog-popup .swal2-styled.swal2-cancel {
    min-width: 96px;
    padding: 10px 22px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 10px !important;
    background: #f5f5f7 !important;
    color: #1d1d1f !important;
    border: 1px solid #d8d8de !important;
    box-shadow: none !important;
}

.swal2-popup.erp-dialog-popup .swal2-styled.swal2-cancel:hover {
    background: #ebebed !important;
}

/* 危险操作确认 */
.swal2-popup.erp-dialog-popup.erp-dialog-danger .swal2-styled.swal2-confirm {
    background: #ff3b30 !important;
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.28) !important;
}

.swal2-popup.erp-dialog-popup.erp-dialog-danger .swal2-styled.swal2-confirm:hover {
    background: #d70015 !important;
}

/* 业务条件不满足：错误视觉 + 修复入口，不与危险操作确认混用 */
.swal2-popup.erp-dialog-popup.erp-dialog-blocked { border-top: 4px solid #e5484d; }
.swal2-popup.erp-dialog-popup.erp-dialog-blocked .swal2-icon.swal2-error { border-color:#e5484d !important;color:#e5484d !important; }
.swal2-popup.erp-dialog-popup.erp-dialog-blocked .swal2-styled.swal2-confirm { background:#d9363e !important;box-shadow:0 4px 12px rgba(217,54,62,.25) !important; }
.swal2-popup.erp-dialog-popup.erp-dialog-blocked .swal2-styled.swal2-confirm:hover { background:#b9272e !important; }
.erp-blocked-message{text-align:left;line-height:1.75}.erp-blocked-message__reason{padding:13px 15px;border:1px solid #f1c5c7;border-radius:10px;background:#fff5f5;color:#8f2529}.erp-blocked-message__path{margin-top:14px;padding:11px 14px;border-radius:9px;background:#f7f8fa;color:#5d6470}.erp-blocked-message__path b{display:block;color:#30343b}.erp-blocked-message__path span{display:block;margin-top:2px}

/* 成功 / 错误 Toast 弹层 */
.swal2-popup.swal2-toast {
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
}
