/* =========================================================
   UBICACIÓN:
   frontend/src/pages/capital-humano/empleados/empleados.css

   WIRTZ HUB · CAPITAL HUMANO · EMPLEADOS

   NUEVO LAYOUT PREMIUM
   PARTE 1 DE 3

   CONTIENE:
   - Reset
   - Variables
   - Dark mode
   - Página
   - Header
   - Acciones
   - Métricas
   - Panel principal
   - Filtros
   - Buscador
   ========================================================= */


/* =========================================================
   01. RESET LOCAL
   ========================================================= */

.employees-page,
.employees-page *,
.employees-page *::before,
.employees-page *::after,
.employees-modal,
.employees-modal *,
.employees-modal *::before,
.employees-modal *::after,
.employees-toast,
.employees-toast *,
.employees-toast *::before,
.employees-toast *::after {
  box-sizing: border-box;

  font-family:
    "DM Sans",
    "Inter",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}


.employees-page button,
.employees-page input,
.employees-page select,
.employees-page textarea,
.employees-modal button,
.employees-modal input,
.employees-modal select,
.employees-modal textarea {
  font: inherit;
}


.employees-page button,
.employees-modal button {
  appearance: none;

  -webkit-appearance: none;

  -webkit-tap-highlight-color: transparent;
}


.employees-page img,
.employees-modal img {
  display: block;

  max-width: 100%;
}


/* =========================================================
   02. VARIABLES
   ========================================================= */

.employees-page,
.employees-modal,
.employees-toast {
  --ep-page:
    #f3f4f5;

  --ep-surface:
    #ffffff;

  --ep-surface-2:
    #f8f9fa;

  --ep-surface-3:
    #f0f1f2;

  --ep-hover:
    #f4f5f6;

  --ep-active:
    #e9ebed;

  --ep-text:
    #17191c;

  --ep-title:
    #08090a;

  --ep-soft:
    #555b63;

  --ep-muted:
    #7d848d;

  --ep-faint:
    #abb0b6;

  --ep-border:
    #e0e3e6;

  --ep-border-soft:
    #eceef0;

  --ep-border-strong:
    #cbd0d5;

  --ep-black:
    #111214;

  --ep-black-hover:
    #232529;

  --ep-black-text:
    #ffffff;

  --ep-success:
    #197a3e;

  --ep-success-bg:
    #eef8f1;

  --ep-success-border:
    #cce7d4;

  --ep-warning:
    #a56608;

  --ep-warning-bg:
    #fff7e8;

  --ep-warning-border:
    #ead8ae;

  --ep-danger:
    #be3434;

  --ep-danger-bg:
    #fff1f1;

  --ep-danger-border:
    #edcece;

  --ep-info:
    #466789;

  --ep-info-bg:
    #f0f5fa;

  --ep-info-border:
    #cfdeeb;

  --ep-radius-xs:
    7px;

  --ep-radius-sm:
    9px;

  --ep-radius-md:
    12px;

  --ep-radius-lg:
    15px;

  --ep-radius-xl:
    18px;

  --ep-shadow-xs:
    0
    1px
    2px
    rgba(
      15,
      23,
      42,
      0.025
    );

  --ep-shadow-sm:
    0
    5px
    16px
    rgba(
      15,
      23,
      42,
      0.045
    );

  --ep-shadow-md:
    0
    22px
    60px
    rgba(
      15,
      23,
      42,
      0.13
    );

  --ep-ease:
    cubic-bezier(
      0.22,
      1,
      0.36,
      1
    );
}


/* =========================================================
   03. DARK MODE
   ========================================================= */

html[data-theme="dark"]
.employees-page,
html[data-theme="dark"]
.employees-modal,
html[data-theme="dark"]
.employees-toast,
body.dark
.employees-page,
body.dark
.employees-modal,
body.dark
.employees-toast,
.dark
.employees-page,
.dark
.employees-modal,
.dark
.employees-toast {
  --ep-page:
    #070808;

  --ep-surface:
    #0d0e0e;

  --ep-surface-2:
    #121313;

  --ep-surface-3:
    #191a1a;

  --ep-hover:
    #171818;

  --ep-active:
    #202121;

  --ep-text:
    #f1f2f3;

  --ep-title:
    #ffffff;

  --ep-soft:
    #b5bac0;

  --ep-muted:
    #848a91;

  --ep-faint:
    #5f646a;

  --ep-border:
    #272929;

  --ep-border-soft:
    #1d1f1f;

  --ep-border-strong:
    #3a3d3d;

  --ep-black:
    #f1f2f3;

  --ep-black-hover:
    #ffffff;

  --ep-black-text:
    #0d0e0e;

  --ep-success:
    #65d186;

  --ep-success-bg:
    #102218;

  --ep-success-border:
    #285034;

  --ep-warning:
    #efb856;

  --ep-warning-bg:
    #281e0d;

  --ep-warning-border:
    #57421f;

  --ep-danger:
    #ff8585;

  --ep-danger-bg:
    #281313;

  --ep-danger-border:
    #572a2a;

  --ep-info:
    #91bde9;

  --ep-info-bg:
    #102032;

  --ep-info-border:
    #294762;

  --ep-shadow-xs:
    0
    1px
    2px
    rgba(
      0,
      0,
      0,
      0.24
    );

  --ep-shadow-sm:
    0
    8px
    22px
    rgba(
      0,
      0,
      0,
      0.22
    );

  --ep-shadow-md:
    0
    28px
    80px
    rgba(
      0,
      0,
      0,
      0.42
    );
}


/* =========================================================
   04. APP
   ========================================================= */

.app-content:has(.employees-page) {
  display: block !important;

  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;

  padding: 0 !important;

  overflow-x: hidden !important;
}


body:has(.employees-page),
body:has(.employees-page)
.app-shell,
body:has(.employees-page)
.app-main {
  min-width: 0;

  max-width: 100%;

  overflow-x: hidden;
}


/* =========================================================
   05. PAGE
   ========================================================= */

.employees-page {
  width: 100%;
  min-width: 0;

  min-height:
    calc(
      100vh -
      var(
        --topbar-height,
        54px
      )
    );

  display: flex;
  flex-direction: column;

  gap: 14px;

  padding: 12px;

  color:
    var(--ep-text);

  background:
    var(--ep-page);

  overflow-x: hidden;

  animation:
    employeesPageEnter
    240ms
    ease
    both;
}


/* =========================================================
   06. ICONOS
   ========================================================= */

.employees-page .icon,
.employees-page svg,
.employees-modal .icon,
.employees-modal svg,
.employees-toast .icon,
.employees-toast svg {
  flex:
    0
    0
    auto;

  stroke-width: 1.85;
}


/* =========================================================
   07. HEADER
   ========================================================= */

.employees-head {
  position: relative;

  width: 100%;
  min-width: 0;

  min-height: 116px;

  display: grid;

  grid-template-columns:
    minmax(
      0,
      1fr
    )
    auto
    auto;

  align-items: center;

  gap: 20px;

  padding:
    18px
    20px;

  color:
    var(--ep-text);

  background:
    var(--ep-surface);

  border:
    1px
    solid
    var(--ep-border);

  border-radius:
    var(--ep-radius-lg);

  box-shadow:
    var(--ep-shadow-xs);

  overflow: hidden;

  transition:
    border-color
      160ms
      ease,
    box-shadow
      160ms
      ease;
}


.employees-head:hover {
  border-color:
    var(--ep-border-strong);
}


/* =========================================================
   08. HEADER · DIVISIÓN SUPERIOR
   ========================================================= */

.employees-head::before {
  content: "";

  position: absolute;

  top: 0;

  left: 20px;
  right: 20px;

  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      var(--ep-border-strong),
      transparent
    );

  pointer-events: none;
}


/* =========================================================
   09. BRAND
   ========================================================= */

.employees-brand {
  min-width: 0;

  display: grid;

  grid-template-columns:
    58px
    minmax(
      0,
      1fr
    );

  align-items: center;

  gap: 14px;
}


.employees-brand__icon {
  width: 56px;
  height: 56px;

  min-width: 56px;

  display: grid;
  place-items: center;

  color:
    var(--ep-title);

  background:
    var(--ep-surface-2);

  border:
    1px
    solid
    var(--ep-border-strong);

  border-radius: 14px;

  transition:
    background-color
      160ms
      ease,
    border-color
      160ms
      ease,
    transform
      180ms
      var(--ep-ease);
}


.employees-head:hover
.employees-brand__icon {
  background:
    var(--ep-surface-3);

  transform:
    translateY(-1px);
}


.employees-brand__icon .icon,
.employees-brand__icon svg {
  width: 23px;
  height: 23px;
}


.employees-brand > div {
  min-width: 0;
}


.employees-brand > div > span {
  display: block;

  margin-bottom: 5px;

  color:
    var(--ep-muted);

  font-size: 10px;

  font-weight: 850;

  line-height: 1;

  letter-spacing: 0.11em;

  text-transform: uppercase;
}


.employees-brand h2 {
  margin: 0;

  color:
    var(--ep-title);

  font-size:
    clamp(
      25px,
      2vw,
      32px
    );

  font-weight: 850;

  line-height: 1.08;

  letter-spacing: -0.045em;
}


.employees-brand p {
  max-width: 700px;

  margin:
    6px
    0
    0;

  color:
    var(--ep-soft);

  font-size: 12px;

  font-weight: 520;

  line-height: 1.45;
}


/* =========================================================
   10. STATUS
   ========================================================= */

.employees-head__status {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(
        145px,
        1fr
      )
    );

  gap: 8px;

  padding-left: 20px;

  border-left:
    1px
    solid
    var(--ep-border);
}


.employees-head-status {
  min-width: 145px;
  min-height: 58px;

  display: grid;

  grid-template-columns:
    38px
    minmax(
      0,
      1fr
    );

  align-items: center;

  gap: 9px;

  padding:
    7px
    10px;

  background:
    var(--ep-surface-2);

  border:
    1px
    solid
    var(--ep-border);

  border-radius: 10px;

  transition:
    background-color
      150ms
      ease,
    border-color
      150ms
      ease;
}


.employees-head-status:hover {
  background:
    var(--ep-hover);

  border-color:
    var(--ep-border-strong);
}


.employees-head-status > .icon,
.employees-head-status > svg {
  width: 38px;
  height: 38px;

  padding: 10px;

  color:
    var(--ep-muted);

  background:
    var(--ep-surface);

  border:
    1px
    solid
    var(--ep-border);

  border-radius: 9px;
}


.employees-head-status > span {
  min-width: 0;

  display: grid;

  gap: 3px;
}


.employees-head-status small {
  color:
    var(--ep-muted);

  font-size: 8.5px;

  font-weight: 850;

  line-height: 1;

  letter-spacing: 0.07em;

  text-transform: uppercase;
}


.employees-head-status strong {
  min-width: 0;

  color:
    var(--ep-title);

  font-size: 11.5px;

  font-weight: 760;

  line-height: 1.2;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;
}


/* =========================================================
   11. HEADER ACTIONS
   ========================================================= */

.employees-head__actions {
  display: flex;

  align-items: center;
  justify-content: flex-end;

  gap: 8px;

  padding-left: 20px;

  border-left:
    1px
    solid
    var(--ep-border);
}


/* =========================================================
   12. BOTONES
   ========================================================= */

.employees-btn {
  min-height: 40px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 7px;

  padding:
    0
    13px;

  color:
    var(--ep-text);

  background:
    var(--ep-surface);

  border:
    1px
    solid
    var(--ep-border-strong);

  border-radius:
    var(--ep-radius-sm);

  outline: none;

  font: inherit;

  font-size: 10.5px;

  font-weight: 750;

  line-height: 1;

  white-space: nowrap;

  cursor: pointer;

  transition:
    color
      140ms
      ease,
    background-color
      140ms
      ease,
    border-color
      140ms
      ease,
    transform
      160ms
      var(--ep-ease),
    opacity
      140ms
      ease;
}


.employees-btn:hover:not(:disabled) {
  color:
    var(--ep-title);

  background:
    var(--ep-hover);

  border-color:
    var(--ep-soft);

  transform:
    translateY(-1px);
}


.employees-btn:active:not(:disabled) {
  transform:
    scale(0.98);
}


.employees-btn:disabled {
  opacity: 0.42;

  cursor: not-allowed;

  transform: none;
}


.employees-btn .icon,
.employees-btn svg {
  width: 15px;
  height: 15px;
}


/* =========================================================
   13. BOTÓN DARK
   ========================================================= */

.employees-btn--dark {
  color:
    var(--ep-black-text);

  background:
    var(--ep-black);

  border-color:
    var(--ep-black);
}


.employees-btn--dark:hover:not(:disabled) {
  color:
    var(--ep-black-text);

  background:
    var(--ep-black-hover);

  border-color:
    var(--ep-black-hover);

  box-shadow:
    var(--ep-shadow-sm);
}


/* =========================================================
   14. BOTÓN ICON INTERNO
   ========================================================= */

.employees-btn__icon {
  width: 27px;
  height: 27px;

  display: grid;
  place-items: center;

  margin-left: -5px;

  color: inherit;

  background:
    color-mix(
      in srgb,
      currentColor
      8%,
      transparent
    );

  border:
    1px
    solid
    color-mix(
      in srgb,
      currentColor
      14%,
      transparent
    );

  border-radius: 7px;
}


.employees-btn__icon .icon,
.employees-btn__icon svg {
  width: 13px;
  height: 13px;
}


