body {
    font-family: sans-serif;
    font-size: 1.6vh;
    /*    width: 100vw;*/
    height: 100vh;
    margin: 0px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/*------------------------------------------------------------------------------
    Fenêtre modale
------------------------------------------------------------------------------*/
::backdrop {
    background-color: #c9caca;
    opacity: 0.50;
}

#ui-modal-dialog {
    border: 1px solid lightblue;
    width: 250px;
    height: 150px;
    position: relative;
}

#ui-modal-dialog-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ui-modal-close-btn {
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
    height: 20px;
    width: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
    font-weight: bold;
    color: #5f99d8;
    border-bottom: 1px solid #add8e6;
    border-left: 1px solid #add8e6;
    padding: 0px 0px 3px 0px;
}

.ui-modal-close-btn:hover {
    background-color: #5f99d8;
    color: white;
}

#ui-modal-message {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: calc(100% - 20px);
    box-sizing: border-box;
    font-size: 12px;
    color: #67abcf;
    padding: 2px 0px 0px 2px;
    background-color: white;
}

.ui-dialog-confirm {
    min-height: 200px;
    min-width: 400px;
}

.ui-dialog-fullpage {
    min-height: 800px;
    min-width: 600px;
    height: 90vh;
    width: 90vw;
}

/* smartphone et tablettes 16/9 portrait */
@media only screen and (min-width: 320px) and (max-width: 991px) and (orientation: portrait){

}

/* smartphone et tablettes 16/9 paysage */
@media only screen and (min-width: 320px) and (max-width: 991px) and (orientation: landscape){
    #ui-btn {
        font-size: 2vh !important;
    }

    #widget_connected_container {
        font-size: 2vh !important;
    }
}

/* others */
@media only screen and (min-width: 992px) {
    #ui-btn {
        font-size: 1.6vh;
    }

    #widget_connected_container {
        font-size: 1.6vh;
        height: 40px;
    }
}

/*
* composant s'inscrire/se connecter
*/
#widget_signup_login_container {
    z-index: 100;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    position: absolute;
    right: 0;
    background: var(--ui-container-bg-color);
}

#widget_connected_container {
    z-index: 100;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: flex-end;
    position: absolute;
    right: 0;
    padding: 0.2vw;
    background: var(--ui-container-bg-color);
    box-sizing: border-box;
}

#widget_connected_username {
    margin: 6px;
    font-weight: bold;
}

#widget_menu {
    z-index: 100;
    width: fit-content;
    position: absolute;
    background: var(--ui-container-bg-color);
    overflow: visible;
    opacity: 0.8;
}

#widget_menu_bar {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    min-height: 40px;
}

#widget_menu_bar .ui-btn {
    z-index: 100;
    width: unset;
    min-width: unset;
    font-size: 1.2vh;
    margin: 5px;
}

#widget_menu_container {
    z-index: 100;
    padding: 5px 3px 5px 3px;
}


/* DIV avec texte aligné au centre */
.ui-centered-span {
    padding: 5px 0px 0px 0px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}
.ui-state-hidden {
    display: none;
}
.ui-input-text-password {
    text-align: left;
    height: 5vh;
    min-height: 25px;
    max-height: 28px;
    width:100%;
    min-width: 100px;
    max-width: 223px;
    padding: 0.5vh;
    font-size: 1.6vh;
    border-right: 0;
    border-left: 1px solid grey;
    border-top: 1px solid grey;
    border-bottom: 1px solid grey;
    border-radius: 0.5vh 0 0 0.5vh;
    background-color: #f4f4f4;
    box-sizing: border-box;
}

.ui-icon-btn-password  {
    cursor: pointer;
    border-style: none;
    background-color: var(--ui-btn-bg-color);
    border: 1px solid grey;
    border-radius: 0 0.5vh 0.5vh 0;
    padding: 2px;
    width: fit-content;
    min-width: 22px;
    max-width: 28px;
    min-height: 25px;
    max-height: 28px
}

.ui-link-forgot-password {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
    justify-content: center;
}

.ui-link-forgot-password a {
    font-size: 1.2vh;
}

.ui-password-mask {
    -webkit-text-security: disc;
    -moz-webkit-text-security: disc;
    -moz-text-security: disc;
}

