/* Variables */
:root {
    --principal-color: #0d6efd;
    --sidebar-link-color: #053382;
    --sidebar-icon-color: #0d6efd;
}

.nav {
    --bs-nav-link-font-size: 17px;
    --bs-link-color: var(--sidebar-link-color);
}

.accordion-item {
    --bs-accordion-bg: white;
    --bs-accordion-color: #212529;
}

.navbar-brand {
    --bs-navbar-brand-color: #212529;
}

.table {
    --bs-table-color: #212529;
}

.bg-body-light-blue {
    background-color: #F7FAFF;
}

/* Negatif margin */
.m-n1 {
    margin: -0.25rem !important;
}
.m-n2 {
    margin: -0.5rem !important;
}
.m-n3 {
    margin: -1rem !important;
}
.m-n4 {
    margin: -1.5rem !important;
}
.m-n5 {
    margin: -3rem !important;
}

.mt-n1 {
    margin-top: -0.25rem !important;
}
.mt-n2 {
    margin-top: -0.5rem !important;
}
.mt-n3 {
    margin-top: -1rem !important;
}
.mt-n4 {
    margin-top: -1.5rem !important;
}
.mt-n5 {
    margin-top: -3rem !important;
}

.mr-n1 {
    margin-right: -0.25rem !important;
}
.mr-n2 {
    margin-right: -0.5rem !important;
}
.mr-n3 {
    margin-right: -1rem !important;
}
.mr-n4 {
    margin-right: -1.5rem !important;
}
.mr-n5 {
    margin-right: -3rem !important;
}

.mb-n1 {
    margin-bottom: -0.25rem !important;
}
.mb-n2 {
    margin-bottom: -0.5rem !important;
}
.mb-n3 {
    margin-bottom: -1rem !important;
}
.mb-n4 {
    margin-bottom: -1.5rem !important;
}
.mb-n5 {
    margin-bottom: -3rem !important;
}

.ml-n1 {
    margin-left: -0.25rem !important;
}
.ml-n2 {
    margin-left: -0.5rem !important;
}
.ml-n3 {
    margin-left: -1rem !important;
}
.ml-n4 {
    margin-left: -1.5rem !important;
}
.ml-n5 {
    margin-left: -3rem !important;
}
/* End Negatif margin */

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 250px;
    border-right: 1px solid #eee;
    box-shadow: 0 0 10px #ececec;
    transition: width 0.3s ease;
    background-color: white;
    z-index: 2;
}

.sidebar-close {
    display: none;
    position: absolute;
    right: 10px;
}

.avatar img {
    aspect-ratio: 1 / 1;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-profil img {
    aspect-ratio: 1 / 1;
    width: 250px;
    border-radius: 50%;
    object-fit: cover;
}

.sidebar.collapsed {
    width: 0px;
    left: -80px;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    padding: 10px;
}

.sidebar ul li:hover,
.sidebar ul li.active {
    box-shadow: 0 0 10px #ccc;
    background-color: #F7FAFF;
}

.sidebar ul li a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.sidebar ul li a i {
    color: var(--sidebar-icon-color);
}

.sidebar ul li a span {
    display: inline;
}

.sidebar.collapsed ul li a span {
    display: none;
}

/* Content Styles */
.content {
    margin-left: 250px;
    padding: 20px;
    transition: margin-left 0.3s ease;
}

.content.collapsed {
    margin-left: 0;
}

.custom-boxshadow {
    box-shadow: -8px 12px 18px 0 rgba(25, 42, 70, 0.13);
    margin-bottom: 2rem;
}

/* Logo Styles */
.logoNormal {
    max-height: 43px;
    object-fit: contain;
}
  
/* Add reference form */
.add_reference_space_div .checkbox-wrapper,
.edit_reference_space_div .checkbox-wrapper {
    display: inline-block;
    margin-bottom: 1em;
    margin-right: 5px;
    box-sizing: border-box;
    align-items: center;
    cursor: pointer;
    margin-left: 0.75rem;
}

.add_reference_space_div .dent-check input[type="checkbox"].custom-checkbox,
.edit_reference_space_div .dent-check input[type="checkbox"].custom-checkbox {
    appearance: none;
}

.add_reference_space_div .dent-check input[type="checkbox"].custom-checkbox + label,
.edit_reference_space_div .dent-check input[type="checkbox"].custom-checkbox + label {
    border: 3px solid #ccc;
    border-radius: 5px;
    padding: 5px;
    display: inline-block;
    margin: 0.2em;
    cursor: pointer;
}

.add_reference_space_div .dent-check input[type="checkbox"].custom-checkbox:checked + label,
.edit_reference_space_div .dent-check input[type="checkbox"].custom-checkbox:checked + label {
    background: var(--principal-color);
    color: white;
}

.add_reference_space_div .dent-check .checkbox-wrapper input[type="checkbox"].custom-checkbox + label:before,
.add_reference_space_div .dent-check .checkbox-wrapper input[type="checkbox"].custom-checkbox + label:after,
.edit_reference_space_div .dent-check .checkbox-wrapper input[type="checkbox"].custom-checkbox + label:before,
.edit_reference_space_div .dent-check .checkbox-wrapper input[type="checkbox"].custom-checkbox + label:after {
    display: none;
}

.form-check-input:focus,
.form-control:focus {
    box-shadow: none;
}

/* DataTable */
table.dataTable th.dt-type-numeric, 
table.dataTable th.dt-type-date, 
table.dataTable td.dt-type-numeric, 
table.dataTable td.dt-type-date {
    text-align: left !important;
}

.page-link:focus {
    box-shadow: none;
}

.disabled-link {
    cursor: no-drop; 
    color: gray;
}

/* Loader */
.loader-container,
.loader-container-login {
    display: flex;
    justify-content: center; 
    align-items: center; 
    background-color: #ffffff61; 
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 9;
}

.loader-container-login {
    display: none;
}

.loader {
    width: 50px;
    aspect-ratio: 1;
    display: grid;
    border: 4px solid #0000;
    border-radius: 50%;
    border-color: #ccc #0000;
    animation: l16 1s infinite linear;
}

.loader::before,
.loader::after {    
    content: "";
    grid-area: 1/1;
    margin: 2px;
    border: inherit;
    border-radius: 50%;
}

.loader::before {
    border-color: var(--principal-color) #0000;
    animation: inherit; 
    animation-duration: .5s;
    animation-direction: reverse;
}

.loader::after {
    margin: 8px;
}

.alert {
    display: none;
}

@keyframes l16 { 
    100%{transform: rotate(1turn)}
}

datalist#clinicname {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 0 0 5px 5px;
    border-top: none;
    font-family: sans-serif;
    width: 100%;
    padding: 5px;
    max-height: 10rem;
    overflow-y: auto
}

