#summary-table-frequent-mistakes {
  white-space: nowrap;
}

#frequent-mistakes-container {
  height: 100%;
}

table {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
  border-color: rgba(255, 255, 255, 0.2);
  overflow: hidden;
  margin: 0 !important;
  table-layout: fixed;
  border-radius: 25px;
}

th,
td {
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.2);
  font-size: 1.25rem;
}

th:nth-child(2) {
  white-space: nowrap;
  text-overflow: ellipsis; /* optional: adds "..." if overflow is hidden */
  overflow: visible;       /* allows horizontal overflow if you want it to spill */
}

tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

tbody td:hover:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -9999px;
  bottom: -9999px;
  background-color: rgba(255, 255, 255, 0.2);
  z-index: -1;
}

tbody td {
  position: relative;
}

.bar {
  height: 20px;
  border-radius: 8px;
}

.table-container {
    font-family: 'SFpro', sans-serif;
    width: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-radius: 20px;
    margin: 0 auto;
}

.table-container::-webkit-scrollbar {
    display: none;
}

.table-container:hover {
    overflow-y: scroll;
}

.back-button-div {
  margin-top: 8px;
}

.mistakes-summary-forstudents-title {
    width: 100%;
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.incorrect-part {
  font-weight: bold;
  padding: 2px 1px;
  border-radius: 3px;
  color: #D57E7E;
}

.grammar-view-selector {
  border: none;
  border-radius: 4px;
  background-color: transparent;
  text-align: center;
  font-weight: bold;
  max-width: 100%;
}

.grammar-view-selector:focus,
.grammar-view-selector:active {
  outline: none;
  border: none;
}

#summary-table-grammar {
  text-align: center;
}

.summary-choices-button-holder {
  display: flex;
  justify-content: start;
  margin-bottom: 15px;
  gap: 5px;
}

.display-summary-button {
  background-color: transparent;
  border: rgba(33, 37, 41, 0.5) 1px solid;
  padding: 12px 16px 12px 16px;
  margin: 0;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-size: 1rem;
}

.active-summary-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 20px;
  pointer-events: none;
  transition: background 0.3s ease;
}

.active-summary-button::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.active-summary-button:hover::before {
  background: rgba(255, 255, 255, 0.15);
}

.active-summary-button {
  background: linear-gradient(135deg, #3288AC, #286D8A);
  border: none;
  /*border: #286D8A 1px solid;*/
  color: #F5F5F7;
}

@media (max-width: 768px) {
}

@media (max-width: 576px) {
  .display-summary-button {
    padding: 6px 16px 6px 16px;
    font-size: 1rem;
  }

  .table-container {
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  .back-button {
    height: 4.25rem;
    width: 4.25rem;
  }

  th,
  td {
    font-size: 1rem;
  }

  .bar {
    height: 15px;
    max-width: 100%;
  }
}

@media (min-device-width: 768px) and (max-device-width: 1200px) and (orientation: portrait)  {

}