
/* v.24.12.16
generic css style for site
###
24.12.16 - Nuove funzinalità
24.10.31 - Miglioramento styling Anagrafica
24.10.28 - tooltip
24.10.11 - Styling Anagrafica
22.12.30 - colorpicker miglioramento 
22.12.05 - Nuova versione 
15.08.30 Alex # changed css from .php
14.08.13 Alex # creation
*/

/* ******************************************* */
/* TODO: ADD RESET CSS! */

/* WAS NEW VERSION */
.login-wrap {
  display: grid;
  place-content: center;
  background: #eee;
  width: 100vw;
  height: 100vh;
}
#login_area {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 200px;
  background: #fff;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 4px 4px 8px #ddd;
  border: 1px solid #ddd;
}
#login_area img.logo {
  width: 200px;
}
#login_area fieldset {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  gap: 10px;
}
#login_area #login_result {
  display: flex;
  gap: 10px;
}
#login_area label {
  width: 60px;
}
#login_area input {
  border-radius: 4px;
  padding: 4px;
  outline: 0;
  border: 2px solid #ddd;
  background-color: #fff;
  color: #555;
}
#login_area input[type="text"],
#login_area input[type="password"] {
  width: 120px;
}
#login_area input[type="text"]:focus,
#login_area input[type="password"]:focus {
  border: 2px solid #f8b322;
}

#login_area input[type="button"] {
  cursor: pointer;
  background: #fff;
  border: 2px solid #f8b322;
  font-weight: 700;
  color: #dc002d;
  transition: all 0.2s;
}
#login_area input[type="button"]:hover {
  color: #fff;
  letter-spacing: 4px;
  background: #f8b322;
  border-color: #dc002d;
}

#login_area h1 {
  color: #f8b322;
  background: #dc002d;
  padding: 0.25rem 0;
  margin: 0 0 0 -1rem;
  width: calc(100% + 2rem);
  text-align: center;
  letter-spacing: 1rem;
}
p.version {
  margin: 0;
  text-align: right;
  width: 98%;
  font-size: 0.5rem;
  color: #bbb;
}

body {
  color: #000000;
  font-style: normal;
  font-size: 10px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  background-color: #ffffff;
  margin: 0;
}

#top_menu_area{
  display: inline-block;
  position: fixed;
  width: 100%;
  z-index: 999;
}

A:link,
A:visited {
  text-decoration: none;
  color: #336699;
}
A:hover {
  text-decoration: underline;
  color: #336699;
}

hr {
  color: #336699;
  background-color: #336699;
  height: 2px;
  border: 0;
}

td {
  color: #000000;
  font-style: normal;
  font-size: 12px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
}

sub{
  font-size: 9px;
  line-height: 1;
  opacity: 0.7;
  margin-left: .5em;
  text-transform: lowercase;
}

.title {
  color: #336699;
  font-size: 18px;
  font-weight: bold;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  text-align: center;
}
.subtitle {
  color: #336699;
  font-style: bold;
  font-size: 12px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-weight: bold;
}

.evidenzia {
  color: #ffffff;
  background-color: #ff0000;
  font-size: 12px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
}

.debug {
  font-size: 8px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
}

.main_area {
  color: #000000;
  font-style: normal;
  font-size: 12px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 30px 10px;
}
.main_area.login {
  padding: 0;
}

.showdatatable {
  border: #cccccc solid thin;
  font-style: normal;
  font-size: 10px;
  font-family: Arial, Helvetica, sans-serif;
}
.showdataheader {
  font-weight: bold;
}
.showdatatr0 {
  border: #cccccc solid thin;
  background-color: #eeeeee;
}
.showdatatr1 {
  border: #cccccc solid thin;
  background-color: #cccccc;
}
.showdatatr0_lastview {
  border: #cccccc solid thin;
  background-color: #ffeeee;
}
.showdatatr1_lastview {
  border: #cccccc solid thin;
  background-color: #ffcccc;
}

.separator {
  background-color: #ff0000;
}

.resultbox {
  width: 100%;
  min-height: 100px;
  overflow: auto;
}
.hideresultbox {
  display: none;
}

.red {
  color: #ffffff;
  background-color: #ff0000;
  font-size: 12px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
}
.green {
  color: #000000;
  background-color: #00ff00;
  font-size: 12px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
}

.textred {
  color: #ff0000;
  font-size: 12px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
}

