.employee-credits-page {
  max-width: 1540px;
  margin: 0 auto;
  padding: 22px;
}

.employee-credits-page .page-heading h1,
.employee-credits-page .page-heading h1 span,
.employee-credit-end-date {
  color: #1687e8;
}

.employee-credit-status {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.employee-credit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.employee-credit-activity-modal {
  width: min(720px, calc(100vw - 32px));
}

.employee-credit-print-modal {
  width: min(940px, calc(100vw - 32px));
}

.employee-credit-print-modal iframe {
  display: block;
  width: 100%;
  height: min(68vh, 680px);
  border: 0;
  background: #fff;
}

.employee-credit-activity-list {
  max-height: min(60vh, 550px);
  overflow: auto;
  padding: 18px 22px;
}

.employee-credit-activity-list article {
  margin-bottom: 12px;
  padding: 13px;
  border: 1px solid #e1eaf5;
  border-radius: 9px;
  background: #fbfdff;
}

.employee-credit-activity-list article:last-child {
  margin-bottom: 0;
}

.employee-credit-activity-list article > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #17375f;
}

.employee-credit-activity-list time,
.employee-credit-activity-list p {
  color: #607795;
  font-size: 12px;
}

.employee-credit-activity-list p {
  margin: 8px 0 0;
  line-height: 1.5;
}

.employee-credit-status.is-reviewing {
  color: #916d12;
  background: #fff4cf;
}

.employee-credit-status.is-authorized {
  color: #18764d;
  background: #e7f8ee;
}

.employee-credit-status.is-rejected {
  color: #a43939;
  background: #ffebeb;
}

.employee-credit-status.is-adjusted {
  color: #2265a9;
  background: #e8f3ff;
}

.employee-credits-tabs {
  display: flex;
  margin: 4px 0 20px;
  border: 1px solid #e1eaf5;
  border-radius: 10px;
  background: #f9fbfe;
}

.employee-credits-tabs button {
  min-width: 145px;
  padding: 11px 16px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #526a87;
  font: 800 11px 'DM Sans', sans-serif;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.employee-credits-tabs button.active {
  color: #17375f;
  background: #fff;
  box-shadow: 0 2px 8px rgba(34, 65, 105, .08);
}

.employee-credits-history {
  overflow: hidden;
  border: 1px solid #dfe8f4;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(19, 49, 88, .08);
}

.employee-credits-denied {
  max-width: 620px;
  padding: 28px;
  border: 1px solid #f0c8c8;
  border-radius: 14px;
  color: #7d3434;
  background: #fff8f8;
}

.employee-credits-denied h2 {
  margin: 0 0 7px;
  color: #9c3131;
}

.employee-credits-denied p {
  margin: 0;
}

.employee-credits-history .panel-header,
.employee-credits-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 20px;
  border-bottom: 1px solid #e7eef7;
  background: #fff;
}

.employee-credits-history h2 {
  margin: 3px 0 0;
  color: #18375f;
  font-size: 19px;
}

.employee-credits-toolbar {
  justify-content: flex-start;
  padding: 12px 18px;
  color: #597595;
  background: #fbfdff;
}

.employee-credits-toolbar .search {
  width: min(460px, 100%);
}

.employee-credits-history table {
  min-width: 870px;
}

.employee-credit-modal {
  width: min(880px, calc(100vw - 32px));
}

.employee-credit-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 22px 4px;
}

.employee-credit-fields label,
.employee-credit-calculator label {
  display: grid;
  gap: 6px;
  color: #203653;
  font-size: 12px;
  font-weight: 700;
}

.employee-credit-fields input,
.employee-credit-fields select,
.employee-credit-fields textarea,
.employee-credit-calculator input {
  min-width: 0;
  height: 39px;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #d9e4f2;
  border-radius: 7px;
  background: #f5f8fc;
  color: #203653;
  font: 600 13px 'DM Sans', sans-serif;
}

.employee-credit-fields textarea {
  min-height: 82px;
  resize: vertical;
}

.employee-credit-calculator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 18px 22px;
  padding: 17px 20px;
  border: 1px dashed #cdddf0;
  border-radius: 13px;
  background: #fbfdff;
}

.employee-credit-fields.compact {
  grid-template-columns: 1fr 1fr;
  padding: 14px 0 0;
}

.employee-credit-results > p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid #e1eaf5;
  color: #607795;
  font-size: 13px;
}

.employee-credit-results p strong {
  color: #17375f;
}

.employee-credit-results small {
  color: #8092aa;
  font-size: 10px;
  font-style: italic;
}

.employee-credit-results .employee-credit-weekly {
  margin-top: 12px;
  border: 0;
  font-weight: 800;
}

.employee-credit-weekly strong {
  padding: 7px 10px;
  border-radius: 8px;
  color: #17375f !important;
  background: #ffd21f;
  font-size: 17px;
}

@media (max-width: 680px) {
  .employee-credit-fields,
  .employee-credit-calculator {
    grid-template-columns: 1fr;
  }

  .employee-credits-page {
    padding: 14px;
  }
}
