/* Personalizzazioni */

input[type="text"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="month"]:focus,
input[type="time"]:focus,
input[type="week"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="color"]:focus,
.uneditable-input:focus {   
  border-color: rgba(2, 103, 170, 0.8) !important;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(2, 103, 170, 0.6) !important;
  outline: 0 none !important;
}

.dataTables_paginate {
  float: left !important;
  padding-left: 10px !important;
  padding-top: 5px !important;
}

.dataTables_length {
  float: left !important;
  padding-top: 5px !important;
  padding-right: 15px !important;
}

.dataTables_scroll {
}

.dataTables_processing {
  border: 1px solid gray;
}

.dataTables_wrapper {
}

.dataTables_filter {
}

.dataTables_info {
  text-align: right;
  padding-top: 25px !important;
}

thead {
  background-color: #f7f7f7;
  border: none;
}

tfoot {
  background-color: #f7f7f7;
}

tr {
  border-left: solid 1px #d9dee3;
  border-right: solid 1px #d9dee3;
  border-top: none;
}

th { 
  border-left: solid 1px #d9dee3; border-right: solid 2px #d9dee3;
  border-top: solid 1px #d9dee3; border-right: solid 2px #d9dee3;
  color: white;
  border-bottom: none; 
}

td {
  border-left: solid 1px #d9dee3;
  border-right: solid 1px #d9dee3;
  border-top: 0px;
}

tfoot {
  font-weight: bold;
}

table tbody td {
  max-height: 7px;
  min-height: 7px;
  font-size: 12px;
  color: black; 
}

.dataTables_length {
  margin-top: -0px !important;
}

.dataTables_paginate {
  padding-top: 0px;
  float: left;
}

.dataTables_filter {
  margin-top: -0px !important;
}

.dataTables_info {
  margin-top: -20px;
}

tbody {
  color: #004372;	
}

.text-light {
  vertical-align: top; 
  color: #004372 !important;
}

.divider .divider-text {
  color: #004372;
  font-weight: bold;
}

#frmRicerca_Lista { 
  float: left; 
  list-style: none; 
  margin-left: 20px; 
  margin-top: 20px; 
  padding: 0; 
  width: 500px; 
  position: relative;
  border: 1px solid #0267aa;
  border-radius: 3px;
}

#frmRicerca_Lista li { 
  padding: 10px; 
  background: #f0f0f0; 
  border-bottom: #0267aa 1px solid;
}
      
#frmRicerca_Lista li:hover { 
  background: #004372;
  color: white; 
  cursor: pointer;
}

.table-scroll {
  position: relative;
  width: 100%;
  z-index: 1;
  margin: auto;
  overflow: auto;
  height: 500px;
}

.table-scroll table {
  width: 100%;
  margin: auto;
  border-collapse: separate;
  border-spacing: 0;
}

.table-wrap {
  position: relative;
}

.table-scroll th,
.table-scroll td {
  padding: 10px 4px;
  border: 1px solid lightgray;
  background: #fff;
  vertical-align: top;
}
.table-scroll thead th {
  background: #0267aa;
  color: #fff;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
}

.table-scroll tfoot,
.table-scroll tfoot th,
.table-scroll tfoot td {
  position: -webkit-sticky;
  position: sticky;
  bottom: 0;
  background: #0267aa;
  color: #fff;
  z-index:4;
}

.table-scroll th {

  font-size: 10px;
}

th:first-child {
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  z-index: 2;
}
thead th:first-child,
tfoot th:first-child {
  z-index: 5;
}

div.scrollmenu {
  overflow: auto;
  white-space: nowrap;
  margin-bottom: 15px;
  padding-bottom: 15px;
}

div.scrollmenu .card {
  border: 1px solid gray; 
  margin-right: 10px; 
  margin-left: 10px; 
  margin-bottom: 10px;
  border-radius: 10px;
}

/* Import Google font - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

.current-date{
  font-family: 'Poppins', sans-serif;
}
	
.wrapper{
  width: 450px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}
.wrapper header{
  display: flex;
  align-items: center;
  padding: 5px 30px 0px;
  justify-content: space-between;
}
header .icons{
  display: flex;
}
header .icons span{
  height: 38px;
  width: 38px;
  margin: 0 1px;
  cursor: pointer;
  color: #878787;
  text-align: center;
  line-height: 38px;
  font-size: 1.9rem;
  user-select: none;
  border-radius: 50%;
}
.icons span:last-child{
  margin-right: -15px;
}
header .icons span:hover{
  background: #f2f2f2;
}
header .current-date{
  font-size: 1.45rem;
  font-weight: 500;
}
.calendar{
  margin: 0;
  margin-left: -40px;
  padding: 20px;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}
.calendar ul{
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  text-align: center;
}
.calendar .days{
  margin-bottom: 10px;
}
.calendar li{
  color: #333;
  width: calc(100% / 7);
  font-size: 1.07rem;
}
.calendar .weeks li{
  font-weight: 500;
  cursor: default;
}
.calendar .days li{
  z-index: 1;
  cursor: pointer;
  position: relative;
  margin-top: 25px;
}
.days li.inactive{
  color: #aaa;
}
.days li.active{
  color: #fff;
}
.days li::before{
  position: absolute;
  content: "";
  left: 50%;
  top: 50%;
  height: 40px;
  width: 40px;
  z-index: -1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.days li.active::before{
  background: #9B59B6;
}
.days li:not(.active):hover::before{
  background: #f2f2f2;
}

/* E' stato necessario personalizzare lo sweet alert perchè             */
/* a causa dell'inserimento nel calendario di ordini / preventivi       */
/* e fatture per qualche motivo lo sweet alert che compariva in         */
/* caso di modifica dei dati del calendario non appariva in primo piano */

.swal2-container {
  z-index: 100000 !important;
}

#modalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: none; /* inizialmente nascosto */
  align-items: center;
  justify-content: center;
  z-index: 8999;
}

#modSpinner {
  border-radius: 20px;
  width: 340px;
  background-color: #0764a1;
  padding: 1rem;
  color: white;
  z-index: 9000;
}

.btnCon_Riquadro {
  color: #566a7f;
  display: inline-flex;     
  justify-content: center;  
  align-items: center;      
  width: 50px;              
  height: 50px;             
  padding: 0;               
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #f9f9f9;
  text-align: center;
  margin-right: 10px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}
.btnCon_Riquadro svg, .btnCon_Riquadro span {
  max-width: 70%;           
  max-height: 70%;
}
.btnCon_Riquadro:hover {
  color: white;
  background-color: gray;
}

.spinnerAnomalie_Blocco {
  position: relative;
  display: inline-block;
  width: 2rem;   /* stessa larghezza dello spinner */
  height: 2rem;  /* stessa altezza dello spinner */
  margin-left: 10px;
  top: 3px;
}

.spinnerAnomalie_Esclamativo {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;  /* colore del punto esclamativo */
  font-weight: bold;
  font-size: 1rem; /* dimensione testo */
  pointer-events: none; /* per evitare che interferisca con lo spinner */
}