.bold {
  color: #000000;
  font-weight: bold;
  font-style: normal;
  font-size: 12px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
}

.inorder {
  color: #000000;
  border: #cccccc solid thin;
  background-color: #00ff00;
  font-size: 10px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  white-space: nowrap;
}
.notinorder {
  color: #000000;
  border: #cccccc solid thin;
  background-color: #ffffff;
  font-size: 10px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  white-space: nowrap;
}
.inorderfree {
  color: #000000;
  border: #cccccc solid thin;
  background-color: #ffff00;
  font-size: 10px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  white-space: nowrap;
}
.notinorderfree {
  color: #000000;
  border: #cccccc solid thin;
  background-color: #ffffff;
  font-size: 10px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  white-space: nowrap;
}

.textdeleted {
  text-decoration: line-through;
}

.filteron {
  color: #ff0000;
  font-weight: bold;
  font-style: normal;
}

.printbox {
  width: 100%;
  margin: 5px;
}

.container {
  display: table;
  /*border-collapse:collapse;*/
}
.row {
  display: table-row;
}
.voice_cell {
  display: table-cell;
  border-top: 1px solid gray;
  border-bottom: 1px solid gray;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  padding: 2px;
  font-family: sans-serif;
  font-size: x-small;
  text-align: left;
}
.title_cell {
  display: table-cell;
  border-top: 1px solid gray;
  border-bottom: 1px solid gray;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  padding: 2px;
  font-family: sans-serif;
  font-size: x-small;
  text-align: center;
  min-width: 16px;
}
.cell {
  display: table-cell;
  border-top: 1px solid gray;
  border-bottom: 1px solid gray;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  padding: 2px;
  font-family: sans-serif;
  font-size: x-small;
  text-align: center;
  position: relative;

  background-image: url(dot_line.png);
  background-repeat: repeat-y;
  background-position: 50% 0;
}

.left_cell_border {
  border-left: 1px solid gray;
}

.right_cell_border {
  border-right: 1px solid gray;
}

.cell_bordered {
  border: 1px solid gray;
}

.centered {
  text-align: center;
}

/* .empty_cell {
    border: 1px solid gray;
        background: linear-gradient(
                to right,
                rgba(255,255,255,0) 0%,
                rgba(255,255,255,0) 48%,
                gray 48%,
                gray 52%,
                rgba(255,255,255,0) 52%,
                rgba(255,255,255,0) 100%
        );
} */

.error {
  color: #ff0000;
  font-weight: bold;
}

.gg_lavorativo {
  color: #000000;
  background-color: #ffffff;
  font-size: 12px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  display: inline-block;
  padding-left: 5px;
  padding-right: 5px;
}
.gg_non_lavorativo {
  color: #ffffff;
  background-color: #ff0000;
  font-size: 12px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  display: inline-block;
  padding-left: 5px;
  padding-right: 5px;
}
.gg_passato_lavorativo {
  color: #cccccc;
  background-color: #ffffff;
  font-size: 12px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  display: inline-block;
  padding-left: 5px;
  padding-right: 5px;
}
.gg_passato_non_lavorativo {
  color: #ffffff;
  background-color: #ffcccc;
  font-size: 12px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  display: inline-block;
  padding-left: 5px;
  padding-right: 5px;
}

.richieste {
  color: #000000;
  background-color: #ffff00;
  font-size: 12px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  display: inline-block;
  padding-left: 5px;
  padding-right: 5px;
  width: 5px;
}
.approvate {
  color: #000000;
  background-color: #00ff00;
  font-size: 12px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  display: inline-block;
  padding-left: 5px;
  padding-right: 5px;
  width: 5px;
}

.pointer {
  cursor: pointer;
}

.int {
  text-align: right;
}

.voice_cell.pointer b {
  color: red;
  font-weight: 900;
}

#timing{
  position: fixed;
  bottom: 0;
  z-index: 99999;
  right: 6px;
  color: #aaa;
}
.jqibutton {
  cursor: pointer;
}

/* Color picker position */
.color-section, .color-section > div {
  width: 100%!important;
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
}
.evo-pointer {
  transform: translate(-4px, -2px);
}

.info-msg{
  display: flex;
  align-items: center;
  gap: 10px;
  margin:10px;
}

