* {
    /*--main-background-color: #009641;
    --main-second-background-color: #8ac79a;
    --light-background-color: #00964121;
    --logo-background-color: white;
    --main-hightlight-color: #009fe3;
    --main-second-hightlight-color: #80cff4;
    --link-hightlight-color: #009fe3;
    --main-text-color: black;
    --opposite-text-color: #fff;
    --table-th-backgroundd-color: #009641;*/

    --main-background-color: #182465;
    --main-second-background-color: #6abf44;
    --main-hightlight-color: #182465;
    --main-second-hightlight-color: #6abf44;
    --link-hightlight-color: #182465;
    --main-text-color: black;
    --opposite-text-color: #fff;
    --table-th-backgroundd-color: #182465;

    /* 182465 */
    /* 6abf44 */
}

.ui-autocomplete {
    max-height: 250px;
    overflow-y: auto;
    /* prevent horizontal scrollbar */
    overflow-x: hidden;
    min-width:500px;
    z-index: 1500;
}

/* SCROLL */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #c3c3c3;
}
::-webkit-scrollbar-thumb:hover {
    background: #9e9e9e;
}

.ui-menu-item {
    padding: 5px 0;
}
.ui-menu-item a {
    text-decoration: none;
}

html, body {
    width: 100%;
    height: 100%;
    font-size: 14px;
    background-color: #F2F2F2;
    line-height: 1em;
    color: var(--main-text-color);
}

#top-header-row {
    background-color: var(--main-background-color);
}
#top-header-titre {
    top: 50px;
    background-color: #F2F2F2;
    padding: 10px 20px 10px 10px;
    border-left: 1px solid #bcbcbc;
    box-shadow: inset 0 0 3px 0 #7C7C7C;
}

#login-container {
    width:100%;
    min-width:300px;

    padding:30px;
    border-radius: 15px;
    background-color: white;
}

.full-width {
    width: 100%;
}

form {
    /* reset de chrome'*/
    margin-block-end: 0;
    /* reset de Safari'*/
    margin-bottom: 0;
}

a {
    color: inherit;
}

a:hover {
    color: var(--main-text-color);
}

.form-control::placeholder {
    color: darkgrey;
    opacity: 1;
}

.form-group label {
    font-weight: bold;
}

#wrapper {
    display: flex;
    flex-flow: row nowrap;
    flex-grow: 1;
    justify-content: flex-start;
    align-items: flex-start;

    padding: 0px;
    margin: 0px;
    min-width: 100%;
    min-height: 100%;
    height: 100%;
    overflow: hidden;
    background-color: transparent;

}

/* Default, hidden. Add toggled to show*/
#sidebar-wrapper {
    order: 1;
    flex-shrink: 0;
    flex-grow: 1;
    background: #ffffff;
    padding: 0px;
    margin: 0px;
    width: 100%;
    max-width: 300px;
    -webkit-transition: all 0.50s ease;
    -moz-transition: all 0.50s ease;
    -o-transition: all 0.50s ease;
    transition: all 0.50s ease;

    overflow-y: auto;
    overflow-x: hidden;
    min-height: 100%;
    height: 100%;
    padding-bottom: 20px;
    box-shadow: 1px 1px 5px 0 #7c7c7c;
    line-height: 1.5em;
    color: var(--main-text-color);
}

#sidebar-wrapper.toggled {
    overflow: hidden;
    width: 0px;
    flex-grow: 0;
    visibility: hidden;
}

#sidebar-content {
    min-width: 275px;
}

#page-content-wrapper, .page-content-wrapper-popup {
    order: 2;
    flex-grow: 1;
    background-color: transparent;
    padding: 0px;
    margin: 0px;
    min-width: 320px;
    max-width: calc(100% - 275px);
    min-height: 100%;
    height: 100%;
    overflow: hidden;
}
.page-content-wrapper-popup {
    max-width: calc(100%) !important;
}

.full-width {
    width: 100%;
    max-width: 100% !important;
}


#bar-content-wrapper {
    display: flex;
    width: 100%;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 0;
    margin: 0;
    align-items: center;

    padding-top: 4px;
    padding-bottom: 4px;

    box-shadow: 1px 1px 5px 0 #7c7c7c;
    color: var(--opposite-text-color);
    background-color: var(--main-hightlight-color);
}

