.table-report tr:hover td
{
    background-color: rgba(59,130,246,0.25) !important;
    box-shadow: none !important;
    /*color:white;*/
    -webkit-transition: background-color 0.2s ease-out;
    -moz-transition: background-color 0.2s ease-out;
    -o-transition: background-color 0.2s ease-out;
    transition: background-color 0.2s ease-out;
}

.card-button
{
    border-radius: 0.375rem;
    padding: 7px;
}

.card-button .label-hidden
{
    max-width: 0;
    opacity: 0;
    max-height: 1em;
    white-space: nowrap;
    transition: .2s;
    vertical-align: middle;
    line-height: 11px;
}

.card-button span
{
    margin:0px !important;
    margin-left: 3px !important;
}

.card-button:hover
{
    background: rgba(255,255,255,0.7);
}

.dark .card-button:hover
{
    background: rgba(255,255,255,0.2);
}

.dark .mandatory
{
    background: rgba(63,72,101,var(--tw-bg-opacity));
}

.card-button:hover .label-hidden {
    max-width: 150px;
    margin-left: 8px;
    opacity: 1;
}

.list-container .table thead tr
{
    border: 1px solid black;
}

.list-container .table tbody tr td
{
    padding: 0;
}

.list-container .table thead tr th
{
    font-size: 14px;
    padding: 0px 10px 0px 5px;
}

.tab-content .tab-pane.active, .list-container .overflow-auto
{
    padding-bottom: 300px;
}

