/* V1 : reprend les couleurs et les contrôles du thème FSGT. */
.fsgt-action-dialog{border:1px solid var(--bs-border-color,#dce3ee);border-radius:20px;padding:0;width:min(1180px,calc(100vw - 48px));max-width:none;height:min(900px,calc(100dvh - 48px));max-height:none;color:var(--bs-body-color);background:var(--bs-body-bg);box-shadow:0 24px 80px #071a3d55;overflow:hidden}
.fsgt-action-dialog::backdrop{background:#071a3da6;backdrop-filter:blur(3px)}
.fsgt-action-dialog[open]{display:flex;flex-direction:column}
.fsgt-action-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 24px;border-bottom:1px solid var(--bs-border-color,#dce3ee);background:var(--bs-body-bg);flex-shrink:0}
.fsgt-action-head h2{font-size:1.15rem;margin:0;font-weight:700;overflow-wrap:anywhere}
.fsgt-action-head small{display:block;color:var(--bs-secondary-color,#657184);margin-top:4px}
.fsgt-action-close{min-width:44px;min-height:44px;flex-shrink:0}
.fsgt-action-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:24px;scroll-padding:20px}
.fsgt-action-body.is-frame{padding:0;overflow:hidden;display:flex}
.fsgt-action-frame{width:100%;height:100%;border:0;background:var(--bs-body-bg);flex:1;min-width:0}
.fsgt-action-status{padding:10px 24px;margin:0;background:var(--bs-tertiary-bg,#edf2f7);border-bottom:1px solid var(--bs-border-color);font-size:.9rem;flex-shrink:0}
.fsgt-action-dialog .btn,.fsgt-action-launch{min-height:42px}
.fsgt-action-launch{white-space:normal;text-align:left;margin:4px 0}
.fsgt-action-dialog .form-control,.fsgt-action-dialog .form-select{min-height:44px}
.fsgt-action-confirm{max-width:620px;height:auto}
.fsgt-action-form-label{color:var(--bs-secondary-color);margin-bottom:16px;overflow-wrap:anywhere}
.fsgt-action-form[hidden]{display:none!important}
.fsgt-action-embedded .app-sidebar,.fsgt-action-embedded .sidebar-overlay,.fsgt-action-embedded .app-topbar,.fsgt-action-embedded .app-footer,.fsgt-action-embedded #backToTop,.fsgt-action-embedded .page-back-row{display:none!important}
.fsgt-action-embedded .app-content{margin:0!important;width:100%!important;min-width:0}
.fsgt-action-embedded .app-shell{display:block!important;min-height:0}
.fsgt-action-embedded .app-main{padding:20px!important;min-height:0!important}
.fsgt-action-embedded .content-container{max-width:100%!important;padding:0!important}
.fsgt-action-embedded .modal.show{position:relative!important;height:auto!important;overflow:visible!important;inset:auto!important}
.fsgt-action-embedded .modal.show .modal-dialog{margin:0!important;max-width:100%!important;transform:none!important}
.fsgt-action-embedded .modal.show .modal-content{box-shadow:none!important;border:0!important}
.fsgt-action-embedded .modal.show .modal-body{max-height:none!important;overflow:visible!important}
.fsgt-action-embedded .modal-backdrop{display:none!important}
.fsgt-action-embedded body.modal-open{overflow:auto!important;padding-right:0!important}
.fsgt-action-editor-only .app-main>.content-container>*:not(.modal):not(.app-alert){display:none!important}
@media(max-width:991px){.fsgt-action-dialog{width:calc(100vw - 24px);height:calc(100dvh - 24px);border-radius:14px}.fsgt-action-head{padding:14px 18px}.fsgt-action-body{padding:18px}.fsgt-action-embedded .app-main{padding:16px!important}}
@media(max-width:575px){.fsgt-action-dialog{width:100vw;height:100dvh;margin:0;border:0;border-radius:0;inset:0}.fsgt-action-head{padding:12px 14px;padding-top:max(12px,env(safe-area-inset-top));gap:10px}.fsgt-action-head h2{font-size:1rem}.fsgt-action-head small{font-size:.75rem}.fsgt-action-body{padding:14px;padding-bottom:max(14px,env(safe-area-inset-bottom))}.fsgt-action-status{padding:8px 14px}.fsgt-action-embedded .app-main{padding:12px!important}.fsgt-action-dialog .form-control,.fsgt-action-dialog .form-select,.fsgt-action-embedded input,.fsgt-action-embedded select,.fsgt-action-embedded textarea{font-size:16px}.fsgt-action-confirm{width:calc(100vw - 24px);height:auto;max-height:calc(100dvh - 24px);margin:auto;border-radius:14px}}
@media(prefers-reduced-motion:reduce){.fsgt-action-dialog *{scroll-behavior:auto!important;transition:none!important}}
@media print{.fsgt-action-head,.fsgt-action-status{display:none!important}.fsgt-action-dialog{position:static!important;width:100%!important;height:auto!important;border:0!important;box-shadow:none!important}.fsgt-action-body{overflow:visible!important}}

/* Actions de la liste des comptes : commandes alignées, sans étirer les lignes. */
#adminUserList .admin-user-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem!important;align-items:center;min-width:240px;max-width:310px}
#adminUserList .admin-user-actions>.btn,#adminUserList .admin-user-actions>form{min-width:0;margin:0!important}
#adminUserList .admin-user-actions .btn{display:inline-flex;justify-content:center;align-items:center;width:100%;min-height:36px;margin:0!important;padding:.4rem .55rem;font-size:.8rem;line-height:1.2;white-space:normal;text-align:center;border-radius:.55rem;box-shadow:none}
#adminUserList .admin-user-actions .btn-action-delete{background:transparent!important;color:#dc3545!important;border-color:#dc3545!important}
#adminUserList .admin-user-actions .btn-action-delete:hover,#adminUserList .admin-user-actions .btn-action-delete:focus-visible{background:#dc3545!important;color:#fff!important}
#adminUserList td:nth-child(5) .badge{white-space:nowrap;line-height:1.25}

/* V130: embedded Bootstrap editors must expand inside the scrolling iframe. */
.fsgt-action-embedded .modal.show .modal-dialog-scrollable{height:auto!important;max-height:none!important}
.fsgt-action-embedded .modal.show .modal-content{max-height:none!important;overflow:visible!important}
.fsgt-action-embedded .modal.show .modal-body{flex:none!important;min-height:0!important}
.fsgt-action-embedded #userEditor .modal-footer{position:fixed;bottom:0;left:0;right:0;z-index:5;padding-bottom:max(.75rem,env(safe-area-inset-bottom))}
.v41-ui #userEditor .modal-header,.v41-ui #userEditor .modal-footer{flex-shrink:0}
.v41-ui #userEditor .modal-body{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
@media(max-width:575.98px){.v41-ui #userEditor .modal-dialog{margin:.5rem}.v41-ui #userEditor .modal-content{max-height:calc(100dvh - 1rem)}.fsgt-action-embedded #userEditor .modal-content{max-height:none!important}}

.fsgt-action-embedded #userEditor .modal-body{padding-bottom:6rem!important}
