:root {
    --main-bg-color: #F5F5F5;
    --gray-500: #667085;
    --gray-300: #D0D5DD;
    --black: #101828;
    --black-alpha: #1018280D;
    --black-alpha-3: #10182808;
    --black-alpha-16: #10182829;
    --white-color: #FFF;
    --main-blue-color: #337AB7;
    --main-blue-color-alpha: #337AB71A;
    --error-color: #F44336;
    --input-label-color: #344054;
    --login-btn-color: #DDE9F4;
}

body {
    background-color: var(--main-bg-color);
    font-family: Inter, sans-serif;
    font-size: 16px;
    user-select: none;
}

.text-blue {
    color: var(--main-blue-color);
}

/* Header */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 80px;
    background-color: var(--white-color);
}

nav > div {
    display: flex;
    gap: 16px;
}

nav .item {
    color: var(--gray-500) !important;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    line-height: 24px;
}

nav .item:hover {
    color: var(--black) !important;
}

nav .item.active {
    color: var(--black) !important;
}

nav img {
    width: 110px;
    display: flex;
    gap: 40px;
}

.navbar-light .navbar-toggler {
    border: none;
    outline: none;
}

/* Tooltip */
#tooltip, #version-tooltip {
    display: none;
    position: absolute;
    top: 90px;
    right: 10px;
    color: var(--gray-500);
}

.tooltip-text {
    display: flex;
    background-color: var(--white-color);
    border-radius: 8px;
    border: 1px solid var(--gray-300);
    height: 40px;
    align-items: center;
    box-shadow: 0 1px 2px 0 var(--black-alpha);
}

.tooltip-first {
    height: 40px;
    border-right: 1px solid var(--gray-300);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tooltip-text a {
    height: 40px;
    border-left: 1px solid var(--gray-300);
    padding: 10px 16px;
    display: flex;
    gap: 8px;
    text-decoration: none;
}

/* Modal */
#modal-container {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.unlimited-modal-height {
    max-height: max-content !important;
}

#modal {
    position: fixed;
    width: 400px;
    max-height: 800px;
    height: max-content;
    overflow-y: auto;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    background-color: var(--white-color);
    box-shadow: 0 8px 8px -4px var(--black-alpha-3), 0 24px 64px -4px var(--black-alpha-16);
}

#modal::-webkit-scrollbar {
    width: 8px;               /* width of the entire scrollbar */
}

#modal::-webkit-scrollbar-thumb {
    background-color: var(--gray-300);    /* color of the scroll thumb */
    border-radius: 20px;       /* roundness of the scroll thumb */
}

#modal .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

/* Top Icon */

#modal .content .icon {
    width: 40px;
    height: 40px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--main-blue-color-alpha);
    border: 4px solid var(--main-blue-color-alpha);
    outline: solid 4px var(--main-blue-color-alpha);
}

#modal .content .icon i {
    color: var(--main-blue-color);
}

/* Title */

#modal .title {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#modal .title .main-title {
    color: var(--black);
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
    text-align: center;
}

#modal .title .subtitle {
    text-align: center;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: var(--gray-500);
}

/* Form */

#modal .form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

#modal form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#modal .form-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--input-label-color);
}

#modal .form-container > span {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

#modal .form-container > div {
    position: relative;
}

#modal .form-container a {
    color: var(--gray-500);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

#modal .content input {
    border-radius: 8px;
    border: 1px solid var(--gray-300);
    padding: 10px 36px;
    display: flex;
    gap: 8px;
    box-shadow: 0 1px 2px 0 var(--black-alpha);
    color: var(--gray-500);
    width: 100%;
}

#modal .content .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
}

#modal .content select {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--gray-300);
    padding: 10px 14px;
    display: flex;
    gap: 8px;
    background-color: var(--white-color);
}

#modal .content .password-input > i,
#modal .content .confirm-input > i {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

/* Footer */
#modal .action-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    /*gap: 12px;*/
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

#modal .action-buttons .footer-btn {
    padding: 10px 18px;
    font-size: 16px;
    font-weight: normal;
    line-height: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    border-radius: 8px;
    gap: 8px;
    width: 100%;
}

#modal .action-buttons .btnSwitchPortail {
    border-radius: 8px;
    background-color: var(--white-color);
    color: var(--gray-500);
    text-decoration: none;
}

#modal .action-buttons .btnSwitchPortail:hover {
    background-color: var(--main-blue-color-alpha);
}

#modal .action-buttons #btn-login:not(.btn-module-choice),
#modal .action-buttons #submit {
    background-color: var(--main-blue-color);
    color: var(--white-color);
    border: 1px solid var(--main-blue-color);
    margin-top: 10px;
}

#modal .btn-module-choice {
    background-color: var(--main-blue-color);
    color: var(--white-color);
    border-radius: 0 !important;
    border: 1px solid var(--gray-300);
    transition: 0.3s;
    text-align: center;

    display: flex;
    align-items: center;
    justify-content: flex-start;
}


#modal .btn-module-choice.mid-sized {
    width: 50%;
}
#modal .btn-module-choice:hover,
#modal .btn-module-choice.mock_focused{
    /*background-color: #67a0d7;*/
    background-color: var(--main-blue-color-alpha);
    color: var(--main-blue-color);
}

#modal .btn-module-choice.admin-button {
    cursor: default;
    background-color: grey;
}
#modal .btn-module-choice.admin-button:hover {
    cursor: default;
    background-color: grey;
    color: white
}
#modal .btn-module-choice.admin-button.mock_focused {
    background-color: #b7b7b7;
    color: white
}

#modal .btn-module-choice-icon,
#modal .btn-module-choice-span {
    pointer-events: none;
}

#modal .action-buttons #btn-login:disabled, #modal .action-buttons #submit:disabled {
    background-color: var(--gray-300);
    color: var(--gray-500);
    border: 1px solid var(--gray-300);
    cursor: not-allowed;
}
#modal .actions-buttons-label {
    margin-bottom: -10px;
}

#modal .form-signin-heading {
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: var(--error-color);
    text-align: center;
}

#bordure {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 50%;
    right: 0;
    z-index: -1;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url("/static/images/bom.jpg");
    box-shadow: inset 10px 30px 20px rgba(0,0,0,0.2)
}

.agentBordure {
    background-image: url("/static/images/bom_mtblanc.png") !important;
}

@media screen and (max-width: 992px) {
    nav .navbar-nav {
        background-color: var(--white-color) !important;
        border-radius: 8px;
        border: 1px solid var(--gray-300);
        padding: 0 16px;
        box-shadow: 0 1px 2px 0 var(--black-alpha);
    }

    .navbar-collapse {
        position: absolute;
        top: 60px;
        right: 10px;
    }

    #modal-container {
        position: unset;
    }
    #modal {
        position: unset;
        margin-top: 20px;
    }

    #bordure {
        display: none;
    }
}