/** COLOR PROJECT **/
:root{
    --main-color-first: #2D7587; /* Bleu */
    --main-color-second: #E86659; /* rouge */
    --main-color-third: #f1a016; /* Jaune */
    --main-color-green: #47a630 ; /* Vert */

    --main-color-red: #E86659;

    --main-color-disabled: #e2e2e2 ;

    --main-color-first_hover: #bf807b;

    --main-color-text-first: #212121;
    --main-color-text-second: #6f6d6d;

    --main-color-first-hover: #bf807b;
    --main-color-second-hover: rgba(220, 185, 184, 0.3);

    --main-color-border-first: #c3c0c0;

    --main-color-link-first: #2d6f85;

    --main-color-info: #49abc4;
    --main-color-warning: #ffa95b;
    --main-color-success: #3fa193;
    --main-color-danger: #E86659;

    --main-bgcolor-light: #f5f5f5;
}
html, body {
    height: 100%;
    margin: 0;
    color: var(--main-color-text-first) !important;
    font-family: 'Titillium Web', sans-serif !important;
}
button, input, optgroup, select, textarea{
    font-family: 'Titillium Web', sans-serif !important;
}

/** SOGEFI COLORS **/
.blue-sogefi{background: var(--main-color-first) !important;}
.blue-sogefi-text{color: var(--main-color-first) !important;}
.red-sogefi{background: var(--main-color-second) !important;}
.red-sogefi-text{color: var(--main-color-second) !important;}
.yellow-sogefi{background: var(--main-color-third) !important;}
.yellow-sogefi-text{color: var(--main-color-third) !important;}
.green-sogefi{background: var(--main-color-green) !important;}
.green-sogefi-text{color: var(--main-color-green) !important;}
.disabled-sogefi-text{color: var(--main-color-disabled) !important;}
.red-disabled {background: #e2978e;}

/** GENERAL **/
.link_disabled{color: #8d8d8d;}
input:not([type="range"]):focus {
    border-bottom: 1px solid var(--main-color-first) !important;
    box-shadow: 0 1px 0 0 var(--main-color-first) !important;
}
[data-error] {
    color: var(--main-color-second) !important;
}

span.badge.new:after { content: '';} /* Permet de ne pas avoir de "new" inséré après un badge new */
span.badge.new {background-color: var(--main-color-first) !important;}
/** MODAL **/
.modal .modal-content h4.modal_title{
    text-align: center;
    line-height: 40px;
    color: var(--main-color-first) !important;
    /*margin-top: 15px;
    margin-bottom: 30px;*/
    font-size: 25px;
}
.modal .modal-content p{
    text-align: center;
    font-size: 16px;
    line-height: 30px;
}
.modal .modal-footer{
    border-top: 1px solid #ddd;
    text-align: center;
}
.modal.large-modal {
	width: 70%;
}
.min_height500 {
	min-height: 500px;
}
/** TAB **/
.card_tabs{
    border: 1px solid #707070;
    border-top: none;
    padding: 0px 20px;
    border-radius: 0px 0px 5px 5px;
    overflow-y: auto;
    line-height: 15px;
    min-height: 600px;
}
.tabs .indicator{display: none !important;}
.tabs .tab a:focus, .tabs .tab a:focus.active, .tabs .tab a.active {background-color: white;}
.tabs .tab a{ color: #333 !important;}
.tabs .tab.disabled a{ color: #ee6e7366 !important;}
.tabs .tab{
    line-height: 44px !important;
    height: 44px !important;
}
.tabs{
    height: 44px !important;
}
.tabs li>a.active>i{ color: var(--main-color-first) !important;}
.tabs li>a{
    border-bottom: 1px solid #707070;
    border-top: 1px dashed #707070;
    border-right: 1px solid #707070;
    border-left: 1px solid #707070;
    border-radius: 5px 5px 0px 0px;
    background-color: rgba(220, 220, 220, 0.5);
}
.tabs li>a.active {
    border: 1px solid #707070;
    border-radius: 5px 5px 0px 0px;
    border-bottom: none;
    color: var(--main-color-first) !important;
    font-size: 20px;
    font-weight: bold;
}
.tabs .tab.disabled a:hover, .tabs .tab.disabled a:focus,  .tabs .tab.disabled a.active{
    background-color: rgba(220, 220, 220, 0.5);
}
/** Range **/
input[type=range]+.thumb {
    background-color: #2d6f85;
}
input[type=range]::-webkit-slider-thumb {
    background-color: #2d6f85;
}
input[type=range]::-moz-range-thumb {
    background-color: #2d6f85;
}
input[type=range]::-ms-thumb {
    background-color: #2d6f85;
}
input[type=range]+.thumb.active .value {
    margin-left: 0px !important;
    margin-top: 3px !important;
    font-size: 13px !important;
}

/** Disabled range **/
input[type=range]:disabled::-webkit-slider-thumb {
background-color: var(--main-color-disabled);
}
input[type=range]:disabled::-moz-range-thumb {
background-color: var(--main-color-disabled);
}
input[type=range]:disabled::-ms-thumb {
background-color: var(--main-color-disabled);
}

/* scrollbar */
.scroller {
  scrollbar-color: #546e7a #eaeaea;
  scrollbar-width: thin;
}
.scroller:hover{
  scrollbar-color: #223862 #eaeaea;
}
/* width */
.scroller::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
/* Track */
.scroller::-webkit-scrollbar-track {
    background: #eaeaea;
    box-shadow: inset 0 0 2px #a1a1a1;
}
/* Handle */
.scroller::-webkit-scrollbar-thumb {
    background: #546e7a;
    border-radius: 5px;
}
/* Handle on hover */
.scroller::-webkit-scrollbar-thumb:hover {
    background: #223862;
}

/** HEADER, FOOTER **/
.sidenav .user-view img{
    height: 100px;
    width: 100%;
}
.sidenav{
    border-right: 1px solid #a0a0a0;
    width: 220px;
}
.sidenav li>a{
    padding: 0 0 0px 15px !important;
}
.sidenav li>a.cursor-no-drop:hover{
    background-color: inherit;
}
#account_submenu > :not(:first-child){
    margin-left: 23px;
    border-left: dotted 2px grey;
}
#account_submenu i{
    width: 30px;
    text-align: center;
}
#account_submenu li>a{
    padding-left: 25px !important;
}
main{
    padding-left: 230px;
    overflow-y: auto;
}
.card_sogefi{
    padding: 15px;
    margin-right: 10px;
    margin-bottom: 15px;
    margin-top: 15px;
}
footer {
    height: 50px;
    color: #333;
    bottom: 0;
    right: 0;
    left: 300px;
    background-color: white;
    border-top: 1px solid #a0a0a0;
    z-index: 10;
}
@media only screen and (max-width : 992px) {
    main, footer {
        padding-left: 0;
    }
    footer {
        left: 0;
    }
}

.no-transform{text-transform: none;}

/** HELPERS DIV **/
.display_none{display: none;}
.div_relative{position: relative;}
.div_absolute{position: absolute;}
.overflow_auto{overflow: auto;}
.inline-block {display: inline-block;}

/** HELPERS SIZE **/
.full_width { width: 100%; }
.full_height { height: 100%; }
.line-height-25 { line-height: 25px !important; }

/** HELPERS CURSOR **/
.cursor-pointer{cursor: pointer !important;}
.cursor-help{cursor: help !important;}
.cursor-no-drop {cursor: no-drop !important;}
.cursor-grab {cursor: grab !important;}
.cursor-grabbing {cursor: grabbing !important;}

/** HELPERS ALIGN **/
.v-align-t-bottom{ vertical-align: text-bottom; }
.v-align-middle{vertical-align: middle;}
.v-align-super{vertical-align: super;}
.v-align-sub{vertical-align: sub;}

/** HELPERS POSITION **/
.margin0{margin: 0 !important;}
.pt0{padding-top: 0 !important;}

.mt0{margin-top: 0px !important;}
.mt5{margin-top: 5px !important;}
.mt8{margin-top: 8px !important;}
.mt10{margin-top: 10px !important;}
.mt15{margin-top: 15px !important;}
.mt20{margin-top: 20px !important;}
.mt30{margin-top: 30px !important;}
.mt40{margin-top: 40px !important;}
.mt60{margin-top: 60px !important;}

.mb0{margin-bottom: 0px !important;}
.mb5{margin-bottom: 5px !important;}
.mb8{margin-bottom: 8px !important;}
.mb10{margin-bottom: 10px !important;}
.mb20{margin-bottom: 20px !important;}
.mb30{margin-bottom: 30px !important;}
.mb40{margin-bottom: 40px !important;}
.mb150{margin-bottom: 150px !important;}

.mlauto{margin-left: auto !important;}
.ml0{margin-left: 0px !important;}
.ml5{margin-left: 5px !important;}
.ml8{margin-left: 8px !important;}
.ml10{margin-left: 10px !important;}
.ml20{margin-left: 20px !important;}
.ml30{margin-left: 30px !important;}
.ml40{margin-left: 40px !important;}

.mr0{margin-right: 0px !important;}
.mr5{margin-right: 5px !important;}
.mr8{margin-right: 8px !important;}
.mr10{margin-right: 10px !important;}
.mr15{margin-right: 15px !important;}
.mr20{margin-right: 20px !important;}
.mr30{margin-right: 30px !important;}
.mr35{margin-right: 35px !important;}
.mr40{margin-right: 40px !important;}

.mt-5{margin-top:- 5px !important;}
.mt-8{margin-top:- 8px !important;}
.mt-10{margin-top: -10px !important;}
.mt-12{margin-top: -12px !important;}
.mt-20{margin-top: -20px !important;}
.mt-30{margin-top: -30px !important;}
.mt-40{margin-top: -40px !important;}
.mb-5{margin-bottom:- 5px !important;}
.mb-8{margin-bottom:- 8px !important;}
.mb-10{margin-bottom: -10px !important;}
.mb-20{margin-bottom: -20px !important;}
.mb-30{margin-bottom: -30px !important;}
.mb-40{margin-bottom: -40px !important;}
.ml-5{margin-left:- 5px !important;}
.ml-8{margin-left:- 8px !important;}
.ml-10{margin-left: -10px !important;}
.ml-20{margin-left: -20px !important;}
.ml-30{margin-left: -30px !important;}
.mr-5{margin-right:- 5px !important;}
.mr-8{margin-right:- 8px !important;}
.mr-10{margin-right: -10px !important;}
.mr-20{margin-right: -20px !important;}
.mr-30{margin-right: -30px !important;}

/** HELPERS FONT **/
.font_size_10{
	font-size: 10px !important;
}
.font_size_11{
	font-size: 11px !important;
}
.font_size_12{
	font-size: 12px !important;
}
.font_size_13{
	font-size: 13px !important;
}
.font_size_14{
	font-size: 14px !important;
}
.font_size_15{
	font-size: 15px !important;
}
.font_size_16{
	font-size: 16px !important;
}
.font_size_17{
	font-size: 17px !important;
	line-height: 17px !important;
}
.font_size_18{
	font-size: 18px !important;
}
.font_size_19{
	font-size: 19px !important;
}
.font_size_20{
	font-size: 20px !important;
}
.font_size_25{
	font-size: 25px !important;
}
.font_size_30{
	font-size: 30px !important;
}
.font_size_35{
	font-size: 35px !important;
}
.font_size_40{
	font-size: 40px !important;
}
.uppercase{ text-transform: uppercase; }
.underline{ text-decoration: underline; }
.underline_hover:hover{ text-decoration: underline; }
.bold{ font-weight: bold; }
.italic{font-style: italic;}
.justify{ text-align: justify; }

.limit-height-500{
	max-height: 500px !important;
	overflow-y: auto !important;
}
.limit-height-400{
	max-height: 400px !important;
	overflow-y: auto !important;
}

/** TOASTS **/
.toast_error {
    background-color: var(--main-color-danger);
    color: white;
}
.toast_success {
    background-color: var(--main-color-success);
    color: white;
}
.toast_warning {
    background-color: var(--main-color-warning);
    color: white;
}
.toast_info {
    background-color: var(--main-color-info);
    color: white;
}

/** LOADER **/
#sogefi_loader{
    display: none;
    position: absolute;
    top: 38%;
    left: 47%;
    z-index: 10001;
    border: 16px solid white;
    border-top: 16px solid var(--main-color-first);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}