/* Tabelle Turni */
.tabella ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tabella ul:nth-child(odd) {
  background: #eeeeee60;
}
.tabella ul.header {
  margin-top: 1rem;
  font-weight: 700;
  background: #eee;
}
.tabella li {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 4rem;
  box-shadow: 0px 0px 1px #aaa;
  padding: 0.3rem 0;
  font-size:10px;
}
.tabella li:first-child {
  padding-left: 20px;
  min-width: 20rem;
  justify-content: left;
  background: linear-gradient(90deg, var(--bg) 4%, transparent 4%);
}
.tabella li:nth-child(10) {
  font-weight: 700;
  background: #eee;
}
/* .tabella.totale-turni li:nth-child(9){
  min-width: 200px;
  justify-content: start;
  padding: 0 8px;
} */
.tabella li.err {
  color: #d33;
}
.tabella ul.header li:first-child::before {
  content: "Locale";
  position: absolute;
  display: block;
  transform: translate(-12px, -12px);
  font-size: 7px;
  color: #999;
}

div.jqi .jqiclose {
  cursor: pointer!important;
  transform: scale(2);
}
div.jqi .jqiclose:hover {
  color: #489afe!important;
}
.hide{
  display: none!important;
}
.no_pres{
  opacity: .6;
  background: #eee;
}

/* #result > .container{
  display: none;
}
#result > .container:first-child{
  display: block!important;
} */

.form-incassi,.form-note{
  display:flex;
  position: absolute;
  transform: translateY(-50px);
  align-items:center;
  border:0;
  gap:.5rem;
}
.form-note{
  transform: translateY(-25px);
}
.form-incassi{
  left:200px;
}
.form-incassi .gruppo, 
.form-note .gruppo{
  display:flex;
  gap:.5rem;
  align-items:center;
  border:1px solid #ccc;
  padding:0 0 0 0.5rem;
}
.form-incassi fieldset,
.form-note fieldset{
  border:0;
  display:flex;
  flex-direction:column;
  gap:.3rem;
}
/* .form-incassi .response{
  opacity: 0;
  padding-right: .5rem;
  transition: opacity .3s;
}
.form-incassi .response.show{
  opacity: 1;
}  */

/* AREA COSTI */
#head-area-costi {
  position: sticky;
  top: 20px;
  width: 100%;
  z-index: 10;
  background: #fff;
  padding-bottom: 10px;
  box-shadow: 0 6px 30px -30px gray;
}

#nav-area-visite,
#nav-area-costi{
  display: flex;
  align-items: center;
  gap: 1rem;
}

table.totale-giorno{
  border-collapse: collapse;
}
table.totale-giorno th{
  background: transparent!important;
  text-align: center!important;
  font-size: 10px;
}
table.totale-giorno th,
table.totale-giorno tr,
table.totale-giorno td{
  border: 0!important;
  width: 90px;
  padding: 0 8px!important;
  text-align: end;
}

table.totale-giorno tbody tr:first-child{
  border-bottom:1px solid #ddd!important;
}
table.totale-giorno td:nth-child(3n+1) {
  border-right: 1px solid #ddd!important;
}
table.totale-giorno tr:first-child td{
  font-size: 10px!important;
}
table.totale-giorno th:last-child{
  text-align: start!important;
  transform: translate(50px,10px);
}
table.totale-giorno textarea{
  height: 75px;
  width: 550px;
  margin: 10px 0 -30px 50px;
}
table.totale-giorno .salva-nota {
  margin-top: 9px;
}
table.totale-giorno h2{
  text-align: start;
  line-height: 0;
}
table.totale-giorno .response{
  font-size: 10px;
  color: #777;
  font-weight: 400;
}

.riepiloghi{
  display: flex;
  gap: 1rem;
  margin: 10px 0;
}

table.riepilogo{
  display: table;
  border-collapse: collapse;
  box-shadow: 0 0 2px #aaa;
}
table.riepilogo h4{
  margin: 4px 0;
  text-align: center;
}
table.riepilogo tr:nth-child(even) {
  background: #efefef;
}
table.riepilogo tr.head {
  background: #dc002d;
  color: #fff;
}
table.riepilogo tr.head2 td {
  font-size:8px;
  font-weight:800;
  text-align:center;
}

table.riepilogo th, table.riepilogo td{
  padding: 4px 12px;
}
table.riepilogo td:nth-child(n+2) {
  text-align: end;
}