.employees-btn__arrow {
  width: 13px !important;
  height: 13px !important;

  opacity: 0.65;
}


.employees-btn--compact {
  min-height: 35px;

  padding:
    0
    10px;

  font-size: 10px;
}


.employees-btn--compact.is-active {
  color:
    var(--ep-black-text);

  background:
    var(--ep-black);

  border-color:
    var(--ep-black);
}


/* =========================================================
   15. ICON BUTTON
   ========================================================= */

.employees-icon-btn {
  width: 34px;
  height: 34px;

  min-width: 34px;

  display: inline-grid;
  place-items: center;

  padding: 0;

  color:
    var(--ep-soft);

  background:
    var(--ep-surface-2);

  border:
    1px
    solid
    var(--ep-border-strong);

  border-radius: 8px;

  outline: none;

  cursor: pointer;

  transition:
    color
      140ms
      ease,
    background-color
      140ms
      ease,
    border-color
      140ms
      ease,
    transform
      150ms
      var(--ep-ease);
}


.employees-icon-btn:hover:not(:disabled) {
  color:
    var(--ep-title);

  background:
    var(--ep-hover);

  border-color:
    var(--ep-soft);

  transform:
    translateY(-1px);
}


.employees-icon-btn--danger:hover:not(:disabled) {
  color:
    var(--ep-danger);

  background:
    var(--ep-danger-bg);

  border-color:
    var(--ep-danger-border);
}


.employees-icon-btn .icon,
.employees-icon-btn svg {
  width: 15px;
  height: 15px;
}


/* =========================================================
   16. MÉTRICAS
   ========================================================= */

.employees-metrics {
  width: 100%;
  min-width: 0;

  display: grid;

  grid-template-columns:
    repeat(
      6,
      minmax(
        0,
        1fr
      )
    );

  gap: 1px;

  background:
    var(--ep-border);

  border:
    1px
    solid
    var(--ep-border);

  border-radius:
    var(--ep-radius-lg);

  box-shadow:
    var(--ep-shadow-xs);

  overflow: hidden;
}


/* =========================================================
   17. MÉTRICA
   ========================================================= */

.employees-metric {
  position: relative;

  min-width: 0;
  min-height: 96px;

  display: grid;

  grid-template-columns:
    42px
    minmax(
      0,
      1fr
    )
    20px;

  align-items: center;

  gap: 10px;

  padding:
    12px
    11px;

  color:
    var(--ep-text);

  background:
    var(--ep-surface);

  border: 0;

  outline: none;

  font: inherit;

  text-align: left;

  cursor: pointer;

  transition:
    background-color
      150ms
      ease;
}


.employees-metric::before {
  content: "";

  position: absolute;

  top: 18px;
  bottom: 18px;
  left: 0;

  width: 2px;

  background:
    currentColor;

  border-radius: 999px;

  opacity: 0;

  transform:
    scaleY(0.45);

  transition:
    opacity
      150ms
      ease,
    transform
      180ms
      var(--ep-ease);
}


.employees-metric:hover {
  background:
    var(--ep-hover);
}


.employees-metric:hover::before,
.employees-metric.is-active::before {
  opacity: 0.4;

  transform:
    scaleY(1);
}


.employees-metric.is-active {
  background:
    var(--ep-surface-3);
}


/* =========================================================
   18. METRIC ICON
   ========================================================= */

.employees-metric__icon {
  width: 42px;
  height: 42px;

  min-width: 42px;

  display: grid;
  place-items: center;

  color:
    var(--ep-soft);

  background:
    var(--ep-surface-2);

  border:
    1px
    solid
    var(--ep-border);

  border-radius: 10px;

  transition:
    transform
      180ms
      var(--ep-ease),
    border-color
      150ms
      ease;
}


.employees-metric:hover
.employees-metric__icon {
  transform:
    translateY(-1px);

  border-color:
    var(--ep-border-strong);
}


.employees-metric__icon .icon,
.employees-metric__icon svg {
  width: 18px;
  height: 18px;
}


/* =========================================================
   19. MÉTRICAS · COLORES
   ========================================================= */

.employees-metric--activos
.employees-metric__icon {
  color:
    var(--ep-success);

  background:
    var(--ep-success-bg);

  border-color:
    var(--ep-success-border);
}


.employees-metric--licencias
.employees-metric__icon {
  color:
    var(--ep-warning);

  background:
    var(--ep-warning-bg);

  border-color:
    var(--ep-warning-border);
}


.employees-metric--vacaciones
.employees-metric__icon,
.employees-metric--suspendidos
.employees-metric__icon {
  color:
    var(--ep-info);

  background:
    var(--ep-info-bg);

  border-color:
    var(--ep-info-border);
}


.employees-metric--bajas
.employees-metric__icon {
  color:
    var(--ep-danger);

  background:
    var(--ep-danger-bg);

  border-color:
    var(--ep-danger-border);
}


/* =========================================================
   20. METRIC COPY
   ========================================================= */

.employees-metric__copy {
  min-width: 0;

  display: grid;

  gap: 4px;
}


.employees-metric__copy small {
  color:
    var(--ep-muted);

  font-size: 9px;

  font-weight: 850;

  line-height: 1;

  letter-spacing: 0.06em;

  text-transform: uppercase;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;
}


.employees-metric__copy strong {
  color:
    var(--ep-title);

  font-size: 22px;

  font-weight: 850;

  line-height: 1;

  letter-spacing: -0.04em;
}


.employees-metric__copy em {
  color:
    var(--ep-muted);

  font-size: 9.5px;

  font-style: normal;

  font-weight: 540;

  line-height: 1.25;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;
}


.employees-metric__arrow {
  width: 20px;
  height: 20px;

  display: grid;
  place-items: center;

  color:
    var(--ep-muted);

  opacity: 0.45;

  transition:
    opacity
      150ms
      ease,
    transform
      180ms
      var(--ep-ease);
}


.employees-metric:hover
.employees-metric__arrow {
  opacity: 1;

  transform:
    translate(
      1px,
      -1px
    );
}


.employees-metric__arrow .icon,
.employees-metric__arrow svg {
  width: 13px;
  height: 13px;
}


/* =========================================================
   21. PANEL
   ========================================================= */

.employees-panel {
  width: 100%;
  min-width: 0;

  min-height: 500px;

  display: grid;

  grid-template-rows:
    auto
    minmax(
      0,
      1fr
    )
    auto;

  color:
    var(--ep-text);

  background:
    var(--ep-surface);

  border:
    1px
    solid
    var(--ep-border);

  border-radius:
    var(--ep-radius-lg);

  box-shadow:
    var(--ep-shadow-xs);

  overflow: hidden;
}


/* =========================================================
   22. FILTROS
   ========================================================= */

.employees-filters {
  width: 100%;
  min-width: 0;

  background:
    var(--ep-surface);

  border-bottom:
    1px
    solid
    var(--ep-border-strong);
}


/* =========================================================
   23. FILTROS HEADER
   ========================================================= */

.employees-filters__head {
  min-height: 72px;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 18px;

  padding:
    12px
    14px;

  background:
    var(--ep-surface-2);

  border-bottom:
    1px
    solid
    var(--ep-border);
}


.employees-filters__title {
  min-width: 0;

  display: grid;

  gap: 3px;
}


.employees-filters__title > span {
  color:
    var(--ep-muted);

  font-size: 8.5px;

  font-weight: 850;

  line-height: 1;

  letter-spacing: 0.095em;

  text-transform: uppercase;
}


.employees-filters__title strong {
  color:
    var(--ep-title);

  font-size: 15px;

  font-weight: 820;

  line-height: 1.2;
}


.employees-filters__title p {
  margin: 0;

  color:
    var(--ep-muted);

  font-size: 10px;

  font-weight: 520;

  line-height: 1.4;
}


/* =========================================================
   24. FILTER SUMMARY
   ========================================================= */

.employees-filters__summary {
  display: flex;

  align-items: center;

  gap: 7px;
}


.employees-filters__summary > span {
  min-height: 35px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 6px;

  padding:
    0
    9px;

  color:
    var(--ep-muted);

  background:
    var(--ep-surface);

  border:
    1px
    solid
    var(--ep-border);

  border-radius:
    var(--ep-radius-sm);

  font-size: 9.5px;

  font-weight: 650;
}


.employees-filters__summary
> span
.icon,
.employees-filters__summary
> span
svg {
  width: 13px;
  height: 13px;
}


.employees-filters__summary
> span
strong {
  min-width: 21px;
  height: 21px;

  display: grid;
  place-items: center;

  padding:
    0
    5px;

  color:
    var(--ep-black-text);

  background:
    var(--ep-black);

  border-radius: 999px;

  font-size: 8px;

  font-weight: 850;
}


/* =========================================================
   25. SEARCH ROW
   ========================================================= */

.employees-search-row {
  display: grid;

  grid-template-columns:
    minmax(
      0,
      1fr
    )
    auto;

  align-items: center;

  gap: 8px;

  padding:
    11px
    12px;

  background:
    var(--ep-surface);

  border-bottom:
    1px
    solid
    var(--ep-border);
}


/* =========================================================
   26. SEARCH
   ========================================================= */

.employees-search {
  position: relative;

  width: 100%;
  min-width: 0;

  display: flex;
  align-items: center;
}


.employees-search > .icon,
.employees-search > svg {
  position: absolute;

  left: 13px;

  width: 16px;
  height: 16px;

  color:
    var(--ep-muted);

  pointer-events: none;
}


.employees-search input {
  width: 100%;
  min-width: 0;

  height: 43px;

  padding:
    0
    42px
    0
    40px;

  color:
    var(--ep-text);

  background:
    var(--ep-surface-2);

  border:
    1px
    solid
    var(--ep-border);

  border-radius:
    var(--ep-radius-sm);

  outline: none;

  font-size: 11.5px;

  font-weight: 600;

  transition:
    background-color
      150ms
      ease,
    border-color
      150ms
      ease,
    box-shadow
      150ms
      ease;
}


.employees-search input:hover {
  border-color:
    var(--ep-border-strong);
}


.employees-search input:focus {
  background:
    var(--ep-surface);

  border-color:
    var(--ep-soft);

  box-shadow:
    0
    0
    0
    3px
    color-mix(
      in srgb,
      var(--ep-text)
      5%,
      transparent
    );
}


.employees-search input::placeholder {
  color:
    var(--ep-faint);
}


/* =========================================================
   27. SEARCH CLEAR
   ========================================================= */

.employees-search button {
  position: absolute;

  right: 7px;

  width: 29px;
  height: 29px;

  display: grid;
  place-items: center;

  padding: 0;

  color:
    var(--ep-muted);

  background:
    transparent;

  border: 0;

  border-radius: 7px;

  cursor: pointer;

  transition:
    color
      140ms
      ease,
    background-color
      140ms
      ease;
}


.employees-search button:hover {
  color:
    var(--ep-title);

  background:
    var(--ep-surface-3);
}


.employees-search button .icon,
.employees-search button svg {
  width: 14px;
  height: 14px;
}


/* =========================================================
   28. FILTER BODY
   ========================================================= */

.employees-filters__body {
  display: grid;

  grid-template-rows:
    0fr;

  min-width: 0;

  opacity: 0;

  visibility: hidden;

  overflow: hidden;

  background:
    var(--ep-surface-2);

  transition:
    grid-template-rows
      280ms
      var(--ep-ease),
    opacity
      170ms
      ease,
    visibility
      170ms
      ease;
}


.employees-filters__body > * {
  min-height: 0;
}


.employees-filters.is-open
.employees-filters__body {
  grid-template-rows:
    1fr;

  opacity: 1;

  visibility: visible;
}


/* =========================================================
   29. FILTER GRID
   ========================================================= */

.employees-filters-grid {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(
        0,
        1fr
      )
    );

  min-width: 0;

  background:
    var(--ep-border);

  gap: 1px;
}


/* =========================================================
   30. FILTER FIELD
   ========================================================= */

.employees-filter-field {
  min-width: 0;
  min-height: 78px;

  display: flex;
  flex-direction: column;

  justify-content: center;

  gap: 6px;

  padding:
    10px
    11px;

  background:
    var(--ep-surface);

  transition:
    background-color
      150ms
      ease;
}


.employees-filter-field:hover,
.employees-filter-field:focus-within {
  background:
    var(--ep-hover);
}


.employees-filter-field > span {
  color:
    var(--ep-muted);

  font-size: 8.5px;

  font-weight: 850;

  line-height: 1;

  letter-spacing: 0.065em;

  text-transform: uppercase;
}


.employees-filter-field select {
  width: 100%;
  min-width: 0;

  height: 38px;

  padding:
    0
    9px;

  color:
    var(--ep-text);

  background:
    var(--ep-surface-2);

  border:
    1px
    solid
    var(--ep-border);

  border-radius: 8px;

  outline: none;

  font-size: 10.5px;

  font-weight: 620;

  cursor: pointer;

  transition:
    background-color
      150ms
      ease,
    border-color
      150ms
      ease;
}


.employees-filter-field select:hover {
  border-color:
    var(--ep-border-strong);
}


.employees-filter-field select:focus {
  background:
    var(--ep-surface);

  border-color:
    var(--ep-soft);
}


html[data-theme="dark"]
.employees-filter-field select {
  color-scheme: dark;
}


/* =========================================================
   31. FILTER FOOTER
   ========================================================= */

.employees-filters__footer {
  min-height: 58px;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 12px;

  padding:
    9px
    11px;

  background:
    var(--ep-surface-2);

  border-top:
    1px
    solid
    var(--ep-border);
}


