html,
body {
  margin: 0;
  padding: 0;
  text-align: center;
}

html,
body,
textarea,
input,
select,
button {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9em;
}

body {
  background: #f6f8f6 url("./assets/background.png") center top no-repeat;
  color: #000;
  zoom: 0.9;
}

a,
a:link,
a:visited,
a:hover,
a:active {
  color: blue;
}

#framePage {
  width: 1000px;
  margin: 28px auto 0;
  padding: 0;
}

#mainContentPadding {
  padding: 0 13px;
  background-color: #fff;
  padding-bottom: 1px;
}

#mainContentBox {
  margin: 0 auto;
  text-align: left;
}

.postedDate,
.disclaimer {
  font-size: 8pt;
  color: #000;
}

.resetMargins {
  margin: 0 auto;
}

.header-wrap {
  text-align: left;
  padding-left: 15px;
  padding-top: 24px;
}

.header-center {
  text-align: center;
  vertical-align: middle;
}

.headerText {
  text-align: center;
  font-size: 2em;
  font-weight: bold;
  margin: 0;
}

.headerText.spacer {
  line-height: 1.7;
}

.intro-links {
  padding: 0 38px;
  margin-top: 6px;
}

.disclaimer-copy p {
  margin: 0 0 14px;
  line-height: 1.08;
}

.treasury-link {
  color: #2f4f4f !important;
}

.groupedContent {
  margin: 13px 0;
}

.groupedContent .content {
  padding: 13px;
  border: 1px solid #000;
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 5px;
}

.fieldHeader {
  font-weight: bold;
  vertical-align: top;
}

.icon-button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.Panel {
  border: 1px solid #ccc;
  padding: 13px;
}

.MainTable {
  width: 100%;
  padding: 13px;
}

.styleIndent {
  width: 14px;
  vertical-align: top;
}

.Labels {
  vertical-align: top;
}

.styleColumnBody {
  width: 250px;
  vertical-align: top;
}

.programList {
  width: 250px;
  vertical-align: top;
}

.stackedLabel {
  padding-top: 8px;
}

.stackedSelect {
  padding-top: 5px;
}

input[type="text"],
select {
  box-sizing: border-box;
  height: 22px;
}

select[multiple] {
  height: auto;
}

#scoreRange {
  width: 170px;
  margin: 0;
}

#scoreNumber {
  text-align: center;
}

.actionButton {
  font-weight: normal;
  height: 22px;
  width: 96px;
}

.save-status {
  margin-top: 10px;
  min-height: 16px;
  font-size: 11px;
  color: #555;
}

.save-status.error {
  color: #b00020;
}

.save-status.warning {
  color: #8a5a00;
}

.save-status.success {
  color: #0b6b2d;
}

.results-title {
  padding-bottom: 5px;
}

#resultsHeaderTable {
  margin-left: 0;
  margin-right: 0;
}

#resultsHeaderTable,
#resultsBodyTable {
  table-layout: fixed;
}

.resultHeader {
  font-weight: bold;
  color: #000080 !important;
  text-decoration: none;
}

.ResultsDiv {
  border: 1px solid #ccc;
  height: 198px;
  width: 100%;
  overflow: auto;
}

.resultTable {
  border-collapse: collapse;
}

.resultTable td {
  padding: 6px 4px;
  border-bottom: 1px solid #e6e6e6;
  vertical-align: top;
  font-size: 0.92em;
  text-align: left;
}

#resultsHeaderTable td:nth-child(3),
#resultsBodyTable td:nth-child(3) {
  padding-left: 12px;
}

#resultsHeaderTable td:nth-child(4),
#resultsBodyTable td:nth-child(4) {
  padding-left: 12px;
}

#resultsHeaderTable td:nth-child(5),
#resultsBodyTable td:nth-child(5) {
  padding-left: 12px;
}

#resultsHeaderTable td:nth-child(6),
#resultsBodyTable td:nth-child(6) {
  padding-left: 10px;
}

#resultsHeaderTable td:nth-child(7),
#resultsBodyTable td:nth-child(7) {
  padding-left: 10px;
}

.fine-value {
  display: inline-block;
  min-width: 40px;
  font-weight: bold;
  color: #0b6b2d;
}

.empty-results td {
  color: #555;
  font-style: italic;
}

.footer-wrap {
  padding: 0 13px;
  margin-top: 4px;
}

.floatLeft {
  float: left;
}

@media print {
  body {
    background: #fff;
  }

  .icon-button,
  .actionButton {
    display: none;
  }

  .ResultsDiv {
    height: auto;
    overflow: visible;
  }
}

