/* Custom su stili Start Bootstrap (https://startbootstrap.com/previews/sb-admin) */
:root{
  --bs-font-sans-serif: "Open Sans", sans-serif;
  /*--bs-font-sans-serif: "open sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";*/
  --bs-body-font-size: 0.85rem;
  --bs-body-bg: #f1f5fe;
  --bs-border-color-translucent: rgba(0, 0, 0, 0.15);
}
.card{
  --bs-card-border-width: 0px;
}
.shadow{
  box-shadow: 0 1px 4px 0px rgb(0 0 0 / 15%) !important;
}

/* Per la stampa */ 
@media print{
  * {
    background: rgba(0, 0, 0, 0) !important;
    color: rgb(0, 0, 0) !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  .card{
    border: 1px solid #808080;
    box-shadow: none;
  }
}

/* Login */
#layoutAuthentication{
  background-color: #f1f5fe;
  background-size: 100% 100%;
  background-position: 0px 0px,0px 0px,0px 0px,0px 0px,0px 0px,0px 0px,0px 0px;
  background-image: radial-gradient(18% 28% at 18% 71%, #FFFFFF59 6%, #073AFF00 100%),radial-gradient(70% 53% at 36% 76%, #F1F5FEFF 0%, #073AFF00 100%),radial-gradient(18% 28% at 35% 87%, #FFFFFFFF 7%, #073AFF00 100%),radial-gradient(35% 56% at 91% 74%, #f1f5fe 9%, #073AFF00 100%),linear-gradient(90deg, #F1F5FEFF 0%, #D1ECF3FF 100%);
}
@media (min-width: 768px) {
  #layoutAuthentication_content{
    background-size: 500px; 
  }
}
@media (min-width: 1200px) {
  #layoutAuthentication_content{
    background-size: 600px; 
  }
}
#layoutAuthentication .impianto__logo{
  margin: 0 auto 0 auto;
  background: #fff;
  border-radius: 50%;
  padding: 5px;
}
#layoutAuthentication .impianto__logo img{
  object-fit: contain;
  height: 80px;
}

/* Floating inputs smaller */
.form-floating>.form-control,
.form-floating>.form-control-plaintext {
  padding: 0rem 0.75rem;
}
.form-floating>.form-control,
.form-floating>.form-control-plaintext,
.form-floating>.form-select {
  height: calc(2.5rem + 2px);
  line-height: 1;
}
.form-floating>label {
  padding: 0.6rem 0.75rem;
}
.form-floating > .form-control:focus, .form-floating > .datatable-input:focus, .form-floating > .form-control:not(:placeholder-shown), .form-floating > .datatable-input:not(:placeholder-shown), .form-floating > .form-control-plaintext:focus, .form-floating > .form-control-plaintext:not(:placeholder-shown){
  padding-top: .9rem;
  padding-bottom: .1rem;
}

/* Navbar > Logo SummeGest*/
.navbar-brand{
  text-decoration: none;
  white-space: nowrap;
}
.navbar-brand > .summergest__simbolo{
  display: inline-block;
  width: 31px;
  height: 30px;
  fill: #fff;
}
.navbar-brand > .summergest__testo{
  display: inline-block;
  width: 117px;
  height: 30px;
  fill: #fff;
}
.navbar-brand > .summergest__link:hover .summergest__simbolo,
.navbar-brand > .summergest__link:hover .summergest__testo{
  fill: #fff;
}

