:root {
  font: 16px/1.5 system-ui, sans-serif;
  color: #182b32;
  background: #f5f7f8
}

* {
  box-sizing: border-box
}

body {
  margin: 0
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  background: #fff;
  border-bottom: 1px solid #dce3e6;
  gap: 20px
}

header>a {
  font-size: 21px;
  font-weight: 700;
  text-decoration: none
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px
}

.brand img {
  display: block;
  flex-shrink: 0;
  object-fit: contain
}

header span,
.muted {
  color: #60757e
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px
}

nav form {
  margin: 0
}

main {
  max-width: 1280px;
  margin: 35px auto;
  padding: 0 24px
}

h1 {
  font-size: 30px
}

h2 {
  font-size: 21px
}

h3 {
  font-size: 17px
}

a {
  color: #116e83
}

section,
details {
  background: white;
  border: 1px solid #dce3e6;
  border-radius: 10px;
  padding: 22px;
  margin: 22px 0
}

.narrow {
  max-width: 520px;
  margin: 60px auto
}

form {
  display: grid;
  gap: 15px;
  max-width: 640px
}

label {
  display: grid;
  gap: 6px
}

input,
select,
textarea,
button {
  font: inherit;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #aabcc3
}

textarea {
  min-height: 80px
}

input::placeholder,
textarea::placeholder {
  color: #71838b;
  opacity: 1
}

button {
  background: #116e83;
  color: white;
  cursor: pointer;
  border: 0;
  font-weight: 600;
  justify-self: start
}

button.secondary {
  background: #eaf0f2;
  color: #182b32
}

button.danger {
  background: #a32332
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid #b3d9e1
}

summary {
  cursor: pointer;
  font-weight: 600
}

details>form {
  margin-top: 20px
}

.check {
  display: flex;
  align-items: center
}

.check input {
  width: 20px;
  height: 20px
}

.search {
  display: flex;
  align-items: end;
  max-width: none;
  flex-wrap: wrap
}

.search-value {
  flex: 1 1 360px;
  min-width: 0
}

.search input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box
}

.search-identifier-field {
  appearance: none;
  padding-right: 40px;
  background: #fff url("chevron-down.svg") no-repeat right 12px center / 16px
}

@media (forced-colors: active) {
  .search-identifier-field {
    appearance: auto;
    background-image: none
  }
}

.scroll {
  overflow-x: auto
}

table {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
  margin: 20px 0;
  font-size: 14px
}

th,
td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #dce3e6;
  vertical-align: top;
  overflow-wrap: anywhere
}

th {
  color: #526b75
}

dl {
  display: grid;
  grid-template-columns: minmax(120px, 220px) 1fr;
  gap: 8px
}

dt {
  color: #60757e
}

dd {
  margin: 0;
  overflow-wrap: anywhere
}

.error {
  background: #fff0f1;
  color: #992132;
  padding: 16px;
  border-radius: 6px
}

.notice {
  background: #fff7dc;
  padding: 16px
}

.otp {
  font-size: 42px;
  letter-spacing: 8px
}

li {
  margin-bottom: 10px
}

@media(max-width:700px) {
  header {
    padding: 16px;
    align-items: start;
    flex-direction: column
  }

  main {
    padding: 0 14px
  }

  nav {
    gap: 12px
  }

  dl {
    grid-template-columns: 1fr
  }

  section,
  details {
    padding: 16px
  }
}

.record {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin: 0
}

.record dt {
  font-size: 13px;
  margin-bottom: 4px
}

.record dd {
  font-size: 15px
}

.scroll th {
  white-space: nowrap
}

.scroll td {
  min-width: 110px;
  max-width: 360px;
  overflow-wrap: break-word
}

header>a {
  flex-shrink: 0
}

header {
  flex-wrap: wrap
}

.button {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 6px;
  background: #116e83;
  color: white;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap
}

.button.secondary {
  background: #eaf0f2;
  color: #182b32
}

.password-control {
  position: relative;
  margin-top: 6px
}

.password-control input {
  min-width: 0;
  width: 100%;
  min-height: 48px;
  padding-right: 50px;
  box-sizing: border-box
}

.password-control input::-ms-reveal {
  display: none
}

.password-toggle {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  background: transparent;
  color: #526971
}

.password-toggle:not([hidden]) {
  display: grid
}

.password-toggle:hover {
  background: #eaf0f2;
  color: #116e83
}

.password-toggle:focus-visible {
  outline: 2px solid #116e83;
  outline-offset: -2px
}

.password-control input[type="password"] + .password-toggle .password-eye-slash {
  display: none
}

.form-help {
  background: #f0f6f8;
  border-left: 3px solid #116e83;
  padding: 4px 16px
}

.activity {
  margin: 12px 0;
  padding: 18px 20px
}

.activity-title {
  font-weight: 650
}

.activity-meta {
  display: block;
  margin-top: 6px;
  color: #60757e;
  font-size: 13px;
  font-weight: 400
}

.audit-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px
}

.audit-comparison section {
  padding: 14px;
  background: #f8fafb;
  min-width: 0
}

.audit-fields {
  display: block;
  margin: 0
}

.audit-fields>div {
  padding: 7px 0;
  border-bottom: 1px solid #e7edef
}

.audit-fields dt {
  font-size: 13px
}

.audit-fields dd {
  margin-top: 3px
}

.audit-record+.audit-record {
  border-top: 2px solid #c9d8de;
  margin-top: 14px;
  padding-top: 10px
}

.audit-extra {
  margin: 14px 0
}

#payment-link-full {
  overflow-wrap: anywhere
}

.copy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0
}

.otp-copy {
  margin-top: 24px;
  flex-wrap: wrap
}

.icon-button {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  padding: 0;
  place-items: center;
  background: transparent;
  color: #526971
}

.icon-button:not([hidden]) {
  display: inline-grid
}

.icon-button:hover {
  background: #eaf0f2;
  color: #116e83
}

.icon-button:focus-visible {
  outline: 2px solid #116e83;
  outline-offset: 2px
}

.icon-button .copied-icon,
.icon-button[data-copied] .copy-icon {
  display: none
}

.icon-button[data-copied] .copied-icon {
  display: block;
  color: #237248
}

.copy-status {
  min-height: 24px;
  margin: 8px 0 16px
}

.payment-copy,
.payment-link-details {
  max-width: 720px
}

.truncated-link {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.payment-link-details {
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  background: transparent
}

.payment-link-details summary {
  color: #116e83;
  font-weight: 400
}

.payment-link-details .when-open,
.payment-link-details[open] .when-closed {
  display: none
}

.payment-link-details[open] .when-open {
  display: inline
}

.request-navigation {
  gap: 10px;
  margin: 20px 0
}

.request-navigation .button {
  white-space: normal
}

.request-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 24px 0
}

.request-tools form {
  margin: 0
}

.audit-filters {
  max-width: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: white;
  border: 1px solid #dce3e6;
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 24px
}

.audit-filters input,
.audit-filters select {
  min-width: 0;
  width: 100%
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 16px
}

.filter-actions a {
  padding: 10px 0
}

.filter-help {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 14px
}

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

  .request-tools form,
  .request-tools button {
    max-width: none;
    width: 100%
  }

  .audit-filters {
    grid-template-columns: 1fr;
    padding: 16px
  }

  .audit-comparison {
    grid-template-columns: 1fr
  }
}