#bar-content-wrapper i:hover {
    color: var(--main-second-background-color);
    cursor: pointer;
}

#bar-content-left {
    display: flex;
    flex: 1 0 auto;
    justify-content: flex-start;
    align-items: center;
    padding-right: 4px;
}

#bar-content-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex: 0 1 auto;
    font-size: 1rem;
    padding-right: 1rem;
}

#bar-content-right > div {
    margin-left: 1rem;
}

#sidebar-wrapper a:hover {
    color: var(--link-hightlight-color);
    font-weight: bold;
}

#menu-toggle {
    margin-left: 4px;
    margin-right: 4px;
    width: 45px;
    font-size: 2rem;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
}

#main {
    min-width: 300px;
    /*min-height: 90%;*/
    max-height: calc(100vh - 100px);
}

#logo-container {
    padding: 10px 0 10px 0;
    margin-right: 2px;
    /*width: 100%;*/
    overflow: hidden;
    background: #ffffff;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
}

#logo-container div:first-child {
    margin-right: 4px;
}

/* Permet au onclick sur bouton d'etre actif sur l'icone et le span' */
button > * {
    pointer-events: none;
}

.left-menu-icon {
    display: inline-block;
    color: inherit;
    font-weight: bold;
    margin-right: 2px;
    width: 24px;
    text-align: center;
}

.left-menu-icon-sub {
    display: inline-block;
    font-weight: bold;
    margin-right: 2px;
    width: 24px;
    text-align: center;
    font-size: 0.875rem;
}

.left-menu-label {
    display: inline-block;
    font-weight: normal;
}

.left-menu-sub-label {
    /*font-weight: lighter;*/
    font-size: 0.875rem;
    /*color: #e9ecef;*/
}

.left-menu-link-icon {
    margin-left: 0.8em;
    font-weight: bold;
}

.left-menu-line {
    padding-left: 30px;
    cursor: pointer;
}

.left-menu-blank-link {
    margin-left: 0.8em;
}

.left-menu-detail-separator {
    margin: 0 50px 0 30px;
    padding: 0;
    border-top: 2px dashed darkgray;
}

.left-menu-line-active {
    color: var(--main-background-color);
    font-weight: bold;
}
.left-menu-line:hover {
    color: var(--main-background-color);
    background-color: var(--main-second-background-color);
    font-weight: bold;
}

.spin-slow {
    -webkit-animation: fa-spin 6s infinite linear;
    animation: fa-spin 6s infinite linear;
}

.spin-fast {
    -webkit-animation: fa-spin 0.75s infinite linear;
    animation: fa-spin 0.75s infinite linear;
}

/*** Meter *********************************************************/
/* Div parent avec label */
.password-meter-container {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-content: center;
}

.password-meter-container * {
    margin-right: 4px;
}

meter {
    /* Reset the default appearance */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    margin: 0 auto 1em;
    width: 40px;
    height: 0.5rem;
    margin-top: 0.25rem;

    /* Applicable only to Firefox */
    background: none;
    background-color: rgba(0, 0, 0, 0.1);
}

/*****************************************************************************************/

/**** Breadcrumb *************************************************************************/
#breadcrumb {
    color: var(--main-text-color);
    font-size: 1.5rem;
    line-height: 1.5em;
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb .breadcrumb-item {
    margin: 0;
    padding: 0;
}

.breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    /*color: black;*/
    content: "> ";
    white-space: pre;
    padding-right: 0px;
    padding-left: 0.5rem;
}

.breadcrumb-item.active {
    /*color: black;*/
}

.breadcrumb-item-icon {
    margin-right: 0.5rem;
}

/***************************************************************************************/


/**** DataList *************************************************************************/


.table-bordered {
    border-spacing: 0;
    border-collapse: collapse;
}

.table-bordered thead td, .table-bordered thead th {
    background-color: var(--table-th-backgroundd-color);
    color: white;
    white-space: nowrap;
    padding: .5rem .75rem .5rem .75rem;
    border: 1px solid var(--table-th-backgroundd-color);

}

