.students {
  box-sizing: border-box;
  max-width: none;
  width: 100%;
  overflow-x: hidden;
}

.students__card,
.students__report,
.students__stack {
  box-sizing: border-box;
  max-width: none;
  width: 100%;
}

.students__table {
  box-sizing: border-box;
  max-width: 100%;
  width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
}

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

.students__table th,
.students__table td {
  min-width: 112px;
  overflow-wrap: anywhere;
}

.students__table th:first-child,
.students__table td:first-child {
  min-width: 90px;
}

.students__table-actions {
  min-width: max-content;
}

.students__files-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.students__files-section,
.students__files-upload {
  margin-top: 0;
  min-width: 0;
}

@media (max-width: 900px) {
  .students__files-grid {
    grid-template-columns: 1fr;
  }

  .students__section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .students__section-title .students__actions {
    width: 100%;
  }

  .students__section-title .students__actions button {
    flex: 1 1 150px;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .students {
    padding: 10px;
  }

  .students__card {
    border-radius: 14px;
    padding: 14px;
  }

  .students__table {
    margin-left: -2px;
    margin-right: -2px;
    width: calc(100% + 4px);
  }

  .students__table table {
    min-width: 720px;
  }

  .students__file-list article {
    align-items: stretch;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .students__file-list article > .students__actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}