.employees-filters__footer > span {
  display: inline-flex;

  align-items: center;

  gap: 6px;

  color:
    var(--ep-muted);

  font-size: 9.5px;

  font-weight: 560;
}


.employees-filters__footer
> span
.icon,
.employees-filters__footer
> span
svg {
  width: 13px;
  height: 13px;
}


/* =========================================================
   32. FOCUS
   ========================================================= */

.employees-btn:focus-visible,
.employees-icon-btn:focus-visible,
.employees-search input:focus-visible,
.employees-filter-field select:focus-visible {
  outline:
    2px
    solid
    var(--ep-title);

  outline-offset: 2px;
}


/* =========================================================
   33. RESPONSIVE · 1480
   ========================================================= */

@media (
  max-width: 1480px
) {
  .employees-head {
    grid-template-columns:
      minmax(
        0,
        1fr
      )
      auto;
  }


  .employees-head__status {
    display: none;
  }


  .employees-metrics {
    grid-template-columns:
      repeat(
        3,
        minmax(
          0,
          1fr
        )
      );
  }
}


/* =========================================================
   34. RESPONSIVE · 1050
   ========================================================= */

@media (
  max-width: 1050px
) {
  .employees-head {
    align-items: flex-start;
  }


  .employees-filters-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(
          0,
          1fr
        )
      );
  }
}


/* =========================================================
   35. RESPONSIVE · 820
   ========================================================= */

@media (
  max-width: 820px
) {
  .employees-page {
    gap: 10px;

    padding: 8px;
  }


  .employees-head {
    grid-template-columns:
      1fr;

    gap: 14px;

    min-height: 0;

    padding: 15px;
  }


  .employees-head__actions {
    width: 100%;

    padding:
      12px
      0
      0;

    border-top:
      1px
      solid
      var(--ep-border);

    border-left: 0;
  }


  .employees-head__actions
  .employees-btn {
    flex:
      1
      1
      0;
  }


  .employees-metrics {
    grid-template-columns:
      repeat(
        2,
        minmax(
          0,
          1fr
        )
      );
  }


  .employees-filters__head {
    align-items: flex-start;

    flex-direction: column;
  }


  .employees-filters__summary {
    width: 100%;

    justify-content: space-between;
  }


  .employees-search-row {
    grid-template-columns:
      1fr;
  }


  .employees-search-row
  > .employees-btn {
    width: 100%;
  }
}


/* =========================================================
   36. RESPONSIVE · 620
   ========================================================= */

@media (
  max-width: 620px
) {
  .employees-page {
    gap: 8px;

    padding: 6px;
  }


  .employees-head {
    padding: 12px;

    border-radius: 12px;
  }


  .employees-brand {
    grid-template-columns:
      48px
      minmax(
        0,
        1fr
      );

    gap: 10px;
  }


  .employees-brand__icon {
    width: 46px;
    height: 46px;

    min-width: 46px;

    border-radius: 11px;
  }


  .employees-brand__icon .icon,
  .employees-brand__icon svg {
    width: 20px;
    height: 20px;
  }


  .employees-brand h2 {
    font-size: 22px;
  }


  .employees-brand p {
    font-size: 10.5px;
  }


  .employees-head__actions {
    display: grid;

    grid-template-columns:
      1fr;
  }


  .employees-head__actions
  .employees-btn {
    width: 100%;
  }


  .employees-metrics {
    grid-template-columns:
      1fr;
  }


  .employees-metric {
    min-height: 82px;

    grid-template-columns:
      38px
      minmax(
        0,
        1fr
      )
      20px;

    padding: 10px;
  }


  .employees-metric__icon {
    width: 38px;
    height: 38px;

    min-width: 38px;
  }


  .employees-metric__copy strong {
    font-size: 19px;
  }


  .employees-filters__summary {
    display: grid;

    grid-template-columns:
      1fr;

    width: 100%;
  }


  .employees-filters__summary > span,
  .employees-filters__summary
  .employees-btn {
    width: 100%;
  }


  .employees-filters-grid {
    grid-template-columns:
      1fr;
  }


  .employees-filters__footer {
    align-items: stretch;

    flex-direction: column;
  }


  .employees-filters__footer
  .employees-btn {
    width: 100%;
  }
}


/* =========================================================
   37. ANIMACIÓN
   ========================================================= */

@keyframes employeesPageEnter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}


/* =========================================================
   FIN · PARTE 1 DE 3
   ========================================================= *//* =========================================================
   UBICACIÓN:
   frontend/src/pages/capital-humano/empleados/empleados.css

   WIRTZ HUB · CAPITAL HUMANO · EMPLEADOS

   NUEVO LAYOUT PREMIUM
   PARTE 2 DE 3

   CONTIENE:
   - Tabla
   - Columnas
   - Empleado
   - Estados
   - Relaciones
   - Acciones
   - Loading / Empty
   - Paginación
   - Responsive tabla
   ========================================================= */


/* =========================================================
   38. TABLE WRAP
   ========================================================= */

.employees-table-wrap {
  width: 100%;
  min-width: 0;

  position: relative;

  background:
    var(--ep-surface);

  overflow-x: auto;
  overflow-y: visible;

  scrollbar-width: thin;

  scrollbar-color:
    var(--ep-border-strong)
    transparent;
}


.employees-table-wrap::-webkit-scrollbar {
  height: 7px;
}


.employees-table-wrap::-webkit-scrollbar-track {
  background:
    transparent;
}


.employees-table-wrap::-webkit-scrollbar-thumb {
  background:
    var(--ep-border-strong);

  border-radius: 999px;
}


/* =========================================================
   39. TABLE
   ========================================================= */

.employees-table {
  width: 100%;

  min-width: 1240px;

  border-collapse:
    separate;

  border-spacing: 0;

  table-layout: fixed;

  color:
    var(--ep-text);

  background:
    var(--ep-surface);
}


/* =========================================================
   40. TABLE HEAD
   ========================================================= */

.employees-table thead {
  position: relative;

  z-index: 2;
}


.employees-table th {
  position: relative;

  height: 46px;

  padding:
    0
    12px;

  color:
    var(--ep-muted);

  background:
    var(--ep-surface-2);

  border-bottom:
    1px
    solid
    var(--ep-border-strong);

  font-size: 9px;

  font-weight: 850;

  line-height: 1;

  letter-spacing: 0.055em;

  text-align: center;

  text-transform: uppercase;

  white-space: nowrap;
}


.employees-table th:not(:last-child)::after {
  content: "";

  position: absolute;

  top: 10px;
  bottom: 10px;
  right: 0;

  width: 1px;

  background:
    var(--ep-border);
}


/* =========================================================
   41. TABLE CELLS
   ========================================================= */

.employees-table td {
  position: relative;

  height: 66px;

  padding:
    11px
    12px;

  color:
    var(--ep-text);

  background:
    var(--ep-surface);

  border-bottom:
    1px
    solid
    var(--ep-border-soft);

  font-size: 10.5px;

  font-weight: 560;

  line-height: 1.35;

  text-align: center;

  vertical-align: middle;

  transition:
    background-color
      140ms
      ease,
    color
      140ms
      ease;
}


.employees-table td:not(:last-child)::after {
  content: "";

  position: absolute;

  top: 12px;
  bottom: 12px;
  right: 0;

  width: 1px;

  background:
    var(--ep-border-soft);
}


.employees-table tbody tr:last-child td {
  border-bottom: 0;
}


/* =========================================================
   42. ROW
   ========================================================= */

.employees-table tbody tr {
  position: relative;
}


.employees-table tbody tr:hover td {
  background:
    var(--ep-hover);
}


.employees-table tbody tr:hover
td:first-child::before {
  content: "";

  position: absolute;

  top: 10px;
  bottom: 10px;
  left: 0;

  width: 2px;

  background:
    var(--ep-soft);

  border-radius: 999px;

  opacity: 0.55;
}


/* =========================================================
   43. COLUMNAS
   ========================================================= */

.employees-table th:nth-child(1),
.employees-table td:nth-child(1) {
  width: 235px;

  text-align: left;
}


.employees-table th:nth-child(2),
.employees-table td:nth-child(2) {
  width: 105px;
}


.employees-table th:nth-child(3),
.employees-table td:nth-child(3) {
  width: 130px;
}


.employees-table th:nth-child(4),
.employees-table td:nth-child(4) {
  width: 145px;
}


.employees-table th:nth-child(5),
.employees-table td:nth-child(5) {
  width: 125px;
}


.employees-table th:nth-child(6),
.employees-table td:nth-child(6) {
  width: 155px;
}


.employees-table th:nth-child(7),
.employees-table td:nth-child(7) {
  width: 155px;
}


.employees-table th:nth-child(8),
.employees-table td:nth-child(8) {
  width: 125px;
}


.employees-table th:nth-child(9),
.employees-table td:nth-child(9) {
  width: 145px;
}


/* =========================================================
   44. EMPLOYEE PERSON
   ========================================================= */

.employees-person {
  min-width: 0;

  display: grid;

  grid-template-columns:
    42px
    minmax(
      0,
      1fr
    );

  align-items: center;

  gap: 10px;
}


.employees-person__avatar {
  width: 42px;
  height: 42px;

  min-width: 42px;

  display: grid;
  place-items: center;

  color:
    var(--ep-title);

  background:
    var(--ep-surface-2);

  border:
    1px
    solid
    var(--ep-border-strong);

  border-radius: 10px;

  font-size: 10px;

  font-weight: 850;

  line-height: 1;

  letter-spacing: 0.035em;

  transition:
    background-color
      150ms
      ease,
    border-color
      150ms
      ease;
}


.employees-table tbody tr:hover
.employees-person__avatar {
  background:
    var(--ep-surface);

  border-color:
    var(--ep-soft);
}


.employees-person > div {
  min-width: 0;

  display: grid;

  gap: 3px;
}


.employees-person strong {
  min-width: 0;

  color:
    var(--ep-title);

  font-size: 11.5px;

  font-weight: 780;

  line-height: 1.25;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;
}


.employees-person small {
  min-width: 0;

  color:
    var(--ep-muted);

  font-size: 9px;

  font-weight: 560;

  line-height: 1.25;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;
}


/* =========================================================
   45. CELL MAIN
   ========================================================= */

.employees-cell-main {
  display: inline-block;

  max-width: 100%;

  color:
    var(--ep-text);

  font-size: 10.5px;

  font-weight: 640;

  line-height: 1.3;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;
}


/* =========================================================
   46. CODE
   ========================================================= */

.employees-code {
  min-height: 29px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  max-width: 100%;

  padding:
    0
    8px;

  color:
    var(--ep-soft);

  background:
    var(--ep-surface-2);

  border:
    1px
    solid
    var(--ep-border);

  border-radius: 7px;

  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;

  font-size: 9.5px;

  font-weight: 700;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;
}


/* =========================================================
   47. STATE
   ========================================================= */

.employees-state {
  min-width: 102px;
  min-height: 30px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 6px;

  padding:
    0
    9px;

  color:
    var(--ep-muted);

  background:
    var(--ep-surface-2);

  border:
    1px
    solid
    var(--ep-border);

  border-radius: 999px;

  font-size: 9px;

  font-weight: 760;

  line-height: 1;

  white-space: nowrap;
}


.employees-state .icon,
.employees-state svg {
  width: 12px;
  height: 12px;

  flex:
    0
    0
    12px;
}


/* =========================================================
   48. STATE COLORS
   ========================================================= */

.employees-state--activo {
  color:
    var(--ep-success);

  background:
    var(--ep-success-bg);

  border-color:
    var(--ep-success-border);
}


.employees-state--licencia {
  color:
    var(--ep-warning);

  background:
    var(--ep-warning-bg);

  border-color:
    var(--ep-warning-border);
}


.employees-state--vacaciones,
.employees-state--suspendido {
  color:
    var(--ep-info);

  background:
    var(--ep-info-bg);

  border-color:
    var(--ep-info-border);
}


.employees-state--baja {
  color:
    var(--ep-danger);

  background:
    var(--ep-danger-bg);

  border-color:
    var(--ep-danger-border);
}


.employees-state--inactivo {
  color:
    var(--ep-muted);

  background:
    var(--ep-surface-3);

  border-color:
    var(--ep-border-strong);
}


/* =========================================================
   49. RELATIONS
   ========================================================= */

.employees-relation,
.employees-date {
  max-width: 100%;
  min-width: 0;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 6px;

  color:
    var(--ep-soft);

  font-size: 9.5px;

  font-weight: 600;

  line-height: 1.25;
}


.employees-relation .icon,
.employees-relation svg,
.employees-date .icon,
.employees-date svg {
  width: 12px;
  height: 12px;

  color:
    var(--ep-muted);
}


.employees-relation > span,
.employees-date > span {
  min-width: 0;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;
}


/* =========================================================
   50. ROW ACTIONS
   ========================================================= */

.employees-row-actions {
  width: 100%;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 6px;
}


/* =========================================================
   51. TABLE MESSAGE
   ========================================================= */

.employees-table-message {
  height: auto !important;

  min-height: 0;

  padding: 0 !important;

  border-right: 0 !important;

  background:
    var(--ep-surface) !important;
}


.employees-table-message::after {
  display: none !important;
}


/* =========================================================
   52. EMPTY / LOADING
   ========================================================= */

.employees-loading,
.employees-empty {
  width: 100%;

  min-height: 285px;

  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 8px;

  padding:
    34px
    20px;

  color:
    var(--ep-muted);

  text-align: center;
}


