* {
    --main-background-color: #1e7fcb;
    --secondary-background-color: #e21313;
    --planning-height: 30px;
}

html {
    height:100%
}

html, body {
    min-width:100%;
    min-height:100%;
    font-size: 14px;
    background-color: #F2F2F2;
    line-height: 1em;
    color: #555555;
}

.full-width {
    width:100%;
}

#recherche_rapide {
    width: 250px;
}

@media only screen and (max-width: 800px) {
    .mobile-margin {
        margin-bottom: 300px;
    }
    #recherche_rapide {
        width: 100px;
    }
    .hide-on-mobile {
        display: none;
    }
}

input[type='checkbox']+span {
    padding-right: 0px;
    padding-left: 0.25rem;
}

form {
    /* reset de chrome'*/
    margin-block-end: 0;
    /* reset de Safari'*/
    margin-bottom: 0;
}

.redstar {
    color:red;
    font-size:0.55rem;
    vertical-align: top;
    margin-left:0.1rem;
}

a {
    color: inherit;
}

a:hover {
    color: #dc3638;
}

.form-control::placeholder {
    color: lightgray;
    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-color: var(--main-background-color);
    padding: 0px;
    margin: 0px;
    width:100%;
    max-width: 275px;
    -webkit-transition: all 0.25s ease;
    -moz-transition: all 0.25s ease;
    -o-transition: all 0.25s ease;
    transition: all 0.25s ease;

    overflow-y: auto;
    overflow-x: hidden;
    min-height: 100%;
    height: 100%;
    padding-bottom: 20px;
    border-right: 2px solid var(--main-background-color);

    box-shadow: 2px 0px 10px 0px #495057;
    line-height: 1.5em;
}

#sidebar-wrapper.toggled {
    overflow: hidden;
    width: 0px;
    flex-grow: 0;
    visibility: hidden;
}

#sidebar-content {
    min-width: 275px;
    color: white;
}

#sidebar-content .accordion-heading {
    border-top: 1px solid #3d758e;
}


#page-content-wrapper {
    order:2;
    flex-grow: 1;
    background-color:transparent;
    padding: 0px;
    margin: 0px;
    min-width: 320px;
    max-width: calc(100% - 275px);

    overflow-y: auto;
    overflow-x: hidden;
    min-height: 100%;
    height: 100%;

    padding-bottom: 20px;
    overflow: auto;

}

.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;
    background-color: var(--main-background-color);
    color: white;

    padding-top:4px;
    padding-bottom:4px;
}

#bar-content-wrapper i:hover {
    color: #dc3638;
}

#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: 2rem;
    padding-right:1rem;
}
#bar-content-right div {
    margin-left: 1rem;
}

#menu-toggle {
    margin-left: 4px;
    margin-right: 4px;
    width: 45px;
    font-size: 2rem;
    text-align: center;
    vertical-align: middle;
}

#main {
    min-width: 300px;
    min-height: 100%;
    padding-top: 15px;

}


#logo_container {
    margin-top:1rem;
    width:100%;
    overflow: hidden;
    background-color: var(--main-background-color);

    display: flex;
    flex-flow:  column;
    justify-content: center;
    align-items: center;
}
#logo_container div:first-child {
    margin-right: 4px;
}

.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;
    color: white;
    font-weight: bold;
    margin-right: 2px;
    width: 24px;
    text-align: center;
    font-size: 0.875rem;
}

.left-menu-label {
    display: inline-block;
    font-weight: normal;
    color: white;
}

.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:hover, .accordion-heading:hover, .left-menu-active {
    background-color: var(--secondary-background-color);
    font-weight: normal;
}


.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);
}

meter::-webkit-meter-bar {
    background: none;
    background-color: rgba(0, 0, 0, 0.1);
}

meter[value="1"] { background: #D7314C; }
meter[value="2"] { background: #FCBD43; }
meter[value="3"] { background: #2CA2B4; }
meter[value="4"] { background: #359D4D; }

/*****************************************************************************************/

/**** Breadcrumb *************************************************************************/
#breadcrumb {
    color: #555555;
    font-size: 1.5rem;
    line-height: 1.5em;
}
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 0;
}
.breadcrumb .breadcrumb-item {
    margin:0;
    padding: 0;
}

.breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    /*color: black;*/
    content: ">";
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}
.breadcrumb-item.active {
    /*color: black;*/
}
.breadcrumb-item-icon {
    margin-right: 0.5rem;
}
/***************************************************************************************/



/**** DataList *************************************************************************/

.table-bordered thead td, .table-bordered thead th {
    background-color: var(--main-background-color);
    color: white;
    white-space: nowrap;
    padding: .5rem .75rem .5rem .75rem
}
.table-bordered td, .table-bordered  th {
    border: 1px solid var(--main-background-color);
    padding: .5rem .75rem .5rem .75rem
}
tfoot tr {
    border: 1px solid var(--main-background-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;
}

button.multiselect {
    background-color: white;
    color: #4B5157;
    border-color: #CDD3D8
}

.multiselect-container>li>a>label {
    padding: 0px 0px 3px 40px
}

/***************************************************************************************/

.btn-toolbar {
    margin-top: .75rem;
    margin-bottom: .75rem;
}

.btn-toolbar button {
    min-width:150px;
    margin-bottom: 15px; /* Si plusieurs lignes*/
}

.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;
}


#main > .card {
    min-width: 580px;
}


