/*---------- INPUT VARI------------*/
img {
  transition: all 0.3s;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
textarea,
select {
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
  -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
  -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
  border: 1px solid #ccc;
  padding: 4px;
  -webkit-user-select: text;
  -khtml-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  -o-user-select: text;
  border-radius: 4px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  background: #fff;
  cursor: pointer;
  margin-right: 4px;
  transition: all 0.3s;
  max-width: 100px;
}
input[type="date"]{
  max-width: 140px;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  border-color: #333;
  box-shadow: 0 0 2px #2196f3;
  -moz-box-shadow: 0 0 2px #2196f3;
  -webkit-box-shadow: 0 0 2px #2196f3;
}

input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

select {
  min-width: 80px;
}

label {
  margin-right: 7px;
  white-space: pre-wrap;
}

label.error {
  position: absolute;
  color: red;
  margin-top: 20px;
}

.divinputfile {
  border: 1px solid #ccc;
  border-radius: 5px;
  height: auto;
  padding: 0 !important;
  border-right: 0;
  margin: 5px 0;
  flex-grow: 1;
  max-width: 500px;
}

.precontainer {
  width: 70%;
  display: flex;
  align-items: center;
  flex-grow: 1;
}

.precontainer img {
  height: 35px;
  width: auto;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}

.precontainer p {
  flex-grow: 1;
  text-align: center;
}

.filelabel {
  width: auto !important;
  padding: 7px 13px 7px 10px;
  color: #fff;
  background-color: #2196f3;
  text-align: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 35px;
  margin: 0;
  text-shadow: 1px 1px #000;
  border-radius: 5px;
  white-space: nowrap;
}

.filelabel i {
  font-size: 0.8em;
  color: #fff;
}

.filelabel:hover {
  box-shadow: 0 0 0 62.5rem rgba(0, 0, 0, 0.2) inset;
}

button {
  color: #fff;
    background-color: #3a74a8;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 5px;
    transition: all 0.3s;
    text-shadow: 1px 1px #000000;
    padding: 4px 10px;
    font-weight: 700;
    font-size: 12px;
}

button:hover {
  box-shadow: 0 0 0 62.5rem rgba(0, 0, 0, 0.2) inset;
}

.irs--big .irs-handle {
  top: 28px !important;
  width: 20px !important;
  height: 20px !important;
}

.irs--big .irs-from,
.irs--big .irs-to,
.irs--big .irs-single {
  padding-bottom: 0px !important;
  font-size: 0.9em;
}
.irs--big .irs-from,
.irs--big .irs-to,
.irs--big .irs-single {
  top: 4px;
}
i {
  font-size: 1.3em;
  cursor: pointer;
  margin: 0px 5px;
  transition: all 0.3s;
}
/*---------- STRUTTURA ------------*/

body {
  display: flex;
  height: 100vh;
  align-items: stretch;
  font-size: 12px;
  color: #333;
}

.loadingbox {
  background: rgba(255, 255, 255, 0.9);
  position: absolute;
  z-index: 10000;
  display: none;
}
.loadingbox i {
  left: 50%;
  color: #000;
  top: 50%;
  position: absolute;
  font-size: 30px;
  margin-top: -15px;
}

#loadingpage {
  width: 100%;
  height: 100%;
  background: #000;
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  display: block;
}
#loadingpage i {
  left: 50%;
  color: #fff;
  top: 50%;
  position: absolute;
  font-size: 30px;
}

#page {
  background-color: #f5f5f5;
  flex-grow: 1;
  overflow-x: hidden;
  font-size: 13px;
  z-index: 1;
}

#headerpage {
  padding:20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 71px;
}

#headerpage i {
  font-size: 1.2em;
  margin-right: 10px;
  color: #c4bb96;
}

#headerpage #titolopagina {
  font-weight: 500;
  font-size: 1.4em;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-grow:1;
}

#footerpage {
  border-top: 1px solid rgb(196 187 150);
    padding: 10px 20px;
    height: 40px;
    background: #e4e0d4;
}

#footerpage span,
#footerpage a {
  font-size: 1.1em;
}

#contentpage {
  min-height: calc(100vh - 111px);
  overflow-x: hidden;
}