.employees-loading > span,
.employees-empty > span {
  width: 52px;
  height: 52px;

  display: grid;
  place-items: center;

  margin-bottom: 3px;

  color:
    var(--ep-soft);

  background:
    var(--ep-surface-2);

  border:
    1px
    solid
    var(--ep-border-strong);

  border-radius: 13px;
}


.employees-loading > span .icon,
.employees-loading > span svg,
.employees-empty > span .icon,
.employees-empty > span svg {
  width: 21px;
  height: 21px;
}


.employees-loading strong,
.employees-empty strong {
  color:
    var(--ep-title);

  font-size: 14px;

  font-weight: 820;

  line-height: 1.25;
}


.employees-loading p,
.employees-empty p {
  max-width: 390px;

  margin:
    0
    0
    8px;

  color:
    var(--ep-muted);

  font-size: 10.5px;

  font-weight: 520;

  line-height: 1.5;
}


.employees-empty--error > span {
  color:
    var(--ep-danger);

  background:
    var(--ep-danger-bg);

  border-color:
    var(--ep-danger-border);
}


.employees-empty--error strong {
  color:
    var(--ep-danger);
}


/* =========================================================
   53. PAGINATION
   ========================================================= */

.employees-pagination {
  width: 100%;
  min-width: 0;

  min-height: 64px;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 16px;

  padding:
    11px
    13px;

  color:
    var(--ep-text);

  background:
    var(--ep-surface-2);

  border-top:
    1px
    solid
    var(--ep-border-strong);
}


/* =========================================================
   54. PAGINATION INFO
   ========================================================= */

.employees-pagination__info {
  min-width: 0;

  display: flex;

  align-items: center;

  gap: 5px;

  color:
    var(--ep-muted);

  font-size: 10px;

  font-weight: 560;
}


.employees-pagination__info strong {
  color:
    var(--ep-title);

  font-size: 10.5px;

  font-weight: 800;
}


/* =========================================================
   55. PAGINATION ACTIONS
   ========================================================= */

.employees-pagination__actions {
  display: flex;

  align-items: center;
  justify-content: flex-end;

  gap: 7px;
}


.employees-pagination__actions
.employees-btn {
  min-height: 36px;

  padding:
    0
    10px;

  font-size: 10px;
}


.employees-pagination__page {
  min-height: 36px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 4px;

  padding:
    0
    10px;

  color:
    var(--ep-muted);

  background:
    var(--ep-surface);

  border:
    1px
    solid
    var(--ep-border);

  border-radius: 8px;

  font-size: 9.5px;

  font-weight: 600;

  white-space: nowrap;
}


.employees-pagination__page strong {
  color:
    var(--ep-title);

  font-weight: 820;
}


/* =========================================================
   56. SPIN
   ========================================================= */

.employees-spin {
  animation:
    employeesSpin
    0.8s
    linear
    infinite;
}


/* =========================================================
   57. RESPONSIVE · 1100
   ========================================================= */

@media (
  max-width: 1100px
) {
  .employees-table {
    min-width: 1160px;
  }
}


/* =========================================================
   58. RESPONSIVE · 820
   TABLE → CARDS
   ========================================================= */

@media (
  max-width: 820px
) {
  .employees-table-wrap {
    overflow: visible;
  }


  .employees-table {
    min-width: 0;

    display: block;
  }


  .employees-table thead {
    display: none;
  }


  .employees-table tbody {
    width: 100%;

    display: grid;

    grid-template-columns:
      1fr;

    gap: 8px;

    padding: 9px;

    background:
      var(--ep-surface-2);
  }


  .employees-table tbody tr {
    width: 100%;

    display: grid;

    grid-template-columns:
      repeat(
        2,
        minmax(
          0,
          1fr
        )
      );

    background:
      var(--ep-surface);

    border:
      1px
      solid
      var(--ep-border-strong);

    border-radius: 11px;

    box-shadow:
      var(--ep-shadow-xs);

    overflow: hidden;
  }


  .employees-table tbody td {
    width: auto !important;

    min-width: 0;
    height: auto;

    min-height: 66px;

    display: flex;

    flex-direction: column;

    align-items: flex-start;
    justify-content: center;

    gap: 5px;

    padding:
      10px
      11px;

    border-right:
      1px
      solid
      var(--ep-border);

    border-bottom:
      1px
      solid
      var(--ep-border);

    text-align: left;
  }


  .employees-table tbody td::after {
    display: none;
  }


  .employees-table tbody
  td:nth-child(2n) {
    border-right: 0;
  }


  .employees-table tbody td::before {
    display: block;

    color:
      var(--ep-muted);

    font-size: 8px;

    font-weight: 850;

    line-height: 1;

    letter-spacing: 0.06em;

    text-transform: uppercase;
  }


  .employees-table tbody
  td:nth-child(1)::before {
    content: "Empleado";
  }


  .employees-table tbody
  td:nth-child(2)::before {
    content: "Legajo";
  }


  .employees-table tbody
  td:nth-child(3)::before {
    content: "Sector";
  }


  .employees-table tbody
  td:nth-child(4)::before {
    content: "Puesto";
  }


  .employees-table tbody
  td:nth-child(5)::before {
    content: "Estado";
  }


  .employees-table tbody
  td:nth-child(6)::before {
    content: "Supervisor";
  }


  .employees-table tbody
  td:nth-child(7)::before {
    content: "Reemplazo";
  }


  .employees-table tbody
  td:nth-child(8)::before {
    content: "Ingreso";
  }


  .employees-table tbody
  td:nth-child(9)::before {
    content: "Acciones";
  }


  .employees-table tbody
  td:nth-child(1) {
    grid-column:
      1
      /
      -1;

    border-right: 0;
  }


  .employees-table tbody
  td:nth-child(9) {
    grid-column:
      1
      /
      -1;

    min-height: 58px;

    border-right: 0;
    border-bottom: 0;
  }


  .employees-person {
    width: 100%;
  }


  .employees-person strong {
    max-width: none;
  }


  .employees-cell-main {
    max-width: none;
  }


  .employees-state,
  .employees-relation,
  .employees-date {
    justify-content: flex-start;
  }


  .employees-row-actions {
    justify-content: flex-start;
  }


  .employees-table-message {
    display: block !important;

    grid-column:
      1
      /
      -1;

    width: 100% !important;

    border: 0 !important;
  }


  .employees-table-message::before {
    display: none !important;
  }


  .employees-pagination {
    align-items: stretch;

    flex-direction: column;
  }


  .employees-pagination__info {
    justify-content: center;
  }


  .employees-pagination__actions {
    width: 100%;

    justify-content: space-between;
  }
}


/* =========================================================
   59. RESPONSIVE · 620
   ========================================================= */

@media (
  max-width: 620px
) {
  .employees-table tbody {
    gap: 7px;

    padding: 7px;
  }


  .employees-table tbody tr {
    grid-template-columns:
      1fr;
  }


  .employees-table tbody td,
  .employees-table tbody
  td:nth-child(2n),
  .employees-table tbody
  td:nth-child(1),
  .employees-table tbody
  td:nth-child(9) {
    grid-column: auto;

    border-right: 0;

    border-bottom:
      1px
      solid
      var(--ep-border);
  }


  .employees-table tbody
  td:nth-child(9) {
    border-bottom: 0;
  }


  .employees-row-actions {
    width: 100%;

    display: grid;

    grid-template-columns:
      repeat(
        3,
        minmax(
          0,
          1fr
        )
      );
  }


  .employees-icon-btn {
    width: 100%;

    min-height: 38px;
  }


  .employees-pagination__actions {
    display: grid;

    grid-template-columns:
      1fr;

    width: 100%;
  }


  .employees-pagination__actions
  .employees-btn,
  .employees-pagination__page {
    width: 100%;
  }


  .employees-pagination__page {
    order: -1;
  }
}


/* =========================================================
   60. ANIMACIÓN
   ========================================================= */

@keyframes employeesSpin {
  to {
    transform:
      rotate(360deg);
  }
}


/* =========================================================
   FIN · PARTE 2 DE 3
   ========================================================= *//* =========================================================
   UBICACIÓN:
   frontend/src/pages/capital-humano/empleados/empleados.css

   WIRTZ HUB · CAPITAL HUMANO · EMPLEADOS

   NUEVO LAYOUT PREMIUM
   PARTE 3 DE 3

   CONTIENE:
   - Modal tipo workspace
   - Header fijo
   - Formulario scrolleable
   - Secciones bien divididas
   - Campos más legibles
   - Footer fijo
   - Switch
   - Toast
   - Responsive
   - Reduced motion
   ========================================================= */


/* =========================================================
   61. BODY MODAL OPEN
   ========================================================= */

body.employees-modal-open {
  overflow: hidden !important;
}


/* =========================================================
   62. MODAL BACKDROP
   ========================================================= */

.employees-modal-backdrop {
  position: fixed;

  inset: 0;

  z-index: 10000;

  width: 100vw;
  height: 100vh;
  height: 100dvh;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 16px;

  background:
    rgba(
      0,
      0,
      0,
      0.66
    );

  backdrop-filter:
    blur(5px);

  -webkit-backdrop-filter:
    blur(5px);

  overflow: hidden;

  animation:
    employeesBackdropEnter
    180ms
    ease
    both;
}


/* =========================================================
   63. MODAL
   ========================================================= */

.employees-modal {
  position: relative;

  width:
    min(
      1280px,
      calc(
        100vw -
        32px
      )
    );

  height:
    min(
      860px,
      calc(
        100dvh -
        32px
      )
    );

  max-width:
    calc(
      100vw -
      32px
    );

  max-height:
    calc(
      100dvh -
      32px
    );

  min-width: 0;
  min-height: 0;

  display: grid;

  grid-template-rows:
    auto
    minmax(
      0,
      1fr
    );

  color:
    var(--ep-text);

  background:
    var(--ep-surface);

  border:
    1px
    solid
    var(--ep-border-strong);

  border-radius:
    16px;

  box-shadow:
    var(--ep-shadow-md);

  overflow: hidden;

  animation:
    employeesModalEnter
    220ms
    var(--ep-ease)
    both;
}


/* =========================================================
   64. MODAL HEADER
   ========================================================= */

.employees-modal__head {
  position: relative;

  z-index: 5;

  min-height: 76px;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 16px;

  padding:
    12px
    14px;

  background:
    var(--ep-surface);

  border-bottom:
    1px
    solid
    var(--ep-border-strong);
}


.employees-modal__head::after {
  content: "";

  position: absolute;

  left: 14px;
  right: 14px;
  bottom: -1px;

  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      var(--ep-border-strong),
      transparent
    );

  opacity: 0.7;

  pointer-events: none;
}


/* =========================================================
   65. MODAL BRAND
   ========================================================= */

.employees-modal__brand {
  min-width: 0;

  display: grid;

  grid-template-columns:
    46px
    minmax(
      0,
      1fr
    );

  align-items: center;

  gap: 11px;
}


.employees-modal__icon {
  width: 44px;
  height: 44px;

  min-width: 44px;

  display: grid;
  place-items: center;

  color:
    var(--ep-title);

  background:
    var(--ep-surface-2);

  border:
    1px
    solid
    var(--ep-border-strong);

  border-radius: 11px;
}


.employees-modal__icon .icon,
.employees-modal__icon svg {
  width: 19px;
  height: 19px;
}


.employees-modal__brand > div {
  min-width: 0;
}


.employees-modal__brand > div > span {
  display: block;

  margin-bottom: 3px;

  color:
    var(--ep-muted);

  font-size: 8.5px;

  font-weight: 850;

  line-height: 1;

  letter-spacing: 0.09em;

  text-transform: uppercase;
}


.employees-modal__brand h3 {
  margin: 0;

  color:
    var(--ep-title);

  font-size: 17px;

  font-weight: 840;

  line-height: 1.2;

  letter-spacing: -0.025em;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;
}


.employees-modal__brand p {
  margin:
    4px
    0
    0;

  color:
    var(--ep-muted);

  font-size: 10px;

  font-weight: 520;

  line-height: 1.4;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;
}


/* =========================================================
   66. MODAL CLOSE
   ========================================================= */

.employees-modal__close {
  width: 36px;
  height: 36px;

  min-width: 36px;

  display: grid;
  place-items: center;

  padding: 0;

  color:
    var(--ep-muted);

  background:
    var(--ep-surface-2);

  border:
    1px
    solid
    var(--ep-border);

  border-radius: 9px;

  outline: none;

  cursor: pointer;

  transition:
    color
      140ms
      ease,
    background-color
      140ms
      ease,
    border-color
      140ms
      ease,
    transform
      160ms
      var(--ep-ease);
}


.employees-modal__close:hover {
  color:
    var(--ep-title);

  background:
    var(--ep-hover);

  border-color:
    var(--ep-border-strong);

  transform:
    rotate(3deg);
}


.employees-modal__close .icon,
.employees-modal__close svg {
  width: 15px;
  height: 15px;
}


/* =========================================================
   67. FORM
   ========================================================= */

.employees-form {
  min-width: 0;
  min-height: 0;

  display: grid;

  grid-template-columns:
    minmax(
      0,
      1fr
    );

  align-content: start;

  background:
    var(--ep-page);

  overflow-y: auto;
  overflow-x: hidden;

  overscroll-behavior: contain;

  scrollbar-width: thin;

  scrollbar-gutter: stable;

  scrollbar-color:
    var(--ep-border-strong)
    transparent;

  -webkit-overflow-scrolling: touch;
}