/* Map Controls */
.custom-controls{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: center;
  row-gap: 10px;
  position: absolute;
  z-index: 999;
  /*top: 0;
  left: 0;*/
  margin: 10px;
}
.custom-controls a{
  text-decoration: none;
}
.custom-controls > a div{
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1/1;
  height: auto;
  font-size: 1.25rem;
  width: 45px;
  color: #fff;
  background: var(--bs-dark);
  background-size: 100% 100%;
  background-position: 0px 0px;
  -webkit-box-shadow: 0px 0px 10px 0px rgba(255,255,255,0.5);
  box-shadow: 0px 0px 10px 0px rgba(255,255,255,0.5);
  transition-duration: 0.2s;
}
.custom-controls > a div:hover {
  transform: scale(1.2);
}
#full-page{ /* nasconde button fullscreen */
  display: none !important;
}
/* Map */
.map{
  width: 100%;
  height: 70svh;
  overflow: hidden;
  border: none;
  background: #aaa;
  border-radius: var(--bs-border-radius);
  background-size: cover;
  background-position: center center;
}
.markerfree,
.markerbooked,
.markerwaiting{
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-family: arial, sans-serif;
  font-weight: bold;
  font-size: 14px; /* 16px; */
  line-height: 30px;
  text-decoration: none;
  vertical-align: middle;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  outline: 2px solid #fff; /* better use outline than border (border affect the size of the element causing a misplacement) */
  transition-duration: 0.2s;
  transition-property: transform; /* Important, to animate just scaling on mouse hover; otherwise, apply the animation to all movements when markers are panned and zoomed.  */
  /* Commentata l'ombra perchè con molti overlays faceva laggare il pan e zoom su cell */
  /*-webkit-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.7);
  box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.7);*/ 
}
.markerfree{
  color: #fff;
  background: #1BC900;
}
.markerbooked,
.markerwaiting{
  color: rgba(255,255,255,0.6);
  background: #aaa;
  cursor: help; /*cursor: not-allowed;*/
}
.markerfree:hover, .markerfree:focus{
  transform: scale(1.2);
  color: #fff;
}
.markerbooked:hover, .markerbooked:focus,
.markerwaiting:hover, .markerbooked:focus{
  color: rgba(255,255,255,0.6);
}
/* Messaggio chisura */
.mapclosed{
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  height: 100%;
  background-color: rgba(225, 225, 225, 0.7); /* Sfondo trasparente */
  backdrop-filter: blur(5px); /* Effetto blur */
}

/* Footer > logo Summergest */
.footer__bysiteland{
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding-bottom: 10px;
}
.summergest__link{
  text-decoration: none;
  white-space: nowrap;
}
.summergest__simbolo{
  display: inline-block;
  width: 31px;
  height: 30px;
  fill: rgba(0,0,0,.2);
}
.summergest__testo{
  display: inline-block;
  width: 117px;
  height: 30px;
  fill: rgba(0,0,0,.2);
}
.summergest__link:hover .summergest__simbolo,
.summergest__link:hover .summergest__testo{
  fill: #2636AC;
}

