.dataset-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.dataset-heading {
  margin: 0;
  text-align: center;
  flex: 1 1 320px;
}

.version-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.version-picker-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.version-picker label {
  font-weight: bold;
  white-space: nowrap;
}

.version-picker select {
  min-width: 160px;
  padding: 8px 12px;
  border: 1px solid #9bb598;
  border-radius: 6px;
  background-color: #fff;
  font-size: 15px;
}

#dataset-year {
  min-width: 110px;
}

.version-picker select:disabled {
  background-color: #eef2ec;
  color: #5f6e5d;
  cursor: not-allowed;
}

.version-help {
  margin: 0 0 18px;
  color: #355133;
  text-align: center;
}

.page-version-note {
  max-width: 900px;
  margin: 14px auto 0;
  padding: 8px 14px;
  text-align: center;
  font-size: 20px;
  color: #355133;
}

.archive-note {
  margin: 18px 0 8px;
  padding: 14px 16px;
  border-left: 4px solid #f0a500;
  border-radius: 8px;
  background-color: #fff8e7;
  color: #5e4720;
  line-height: 1.55;
}

.archive-note a {
  color: #0a58ca;
}

.dataset-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-family: sans-serif;
}

.dataset-table th,
.dataset-table td {
  border: 1px solid #ccc;
  padding: 7px;
  text-align: left;
  vertical-align: top;
}

.dataset-table th {
  background-color: #a8fdac;
  font-weight: bold;
}

.dataset-table td a {
  color: #007bff;
  text-decoration: none;
}

.dataset-label {
  font-weight: bold;
}

.dataset-note {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: #4f5f4d;
}

.dataset-demo-links {
  margin-bottom: 8px;
}

.dataset-demo-missing {
  color: #7c6b3b;
}

.dataset-subfiles-title {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: bold;
  color: #51634f;
}

.dataset-archive-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dataset-archive-item {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  color: #445342;
}

.dataset-table tbody tr {
  cursor: pointer;
}

.dataset-table tbody tr * {
  cursor: pointer;
}

.dataset-table tbody tr:hover {
  background-color: #f0f8ff;
}

.dataset-table th * {
  cursor: pointer;
}

.format-label {
  cursor: pointer;
}

.format-label input[type="checkbox"] {
  cursor: pointer;
}

.dataset-table input[type="checkbox"] {
  transform: scale(1.2);
}

tr.selected {
  background-color: #e6f3ff;
}

.dataset-table th:nth-child(1),
.dataset-table td:nth-child(1) {
  width: 40px;
  text-align: center;
}

.dataset-table th:nth-child(2),
.dataset-table td:nth-child(2) {
  width: 150px;
  text-align: left;
}

.dataset-table th:nth-child(3),
.dataset-table td:nth-child(3) {
  width: 60px;
  text-align: center;
}

.dataset-table th:nth-child(4),
.dataset-table td:nth-child(4) {
  width: 100px;
  text-align: center;
}

.dataset-table-wrapper {
  overflow-x: auto;
}

.dataset-table-message {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  background-color: #f5faf2;
}

.dataset-table-message {
  text-align: center;
  color: #335133;
}

.dataset-table-message.is-error {
  background-color: #fff1f1;
  color: #8a2f2f;
}

.total-amount {
  font-size: 24px;
  font-weight: bold;
  color: #008000;
  text-align: center;
  padding: 10px 20px;
  margin: 30px auto 10px;
  border: 2px dashed #90ee90;
  border-radius: 8px;
  background-color: #f6fff6;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
}

.b-button {
  margin-bottom: 100px;
}

.alert_content {
  max-width: 900px;
  margin: auto;
  padding: 8px;
  margin-bottom: 10px;
  background-color: #e5ede2;
}

@media (max-width: 700px) {
  .dataset-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .dataset-heading {
    text-align: center;
  }

  .version-picker {
    justify-content: center;
  }

  .version-picker select {
    width: 100%;
    min-width: 0;
  }

  .total-amount {
    font-size: 20px;
    white-space: normal;
  }
}