.box {
  padding: 15px;
  margin: 10px;
  background: #fff;
  border: 1px solid rgb(218, 218, 218);
  border-radius: 14px;
}
.box-header {
  font-size: 1.2em;
  margin-bottom: 10px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgb(218, 218, 218);
  text-align: left;
  font-weight: bold;
}

.htmlvisibile {
  cursor: pointer;
  display: flex;
  align-items: center;
}

.htmlvisibile div {
  flex-grow: 1;
}

.htmlvisibile i {
  font-size: 1.5em;
}

.htmlnascosto {
  background: #fff;
  margin: 20px;
  border: 0px #ccc solid;
  z-index: 2;
  height: 100%;
  overflow-y: hidden;
  display: none;
}

#titoloformg {
  text-align: center;
  width: 100%;
  font-size: 1.1em;
}

.formgroupo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: 10px 0px;
}
.formgroupo > div {
  padding: 10px 20px;
  display: flex;
  align-items: center;
}

.formgroupo > div.fullwidth {
  width: 100%;
}

.formgroupo > div.fullwidth label {
  text-align: center;
  width: auto;
  min-width: 150px;
}

.formgroupo > div label {
  width: auto;
  text-align: right;
}

.formgroupo .divinputincr {
  width: 50%;
  padding: 10px 20px;
  display: flex;
  align-items: center;
}

.formgroupo50 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 10px 0px;
}
.formgroupo50 > div {
  width: 50%;
  padding: 10px 20px;
  display: flex;
  align-items: center;
}

.formgroupo50 > div label {
  width: 30%;
  text-align: right;
}

.formgroupo50 > div input,
.formgroupo50 > div textarea,
.formgroupo50 > div select {
  width: 70%;
}

.formgroupv {
  padding: 10px 0px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.formgroupv > div {
  padding: 10px 20px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.formgroupv > div input,
.formgroupv > div textarea,
.formgroupv > div select {
  width: 70%;
}
.formgroupv > div label {
  width: 30%;
}

.divinputincr i {
  align-self: flex-end;
  font-size: 1.2em;
}
.divinputincr select {
  width: auto !important;
}
p.titoloincr {
  text-align: center;
  width: 100%;
  margin-top: 20px;
  font-size: 1.2em;
}

.divslider {
  min-width: 200px;
  max-width: 400px;
  flex-grow: 1;
  display: block !important;
}
.divslider > span {
  width: 100%;
}

.divslider > p {
  margin-bottom: -5px;
  text-align: center;
}

#popup {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 2;
}
#popup > div {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
  border: 1px solid #2a3140;
  background-color: #f5f5f5;
  margin-top: -100px;
  font-size: 1.1em;
}

/*---------- TABELLE ------------*/
table {
  width: 100%;
  border: 1px solid #b7b7b7;
  align-self: flex-start;
  font-size: 1em !important;
}
tr.trpcc {
  transition: all 0.3s;
  cursor: pointer;
}

tr.trpcc:hover {
  background-color: rgba(0, 0, 0, 0.07);
}
.trheadpcc th.thpcc {
  padding: 6px 10px;
  text-align: left;
  border-bottom: 1px solid #b7b7b7;
  background-color: rgba(0, 0, 0, 0.07);
  font-weight: bold;
}
.trheadpcc th.thpcc div {
  font-weight: bold;
}
.trpcc td.tdpcc {
  border-bottom: 1px solid rgb(218, 218, 218);
  padding: 6px 10px;
  text-align: left;
  background: transparent !important;
  vertical-align: middle;
  white-space: nowrap;
}

.trpcc td.tdpcc.options,
.trheadpcc th.thpcc.options {
  text-align: center;
  border-left: 1px solid rgb(218, 218, 218);
}
td.tdpcc.options i {
  margin: 0px 7px;
}
.tablesorter-default .header, .tablesorter-default .tablesorter-header{
  padding-right: 18px !important;
}
/*--------------------MOBILE-----------------*/
@media screen and (width: 1024px) {
  .trpcc td.tdpcc {
    white-space: nowrap;
  }
  #page {
    font-size: 0.95em;
  }
}
