/* modals/slide_in_right/modal_slide_in_right.css */
.modal-slide-in-right { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 10000000055 !important; display: flex; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0s linear 0.3s; pointer-events: none; }
.modal-slide-in-right.show { opacity: 1; visibility: visible; transition-delay: 0s; pointer-events: auto; }
.modal-slide-in-right .modal-backdrop { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.66); opacity: 0; transition: opacity 0.3s ease; pointer-events: none; cursor: pointer; }
.modal-slide-in-right.show .modal-backdrop { opacity: 1; pointer-events: auto; }
.modal-slide-in-right .modal-dialog { position: fixed; border-radius: 30px 0 0 30px; top: 0; right: 0; bottom: 0; z-index: 10; background: var(--primary-light); color: #fff; box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5), /* Ombre très proche et sombre pour le relief immédiat */
        -10px 0 30px rgba(0, 0, 0, 0.4), /* Ombre portée plus large pour la profondeur */
        -1px 0 0 rgba(255, 255, 255, 0.1); /* Liseré subtil de lumière sur la bordure gauche */ display: flex; flex-direction: column; transform: translate3d(100%, 0, 0); transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1), width 0.3s ease-in-out; max-width: 100%; border-left: 1px solid var(--primary-bg, rgba(19, 20, 31, 0.5)); overflow: hidden; /* Garantit que les enfants ne dépassent pas des arrondis */ will-change: transform, opacity; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
/* Version avec fond d'écran image */
.modal-slide-in-right.has-bg-image .modal-dialog, .modal-slide-in-right.has-bg-image .modal-body { background: transparent !important; }
.modal-slide-in-right.has-bg-image .modal-header { background: rgba(15, 17, 26, 0.7); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
/* Tailles (Desktop) */
.modal-slide-in-right.modal-size-small .modal-dialog { width: 380px; }
.modal-slide-in-right.modal-size-large .modal-dialog { width: 600px; }
@media (min-width: 1280px) {
  /* xl */
  .modal-slide-in-right.modal-size-large .modal-dialog { width: 900px; }
}
.modal-slide-in-right.show .modal-dialog { transform: translate3d(0, 0, 0); }
.modal-slide-in-right .modal-content { height: 100%; display: flex; flex-direction: column; border-radius: inherit; /* Hérite de l'arrondi du dialog */ overflow-y: auto; /* Le scroll se fait maintenant ici */ overflow-x: hidden; position: relative; }
.modal-slide-in-right .modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.05); flex-shrink: 0; background: #0f111a; border-top-left-radius: inherit; /* Pour épouser l'arrondi haut-gauche */ position: sticky; top: 0; z-index: 10; /* Assez haut pour être au-dessus du body mais sous les tooltips */ }
.modal-slide-in-right .modal-title { margin: 0; flex: 1; /* Prend tout l'espace restant */ min-width: 0; /* Permet au titre de ne pas pousser les voisins */ display: block; /* Naturel pour le wrap multi-ligne */ line-height: 1.1; padding-right: 1rem; /* Sécurité pour ne pas coller aux boutons */ }
.modal-slide-in-right .modal-header button { flex-shrink: 0; /* Interdiction de réduire les boutons */ background: none; border: none; color: #9ca3af; cursor: pointer; padding: 0.4rem; line-height: 1; opacity: 0.7; transition: all 0.2s ease; }
.modal-slide-in-right .modal-header button:hover { color: #fff; opacity: 1; transform: scale(1.1); }
.modal-slide-in-right .modal-close { font-size: 1.5rem; }
.modal-slide-in-right .modal-toggle-size { font-size: 0.9rem; }
.modal-slide-in-right .modal-body { padding: 0; overflow: visible !important; /* PLUS DE DECOUPE ! Les tooltips peuvent enfin respirer */ flex-grow: 1; background: radial-gradient(circle at center, rgba(68, 33, 145, 0.78) 2.1%, rgba(3, 4, 24, 0.76) 32.35%); position: relative; z-index: auto; /* Libère les tooltips pour qu'elles puissent passer au-dessus du header sticky */ }
.modal-slide-in-right .modal-body > .widget { height: 100%; display: flex; flex-direction: column; }
.modal-slide-in-right .modal-body.no-header { padding-top: 0; }
.modal-slide-in-right .modal-content:has(> .modal-body.no-header) { border-top-left-radius: 8px; }
/* ========== MATÉRIALISATION DE L'INTERFACE ========== */
.modal-slide-in-right.modal-instant-shell .modal-body { position: relative; display: flex; align-items: center; justify-content: center; min-height: 280px; padding: 0; overflow: hidden !important; background: radial-gradient(circle at center, rgba(68, 33, 145, 0.40) 0%, rgba(3, 4, 24, 0.92) 70%); }
.modal-slide-in-right.modal-instant-shell .jgtr-modal-loading { position: absolute; inset: 0; width: 100%; min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; pointer-events: none; }
.modal-slide-in-right.modal-instant-shell .jgtr-modal-loading__spinner { width: 40px; height: 40px; border: 2px solid rgba(255, 255, 255, 0.05); border-top-color: rgba(167, 234, 255, 1); border-radius: 50%; animation: jgtr-modal-spin 1s linear infinite; }
.modal-slide-in-right.modal-instant-shell .jgtr-modal-loading__spinner--error { border-top-color: rgba(248, 113, 113, 1); }
.modal-slide-in-right.modal-instant-shell .jgtr-modal-loading__text { font-family: "JetBrains Mono", monospace; font-size: 10px; color: rgba(167, 234, 255, 1); letter-spacing: 2px; white-space: nowrap; text-transform: uppercase; }
.modal-slide-in-right.modal-instant-shell .jgtr-modal-loading__message { max-width: 320px; text-align: center; font-size: 11px; line-height: 1.5; color: #cbd5e1; }
.modal-slide-in-right.modal-instant-shell .jgtr-modal-loading__retry { display: inline-flex; align-items: center; justify-content: center; padding: 8px 12px; border-radius: 8px; border: 1px solid rgba(108, 99, 255, 0.35); background: rgba(108, 99, 255, 0.16); color: #e0e7ff; font-size: 10px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
@keyframes jgtr-modal-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (max-width: 767px) {
  .modal-slide-in-right .modal-backdrop { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background-color: rgba(0, 0, 0, 0.66); }
  .modal-slide-in-right .modal-dialog { will-change: transform; }
  .modal-slide-in-right.modal-instant-shell .modal-body { min-height: 240px; }
}
