.ch-wtr-public-wrap {
  max-width: 980px;
  margin: 24px auto;
}

.ch-wtr-public-search {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin: 0 0 18px;
}

.ch-wtr-public-search label {
  width: 100%;
  font-weight: 600;
}

.ch-wtr-public-search input[type="text"] {
  width: min(420px, 100%);
  padding: 8px 10px;
}

.ch-wtr-public-wrap .button {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #0a4b78;
  border-radius: 6px;
  background: #0a4b78;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.ch-wtr-public-wrap .button-link {
  background: transparent;
  border: 0;
  padding: 0;
  color: #0a4b78;
  text-decoration: underline;
  cursor: pointer;
}

.ch-wtr-public-latest {
  border: 1px solid #dcdcde;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  margin-bottom: 14px;
}

.ch-wtr-public-systems {
  display: grid;
  gap: 14px;
}

.ch-wtr-public-system-group {
  border: 1px solid #dcdcde;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.ch-wtr-public-system-group h3 {
  margin: 0 0 10px;
}

.ch-wtr-public-results-list {
  margin: 0 0 0 18px;
}

.ch-wtr-public-results-list li {
  margin: 0 0 8px;
}

.ch-wtr-public-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9998;
}

.ch-wtr-public-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ch-wtr-public-modal[hidden],
.ch-wtr-public-modal-backdrop[hidden] {
  display: none !important;
}

.ch-wtr-public-modal-content {
  width: min(980px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  position: relative;
}

.ch-wtr-public-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 1px solid #c3c4c7;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.ch-wtr-public-modal-close:hover,
.ch-wtr-public-modal-close:focus {
  background: #f6f7f7;
  color: #000;
}

.ch-wtr-public-result-meta {
  margin-top: 0;
}

.ch-wtr-public-result-table {
  width: 100%;
  border-collapse: collapse;
}

.ch-wtr-public-result-table th,
.ch-wtr-public-result-table td {
  border: 1px solid #dcdcde;
  padding: 7px 8px;
  text-align: left;
}

.ch-wtr-public-result-table tr.ch-wtr-problem-row td {
  background: #fff3cd;
  color: #7a4b00;
  font-weight: 700;
}

.ch-wtr-public-notes {
  margin-top: 12px;
  border: 1px solid #dcdcde;
  border-radius: 6px;
  background: #f6f7f7;
  padding: 10px;
}

.ch-wtr-system-notes-list {
  margin: 8px 0 0 18px;
}

body.ch-wtr-public-modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

@media (max-width: 782px) {
  .ch-wtr-public-modal {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
  }

  .ch-wtr-public-modal-content {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    padding: 14px 12px 18px;
  }
}
