:root {
  font-family: 'Segoe UI', sans-serif;
  color: #18394e;
  background: #edf3f7;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
.panel-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}
.panel-navigation button[aria-pressed='true'] {
  color: white;
  background: #064767;
  border-color: #064767;
}
#backups-view h1 {
  margin: 8px 0;
}
#backups-view #backup-store {
  max-width: 640px;
}
#backup-files a {
  display: inline-block;
  padding: 8px 12px;
  color: #064767;
  border: 1px solid #b5cbd8;
  border-radius: 7px;
  white-space: nowrap;
}
#backup-files a:hover {
  background: #edf5fa;
}
.restore-authorization {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #d6e3ec;
}
.restore-authorization textarea {
  width: 100%;
  margin: 8px 0 16px;
  padding: 12px;
  border: 1px solid #b5cbd8;
  border-radius: 7px;
  resize: vertical;
  overflow-wrap: anywhere;
}
.replacement-authorization,
.replacement-history-card {
  grid-column: 1 / -1;
}
.replacement-authorization textarea {
  width: 100%;
  min-height: 86px;
  padding: 12px;
  font: inherit;
  font-size: 14px;
  color: #18394e;
  border: 1px solid #b9cdd9;
  border-radius: 5px;
  resize: vertical;
}
.replacement-authorization :is(input[readonly], #replacement-new-terminal) {
  font-family: Consolas, monospace;
  font-size: 13px;
}
.replacement-confirmation {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
  font-weight: 400;
  line-height: 1.6;
}
.replacement-confirmation input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 2px 0 0;
}
.replacement-warning {
  padding: 12px 14px;
  border: 1px solid #e6cf9a;
  border-radius: 7px;
  background: #fff8e9;
  color: #80520d;
}
.terminal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.terminal-id,
.replacement-id {
  font-family: Consolas, monospace;
  overflow-wrap: anywhere;
}
#replacement-history li {
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px;
}
.replacement-record {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.replacement-status {
  justify-self: start;
  color: #18394e;
}
.replacement-status[data-status='pending'] {
  color: #80520d;
  background: #fff4d9;
}
.replacement-status[data-status='used'] {
  color: #246a42;
  background: #e8f6ee;
}
.replacement-status[data-status='expired'],
.replacement-status[data-status='canceled'] {
  color: #596d7a;
}
#replacement-history button {
  align-self: start;
  white-space: nowrap;
}
.restore-confirmation {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
}
.restore-confirmation input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 2px 0 0;
}
#backup-files button {
  margin: 8px 0 0 8px;
}
@media (max-width: 800px) {
  #backups-view table {
    min-width: 0;
  }
  #backups-view thead {
    display: none;
  }
  #backup-files {
    display: grid;
    gap: 12px;
  }
  #backup-files tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
    border: 1px solid #d6e3ec;
    border-radius: 10px;
  }
  #backup-files td {
    display: block;
    padding: 0;
    border: 0;
    overflow-wrap: anywhere;
  }
  #backup-files td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #496078;
  }
}
body {
  margin: 0;
}
header {
  background: #064767;
  color: white;
  padding: 20px max(24px, calc((100vw - 1250px) / 2));
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 24px;
  letter-spacing: 2px;
}
.brand-symbol {
  border: 1px solid #6ba1b9;
  border-radius: 10px;
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.brand small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.4px;
  margin-top: 3px;
  color: #bfd4e0;
}
#identity {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 13px;
}
header .outline {
  color: white;
  border-color: #548299;
}
main {
  max-width: 1250px;
  margin: 30px auto;
  padding: 0 24px;
  min-height: calc(100vh - 180px);
}
h1 {
  font-size: 27px;
  margin: 7px 0;
}
h2 {
  font-size: 18px;
  margin: 0 0 16px;
}
h3 {
  font-size: 15px;
}
p {
  font-size: 14px;
  line-height: 1.6;
  color: #60798a;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #0c7698;
}
.card {
  background: white;
  border: 1px solid #d8e3eb;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
  min-width: 0;
}
.login-card {
  max-width: 440px;
  margin: 70px auto;
}
.login-card .primary {
  width: 100%;
  margin-top: 22px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 14px 0 7px;
}
input,
select {
  width: 100%;
  font: inherit;
  font-size: 14px;
  padding: 11px 12px;
  height: 43px;
  border: 1px solid #b9cdd9;
  border-radius: 5px;
  color: #18394e;
  background: white;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 3px solid #1699ce;
  outline-offset: 2px;
}
button {
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  border-radius: 5px;
  padding: 10px 14px;
  border: 1px solid transparent;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: #075579;
  color: white;
}
.outline {
  background: transparent;
  border-color: #b9cdd9;
  color: #17526e;
}
.danger {
  color: #a83c3c;
  border-color: #e3b7b7;
  background: #fff5f4;
}
.page-heading,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.page-heading {
  margin-bottom: 24px;
}
.page-heading p {
  margin-bottom: 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.metrics article {
  background: #fff;
  border: 1px solid #d8e3eb;
  border-radius: 9px;
  padding: 20px;
}
.metrics span {
  color: #60798a;
  font-size: 12px;
}
.metrics strong {
  display: block;
  margin-top: 7px;
  font-size: 30px;
}
.table-wrapper {
  overflow: auto;
  margin-top: 18px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 690px;
}
th {
  color: #547487;
  font-size: 11px;
  background: #f2f7fa;
  text-align: left;
}
td,
th {
  padding: 13px 10px;
  border-bottom: 1px solid #e4edf2;
}
td small {
  display: block;
  color: #60798a;
  margin-top: 4px;
}
.badge {
  display: inline-block;
  background: #edf3f7;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
}
.form-grid,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.form-grid label {
  margin-top: 0;
}
.help {
  font-size: 12px;
}
.activation {
  background: #eaf6ef;
  border: 1px solid #b3d8c1;
  border-radius: 7px;
  padding: 15px;
  margin: 20px 0;
}
.activation button {
  margin-top: 10px;
}
#rotate-code {
  margin-top: 18px;
}
.history {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 420px;
  overflow: auto;
}
.history li {
  display: grid;
  gap: 6px;
  border-bottom: 1px solid #e4edf2;
  padding: 14px 0;
  font-size: 12px;
}
.history span,
.history small {
  color: #60798a;
}
.history button {
  justify-self: start;
}
#feedback {
  padding: 13px 18px;
  border-radius: 7px;
  background: #e8f6ee;
  color: #246a42;
  border: 1px solid #b3d8c1;
}
#feedback.error {
  background: #fff1ee;
  color: #a83c3c;
  border-color: #e7bfba;
}
footer {
  padding: 20px;
  text-align: center;
  color: #718796;
  font-size: 11px;
}
@media (max-width: 750px) {
  main {
    padding: 0 14px;
  }
  header {
    padding: 16px;
  }
  .metrics,
  .form-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .page-heading,
  #identity {
    align-items: flex-start;
    flex-direction: column;
  }
  .replacement-authorization .section-heading,
  .replacement-history-card .section-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  #replacement-history li {
    grid-template-columns: minmax(0, 1fr);
  }
}
