.hr-root {
  --hr-ink: #163b3b;
  --hr-green: #246b59;
  --hr-line: #dbe5e3;
  font:
    14px/1.55 system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
  color: var(--hr-ink);
}
.hr-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
  margin-bottom: 25px;
}
.hr-heading h2 {
  font-size: 27px;
  letter-spacing: -0.7px;
  margin: 7px 0;
}
.hr-heading small {
  font-size: 10px;
  letter-spacing: 1.6px;
  color: #5d8378;
}
.hr-heading p {
  color: #68817b;
  margin: 0;
}
.hr-actions {
  display: flex;
  align-items: end;
  gap: 9px;
  flex-wrap: wrap;
}
.hr-btn {
  padding: 9px 13px;
  border: 1px solid var(--hr-line);
  border-radius: 7px;
  background: white;
  color: var(--hr-ink);
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.hr-btn.primary {
  background: var(--hr-green);
  border-color: var(--hr-green);
  color: white;
}
.hr-btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.hr-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.hr-toolbar p {
  margin: 0;
  color: #647f77;
}
.hr-scroll {
  overflow: auto;
  background: white;
  border: 1px solid var(--hr-line);
  border-radius: 10px;
}
.hr-table {
  width: 100%;
  border-collapse: collapse;
}
.hr-table th {
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #6a817c;
  text-align: left;
  padding: 14px;
  background: #f7faf8;
  white-space: nowrap;
}
.hr-table td {
  padding: 13px 14px;
  border-top: 1px solid #e9efec;
  vertical-align: middle;
}
.hr-table td small {
  display: block;
  color: #738981;
  font-size: 11px;
}
.hr-table td:last-child .hr-btn {
  margin: 3px;
}
.hr-tag {
  background: #e7f5ee;
  color: #27664f;
  font-size: 11px;
  border-radius: 20px;
  padding: 5px 9px;
  white-space: nowrap;
}
.hr-tag.warn {
  background: #fff3d9;
  color: #946c1e;
}
.hr-note {
  padding: 14px 17px;
  border-radius: 8px;
  background: #eaf5ef;
  color: #315a4b;
  margin: 18px 0;
}
.hr-note.warn {
  background: #fff4dd;
  color: #865f17;
}
.hr-note p {
  margin: 8px 0;
}
.hr-error {
  color: #a73a35;
  background: #fff0ec;
  padding: 12px;
  border-radius: 6px;
}
.hr-error[hidden],
.hr-note[hidden] {
  display: none;
}
.hr-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin: 20px 0;
}
.hr-metrics > div {
  padding: 20px;
  border: 1px solid var(--hr-line);
  border-radius: 10px;
  background: white;
}
.hr-metrics small {
  display: block;
  font-size: 10px;
  letter-spacing: 1px;
  color: #738981;
}
.hr-metrics b {
  display: block;
  font-size: 24px;
  margin-top: 8px;
}
.hr-panel {
  margin: 24px 0;
  padding: 20px;
  background: white;
  border: 1px solid var(--hr-line);
  border-radius: 10px;
}
.hr-panel h3 {
  margin-top: 0;
}
.hr-panel .hr-scroll {
  border: 0;
}
.hr-panel summary {
  cursor: pointer;
  font-weight: 600;
}
.hr-dialog {
  border: 0;
  box-shadow: 0 25px 100px #153b3b35;
  border-radius: 13px;
  padding: 0;
  width: min(970px, calc(100% - 28px));
  max-height: 92vh;
  overflow: auto;
}
.hr-dialog::backdrop {
  background: #0c272b77;
}
.hr-dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 25px;
  border-bottom: 1px solid var(--hr-line);
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}
.hr-dialog h2 {
  margin: 0;
  font-size: 21px;
}
.hr-form {
  padding: 20px 25px;
}
.hr-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.hr-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #527268;
}
.hr-field input,
.hr-field select,
.hr-field textarea {
  font: 14px system-ui;
  color: #143f36;
  border: 1px solid #cfded7;
  border-radius: 6px;
  padding: 10px;
  min-width: 0;
  max-width: 100%;
  background: white;
}
.hr-field input:focus,
.hr-field textarea:focus,
.hr-field select:focus {
  outline: 2px solid #91b9a9;
  outline-offset: 1px;
}
.hr-check {
  display: flex;
  align-items: center;
  gap: 9px;
  line-height: 1.45;
  padding: 8px 0;
  font-size: 12px;
}
.hr-check input {
  width: 16px;
  height: 16px;
  accent-color: #246b59;
}
.hr-fields .wide {
  grid-column: 1/-1;
}
.hr-fields h3 {
  border-top: 1px solid var(--hr-line);
  padding-top: 20px;
  margin: 12px 0 0;
  font-size: 16px;
}
.hr-fields h3:first-child {
  border: 0;
  padding-top: 0;
}
.hr-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.hr-week input {
  width: 100%;
  padding: 8px;
}
.hr-form footer {
  margin-top: 23px;
  display: flex;
  justify-content: end;
  gap: 10px;
}
.hr-root a {
  color: #246b59;
}
@media (max-width: 800px) {
  .hr-heading,
  .hr-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .hr-heading h2 {
    font-size: 23px;
  }
  .hr-metrics {
    grid-template-columns: 1fr;
  }
  .hr-fields {
    grid-template-columns: 1fr;
  }
  .hr-week {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .hr-dialog > header,
  .hr-form {
    padding: 18px;
  }
  .hr-metrics b {
    font-size: 22px;
  }
  .hr-heading .hr-actions {
    align-items: end;
  }
  .hr-field input[type="month"] {
    max-width: 190px;
  }
}
