/* Engage Solar — Recursos Humanos (reutiliza os componentes efl-* do Financeiro; aqui só o que é próprio do RH) */

body[data-es-panel-active^="rh-"] .es-page-heading {
  display: none !important;
}

body[data-es-panel-active^="rh-"] .es-content {
  margin-top: -0.65rem;
  padding: 0;
  background: #eef2f8;
  border-radius: 1.35rem 1.35rem 0 0;
  overflow: hidden;
}

body[data-es-panel-active^="rh-"] .es-panel--hr {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: #eef2f8;
  min-height: 100%;
}

.ehr-subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: #64748b;
}

.ehr-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.ehr-filters {
  align-items: center;
}

.ehr-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ehr-card .ehr-section-actions {
  margin: 0.75rem 0 0;
}

.ehr-check {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
}

.ehr-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.3rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  width: fit-content;
  max-width: 100%;
}

.ehr-tab {
  appearance: none;
  border: 0;
  border-radius: 0.6rem;
  padding: 0.45rem 0.85rem;
  background: transparent;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.ehr-tab:hover {
  background: #f1f5f9;
}

.ehr-tab.is-active {
  background: #2563eb;
  color: #fff;
}

.ehr-notice {
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid #bfdbfe;
  color: #334155;
  max-width: 48rem;
}

.ehr-notice strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1rem;
  color: #1e3a8a;
}

