/**
Styles par défaut de l'application.
Ne pas modifier des éléments structurels.

Pour personnaliser pour une application, modifier projet-theme (couleurs))
*/

* {
    --main-background-color: red;
    --logo-background-color: red;
    --main-hightlight-color: green;
    --main-text-color: black;
    --opposite-text-color: white;
    --table-th-backgroundd-color: dimgrey;
} 

.ui-autocomplete {
    max-height: 250px;
    overflow-y: auto;
    /* prevent horizontal scrollbar */
    overflow-x: hidden;
    min-width:500px;
    z-index: 1500;
}

.ui-widget-content a{
    text-decoration: none;
}
/* SCROLL */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #c3c3c3;
}
::-webkit-scrollbar-thumb:hover {
    background: #9e9e9e;
}

/*.ui-datepicker-div {
    z-index: 1500  !important;
}*/

.ui-widget.ui-widget-content{
    padding: 4px !important;
}

html, body {
    width: 100%;
    height: 100%;
    font-size: 14px;
    background-color: #fdfdfd;
    line-height: 1em;
    color: var(--main-text-color);
}


#top-header-titre {
    padding: 0.5rem;
    top: 40px;
    background-color: transparent;
}

#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;
}
.icon-top-bar{
    padding: 7px 3px 2px 4px;
}
.icon-top-bar:hover{
    border-bottom: 2px solid rgba(128, 128, 128, 0.16);
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;

}

a {
    color: inherit;
}

#sidebar-wrapper a:hover {
    color: var(--link-hightlight-color);
    font-weight: bold;
}
a:hover {
    color: var(--main-text-color);
}

.form-control::placeholder {
    color: darkgrey;
    opacity: 1;
}

.form-group label {
    font-weight: 500;
}

#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: var(--main-wrapper-bg);

}

/* Default, hidden. Add toggled to show*/
#sidebar-wrapper {
    order: 1;
    flex-shrink: 0;
    flex-grow: 1;
    background: var(--menu-background-color);
    padding: 0px;
    margin: 0px;
    width: 100%;
    max-width: 275px;
    -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 20px 0 #cecece;
    line-height: 1.5em;
    color: var(--opposite-text-color);
}

#sidebar-wrapper.toggled {
    overflow: hidden;
    width: 0px;
    flex-grow: 0;
    visibility: hidden;
}

#sidebar-content {
    min-width: 275px;
}

#sidebar-content .accordion-heading {

}


#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;
    border-left: 1px solid #e7e7e7;
}
.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;
    background: var(--menu-background-color-opposite);
    padding-top: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e7e7e7;
    color: var(--opposite-text-color);
}

#bar-content-wrapper i:hover {
    color: var(--main-hightlight-color);
}

#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;
}

#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: 100%;
    max-height: calc(100vh - 100px);
}

.main-fiche {
    max-height: calc(100vh - 160px) !important;
}

#logo-container {
    padding: 10px 0 10px 0;
    margin-right: 2px;
    /*width: 100%;*/
    overflow: hidden;
    background:transparent;
    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-size: 1rem;
}

.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, .left-menu-line-active {
    /*background-color: #00000036;*/
    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);
}

.table-tr{
    height: 50px;
}

/***************************************************************************************/

/**** 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
}

.multiselect-filter div {
    height:34px;
}

/***************************************************************************************/
.btn-toolbar {
    margin-top: .75rem;
    margin-bottom: .75rem;
}

.btn-toolbar button {
    min-width:125px;
}

.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 {
    margin-bottom: 1rem;
    box-shadow: 2px 2px 5px 0 #7c7c7c6e;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    background-color: white;
}

.card .card-header {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.25rem;
    color: var(--main-hightlight-color) !important;
    padding: 0.75rem 0.75rem 0.75rem 1rem;
    background-color: transparent;!important;
    border-bottom: 1px solid rgba(128, 128, 128, 0.11) !important;
}

.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 #dbdbdb;
    background-color: transparent;
}

.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: 100px;
    text-align: center;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    font-weight: bold;

    color: #a3a3a3;
}

@media (max-width: 576px) {
    .nav-tabs .nav-link {
        min-width: 100% !important;
    }
}


.nav-tabs .nav-link:hover {
    margin-bottom: -3px;
    border-color: var(--main-background-color);
    font-weight: bold;
    border-bottom: 3px solid var(--main-background-color);
    color: var(--main-background-color);
}


.nav-tabs .nav-link.active {
    margin-bottom: -3px;
    background-color: transparent;
    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;
}

.col-form-label {
    font-weight: bold;
}

.form-group label.form-check-label {
    font-weight: 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.5rem;
}

.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);
}

.hover-grey{
    width: 30px;
    height: 30px;
    padding: 3px 7px;
}
.hover-grey:hover{
    background-color: #f4f4f4;
    border-radius: 50%;
}

.hover-dark{
    width: 30px;
    height: 30px;
    padding: 3px 7px;
}
.hover-dark:hover{
    background-color: rgba(128, 128, 128, 0.22);
    border-radius: 50%;
}

.statut-wrap{
    padding: 7px 5px;
    border-radius: 15px;
    min-width: 100px;
    text-align: center;
    font-weight: 500;
}


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: 32px;
    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;
}