#accountForm datalist#clinicname {
    width: 96%;
    z-index: 2;
}

datalist#clinicname option {
    background-color: white;
    padding: 4px;
    margin-bottom: 1px;
    cursor: pointer;
    color: #111;
    font-size: 14px;
}

datalist#clinicname option:hover {
    background-color: #8888884f;
}

.notification-bell {
    top: 5px !important;
    left: 80% !important;
}

.notification-msg:empty {
    display: block;
}

.notification-msg {
    top: 2px !important;
    left: 95% !important;
    height: 13px;
    font-size: 10px;
}

.dropdown-item.position-relative .notification-msg {
    left: 90% !important;
    top: 17px !important;
    height: 10px;
    font-size: 7px;
}

.table.dataTable tr {
    vertical-align: middle;
}

.table.dataTable .highlight-row td {
    font-weight: 500;
    font-style: italic;
    background-color: aliceblue;
}

.highlight-row td a {
    font-weight: 500;
}

.accordion-button:focus {
    box-shadow: none !important;
}

.iti {
    display: block !important;
}

#edit-user-error-msg {
    color: red;
}

.error-input {
    border: 1px solid #ff7c7c;
}

.referent-space-modal .hide {
    display: none;
}

.dropdown-toggle.without-after::after {
    display: none !important;
}

/* Connexion page */
.reference-space-login {
    min-height: 100vh;
}

#reference-space-login-separation {
    position: absolute;
    width: 50%;
    right: 0;
    top: 0;
    background: #ebecf9;
    height: 100%;
    z-index: 9;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
}

#reference-space-login-separation.right {
    animation: slideout .5s forwards;
    -webkit-animation: slideout .5s forwards;
}

#reference-space-login-separation.left {
    animation: slidein .5s forwards;
    -webkit-animation: slidein .5s forwards;
    left: 0;
}

.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-container .toggle-password {
    position: absolute;
    right: 10px;
    cursor: pointer;
    display: flex;
}

.password-container .toggle-password i {
    font-size: 16px;
}