.ehr-notice p {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.ehr-notice[data-tone="warn"] { border-color: #fde68a; }
.ehr-notice[data-tone="warn"] strong { color: #92400e; }
.ehr-notice[data-tone="error"] { border-color: #fecaca; }
.ehr-notice[data-tone="error"] strong { color: #b91c1c; }

.ehr-flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.65rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: #dcfce7;
  color: #15803d;
}

.ehr-flash[data-tone="error"] {
  background: #fee2e2;
  color: #b91c1c;
}

.ehr-card {
  margin-top: 1rem;
}

.ehr-modal--wide {
  width: min(980px, 100%);
}

.ehr-detail .ehr-tabs {
  margin-bottom: 0.85rem;
}

.ehr-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.75rem 1.25rem;
  margin: 0 0 1rem;
}

.ehr-detail-grid dt {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.ehr-detail-grid dd {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  color: #0f172a;
}

.ehr-detail-actions {
  flex-wrap: wrap;
}

.ehr-section-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.ehr-pay-toolbar {
  align-items: flex-end;
  justify-content: space-between;
}

.ehr-pay-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
}

/* RH-UI-03: benefícios do vínculo e agregado por tipo (estilos locais) */
.ehr-benefit-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  align-items: baseline;
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: #334155;
}

.ehr-benefit-summary strong {
  font-size: 1.15rem;
  color: #0f172a;
}

.ehr-benefits-table .ehr-benefit-name,
.ehr-benefits-table .ehr-benefit-notes {
  white-space: normal;
  overflow-wrap: anywhere;
  min-width: 10rem;
}

.ehr-benefits-table th:nth-child(2),
.ehr-benefits-table td.ehr-num,
.ehr-benefit-groups th:nth-child(n + 3),
.ehr-benefit-groups td:nth-child(n + 3) {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.ehr-benefit-actions {
  white-space: nowrap;
  vertical-align: middle;
}

.ehr-benefit-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.ehr-benefits-central .ehr-benefit-actions-row {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.ehr-benefit-actions-row .efl-btn {
  white-space: nowrap;
}

.ehr-benefits-central .ehr-benefit-org {
  min-width: 8rem;
  overflow-wrap: anywhere;
}

.ehr-benefits-central td,
.ehr-benefits-central th {
  padding-left: 0.6rem;
  padding-right: 0.6rem;
}

.ehr-row-cancelled td {
  color: #94a3b8;
  text-decoration: line-through;
}

.ehr-row-cancelled td:nth-last-child(-n + 2) {
  text-decoration: none;
}

.ehr-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.ehr-picker-row {
  display: flex;
  gap: 0.5rem;
}

.ehr-picker-row input {
  flex: 1;
  min-width: 0;
}

.ehr-user {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
}

.ehr-user-email {
  font-size: 0.78rem;
  color: #64748b;
}

.ehr-user-id {
  font-size: 0.72rem;
  color: #94a3b8;
}

.ehr-sensitive-notice {
  margin: 0.25rem 0 0.5rem;
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.ehr-modal--matrix {
  width: min(1280px, 100%);
}

.ehr-matrix .ehr-filters {
  margin: 0.75rem 0;
}

.ehr-matrix-wrap {
  max-height: 58vh;
  overflow: auto;
}

.ehr-matrix-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
}

.ehr-matrix-table thead .ehr-matrix-groups + tr th {
  top: 2rem;
}

.ehr-matrix-groups th {
  height: 2rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
}

.ehr-matrix-table .ehr-matrix-head {
  min-width: 6.5rem;
  font-size: 0.72rem;
  line-height: 1.25;
  text-transform: none;
  letter-spacing: 0;
  vertical-align: bottom;
}

.ehr-matrix-table tbody th {
  font-size: 0.84rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #0f172a;
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
}

.ehr-matrix-table .ehr-matrix-head.is-sensitive {
  background: #fffbeb !important;
  color: #92400e;
}

.ehr-matrix-tag {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #b45309;
}

.ehr-matrix-sticky {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 11rem;
  text-align: left;
  background: #fff;
}

.ehr-matrix-table thead .ehr-matrix-sticky {
  z-index: 3;
  background: #f8fafc;
}

.ehr-matrix-sticky .efl-sub {
  font-weight: 400;
}

.ehr-matrix-row.is-inactive td,
.ehr-matrix-row.is-inactive th {
  color: #94a3b8;
}

.ehr-matrix-row.is-self th,
.ehr-matrix-row.is-self td {
  background: #f8fafc;
}

.ehr-matrix-cell {
  vertical-align: middle;
}

.ehr-matrix-cell input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

.ehr-matrix-cell input[type="checkbox"]:disabled {
  cursor: not-allowed;
}

.ehr-matrix-cell.is-dirty {
  background: #eff6ff;
  box-shadow: inset 0 0 0 2px #93c5fd;
}

.ehr-matrix-cell .efl-btn {
  display: block;
  margin: 0.3rem auto 0;
}

.ehr-matrix-note {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.62rem;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}

.ehr-matrix-note.is-pending {
  color: #1d4ed8;
}

.ehr-matrix-more {
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;
}

.ehr-matrix-foot {
  align-items: center;
  margin-top: 1rem;
}

.ehr-matrix-pending {
  margin-right: auto;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
}

.ehr-matrix-discard {
  margin-top: 0.75rem;
}

.ehr-matrix-result {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.84rem;
  background: #dcfce7;
  color: #14532d;
}

.ehr-matrix-result[data-tone="warn"] {
  background: #fef3c7;
  color: #78350f;
}

.ehr-matrix-result[data-tone="error"] {
  background: #fee2e2;
  color: #7f1d1d;
}

.ehr-matrix-result p,
.ehr-matrix-result ul {
  margin: 0.35rem 0 0;
}

.ehr-matrix-subtitle {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
}

.ehr-matrix-changes {
  margin: 0 0 0.5rem;
  padding-left: 1.2rem;
  max-height: 10rem;
  overflow-y: auto;
  font-size: 0.84rem;
}

/* Visão Geral: relatórios agregados (RH-REPORTS-01B) */

.ehr-report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.ehr-report-grid > .ehr-card {
  margin-top: 0;
}

.ehr-report-hint,
.ehr-report-total {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #64748b;
}

.ehr-report-total strong {
  color: #0f172a;
}

.ehr-report-subtitle {
  margin: 1rem 0 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
}

.ehr-dist .efc-hbar-track span {
  background: #2563eb;
}

.ehr-dist .efc-hbar.is-unassigned .efc-hbar-track span {
  background: #94a3b8;
}

.ehr-confidential {
  border-color: #fde68a;
}

.ehr-confidential .ehr-notice {
  max-width: none;
  margin: 0.75rem 0;
}

.ehr-pay-kpis {
  margin-bottom: 0.5rem;
}

/* Relatórios detalhados e exportação CSV (RH-REPORTS-01C.3) */

.ehr-export {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.84rem;
  background: #eff6ff;
  color: #1e3a8a;
}

.ehr-export[data-tone="success"] {
  background: #dcfce7;
  color: #14532d;
}

.ehr-export[data-tone="error"] {
  background: #fee2e2;
  color: #7f1d1d;
}

.ehr-export-text {
  display: flex;
  flex: 1 1 18rem;
  flex-direction: column;
  gap: 0.2rem;
}

.ehr-export-progress {
  flex: 0 1 12rem;
  height: 0.6rem;
}

[data-hr-report-tab] .efl-table-wrap {
  margin-top: 0.75rem;
}

@media (max-width: 640px) {
  .ehr-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ehr-tabs {
    width: 100%;
  }
}

/* ---- Colaboradores: ações da listagem ------------------------------------------------------- */
.ehr-row-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

/* ---- Ficha: modal com cabeçalho fixo e rolagem só no conteúdo -------------------------------- */
.ehr-modal--person {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 90vh;
}

.ehr-modal--person > .efl-modal-head {
  flex: 0 0 auto;
}

.ehr-modal--person > .ehr-detail {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding-bottom: 0.75rem;
}

.ehr-modal--person .ehr-tabs {
  flex: 0 0 auto;
}

.ehr-detail-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.ehr-modal--person .ehr-detail-actions {
  flex: 0 0 auto;
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  border-top: 1px solid #e2e8f0;
}

.ehr-modal--files {
  width: min(1200px, 100%);
  height: 90vh;
}

/* ---- Documentos e Arquivos --------------------------------------------------------------------- */
.ehr-docs-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  margin-bottom: 0.85rem;
}

.ehr-docs-head .efl-filters {
  margin: 0;
  flex: 1 1 18rem;
  min-width: 0;
}

.ehr-docs-upload {
  flex: 0 0 auto;
}

.ehr-doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.ehr-doc {
  display: grid;
  grid-template-columns: 72px minmax(0, 1.4fr) minmax(0, 2fr) auto auto;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.65rem 0.85rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
}

.ehr-doc:hover {
  border-color: #bfdbfe;
}

.ehr-doc-thumb {
  position: relative;
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 0.6rem;
  background: #f8fafc;
  cursor: default;
}

button.ehr-doc-thumb {
  cursor: pointer;
}

button.ehr-doc-thumb:hover,
button.ehr-doc-thumb:focus-visible {
  border-color: #2563eb;
}

.ehr-doc-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.ehr-doc-thumb-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  color: #64748b;
}

.ehr-doc-thumb-icon[data-tone="pdf"] { color: #dc2626; }
.ehr-doc-thumb-icon[data-tone="img"] { color: #2563eb; }

.ehr-doc-thumb-icon .ehr-icon {
  width: 26px;
  height: 26px;
}

.ehr-doc-thumb-icon small {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ehr-doc-thumb.has-image .ehr-doc-thumb-icon {
  visibility: hidden;
}

.ehr-doc-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.ehr-doc-name,
.ehr-doc-notes {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ehr-doc-name {
  font-size: 0.9rem;
  color: #0f172a;
}

.ehr-doc-notes {
  font-size: 0.75rem;
  color: #475569;
}

.ehr-doc-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 0.4rem 1rem;
  margin: 0;
  min-width: 0;
}

.ehr-doc-info > div {
  min-width: 0;
}

.ehr-doc-info dt {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.ehr-doc-info dd {
  margin: 0.1rem 0 0;
  font-size: 0.82rem;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ehr-doc-status {
  justify-self: start;
}

.ehr-doc-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.ehr-icon-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  background: transparent;
  color: #334155;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  list-style: none;
}

.ehr-icon-btn::-webkit-details-marker { display: none; }

.ehr-icon-btn:hover:not(:disabled),
.ehr-icon-btn:focus-visible {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.ehr-icon-btn:disabled {
  opacity: 0.45;
  cursor: progress;
}

.ehr-menu {
  position: relative;
}

.ehr-menu-list {
  position: fixed;
  z-index: 10100;
  display: none;
  min-width: 10.5rem;
  padding: 0.3rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.7rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.ehr-menu[open] > .ehr-menu-list {
  display: flex;
  flex-direction: column;
}

.ehr-menu-item {
  appearance: none;
  border: 0;
  border-radius: 0.5rem;
  padding: 0.5rem 0.7rem;
  background: transparent;
  color: #0f172a;
  font-size: 0.84rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.ehr-menu-item:hover,
.ehr-menu-item:focus-visible {
  background: #f1f5f9;
}

@media (max-width: 1000px) {
  .ehr-doc {
    grid-template-columns: 72px minmax(0, 1fr) auto;
  }

  .ehr-doc-info {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .ehr-doc-status {
    grid-column: 2;
    grid-row: 3;
  }

  .ehr-doc-actions {
    grid-column: 3;
    grid-row: 3;
  }
}

@media (max-width: 560px) {
  .ehr-modal--files {
    height: 94vh;
  }

  .ehr-doc {
    grid-template-columns: 56px minmax(0, 1fr);
    padding: 0.6rem;
  }

  .ehr-doc-thumb {
    width: 56px;
    height: 56px;
  }

  .ehr-doc-info,
  .ehr-doc-status,
  .ehr-doc-actions {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .ehr-doc-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ehr-doc-actions {
    justify-content: flex-end;
  }

  .ehr-docs-head .efl-filters select {
    width: 100%;
  }

  .ehr-docs-upload {
    width: 100%;
  }
}

/* ---- Visualizador de documento ----------------------------------------------------------------- */
.ehr-modal--viewer {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: min(1100px, 100%);
  height: 90vh;
}

.ehr-modal--viewer > .efl-modal-head h2 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ehr-viewer {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0.75rem 1.25rem 1rem;
}

.ehr-viewer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  margin-bottom: 0.6rem;
}

.ehr-viewer-meta {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  color: #475569;
}

.ehr-viewer-zoom {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.ehr-viewer-stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 0.7rem;
  overflow: hidden;
}

.ehr-viewer-frame {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.ehr-viewer-img-wrap {
  flex: 1 1 auto;
  overflow: auto;
  display: flex;
  padding: 0.5rem;
}

.ehr-viewer-img {
  display: block;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ehr-viewer-msg {
  margin: auto;
  padding: 1rem;
  text-align: center;
}

.ehr-viewer > .efl-modal-foot {
  flex: 0 0 auto;
  padding-top: 0.75rem;
}

/* ---- Foto de perfil do colaborador ---------------------------------------------------------- */
.ehr-avatar {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: #dbeafe;
  color: #1e40af;
  font-weight: 700;
  line-height: 1;
  user-select: none;
}

.ehr-avatar--sm { width: 36px; height: 36px; font-size: 0.8rem; }
.ehr-avatar--md { width: 52px; height: 52px; font-size: 1.05rem; }
.ehr-avatar--lg { width: 96px; height: 96px; font-size: 1.9rem; }
.ehr-avatar--xl { width: min(420px, 80vw); height: min(420px, 80vw); font-size: 5rem; }

.ehr-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ehr-avatar.has-image .ehr-avatar-initials { visibility: hidden; }

.ehr-person-cell {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.ehr-person-cell strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ehr-person-head {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  min-width: 0;
}

.ehr-person-head-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ehr-person-head-text strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1rem;
  color: #0f172a;
}

.ehr-person-head-text span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8rem;
  color: #64748b;
}

.ehr-avatar-btn {
  appearance: none;
  display: inline-flex;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: zoom-in;
}

.ehr-avatar-btn:hover .ehr-avatar,
.ehr-avatar-btn:focus-visible .ehr-avatar { box-shadow: 0 0 0 3px #93c5fd; }

.ehr-photo-field {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ehr-photo-side {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.ehr-photo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.ehr-photo-pick { position: relative; cursor: pointer; }
.ehr-photo-pick.is-disabled { opacity: 0.55; cursor: not-allowed; }
.ehr-photo-pick:focus-within { outline: 2px solid #1d4ed8; outline-offset: 2px; }

.ehr-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.ehr-photo-confirm {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #92400e;
}

.ehr-photo-notice { font-size: 0.82rem; font-weight: 600; color: #15803d; }

.ehr-modal--photo { width: min(520px, 100%); }

.ehr-photo-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 560px) {
  .ehr-photo-field { flex-direction: column; align-items: flex-start; }
}

.ehr-cost-center-picker { position: relative; min-width: 0; }
.ehr-cost-center-picker > label { display: grid; gap: .35rem; }
.ehr-cost-center-options {
  display: grid;
  gap: .2rem;
  max-height: 14rem;
  margin-top: .35rem;
  padding: .3rem;
  overflow-y: auto;
  border: 1px solid #cbd5e1;
  border-radius: .6rem;
  background: #fff;
}
.ehr-cost-center-options:empty { display: none; }
.ehr-cost-center-options button {
  width: 100%;
  padding: .6rem .65rem;
  border: 0;
  border-radius: .4rem;
  background: transparent;
  color: #172033;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.ehr-cost-center-options button:hover,
.ehr-cost-center-options button:focus-visible,
.ehr-cost-center-options button[aria-selected="true"] { background: #eaf3ff; outline: none; }
.ehr-cost-center-options .ehr-cost-center-more { color: #1d4ed8; font-weight: 700; text-align: center; }
.ehr-cost-center-state,
.ehr-cost-center-selected { margin: .45rem 0 0; font-size: .82rem; }
.ehr-cost-center-selected { color: #0f5132; }

.ehr-person-picker { position: relative; min-width: 0; }
.ehr-person-picker > label { display: grid; gap: .35rem; }
.ehr-person-options {
  display: grid;
  gap: .2rem;
  max-height: 15rem;
  margin-top: .35rem;
  padding: .3rem;
  overflow-y: auto;
  border: 1px solid #cbd5e1;
  border-radius: .6rem;
  background: #fff;
}
.ehr-person-options button {
  display: grid;
  width: 100%;
  gap: .15rem;
  padding: .6rem .65rem;
  border: 0;
  border-radius: .4rem;
  background: transparent;
  color: #172033;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.ehr-person-options button:hover,
.ehr-person-options button:focus-visible,
.ehr-person-options button[aria-selected="true"] { background: #eaf3ff; outline: none; }
.ehr-person-options button:disabled { color: #64748b; cursor: not-allowed; }
.ehr-person-options button span { font-size: .8rem; color: #64748b; }
.ehr-person-options .ehr-person-option-note { color: #92400e; }
.ehr-person-options .ehr-person-more { color: #1d4ed8; font-weight: 700; text-align: center; }
.ehr-person-search-state,
.ehr-person-selected { margin: .45rem 0 0; font-size: .82rem; }
.ehr-person-selected { color: #0f5132; }

/* ---- RH-UI-01: lista de colaboradores e ficha em página (estilos restritos ao namespace ehr-*) ---- */
.ehr-listbar {
  margin-bottom: 0.9rem;
  padding: 0.75rem 0.9rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
}

.ehr-listbar .efl-filters {
  margin: 0;
}

.ehr-people-wrap {
  font-size: 0.95rem;
}

.ehr-people-table th {
  white-space: nowrap;
}

.ehr-people-table td {
  vertical-align: middle;
}

.ehr-person-cell-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.ehr-name-link {
  appearance: none;
  display: block;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-weight: 700;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.ehr-name-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.ehr-name-link:focus-visible,
.ehr-crumb-link:focus-visible,
.ehr-inline-link:focus-visible,
.ehr-page .ehr-tab:focus-visible,
.ehr-page summary:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}

.ehr-person-sub {
  font-size: 0.82rem;
  color: #64748b;
  overflow-wrap: anywhere;
}

.ehr-state {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e293b;
}

.ehr-state--muted {
  color: #64748b;
  font-weight: 500;
}

.ehr-muted-cell {
  font-size: 0.84rem;
  color: #64748b;
  white-space: nowrap;
}

.ehr-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.95rem;
  color: #0f172a;
}

.ehr-page .efl-status {
  font-size: 0.8rem;
}

.ehr-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.ehr-crumb-trail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
  font-size: 0.9rem;
  color: #475569;
}

.ehr-crumb-trail li + li::before {
  content: "›";
  margin-right: 0.4rem;
  color: #94a3b8;
}

.ehr-crumb-trail li[aria-current="page"] {
  font-weight: 700;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.ehr-crumb-link,
.ehr-inline-link {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1d4ed8;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.ehr-pf-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 1.5rem;
  padding: 1.25rem 1.4rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.ehr-pf-id {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  min-width: 0;
}

.ehr-pf-id-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.ehr-pf-name {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.25;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.ehr-pf-social,
.ehr-pf-position {
  margin: 0;
  font-size: 0.95rem;
  color: #475569;
  overflow-wrap: anywhere;
}

.ehr-pf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  margin-top: 0.4rem;
}

.ehr-pf-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ehr-pf-chip small {
  font-size: 0.8rem;
  color: #64748b;
}

.ehr-pf-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.5rem;
}

.ehr-pf-more > summary {
  list-style: none;
  cursor: pointer;
}

.ehr-pf-more > summary::-webkit-details-marker {
  display: none;
}

.ehr-menu-item--danger {
  color: #b91c1c;
}

.ehr-pf-summary {
  grid-column: 1 / -1;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.ehr-pf-summary-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 0.7rem;
}

.ehr-pf-select {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #475569;
}

.ehr-pf-select select {
  max-width: min(32rem, 70vw);
  padding: 0.35rem 0.5rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background: #fff;
  font-size: 0.9rem;
}

.ehr-pf-summary-grid,
.ehr-pf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem 1.5rem;
  margin: 0;
}

.ehr-pf-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ehr-pf-summary-grid dt,
.ehr-pf-field dt {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
}

.ehr-pf-summary-grid dd,
.ehr-pf-field dd {
  margin: 0.2rem 0 0;
  font-size: 1rem;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.ehr-pf-field--wide {
  grid-column: span 2;
}

.ehr-pf-empty,
.ehr-pf-muted {
  color: #64748b;
  font-size: 0.92rem;
}

.ehr-pf-empty {
  font-style: italic;
}

.ehr-page .ehr-pf-tabs {
  margin: 0;
  width: 100%;
  flex-wrap: wrap;
}

.ehr-page .ehr-tab {
  padding: 0.6rem 1rem;
  font-size: 0.92rem;
}

.ehr-pf-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ehr-pf-panel:focus-visible {
  outline: 3px solid #bfdbfe;
  outline-offset: 2px;
}

.ehr-pf-group {
  padding: 1.1rem 1.3rem 1.3rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.ehr-pf-group-title {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
  color: #1e293b;
}

.ehr-pf-note,
.ehr-pf-intro {
  margin: -0.4rem 0 0.9rem;
  font-size: 0.9rem;
  color: #475569;
}

.ehr-pf-intro {
  margin: 0;
}

.ehr-pf-note--warn {
  color: #92400e;
}

.ehr-pf-engagement {
  margin: 0 0 0.9rem;
}

.ehr-pf-engagement:last-child {
  margin-bottom: 0;
}

.ehr-pf-engagement-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.9rem;
  font-size: 1rem;
}

@media (max-width: 1100px) {
  .ehr-pf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ehr-pf-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ehr-pf-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 1rem;
  }

  .ehr-pf-actions {
    justify-content: flex-start;
  }

  .ehr-pf-id {
    flex-direction: column;
  }

  .ehr-pf-grid,
  .ehr-pf-summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ehr-pf-field--wide {
    grid-column: auto;
  }

  .ehr-pf-name {
    font-size: 1.25rem;
  }

  .ehr-page .ehr-tab {
    flex: 1 1 auto;
  }
}

.ehr-people-table td.ehr-actions-cell {
  text-align: right;
  white-space: nowrap;
}

.ehr-people-table .ehr-row-actions {
  flex-wrap: nowrap;
}

@media (max-width: 760px) {
  .ehr-people-table .ehr-row-actions {
    flex-wrap: wrap;
  }
}

.ehr-people-table .efl-btn--xs.efl-btn--primary {
  background: #2563eb;
  color: #fff;
  font-size: 0.8rem;
}

.ehr-people-table .efl-btn--xs.efl-btn--primary:hover {
  background: #1d4ed8;
}

.ehr-people-table .efl-btn--xs {
  font-size: 0.8rem;
}

/* RH-RESTORE-02: reversão de desligamento */
.ehr-reversal-event { margin: 0.75rem 0; padding: 0.6rem 0.8rem; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; }
.ehr-reversal-event p { margin: 0.25rem 0 0; }
.ehr-review-list { margin: 0.5rem 0 1rem; padding-left: 1.1rem; display: grid; gap: 0.5rem; }

/* Visão Geral: layout compacto (RH-UI-02) — escopo restrito ao dashboard RH */

.ehr-ov-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.ehr-ov-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  min-width: 0;
  margin: 0;
  padding: 0.35rem 0.75rem 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
}

.ehr-ov-group--grow {
  flex: 1 1 24rem;
}

.ehr-ov-group legend {
  padding: 0 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #475569;
}

.ehr-ov-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
}

.ehr-ov-group--grow .ehr-ov-field {
  flex: 1 1 10rem;
}

.ehr-ov-field input,
.ehr-ov-field select {
  min-width: 0;
  max-width: 100%;
  font-size: 0.85rem;
}

.ehr-ov-actions {
  display: flex;
  gap: 0.5rem;
  padding-bottom: 0.4rem;
}

.ehr-ov-filters :focus-visible,
.ehr-ov-help summary:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.ehr-ov-help {
  margin: 0 0 0.8rem;
  font-size: 0.8rem;
  color: #64748b;
}

.ehr-ov-help summary {
  width: fit-content;
  cursor: pointer;
  font-weight: 600;
  color: #475569;
}

/* Indicadores principais e secundários */

.ehr-kpis--primary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ehr-kpis--primary .efl-kpi-card {
  min-height: 7.5rem;
  padding: 1rem 1.15rem;
}

.ehr-kpis--primary .efl-kpi-label {
  font-size: 0.875rem;
  font-weight: 700;
}

.ehr-kpis--primary .efl-kpi-value {
  font-size: 2.1rem;
  line-height: 1.1;
}

.ehr-kpis--secondary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.ehr-kpis--secondary .efl-kpi-card {
  padding: 0.65rem 0.9rem;
  border-radius: 0.8rem;
  background: #f8fafc;
  box-shadow: none;
}

.ehr-kpis--secondary .efl-kpi-value {
  margin-top: 0.3rem;
  font-size: 1.35rem;
}

.ehr-kpis .efl-kpi-hint {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #64748b;
}

@media (max-width: 1100px) {
  .ehr-kpis--primary,
  .ehr-kpis--secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .ehr-kpis--primary,
  .ehr-kpis--secondary {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Grade de gráficos e distribuições */

.ehr-ov-row {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.ehr-ov-row > .ehr-card {
  min-width: 0;
  margin-top: 0;
}

.ehr-ov-row--main {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.ehr-ov-row--pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .ehr-ov-row--main,
  .ehr-ov-row--pair {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Distribuições: nomes longos quebram linha em vez de truncar */

.ehr-dist .efc-hbar-head {
  align-items: flex-start;
}

.ehr-dist .efc-hbar-name {
  display: block;
  flex: 1 1 0;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
}

.ehr-dist .efc-hbar-nums {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Gráfico mensal: altura fixa, largura fluida, fontes em px reais */

.ehr-mc {
  --ehr-chart-h: 300px;
  --ehr-axis-w: 2.25rem;
}

.ehr-mc-plot {
  position: relative;
  height: var(--ehr-chart-h);
  padding: 1.1rem 0 1.6rem var(--ehr-axis-w);
}

.ehr-mc-grid,
.ehr-mc-groups {
  position: absolute;
  top: 1.1rem;
  bottom: 1.6rem;
  left: var(--ehr-axis-w);
  right: 0;
}

.ehr-mc-tick {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 1px solid #e2e8f0;
}

.ehr-mc-tick.is-zero {
  border-top-color: #94a3b8;
}

.ehr-mc-tick span {
  position: absolute;
  right: calc(100% + 0.4rem);
  top: -0.5em;
  font-size: 0.75rem;
  line-height: 1;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.ehr-mc-groups {
  display: flex;
  align-items: stretch;
}

.ehr-mc-group {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}

.ehr-mc-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  height: 100%;
  padding: 0 8%;
}

.ehr-mc-bar {
  position: relative;
  flex: 0 1 1.4rem;
  min-width: 2px;
  height: var(--h);
  min-height: 0;
  border-radius: 3px 3px 0 0;
  background: var(--c);
}

.ehr-mc-bar[style*="--h:0.00%"] {
  height: 0;
}

.ehr-mc-bar em {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.4;
  color: #334155;
}

.ehr-mc-label {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  line-height: 1;
  white-space: nowrap;
  color: #64748b;
}

.ehr-mc-label.is-hidden {
  display: none;
}

.ehr-mc-range {
  margin-left: auto;
  color: #64748b;
}

@media (max-width: 560px) {
  .ehr-mc {
    --ehr-chart-h: 260px;
  }
}

.ehr-ov-group {
  box-sizing: border-box;
  max-width: 100%;
}

.ehr-ov-field select,
.ehr-ov-field input {
  box-sizing: border-box;
}

.ehr-ov-group--grow .ehr-ov-field {
  flex: 1 1 11rem;
}

.ehr-ov-group--grow .ehr-ov-field select {
  width: 100%;
}

@media (max-width: 700px) {
  .ehr-ov-group {
    flex: 1 1 100%;
  }

  .ehr-ov-group .ehr-ov-field {
    flex: 1 1 8rem;
  }

  .ehr-ov-group input,
  .ehr-ov-group select {
    width: 100%;
  }
}

.ehr-ov-row {
  align-items: start;
}

@media (max-width: 700px) {
  .ehr-ov-group--grow .ehr-ov-field {
    flex: 1 1 100%;
  }

  .ehr-mc-group:nth-last-child(even) .ehr-mc-label {
    display: none;
  }
}

/* RH-BENEFITS-02: página centralizada de Benefícios (estilos locais) */
.ehr-benefit-scope {
  margin: 0 0 0.6rem;
  font-size: 0.82rem;
  color: #475569;
}

.ehr-benefit-kpis {
  margin-bottom: 0.75rem;
}

.ehr-benefit-dists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  align-items: start;
}

.ehr-benefit-dist-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  max-height: 20rem;
  overflow-y: auto;
}

.ehr-benefit-dist-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.ehr-benefit-dist-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ehr-benefit-bar {
  height: 0.45rem;
  margin: 0.25rem 0;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.ehr-benefit-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #2563eb;
}

.ehr-benefit-filters {
  align-items: center;
  margin-bottom: 0.5rem;
}

.ehr-benefits-central th.ehr-num,
.ehr-benefits-central td.ehr-num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.ehr-benefits-central th:nth-child(2) {
  text-align: left;
}

.ehr-sort {
  all: unset;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
}

.ehr-sort:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.ehr-benefits-central .is-loading,
.efl-table-wrap.is-loading {
  opacity: 0.6;
}

@media (max-width: 900px) {
  .ehr-benefit-dists {
    grid-template-columns: minmax(0, 1fr);
  }
}

.ehr-benefit-kpis .efl-kpi-hint {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.3;
}

.ehr-benefit-groups td,
.ehr-benefit-groups th {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

@media (max-width: 640px) {
  .ehr-benefit-kpis {
    grid-template-columns: minmax(0, 1fr);
  }

  .ehr-benefit-filters > *,
  .ehr-benefit-filters select,
  .ehr-benefit-filters input {
    min-width: 0;
    max-width: 100%;
  }

  .ehr-benefit-filters select,
  .ehr-benefit-filters .efl-search-wrap {
    flex: 1 1 100%;
  }

  .ehr-benefit-dist,
  .ehr-benefit-groups {
    min-width: 0;
  }
}

/* Ordenação por cabeçalho (RH-REL-SORT-03): botão sem moldura, herdando a tipografia do <th>. */
.ehr-page .efl-table th .ehr-sort {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  text-transform: inherit;
  letter-spacing: inherit;
  font-weight: inherit;
  font-size: inherit;
  color: inherit;
}

.ehr-page .efl-table th .ehr-sort:hover,
.ehr-page .efl-table th.is-sorted .ehr-sort {
  color: #0f172a;
}

.ehr-page .efl-table th .ehr-sort:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
  border-radius: 4px;
}

.ehr-sort-icon {
  font-size: 0.7em;
  opacity: 0.45;
}

.efl-table th.is-sorted .ehr-sort-icon {
  opacity: 1;
}