table.riepilogo .riepilogo-note{
  font-size:8px;
}
table.riepilogo .report[disabled] {
  display: none;
}

#mailinput{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0;
}
#mailinput ul{
  margin: -10px -10px 10px;
}
#mailinput label{
  display: flex;
  gap: 8px
}
#mailinput input{
  flex-grow: 1; 
  border: 1px solid #bbb; 
  padding: 2px 8px;
}

#tabella-area-costi .dtrg-level-1 th {
  color: #6d1919;
  text-align: start;
  text-transform: uppercase;
  padding: 0 10px;
  font-size: 10px !important;
  background: #fef4de!important;
}
#tabella-area-costi th:nth-child(1) {
  min-width: 250px;
}
#tabella-area-costi th:nth-child(2) {
  min-width: 120px!important;
}
#tabella-area-costi th:nth-child(3) {
  min-width: 50px!important;
}
#tabella-area-costi th:nth-child(4) {
  min-width: 50px!important;
}
#tabella-area-costi th:nth-child(5) {
  min-width: 80px!important;
}
#tabella-area-costi td:nth-child(n+6), 
#tabella-area-costi th:nth-child(n+6),
#tabella-area-costi .dtrg-level-1:nth-child(3) td:not(:first-child){
  text-align: end;
}

#tabella-area-costi .dtrg-start.dtrg-level-0 th {
  padding: 4px 10px;
  color: #fff;
  background: #dc002d!important;
}

#tabella-area-costi .dtrg-end.dtrg-level-0 {
  display: none;
}
#tabella-area-costi .dtrg-start.dtrg-level-1 {
  line-height: 20px;
}
#tabella-area-costi .dtrg-start.dtrg-level-1,
#tabella-area-costi .dtrg-end.dtrg-level-1 {
  background: rgb(248 179 34 / 15%);
}
#tabella-area-costi .dtrg-start.dtrg-level-1 .dtfc-fixed-left,
#tabella-area-costi .dtrg-end.dtrg-level-1 .dtfc-fixed-left {
  background: transparent;
}
#tabella-area-costi .dtrg-start.dtrg-level-1 td,
#tabella-area-costi .dtrg-end.dtrg-level-1 td {
  color: #6d1919;
}
#tabella-area-costi .dtrg-end td:nth-child(n+2) {
  text-align: end;
}

#tabella-area-costi .dtrg-group td, .dtrg-group th {
  font-weight: 900!important;
  font-size: 14px!important;
}
#tabella-area-costi .dtrg-group td{
  box-shadow: none!important;
}
/* #tabella-area-costi .colazione{
  display: none;
}
#tabella-area-costi .colazione.AQUATICA{
  display: table-cell;
} */

.dataTables_wrapper .dataTables_filter {
  padding: 10px;
  float: unset;
  position: sticky;
  top: 154px;
  z-index: 1000;
  width: 100%;
  display: flex;
  background: #fff;
}

#tabella-area-costi #tabella-area-costi_processing{
  z-index: 99;
}
#tabella-area-costi table.dataTable tbody td {
  padding: 4px 10px;
}
.diprow{ visibility:collapse; }
.diprow.show{ visibility:visible; }
.dt-search{ display: none; }
.dt-search.show{ display:inline; }

/* tooltip */
.tooltip {
  position: relative;
  /* display: inline-block; */
  cursor: zoom-in;
}
.tooltip span {
  visibility: hidden;
  width: 20ch;
  background-color: #eee;
  box-shadow: 2px 2px 8px #999;
  color: #333;
  text-align: start;
  white-space: break-spaces;
  padding: 5px 10px;
  border-radius: 4px;
  position: absolute;
  z-index: 9;
  top: -1.5rem;
  border: 1px solid #999;
}
.tooltip:hover span {
  visibility: visible;
}
.tooltip span{
  top: 0;
  right: 105%;
}

.button{
  background: #efefef;
  color: #333!important;
  border: 1px solid #767676;
  border-radius: 3px;
  padding: 2px 8px;
  text-decoration: none!important;
  transition:all 300ms ease-in-out;
}
.button:hover, .button:focus{
  box-shadow: 2px 2px 4px 0px #c7c7c7;
}

