.exam-pattern-table-wrap {
  border: 1px solid #d5e1f4;
  border-radius: 10px;
  overflow: auto;
}

.exam-pattern-table-wrap + .exam-pattern-table-wrap { margin-top: 16px; }

.exam-pattern-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
  color: #173967;
}

.exam-pattern-table caption {
  padding: 11px 12px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  background: #eaf1fc;
}

.exam-pattern-table th,
.exam-pattern-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.exam-pattern-table thead {
  background: #102f66;
  color: #fff;
}

.exam-pattern-table thead th {
  overflow-wrap: normal;
  word-break: normal;
}

.exam-pattern-table thead th:nth-child(2) { width: 9rem; }
.exam-pattern-table thead th:nth-child(3) { width: 5rem; }
.exam-pattern-table thead th:nth-child(4) { width: 6rem; }

.exam-pattern-table th:not(:first-child),
.exam-pattern-table td {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.exam-pattern-table td { white-space: nowrap; }
.exam-pattern-table tbody th[scope="row"] { font-weight: 500; }
.exam-pattern-table tbody tr { border-bottom: 1px solid #e1eaf7; }
.exam-pattern-table tbody tr:nth-child(even) { background: #f8fbff; }
.exam-pattern-table tfoot { background: #f3f7fd; font-weight: 700; }

.exam-pattern-overall {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  margin: 16px 0 0;
  padding: 10px 12px;
  border: 1px solid #d5e1f4;
  border-radius: 8px;
  background: #e9f2ff;
  color: #173967;
  font-size: 13px;
  font-weight: 700;
}

.exam-pattern-overall dd {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.exam-pattern-note {
  margin: 12px 0 0;
  color: #3e587c;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-line;
}

@media (max-width: 580px) {
  .exam-pattern-table { font-size: 12px; }
  .exam-pattern-table th,
  .exam-pattern-table td { padding: 8px 7px; }
  .exam-pattern-table thead th:nth-child(2) { width: 4.5rem; }
  .exam-pattern-table thead th:nth-child(3) { width: 3rem; }
  .exam-pattern-table thead th:nth-child(4) { width: 3.5rem; }
  .exam-pattern-overall { font-size: 12px; }
  .exam-pattern-overall dd { gap: 4px 10px; }
}
