

$primaryColor:  #302a21 ;
$secondaryColor: #372d1b;
$accentColor: #d4af37;
$secondaryColorlight: #6e6e6e;
//  #3a342a, #d4af37, utilise ces couleurs

$greyLight:  #EAF5FB;
$primaryLight:  #6cb483;
$secondaryDark : #27221c;

.bgprimary{
    background-color: $primaryColor !important;
   }
.bgprimarydark{
    background-color: $secondaryDark !important;
   }


.is-info{
    background-color: $accentColor !important;
    color: white !important;
}

.bggrey{
    background-color: $greyLight !important;
   }
   
.bgsecondarylight{
    background-color: rgba($color: $secondaryColor, $alpha: .3) !important;
    }

.colorPrimary{
    color: $primaryColor !important;
}
.colorPrimaryDark{
    color: $primaryColor !important;
}

.accentColor{
    color: $accentColor !important;
}

.white{
    color: white !important;
}


.navbar-link {
    color: $accentColor  !important;
    background-color: transparent;
}

.navbar-link:hover {
    color: $primaryColor  !important;
    background-color: transparent;
}


html {
    scroll-behavior: smooth;
}

///////////////// CONSTANT
/// 
.ic-accent{
    color: $accentColor;
}

.pointed{
    cursor: pointer;
}
h1.title{

    // font-size: 52px !important;
    font-weight: bold !important;
    // font-family: $delhi;
}

h2.title{

    font-size: 48px !important;
    font-weight: bold !important;
    // font-family: $delhi;
}

.mybtnSpe{
    display: block !important;
    border: 3px solid $primaryColor;
    padding: 13px 35px;
    width: 230px;
    text-decoration: none;
    color: $primaryColor;
    background-color: transparent;
    font-size: 15px;
    font-weight: bold;
    // font-family: $lato !important;
    transition: 1s;
    border-radius: 5px ;
    cursor: pointer;
}

.mybtnSpe:hover{
    transition: 1s;
    
}
.accent-color{
    color: $accentColor !important;
}

.primary-dark-color{
    color: $primaryColor !important;
}

.primary-color{
    color: $primaryColor !important;
}

.bg-accent-light{
    background-color: rgba($color: $accentColor, $alpha: .15) !important;
}

.bg-accent{
    background-color: $accentColor !important;
    color: $primaryColor;
}
.bg-primary-dark{
    background-color: $primaryColor !important;
}
.bg-primary{
    background-color: $primaryColor !important;
}

.bg-gris-light{
    background-color: rgba($color: $greyLight, $alpha: .7);
}

.primary-color{
    color: $primaryColor !important;
}

button.is-primary{
    background-color: $primaryColor !important;
    color: white;
    transition: 0.5s;
    padding-right: 20px;
}

button.is-primary:hover{
    transition: 0.5s;
    background-color: $accentColor !important;
    color: $primaryColor;
}
button.is-login:hover{

    color: #f2f2f2 !important;
}


.search-input::placeholder{
    color: rgba(255, 255, 255, 0.418);
}

.search-input:active{
    outline: none;
}

.search-input{
    color: white;
}

.btn-search{
    transition: 0.2s;
    padding: 12px;
    cursor: pointer;
    border-radius: 100px;
    color: white;
    background-color: rgba($color: $accentColor, $alpha: .5);
}

.btn-search:hover{

    transition: 0.2s;
    transform: scale(1.1) !important;
}
.sgsn-title{
    font-family: Poppins;
    font-weight: 700 !important;
    font-size: 32px !important;
    text-align: center;
    margin: 20px 0 !important;
}
h2.title{

    font-weight: bold;
    // font-family: $delhi;
    color: $primaryColor;
}

.slide-right{
    transition: 0.5s;
}
.slide-right:hover{
    margin-left: 15px !important;
    transition: 0.5s;
}

.slide-top{
    transition: 0.5s;
}
.slide-top:hover{
    margin-bottom: 15px !important;
    transition: 0.5s;
}

.slide-left{
    transition: 0.5s;
}
.slide-left:hover{
    margin-right: 15px !important;
    transition: 0.5s;
}

/////////////////////////////////////////

body{

    margin: 0;
    padding: 0;

    color: $secondaryDark;

    input{
        color: $secondaryDark !important;
    }
    textarea{
        color: $secondaryDark !important;
    }
}



// ======================= AUTH =======================

.auth-container{
    
    
    
    height: 100vh;
    .login-card{
        
        background-color: white;
        box-shadow: 3px 2px 2px rgba(0, 0, 0, 0.05);
        // margin-top: 38%;
        width: 80%;
        border-radius: 8px;
        
        height: fit-content;
        
    }
}

.control.has-icons-left .input:focus~.icon, .control.has-icons-left .select:focus~.icon, .control.has-icons-right .input:focus~.icon, .control.has-icons-right .select:focus~.icon{

    color: $accentColor !important;
}


// ======================= Dashboard =======================


section.section.is-title-bar ul li:last-child{
    color: $primaryColor !important;
}


