.badge-verification-page {
  padding-top: 10rem;
}

.badge-verification-page code {
  color: #1f4d78;
  white-space: normal;
}

.badge-lookup-form,
.badge-record,
.badge-registry-table-card,
.badge-disclaimer {
  background: #ffffff;
  border: 1px solid #d8dde6;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.05);
  margin-top: 1.5rem;
  padding: 1.5rem;
}

.badge-lookup-form label {
  color: #12365a;
  display: block;
  font-family: Montserrat, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.badge-lookup-heading {
  border-bottom: 1px solid #e4e8ef;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
}

.badge-lookup-heading h3 {
  color: #12365a;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  margin-bottom: 0;
}

.badge-input-row {
  display: flex;
  gap: 0.75rem;
}

.badge-id-search {
  appearance: none;
  background: #ffffff;
  border: 2px solid #8fa2bc;
  border-radius: 0.25rem;
  color: #102a43;
  flex: 1;
  font-family: Montserrat, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  min-width: 0;
  padding: 0.85rem 1rem;
}

.badge-id-search::placeholder {
  color: #7b8794;
  font-weight: 400;
  letter-spacing: 0;
}

.badge-id-search:focus {
  border-color: #0052b8;
  box-shadow: 0 0 0 0.2rem rgba(0, 82, 184, 0.18);
  outline: 0;
}

.badge-filter-grid {
  align-items: end;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.25rem;
}

.badge-filter-control {
  appearance: none;
  background: #ffffff;
  border: 1px solid #b9c4d4;
  border-radius: 0.25rem;
  color: #102a43;
  font-family: Montserrat, sans-serif;
  font-size: 0.95rem;
  min-height: 2.75rem;
  padding: 0.65rem 0.75rem;
  width: 100%;
}

select.badge-filter-control {
  background-image: linear-gradient(45deg, transparent 50%, #405268 50%), linear-gradient(135deg, #405268 50%, transparent 50%);
  background-position: calc(100% - 16px) 1.15rem, calc(100% - 11px) 1.15rem;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding-right: 2rem;
}

.badge-filter-control:focus {
  border-color: #0052b8;
  box-shadow: 0 0 0 0.15rem rgba(0, 82, 184, 0.16);
  outline: 0;
}

.badge-filter-actions {
  grid-column: 1 / -1;
  min-width: 0;
  white-space: nowrap;
}

.badge-filter-actions .btn {
  white-space: nowrap;
}

.badge-id-search:disabled,
.badge-id-search[readonly] {
  background: #eef2f7;
  color: #5f6b7a;
  cursor: not-allowed;
}

.badge-form-help,
.badge-record-note {
  color: #5f6b7a;
  font-size: 0.95rem;
  margin-bottom: 0;
  margin-top: 0.75rem;
}

.badge-status-message {
  color: #5f6b7a;
  font-weight: 700;
  margin-top: 1rem;
}

.badge-status-message-success {
  color: #1f7a3a;
}

.badge-status-message-warning {
  color: #946200;
}

.badge-status-message-error {
  color: #9b1c1c;
}

.badge-record-header {
  align-items: flex-start;
  border-bottom: 1px solid #e4e8ef;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
}

.badge-record-eyebrow {
  color: #5f6b7a;
  font-family: Montserrat, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.badge-record h3,
.badge-registry-table-card h3,
.badge-disclaimer h3 {
  color: #12365a;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
}

.badge-status-pill {
  border-radius: 999px;
  font-family: Montserrat, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-status-active {
  background: #e7f5ec;
  color: #1f7a3a;
}

.badge-status-corrected,
.badge-status-retired {
  background: #eef2f7;
  color: #405268;
}

.badge-status-revoked {
  background: #fbe9e9;
  color: #9b1c1c;
}

.badge-status-neutral {
  background: #eef2f7;
  color: #405268;
}

.badge-record-body {
  display: block;
}

.badge-record-details {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0;
}

.badge-record-details div {
  border-bottom: 1px solid #e9edf3;
  padding-bottom: 0.75rem;
}

.badge-record-details dt {
  color: #5f6b7a;
  font-family: Montserrat, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge-record-details dd {
  color: #212529;
  font-size: 1rem;
  margin-bottom: 0;
  margin-top: 0.2rem;
}

.badge-disclaimer {
  background: #f8f9fa;
}

.badge-registry-table-header {
  align-items: flex-start;
  border-bottom: 1px solid #e4e8ef;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
}

.badge-table-count {
  color: #5f6b7a;
  font-family: Montserrat, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0;
  margin-top: 0.25rem;
  white-space: nowrap;
}

.badge-table-scroll {
  border: 1px solid #d8dde6;
  border-radius: 0.35rem;
  margin-top: 1rem;
  overflow-x: auto;
}

.badge-registry-table {
  background: #ffffff;
  border-collapse: collapse;
  margin-bottom: 0;
  min-width: 1040px;
  width: 100%;
}

.badge-registry-table th,
.badge-registry-table td {
  border-bottom: 1px solid #e4e8ef;
  color: #212529;
  font-size: 0.95rem;
  padding: 0.8rem 0.9rem;
  vertical-align: top;
}

.badge-registry-table th {
  background: #f2f4f7;
  color: #12365a;
  font-family: Montserrat, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-registry-table tbody tr:last-child td {
  border-bottom: 0;
}

.badge-registry-table a {
  color: #0052b8;
  font-weight: 700;
}

.badge-row-highlight td {
  background: #fff6dc;
  box-shadow: inset 0 1px 0 #f2af0d, inset 0 -1px 0 #f2af0d;
}

.badge-row-highlight td:first-child {
  box-shadow: inset 3px 0 0 #f2af0d, inset 0 1px 0 #f2af0d, inset 0 -1px 0 #f2af0d;
}

.badge-table-empty {
  color: #946200;
  font-weight: 700;
  margin-bottom: 0;
  margin-top: 1rem;
}

@media (max-width: 1199px) {
  .badge-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .badge-verification-page {
    padding-top: 8rem;
  }

  .badge-input-row,
  .badge-filter-grid,
  .badge-record-header,
  .badge-registry-table-header {
    display: block;
  }

  .badge-input-row button,
  .badge-filter-actions button {
    margin-top: 0.75rem;
    width: 100%;
  }

  .badge-record-details {
    grid-template-columns: 1fr;
  }

  .badge-status-pill {
    display: inline-block;
    margin-top: 0.75rem;
  }
}