.employees-form::-webkit-scrollbar {
  width: 7px;
}


.employees-form::-webkit-scrollbar-track {
  background: transparent;
}


.employees-form::-webkit-scrollbar-thumb {
  background:
    var(--ep-border-strong);

  border-radius: 999px;
}


/* =========================================================
   68. SECCIÓN
   ========================================================= */

.employees-form-section {
  position: relative;

  width: 100%;
  min-width: 0;

  display: grid;

  grid-template-columns:
    230px
    minmax(
      0,
      1fr
    );

  background:
    var(--ep-surface);

  border-bottom:
    1px
    solid
    var(--ep-border-strong);
}


.employees-form-section:last-of-type {
  border-bottom: 0;
}


/* =========================================================
   69. SECCIÓN · SIDEBAR VISUAL
   ========================================================= */

.employees-form-section__title {
  min-width: 0;

  display: grid;

  grid-template-columns:
    38px
    minmax(
      0,
      1fr
    );

  align-content: start;
  align-items: center;

  gap: 10px;

  padding:
    16px
    14px;

  background:
    var(--ep-surface-2);

  border-right:
    1px
    solid
    var(--ep-border-strong);
}


.employees-form-section__icon {
  width: 36px;
  height: 36px;

  min-width: 36px;

  display: grid;
  place-items: center;

  color:
    var(--ep-soft);

  background:
    var(--ep-surface);

  border:
    1px
    solid
    var(--ep-border);

  border-radius: 9px;
}


.employees-form-section__icon .icon,
.employees-form-section__icon svg {
  width: 16px;
  height: 16px;
}


.employees-form-section__title > div {
  min-width: 0;
}


.employees-form-section__title
> div
> span {
  display: block;

  margin-bottom: 4px;

  color:
    var(--ep-muted);

  font-size: 8px;

  font-weight: 850;

  line-height: 1;

  letter-spacing: 0.085em;

  text-transform: uppercase;
}


.employees-form-section__title
> div
> strong {
  display: block;

  color:
    var(--ep-title);

  font-size: 11px;

  font-weight: 800;

  line-height: 1.3;
}


/* =========================================================
   70. GRID DE CAMPOS
   ========================================================= */

.employees-form-grid {
  width: 100%;
  min-width: 0;

  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(
        0,
        1fr
      )
    );

  gap: 1px;

  padding: 0;

  background:
    var(--ep-border);
}


/* =========================================================
   71. FIELD
   ========================================================= */

.employees-field {
  min-width: 0;
  min-height: 78px;

  display: flex;

  flex-direction: column;

  justify-content: center;

  gap: 6px;

  padding:
    10px
    12px;

  background:
    var(--ep-surface);

  transition:
    background-color
      150ms
      ease;
}


.employees-field:hover,
.employees-field:focus-within {
  background:
    var(--ep-hover);
}


.employees-field > span {
  color:
    var(--ep-muted);

  font-size: 8.5px;

  font-weight: 850;

  line-height: 1;

  letter-spacing: 0.055em;

  text-transform: uppercase;
}


/* =========================================================
   72. INPUTS
   ========================================================= */

.employees-field input,
.employees-field select,
.employees-field textarea {
  width: 100%;
  min-width: 0;

  color:
    var(--ep-text);

  background:
    transparent;

  border: 0;

  outline: none;

  font-size: 11px;

  font-weight: 620;

  line-height: 1.4;
}


.employees-field input,
.employees-field select {
  min-height: 31px;
}


.employees-field textarea {
  min-height: 86px;

  padding-top: 5px;

  resize: vertical;
}


.employees-field input::placeholder,
.employees-field textarea::placeholder {
  color:
    var(--ep-faint);
}


html[data-theme="dark"]
.employees-field input,
html[data-theme="dark"]
.employees-field select,
html[data-theme="dark"]
.employees-field textarea {
  color-scheme: dark;
}


/* =========================================================
   73. CAMPO FULL
   ========================================================= */

.employees-field--full {
  grid-column:
    1
    /
    -1;

  min-height: 118px;
}


/* =========================================================
   74. OBSERVACIONES
   ========================================================= */

.employees-form-section:has(
  #employeeNotes
) {
  grid-template-columns:
    230px
    minmax(
      0,
      1fr
    );
}


.employees-form-section:has(
  #employeeNotes
)
.employees-field {
  border: 0;
}


/* =========================================================
   75. FOOTER DEL FORM
   ========================================================= */

.employees-modal__footer {
  position: sticky;

  z-index: 10;

  bottom: 0;

  grid-column:
    1
    /
    -1;

  min-height: 68px;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 14px;

  padding:
    11px
    14px;

  background:
    color-mix(
      in srgb,
      var(--ep-surface)
      96%,
      transparent
    );

  border-top:
    1px
    solid
    var(--ep-border-strong);

  backdrop-filter:
    blur(10px);

  -webkit-backdrop-filter:
    blur(10px);
}


.employees-modal__footer > div {
  display: flex;

  align-items: center;

  gap: 7px;
}


.employees-modal__footer
.employees-btn {
  min-height: 40px;

  padding:
    0
    12px;
}


/* =========================================================
   76. ACTIVE SWITCH
   ========================================================= */

.employees-active-switch {
  position: relative;

  display: inline-flex;

  align-items: center;

  gap: 9px;

  color:
    var(--ep-text);

  font-size: 10.5px;

  font-weight: 700;

  cursor: pointer;

  user-select: none;
}


.employees-active-switch input {
  position: absolute;

  opacity: 0;

  pointer-events: none;
}


.employees-active-switch b {
  position: relative;

  width: 42px;
  height: 23px;

  min-width: 42px;

  display: block;

  background:
    var(--ep-surface-3);

  border:
    1px
    solid
    var(--ep-border-strong);

  border-radius: 999px;

  transition:
    background-color
      160ms
      ease,
    border-color
      160ms
      ease;
}


.employees-active-switch b::before {
  content: "";

  position: absolute;

  top: 3px;
  left: 3px;

  width: 15px;
  height: 15px;

  background:
    var(--ep-muted);

  border-radius: 50%;

  transition:
    transform
      180ms
      var(--ep-ease),
    background-color
      160ms
      ease;
}


.employees-active-switch
input:checked + b {
  background:
    var(--ep-black);

  border-color:
    var(--ep-black);
}


.employees-active-switch
input:checked + b::before {
  background:
    var(--ep-black-text);

  transform:
    translateX(
      19px
    );
}


/* =========================================================
   77. FOCUS
   ========================================================= */

.employees-modal__close:focus-visible,
.employees-field input:focus-visible,
.employees-field select:focus-visible,
.employees-field textarea:focus-visible,
.employees-active-switch
input:focus-visible + b {
  outline:
    2px
    solid
    var(--ep-title);

  outline-offset: 2px;
}


/* =========================================================
   78. TOAST
   ========================================================= */

.employees-toast {
  position: fixed;

  right: 18px;
  bottom: 18px;

  z-index: 12000;

  min-width: 280px;

  max-width:
    min(
      420px,
      calc(
        100vw -
        30px
      )
    );

  display: grid;

  grid-template-columns:
    36px
    minmax(
      0,
      1fr
    );

  align-items: center;

  gap: 9px;

  padding:
    8px
    12px
    8px
    8px;

  color:
    var(--ep-text);

  background:
    var(--ep-surface);

  border:
    1px
    solid
    var(--ep-border-strong);

  border-radius: 10px;

  box-shadow:
    var(--ep-shadow-md);

  font-size: 10.5px;

  font-weight: 650;

  line-height: 1.4;

  opacity: 0;

  transform:
    translateY(8px)
    scale(0.985);

  transition:
    opacity
      180ms
      ease,
    transform
      180ms
      var(--ep-ease);
}


.employees-toast.is-visible {
  opacity: 1;

  transform:
    translateY(0)
    scale(1);
}


.employees-toast__icon {
  width: 36px;
  height: 36px;

  display: grid;
  place-items: center;

  color:
    var(--ep-success);

  background:
    var(--ep-success-bg);

  border:
    1px
    solid
    var(--ep-success-border);

  border-radius: 8px;
}


.employees-toast__icon .icon,
.employees-toast__icon svg {
  width: 15px;
  height: 15px;
}


.employees-toast--error {
  border-color:
    var(--ep-danger-border);
}


.employees-toast--error
.employees-toast__icon {
  color:
    var(--ep-danger);

  background:
    var(--ep-danger-bg);

  border-color:
    var(--ep-danger-border);
}


/* =========================================================
   79. ANIMACIONES
   ========================================================= */

@keyframes employeesBackdropEnter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}


@keyframes employeesModalEnter {
  from {
    opacity: 0;

    transform:
      translateY(6px)
      scale(0.99);
  }

  to {
    opacity: 1;

    transform:
      translateY(0)
      scale(1);
  }
}


/* =========================================================
   80. RESPONSIVE · 1180
   ========================================================= */

@media (
  max-width: 1180px
) {
  .employees-form-section {
    grid-template-columns:
      200px
      minmax(
        0,
        1fr
      );
  }


  .employees-form-section:has(
    #employeeNotes
  ) {
    grid-template-columns:
      200px
      minmax(
        0,
        1fr
      );
  }


  .employees-form-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(
          0,
          1fr
        )
      );
  }
}


/* =========================================================
   81. RESPONSIVE · 900
   ========================================================= */

@media (
  max-width: 900px
) {
  .employees-modal-backdrop {
    padding: 8px;
  }


  .employees-modal {
    width:
      calc(
        100vw -
        16px
      );

    height:
      calc(
        100dvh -
        16px
      );

    max-width:
      calc(
        100vw -
        16px
      );

    max-height:
      calc(
        100dvh -
        16px
      );

    border-radius: 13px;
  }


  .employees-form-section,
  .employees-form-section:has(
    #employeeNotes
  ) {
    grid-template-columns:
      1fr;
  }


  .employees-form-section__title {
    grid-template-columns:
      36px
      minmax(
        0,
        1fr
      );

    min-height: 58px;

    padding:
      9px
      11px;

    border-right: 0;

    border-bottom:
      1px
      solid
      var(--ep-border-strong);
  }


  .employees-form-section__icon {
    width: 34px;
    height: 34px;

    min-width: 34px;
  }


  .employees-form-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(
          0,
          1fr
        )
      );
  }
}


/* =========================================================
   82. RESPONSIVE · 620
   ========================================================= */

@media (
  max-width: 620px
) {
  .employees-modal-backdrop {
    padding: 0;
  }


  .employees-modal {
    width: 100vw;
    height: 100dvh;

    max-width: 100vw;
    max-height: 100dvh;

    border: 0;

    border-radius: 0;
  }


  .employees-modal__head {
    min-height: 68px;

    padding:
      10px
      11px;
  }


  .employees-modal__brand {
    grid-template-columns:
      40px
      minmax(
        0,
        1fr
      );

    gap: 9px;
  }


  .employees-modal__icon {
    width: 40px;
    height: 40px;

    min-width: 40px;
  }


  .employees-modal__brand h3 {
    font-size: 15px;
  }


  .employees-modal__brand p {
    font-size: 9px;
  }


  .employees-form-grid {
    grid-template-columns:
      1fr;
  }


  .employees-field,
  .employees-field--full {
    grid-column: auto;

    min-height: 70px;
  }


  .employees-modal__footer {
    align-items: stretch;

    flex-direction: column;

    min-height: 0;

    padding: 9px;
  }


  .employees-modal__footer > div {
    width: 100%;

    display: grid;

    grid-template-columns:
      1fr;
  }


  .employees-modal__footer
  .employees-btn {
    width: 100%;
  }


  .employees-active-switch {
    min-height: 40px;

    justify-content: flex-start;
  }


  .employees-toast {
    right: 9px;
    bottom: 9px;
    left: 9px;

    min-width: 0;

    max-width: none;
  }
}


/* =========================================================
   83. RESPONSIVE · 420
   ========================================================= */

@media (
  max-width: 420px
) {
  .employees-modal__brand p {
    display: none;
  }


  .employees-form-section__title {
    padding:
      8px
      9px;
  }


  .employees-field {
    padding:
      9px
      10px;
  }
}


/* =========================================================
   84. REDUCED MOTION
   ========================================================= */

@media (
  prefers-reduced-motion:
    reduce
) {
  .employees-page,
  .employees-btn,
  .employees-icon-btn,
  .employees-metric,
  .employees-modal-backdrop,
  .employees-modal,
  .employees-field,
  .employees-toast {
    animation:
      none
      !important;

    transition:
      none
      !important;
  }


  .employees-spin {
    animation:
      employeesSpin
      1.2s
      linear
      infinite
      !important;
  }
}


/* =========================================================
   FIN · PARTE 3 DE 3
   ========================================================= */
   /* =========================================================
   EMPLEADOS · AJUSTE FINAL
   MÁS RÁPIDA · RESPONSIVE FULL · SIN SCROLL HORIZONTAL
   DIVISIONES MÁS MARCADAS · LETRAS MÁS NEGRAS
   PEGAR AL FINAL DE empleados.css
   ========================================================= */


/* =========================================================
   01. VARIABLES · MÁS CONTRASTE
   ========================================================= */

.employees-page,
.employees-modal,
.employees-toast {
  --ep-text: #111111;
  --ep-title: #000000;
  --ep-soft: #34383d;
  --ep-muted: #5b6168;
  --ep-faint: #81878e;

  --ep-border: #c9ced4;
  --ep-border-soft: #d9dde1;
  --ep-border-strong: #9fa6ae;

  --ep-shadow-xs: none;
  --ep-shadow-sm: none;
}


