/* Tabelle classiche e contenute nel display su smartphone */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

table {
  width: 100%;
  max-width: 100%;
}

@media only screen and (max-width: 600px) {
  main.container {
    width: 100%;
    max-width: 100%;
    padding-left: 8px;
    padding-right: 8px;
    box-sizing: border-box;
  }

  table,
  table.responsive-table {
    display: table;
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    overflow: visible;
    white-space: normal;
  }

  table.responsive-table thead,
  table.responsive-table tbody {
    display: table-row-group;
    float: none;
    width: 100%;
    overflow: visible;
    white-space: normal;
  }

  table.responsive-table thead {
    display: table-header-group;
    border-right: 0;
  }

  table.responsive-table tr,
  table.responsive-table thead tr,
  table.responsive-table tbody tr {
    display: table-row;
    padding: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  }

  table.responsive-table th,
  table.responsive-table td,
  table th,
  table td {
    display: table-cell;
    min-height: 0;
    padding: 8px 3px;
    text-align: left;
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: 0.78rem;
  }

  table.responsive-table thead tr th::before {
    content: none;
  }

  table input,
  table select,
  table .select-wrapper,
  table .select-wrapper input.select-dropdown {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .modal {
    width: 96%;
    max-width: 96%;
  }

  .modal .modal-content {
    padding-left: 10px;
    padding-right: 10px;
  }
}
