/* توثيق HAMART V22 | الواجهة العامة والإدارية | hae-confirm.css | يتحكم في سلوك أو تنسيق مكوّن الواجهة. الربط مفصل في resources/reports/HAMART_22_FILE_INDEX_AR.md */
.hae-confirm-popup{border-radius:18px!important;padding:1.35rem!important;font-family:inherit!important;box-shadow:0 24px 70px rgba(15,23,42,.22)!important}.hae-confirm-popup .swal2-title{font-size:1.15rem!important;font-weight:800!important}.hae-confirm-popup .swal2-html-container,.hae-confirm-popup .swal2-content{font-size:.95rem!important;line-height:1.75!important;color:#475467!important}.hae-confirm-popup .swal2-actions{gap:.7rem!important;width:100%!important;justify-content:center!important}.hae-confirm-popup .swal2-styled{min-width:108px!important;border-radius:10px!important;font-weight:700!important;padding:.65rem 1.2rem!important}.hae-confirm-popup .hae-confirm-yes{background:#16794b!important}.hae-confirm-popup .hae-confirm-no{background:#e5e7eb!important;color:#111827!important}.hae-confirm-popup .hae-confirm-yes:focus,.hae-confirm-popup .hae-confirm-no:focus{box-shadow:0 0 0 3px rgba(22,121,75,.16)!important}html[dir="rtl"] .hae-confirm-popup{text-align:right!important}[data-hae-theme="dark"] .hae-confirm-popup{background:#111827!important;color:#f9fafb!important}[data-hae-theme="dark"] .hae-confirm-popup .swal2-title,[data-hae-theme="dark"] .hae-confirm-popup .swal2-html-container,[data-hae-theme="dark"] .hae-confirm-popup .swal2-content{color:#f9fafb!important}[data-hae-theme="dark"] .hae-confirm-popup .hae-confirm-no{background:#374151!important;color:#f9fafb!important}

/* Accessible fallback used only if SweetAlert is unavailable. */
.hae-confirm-fallback-overlay{position:fixed;inset:0;z-index:2147483000;background:rgba(15,23,42,.55);display:flex;align-items:center;justify-content:center;padding:20px}
.hae-confirm-fallback{width:min(420px,100%);background:var(--hae-surface,#fff);color:var(--hae-text,#1f2937);border-radius:16px;padding:22px;box-shadow:0 24px 80px rgba(0,0,0,.28);text-align:center;direction:inherit}
.hae-confirm-fallback-icon{width:54px;height:54px;border:2px solid #f59e0b;border-radius:50%;display:grid;place-items:center;margin:0 auto 12px;font-size:28px;color:#b45309;font-weight:700}
.hae-confirm-fallback h3{font-size:1.15rem;margin:0 0 8px}.hae-confirm-fallback p{margin:0 0 18px;line-height:1.7;white-space:pre-line}
.hae-confirm-fallback-actions{display:flex;gap:10px;justify-content:center}.hae-confirm-fallback-actions button{min-width:100px;border:0;border-radius:9px;padding:9px 18px;font-weight:700;cursor:pointer}
.hae-confirm-fallback-yes{background:#2563eb;color:#fff}.hae-confirm-fallback-yes.danger{background:#dc3545}.hae-confirm-fallback-no{background:#e5e7eb;color:#111827}
[data-hae-theme="dark"] .hae-confirm-fallback{background:#172033;color:#f8fafc}[data-hae-theme="dark"] .hae-confirm-fallback-no{background:#334155;color:#f8fafc}
/* SweetAlert2 v8 is bundled as an `all` build whose embedded CSS injection is blocked by strict CSP.
   The static core stylesheet is loaded separately; these rules keep all confirmation dialogs visually
   consistent across direct Swal.fire calls and HAEConfirm. */
.swal2-container{font-family:inherit!important;z-index:2147482000!important}
.swal2-container.swal2-backdrop-show{background:rgba(15,23,42,.48)!important;backdrop-filter:blur(2px)}
.swal2-popup{border:1px solid rgba(148,163,184,.2)!important;border-radius:18px!important;box-shadow:0 24px 80px rgba(15,23,42,.28)!important;padding:1.45rem 1.55rem!important}
.swal2-title{font-family:inherit!important;font-size:1.22rem!important;line-height:1.55!important;font-weight:800!important;color:#182230!important}
.swal2-content,.swal2-html-container{font-family:inherit!important;font-size:.95rem!important;line-height:1.8!important;color:#667085!important}
.swal2-actions{gap:.65rem!important;margin-top:1.25rem!important}
.swal2-styled{min-width:106px!important;border:0!important;border-radius:10px!important;padding:.65rem 1.25rem!important;font-family:inherit!important;font-weight:800!important;box-shadow:none!important;transition:transform .15s ease,filter .15s ease,box-shadow .15s ease!important}
.swal2-styled:hover{filter:brightness(.96);transform:translateY(-1px)}
.swal2-styled:focus{box-shadow:0 0 0 3px rgba(37,99,235,.16)!important;outline:0!important}
.swal2-confirm{background:#16794b!important;color:#fff!important}
.swal2-cancel{background:#eef1f5!important;color:#344054!important}
.swal2-input{width:100%!important;max-width:100%!important;border:1px solid #d0d5dd!important;border-radius:10px!important;padding:.65rem .8rem!important;font-family:inherit!important;box-shadow:none!important}
.swal2-input:focus{border-color:#667eea!important;box-shadow:0 0 0 3px rgba(102,126,234,.14)!important}
html[dir="rtl"] .swal2-popup{text-align:right!important;direction:rtl!important}
html[dir="rtl"] .swal2-actions{direction:rtl!important}
[data-hae-theme="dark"] .swal2-popup{background:#111827!important;border-color:#334155!important;color:#f8fafc!important}
[data-hae-theme="dark"] .swal2-title{color:#f8fafc!important}
[data-hae-theme="dark"] .swal2-content,[data-hae-theme="dark"] .swal2-html-container{color:#cbd5e1!important}
[data-hae-theme="dark"] .swal2-cancel{background:#334155!important;color:#f8fafc!important}
[data-hae-theme="dark"] .swal2-input{background:#0f172a!important;border-color:#475569!important;color:#f8fafc!important}
@media (max-width:575.98px){.swal2-container{padding:14px!important}.swal2-popup{width:100%!important;padding:1.25rem 1rem!important}.swal2-actions{width:100%!important}.swal2-styled{flex:1 1 0;min-width:0!important}}