.ui-icon-btn  {
    cursor: pointer;
    border-style: none;
    background-color: var(--ui-btn-bg-color);
    border: 1px solid grey;
    border-radius: 0.5vh;
}

.ui-btn {
    cursor: pointer;
    width: 14vw;
    min-width: fit-content;
    max-width: 5vw;
    border-style: none;
    padding: 5px;
    margin: 2px;
    font-size: 1.6vh;
    font-weight:bold;
    background-color: var(--ui-btn-bg-color);
}

.ui-btn:hover, .ui-icon-btn:hover, .ui-btn-char:hover {
    filter: brightness(85%);
}

.ui-btn-char {
    cursor: pointer;
    width: 14vw;
    min-width: fit-content;
    max-width: 20px;
    border-style: none;
    padding: 1px;
    margin: 2px;
    font-size: 1.6vh;
    font-weight:bold;
    background-color: var(--ui-btn-bg-color);
}

.ui-input-text {
    text-align: left;
    height: 5vh;
    min-height: 25px;
    max-height: 28px;
    width:100%;
    min-width: 127px;
    max-width: 250px;
    padding: 0.5vh;
    font-size: 1.6vh;
    border: 1px solid grey;
    border-radius: 0.5vh;
    background-color: #f4f4f4;
    box-sizing: border-box;
}

.ui-list-menu {
    text-decoration: none;
    list-style: none;
    display: flex;
    flex-direction: column;
    align-content: flex-start !important;
    flex-wrap: nowrap;
    margin-block: unset;
    margin-inline: unset;
    padding-inline: 3px;
    unicode-bidi: unset;
}

.ui-list-menu li {
    margin:0;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
}

.ui-list-menu li .ui-btn {
    width: 100% !important;
    max-width: unset;
    font-weight: bold;
    text-align: left;
}

#menu {
    width: fit-content;
    position: absolute;
    background: var(--ui-container-bg-color);
    overflow: visible;
    opacity: 0.8;
}

#menu_bar {
    /*    display: flex;
        width: 100%;
        flex-direction: row;
        justify-content: space-around;*/
}

#menu_bar .ui-btn {
    width: unset;
    min-width: unset;
    font-size: 1.2vh;
}

#menu_container {
    padding: 5px 3px 5px 3px;
}

.ui-selected {
    background: var(--ui-selected-bg-color) !important;
    color: var(--ui-selected-color);
}

#content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Module login*/
#login_form {
    display: flex;
    flex-direction: column;
    position: absolute;
    background: #e7e7e7;
    width: 30vw;
    min-width: 250px;
    z-index: 5;
    padding-right: 8px;
    padding-left: 8px;
    padding-top: 5px;
    box-sizing: border-box;
}

.login-form-line {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    margin: 2px 2px 2px 2px;
}

.login-form-input-text {
    width: 15vw;
    min-width: 120px;
    min-height: 25px;
    font-size: 1.6vh;
    margin: 0.7vh 0.2vh 0 0.2vh;
    text-align: right;
}

.login-password-eye-btn {
    width: 1.6vw;
    min-width: 12px;
    max-width: 16px;
}

#login_password_input_container {
    display: contents;
    width: 100%;
    min-width: 127px;
    max-width: 250px;
}


/* compte d'utilisateur */
.account-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 720px;
    align-items: center;
    margin: 0 auto;
}

.account-form-container {
    width:100%;
    margin-top:2px;
    margin-bottom:4px
}

.account-form-line {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 4px;
    box-sizing: border-box;
}

.account-form-line label {
    width: 33%;
    text-align: right;
    box-sizing: border-box;
}

.account-form-line input[type="text"] {
    width: 67%;
    box-sizing: border-box;
    height: 24px;
}

.account-form-line select {
    width: 67%;
    height: 24px;
    padding: 1px;
    box-sizing: border-box;
}

.account-form-line div {
    width: 50%;
}

/* tableau de données */
table.data-table {
    min-width: 100%;
    border-collapse : collapse;
    border: 1px solid #5E94B4;
}

table.data-table th {
    background-color: #5E94B4;
    color: white;
    border: 1px solid white;
    height: 35px;
    vertical-align: middle;
    min-width: 30px;
    padding-left: 5px;
    padding-right: 5px;
}

table.data-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

table.data-table tr {
    height: 30px;
}

