/* ScuolaPing responsive fit - patch globale non distruttiva */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

*, *::before, *::after {
  box-sizing: border-box;
}

img, video, canvas, svg {
  max-width: 100%;
  height: auto;
}

body {
  -webkit-text-size-adjust: 100%;
}

.sp-admin-wrap,
.spdc-shell,
.spdc-card,
.spdc-tablewrap,
main,
section,
article,
.container,
.wrap {
  max-width: 100%;
  min-width: 0;
}

.spdc-shell {
  overflow: hidden;
}

.spdc-card {
  overflow: hidden;
}

.spdc-tablewrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

.spdc-tablewrap table {
  width: max-content;
  min-width: 100%;
}

.spdc-tablewrap th,
.spdc-tablewrap td {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.spdc-tablewrap th:first-child,
.spdc-tablewrap td:first-child {
  min-width: 92px;
}

.spdc-tab,
.spdc-tools button,
.spdc-tools a,
.spdc-tablewrap a {
  white-space: normal;
  text-align: center;
}

@media (max-width: 900px) {
  .spdc-shell {
    border-radius: 18px !important;
    padding: 14px !important;
  }

  .spdc-title {
    font-size: 24px !important;
  }

  .spdc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .spdc-tools {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .spdc-tools input,
  .spdc-tools select,
  .spdc-tools button,
  .spdc-tools a {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .spdc-grid {
    grid-template-columns: 1fr !important;
  }

  .spdc-tabs {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .spdc-tab {
    width: 100%;
  }

  .spdc-tablewrap table {
    font-size: 12px;
  }

  .spdc-tablewrap th,
  .spdc-tablewrap td {
    padding: 8px !important;
  }
}
