* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, var(--color-white) 0%, var(--color-primary-bg) 100%);
  font-family: 'Segoe UI', 'Poppins', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  min-height: 100vh;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

caption {
  caption-side: top;
  text-align: center;
  margin-bottom: 20px;
  color: var(--color-text-primary);
  font-size: 2rem;
  font-weight: 600;
}

.table-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  scrollbar-width: none; /* Firefox */
}

.table-wrapper::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 800px;
  font-family: inherit;
  font-size: 14px;
  background: var(--color-white);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

th,
td {
  border: 1px solid var(--color-primary-pale);
  padding: 12px;
  text-align: center;
  white-space: nowrap;
}

th {
  background-color: var(--color-primary-pale);
  color: var(--color-text-primary);
  font-weight: 600;
}

tr:nth-child(even) {
  background-color: #fffef7;
}

tr:hover {
  background-color: var(--color-primary-pale);
}

@media (max-width: 768px) {
  body {
    padding: 2.2rem 1rem 1rem;
    justify-content: flex-start;
  }

  caption {
    font-size: 1.5rem;
    margin: 14px 0 8px;
  }

  .table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    scrollbar-width: none; /* Firefox */
    margin-top: 8px;
  }
  .table-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }

  table {
    font-size: 12px;
    min-width: 1010px;
    display: block;
    white-space: nowrap;
  }

  th,
  td {
    padding: 6px;
    min-width: 80px;
  }

  td:last-child, th:last-child {
    min-width: 280px;
    /* text-align: left; */
  }

}