/* Compatibilité des fenêtres natives avec les styles du CRM déjà installés. */
body.tfb-crm:has(.crm-native .modal.show,.crm-native .pin-overlay.open,.crm-native .day-panel.open,.crm-native [id$="taskRecovery"])>.container{position:relative!important;z-index:100100!important}
body.tfb-crm:has(.crm-native .modal.show,.crm-native .pin-overlay.open,.crm-native .day-panel.open,.crm-native [id$="taskRecovery"]) #pushBanner{display:none!important}
.tfb-crm.tfb-crm [data-crm-native].org-clean .modal{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;padding:16px!important;background:rgba(24,33,47,.45)!important;border:0!important;border-radius:0!important;box-shadow:none!important;z-index:100100!important;overflow:hidden!important;align-items:center!important;justify-content:center!important}
.tfb-crm.tfb-crm [data-crm-native].org-clean .modal-content{display:flex!important;flex-direction:column!important;width:min(700px,calc(100vw - 32px))!important;max-width:none!important;max-height:calc(100dvh - 32px)!important;margin:0!important;padding:0!important;overflow:hidden!important;border-radius:16px!important;background:#fff!important;box-shadow:0 24px 70px #10131b30!important}
.tfb-crm.tfb-crm [data-crm-native].org-clean .modal-header,.tfb-crm.tfb-crm [data-crm-native].org-clean .modal-footer{position:relative!important;flex:0 0 auto!important;z-index:1!important;background:#fff!important}
.tfb-crm.tfb-crm [data-crm-native].org-clean .modal-body{flex:1 1 auto!important;min-height:0!important;overflow:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable}
.tfb-crm.tfb-crm [data-crm-native].org-clean .pin-overlay{position:fixed!important;inset:0!important;max-width:none!important;max-height:none!important;z-index:100100!important;background:rgba(24,33,47,.45)!important;padding:16px!important}
.tfb-crm.tfb-crm [data-crm-native].org-clean .pin-box{max-height:calc(100dvh - 32px)!important;width:min(560px,calc(100vw - 32px))!important;overflow-y:auto!important;background:#fff!important}
.tfb-crm.tfb-crm [data-crm-native].org-clean .day-panel{z-index:100100!important}
.tfb-crm.tfb-crm [data-crm-native].org-clean [id$=taskRecovery]{z-index:100110!important}
@media(max-width:760px){.tfb-crm.tfb-crm [data-crm-native].org-clean .modal{padding:10px!important}.tfb-crm.tfb-crm [data-crm-native].org-clean .modal-content{width:calc(100vw - 20px)!important;max-height:calc(100dvh - 20px)!important;border-radius:14px!important}.tfb-crm.tfb-crm [data-crm-native].org-clean .modal-footer{gap:8px!important;flex-wrap:wrap!important;padding-bottom:calc(16px + env(safe-area-inset-bottom))!important}}
