/*!
 * Custom styles à la place du scss
 */


/*
 * ---------------------------------------------------------------
 * FIXES --------------------------------------------------------
 * ---------------------------------------------------------------
*/

body{width:100%;}

.sticky-md-top{
  top: 60px;
}

/*
 * ---------------------------------------------------------------
 * HELPER CLASSES ------------------------------------------------
 * ---------------------------------------------------------------
*/

body{
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
}

.entry-content h1, 
.entry-content h2, 
.entry-content h3, 
.entry-content h4, 
.entry-content h5, 
.entry-content h6 {
    margin-top: 0px;
    font-weight: 700;
    margin-bottom: 0px;
    color: rgb(100, 103, 119);
}

.ft-dark-blue{color: #48B5FF;}
.ft-light-blue{color: #7DDBFF;}
.ft-red{color: #FE4861;}
.ft-green{color: #4DE1B5}

.hov-dark-blue:hover{color: #48B5FF;}
.hov-light-blue:hover{color: #7DDBFF;}
.hov-red:hover{color: #FE4861;}
.hov-green:hover{color: #4DE1B5}
.hover-underline{text-decoration: none;}
.hover-underline:hover{text-decoration: underline;}

.bg-dark-blue{background-color: #48B5FF;}
.bg-light-blue{background-color: #7DDBFF;}
.bg-red{background-color: #FE4861;}
.bg-green{background-color: #4DE1B5}


.btn-outline-primary{
  color: #48B5FF;
  border-color: #48B5FF;
}
.btn-outline-primary:hover{
  border-color: #48B5FF;
  background-color: #48B5FF;
  color: #fff;
}

.btn-outline-red{
  color: #FE4861;
  border-color: #FE4861;
}
.btn-outline-red:hover{
  border-color: #FE4861;
  background-color: #FE4861;
  color: #fff;
}

.btn-outline-green{
  color: #4DE1B5;
  border-color: #4DE1B5;
}
.btn-outline-green:hover{
  border-color: #4DE1B5;
  background-color: #4DE1B5;
  color: #fff;
}



kbd a,
kbd a:hover{
  text-decoration: none;
}

kbd {
    color: #FE4861;
    background-color: transparent;
    border: 1px solid #FE4861;
}
kbd a{color: #FE4861;}
kbd:hover, 
kbd:hover a{
  color: #fff;
  background-color: #FE4861;
}


kbd.kbdgreen{
  color: #4DE1B5;
  border: 1px solid #4DE1B5;
}
kbd.kbdgreen a{color: #4DE1B5;}
kbd.kbdgreen:hover, 
kbd.kbdgreen:hover a{
  color: #fff;
  background-color: #4DE1B5;  
}

/*
 * ---------------------------------------------------------------
 * HEADER --------------------------------------------------------
 * ---------------------------------------------------------------
*/


@media (min-width: 992px) {

  .navbar-expand-lg .navbar-nav#bootscore-navbar {
      flex-direction: row;
      flex: auto;
  }

}
/*
 * ---------------------------------------------------------------
 * FRONT PAGE ----------------------------------------------------
 * ---------------------------------------------------------------
*/


.apexcharts_pie_chart{
  background-color: #fff;
  border: 1px solid #e5e5ea;
}

/*
 * ---------------------------------------------------------------
 * DATATABLES --------------------------------------------------------
 * ---------------------------------------------------------------
*/

table.dataTable{
  font-size: 80%;
}

.dataTables_filter{
  float: left;
  margin-bottom: 1.5em;
}

.dataTables_length{
  float: right;
  margin-right: 1em;
}

.dt-buttons.btn-group{
  float: right;
  margin-bottom: 1em;
}
.dt-buttons.btn-group a.btn-default{
  border: 1px solid #ced4da;
}
.dt-buttons.btn-group a.btn-default:hover{
  border: 1px solid #aaa;
}

table.dataTable td, table.dataTable th{
  padding: 3px 5px;
}

.entry-content .wpdt-c a {
    color: #FE4861;
}

table.dataTable > tbody {
  background-color: #fff;
}

table.dataTable.table-striped > tbody > tr.odd > *,
table.dataTable.table-striped > tbody > tr.even > * {
    box-shadow: none;
    background-color: transparent;
}

table.dataTable > thead,
table.dataTable > tbody > tr{
  box-shadow: 0px -1px 0px inset #eee;
  -webkit-box-shadow: 0px -1px 0px inset #eee;
}

table.dataTable > tbody .btn-light{
  background-color: transparent;
  border:  none;
  color: rgb(100, 103, 119);;
}

table.dataTable > tbody .btn-light:hover,
table.dataTable > tbody .btn-light:focus{
  color: rgb(76, 225, 182);
  background-color: white;
}

table.dataTable thead th, table.dataTable thead td, table.dataTable tfoot th, table.dataTable tfoot td{
  background-color: #fff;
  text-transform: uppercase;
  padding: 10px 0;
}

table.dataTable thead > tr > th.sorting_asc:before, table.dataTable thead > tr > th.sorting_desc:after, table.dataTable thead > tr > td.sorting_asc:before, table.dataTable thead > tr > td.sorting_desc:after{
  color: #FE4861;
  opacity: 1;
}

.beautiful-taxonomy-filters{
  margin: 0;
  margin-bottom: 1.5em;
  background-color: #fff;
  display: flex;
  box-shadow: none;
  -webkit-box-shadow:  none;
}

.beautiful-taxonomy-filters-select-wrap.clearfix{
    width: 80%;
    margin-right: 5%;
}
.beautiful-taxonomy-filters-select-wrap .select2-container{
  width: 100% !important;
}

.beautiful-taxonomy-filters-button{
  margin-top: 0;
  border-radius: 4px;
  color: #48B5FF;
  border-color: #48B5FF;
  background-color: #fff;
  box-shadow: none;
  -webkit-box-shadow: none;
}
.beautiful-taxonomy-filters-button:hover,
.beautiful-taxonomy-filters-button:focus{
  border-color: #48B5FF;
  background-color: #48B5FF;
  color: #fff;
}

.element-statut .progress{
  width: 150px;
  height:10px;
  margin-bottom:5px
}

/*
 * ---------------------------------------------------------------
 * AGENTS --------------------------------------------------------
 * ---------------------------------------------------------------
*/


.post-revisions img,
.hide-if-js{
    display:none;
}

.single-agent tfoot,
.single-agent .dataTables_paginate,
.single-agent .dataTables_info,
.single-agent .dataTables_filter,
.single-agent .dataTables_length,
.single-agent .dt-buttons.btn-group,
.post-type-archive-agent .dt-buttons.btn-group,
.single-etablissement .dt-buttons.btn-group,
body.post-type-archive-dossier.role-author .dt-buttons.btn-group,
h3.beautiful-taxonomy-filters-info-heading{
  display: none;
}

body.role-administrator.post-type-archive-agent .dt-buttons.btn-group,
body.role-editor.post-type-archive-agent .dt-buttons.btn-group
body.role-administrator.single-etablissement .dt-buttons.btn-group,
body.role-editor.single-etablissement .dt-buttons.btn-group{
  display: initial !important;
}

p.beautiful-taxonomy-filters-postcount{
  background-color: #4DE1B5;
  color: #fff;
  border: 1px solid #4DE1B5;
  padding: 0.2rem 0.4rem;
  border-radius: 0.2rem;
  display: inline-block;
}

.beautiful-taxonomy-filters-active-filter{
    background-color: #fff;
    border-radius: 5px;
    box-shadow: none;
    padding: 20px;
    margin: 1em 0em;
    display: flex;
    justify-content: space-around;
    padding-right: 30%;
    }

.single-tax-value{
  color: #4DE1B5;
  border: 1px solid #4DE1B5;
  padding: 0.2rem 0.4rem;
  border-radius: 0.2rem;
  margin-left: °.4rem;
  display: inline-block;
}

/*
 * ---------------------------------------------------------------
 * MESSAGES CHAT -------------------------------------------------
 * ---------------------------------------------------------------
*/

/* références : https://codepen.io/AllThingsSmitty/pen/jommGQ */

.imessage {
  background-color: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 0.25rem;
  display: flex;
  flex-direction: column;
  font-family: "SanFrancisco";
  font-size: 1rem;
  margin: 0 auto 1rem;
  max-width: 600px;
  padding: 0.5rem 1.5rem;
}

.imessage ul,
.imessage p {
  border-radius: 1.15rem;
  line-height: 1.25;
  padding: 0.5rem .875rem;
  position: relative;
  word-wrap: break-word;
    animation: fadeInUp;
    animation-duration: 1s;
}

.from-me a{
    color: #fff;
    text-decoration: underline;
}
.from-them a{
    text-decoration: underline;
}

.imessage ul{
    list-style-type: disc;
    padding-left: 1.5rem;
}

.imessage ul::before,
.imessage ul::after,
.imessage p::before,
.imessage p::after {
  bottom: -0.1rem;
  content: "";
  height: 1rem;
  position: absolute;
}

.from-them{
    max-width: 75%;

}

.from-me{
  align-self: flex-end;
  max-width: 75%;
}

.from-me p {
  align-self: flex-end;
  background-color: #248bf5;
  color: #fff; 
    float: right;
    clear: both;
}

.from-me ul{
    align-self: end;
    background-color: #248bf5;
    color: #fff;
    padding-left: 25px;
    display: block;
    float: right;
    clear: both;
}

.from-me ul:last-child::before, 
.from-me p:last-child::before {
  border-bottom-left-radius: 0.8rem 0.7rem;
  border-right: 1rem solid #248bf5;
  right: -0.35rem;
  transform: translate(0, -0.1rem);
}

.from-me ul:last-child::after,
.from-me p:last-child::after {
  background-color: #fff;
  border-bottom-left-radius: 0.5rem;
  right: -40px;
  transform:translate(-30px, -2px);
  width: 10px;
}

ul[class^="from-"],
p[class^="from-"] {
  margin: 0.5rem 0;
  width: fit-content;
}

.from-me p ~ p{
  margin: 0.25rem 0 0;
}

.from-me p. ~ p:not(:last-child) {
  margin: 0.25rem 0 0;
}

.from-me p ~ p:last-child {
  margin-bottom: 0.5rem;
}

.from-them ul,
.from-them p {
  align-items: flex-start;
  background-color: #e5e5ea;
  color: #000;
}

.from-them p:last-child:before {
  border-bottom-right-radius: 0.8rem 0.7rem;
  border-left: 1rem solid #e5e5ea;
  left: -0.35rem;
  transform: translate(0, -0.1rem);
}

.from-them p::after {
  background-color: #fff;
  border-bottom-right-radius: 0.5rem;
  left: 20px;
  transform: translate(-30px, -2px);
  width: 10px;
}

p[class^="from-"].emoji {
  background: none;
  font-size: 2.5rem;
}

p[class^="from-"].emoji::before {
  content: none;
}

.no-tail::before {
  display: none;
}

.margin-b_none {
  margin-bottom: 0 !important;
}

.margin-b_one {
  margin-bottom: 1rem !important;
}

.margin-t_one {
  margin-top: 1rem !important;
}

.page .logged-in-as,
.imessage .logged-in-as{
  display: none;
}

@font-face {
  font-family: "SanFrancisco";
  src:
    url("https://cdn.rawgit.com/AllThingsSmitty/fonts/25983b71/SanFrancisco/sanfranciscodisplay-regular-webfont.woff2") format("woff2"),
    url("https://cdn.rawgit.com/AllThingsSmitty/fonts/25983b71/SanFrancisco/sanfranciscodisplay-regular-webfont.woff") format("woff");
}



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

  .imessage {
    font-size: 1.05rem;
    margin: 0 auto 1rem;
    max-width: 600px;
    padding: 0.25rem 0.875rem;
  }

  .imessage p {
    margin: 0.5rem 0;
  }
}


/*
 * ---------------------------------------------------------------
 * CONTENTS ------------------------------------------------------
 * ---------------------------------------------------------------
*/

.page .entry-content table {
    border-collapse: collapse;

}

.page .entry-content table,
.page .entry-content th,
.page .entry-content td {
  border: 1px solid #ccc;
  padding: 2px 4px;
}

/*
 * ---------------------------------------------------------------
 * ACF ------------------------------------------------------
 * ---------------------------------------------------------------
*/

.logged-in .select2-container.-acf .select2-selection--multiple .select2-search__field,
#edit-statut .acf-label,
.logged-in .select2-container.-acf .select2-selection--multiple .select2-search__field,
#edit-audiences .acf-label,
div#message.updated {
  display: none;
}

.logged-in #edit-statut .select2-container.-acf .select2-selection{
      border-color: #ccc;
    padding: 0px;
    font-size: 120%;
}

.logged-in #edit-audiences .select2-container.-acf .select2-selection{
    border-color: #ccc;
    padding: 5px;
    font-size: 120%;
}
.page-template-page-dossiers-status-php .card-body .acf-button{
  opacity: 0;
}
.page-template-page-dossiers-status-php .card-body:focus  .acf-button,
.page-template-page-dossiers-status-php .card-body:hover  .acf-button{
  opacity: 1;
}
.page-template-page-dossiers-status-php .acf-label{
  display: none;
}