#servizi_tbl{
  width: 100%;
  padding: 5px 10px;
  border-radius: 5px;
  box-shadow: 0 0 2px 0px #888;
}
#servizi_tbl .serv_togli{
  border: 0;
  background: #f88;
  box-shadow: 0 0 1px #888;
  border-radius: 3px;
  padding: 2px 8px;
}
#servizi_tbl .serv_togli:hover{
  background: #f77;
  box-shadow: 0 0 3px #888;
}

/* .EditForm label {
  display: inline-flex;
} */

/* Anagrafica - Nuovo layout */
.new_layout .EditForm label {
  display: inline-flex;
}
.new_layout legend{
  background: #fff;
  padding: 5px 12px;
  border-radius: 8px;
  font-weight: bold;
}
.new_layout fieldset{
  border: 0;
  margin: 10px 0px;
  background: #f3f3f3;
  border-radius: 10px;
  padding: 10px 20px;
}
.new_layout label{
  margin: 4px 8px;
}
.new_layout fieldset.generalita label{
  flex-direction:column;
}
.new_layout input[type=text],
.new_layout input[type=number],
.new_layout input[type=date],
.new_layout select{
  background: #fff;
  border: 0;
  border-bottom: 1px solid #ccc;
  padding: 2px 4px;
  margin-left: 4px;
}
.new_layout span:has(+*[required]){
  font-weight: bold;
  color: #a52a2a;
}
.new_layout span:has(+*[required])::after {
  content: '* ';
}

.new_layout textarea{
  border: 0;
  background: #fff;
  padding: 4px 8px;
  width: calc(100% - 20px);
}
.new_layout #id_dip{
  margin-left: 10px;
}
.new_layout #id_dip span{
  color: #fff;
  background: #999;
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: bolder;
}
.new_layout .fototessera{
  display: flex;
  justify-content: center;
  width: 100%;
}
.new_layout .download.button{
  margin: auto;
}
.new_layout .tessera{
  box-shadow: 2px 2px 8px #ccc;
  border-radius: 8px;
}
.new_layout #foto{
  object-fit: cover;
  object-position: left top;
}
.new_layout picture {
  position: relative;
  height: 200px;
  width: 200px;
  display: block;
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 2px 2px 8px #ccc;
}
.new_layout picture::before{
  transition: all .2s;
  opacity: 0;
  content: "CAMBIA";
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: bold;
  color: #f8b322;
  background: #00000094;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}
.new_layout picture:hover::before{
  opacity: 1;
}
.new_layout .fotoregole{
  width: 200px;
  font-size:12px;
  color:#999;
  margin-bottom: 0;
}
.new_layout .row{
  display: flex;
  gap: 20px;
}
.new_layout fieldset.row{
  display: flex;
  gap: 20px;
  justify-content: space-around;
}
.new_layout .azione{
  display: flex;
  flex-direction: column;
  padding: 20px;
}
.new_layout .azione .col{
  display: flex;
  justify-content: space-evenly;
  width: 100%;
}
.new_layout .tesseralink{
  width: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
  margin: 10px 0 20px;
  position: relative;
}
.tesseralink:has(.scarica):hover::before {
  content: 'SCARICA';
  text-shadow: 0 0 15px #553a02;
  cursor: pointer;
  color: #c8172e;
  text-align: center;
  font-size: 42px;
  background: #f8b322bd;
  position: absolute;
  width: calc(100% - 40px);
  height: calc(100%);
  display: grid;
  place-items: center;
  border-radius: 8px;
}
.tesseralink:has(.cambia)::before {
  content: 'Salva per rigenerare la tessera...';
  color: #7d001a;
  text-align: center;
  font-size: 24px;
  position: absolute;
  display: grid;
  align-items: end;
  width: calc(100% - 60px);
  height: calc(100% - 60px);
}
.tesseralink:has(.dimesso)::before{
  content: 'DIMESSO';
  color: #fff;
  font-size: 48px;
  background: #3b000085;
  position: absolute;
  width: calc(100% - 40px);
  height: calc(100%);
  display: grid;
  place-items: center;
  border-radius: 8px;
}
.new_layout label[for=barcode]{
  margin-top: 12px;
  color:#999;
  width: calc(100% - 20px);
  text-align: end;
}

/* caricamento */
.loading{display:flex;gap:6px;}
.loading::before{display:block;content:"";background:url(/img/wait.gif);width:16px;height:16px;}
.loading::after{content:"Attendere. Caricamento in corso...";}