aside.aside{

    background: $secondaryDark  !important;

    .aside-tools{
        background: #675f2b  !important;
    }

    .menu-list a{
        transition: .5s !important;


        margin: 13px;
        border: 1px solid #372b0c;
        color: white;
        border-radius: 10px;
        padding: 12px 0;
    }
    .menu-list a:hover{
        transition: .5s !important;
        background-color: rgba($color: $primaryColor, $alpha: .1);
        
        
    
    }
    .menu-list a.is-active{
        transition: .5s !important;
        // background-color: rgba($color: $primaryColor, $alpha: .3);
        background-color: #453610;
    }
}

.label{
    color: $primaryColor !important;
}
.title{
    color: $primaryColor !important;
}

.card-header-title {
    color: $secondaryColor !important;
}
.card-header-icon {
    color: $accentColor !important;
}

#menu-partner > span.menu-item-label{
    max-width: 120px !important;
}

#imgaddbtn{
 transition: .5s;
    margin-right: 10px !important;
}

#imgaddbtn:hover{
 transition: .5s;
 transform: scale(0.96);
    
}

.imgsadded{
    transition: 0.5s;
    margin-right: 6px !important;
}
.imgsadded:hover{
    transition: .5s;
    transform: scale(.98);
}

.equipment-tag{

    transition:  .5s !important;
}


.equipment-tag:hover{
    
    background-color: rgba($color: $accentColor, $alpha: .3);
}

.equipment-tag.is-active{

    background-color: $accentColor !important;
}

input[type="checkbox"]:checked {
    background-color: $accentColor !important;
    accent-color: $accentColor !important;
  }
  
.b-checkbox.checkbox input[type=checkbox]:checked+.check{
    background-color: $accentColor !important;
    accent-color: $accentColor !important;
  }


  .modal-card {
    min-height: 50vh    !important;
    width: 60vw    !important;
    border-radius: 7px;
  }

  .dropdown-item{
    color: $primaryColor !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    padding: 10px 20px !important;
    transition: .5s !important;
    border-radius: 8px;
    background-color: rgba(242, 242, 242, 0.329)  !important;

    &:hover{
        cursor: pointer;
        background-color: rgb(242, 242, 242)  !important;
        color: $primaryColor !important;
    }
  }


 
#contracts-table tbody tr {
    vertical-align: middle;
  }
   
  #contracts-table td img {
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    background-color: #f5f5f5;
  }
  
  
  #contracts-table .button.is-info {
    background-color: #3273dc;
    color: white;
  }
  #contracts-table .button.is-danger {
    background-color: #f14668;
    color: white;
  }
  
  
  #contracts-table th,
  #contracts-table td {
    border-bottom: 1px solid #eaeaea;
  }
  

  .dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 5px;
    padding: 5px 10px;
    margin: 0 2px;
    background-color: #f5f5f5;
    border: 1px solid #dbdbdb;
  }
  
  .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    
    background-color: $accentColor !important;
    color: white !important;
  }
  
  
  .dataTables_wrapper .dataTables_filter input,
  .dataTables_wrapper .dataTables_length select {
    border: 1px solid #dbdbdb;
    border-radius: 4px;
    padding: 3px 8px;
  }

  .pagination-link {
    font-size: 12px !important;
    
  }
  .pagination-link.is-current {
    background-color: $accentColor !important;
    color: white !important;
  }

  #contracts-table .button, #employees-table .button, #prestations-table .button,
  #invoices-table .button {
    width: 9px !important;
    height: fit-content !important;
  }

  #contracts-table_filter > label > input,
  #employees-table_filter > label > input, #prestations-table_filter > label > input,
  #invoices-table_filter > label > input {
    
    height: 40px !important;
    border-radius: 5px !important;
    padding: 10px !important;
    border: 1px solid $accentColor !important;
    background-color: rgba(237, 237, 237, 0.259) !important;
    color: $primaryColor !important;
  }

  #contracts-table > tbody > tr:hover, table.dataTable.is-hoverable>tbody>tr:hover>*,
  #employees-table > tbody > tr:hover, table.dataTable.is-hoverable>tbody>tr:hover>*,
  #prestations-table > tbody > tr:hover, table.dataTable.is-hoverable>tbody>tr:hover>*,
  #invoices-table > tbody > tr:hover, table.dataTable.is-hoverable>tbody>tr:hover>* {
    transition: .5s;
    // background-color: rgba(248, 248, 248, 0.047) !important;
    box-shadow: unset !important;
  }

  
.dataTables_processing {
    background-color: rgba(255, 255, 255, 0.9); 
    color: $accentColor !important;  
    font-weight: bold;
    border-radius: 5px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }


  #contracts-table_length > label > div > select, #employees-table_length > label > div > select,
  #prestations-table_length > label > div > select,
  #invoices-table_length > label > div > select {
    width: 70px !important;
  }


  
  
//   .dataTables_wrapper .dataTables_processing {
//     position: absolute;
//     top: 50%;
//     left: 50%;
//     width: auto;
//     transform: translate(-50%, -50%);
//     z-index: 10;
//   }

//   form .input, .select{
//     min-width: 220px !important;
//   }
//   form .unsized{
//     width: 100% !important;
//   }

// span.check {
//     color: $primaryColor !important;
//     font-size: 20px !important;
//     margin-right: 10px !important;
//     background-color: $accentColor !important;
// }



// =========================================================





@media only screen and (max-width: 700px) {

    .login-card{
        margin-top: 0 !important;
        // width: 95vw !important;
        height: fit-content !important;
    }

    .modal-card {
        width: 95vw !important;
    }
    
}