table.data-table td {
    border: 1px solid #5E94B4;
    vertical-align: middle;
    padding-left: 5px;
    padding-right: 5px;
}

td.centered {
    text-align: center;
}

table.data-table .ui-btn {
    border: 1px solid lightgray;
}

.bordered {
    border: 1px solid #5E94B4;
    padding: 0px;
    margin: 0px;
}

/* */
.ui-search-select {
    height: 34px;
    width: 100%;
    min-width: 200px;
    padding:4px;
    border: 1px solid lightgray;
    border-radius: 0;
    background-color: #EFEFEF;
    font-size: 16px
}

.ui-search-input-text {
    text-align: left;
    width:100%;
    height: 36px;
    padding:4px;
    font-size: 18px;
    border: 1px solid lightgray;
    border-radius: 0;
    background-color: #f4f4f4;
    box-sizing: border-box;
}

#clear-button {
    width: 100%;
    height: 100%;
    padding: 5px;
    text-align: center;
    font-size: 20px;
    border: 1px solid lightgray;
}

/* barre des onglets */
.ui-tab-bar {
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid lightgray;
    box-sizing: border-box;
    margin-bottom:5px;
    margin-left: 5px;
    margin-right: 5px
}

/* bouton des onglets */
.ui-tab-btn {
    height:20px;
    width: fit-content;
    margin-top: 5px;
    margin-right:4px;
    padding: 5px;
    background-color: #EFEFEF;
    border-top: 1px solid grey;
    border-left: 1px solid grey;
    border-right: 1px solid grey;
    font-family: sans-serif;
    font-size: 16px;
    text-wrap-mode: nowrap;
    color: #555555;
    cursor: pointer;
    font-weight: bold;
}

.ui-tab-btn:hover {
    background-color: #5e94b4;
    color: white;
}

.ui-tab-btn-selected {
    background-color: #5e94b4;
    color: white;
}

.ui-input-label {
    text-align: right;
    margin-right:4px;
    padding-top:7px;
}

.ui-input {
    min-width: 300px;
    width: -webkit-fill-available;
    ;
    text-align: left;
    font-family: Arial,Helvetica,sans-serif;
    font-size: 1em;
    background-color: #f6f6f6;
    border-radius: 3px;
    border: 1px solid lightgray;
    font-family: Arial,Helvetica,sans-serif;
    font-size: 1em;
    padding: 0.4em 1em;
    margin-right: 0.1em;
    vertical-align: middle;
    cursor: pointer;
}

.ui-input:hover {
    background-color: rgba(94,148,180,1);
    border: 1px solid rgba(118,118,118,1);
    color: rgba(255,255,255,0.8);
}

.ui-input:focus {
    background-color: rgba(246, 246, 246,1);
    border: 1px solid rgba(118,118,118,1);
    color: black;
}

.ui-input:blur {
    background-color: #f6f6f6;
    border: 1px solid lightgray;
    color: rgba(0,0,0,1);
}

select[multiple].ui-input {
    background-color: white;
    border-radius: 3px;
    border: 1px solid lightgray;
    padding: 2px;
}

select[multiple]:hover {
    background-color: #f6f6f6;
    color: black;
}

select.ui-input {
    padding: 4px 4px 4px 10px;
    min-height: 1.4em;
    font-size: 1em;
    cursor: pointer;
}

select.ui-input:hover {
    background-color: rgba(94,148,180,1);
    color: rgba(255,255,255,0.8);
    ;
}

select.ui-input:focus {
    background-color: rgba(94,148,180,1);
    font-weight: bold;
    color: rgba(255,255,255,0.8);
    ;
}

select.ui-input:blur {
    background-color: #f6f6f6;
    font-weight: normal;
    color: rgba(0,0,0,1);
}

table.ui-form-table {
    width: 90%;
    min-width: 450px;
    margin: 0 auto;
}

table.ui-form-table td:first-child {
    text-wrap: nowrap;
    text-align: right;
}

.subscribe-link-container {
    display: flex;
    width: 100%;
    position: absolute;
    bottom: 0;
    justify-content: center;
}

.subscribe-link-a {
    display: block;
    width: 320px;
    height: 50px;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    color: #337ab7;
    background-color: #e6ee18;
    cursor: pointer;
    margin: 5px;
}

.subscribe-link-a:hover {
    color: #5E94B4;
    background-color: #cccc00;
}