/*
    Card-> sur fond grix
    Card section sous card avec bordure

*/
.card {
    margin-bottom: 1rem;
    border: 0;
}

.card .card-header {
    font-weight: bold;
    background-color: #f2f2f2;
    font-size: 1.25rem;
    padding-left: 0;
}

.card .card-body {
    border: 1px solid #d4d4d4;
}

.card-section {
    background: white;
}

.card-section  {
    margin-bottom: 1rem;
    border: 1px solid #d4d4d4;
}

.card-section .card-header {
    font-weight: bold;
    background-color: #f2f2f2;
    font-size: 1.25rem;
    padding-left: 1rem;
}

.card-section .card-body {
    border:0;
}


/******TABS      ****************************************************************/

.nav {
    margin: .625rem 0 .625rem 0;
}

.nav-tabs {
    /*border-bottom-color: var(--main-background-color);*/
    border-bottom: 3px solid #f2f2f2;
    background-color: #f2f2f2;
    font-size: 1.25rem;
}

.nav-tabs .nav-item {
    margin-left: 0;
    margin-right: .625rem;
    padding-right: 0;
    padding-left: 0;
}

.nav-tabs .nav-item:first-child {
    margin-left: 0;
    margin-right: .625rem;
    padding-right: 0;
    padding-left: 0;
}

.nav-tabs .nav-item:last-child {
    margin-left: 0;
    margin-right: 0;
    padding-right: 0;
    padding-left: 0;
}

.nav-tabs .nav-link {
    background-color: #f2f2f2;
}

.nav-tabs .nav-link:hover {
    border-color: #f2f2f2 ;
    border-bottom: 3px solid var(--main-background-color);
}


.nav-tabs .nav-link.active {
    background-color: #f2f2f2;
    font-weight: bold;
    border-color: #f2f2f2 ;
    border-bottom: 3px solid var(--main-background-color);
    color: var(--main-background-color);
}

.tab-pane {
}
/***************************************************************************************/

/* Datalist */
.data-list-title-container {
    font-size: 1.025rem;
    font-weight: bold;
}

/* container des pieces jointes et materiel*/
.generic-container {
    white-space: nowrap;
}

/************************************************* EXTRANET *****************************/

/**{
    -webkit-transition: all 0.25s;  Safari
    transition: all 0.25s;
}*/

#extranet-main {
    background-color: #f8f9fa;
    min-width: 320px;
    max-width: 1000px;
    width:90%;
    padding-top:1rem;
    padding-bottom:1rem;
}

#extranet-logo-container {
    text-align: center;
}

#extranet-contents {
    padding: 1rem;
    margin-top: 2rem;
}

.extranet-hidden {
    display:none
}

/************************************************* /EXTRANET *****************************/

/************************************************* PAYMENT *****************************/
#paiment-main {
    background-color: #f8f9fa;
    min-width: 320px;
    width: 100%;
    padding-top:1rem;
    padding-bottom:1rem;
}

#paiment-logo-container {
    text-align: center;
}

#paiment-contents {
    padding: 1rem;
    margin-top: 2rem;
}

.tr-bad-paiement {
    background-color: darkgray  !important;
    color: white;
    display: none;
}

.tr-gift-paiement {
    background-color: #fff3cd !important;
}

.alert a {
    text-decoration: underline;
}

/************************************************* /PAYMENT *****************************/



/************************************************* TEMPS *****************************/

.table-fixed {
    display: flex;
    flex-flow: column;
    width: 100%;
    border: solid 1px var(--main-background-color);
}
.table-fixed thead {
    flex: 0 0 auto;
    background-color: var(--main-background-color);
}
.table-fixed tr {
    width: calc(100% - 17px);
    display: table;
}
.table-fixed tbody tr {
    width: 100%;
    display: table;
}
.table-fixed tbody {
    flex: 1 1 auto;
    display: block;
    overflow-y: visible;
    overflow-x: hidden;
    height: calc(100vh - 470px);
    width: fit-content;
    width: -moz-fit-content;
    min-width: 100%;
}

.table-fixed th {
    width: 20%;
    min-width: 230px;
    text-align: center;

    border-right: solid 1px #999999;
    background-color: var(--main-background-color);
    text-align: center;
    color: white;
}
.table-fixed th:first-child {
    min-width: 100px;
    width: 10%;
    position: relative;
    z-index: 100;
}
.table-fixed th:last-child {
    border-right: solid 0px #999999;
}

