.remove-worktooth {
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

.choice-multiple-checkbox .form-check {
    margin-right: 1.5rem;
}

.semi-small {
    font-size: 0.8em;
}

#table-list .card {
    min-height: 90px;
}

.flex-even {
    flex: 1;
}

#office_choice select {
    color: #c8c9ce !important;
    background: #272c33;
}

.breadcrumbs {
    border: 1px solid rgba(0, 0, 0, .125);
}

.card-body {
    padding: 1.15rem;
}

.icon-lg {
    font-size: 5rem;
}

.icon-l {
    font-size: 3rem;
}

.icon-sm {
    font-size: 2rem;
}

.bg-blue {
    background-color: #303f9f;
}

.form-check-input {
    width: 18px;
    height: 18px;
}

.table .no-border td{
    border:none !important;
    white-space: normal;
}
.table .border td{
    border: 1px solid #dee2e6;
}
.table.mini-padding td{
    padding-bottom: 0;
}
input.chk-btn {
    display: none;
}
input.chk-btn + label {
    border: 1px solid grey;
    background: white;
    padding: 5px 8px;
    cursor: pointer;
    border-radius: 5px;
}
input.chk-btn:not(:checked) + label:hover {
    box-shadow: 0px 1px 3px;
}
input.chk-btn + label:active,
input.chk-btn:checked + label {
    box-shadow: 0px 0px 3px inset;
    background: #eee;
}
.tooth .form-check {
    padding: 0;
}
.max-width-auto{
    max-width:initial;
}
.mini-txt{
    width:60px !important;
    height: 30px;
}

.teeth{
    border: 1px solid grey;
    padding: 10px;
    width: 45px;
    text-align: center;
    border-radius: 15% ;
}
.no-padding {
    padding: 0 !important;
}
form .table tbody tr:last-child td {
    border-width: 1px !important;
}
.modal-body .bridge{
    width: 20px;
    vertical-align: middle;
}
.modal-body td{
    padding: 0.5rem 0 !important;
    margin: 0 !important;
    text-align: center;
    border: none !important;
}

.modal-body .bridge input{
    width: 30px;
    margin: 0 !important;
    padding:0 !important;
}
.modal-body .form-check:not(:has(input[type="radio"])) {
    margin: 0;
    padding:0;
}

ol.stepper {
    --default-b: lightgrey;
    --default-c: black;
    --active-b: purple;
    --active-c: white;
    --circle: 3.5em; /* size of circle */
    --b: 5px; /* line thickness */

    display: flex;
    list-style: none;
    justify-content: space-between;
    background:
            linear-gradient(var(--default-b) 0 0) no-repeat
            50% calc((var(--circle) - var(--b))/2)/100% var(--b);
    counter-reset: step;
    margin: 10px 45px 37px 45px;
    padding: 0;
    font-size: 14px;
    font-weight: bold;
    counter-reset: step;
}
ol.stepper li {
    display: grid;
    place-items: center;
    gap: 5px;
    font-family: sans-serif;
    position: relative;
    text-align: center;
}
ol.stepper li::before {
    content: counter(step) " ";
    counter-increment: step;
    display: grid;
    place-content: center;
    aspect-ratio: 1;
    height: var(--circle);
    border: 5px solid #fff;
    box-sizing: border-box;
    background: var(--active-b);
    color: var(--active-c);
    border-radius: 50%;
    font-family: monospace;
    z-index: 1;
}
ol.stepper li.active ~ li::before{
    background: var(--default-b);
    color: var(--default-c);
}
ol.stepper li.active::after {
    content: "";
    position: absolute;
    height: var(--b);
    right: 100%;
    top: calc((var(--circle) - var(--b))/2);
    width: 100vw;
    background: var(--active-b);
}

.status-name{
    position: absolute;
    width: 200px;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    white-space: normal;
}
.visible {
    visibility: visible;
}
.invisible {
    visibility: hidden;
}


/****  CARD ******/
.card-equal-height {
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 85%;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.5s;
}
.card-equal-height-large {
    min-height: 140px;
}
.card-equal-height .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 80%;
}

.center-icon {
    font-size: 3rem; /* Default size */
    margin-top: 1rem; /* Adjust as needed */
    text-align: center;
}
.card-link {
    text-decoration: none;
    color: inherit;
}
.card-link .card-equal-height:hover .center-icon {
    animation: rotateIcon 2s infinite linear;
}

