body {
  margin: 0;
  padding: 28px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  background: #f4f6f8 !important;
  color: #222;
}


h1, h2, h3 {
  color: #7a1111;
  font-family: Georgia, "Times New Roman", serif;
}

a {
  color: #005ea8;
  font-weight: 600;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.vf-nav-link {
  display: inline-block;
  padding: 10px 18px;
  margin: 3px;
  border: 1px solid #d8dee6;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0,0,0,.05);
}

.vf-button {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 5px;
  background: #0068b7;
  color: white !important;
  text-decoration: none !important;
}

.vf-data-table {
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 2px 14px rgba(0,0,0,.08);
  margin: 14px 0 18px 0;
}

.vf-data-table th,
.vf-data-table td {
  border: 1px solid #d7dce1;
  padding: 7px 9px;
  vertical-align: middle;
}

.vf-data-table th {
  background: #2f3b46;
  color: #fff;
  font-weight: 700;
}

.vf-data-table tr:nth-child(even) td {
  background: #f8fafc;
}

.vf-data-table tr:hover td {
  background: #fff6cc;
}

.vf-layout-table {
  box-shadow: none;
}

input, select, button {
  font-size: 14px;
  padding: 5px 8px;
  border: 1px solid #b8c0c8;
  border-radius: 4px;
}

@media print {
  body {
    background: white !important;
    padding: 0;
  }


  .vf-data-table {
    box-shadow: none;
  }

  .vf-button,
  .vf-nav-link {
    color: black !important;
    background: transparent !important;
    border: 0;
    padding: 0;
    box-shadow: none;
  }
}

/* Pulizia tabelle annidate */
table {
  border-color: transparent !important;
}

table table {
  border: 0 !important;
}

table table td,
table table th {
  border: 0 !important;
}

/* Solo le tabelle dati vere mantengono una griglia leggera */
.vf-data-table {
  border: 1px solid #d8dee6 !important;
  border-radius: 8px;
  overflow: hidden;
}

.vf-data-table td,
.vf-data-table th {
  border: 1px solid #d8dee6 !important;
}

/* Se una tabella dati contiene altre tabelle, non disegnarle come scatole */
.vf-data-table table {
  box-shadow: none !important;
  border: 0 !important;
}

.vf-data-table table td,
.vf-data-table table th {
  border: 0 !important;
}

.vf-page-nav {
  text-align: center;
  margin: 22px 0 28px 0;
}

.vf-page-panel {
  margin: 0 0 40px 0;
}

.vf-main-table {
  min-width: 620px;
  max-width: 760px;
}

.vf-main-table td:nth-child(3),
.vf-main-table td:nth-child(4) {
  text-align: right;
  white-space: nowrap;
}

.vf-main-table td:last-child,
.vf-main-table th:last-child {
  text-align: center;
  width: 58px;
}

.vf-page-panel {
  display: flex;
  justify-content: center;
}

.vf-main-table {
  margin-left: auto;
  margin-right: auto;
}

.difettosita {
  background: pink !important;
}

.vf-data-table th {
  position: sticky;
  top: 0;
  z-index: 2;
}