.table-bordered td {
    border-bottom: 1px solid var(--table-th-backgroundd-color);
    padding: .5rem .75rem .5rem .75rem
}

.table-bordered td:first-child {
    border-left: 1px solid var(--table-th-backgroundd-color);
}

.table-bordered td:last-of-type {
    border-right: 1px solid var(--table-th-backgroundd-color);
}

/***************************************************************************************/

/**** Multiselect *************************************************************************/

.multiselect-container {
    background-color: white;;
    color: black;
    width: 100%;
    height: 200px;
    overflow-y: auto;
    border-radius: 0 0 9px 9px;
}

.multiselect-container *:focus {
    outline: none;
}

.multiselect-container > li {
    padding-right: 10px;
}

.multiselect-container label {
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: unset;
    height: 100%;
}

button.multiselect {
    background-color: white;
    color: #4B5157;
    border-color: #CDD3D8
}

.multiselect-container > li > a > label {
    padding: 0 0 3px 10px;
    height: auto;
}

.multiselect-container .btn {
    margin-bottom: unset;
    height: 100%;
}

.multiselect-filter div {
    height:34px;
}

/***************************************************************************************/
.btn-toolbar {
    margin-top: .75rem;
    margin-bottom: .75rem;
}

.btn-toolbar button {
    min-width:150px;
}

.btn-toolbar > button + button  {
    margin-left: 1rem;
}

/* Icone plus texte, on espace */
.btn i + span {
    margin-left: .5rem;
}
.btn span {
    white-space: nowrap;
}

.btn {
    white-space: nowrap;
    margin-bottom: 0.5rem;
}

#main > .card {
    min-width: 580px;
}


/*
    Card-> sur fond grix
    Card section sous card avec bordure

*/
.card {
    margin-bottom: 1rem;
    box-shadow: 1px 1px 5px 0 #7c7c7c;
    padding: 0;
}

.card .card-header {
    font-weight: bold;
    /*background-color: #f2f2f2;*/
    font-size: 1.25rem;
    padding: 0.75rem 0.75rem 0.75rem 1rem;
}

.card .card-body {
    /*border: 1px solid #d4d4d4;*/
}

.card .card {
    margin-bottom: 1rem;
    border: 1px solid #d4d4d4;
    box-shadow: none;
    background: white;
}

.card .card:last-child {
    margin-bottom: 0;
}

.card .card .card-header {
    font-weight: bold;
    background-color: #f2f2f2;
    font-size: 1.25rem;
    padding-left: 1rem;
}

.card .card .card-body {
    border-color: #d4d4d4;
    border-width: 0 1px 1px 1px;
}

.card-header .btn-icon-only {
    margin-top: -15px !important;
    margin-bottom: -12px !important;
}

/******TABS      ****************************************************************/

.nav {
    margin: .625rem 0 .625rem 0;
}

.nav-tabs {
    /*border-bottom-color: #245B74;*/
    border-bottom: 3px solid #f2f2f2;
    background-color: transparent;
    font-size: 1.25rem;
}

.nav-tabs .nav-item {
    margin-left: 0;
    margin-right: 4px;
    padding-right: 2rem;
    padding-left: 2rem;
    border-radius: 0;
}

.nav-tabs .nav-item:first-child {
    margin-left: 0;
    margin-right: 4px;
    padding-right: 0;
    padding-left: 0;
}

.nav-tabs .nav-item:last-child {
    margin-left: 0;
    margin-right: 0;
    padding-right: 2rem;
    padding-left: 2rem;

}

.nav-tabs .nav-link {
    background-color: transparent;
    min-width: 120px;
    text-align: center;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-bottom: 3px solid lightgrey;
    color: var(--main-text-color);
}

@media (max-width: 576px) {
    .nav-tabs .nav-link {
        min-width: 100% !important;
    }
}


.nav-tabs .nav-link:hover {
    border-color: var(--main-background-color);
    font-weight: bold;
    color: var(--main-hightlight-color);
}


.nav-tabs .nav-link.active {
    background-color: transparent;
    font-weight: bold;
    border-color: #f2f2f2;
    border-bottom: 3px solid var(--main-background-color);
    color: var(--main-hightlight-color);
}