html[data-theme="dark"] .employees-page,
html[data-theme="dark"] .employees-modal,
html[data-theme="dark"] .employees-toast,
body.dark .employees-page,
body.dark .employees-modal,
body.dark .employees-toast,
.dark .employees-page,
.dark .employees-modal,
.dark .employees-toast {
  --ep-text: #f5f5f5;
  --ep-title: #ffffff;
  --ep-soft: #d4d7db;
  --ep-muted: #aeb3b9;
  --ep-faint: #777d84;

  --ep-border: #35393e;
  --ep-border-soft: #292d31;
  --ep-border-strong: #565d65;

  --ep-shadow-xs: none;
  --ep-shadow-sm: none;
}


/* =========================================================
   02. PROTECCIÓN GLOBAL · SIN SCROLL HORIZONTAL
   ========================================================= */

html,
body {
  max-width: 100vw;
  overflow-x: hidden !important;
}


body:has(.employees-page),
body:has(.employees-page) .app-shell,
body:has(.employees-page) .app-main,
body:has(.employees-page) .app-content,
.app-content:has(.employees-page),
#employeesContent {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;

  overflow-x: hidden !important;
}


.employees-page,
.employees-page *,
.employees-modal,
.employees-modal *,
.employees-toast,
.employees-toast * {
  min-width: 0;
  max-width: 100%;
}


.employees-page {
  width: 100%;
  max-width: 100%;

  overflow-x: hidden !important;
}


/* =========================================================
   03. MÁS RÁPIDA · MENOS ANIMACIONES
   ========================================================= */

.employees-page {
  animation: none !important;
}


.employees-page *,
.employees-page *::before,
.employees-page *::after {
  animation-duration: 80ms !important;
  transition-duration: 70ms !important;
}


.employees-head,
.employees-brand__icon,
.employees-head-status,
.employees-btn,
.employees-icon-btn,
.employees-metric,
.employees-metric__icon,
.employees-metric__arrow,
.employees-search input,
.employees-search button,
.employees-filter-field,
.employees-filter-field select,
.employees-table td,
.employees-person__avatar,
.employees-field,
.employees-modal__close,
.employees-active-switch b,
.employees-active-switch b::before {
  transition:
    background-color 60ms ease,
    border-color 60ms ease,
    color 60ms ease,
    opacity 60ms ease !important;
}


.employees-btn:hover:not(:disabled),
.employees-icon-btn:hover:not(:disabled),
.employees-head:hover .employees-brand__icon,
.employees-metric:hover .employees-metric__icon,
.employees-metric:hover .employees-metric__arrow {
  transform: none !important;
}


.employees-btn:active:not(:disabled) {
  transform: none !important;
}


.employees-filters__body {
  transition:
    grid-template-rows 90ms ease,
    opacity 70ms ease,
    visibility 70ms ease !important;
}


/* =========================================================
   04. BACKDROP MÁS LIVIANO
   ========================================================= */

.employees-modal-backdrop {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;

  animation-duration: 80ms !important;
}


.employees-modal {
  animation-duration: 90ms !important;
}


.employees-modal__footer {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}


/* =========================================================
   05. LETRAS MÁS MARCADAS
   ========================================================= */

.employees-page,
.employees-modal {
  font-weight: 600;
}


.employees-brand h2,
.employees-modal__brand h3 {
  font-weight: 900 !important;
}


.employees-brand > div > span,
.employees-head-status small,
.employees-metric__copy small,
.employees-filters__title > span,
.employees-filter-field > span,
.employees-table th,
.employees-form-section__title > div > span,
.employees-field > span {
  font-weight: 850 !important;
}


.employees-head-status strong,
.employees-metric__copy strong,
.employees-filters__title strong,
.employees-person strong,
.employees-cell-main,
.employees-code,
.employees-state,
.employees-form-section__title > div > strong,
.employees-pagination__info strong,
.employees-pagination__page strong {
  font-weight: 800 !important;
}


.employees-brand p,
.employees-metric__copy em,
.employees-filters__title p,
.employees-filters__summary > span,
.employees-filters__footer > span,
.employees-person small,
.employees-relation,
.employees-date,
.employees-field input,
.employees-field select,
.employees-field textarea,
.employees-search input,
.employees-filter-field select,
.employees-pagination__info,
.employees-pagination__page,
.employees-modal__brand p {
  font-weight: 650 !important;
}


.employees-btn,
.employees-icon-btn {
  font-weight: 800 !important;
}


/* =========================================================
   06. HEADER · DIVISIÓN MÁS VISIBLE
   ========================================================= */

.employees-head {
  border-color: var(--ep-border-strong) !important;
  border-bottom-width: 1px !important;
}


.employees-head::before {
  display: none;
}


.employees-brand__icon,
.employees-head-status,
.employees-head-status > .icon,
.employees-head-status > svg {
  border-color: var(--ep-border-strong) !important;
}


.employees-head__status,
.employees-head__actions {
  border-left-color: var(--ep-border-strong) !important;
}


/* =========================================================
   07. BOTONES
   ========================================================= */

.employees-btn,
.employees-icon-btn {
  border-color: var(--ep-border-strong) !important;
}


/* =========================================================
   08. MÉTRICAS · DIVISIONES MARCADAS
   ========================================================= */

.employees-metrics {
  gap: 0 !important;

  background: transparent !important;

  border: 1px solid var(--ep-border-strong) !important;

  overflow: hidden;
}


.employees-metric {
  border-right: 1px solid var(--ep-border-strong) !important;
  border-bottom: 0 !important;
}


.employees-metric:last-child {
  border-right: 0 !important;
}


.employees-metric__icon {
  border-color: var(--ep-border-strong) !important;
}


/* =========================================================
   09. PANEL PRINCIPAL
   ========================================================= */

.employees-panel {
  border-color: var(--ep-border-strong) !important;
}


/* =========================================================
   10. FILTROS · DIVISIONES
   ========================================================= */

.employees-filters {
  border-bottom-color: var(--ep-border-strong) !important;
}


.employees-filters__head {
  border-bottom-color: var(--ep-border-strong) !important;
}


.employees-search-row {
  border-bottom-color: var(--ep-border-strong) !important;
}


.employees-filters__body {
  border-top: 0;
}


.employees-filters-grid {
  gap: 0 !important;

  background: transparent !important;

  border-top: 1px solid var(--ep-border-strong);
}


.employees-filter-field {
  border-right: 1px solid var(--ep-border) !important;
  border-bottom: 1px solid var(--ep-border) !important;
}


.employees-filter-field:nth-child(3n) {
  border-right: 0 !important;
}


.employees-filter-field:nth-last-child(-n + 3) {
  border-bottom: 0 !important;
}


.employees-filters__footer {
  border-top-color: var(--ep-border-strong) !important;
}


.employees-search input,
.employees-filter-field select,
.employees-filters__summary > span {
  border-color: var(--ep-border-strong) !important;
}


/* =========================================================
   11. TABLA · SIN BARRA HORIZONTAL EN DESKTOP
   ========================================================= */

.employees-table-wrap {
  width: 100%;
  max-width: 100%;

  overflow-x: hidden !important;
  overflow-y: visible;
}


.employees-table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;

  table-layout: fixed !important;
}


/* =========================================================
   12. COLUMNAS PROPORCIONALES
   ========================================================= */

.employees-table th:nth-child(1),
.employees-table td:nth-child(1) {
  width: 18% !important;
}


.employees-table th:nth-child(2),
.employees-table td:nth-child(2) {
  width: 8% !important;
}


.employees-table th:nth-child(3),
.employees-table td:nth-child(3) {
  width: 11% !important;
}


.employees-table th:nth-child(4),
.employees-table td:nth-child(4) {
  width: 12% !important;
}


.employees-table th:nth-child(5),
.employees-table td:nth-child(5) {
  width: 10% !important;
}


.employees-table th:nth-child(6),
.employees-table td:nth-child(6) {
  width: 12% !important;
}


.employees-table th:nth-child(7),
.employees-table td:nth-child(7) {
  width: 12% !important;
}


.employees-table th:nth-child(8),
.employees-table td:nth-child(8) {
  width: 9% !important;
}


.employees-table th:nth-child(9),
.employees-table td:nth-child(9) {
  width: 8% !important;
}


/* =========================================================
   13. TABLA · DIVISIONES MÁS MARCADAS
   ========================================================= */

.employees-table th {
  border-bottom: 1px solid var(--ep-border-strong) !important;
}


.employees-table td {
  border-bottom: 1px solid var(--ep-border) !important;
}


.employees-table th:not(:last-child)::after {
  top: 0 !important;
  bottom: 0 !important;

  background: var(--ep-border-strong) !important;
}


.employees-table td:not(:last-child)::after {
  top: 0 !important;
  bottom: 0 !important;

  background: var(--ep-border) !important;
}


.employees-table tbody tr:last-child td {
  border-bottom: 0 !important;
}


/* =========================================================
   14. CELDAS · EVITAR DESBORDES
   ========================================================= */

.employees-table th,
.employees-table td {
  min-width: 0 !important;

  overflow: hidden;
}


.employees-person {
  min-width: 0;
}


.employees-person > div {
  min-width: 0;
}


.employees-person strong,
.employees-person small,
.employees-cell-main,
.employees-code,
.employees-relation > span,
.employees-date > span,
.employees-state > span {
  max-width: 100%;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;
}


.employees-state {
  min-width: 0 !important;
  max-width: 100%;

  padding:
    0
    6px;
}


.employees-row-actions {
  min-width: 0;

  gap: 4px;
}


.employees-row-actions .employees-icon-btn {
  width: 30px;
  height: 30px;

  min-width: 30px;
}


/* =========================================================
   15. PAGINACIÓN
   ========================================================= */

.employees-pagination {
  border-top-color: var(--ep-border-strong) !important;
}


.employees-pagination__page {
  border-color: var(--ep-border-strong) !important;
}


/* =========================================================
   16. MODAL · DIVISIONES
   ========================================================= */

.employees-modal {
  border-color: var(--ep-border-strong) !important;
}


.employees-modal__head {
  border-bottom-color: var(--ep-border-strong) !important;
}


.employees-modal__head::after {
  display: none;
}


.employees-modal__icon,
.employees-modal__close {
  border-color: var(--ep-border-strong) !important;
}


/* =========================================================
   17. FORMULARIO · SECCIONES BIEN DIVIDIDAS
   ========================================================= */

.employees-form-section {
  border-bottom: 1px solid var(--ep-border-strong) !important;
}


.employees-form-section__title {
  border-right-color: var(--ep-border-strong) !important;
}


.employees-form-section__icon {
  border-color: var(--ep-border-strong) !important;
}


.employees-form-grid {
  gap: 0 !important;

  background: transparent !important;
}


.employees-field {
  border-right: 1px solid var(--ep-border) !important;
  border-bottom: 1px solid var(--ep-border) !important;
}


.employees-field:nth-child(3n) {
  border-right: 0 !important;
}


.employees-form-grid
.employees-field:nth-last-child(-n + 3) {
  border-bottom: 0 !important;
}


.employees-field--full {
  border-right: 0 !important;
}


/* =========================================================
   18. FOOTER MODAL
   ========================================================= */

.employees-modal__footer {
  border-top-color: var(--ep-border-strong) !important;
}


/* =========================================================
   19. RESPONSIVE · 1480
   ========================================================= */

@media (max-width: 1480px) {
  .employees-metric {
    border-right: 1px solid var(--ep-border-strong) !important;
    border-bottom: 1px solid var(--ep-border-strong) !important;
  }


  .employees-metric:nth-child(3n) {
    border-right: 0 !important;
  }


  .employees-metric:nth-last-child(-n + 3) {
    border-bottom: 0 !important;
  }
}


/* =========================================================
   20. RESPONSIVE · 1180
   ========================================================= */

@media (max-width: 1180px) {
  .employees-field {
    border-right: 1px solid var(--ep-border) !important;
    border-bottom: 1px solid var(--ep-border) !important;
  }


  .employees-field:nth-child(3n) {
    border-right: 1px solid var(--ep-border) !important;
  }


  .employees-field:nth-child(2n) {
    border-right: 0 !important;
  }


  .employees-form-grid
  .employees-field:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--ep-border) !important;
  }


  .employees-form-grid
  .employees-field:nth-last-child(-n + 2) {
    border-bottom: 0 !important;
  }


  .employees-field--full {
    border-right: 0 !important;
  }
}


/* =========================================================
   21. RESPONSIVE · TABLET
   ========================================================= */