/* Data tables custom (riscrittura custom di https://cdn.jsdelivr.net/npm/vanilla-datatables@latest/dist/vanilla-dataTables.min.css) */
.dataTable-wrapper.no-header .dataTable-container {
  border-top: 1px solid #d9d9d9
}
/*.dataTable-wrapper.no-footer .dataTable-container {
  border-bottom: 1px solid #d9d9d9
}*/
/*.dataTable-bottom,
.dataTable-top {
  padding: 8px 10px
}*/
.dataTable-bottom>div:first-child,
.dataTable-top>div:first-child {
  float: left
}
.dataTable-bottom>div:last-child,
.dataTable-top>div:last-child {
  float: right
}
.dataTable-selector {
  padding: 6px
}
.dataTable-input {
  padding: 6px 12px
}
.dataTable-info {
  margin: 7px 0
}
.dataTable-pagination ul {
  margin: 0;
  padding-left: 0
}
.dataTable-pagination li {
  list-style: none;
  float: left
}
.dataTable-pagination a {
  border: 1px solid transparent;
  float: left;
  margin-left: 2px;
  padding: 6px 12px;
  position: relative;
  text-decoration: none;
  color: #333
}
.dataTable-pagination a:hover {
  background-color: #d9d9d9
}
.dataTable-pagination .active a,
.dataTable-pagination .active a:focus,
.dataTable-pagination .active a:hover {
  background-color: #d9d9d9;
  cursor: default
}
.dataTable-pagination .disabled a,
.dataTable-pagination .disabled a:focus,
.dataTable-pagination .disabled a:hover,
.dataTable-pagination .ellipsis a {
  cursor: not-allowed
}
.dataTable-pagination .disabled a,
.dataTable-pagination .disabled a:focus,
.dataTable-pagination .disabled a:hover {
  cursor: not-allowed;
  opacity: .4
}
.dataTable-pagination .pager a {
  font-weight: 700
}
.dataTable-table {
  max-width: 100%;
  width: 100%;
  border-spacing: 0
}
.dataTable-table>tbody>tr>td,
.dataTable-table>tbody>tr>th,
.dataTable-table>tfoot>tr>td,
.dataTable-table>tfoot>tr>th,
.dataTable-table>thead>tr>td,
.dataTable-table>thead>tr>th {
  /*vertical-align: top;*/
  padding: 8px 10px
}
.dataTable-table th,
.dataTable-table>tfoot>tr>th,
.dataTable-table>thead>tr>th {
  vertical-align: bottom;
  text-align: left
}
.dataTable-table>thead>tr>th {
  border-bottom: 1px solid #d9d9d9
}
.dataTable-table>tfoot>tr>th {
  border-top: 1px solid #d9d9d9
}
.dataTable-table th a {
  text-decoration: none;
  color: inherit
}
.dataTable-sorter {
  display: inline-block;
  height: 100%;
  position: relative;
  width: auto;
}
.dataTable-sorter::after,
.dataTable-sorter::before {
  content: "";
  height: 0;
  width: 0;
  position: absolute;
  right: -12px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  opacity: .2
}
.dataTable-sorter::before {
  border-top: 4px solid #000;
  bottom: 5px
}
.dataTable-sorter::after {  
  border-bottom: 4px solid #000;
  border-top: 4px solid transparent;
  bottom: 12px;  
}
.asc .dataTable-sorter::after,
.desc .dataTable-sorter::before {
  opacity: .6
}
.dataTable-sorter:empty,
.dataTable-sorter:empty::before,
.dataTable-sorter:empty::after{
  display: none; /* non mostra le frecce per l'ordinamento se la colonna non ha testo nel th */
}
.dataTables-empty {
  text-align: center
}
.dataTable-bottom::after,
.dataTable-top::after {
  clear: both;
  content: " ";
  display: table
}


/* DA VERIFICARE */
/*.toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 5px;
}

.toggle-switch-label {
  display: inline-flex;
  align-items: center;
  padding: 0.25em 0.5em;
  background-color: #f8f9fa;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 0.875rem; 
}

.toggle-switch-label input[type="radio"] {
  display: none;
}

.toggle-switch-label input[type="radio"]:checked + span {
  background-color: #0d6efd;
  color: white;
  border-color: #0d6efd;
}

.toggle-switch-label span {
  padding: 0.25em 0.5em;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}*/

.customRadio.is-invalid {
  border: 1px solid #f00;
}

/*  */

/* classi colori male-female */

.male{
  color:#0d6efd;
}

.female{
  color: #d63384;
}

#cap_suggerito {
  width: auto;
  max-width: 6ch;
}

.underline-span {
  border-bottom: 1px solid black;
  flex-grow: 1;
}

/* DASHBOARD */
.countup {
  font-size: 3.5rem;
}

@media (min-width: 1200px) {
  .countup {
    font-size: 4.5rem;
  }
}

.flex-grow-1 {
  flex-grow: 1;
}

.sticky-bottom {
  position: sticky;
  bottom: 0;
  z-index: 100; /* Garantisce che rimanga sopra altri contenuti, se necessario */
  background-color: white; /* Garantisce uno sfondo uniforme */
}


/* stili per i pulsanti per ordinare le colonne (elenco anagrafiche e soci) */

.btn-link {
  color: #007bff;
  text-decoration: none;
  font-size: 1.2em;
}

.btn-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

.fa-sort-up, .fa-sort-down {
  transition: transform 0.2s ease-in-out;
}

.fa-sort-up {
  transform: rotate(0deg);
}

.fa-sort-down {
  transform: rotate(180deg);
}