#sogefi_overlay{
    display: none;
    position: absolute;
    top: 0;
    width: 100%;
    background: #000;
    will-change: opacity;
    opacity: 0.5;
    z-index: 10000;
    height: inherit;
}
@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/** MATERIALIZECSS **/
[type="radio"]:checked+span:after, [type="radio"].with-gap:checked+span:before, [type="radio"].with-gap:checked+span:after{
    border: 2px solid var(--main-color-first);
}
[type="radio"]:checked+span:after, [type="radio"].with-gap:checked+span:after{
    background-color: var(--main-color-first);
}
.input-field .prefix.active{color : var(--main-color-first); }
input:not([type]):focus:not([readonly]),
input[type=text]:not(.browser-default):focus:not([readonly]),
input[type=password]:not(.browser-default):focus:not([readonly]),
input[type=email]:not(.browser-default):focus:not([readonly]),
input[type=url]:not(.browser-default):focus:not([readonly]),
input[type=time]:not(.browser-default):focus:not([readonly]),
input[type=date]:not(.browser-default):focus:not([readonly]),
input[type=datetime]:not(.browser-default):focus:not([readonly]),
input[type=datetime-local]:not(.browser-default):focus:not([readonly]),
input[type=tel]:not(.browser-default):focus:not([readonly]),
input[type=number]:not(.browser-default):focus:not([readonly]),
input[type=search]:not(.browser-default):focus:not([readonly]),
textarea.materialize-textarea:focus:not([readonly]){
    border-bottom: 1px solid var(--main-color-first);
    -webkit-box-shadow: 0 1px 0 0 var(--main-color-first);
    box-shadow: 0 1px 0 0 var(--main-color-first);
}
input:not([type]):focus.valid ~ label, input[type=text]:not(.browser-default):focus.valid ~ label,
input[type=password]:not(.browser-default):focus.valid ~ label,
input[type=email]:not(.browser-default):focus.valid ~ label,
input[type=url]:not(.browser-default):focus.valid ~ label,
input[type=time]:not(.browser-default):focus.valid ~ label,
input[type=date]:not(.browser-default):focus.valid ~ label,
input[type=datetime]:not(.browser-default):focus.valid ~ label,
input[type=datetime-local]:not(.browser-default):focus.valid ~ label,
input[type=tel]:not(.browser-default):focus.valid ~ label,
input[type=number]:not(.browser-default):focus.valid ~ label,
input[type=search]:not(.browser-default):focus.valid ~ label,
textarea.materialize-textarea:focus.valid ~ label{
    color: var(--main-color-first);
}
input:not([type]):focus:not([readonly]) + label,
input[type="text"]:not(.browser-default):focus:not([readonly]) + label,
input[type="password"]:not(.browser-default):focus:not([readonly]) + label,
input[type="email"]:not(.browser-default):focus:not([readonly]) + label,
input[type="url"]:not(.browser-default):focus:not([readonly]) + label,
input[type="time"]:not(.browser-default):focus:not([readonly]) + label,
input[type="date"]:not(.browser-default):focus:not([readonly]) + label,
input[type="datetime"]:not(.browser-default):focus:not([readonly]) + label,
input[type="datetime-local"]:not(.browser-default):focus:not([readonly]) + label,
input[type="tel"]:not(.browser-default):focus:not([readonly]) + label,
input[type="number"]:not(.browser-default):focus:not([readonly]) + label,
input[type="search"]:not(.browser-default):focus:not([readonly]) + label,
textarea.materialize-textarea:focus:not([readonly]) + label{
    color: var(--main-color-first);
}
.switch label input[type=checkbox]:checked+.lever{
    background-color: #68a4b3;
}
.switch label input[type=checkbox]:checked+.lever:after{
    background-color: var(--main-color-first);
}
.switch input[type=checkbox][disabled]+.lever {
    cursor: no-drop;
    background-color: rgba(0,0,0,0.12) !important;
}
.dropdown-content{
    max-height: 350px;
}
.dropdown-content li>a, .dropdown-content li>span{
    color: var(--main-color-first) !important;
}
#user_action_dropdown.dropdown-content li a, #user_action_dropdown.dropdown-content li span{
    color: var(--main-color-first) !important;
}
#user_action_dropdown.dropdown-content li a, #user_action_dropdown.dropdown-content li span {
    font-size: 16px;
    color: #26a69a;
    display: block;
    line-height: 22px;
    padding: 14px 16px;
}
#user_action_dropdown.dropdown-content li a>i {
    height: inherit;
    line-height: inherit;
    float: left;
    margin: 0 24px 0 0;
    width: 24px;
}
.select-wrapper input.select-dropdown:focus{
    border-bottom: 1px solid var(--main-color-first) !important;
}
.select-dropdown.dropdown-content li:hover {
    background-color: rgba(242, 154, 149, 0.2) !important;
}
.select-dropdown.dropdown-content li.disabled:hover {
    background-color: var(--main-color-disabled) !important;
    cursor: default;
}
.select-dropdown li.disabled{
    background-color: var(--main-color-disabled) !important;
    cursor: default;
}
[type="checkbox"].filled-in:checked+span:not(.lever):after{
    border: 2px solid var(--main-color-first) !important;
    background-color: var(--main-color-first) !important;
}