@media (max-width: 820px) {
  .employees-page {
    width: 100%;

    gap: 8px;

    padding: 6px;

    overflow-x: hidden !important;
  }


  .employees-head {
    gap: 10px;

    padding: 11px;

    border-color: var(--ep-border-strong) !important;
  }


  .employees-brand {
    gap: 9px;
  }


  .employees-brand__icon {
    width: 42px;
    height: 42px;

    min-width: 42px;
  }


  .employees-brand h2 {
    font-size: 21px;
    font-weight: 900 !important;
  }


  .employees-brand p {
    font-size: 10px;
    font-weight: 650 !important;
  }


  .employees-head__actions {
    gap: 6px;

    border-top-color: var(--ep-border-strong) !important;
  }


  .employees-metrics {
    grid-template-columns:
      repeat(
        2,
        minmax(
          0,
          1fr
        )
      );

    border-color: var(--ep-border-strong) !important;
  }


  .employees-metric,
  .employees-metric:nth-child(3n),
  .employees-metric:nth-last-child(-n + 3) {
    min-height: 76px;

    border-right: 1px solid var(--ep-border-strong) !important;
    border-bottom: 1px solid var(--ep-border-strong) !important;
  }


  .employees-metric:nth-child(2n) {
    border-right: 0 !important;
  }


  .employees-metric:nth-last-child(-n + 2) {
    border-bottom: 0 !important;
  }


  .employees-filters__head {
    gap: 8px;

    padding: 9px;
  }


  .employees-search-row {
    gap: 6px;

    padding: 8px;
  }


  .employees-table-wrap {
    overflow-x: hidden !important;
  }


  .employees-table {
    min-width: 0 !important;
    max-width: 100% !important;
  }


  .employees-table tbody {
    max-width: 100%;

    overflow-x: hidden;
  }


  .employees-table tbody tr {
    max-width: 100%;

    border-color: var(--ep-border-strong) !important;
  }


  .employees-table tbody td {
    max-width: 100%;

    border-right-color: var(--ep-border) !important;
    border-bottom-color: var(--ep-border) !important;
  }


  .employees-pagination {
    border-top-color: var(--ep-border-strong) !important;
  }
}


/* =========================================================
   22. RESPONSIVE · MOBILE
   ========================================================= */

@media (max-width: 620px) {
  .employees-page {
    gap: 6px;

    padding: 4px;
  }


  .employees-head {
    padding: 9px;

    border-radius: 10px;
  }


  .employees-brand {
    grid-template-columns:
      38px
      minmax(
        0,
        1fr
      );

    gap: 8px;
  }


  .employees-brand__icon {
    width: 38px;
    height: 38px;

    min-width: 38px;

    border-radius: 9px;
  }


  .employees-brand__icon .icon,
  .employees-brand__icon svg {
    width: 17px;
    height: 17px;
  }


  .employees-brand > div > span {
    font-size: 8px;
  }


  .employees-brand h2 {
    font-size: 19px;
  }


  .employees-brand p {
    font-size: 9px;
  }


  .employees-head__actions {
    padding-top: 8px;
  }


  .employees-btn {
    min-height: 34px;

    font-size: 10px;
  }


  /* =======================================================
     MÉTRICAS MOBILE · 2 COLUMNAS
     ======================================================= */

  .employees-metrics {
    grid-template-columns:
      repeat(
        2,
        minmax(
          0,
          1fr
        )
      ) !important;

    border: 1px solid var(--ep-border-strong) !important;
  }


  .employees-metric,
  .employees-metric:nth-child(2n),
  .employees-metric:nth-child(3n),
  .employees-metric:nth-last-child(-n + 2),
  .employees-metric:nth-last-child(-n + 3) {
    min-height: 70px;

    grid-template-columns:
      30px
      minmax(
        0,
        1fr
      )
      14px;

    gap: 6px;

    padding: 7px;

    border-right: 1px solid var(--ep-border-strong) !important;
    border-bottom: 1px solid var(--ep-border-strong) !important;
  }


  .employees-metric:nth-child(2n) {
    border-right: 0 !important;
  }


  .employees-metric:nth-last-child(-n + 2) {
    border-bottom: 0 !important;
  }


  .employees-metric__icon {
    width: 30px;
    height: 30px;

    min-width: 30px;
  }


  .employees-metric__icon .icon,
  .employees-metric__icon svg {
    width: 14px;
    height: 14px;
  }


  .employees-metric__copy {
    gap: 2px;
  }


  .employees-metric__copy small {
    font-size: 7.5px;
  }


  .employees-metric__copy strong {
    font-size: 17px;
  }


  .employees-metric__copy em {
    font-size: 7.5px;
  }


  .employees-metric__arrow {
    width: 14px;
    height: 14px;
  }


  /* =======================================================
     FILTROS MOBILE
     ======================================================= */

  .employees-filters__head {
    min-height: 0;

    padding: 8px;
  }


  .employees-filters__title strong {
    font-size: 13px;
  }


  .employees-filters__title p {
    font-size: 9px;
  }


  .employees-filters__summary {
    gap: 5px;
  }


  .employees-filters__summary > span {
    min-height: 32px;

    font-size: 8.5px;

    border-color: var(--ep-border-strong) !important;
  }


  .employees-search-row {
    padding: 7px;
  }


  .employees-search input {
    height: 36px;

    font-size: 10px;
  }


  .employees-filters-grid {
    grid-template-columns: 1fr !important;

    border-top: 1px solid var(--ep-border-strong);
  }


  .employees-filter-field,
  .employees-filter-field:nth-child(3n),
  .employees-filter-field:nth-last-child(-n + 3) {
    min-height: 64px;

    border-right: 0 !important;
    border-bottom: 1px solid var(--ep-border-strong) !important;
  }


  .employees-filter-field:last-child {
    border-bottom: 0 !important;
  }


  .employees-filter-field select {
    height: 34px;
  }


  .employees-filters__footer {
    padding: 8px;
  }


  /* =======================================================
     CARDS MOBILE
     ======================================================= */

  .employees-table tbody {
    gap: 7px;

    padding: 7px;

    background: var(--ep-surface-2);
  }


  .employees-table tbody tr {
    width: 100%;

    border: 1px solid var(--ep-border-strong) !important;

    border-radius: 9px;
  }


  .employees-table tbody td,
  .employees-table tbody td:nth-child(2n),
  .employees-table tbody td:nth-child(1),
  .employees-table tbody td:nth-child(9) {
    min-height: 54px;

    padding:
      8px
      9px;

    border-right: 0 !important;

    border-bottom: 1px solid var(--ep-border) !important;
  }


  .employees-table tbody td:nth-child(9) {
    border-bottom: 0 !important;
  }


  .employees-table tbody td::before {
    font-size: 7.5px;

    font-weight: 850;
  }


  .employees-person {
    grid-template-columns:
      34px
      minmax(
        0,
        1fr
      );

    gap: 8px;
  }


  .employees-person__avatar {
    width: 34px;
    height: 34px;

    min-width: 34px;
  }


  .employees-person strong {
    font-size: 10.5px;
  }


  .employees-person small {
    font-size: 8.5px;
  }


  .employees-row-actions {
    grid-template-columns:
      repeat(
        3,
        minmax(
          0,
          1fr
        )
      );

    gap: 5px;
  }


  .employees-row-actions
  .employees-icon-btn {
    width: 100%;

    min-width: 0;

    min-height: 34px;
  }


  /* =======================================================
     PAGINACIÓN MOBILE
     ======================================================= */

  .employees-pagination {
    min-height: 0;

    gap: 7px;

    padding: 8px;
  }


  .employees-pagination__actions {
    gap: 5px;
  }


  /* =======================================================
     MODAL MOBILE
     ======================================================= */

  .employees-modal {
    overflow-x: hidden !important;
  }


  .employees-modal__head {
    border-bottom: 1px solid var(--ep-border-strong) !important;
  }


  .employees-form {
    overflow-x: hidden !important;
  }


  .employees-form-section {
    border-bottom: 1px solid var(--ep-border-strong) !important;
  }


  .employees-form-section__title {
    min-height: 54px;

    border-right: 0 !important;
    border-bottom: 1px solid var(--ep-border-strong) !important;
  }


  .employees-form-grid {
    grid-template-columns: 1fr !important;
  }


  .employees-field,
  .employees-field:nth-child(2n),
  .employees-field:nth-child(3n),
  .employees-form-grid
  .employees-field:nth-last-child(-n + 2),
  .employees-form-grid
  .employees-field:nth-last-child(-n + 3),
  .employees-field--full {
    min-height: 62px;

    padding:
      8px
      10px;

    border-right: 0 !important;
    border-bottom: 1px solid var(--ep-border) !important;
  }


  .employees-form-grid
  .employees-field:last-child {
    border-bottom: 0 !important;
  }


  .employees-field > span {
    font-size: 8px;
  }


  .employees-field input,
  .employees-field select,
  .employees-field textarea {
    font-size: 10.5px;

    font-weight: 650;
  }


  .employees-modal__footer {
    border-top: 1px solid var(--ep-border-strong) !important;
  }
}


/* =========================================================
   23. MOBILE MUY CHICO
   ========================================================= */

@media (max-width: 390px) {
  .employees-page {
    padding: 3px;
  }


  .employees-metrics {
    grid-template-columns: 1fr !important;
  }


  .employees-metric,
  .employees-metric:nth-child(2n),
  .employees-metric:nth-child(3n),
  .employees-metric:nth-last-child(-n + 2),
  .employees-metric:nth-last-child(-n + 3) {
    border-right: 0 !important;
    border-bottom: 1px solid var(--ep-border-strong) !important;
  }


  .employees-metric:last-child {
    border-bottom: 0 !important;
  }


  .employees-head__actions {
    grid-template-columns: 1fr !important;
  }


  .employees-pagination__actions {
    grid-template-columns: 1fr !important;
  }
}


/* =========================================================
   24. PROTECCIÓN FINAL · NUNCA SCROLL HORIZONTAL
   ========================================================= */

.employees-page img,
.employees-page svg,
.employees-modal img,
.employees-modal svg {
  max-width: 100%;
}


.employees-page input,
.employees-page select,
.employees-page textarea,
.employees-page button,
.employees-modal input,
.employees-modal select,
.employees-modal textarea,
.employees-modal button {
  min-width: 0;
  max-width: 100%;
}


.employees-page p,
.employees-page span,
.employees-page strong,
.employees-page small,
.employees-page h1,
.employees-page h2,
.employees-page h3,
.employees-modal p,
.employees-modal span,
.employees-modal strong,
.employees-modal small,
.employees-modal h2,
.employees-modal h3 {
  overflow-wrap: anywhere;
}


.employees-table-wrap,
.employees-form,
.employees-modal,
.employees-page {
  overflow-x: hidden !important;
}/* =========================================================
   EMPLEADOS · MISMO TAMAÑO QUE ASISTENCIA
   PEGAR AL FINAL DEL CSS
   ========================================================= */


/* =========================================================
   PÁGINA
   ========================================================= */

.employees-page {
  gap: 9px !important;
  padding: 8px !important;
}


/* =========================================================
   HEADER
   ========================================================= */

.employees-head {
  min-height: 94px !important;

  gap: 14px !important;

  padding:
    13px
    15px !important;

  border-radius: 11px !important;
}


.employees-brand {
  grid-template-columns:
    46px
    minmax(
      0,
      1fr
    ) !important;

  gap: 10px !important;
}


.employees-brand__icon {
  width: 46px !important;
  height: 46px !important;

  min-width: 46px !important;

  border-radius: 9px !important;
}


.employees-brand__icon .icon,
.employees-brand__icon svg {
  width: 19px !important;
  height: 19px !important;
}


.employees-brand > div > span {
  margin-bottom: 3px !important;

  font-size: 8.5px !important;
}


.employees-brand h2 {
  font-size:
    clamp(
      22px,
      1.9vw,
      27px
    ) !important;
}


.employees-brand p {
  margin-top: 4px !important;

  font-size: 10px !important;

  line-height: 1.35 !important;
}


/* =========================================================
   STATUS HEADER
   ========================================================= */

.employees-head__status {
  gap: 6px !important;

  padding-left: 12px !important;
}


.employees-head-status {
  min-width: 120px !important;
  min-height: 48px !important;

  grid-template-columns:
    30px
    minmax(
      0,
      1fr
    ) !important;

  gap: 7px !important;

  padding:
    6px
    8px !important;

  border-radius: 8px !important;
}


.employees-head-status > .icon,
.employees-head-status > svg {
  width: 30px !important;
  height: 30px !important;

  padding: 7px !important;
}


.employees-head-status small {
  font-size: 7.5px !important;
}


.employees-head-status strong {
  font-size: 10px !important;
}


/* =========================================================
   ACCIONES HEADER
   ========================================================= */

.employees-head__actions {
  gap: 5px !important;

  padding-left: 12px !important;
}


/* =========================================================
   BOTONES
   ========================================================= */

.employees-btn {
  min-height: 35px !important;

  gap: 6px !important;

  padding:
    0
    11px !important;

  border-radius: 7px !important;

  font-size: 9.5px !important;
}


.employees-btn--compact {
  min-height: 31px !important;

  padding:
    0
    9px !important;

  font-size: 9px !important;
}


.employees-btn .icon,
.employees-btn svg {
  width: 13px !important;
  height: 13px !important;
}


.employees-btn__icon {
  width: 23px !important;
  height: 23px !important;

  margin-left: -4px !important;
}


.employees-btn__icon .icon,
.employees-btn__icon svg {
  width: 11px !important;
  height: 11px !important;
}


/* =========================================================
   MÉTRICAS
   ========================================================= */

.employees-metric {
  min-height: 82px !important;

  grid-template-columns:
    34px
    minmax(
      0,
      1fr
    )
    16px !important;

  gap: 8px !important;

  padding:
    9px
    10px !important;
}


.employees-metric__icon {
  width: 34px !important;
  height: 34px !important;

  min-width: 34px !important;

  border-radius: 7px !important;
}


.employees-metric__icon .icon,
.employees-metric__icon svg {
  width: 15px !important;
  height: 15px !important;
}


.employees-metric__copy {
  gap: 2px !important;
}


.employees-metric__copy small {
  font-size: 7.5px !important;
}


