@import "couleur";
@import "variable";

html,body{
    height: 100%;
    @include text-cl($cl-white);
    background-size: 100% !important;
}

body#connexion_commun{
    background: url('../../images/fond.png') no-repeat center center;
    background-size: cover !important;
}

img#logo_application{
    @media screen and (max-width: 915px){
        width:50%;
        max-width:50%;
    }
}

div#div_header{
    @include linear-gradient(to right, $cl-gris, $cl-primary);
}

input.button_cl{
    @include bg-cl($cl-secondary);
    @include text-cl($cl-white);
    @include cursor;
    @include text-medium;
    padding: 10px 25px;
}

input.button_cl:hover{
    @include bg-cl($cl-white);
    @include border-cl($cl-secondary);
    @include text-cl($cl-secondary);
    @include border-medium;
}

input.button_cl.active{
    @include bg-cl($cl-white);
    @include border-cl($cl-secondary);
    @include text-cl($cl-secondary);
    @include border-medium;
}

div#calendar-holder td{
    @include cursor;
}

td.fc-today{
    @include text-cl($cl-primary);
}
/* ------------------------------------ BLOCK ---------------------------------- */
div.container-block{
    display: flex;
    flex-direction: row;
    margin: 5px;
    flex-wrap: wrap;
    div.content-block{
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        padding: 2px;
    }
}


.flex-center{
    display: flex;
    justify-content: center;
    align-items: center;
}

div.container_div_block{
    display: flex;
    flex-wrap: wrap;
    @include over-auto;
}

div.block_tache{
    @include text-cl($cl-secondary);
    @include border-cl($cl-secondary);
    &.fantome{
        @include bg-cl($cl-gris);
        div.div_titre{
            @include text-cl($cl-gris-fonce);
        }
    }
    &.tache_active{
        @include bg-cl($cl-primary);
        div.div_titre{
            @include text-cl($cl-white);
        }
    }
    div.div_titre{
        @include text-small;
    }
}

/* Block width */
div.div_block_4{
    @media screen and (min-width: 1200px){
        width:25%;
        max-width:25%;
    }
    @media screen and (min-width: 915px) and (max-width: 1200px){
        width:50%;
        max-width:50%;
    }
    @media screen and (max-width: 915px){
        width:100%;
        max-width:100%;
    }
}

div.div_block_3{
    @media screen and (min-width: 1200px){
        width:33%;
        max-width:33%;
    }
    @media screen and (min-width: 915px) and (max-width: 1200px){
        width:50%;
        max-width:50%;
    }
    @media screen and (max-width: 915px){
        width:100%;
        max-width:100%;
    }
}

div.div_block_2{
    @media screen and (min-width: 1200px){
        width:50%;
        max-width:50%;
    }
    @media screen and (min-width: 915px) and (max-width: 1200px){
        width:50%;
        max-width:50%;
    }
    @media screen and (max-width: 915px){
        width:100%;
        max-width:100%;
    }
}

div.div_block_1{
    width:100%;
    max-width:100%;
}

/* Position */ 
div.div-rel{
    position: relative;
}

.elem-top-left{
    position: absolute;
    top: 0;
    left: 0;
}

.elem-top-right{
    position: absolute;
    top: 0;
    right: 0;
}

.elem-bot-left{
    position: absolute;
    bottom: 0;
    left: 0;
}

.elem-bot-right{
    position: absolute;
    bottom: 0;
    right: 0;
}

/*------------------------------------- TABLEAU ---------------------------*/
table{
    &.table-center tbody tr td{
        vertical-align: middle;
    }
    &.table_interactif tbody tr{
        @include cursor;
        &.selected{
            @include bg-cl($cl-secondary);
            @include text-cl($cl-white);
        }
        &:hover{
            @include bg-cl($cl-secondary);
            @include text-cl($cl-white);
        }
    }
    &.table_interactif_reverse tbody tr{
        @include cursor;
        &.selected{
            @include bg-cl($cl-white);
            @include text-cl($cl-primary);
        }
        &:hover{
            @include bg-cl($cl-white);
            @include text-cl($cl-primary);
        }
    }
}

/* remplissage pointillé auto */
ul.leaders {
    max-width: 100%;
    padding: 0px;
    padding-top: 5px;
    margin: 15px;
    overflow-x: hidden;
    list-style: none;
    li{
        &:before {
            float: left;
            width: 0;
            white-space: nowrap;
            content:
            ". . . . . . . . . . . . . . . . . . . . "
            ". . . . . . . . . . . . . . . . . . . . "
            ". . . . . . . . . . . . . . . . . . . . "
            ". . . . . . . . . . . . . . . . . . . . "
            ". . . . . . . . . . . . . . . . . . . . "
            ". . . . . . . . . . . . . . . . . . . . "
            ". . . . . . . . . . . . . . . . . . . . "
            ". . . . . . . . . . . . . . . . . . . . "
            ". . . . . . . . . . . . . . . . . . . . "
            ". . . . . . . . . . . . . . . . . . . . "
            ". . . . . . . . . . . . . . . . . . . . "
            ". . . . . . . . . . . . . . . . . . . . "
        }
    }
    span{
       &:first-child {
            padding-right: 0.33em;
       }
    }
    span + span {
        float: right;
        padding-right: 15px;
        padding-left: 15px;
    }
}