.dark .chosen-container-single .chosen-single
{
    background-image: linear-gradient(#3b3c4f 20%,#424356 50%,#46475a 52%,#424356 100%);
    box-shadow: 0 0 3px #000 inset, 0 1px 1px rgb(0 0 0 / 10%);
    color: #fff;
    border: 1px solid rgb(41, 49, 69);
    max-height: 38px;
    min-width: 150px;

}
.dark .chosen-container-active.chosen-with-drop .chosen-single
{
    background-image: linear-gradient(#3b3c4f 20%,#424356 50%,#46475a 52%,#424356 100%);
    border: 1px solid rgb(41, 49, 69);
    box-shadow: 0 0 3px #000 inset, 0 1px 1px rgb(0 0 0 / 10%);
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}
.dark .chosen-container .chosen-drop
{
    background: #202D3B;
}

.dark .chosen-container .chosen-results
{
    color: white;
}

.form-control[readonly] {
    cursor: not-allowed;
    --tw-bg-opacity: 1;
    background-color: rgba(247,250,252,var(--tw-bg-opacity));
}

.dark .form-control[readonly] {
    --tw-bg-opacity: 1;
    background-color: rgba(65, 62, 68, var(--tw-bg-opacity));
    border-color: transparent;
    color: #ccc;
}

.form-check-switch {

    vertical-align: middle;
}

label:has(+.form-check-switch){
    margin-top: 38px !important;
}

.inverted_field label
{
    display: inline-block;
    margin-left: 10px;
    /*transform: translateY(-6px);*/
}

.table_cell_loading
{
    height: 12px;
    background: linear-gradient(to right, #eee 20%, #ddd 50%, #eee 80%);
    background-size: 500px 100px;
    animation-name: moving-gradient;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
    height: 30px;
    width: 100%;
    display: block;
}

.list-container .chosen-container-single .chosen-single span
{
    margin-top:-3px;
}
.list-container .chosen-single
{
    max-height: 38px;
    height:36px;
}

.list-container input
{
    margin-left: 5px;
    margin-right: 5px;
    border-radius: 0.375rem;
    border-width: 1px;
    padding: 0.5rem 0.75rem;
    --tw-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    box-shadow: var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow);
}

.table-report:not(.table-report--bordered):not(.table-report--tabulator) td.table-report__action
{
    min-width:200px;
    max-width: 200px;
}

.table-report:not(.table-report--bordered):not(.table-report--tabulator) {
    border-spacing: 0 3px !important;
}

.form-check-switch:before
{
    background: white;
}

.sticky-thead
{
    position: sticky;
    top:0px;
    z-index:123;
    background: rgb(241, 245, 248);
}

.sticky-tfoot td
{
    position: sticky;
    z-index:123;
    background: rgb(241, 245, 248);
    bottom: 0;
    font-weight: bold;
    text-align: right;
}

.dark .sticky-thead
{
    --tw-bg-opacity: 1;
    background-color: rgba(41,49,69,var(--tw-bg-opacity));
}

.intro-y.overflow-auto.mt-8 
{
    margin-top: 1rem;
}

select 
{
    min-width: 150px;
}

.sticky-thead tr
{
    height: 30px;
}

/*Utilisé pour le format FIELD_QUESTION + FORMAT_BOOLEAN_2*/
.switch-field {
    display: flex;
    margin-bottom: 36px;
    overflow: hidden;
}

.switch-field input {
    position: absolute !important;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    width: 1px;
    border: 0;
    overflow: hidden;
}

.switch-field label {
    background-color: #e4e4e4;
    color: rgba(0, 0, 0, 0.6);
    font-size: 14px;
    line-height: 1;
    text-align: center;
    padding: 8px 16px;
    margin-right: -1px;
    border: 1px solid #786058;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.1s ease-in-out;
}

.switch-field label:hover {
    cursor: pointer;
}

.switch-field input:checked + label {
    background-color: #7c8e54;
    box-shadow: none;
    color: white;
}

.switch-field label:first-of-type {
    border-radius: 4px 0 0 4px;
}

.switch-field label:last-of-type {
    border-radius: 0 4px 4px 0;
}

.list-container .table tbody tr td span
{
    margin: 0px 10px 0px 5px;
}

.input-toggle input {
    /*appearance: none;*/
    position: absolute !important;
    z-index: 1;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0; }

.input-toggle input:checked ~ .input-toggle-handle {
    box-shadow: inset 0 1px rgba(0, 0, 0, 0.15), inset 0 0 0 1px #31a2a8;
}

input:checked ~ .input-toggle-handle:before {
    left: calc(50% + 0px);
    box-shadow:
            inset 0 -1px rgba(0,0,0, .2),
            inset 0 0 0 1px #31a2a8,
            0 1px 2px rgba(0,0,0, .1),
            0 6px 12px rgba(0,0,0, .1); }

.input-toggle-handle {
    display: block;
    position: relative;
    width: 35px;
    height: 20px;
    background-image: linear-gradient(#273fa7, #374fb7);
    border-radius: 10em;
    transition: .4s ease;
    box-shadow: inset 0 1px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(0, 0, 0, 0.15), inset 0 1px 2px rgba(0, 0, 0, 0.15), inset 44px 44px #fff;
}
.input-toggle-disabled .input-toggle-handle
{
    box-shadow: inset 0 1px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(0, 0, 0, 0.15), inset 0 1px 2px rgba(0, 0, 0, 0.15), inset 44px 44px #ddd;
}

.input-toggle-disabled .input-toggle-handle:before {
    background: #ccc !important;
}

.input-toggle-handle:before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 2px;
    left: 3px;
    width: 16px;
    height: 16px;
    transition: .4s ease;
    background: #fff;
    border-radius: 10em;
    box-shadow:
            inset 0 -1px rgba(0,0,0, .2),
            inset 0 0 0 1px rgba(0,0,0, .15),
            0 1px 2px rgba(0,0,0, .1),
            0 6px 12px rgba(0,0,0, .1);
}

@media (max-width: 639px) {

    .btn-primary
    {
        width: calc( 50% - 10px );
        margin-top: 0.75rem;
        font-size: 12px;
    }

    .inverted_field {
        display: flex;
        gap: 16px;
    }

    .buttons_bar .text-right, .top-bar .dropdown
    {
        width: 100%;
    }
}

@media (max-width: 400px) {

    .btn-primary
    {
        width:100%;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .header-wrap .account-item > .content {
        display: none;
    }

    .input-toggle-handle {
        margin-top: -8px;
        margin-right: 4px;
        width: 44px;
        height: 24px;
    }

    .input-toggle-handle:before {
        top: -4px;
        width: 16px;
        height: 16px;
        left: 5px;
    }

    input:checked ~ .input-toggle-handle:before {
        left: calc(50% + 0px);
    }
}

@media (max-width: 992px) {
    .top-bar .btn {
        font-size: 0; /* Masque le texte du bouton */
        min-width: 50px;
    }

    .top-bar .btn i {
        font-size: 16px; /* Maintient la taille de l'icône */
    }

    #current_user_name
    {
        display:none;
    }

    .inverted_field .ml-3
    {
        margin-left: 0;
        min-width: 37px;
    }

    .inverted_field label
    {
        font-size: 9px !important;
        margin-left: 0 !important;
    }

    .inverted_field .mandatory
    {
        font-size: 7px !important;
    }
}

.form_toggle
{
    margin-right: 45px;
    border-right: 2px solid #bbb;
    padding-right: 35px;
    vertical-align: bottom;
    margin-top: 6px;
}

.form_toggle .input-toggle-handle
{
    height: 34px;
    margin-top: 14px;
    width: 64px;
}

.form_toggle .input-toggle-handle:before
{
    width: 28px;
    height: 28px;
    top: 3px;
}

.form_toggle_title
{
    vertical-align: middle;
    margin-top: -22px;
    display: inline-block;
    padding-right: 35px;
}

.form_toggle .label-toggle
{
    display: inline-block;
}

.form_toggle input:checked ~ .input-toggle-handle:before
{
    left: calc(50% - 0px);
}

.nav.nav-pills .nav-item .nav-link.active {
    --tw-bg-opacity: 1;
    --tw-text-opacity: 1;
    background-color: rgb(var(--color-primary)/var(--tw-bg-opacity));
    color: rgb(255 255 255/var(--tw-text-opacity));
    font-weight: 500;
}
.nav.nav-pills .nav-item .nav-link {
    border-radius: 0.375rem;
    border-width: 0;
}
.nav-link.active {
    --tw-text-opacity: 1;
    color: rgb(var(--color-slate-800)/var(--tw-text-opacity));
}

html {
    --color-primary: 39 63 167;
    --color-secondary: 226 232 240;
    --color-success: 13 148 136;
    --color-info: 6 182 212;
    --color-warning: 245 158 11;
    --color-pending: 217 119 6;
    --color-danger: 185 28 28;
    --color-light: 241 245 249;
    --color-dark: 30 41 59;
    --color-slate-50: 248 250 252;
    --color-slate-100: 241 245 249;
    --color-slate-200: 226 232 240;
    --color-slate-300: 203 213 225;
    --color-slate-400: 148 163 184;
    --color-slate-500: 100 116 139;
    --color-slate-600: 71 85 105;
    --color-slate-700: 51 65 85;
    --color-slate-800: 30 41 59;
    --color-slate-900: 15 23 42;
}

.border-danger {
    --tw-border-opacity: 1;
    border-color: rgb(var(--color-danger) / var(--tw-border-opacity));
}

button:disabled
{
    background: lightgrey;
    border: none;
    color: gray;
}


*>.-intro-x:nth-child(11), *>.intro-x:nth-child(11),
*>.-intro-x:nth-child(12), *>.intro-x:nth-child(12),
*>.-intro-x:nth-child(13), *>.intro-x:nth-child(13),
*>.-intro-x:nth-child(14), *>.intro-x:nth-child(14),
*>.-intro-x:nth-child(15), *>.intro-x:nth-child(15),
*>.-intro-x:nth-child(16), *>.intro-x:nth-child(16),
*>.-intro-x:nth-child(17), *>.intro-x:nth-child(17),
*>.-intro-x:nth-child(18), *>.intro-x:nth-child(18),
*>.-intro-x:nth-child(19), *>.intro-x:nth-child(19),
*>.-intro-x:nth-child(20), *>.intro-x:nth-child(20),
*>.-intro-x:nth-child(21), *>.intro-x:nth-child(21),
*>.-intro-x:nth-child(22), *>.intro-x:nth-child(22),
*>.-intro-x:nth-child(23), *>.intro-x:nth-child(23),
*>.-intro-x:nth-child(24), *>.intro-x:nth-child(24),
*>.-intro-x:nth-child(25), *>.intro-x:nth-child(25),
*>.-intro-x:nth-child(26), *>.intro-x:nth-child(26),
*>.-intro-x:nth-child(27), *>.intro-x:nth-child(27),
*>.-intro-x:nth-child(28), *>.intro-x:nth-child(28),
*>.-intro-x:nth-child(29), *>.intro-x:nth-child(29),
*>.-intro-x:nth-child(30), *>.intro-x:nth-child(30),
*>.-intro-x:nth-child(31), *>.intro-x:nth-child(31),
*>.-intro-x:nth-child(32), *>.intro-x:nth-child(32),
*>.-intro-x:nth-child(33), *>.intro-x:nth-child(33),
*>.-intro-x:nth-child(34), *>.intro-x:nth-child(34),
*>.-intro-x:nth-child(35), *>.intro-x:nth-child(35),
*>.-intro-x:nth-child(36), *>.intro-x:nth-child(36),
*>.-intro-x:nth-child(37), *>.intro-x:nth-child(37),
*>.-intro-x:nth-child(38), *>.intro-x:nth-child(38),
*>.-intro-x:nth-child(39), *>.intro-x:nth-child(39),
*>.-intro-x:nth-child(40), *>.intro-x:nth-child(40),
*>.-intro-x:nth-child(41), *>.intro-x:nth-child(41),
*>.-intro-x:nth-child(42), *>.intro-x:nth-child(42),
*>.-intro-x:nth-child(43), *>.intro-x:nth-child(43),
*>.-intro-x:nth-child(44), *>.intro-x:nth-child(44),
*>.-intro-x:nth-child(45), *>.intro-x:nth-child(45),
*>.-intro-x:nth-child(46), *>.intro-x:nth-child(46),
*>.-intro-x:nth-child(47), *>.intro-x:nth-child(47),
*>.-intro-x:nth-child(48), *>.intro-x:nth-child(48),
*>.-intro-x:nth-child(49), *>.intro-x:nth-child(49),
*>.-intro-x:nth-child(50), *>.intro-x:nth-child(50)
{
    animation-delay: 0s;
}

.table td, .table th
{
   padding: 0.5rem !important;
}

.table {
    border-spacing: 0px !important;
}

.table.table-bordered th, .table.table-bordered td {
    border-left-width: 1px;
    border-right-width: 1px;
    border-top-width: 1px;
}

.table thead.table-dark {
    --tw-bg-opacity: 1;
    background-color: rgb(var(--color-dark) / var(--tw-bg-opacity));
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity));
}

.rapid_actions .p-2 a:hover
{
    background-color: rgba(220,220,220,1) !important;
}

.modal .modal-dialog .modal-content [data-dismiss="modal"] {
    position: absolute;
    right: 0;
    top: 0;
    margin-top: 0.75rem;
    margin-right: 0.75rem;

}

.modal .modal-content
{
    overflow-y: auto;
    max-height: 85vh;
}

.modal
{
    z-index: 1041;
}

.modal-body
{
    overflow-y: scroll;
    max-height: 80vh;
}

.modal-backdrop
{
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    background-color: #000;
    opacity: 0.5;
}

.modal.show
{
    margin:0;
}

.popover
{
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1060;
    display: block;
    max-width: 276px;
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    text-align: start;
    text-decoration: none;
    text-shadow: none;
    text-transform: none;
    letter-spacing: normal;
    word-break: normal;
    word-spacing: normal;
    white-space: normal;
    line-break: auto;
    font-size: .875rem;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 0.3rem;
}

@media (min-width: 1024px) {
    .lg\:col-span-10 {
        grid-column: span 10/span 10;
    }
}

.mandatory
{
    background: rgb(232,226,240);
    display: inline-block;
}

/*.chosen-choices
{
    height: 40px !important;
    line-height: 40px;
}*/

.chosen-container-multi .chosen-choices
{
    min-height: 38px;
}

.chosen-container-multi .chosen-choices li.search-choice
{
    height: 32px;
    line-height: 26px !important;
}

.chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
    top: 10px !important;
}

