.backup-page {
  --backup-blue: #112262;
  --backup-yellow: #ffcc05;
  display: grid;
  gap: 18px;
  color: var(--backup-blue);
}

.backup-heading {
  margin-bottom: 0;
}

.backup-admin-chip {
  padding: 6px 10px;
  border: 1px solid #dfe4f0;
  border-radius: 7px;
  background: #fff;
  color: #586382;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.backup-feedback {
  min-height: 20px;
  margin: -8px 0 0;
  color: #345080;
  font-size: .82rem;
}

.backup-feedback:empty {
  display: none;
}

.backup-feedback--error,
.backup-job__error {
  color: #a72e35;
}

.backup-create-panel,
.backup-history-panel {
  border: 1px solid #e3e7f0;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(17 34 98 / 5%);
}

.backup-create-panel {
  padding: 22px;
}

.backup-history-panel {
  overflow: hidden;
}

.backup-section-heading h2 {
  margin: 0;
  font-size: 1rem;
}

.backup-section-heading p {
  margin: 4px 0 0;
  color: #6a7490;
  font-size: .8rem;
}

.backup-history-panel > .backup-section-heading {
  padding: 20px 22px 16px;
}

.backup-form {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

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

.backup-field {
  display: grid;
  gap: 7px;
}

.backup-field__label {
  color: #303e69;
  font-size: .78rem;
  font-weight: 700;
}

.backup-password {
  position: relative;
  display: block;
}

.backup-input {
  width: 100%;
  height: 42px;
  padding: 0 44px 0 12px;
  border: 1px solid #ccd3e2;
  border-radius: 7px;
  outline: none;
  background: #fff;
  color: #112262;
  font-size: .86rem;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.backup-input:focus {
  border-color: #112262;
  box-shadow: 0 0 0 3px rgb(17 34 98 / 10%);
}

.backup-input[aria-invalid="true"] {
  border-color: #b93a38;
}

.backup-password-toggle {
  position: absolute;
  top: 50%;
  right: 4px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #65708c;
  cursor: pointer;
  place-items: center;
  transform: translateY(-50%);
}

.backup-password-toggle:hover {
  background: #f3f5f9;
  color: #112262;
}

.backup-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid #edf0f5;
}

.backup-check {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  color: #465374;
  cursor: pointer;
  font-size: .79rem;
}

.backup-check input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: #112262;
}

.backup-submit {
  min-width: 156px;
  min-height: 42px;
  border-color: #112262;
  background: #112262;
  color: #fff;
}

.backup-submit::after {
  margin-left: 10px;
  color: #ffcc05;
  content: "↓";
}

.backup-list-head,
.backup-job {
  display: grid;
  grid-template-columns: minmax(220px, 1.7fr) minmax(135px, .8fr) minmax(90px, .55fr) minmax(150px, .9fr) minmax(150px, auto);
  align-items: center;
  gap: 14px;
}

.backup-list-head {
  padding: 9px 22px;
  border-block: 1px solid #edf0f5;
  background: #fafbfc;
  color: #77809a;
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.backup-list {
  min-height: 78px;
}

.backup-job {
  padding: 14px 22px;
  border-bottom: 1px solid #edf0f5;
  font-size: .78rem;
}

.backup-job:last-child {
  border-bottom: 0;
}

.backup-job__primary {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.backup-job__primary strong {
  font-size: .82rem;
}

.backup-job__primary small {
  overflow: hidden;
  color: #74809a;
  font-size: .7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.backup-status {
  justify-self: start;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: .68rem;
  font-weight: 750;
}

.backup-status--pending {
  background: #667085;
  color: #fff;
}

.backup-status--working {
  background: #3448a4;
  color: #fff;
}

.backup-status--ready {
  background: #14734f;
  color: #fff;
}

.backup-status--complete {
  background: #34436a;
  color: #fff;
}

.backup-status--failed {
  background: #a72e35;
  color: #fff;
}

.backup-job__size,
.backup-job__retention {
  color: #53607e;
}

.backup-job__actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.backup-link-button,
.backup-download-button {
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 750;
  cursor: pointer;
}

.backup-link-button {
  border: 1px solid #d9deea;
  background: #fff;
  color: #112262;
}

.backup-download-button {
  border: 1px solid #112262;
  background: #112262;
  color: #fff;
}

.backup-download-button::after {
  margin-left: 7px;
  color: #ffcc05;
  content: "↓";
}

.backup-job__details {
  grid-column: 1 / -1;
  padding: 13px 0 2px;
}

.backup-audit {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.backup-audit li {
  position: relative;
  display: flex;
  gap: 10px;
  min-height: 38px;
}

.backup-audit li:not(:last-child)::after {
  position: absolute;
  top: 16px;
  bottom: 0;
  left: 4px;
  width: 1px;
  background: #dfe4ee;
  content: "";
}

.backup-audit__dot {
  z-index: 1;
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border: 2px solid #112262;
  border-radius: 50%;
  background: #fff;
}

.backup-audit__copy {
  display: grid;
  gap: 1px;
}

.backup-audit__copy strong {
  font-size: .74rem;
}

.backup-audit__copy small,
.backup-history-empty {
  color: #77819a;
  font-size: .7rem;
}

.backup-empty {
  display: grid;
  gap: 3px;
  padding: 26px 22px;
  color: #65708c;
  font-size: .78rem;
}

.backup-empty strong {
  color: #112262;
}

.backup-more-row {
  display: flex;
  justify-content: center;
  padding: 12px;
  border-top: 1px solid #edf0f5;
}

.backup-more[hidden] {
  display: none;
}

@media (max-width: 1040px) {
  .backup-list-head {
    display: none;
  }

  .backup-job {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .backup-job__retention {
    grid-column: 1 / 2;
  }

  .backup-job__actions {
    grid-column: 2 / 4;
    grid-row: 2;
  }
}

@media (max-width: 700px) {
  .backup-create-panel {
    padding: 18px;
  }

  .backup-form__fields {
    grid-template-columns: 1fr;
  }

  .backup-form__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .backup-submit {
    width: 100%;
  }

  .backup-job {
    grid-template-columns: 1fr auto;
    padding-inline: 18px;
  }

  .backup-job__size,
  .backup-job__retention,
  .backup-job__actions {
    grid-column: 1 / -1;
  }

  .backup-job__actions {
    grid-row: auto;
    justify-content: flex-start;
  }
}