@media (max-width: 1040px) {
  #framePage {
    width: calc(100% - 24px);
  }

  .intro-links {
    padding: 0 12px;
  }

  .header-wrap {
    padding-left: 0;
  }

  .groupedContent .content {
    overflow-x: auto;
  }
}

@media (max-width: 760px) {
  body {
    zoom: 1;
    background: #f6f8f6;
  }

  #framePage {
    width: calc(100% - 14px);
    margin-top: 10px;
  }

  #mainContentPadding,
  .footer-wrap {
    padding: 0 8px;
  }

  .header-wrap {
    padding-top: 14px;
    padding-left: 0;
  }

  #ctl00_imgPageBanner {
    max-width: 100%;
    height: auto;
  }

  .header-wrap table,
  .intro-links table {
    display: block;
    width: 100% !important;
  }

  .header-wrap tbody,
  .header-wrap tr,
  .intro-links tbody,
  .intro-links tr {
    display: block;
    width: 100%;
  }

  .header-wrap td,
  .intro-links td {
    display: block;
    width: 100% !important;
    text-align: center !important;
    padding: 6px 0;
  }

  .header-center {
    padding-top: 10px;
  }

  .headerText {
    font-size: 1.55em;
  }

  .intro-links {
    padding: 0 8px;
  }

  .disclaimer-copy p {
    line-height: 1.35;
    font-size: 11px;
  }

  .groupedContent .content,
  .Panel {
    padding: 10px;
  }

  .groupedContent .content {
    overflow: visible;
  }

  .panel-title-row {
    gap: 10px;
  }

  .MainTable,
  .MainTable tbody {
    display: block;
    width: 100%;
    padding: 0;
  }

  .MainTable tr {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 14px;
  }

  .MainTable td {
    display: block;
    width: 100% !important;
    padding: 0 !important;
  }

  .styleIndent {
    display: none !important;
  }

  .Labels,
  .styleColumnBody {
    width: 100% !important;
  }

  .fieldHeader {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
  }

  input[type="text"],
  select,
  .programList,
  #typeSelect,
  #addressInput,
  #nameInput,
  #cityInput,
  #idInput,
  #stateInput,
  #countrySelect,
  #listSelect {
    width: 100% !important;
    height: 40px;
    font-size: 16px;
    border: 1.5px solid #c9d2de;
    box-shadow: inset 0 0 0 1px rgba(202, 210, 222, 0.18);
    background: #fff;
  }

  input[type="text"]:focus,
  select:focus,
  .programList:focus {
    border-color: #8ea4c3;
    box-shadow:
      0 0 0 3px rgba(112, 148, 196, 0.14),
      inset 0 0 0 1px rgba(142, 164, 195, 0.18);
    outline: none;
  }

  select[multiple],
  .programList {
    height: 40px !important;
    padding-top: 0;
    padding-bottom: 0;
  }

  .stackedSelect {
    padding-top: 8px;
  }

  .MainTable table {
    width: 100% !important;
  }

  .MainTable table td:last-child {
    width: 58px !important;
    padding-left: 8px !important;
  }

  #scoreRange {
    width: 100%;
  }

  #scoreNumber {
    width: 100% !important;
    max-width: 58px;
    height: 40px !important;
  }

  .actionButton {
    width: 100%;
    height: 40px;
    margin: 0 0 10px;
    font-size: 15px;
  }

  #resultsHeaderTable {
    display: none;
  }

  .ResultsDiv {
    height: auto;
    border: 0;
    overflow: visible;
  }

  #resultsBodyTable,
  #resultsBody,
  #resultsBody tr,
  #resultsBody td {
    display: block;
    width: 100% !important;
  }

  #resultsBodyTable {
    table-layout: auto;
  }

  #resultsBody tr {
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #d9dee7;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #f7f9fc);
    box-shadow: 0 8px 24px rgba(27, 39, 58, 0.06);
  }

  .resultTable td {
    border-bottom: 0;
    padding: 0 0 10px;
    font-size: 0.98em;
  }

  .resultTable td:last-child {
    padding-bottom: 0;
  }

  .resultTable td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: #52637d;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  #resultsHeaderTable td:nth-child(3),
  #resultsBodyTable td:nth-child(3),
  #resultsHeaderTable td:nth-child(4),
  #resultsBodyTable td:nth-child(4),
  #resultsHeaderTable td:nth-child(5),
  #resultsBodyTable td:nth-child(5),
  #resultsHeaderTable td:nth-child(6),
  #resultsBodyTable td:nth-child(6),
  #resultsHeaderTable td:nth-child(7),
  #resultsBodyTable td:nth-child(7) {
    padding-left: 0;
  }

  .fine-value {
    min-width: 0;
  }

  .empty-results td::before {
    content: none;
  }
}