.toastify
{
    background: none !important;
}

.toastify.on {
    padding: 0;
    border-radius: 0.5rem;
}

@keyframes sidenavtransition {
    0% {
        width: 50px;
        margin-left: -34px;
    }
    25% {
        width: 100px;
    }
    50% {
        width: 150px;
    }
    75% {
        width: 200px;
    }
    100% {
        width: 230px;
        margin-left: 0px;
    }
}

.side-nav
{
    transition: margin,width 0.25s ease-in-out;
    /*animation-name: sidenavtransition;
    animation-duration: 0.25s;
    animation-timing-function: ease-in-out;*/
}
.side-nav .side-menu__title
{
    transition: opacity 0.25s ease-in-out;
}

@media (min-width: 1280px) {
    .side-nav.minimized {
        width: 50px;
        margin-left: -34px;
    }

    .side-nav.minimized .side-menu__title {
        opacity: 0;
    }

    .dropdown-menu.show
    {
        min-width: 230px;
    }
}
@media (max-width: 1279px) {
    .side-nav {
        width: 50px !important;
    }
}

.side-nav>ul ul.side-menu__sub-open
{
    margin-right: -20px;
    margin-top: -4px;
    border-left: 1px solid #8888ff;
    box-shadow: inset -1px -1px 5px #000088;
}