.tab-pane {
}

/***************************************************************************************/

/* Datalist */
.data-list-title-container {
    font-size: 1.025rem;
    font-weight: bold;
}

.col-form-label {
    font-weight: bold;
}

.form-group label.form-check-label {
    font-weight: normal;
    line-height: normal;
}

fieldset {
    width: 100%;
    border: 1px solid lightgrey;
    padding: 0 5px;
    border-radius: 3px;
}

fieldset + fieldset {
    margin-top: 15px;
}

fieldset legend {
    margin: 0 10px 10px 0;
    padding: 0 5px;
    width: auto;
    font-size: 1.25rem;

}

.form-group {
    margin-bottom: 0.75rem;
}
/*
.modal-body {
    line-height: 20px;
}*/

.redstar {
    position: relative;
    bottom: 1px;
    font-size: .6rem;
    line-height: .6rem;
    vertical-align: super;
    text-decoration: none;
    color: red;
    margin-left: 0.5em;
}

.datepicker td, .datepicker th {
    padding: 7px;
}

.evode-label {
    display: block;
    font-size: 1rem;
    height: 33px;
    text-align: center;
    border-radius: 3px;
    font-weight: bold;
    line-height: calc(1rem + 20px);
}

td .evode-label {
    display: block;
    font-size: 0.875rem;
    height: auto;
    width: auto;
    max-width: 120px;
    padding: 2px 0;
    text-align: center;
    border-radius: 3px;
    font-weight: bold;
    line-height: calc(1rem);
}

.modal-content > .card {
    margin: 0;
}

.card-body .btn-toolbar {
    margin-bottom: 0;
}

table .form-control {
    height: 22px;
    text-align: right;
    padding-right: 2px;
}

table .input-group-text {
    text-align: center;
    height: 22px;
    padding-right: 5px;
    padding-left: 5px;
}

#menu-planning {
    margin-right: 4px;
    width: 45px;
    font-size: 2rem;
    text-align: center;
    vertical-align: middle;
}

.droppable {
    background-color: #89ff0024 !important;
    border: 4px dashed green;
}


.modal-backdrop {
    width: 100% !important;
    height: 100% !important;
}

.d-grid {
    display: grid;
}

label {
    display: inline-block;
    margin-bottom: 0.5rem;
    vertical-align: sub;
}


.btn-info {
    color: #fff;
    background-color: #17a2b8;
    border-color: #17a2b8;
}
.btn-info:hover, .btn-info:focus {
    color: #fff;
    background-color: #138496;
    border-color: #117a8b;
}

/********************************************/
/********************************************/
/********************************************/

.pointer {
    cursor: pointer !important;
}
.cursor-default {
    cursor: default !important;
}
.cursor-move {
    cursor: move !important;
}
.cursor-help {
    cursor: help !important;
}

.wrapper-param {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.wrapper-param fieldset {
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
}

.box-item-param {
    min-height:200px;
    margin:10px;
    padding:10px;
    background-color: white;
    border: solid 1px #cccccc;
}
.box-item-param legend{
    font-size:18px;
    color:var(--main-background-color);
    font-weight: bold;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 10px;
    width: 100%;
    line-height: 1.2;
}
.box-item-param a {
    text-decoration: none;
}
.box-item-param a:hover {
    font-weight: bold;
    color: var(--main-background-color);
}
.box-item-param li {
    margin-bottom: 10px;
}

#titre_page {
    color: var(--main-hightlight-color);
}
#titre_liste_onglet {
    color: var(--main-background-color);
    font-weight: bold;
}
#div_titre, #div_onglet_btn_contenu {
    display: none;
}
#div_titre .btn, #top-header-titre .btn {
    padding: 0.6rem 0.75rem;
    line-height: inherit;
}

.w-1 {
    width: 1% !important;
}

/*************************************************/
/****************** FLEX-BOX *********************/
/*************************************************/

.flex-container {
    display: flex;
    justify-content:space-around;
    flex-wrap: wrap;
}
.flex-item {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    align-items: center;
    margin: 10px;
    padding: 20px;
    min-width: 250px;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}