.pay-rate-editor {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line, #d7d7d2);
  border-radius: 12px;
  background: rgba(255, 255, 255, .55);
}

.pay-rate-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.pay-rate-heading > strong {
  color: var(--green, #244b3b);
  font-size: 14px;
}

.pay-rate-current {
  font-size: 13px;
  font-weight: 700;
  color: #303630;
}

.payroll-setup-status {
  margin: -4px 0 12px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.payroll-setup-status.ready {
  color: #315545;
  background: #edf5ef;
}

.payroll-setup-status.incomplete {
  color: #7a3f16;
  background: #fff2df;
  border: 1px solid #eac89d;
}

.pay-rate-form {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) auto minmax(145px, 1.15fr);
  gap: 10px;
  align-items: end;
}

.pay-rate-field {
  display: grid;
  gap: 5px;
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  color: #555b55;
}

.pay-rate-field input {
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid #bfc8c1;
  border-radius: 9px;
  background: #fff;
  color: #1d2922;
  font: inherit;
  font-weight: 600;
}

.pay-rate-field input:focus {
  outline: 2px solid rgba(36, 75, 59, .22);
  outline-offset: 1px;
  border-color: #486b5a;
}

.pay-rate-currency {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  white-space: nowrap;
  color: #59615c;
  font-size: 12px;
  font-weight: 800;
}

.pay-rate-save {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 42px;
  max-width: 100%;
  white-space: normal;
}

.pay-rate-feedback {
  display: block;
  min-height: 18px;
  margin-top: 8px;
}

.pay-rate-history {
  margin-top: 8px;
  border-top: 1px solid #e0e4df;
  padding-top: 10px;
}

.pay-rate-history summary {
  cursor: pointer;
  color: #315545;
  font-size: 12px;
  font-weight: 800;
  user-select: none;
}

.pay-rate-history-list {
  display: grid;
  gap: 6px;
  margin-top: 9px;
}

.pay-rate-history-row {
  display: grid;
  grid-template-columns: minmax(110px, .8fr) minmax(170px, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f6f6f3;
  font-size: 12px;
}

.pay-rate-history-row > span {
  color: #626862;
  font-variant-numeric: tabular-nums;
}

.pay-rate-state {
  padding: 3px 7px;
  border-radius: 999px;
  background: #e4e8e4;
  color: #475048;
  font-weight: 800;
}

.pay-rate-state.current {
  background: #dceadf;
  color: #245237;
}

.pay-rate-state.upcoming {
  background: #fff0ce;
  color: #735516;
}

.pay-rate-muted {
  margin: 9px 0 0;
  color: #737873;
  font-size: 12px;
}

@media (max-width: 880px) {
  .pay-rate-form {
    grid-template-columns: 1fr auto;
  }

  .pay-rate-save {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .pay-rate-form,
  .pay-rate-history-row {
    grid-template-columns: 1fr;
  }

  .pay-rate-currency {
    min-height: auto;
  }
}