.bg-primary
{
    background-color: rgb(var(--color-primary)/var(--tw-bg-opacity));
    color:white;
}


.dropdown-menu.show > .dropdown-content {
    margin-top: 0.25rem;
}
.dropdown-menu .dropdown-content {
    transition: margin-top 0.2s;
    box-shadow: 0px 3px 10px #00000017;
    position: relative;
    margin-top: 1.25rem;
    width: 100%;
    border-radius: 0.375rem;
    padding: 0.5rem;
}
.dropdown-content {
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity));
}

.dropdown-menu .dropdown-content .dropdown-item {
    display: flex;
    align-items: center;
    border-radius: 0.375rem;
    padding: 0.5rem;
    transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;
    transition-duration: 300ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.dropdown-item:hover {
    background-color: rgb(var(--color-slate-200) / 0.6);
}

.chosen-container-single .chosen-single
{
    line-height: 37px !important;
    height: 38px !important;
}

.popover-body
{
    padding: 10px;
}

.popover-header
{
    padding: 5px 10px;
    background: #f7f7f7;
    border-radius: 5px 5px 0px 0px;
    font-weight: bold;
    text-align: center;
}

@media print {
    button, nav {
        display: none !important;
    }

    html
    {
        background:none;
        font-size: 11px !important;
    }

    .top-bar
    {
        display: none !important;
    }
}

.side-menu__icon .fa
{
    width:20px;
    text-align: center;
}

.btn
{
    border-radius: 2rem;
}

.table th .dropdown {
    position: relative;
    display: inline-block;
}

.table th .dropdown button {
    color: rgba(113, 128, 150, var(--tw-text-opacity));
}

.table th .dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    padding: 10px;
    right: 0;
}

