@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.3.0/font/bootstrap-icons.css");

/*
    Custom style for CRM app
*/
.top-nav,
.container{
    max-width: 152rem;
}


body,.top-nav-links, .side-nav, h1, h2, h3, h4, h5, h6 {
    font-family: myriad-pro, sans-serif;
}

.top-nav-links, .side-nav, h1, h2, h3, h4, h5, h6{
  font-weight: bold;
}

.top-nav-title a {
    font-size: 2.4rem;
    color: #6D4B6A;
}


.action-icon i{
  font-size:.8em;
  margin-left:10px;
  margin-top:-10px;
}


.class-table td,
.class-table th{
    padding:10px;
}

.class-table thead{
    background-color: #6D4B6A;
}

.class-table thead td,
.class-table thead th,
.class-table thead th a{
    color:#fff !important;
    font-weight:bold;
}

label{
  margin: 20px 0 0 ;
  font-size: 1.1em;
}

button{
  font-size: .95em;
}

legend{
  color: #000;
  font-size: 1.5em;
}

.cf_tbl_col{
  text-align: center;
}

.cf_prev_col{
  border-left:1px solid #000;
}

.cf_real_col{
  border-right:1px solid #000;
}



.cf_prev_col span,
.cf_real_col span,
.cf_dinamic_col span{
  clear: both;
  font-weight: bold;
  font-size: 10px;
  display: block;
}


.subsection{
  padding:2% 4% 1%;
}

.border-right{
  border-right: 1px solid #eee;
}

.actions a{
    background-color: #6D4B6A;
    color: #fff;
    font-weight: 700;
    padding:5px 10px;
    border-radius: 4px;
    margin: 5px 2px;
    text-align: center;
    font-size: .85em;
}

.actions a:hover{
    background-color: #000;
    color: #fff !important;
}

.year-btn{
  width: 100%;
  margin-bottom:20px;
  font-size: 1.95em;
  font-weight: bold;
}

.table-value{
  font-weight: bold;
  text-align: center;
  font-size: 1.5em;
}

.workingdays td, .transitdays td{
  text-align: center;
}

.changeyear{
  text-align: center;
}

.changeyear a.btn{
  margin:20px 10px;
  font-size: 1.4em;
}

tr.totals{
  background-color:lightgray;
}

  a {
    text-decoration: none;
  }
  
  /* The Mobile Menu that appears on click */
  .mobile-menu {
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    min-height: 100%;
    height: 100%;
    background: grey;
    margin: 0;
    position: fixed;
    opacity: 0;
    pointer-events: none;
    transition: 0.5s;
    overflow: scroll;
    /* The desktop menu styles */
    /* When button is clicked, open class is added to menu to show it */
  }
  @media (min-width: 1024px) {
    .mobile-menu {
      float: right;
      position: relative;
      left: auto;
      right: auto;
      bottom: auto;
      top: auto;
      min-height: auto;
      height: auto;
      padding: 0;
      width: auto;
      background: transparent;
      display: block;
      opacity: 1;
    }
  }
  .mobile-menu.open {
    opacity: 1;
    pointer-events: all;
  }
  
  /* Main Navigation in header for desktop */
  .main-menu {
    margin: 100px 0;
    padding: 0;
  }
  @media (min-width: 1024px) {
    .main-menu {
      width: 600px;
      margin: 0 auto;
    }
  }
  .main-menu__item {
    padding: 0;
    display: block;
    position: relative;
  }
  @media (min-width: 1024px) {
    .main-menu__item {
      float: left;
      display: block;
    }
  }
  .main-menu__link {
    border-bottom: 0;
    color: white;
    font: bold 15px/15px Arial;
    display: block;
    padding: 20px;
    position: relative;
  }
  @media (min-width: 1024px) {
    .main-menu__link {
      float: left;
      color: black;
    }
  }
  .main-menu__link:hover, .main-menu__link:focus, .main-menu__link:active {
    border-bottom: 0;
    background: black;
    color: white;
  }

td.centered{
  text-align: center;
}

.box-kpi{
  text-align: center;
}

.innertable{
  width: 70%;
  float: left;
  font-size: .9em;
  text-align: center;
}

.innertable-last{
  width: 30%;
  border-left:1px solid #000;
}

  aside.column{
    width:30px !important;
  }

  @media screen and (max-width: 640px){
    table thead td:first-child, table thead th:first-child {
        padding-left: 10px !important;
    }

    .content .button.float-right{
        width:100%;
    }

    .content h3{
        text-align: center;
    }

    .table-responsive{
        margin-bottom: 30px;
    }
  }


  .actions a{
    margin: 5px 2px;

  }


footer{
  text-align: center;
  font-size: .85em;
  margin-top:30px;
  margin: 30px 40px;
}



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

  table tbody {
    display:block;
  }

  .btn-group{
    width: 230px;
    display: block;
    text-align: center;
  }
  .actions a{
    margin: 5px 2px;
    display: block;
    float:left;
  }

  .boxtable  tr { 
    display: flex !important; 
    flex-direction: row !important;
    flex-wrap: wrap !important;
    flex-flow: row wrap;
    width: 100%;
    margin: 0.5em 0;
    border: 1px solid rgba(3,3,3,0.2);
  }
  .boxtable td, .boxtable th {
    flex: 1 1 150px;
    border: 0.5px solid rgba(3,3,3,0.2);
  }
  .boxtable td.edit-buttons, .boxtable  td.empty {
    flex: 1 0 90%;
    text-align: center;
  }
}


.users.form.login{
  max-width: 330px;
  padding: 15px;
  margin: 20px auto;
  background-color: #fff;
}



input.input-grid{
  width: 120px;
  border-radius: 0;
  box-shadow: 1px 1px 4px -4px #330;
  margin: 0;
  height: 30px;
  background: #fff;
}

.row-total{
  font-weight: bold;
}

.amount_value{
  cursor: pointer;
}

.total_category{
  border-bottom: 4px solid #000;
}

.cashflows{

  overflow-x: auto !important;
}

.cashflows table{
  font-size: 1.05em;
  line-height: 18px;
}

.cashflows table td.cf_month_col {
  text-align: center;
}

.cashflows table td.col-eff{
   border-right: 2px solid #000;
}

.cashflows .vertical_label{
  padding: 4px 6px;
}

.cashflows .info-col{
  font-weight: normal;
  font-style: italic;
}


.gl_day_col .day_value,
.passaggi_reali_col .day_value{
  cursor: pointer;
}

.gl_day_col .day_value:hover,
.passaggi_reali_col .day_value:hover{
  font-weight: bold;
}


.modal .select2-selection > span{
  z-index: 9999 !important;
}

.select2-container--open {
  z-index: 9999999
}

.select2-search__field{
  min-height: 0;
}

.dataTables_length select{
  width: 62px !important;
}


.actions a {
  line-height: 16px;
  text-transform: uppercase;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{
  top:-7px !important;
}


.gl_day_col:hover,
.passaggi_reali_col:hover{
  background-color: yellow;
  cursor: pointer;
  font-weight: bold;
}


th:first-child, td:first-child {
  position: sticky;
  left: 0;
  background-color: white;  /* Scegli un colore di sfondo appropriato */
  z-index: 1;  /* Assicurati che la colonna rimanga sopra gli altri elementi */
  border-right:3px solid #000;
  border
}