.card-link .card-equal-height:hover {
    border-color: #ffca2c; /* Change border color on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow effect on hover */
}

.card-link .card-equal-height:hover .numbers p {
    animation: textScale 0.3s forwards; /* Apply scale animation */
}

.size-18 textarea{
    font-size: 18px;
}
.custom-btn{
    padding: 5px 15px;
    margin: 5px;
}
.modal-body{
    overflow-x: scroll;
}


.select2-container {
    margin-top: 10px;
}
/* On affiche le select natif en attendant */
.select2-autocomplete {
    opacity: 1;
}
.select2-hidden-accessible {
    position: absolute !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    width: 1px !important;
}

.select2-container--default .select2-selection--single {
    background-color: #2c2c2c;   /* gris foncé */
    border: 1px solid #444;
    color: #fff;
    border-radius: 8px;
    padding: 20px 12px;
    display: flex;
    align-items: center;         /* centre verticalement */
}
/* Texte de l’option sélectionnée */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #fff;
}

/* Flèche */
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #fff transparent transparent transparent;
}

/* Placeholder en gris clair */
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #aaa;
}

.select2-container--default .select2-results > .select2-results__options {
    background: #2c2c2c;   /* même fond que le champ */
    color: #fff;           /* texte blanc */
}

/* Éléments de la liste */
.select2-container--default .select2-results__option {
    color: #fff;
    padding: 6px 12px;
}

/* Quand on survole / sélectionne */
.select2-container--default .select2-results__option--highlighted {
    background-color: #4dabf7 !important; /* bleu clair plein */
    color: #fff !important;
}

/* Option sélectionnée dans la liste (dropdown) */
.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: #555;   /* gris plus clair */
    color: #4dabf7;           /* bleu clair */
    font-weight: bold;
}

.validation-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
}

.validation-message .icon {
    font-size: 18px;
}

.validation-message.d-none {
    display: none;
}

.tooth-disabled {
    opacity: 0.4;
    pointer-events: none;
    position: relative;
}

.tooth-disabled::after {
    content: '🔗';
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 12px;
}

.impersonation-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 24px;
    background: #c62828;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.impersonation-banner__icon {
    font-size: 22px;
    line-height: 1;
}

.impersonation-banner__text {
    line-height: 1.4;
}

.impersonation-banner__link {
    display: inline-block;
    padding: 8px 14px;
    border: 2px solid #fff;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.impersonation-banner__link:hover,
.impersonation-banner__link:focus {
    background: #fff;
    color: #c62828;
    text-decoration: none;
}

@keyframes rotateIcon {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
/* Text Animation */
@keyframes textScale {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

/*****  TOAST FLASH *****/
.toast-flash-container {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding: 0 24px;
    margin-top: 12px;
    margin-bottom: 16px;
    position: relative;
    z-index: 10;
}

.toast-flash {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 340px;
    max-width: 100%;
    background: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border-left: 5px solid #8392ab;
    animation: toastSlideIn .25s ease-out;
}

.toast-flash-success {
    border-left-color: #2dce89;
}

.toast-flash-danger {
    border-left-color: #f5365c;
}

.toast-flash-warning {
    border-left-color: #fb6340;
}

.toast-flash-info {
    border-left-color: #11cdef;
}

.toast-flash-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-flash-success .toast-flash-icon {
    background: rgba(45, 206, 137, 0.12);
    color: #2dce89;
}

.toast-flash-danger .toast-flash-icon {
    background: rgba(245, 54, 92, 0.12);
    color: #f5365c;
}

.toast-flash-warning .toast-flash-icon {
    background: rgba(251, 99, 64, 0.12);
    color: #fb6340;
}

.toast-flash-info .toast-flash-icon {
    background: rgba(17, 205, 239, 0.12);
    color: #11cdef;
}

.toast-flash-content {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
    color: #344767;
}

.toast-flash-close {
    border: 0;
    background: transparent;
    color: #8392ab;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
/**************/

@media (min-width: 1200px){
    .modal-xl {
        --bs-modal-width: 1125px !important;
    }
    .center-icon {
        font-size: 2.5rem;
    }
}
@media screen and (max-width: 576px) {
    aside.left-panel {
        padding: 0 7px;
    }

    .right-panel .breadcrumbs {
        padding: 10px;
    }
    .center-icon {
        font-size: 1.5rem;
    }
}