div#menu_nav_bar{
    @media screen and (max-width: 915px){
        display: none;
    }
}

ul.ul-enfant{
    padding: 0px;
    display: none;
}

li.nav-link{
    text-align: center;
    box-sizing: border-box;
    border-bottom: 1px solid;
    border-color: $cl-black;
    border-radius: 0px !important;
    @include text-cl($cl-secondary);
    @include cursor;
}

ul.ui-autocomplete{
    list-style: none;
    padding: 0;
    @include bg-cl($cl-white);
    @include text-cl($cl-black);
    li{
        @include cursor;
        padding: 2px;
    }
    z-index: 1055;
}
ul#v-pills-tab{
   li.active{
        @include bg-cl($cl-primary);
        @include text-cl($cl-white);
    } 
}

/* ------------------------     FACTURE    ------------------------------------- */

div#div_devis_factures{
    div.ligne_facture{
        display: flex;
        width: 100%;
    }
    @media screen and (min-width: 1200px)
    {
        font-size:18px;
        height: 1500px;
        div.ligne_facture{
            padding-left: 1rem;
            padding-right: 1rem;
            &.top-bottom-space{
                padding-top: 1rem;
                padding-bottom: 1rem;
            }
        }
        img#img_logo_facture{
            width: 300px;
            height: 150px;
        }
    }
    @media screen and (min-width: 915px) and (max-width: 1200px)
    {
        font-size:16px;
        height: 1200px;
        div.ligne_facture{
            padding-left: 0.5rem;
            padding-right: 0.5rem;
            &.top-bottom-space{
                padding-top: 0.5rem;
                padding-bottom: 0.5rem;
            }
        }
        img#img_logo_facture{
            width: 200px;
            height: 100px;
        }
    }
    @media screen and (max-width: 915px)
    {
        font-size:12px;
        height: 800px;
        div.ligne_facture{
            padding-left: 0.25rem;
            padding-right: 0.25rem;
            &.top-bottom-space{
                padding-top: 0.25rem;
                padding-bottom: 0.25rem;
            }
        }
        img#img_logo_facture{
            width: 100px;
            height: 50px;
        }
    }
    
}

/* ------------------------     IMAGES    ------------------------------------- */
img#logo_application_min{
    @media screen and (min-width: 1200px)
    {
        max-height: 70px;
    }
    @media screen and (min-width: 915px) and (max-width: 1200px)
    {
        width: 120px;
    }
    @media screen and (max-width: 915px)
    {
        width: 100px;
    }
}

/* ---------------------------- SIDEBAR ----------------------------------- */
.sidenav {
    @include bg-cl($cl-tertiary);
    height:100%;
    left:0;
    overflow-x:hidden;
    padding-top:60px;
    position:fixed;
    top:0;
    transition:.5s;
    width:0;
    z-index:1;
    @media screen and (max-height: 450px) {
        padding-top:15px;
    }
}

.sidenavR {
    @include bg-cl($cl-secondary);
    height:100%;
    overflow-x:hidden;
    padding-top: 90px;
    position:fixed;
    right:0;
    top:0;
    transition:.5s;
    width:0;
    z-index:3;
    -moz-box-shadow: 8px 8px 12px $cl-white;
    -webkit-box-shadow: 8px 8px 12px $cl-white;
    box-shadow: 8px 8px 12px $cl-white;
    @media screen and (max-height: 450px) {
        padding-top:15px;
    }
}

.sidenav a, .sidenavR a {
    color:$cl-white;
    display:block;
    @include text-medium;
    padding:8px 8px 8px 32px;
    text-decoration:none;
    transition:.3s;
    @media screen and (max-height: 450px) {
        @include text-small;
    }
}

.sidenav a:hover, .offcanvas a:focus, .sidenavR a:hover, .offcanvas a:focus {
    color: $cl-bleu-clair;
}

.sidenav .closebtn, .sidenavR .closebtn {
    position: absolute;
    right: 0px;
    top: 16px;
}

div.ui-helper-hidden-accessible{
    display: none;
}

div#control_panel{
    justify-content: space-evenly;
}

div.div_modif_type{
    height: 75vh;
}

span.information_supplementaire {
    display: block;
    margin-top: 10px;
    font-weight: bold;
} 

span.text-info{
    margin-top: 30px;
    display: block;
}

.fond_connexion_opaque {
    max-width: 700px;
    background-color: rgba(53,53,53,0.35);
    padding: 2rem 2rem;
}

div.alert-success{
    background-color: rgba(255,255,255,0.3);
    font-weight: 600;
    margin: 15px;
    text-align: center;
}

div.div_rouge,
span.help-block > ul > li{
    color: $cl-rouge !important;
    font-weight: 600;
}

input.input_large{
    border-radius: 5px;
    width: 100%;
}

input.input_small{
    width: 65px;
}

select#facturebundle_interet, select#facturebundle_condition {
  width: 50%;
}