.img_containing_span {
	display: block;
	height: 40px;
	width: 100%;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}
/* Permet de faire clignoter 3 fois un élément */
.clignote  {
	animation-duration: .8s;
	animation-name: clignoter;
	animation-iteration-count: 3;
	transition: none;
 }
 @keyframes clignoter {
   0%   { opacity:1; }
   40%   {opacity:0; }
   100% { opacity:1; }
 }

/* Profil */
#container_user_profile{
    z-index: 902;
    position: absolute;
    top: 30px;
    right: 30px;
}
a[data-target="user_action_dropdown"]{
	min-width: 280px;
    height: 50px;
    padding: 3px;
    text-transform: unset;
    background: white;
    padding: 3px 20px;
    border: 1px solid #b1b1b1;
}
#user_action_dropdown{
    border: 1px solid #b1b1b1;
}

progress, progress::-webkit-progress-bar {
	width:100%;
	height:0.5em; 
	border-radius:15px !important;
	overflow: hidden !important;
	border: none !important;
	background-color: rgb(230, 229, 229); 
}

/* value: */
progress.good::-webkit-progress-value {background-color: var(--main-color-first) !important;}
progress.good::-moz-progress-bar {background-color: var(--main-color-first) !important;}
progress.good {color: var(--main-color-first);}

/* value: */
progress.critic::-webkit-progress-value {background-color: var(--main-color-danger) !important;}
progress.critic::-moz-progress-bar {background-color: var(--main-color-danger) !important;}
progress.critic {color: var(--main-color-danger);}


/* Style for the assistance button */
select, textarea{
    border: 1px solid #999898 !important;
}
input[type=text]:not(.browser-default):disabled, 
input[type=number]:not(.browser-default):disabled,
textarea:disabled,
select:disabled{
    border: 1px solid #bdbdbd !important;
    background-color: #e5e5e5 !important;
    color: rgba(0, 0, 0, 0.42);
    opacity: 1 !important;
}