.table-fixed td:first-child {
    min-width: 100px;
    width: 10%;
    text-align: center;
    position: relative;
    z-index: 100;
    background-color: #f2f2f2;
}
.table-fixed td {
    width: 20%;
    min-width: 230px;
    height: var(--planning-height);
    border-top: none;
    border-right: solid 2px var(--main-background-color);
    font-weight: bold;
    padding: 0;
}
.table-fixed th.today {
    color:yellow;
}
.table-fixed td.cell_bottom {
    border-bottom: solid 2px var(--main-background-color);
}

#temps-contact-table th, #temps-contact-table td {
    width: 10%;
    min-width: 100px;
}
#temps-contact-table th:first-child, #temps-contact-table td:first-child {
    width: 10%;
    min-width: 90px;
}


/************************************************* /TEMPS *****************************/

/************************************************* PLANNING *****************************/

#full-planning-container {
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    flex: 1 0 auto;
    margin:0;
    padding:0;
    padding-bottom: 18px;
    overflow-x: auto;

}
/*
8px = 0.5714rem
9px = 0.6429rem
10px = 0.7143rem
11px = 0.7857rem
12px = 0.8571rem
13px = 0.9286rem
14px = 1rem (base)
*/
#full-planning-container table {
    font-size: 0.7143rem;
}

#planning-table tbody {
    height: calc(100vh - 250px);
    width: unset;
}
#planning-table th {
    width: 12%;
    min-width: 150px;
}
#planning-table th:first-child {
    min-width: 50px;
    width: 5%;
}
#planning-table td:first-child {
    min-width: 50px;
    width: 5%;
    text-align: center;
}
#planning-table td {
    width: 12%;
    min-width: 150px;
    height: var(--planning-height);
    border-top: none;
    border-right: solid 2px var(--main-background-color);
    font-weight: bold;
    padding: 0;
}

#planning-bar-container {
    margin-bottom: 8px;
    margin-right: 300px;
    min-width: 911px;;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-around;
    align-items: center;
    padding: 0;
    height: 40px;
}
#planning-bar-container > div {
    flex:1 1 auto;
}

.div-planning {
    position: relative;
    height: inherit;
    padding: 5px;
}
.div-planning-flex {
    display: flex;
    flex-flow: row wrap;
    height: var(--planning-height);
}
.div-planning-detail {
    position: absolute;
    max-width: 90%;
    overflow: hidden;
    cursor: default;
}

.legende-planning-flex {
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100%;
    /*align-items: stretch*/
}
.legende-planning-flex-detail {
    padding: 5px;
    width: 12%;
    min-width: 100px;
    font-weight: bold;
    text-align: center;
    vertical-align:middle;

}

/************************************************* /PLANNING *****************************/
.table-box th, .table-box td {
    vertical-align: middle;
}
.div-box {
    height:250px;
    overflow-y: auto;
    padding: 0;
    border: 1px solid #dee2e6;
    border-top: none;
}

/************************************** LISTE DES DROITS **********************************/

.table-droit thead th, .table-droit thead td {
    border-right-color: #fff;
    z-index: 300;
}
.table-droit thead, .table-droit body {
    border: 2px solid var(--main-background-color);
}
.table-droit {
    border: 0 solid #dee2e6;
}

.table-droit td, .table-droit th {
    min-width: 150px;
}
.table-droit .td-mini {
    min-width: 70px;
}

.table-droit tbody {
    flex: 1 1 auto;
    display: block;
    overflow-y: visible;
    overflow-x: hidden;
    max-height: calc(100vh - 330px);
    width: fit-content;
    width: -moz-fit-content;
    min-width: 100%;
}
.table-droit thead {
    flex: 0 0 auto;
}

.thead-second th, .thead-second td, .thead-first th, .thead-first td  {
    position: sticky;
}
.thead-first th, .thead-first td  {
    top: 0;
}

.table-droit tbody .scroll {
    z-index: 200;
    position: relative;

    background-color: var(--main-background-color);
    color: #fff;
    font-weight: bold;
}

.table-droit .droit-border {
    border: 1px solid #fff;
}

/* ********************************************************************* */

#table_visible_si tbody+tbody, #table_visible_si td, #table_visible_si th, #table_visible_si thead th {
    border: 0 !important;
    padding: 0 !important;
}

/* ****************************** REUNION ******************************* */

.miniBarProgress {
    background-color: #28a745;
    color: #ffffff;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    width: 20%;
    overflow: hidden;
}

.miniBar {
    height: 2.5rem;
    background-color: #b8b9b4;
    border: 1px solid #8a898a;
    position: relative;
    width: -webkit-calc(100% - 2rem);
    width: -moz-calc(100% - 2rem);
    width: calc(100% - 2rem);
    margin-right: 0.5rem;
}

.miniBar p {
    padding-top: 10px;
}

/* ************************** LISTING *************************************** */
.listing-fixed-scroll {
    overflow: auto;
    /*height: 500px;*/
}

.listing-fixed-scroll thead th {
    position: sticky;
    top: 0;
}