.show-eye-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1NzYgNTEyIj48IS0tIUZvbnQgQXdlc29tZSBGcmVlIDYuNS4yIGJ5IEBmb250YXdlc29tZSAtIGh0dHBzOi8vZm9udGF3ZXNvbWUuY29tIExpY2Vuc2UgLSBodHRwczovL2ZvbnRhd2Vzb21lLmNvbS9saWNlbnNlL2ZyZWUgQ29weXJpZ2h0IDIwMjQgRm9udGljb25zLCBJbmMuLS0+PHBhdGggZD0iTTI4OCAzMmMtODAuOCAwLTE0NS41IDM2LjgtMTkyLjYgODAuNkM0OC42IDE1NiAxNy4zIDIwOCAyLjUgMjQzLjdjLTMuMyA3LjktMy4zIDE2LjcgMCAyNC42QzE3LjMgMzA0IDQ4LjYgMzU2IDk1LjQgMzk5LjRDMTQyLjUgNDQzLjIgMjA3LjIgNDgwIDI4OCA0ODBzMTQ1LjUtMzYuOCAxOTIuNi04MC42YzQ2LjgtNDMuNSA3OC4xLTk1LjQgOTMtMTMxLjFjMy4zLTcuOSAzLjMtMTYuNyAwLTI0LjZjLTE0LjktMzUuNy00Ni4yLTg3LjctOTMtMTMxLjFDNDMzLjUgNjguOCAzNjguOCAzMiAyODggMzJ6TTE0NCAyNTZhMTQ0IDE0NCAwIDEgMSAyODggMCAxNDQgMTQ0IDAgMSAxIC0yODggMHptMTQ0LTY0YzAgMzUuMy0yOC43IDY0LTY0IDY0Yy03LjEgMC0xMy45LTEuMi0yMC4zLTMuM2MtNS41LTEuOC0xMS45IDEuNi0xMS43IDcuNGMuMyA2LjkgMS4zIDEzLjggMy4yIDIwLjdjMTMuNyA1MS4yIDY2LjQgODEuNiAxMTcuNiA2Ny45czgxLjYtNjYuNCA2Ny45LTExNy42Yy0xMS4xLTQxLjUtNDcuOC02OS40LTg4LjYtNzEuMWMtNS44LS4yLTkuMiA2LjEtNy40IDExLjdjMi4xIDYuNCAzLjMgMTMuMiAzLjMgMjAuM3oiLz48L3N2Zz4=');
}

.show-eye-icon-slash {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NDAgNTEyIj48IS0tIUZvbnQgQXdlc29tZSBGcmVlIDYuNS4y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TQuOSAzNS43IDQ2LjIgODcuNyA5MyAxMzEuMUMxNzQuNSA0NDMuMiAyMzkuMiA0ODAgMzIwIDQ4MGM0Ny44IDAgODkuOS0xMi45IDEyNi4yLTMyLjVMMzczIDM4OS45eiIvPjwvc3ZnPg==')
}

.popupErrorContainer {
    display: none;
    font-weight: 600;
    font-size: 1rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1em !important;
    border-radius: 0.25rem;
    color: #be1b00;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.popupErrorContainer.success {
    color: green;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* Upload traitment */
.dropzone-upload-traitment {
    border: 2px dashed #dedede;
    border-radius: 5px;
    background: #f5f5f5;
}
  
.dropzone-upload-traitment i{
    font-size: 5rem;
}
  
.dropzone-upload-traitment .dz-message {
    color: rgba(0,0,0,.54);
    font-weight: 500;
    font-size: initial;
    text-transform: uppercase;
}

.dropzone .dz-preview .dz-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dropzone .dz-preview .dz-error-mark svg {
    filter: brightness(0) saturate(100%) invert(12%) sepia(99%) saturate(7084%) hue-rotate(1deg) brightness(104%) contrast(103%);
}

.dropzone .dz-preview .dz-success-mark svg {
    filter: brightness(0) saturate(100%) invert(44%) sepia(90%) saturate(1172%) hue-rotate(92deg) brightness(98%) contrast(101%);
}

.mx-content {
    max-width: 9.6rem;
}

.mx-content-fit {
    max-width: fit-content;
}

.max-height-500 {
    max-height: 700px;
}

.dropdown-login {
    position: absolute;
    right: 20px;
    top: 20px;
}

.dropzone .dz-preview .dz-error-message {
    top: 106%;
}

.custom-tooltip {
    --bs-tooltip-max-width: 550px;
}

@keyframes slideout {

    0% {
      transform: translateX(-100%);
    }
  
    20% {
      transform: translateX(-110%);
    }
    
    90% {
      transform: translateX(5%);
    }

    100% {
      transform: translateX(0);
    }

}

@keyframes slidein {

    0% {
      transform: translateX(100%);
    }
  
    20% {
      transform: translateX(110%);
    }
    
    90% {
      transform: translateX(-5%);
    }

    100% {
      transform: translateX(0);
    }

}  

/* Responsive */
@media screen and (max-width: 1200px) {

    .sidebar-close {
        display: block;
    }

}

@media screen and (max-width: 992px) {

    #reference-space-login-separation,
    #reference-space-createaccount {
        display: none !important;
    }

    #reference-space-login.show-form,
    #reference-space-createaccount.show-form {
        display: flex !important;
    }

    #reference-space-login.hide-form,
    #reference-space-createaccount.hide-form {
        display: none !important;
    }

}