/* HR reliability release overlay. Kept separate from the frozen legacy bundle. */
.hr-religion-field select,
.hr-job-combobox > input {
  width: 100%;
}

.hr-job-combobox {
  position: relative;
  min-width: 0;
}

.hr-profile-validation-message {
  display: block;
  margin-block-start: 0.28rem;
  color: #a3261d;
  font-size: 0.78rem;
  font-weight: 700;
}

.hr-job-combobox-list {
  position: absolute;
  z-index: 45;
  inset-inline: 0;
  top: calc(100% + 0.3rem);
  max-height: min(20rem, 45vh);
  overflow: auto;
  padding: 0.35rem;
  border: 1px solid var(--border, #d9e2e4);
  border-radius: 0.75rem;
  background: var(--surface, #fff);
  box-shadow: 0 16px 38px rgb(15 43 48 / 16%);
}

.hr-job-combobox-list[hidden] {
  display: none;
}

.hr-job-combobox-list button {
  display: grid;
  width: 100%;
  gap: 0.18rem;
  padding: 0.65rem 0.75rem;
  border: 0;
  border-radius: 0.55rem;
  color: inherit;
  background: transparent;
  text-align: start;
  cursor: pointer;
}

.hr-job-combobox-list button:hover,
.hr-job-combobox-list button.is-active {
  background: color-mix(in srgb, var(--primary, #00545a) 11%, transparent);
  outline: none;
}

.hr-job-combobox-list strong,
.hr-job-combobox-list small {
  overflow-wrap: anywhere;
}

.hr-job-combobox-list small {
  color: var(--muted, #637477);
}

[data-employee-master-defaults-hint]:not(.hide) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hr-add-employee-visible {
  flex: 0 0 auto;
  max-width: 100%;
  white-space: nowrap;
}

.hr-summary-v2 {
  display: grid;
  gap: 1rem;
}

.hr-summary-toolbar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.hr-summary-toolbar > :nth-child(2) {
  margin-inline-end: auto;
  color: var(--muted, #637477);
  font-size: 0.86rem;
}

.hr-summary-headline,
.hr-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.hr-summary-metric {
  width: 100%;
  appearance: none;
  cursor: pointer;
  text-align: start;
}

.hr-summary-metric:focus-visible,
.hr-summary-list button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary, #00545a) 32%, transparent);
  outline-offset: 2px;
}

.hr-summary-group {
  min-width: 0;
  margin: 0;
}

.hr-summary-list {
  display: grid;
  gap: 0.35rem;
}

.hr-summary-list button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.3rem 0.7rem;
  width: 100%;
  padding: 0.55rem 0.25rem;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: start;
  cursor: pointer;
}

.hr-summary-list button:hover {
  color: var(--primary, #00545a);
}

.hr-summary-list i {
  grid-column: 1 / -1;
  display: block;
  height: 0.3rem;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary, #00545a) 8%, transparent);
}

.hr-summary-list em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary, #00545a);
}

.hr-summary-invariants {
  margin: 0;
}

.permission-admin-add-only-note {
  margin: 0;
}

.permission-admin-existing-lock {
  cursor: not-allowed;
  opacity: 0.78;
}

.hr-server-drill-card dl {
  margin: 0;
}

.hr-server-drill {
  display: grid;
  grid-template-rows: auto auto auto auto;
  width: min(64rem, calc(100vw - 2.5rem));
  max-width: calc(100vw - 2.5rem);
  max-height: min(80dvh, 48rem);
  padding: 1rem;
  overflow: hidden;
}

.hr-server-drill-header,
.hr-server-drill-search,
.hr-server-drill-pagination {
  position: relative;
  z-index: 1;
  background: var(--surface, #fff);
}

.hr-server-drill-search {
  margin-block: 0.55rem 0.8rem;
}

.hr-server-drill-content {
  min-width: 0;
  max-height: min(52dvh, 32rem);
  overflow: auto;
  overscroll-behavior: contain;
}

.hr-server-drill .table-wrap {
  min-height: 0;
  overflow: visible;
}

.hr-server-drill-table {
  width: 100%;
  min-width: 0;
}

.hr-server-drill-table table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.hr-server-drill-table th,
.hr-server-drill-table td {
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid color-mix(in srgb, var(--border, #d9e2e4) 78%, transparent);
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: normal;
}

.hr-server-drill-table th:nth-child(1) { width: 10%; }
.hr-server-drill-table th:nth-child(2) { width: 20%; }
.hr-server-drill-table th:nth-child(3) { width: 18%; }
.hr-server-drill-table th:nth-child(4) { width: 17%; }
.hr-server-drill-table th:nth-child(5) { width: 17%; }
.hr-server-drill-table th:nth-child(6) { width: 18%; }

.hr-server-drill-table tbody tr:last-child td {
  border-bottom: 0;
}

.hr-server-drill-table thead th {
  position: sticky;
  z-index: 1;
  top: 0;
  background: var(--surface, #fff);
}

.hr-server-drill-cards {
  display: none;
}

.hr-server-drill-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border, #d9e2e4);
}

@media (max-width: 720px) {
  .hr-summary-headline,
  .hr-summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hr-summary-toolbar > :nth-child(2) {
    width: 100%;
    margin-inline-end: 0;
  }

  .hr-server-drill {
    position: fixed;
    inset: 0;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0.8rem;
    border-radius: 0;
  }

  .hr-server-drill-content {
    max-height: none;
    overflow-x: hidden;
  }

  .hr-server-drill-table {
    display: none;
  }

  .hr-server-drill-cards {
    display: grid;
    gap: 0.65rem;
  }

  .hr-server-drill-card {
    min-width: 0;
    padding: 0.75rem;
    border: 1px solid var(--border, #d9e2e4);
    border-radius: 0.7rem;
    background: var(--surface, #fff);
    overflow-wrap: anywhere;
  }

  .hr-server-drill-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
  }

  .hr-server-drill-card header span {
    color: var(--muted, #637477);
    font-size: 0.75rem;
  }

  .hr-server-drill-card dl {
    display: grid;
    gap: 0.4rem;
  }

  .hr-server-drill-card dl > div {
    display: grid;
    grid-template-columns: minmax(5.5rem, 0.38fr) minmax(0, 1fr);
    gap: 0.5rem;
  }

  .hr-server-drill-card dt {
    color: var(--muted, #637477);
    font-size: 0.75rem;
  }

  .hr-server-drill-card dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
  }

}

@media print {
  .hr-summary-toolbar button,
  .hr-summary-metric small {
    display: none !important;
  }

  .hr-summary-v2,
  .hr-summary-grid,
  .hr-summary-headline {
    display: block;
  }

  .hr-summary-v2 > *,
  .hr-summary-grid > *,
  .hr-summary-headline > * {
    break-inside: avoid;
    margin-block-end: 0.8rem;
  }
}
.hr-dashboard-status {
  min-height: 11rem;
  border: 1px solid #dae6e7;
  border-radius: 14px;
  background: #fff;
  padding: 1.25rem;
  overflow-wrap: anywhere;
}
.hr-dashboard-status small { display: block; margin-top: .75rem; }
.hr-dashboard-skeleton { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.hr-dashboard-skeleton span { height: 5rem; background: #edf3f4; border-radius: .6rem; }
.hr-dashboard-quality-note { margin: .65rem 0; font-size: .8rem; color: #4b6468; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .hr-dashboard-skeleton { grid-template-columns: 1fr; }
  .dashboard-hr-page { min-width: 0; padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
}