.table th .dropdown-content input {
    margin-right: 10px;
}

.table th .dropdown-content label {
    display: block;
    font-size: 10px;
    text-align: left;
}

.table th .dropdown-content button {
    margin-top: 10px;
}

.table th .dropdown:hover .dropdown-content {
    display: block;
    max-height: 200px;
    overflow-y: scroll;
}

.btn-xxs
{
    font-size:10px;
    padding: 0px 12px;
}

.guide-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Couleur semi-transparente */
    z-index: 900; /* Couche sous les bulles d'explication */
}

/* Surbrillance de l'élément mis en évidence */
.guide-highlighted {
    position: relative;
    z-index: 1001; /* L'élément mis en évidence doit passer au-dessus de l'overlay */
    box-shadow: 0 0 15px 10px rgba(255, 255, 0, 0.9); /* Effet de surbrillance */
    background-color: white; /* Optionnel, pour un contraste plus marqué */
    color: black;
}

/* Style pour les bulles d'explication */
.tooltip-guide {
    position: absolute;
    background-color: #f9f9f9;
    color: #333;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    z-index: 1002; /* Juste au-dessus de l'élément surligné */
    width: 300px;
    height: 150px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.tooltip-guide:after {
    content: '';
    position: absolute;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #f9f9f9 transparent;
    top: -10px;
    left: 20px;
}

.tooltip-left:after
{
    top: 10px;
    left: 298px;
    transform: rotate(90deg);
}
.tooltip-right:after
{
    top: 3px;
    left: -10px;
    transform: rotate(-90deg);
}
.tooltip-top:after
{
    top: 150px;
    left: 20px;
    transform: rotate(180deg);
}

/* Bouton "Suivant" */
.tooltip-next {
    display: block;
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 3px;
}

.toastify.on {
    max-width: 92%;
}

.alert {
    margin-bottom: 1rem;
}

.excel
{
    margin-top: 30px;
}

.excel td,.excel th
{
    border: 1px solid gray;
    margin: 0;
    padding: 0 !important;
    background: #efefef;
}

.excel th
{
    color:black;
    text-align: center;
    font-weight: bold;
}

.excel .selected,.excel .selected {
    border: 2px solid #0078D7; /* Bleu comme dans Excel */
    box-shadow: 0 0 5px rgba(0, 120, 215, 0.5);
}

.excel td span
{
    padding: 0 5px !important;
    cursor: pointer;
    caret: transparent;
}

.excel th
{
    padding: 0 5px !important;
}

.excel td input,.excel th input
{
    border: none;
    margin: 0;
    box-shadow: none;
    padding: 0 5px !important;
    border-radius: 0;
}

.excel .highlight, .excel .highlight input {
    background-color: rgba(0, 120, 215, 0.1);
    color:black;
    font-weight: bold;
}

.tokenfield
{
    padding-bottom: 9px;
    display: block;
    min-height: fit-content;
}
.tokenfield .token-label
{
    padding: 2px 8px;
}
.tokenfield .close
{
    margin-right: 5px;
    margin-left: .5rem;
    --tw-border-opacity: 1;
    border-color: rgba(203, 213, 224, var(--tw-border-opacity));
    padding-left: .5rem;
    color: inherit;
    text-decoration: none;
    vertical-align: middle;
    border-left: 1px solid #d0d0d0;
    box-sizing: border-box;
}
.tokenfield .token
{
    width: auto;
    display: inline-block;
    margin-bottom: 5px;
    margin-right: 5px;
    height: 27px;
    vertical-align: middle;
    line-height: 27px;
    margin-top: .125rem;
    margin-bottom: .125rem;
    margin-right: .25rem;
    border-radius: .25rem;
    --tw-bg-opacity: 1;
    background-color: rgba(226, 232, 240, var(--tw-bg-opacity));
    padding: 0 .5rem;
}
.tokenfield>input
{
    border: none;
    width: auto !important;
    display: inline-block;
    height: 27px;
    padding-left: 5px;
}
.tokenfield>input:hover, .tokenfield>input:focus-visible
{
    border: none !important;
    outline: none !important;
}

.table-adresses {
    border-collapse: collapse;
    width: 100%;
}
.table-adresses th, .table-adresses td {
    border: 1px solid #ddd;
    padding: 8px;
    vertical-align: middle;
}

/* --- ADRESSE --- */
.adresse-cell {
    position: relative;
}

.adresse-display {
    cursor: pointer;
    color: #007bff;
    text-decoration: underline;
    display: inline-block;
}

/* --- TOOLTIP --- */
.adresse-tooltip {
    position: fixed; /* clé : pas absolute */
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    padding: 8px;
    z-index: 999999 !important; /* priorité maximale */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    transform: translateY(4px);
    min-width: 300px;
}

/* Petite flèche du tooltip */
.adresse-tooltip::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 20px;
    border-width: 6px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1));
}

/* --- Quand actif --- */
.adresse-tooltip.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-12px);
}

/* --- Formulaire interne --- */
.adresse-form {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.adresse-form input,
.adresse-form select {
    padding: 4px;
    font-size: 0.85rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.adresse-form .num { width: 40px; }
.adresse-form .rue { flex: 1; min-width: 120px; }
.adresse-form .cp { width: 60px; }
.adresse-form .ville { flex: 1; min-width: 100px; }
.adresse-form .pays { width: 60px; }

.adresse-form .actions {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    width: 100%;
    margin-top: 6px;
}

.adresse-form .actions button {
    padding: 4px 8px;
    font-size: 0.8rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.adresse-form .actions button:first-child {
    background-color: #007bff;
    color: white;
}
.adresse-form .actions button:last-child {
    background-color: #ccc;
}

.search-result
{
    overflow-y: auto;
    max-height: 70vh;
    box-shadow: 0px 0px 50px gray;
    border-radius: 8px;
}