/* Basic reset so browsers start from the same baseline */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background-color: #f4f5f7;
  color: #1f2937;
  line-height: 1.5;
  padding: 20px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 800px;
  margin: 0 auto 20px auto;
}

header h1 {
  font-size: 1.5rem;
  color: #111827;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  height: 40px;
  width: auto;
}

main {
  max-width: 800px;
  margin: 0 auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

thead {
  background-color: #1f2937;
  color: #ffffff;
}

th, td {
  text-align: left;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
}

tbody tr:nth-child(even) {
  background-color: #f9fafb;
}

tbody tr:hover {
  background-color: #eef2ff;
}
/* Simple belt color coding — you'll likely add a class like
   class="Belt-yellow" or class="belt-Orange" to the <td> later */
.Belt-yellow {
  color: #FFFF00;
  font-weight: 600;
}

.Belt-Orange {
  color: #FFA500;
  font-weight: 600;
}
.Belt-green {
  color: #00FF00;
  font-weight: 600;
}
.Belt-purple {
  color: #484C89;
  font-weight: 600;
}
.Belt-Brown {
  color: #964B00;
  font-weight: 600;
}
.Belt-Sr.Brown {
  color: #964B00;
  font-weight: 600;
}
.Belt-Sup.Sr.Brown {
  color: #964B00;
  font-weight: 600;
}
/* Simple pass/fail color coding — you'll likely add a class like
   class="result-pass" or class="result-fail" to the <td> later */
.result-pass {
  color: #15803d;
  font-weight: 600;
}

.result-fail {
  color: #b91c1c;
  font-weight: 600;
}

/* Responsive: stack the table into cards on narrow screens */
@media (max-width: 600px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }

  thead {
    display: none;
  }

  tbody tr {
    margin-bottom: 12px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
  }

  td {
    padding: 6px 16px;
  }

  td::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: #6b7280;
  }
}