.employees-metric__copy strong {
  font-size: 18px !important;
}


.employees-metric__copy em {
  font-size: 8px !important;
}


.employees-metric__arrow {
  width: 16px !important;
  height: 16px !important;
}


.employees-metric__arrow .icon,
.employees-metric__arrow svg {
  width: 10px !important;
  height: 10px !important;
}


/* =========================================================
   FILTROS
   ========================================================= */

.employees-filters__head {
  min-height: 56px !important;

  gap: 9px !important;

  padding:
    9px
    11px !important;
}


.employees-filters__title > span {
  font-size: 7.5px !important;
}


.employees-filters__title strong {
  font-size: 13px !important;
}


.employees-filters__title p {
  font-size: 8.5px !important;
}


.employees-filters__summary {
  gap: 5px !important;
}


.employees-filters__summary > span {
  min-height: 30px !important;

  gap: 5px !important;

  padding:
    0
    8px !important;

  font-size: 8.5px !important;
}


.employees-filters__summary
> span
strong {
  min-width: 19px !important;
  height: 19px !important;

  font-size: 7px !important;
}


/* =========================================================
   BUSCADOR
   ========================================================= */

.employees-search-row {
  gap: 6px !important;

  padding:
    9px
    10px !important;
}


.employees-search input {
  height: 37px !important;

  padding:
    0
    36px
    0
    33px !important;

  font-size: 9.5px !important;
}


.employees-search > .icon,
.employees-search > svg {
  left: 10px !important;

  width: 13px !important;
  height: 13px !important;
}


.employees-search button {
  right: 5px !important;

  width: 25px !important;
  height: 25px !important;
}


/* =========================================================
   FILTROS EXPANDIDOS
   ========================================================= */

.employees-filter-field {
  min-height: 63px !important;

  gap: 4px !important;

  padding:
    8px
    9px !important;
}


.employees-filter-field > span {
  font-size: 7.5px !important;
}


.employees-filter-field select {
  height: 33px !important;

  padding:
    0
    8px !important;

  font-size: 9.5px !important;
}


.employees-filters__footer {
  min-height: 46px !important;

  gap: 8px !important;

  padding:
    7px
    10px !important;
}


.employees-filters__footer > span {
  font-size: 8.5px !important;
}


/* =========================================================
   TABLA
   ========================================================= */

.employees-table th {
  height: 36px !important;

  padding:
    0
    7px !important;

  font-size: 7.5px !important;
}


.employees-table td {
  height: 57px !important;

  padding:
    7px !important;

  font-size: 9px !important;
}


/* =========================================================
   EMPLEADO
   ========================================================= */

.employees-person {
  grid-template-columns:
    32px
    minmax(
      0,
      1fr
    ) !important;

  gap: 7px !important;
}


.employees-person__avatar {
  width: 32px !important;
  height: 32px !important;

  min-width: 32px !important;

  border-radius: 7px !important;

  font-size: 8px !important;
}


.employees-person strong {
  font-size: 9.5px !important;
}


.employees-person small {
  font-size: 7.5px !important;
}


.employees-cell-main {
  font-size: 9px !important;
}


.employees-code {
  min-height: 25px !important;

  padding:
    0
    6px !important;

  font-size: 8px !important;
}


.employees-state {
  min-height: 25px !important;

  gap: 4px !important;

  padding:
    0
    6px !important;

  font-size: 8px !important;
}


.employees-state .icon,
.employees-state svg {
  width: 10px !important;
  height: 10px !important;
}


.employees-relation,
.employees-date {
  gap: 4px !important;

  font-size: 8px !important;
}


.employees-relation .icon,
.employees-relation svg,
.employees-date .icon,
.employees-date svg {
  width: 10px !important;
  height: 10px !important;
}


/* =========================================================
   ACCIONES TABLA
   ========================================================= */

.employees-row-actions {
  gap: 4px !important;
}


.employees-row-actions
.employees-icon-btn {
  width: 29px !important;
  height: 29px !important;

  min-width: 29px !important;
}


.employees-icon-btn .icon,
.employees-icon-btn svg {
  width: 12px !important;
  height: 12px !important;
}


/* =========================================================
   EMPTY / LOADING
   ========================================================= */

.employees-loading,
.employees-empty {
  min-height: 200px !important;

  gap: 6px !important;

  padding:
    24px
    15px !important;
}


.employees-loading > span,
.employees-empty > span {
  width: 40px !important;
  height: 40px !important;

  margin-bottom: 2px !important;

  border-radius: 9px !important;
}


.employees-loading > span .icon,
.employees-loading > span svg,
.employees-empty > span .icon,
.employees-empty > span svg {
  width: 16px !important;
  height: 16px !important;
}


.employees-loading strong,
.employees-empty strong {
  font-size: 11px !important;
}


.employees-loading p,
.employees-empty p {
  font-size: 8.5px !important;
}


/* =========================================================
   PAGINACIÓN
   ========================================================= */

.employees-pagination {
  min-height: 48px !important;

  gap: 7px !important;

  padding:
    7px
    10px !important;
}


.employees-pagination__info,
.employees-pagination__page {
  font-size: 8.5px !important;
}


.employees-pagination__actions {
  gap: 5px !important;
}


.employees-pagination__actions
.employees-btn,
.employees-pagination__page {
  min-height: 31px !important;
}


/* =========================================================
   MODAL
   ========================================================= */

.employees-modal__head {
  min-height: 64px !important;

  gap: 9px !important;

  padding:
    10px
    11px !important;
}


.employees-modal__brand {
  grid-template-columns:
    38px
    minmax(
      0,
      1fr
    ) !important;

  gap: 8px !important;
}


.employees-modal__icon {
  width: 38px !important;
  height: 38px !important;

  min-width: 38px !important;

  border-radius: 8px !important;
}


.employees-modal__icon .icon,
.employees-modal__icon svg {
  width: 15px !important;
  height: 15px !important;
}


.employees-modal__brand > div > span {
  font-size: 7.5px !important;
}


.employees-modal__brand h3 {
  font-size: 14px !important;
}


.employees-modal__brand p {
  font-size: 8.5px !important;
}


.employees-modal__close {
  width: 29px !important;
  height: 29px !important;

  min-width: 29px !important;
}


/* =========================================================
   FORMULARIO
   ========================================================= */

.employees-form-section {
  grid-template-columns:
    190px
    minmax(
      0,
      1fr
    ) !important;
}


.employees-form-section:has(
  #employeeNotes
) {
  grid-template-columns:
    190px
    minmax(
      0,
      1fr
    ) !important;
}


.employees-form-section__title {
  grid-template-columns:
    32px
    minmax(
      0,
      1fr
    ) !important;

  gap: 8px !important;

  padding:
    11px
    10px !important;
}


.employees-form-section__icon {
  width: 32px !important;
  height: 32px !important;

  min-width: 32px !important;
}


.employees-form-section__icon .icon,
.employees-form-section__icon svg {
  width: 14px !important;
  height: 14px !important;
}


.employees-form-section__title
> div
> span {
  font-size: 7.5px !important;
}


.employees-form-section__title
> div
> strong {
  font-size: 10px !important;
}


.employees-field {
  min-height: 63px !important;

  gap: 4px !important;

  padding:
    8px
    9px !important;
}


.employees-field > span {
  font-size: 7.5px !important;
}


.employees-field input,
.employees-field select,
.employees-field textarea {
  font-size: 9.5px !important;
}


.employees-field input,
.employees-field select {
  min-height: 29px !important;
}


.employees-field textarea {
  min-height: 68px !important;
}


.employees-field--full {
  min-height: 90px !important;
}


/* =========================================================
   FOOTER MODAL
   ========================================================= */

.employees-modal__footer {
  min-height: 52px !important;

  gap: 8px !important;

  padding:
    8px
    10px !important;
}


.employees-modal__footer
.employees-btn {
  min-height: 35px !important;

  padding:
    0
    11px !important;
}


/* =========================================================
   SWITCH
   ========================================================= */

.employees-active-switch {
  gap: 7px !important;

  font-size: 9px !important;
}


.employees-active-switch b {
  width: 36px !important;
  height: 20px !important;

  min-width: 36px !important;
}


.employees-active-switch b::before {
  width: 12px !important;
  height: 12px !important;
}


.employees-active-switch
input:checked + b::before {
  transform:
    translateX(
      15px
    ) !important;
}


/* =========================================================
   MOBILE · MISMO CRITERIO QUE ASISTENCIA
   ========================================================= */

@media (max-width: 820px) {
  .employees-page {
    gap: 7px !important;

    padding: 5px !important;
  }


  .employees-head {
    gap: 8px !important;

    padding: 9px !important;
  }


  .employees-brand {
    grid-template-columns:
      38px
      minmax(
        0,
        1fr
      ) !important;

    gap: 7px !important;
  }


  .employees-brand__icon {
    width: 38px !important;
    height: 38px !important;

    min-width: 38px !important;
  }


  .employees-brand__icon .icon,
  .employees-brand__icon svg {
    width: 16px !important;
    height: 16px !important;
  }


  .employees-brand h2 {
    font-size: 20px !important;
  }


  .employees-brand p {
    font-size: 9px !important;
  }


  .employees-btn {
    min-height: 35px !important;

    font-size: 9.5px !important;
  }


  .employees-metric,
  .employees-metric:nth-child(3n),
  .employees-metric:nth-last-child(-n + 3) {
    min-height: 68px !important;

    padding: 8px !important;
  }


  .employees-metric__icon {
    width: 30px !important;
    height: 30px !important;

    min-width: 30px !important;
  }


  .employees-metric__copy strong {
    font-size: 16px !important;
  }


  .employees-metric__copy small,
  .employees-metric__copy em {
    font-size: 7.5px !important;
  }


  .employees-filters__head {
    padding: 8px !important;
  }


  .employees-search-row {
    padding: 8px !important;
  }


  .employees-search input {
    height: 36px !important;

    font-size: 9.5px !important;
  }


  .employees-filter-field {
    min-height: 58px !important;

    padding:
      7px
      8px !important;
  }


  .employees-filter-field select {
    height: 32px !important;

    font-size: 9.5px !important;
  }


  .employees-table tbody {
    gap: 7px !important;

    padding: 7px !important;
  }


  .employees-table tbody td,
  .employees-table tbody td:nth-child(2n),
  .employees-table tbody td:nth-child(1),
  .employees-table tbody td:nth-child(9) {
    min-height: 52px !important;

    padding: 8px !important;
  }


  .employees-table tbody td::before {
    font-size: 7px !important;
  }


  .employees-person {
    grid-template-columns:
      32px
      minmax(
        0,
        1fr
      ) !important;
  }


  .employees-person__avatar {
    width: 32px !important;
    height: 32px !important;

    min-width: 32px !important;
  }


  .employees-person strong {
    font-size: 9.5px !important;
  }


  .employees-person small {
    font-size: 7.5px !important;
  }


  .employees-form-section,
  .employees-form-section:has(
    #employeeNotes
  ) {
    grid-template-columns:
      1fr !important;
  }


  .employees-form-section__title {
    min-height: 52px !important;

    padding: 8px !important;
  }


  .employees-field {
    min-height: 58px !important;

    padding:
      7px
      8px !important;
  }


  .employees-field > span {
    font-size: 7.5px !important;
  }


  .employees-field input,
  .employees-field select,
  .employees-field textarea {
    font-size: 9.5px !important;
  }
}


/* =========================================================
   MOBILE CHICO
   ========================================================= */

@media (max-width: 620px) {
  .employees-page {
    gap: 6px !important;

    padding: 4px !important;
  }


  .employees-head {
    padding: 8px !important;
  }


  .employees-head__actions {
    grid-template-columns: 1fr !important;
  }


  .employees-metrics {
    grid-template-columns:
      repeat(
        2,
        minmax(
          0,
          1fr
        )
      ) !important;
  }


  .employees-metric,
  .employees-metric:nth-child(2n),
  .employees-metric:nth-child(3n),
  .employees-metric:nth-last-child(-n + 2),
  .employees-metric:nth-last-child(-n + 3) {
    min-height: 64px !important;
  }


  .employees-metric:nth-child(2n) {
    border-right: 0 !important;
  }


  .employees-metric:nth-last-child(-n + 2) {
    border-bottom: 0 !important;
  }


  .employees-table tbody td {
    min-height: 50px !important;
  }


  .employees-modal__head {
    min-height: 60px !important;

    padding:
      9px
      10px !important;
  }


  .employees-modal__brand {
    grid-template-columns:
      36px
      minmax(
        0,
        1fr
      ) !important;
  }


  .employees-modal__icon {
    width: 36px !important;
    height: 36px !important;

    min-width: 36px !important;
  }


  .employees-modal__brand h3 {
    font-size: 13px !important;
  }


  .employees-modal__brand p {
    font-size: 8px !important;
  }
}


/* =========================================================
   MOBILE MUY CHICO
   ========================================================= */

@media (max-width: 390px) {
  .employees-page {
    padding: 3px !important;
  }


  .employees-metrics {
    grid-template-columns: 1fr !important;
  }


  .employees-metric,
  .employees-metric:nth-child(2n),
  .employees-metric:nth-child(3n),
  .employees-metric:nth-last-child(-n + 2),
  .employees-metric:nth-last-child(-n + 3) {
    border-right: 0 !important;

    border-bottom:
      1px
      solid
      var(--ep-border-strong) !important;
  }


  .employees-metric:last-child {
    border-bottom: 0 !important;
  }
}