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

   WIRTZ HUB · CAPITAL HUMANO · LEGAJOS

   REDISEÑO PREMIUM
   PARTE 1 DE 3

   CONTIENE:
   - Variables
   - Página
   - Header
   - Acciones
   - Métricas
   - Panel principal
   - Filtros
   - Search
   ========================================================= */


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

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

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


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


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

.records-page,
.records-modal,
.records-toast {
  --records-page-bg:
    #f4f5f6;

  --records-surface:
    #ffffff;

  --records-surface-soft:
    #f8f9fa;

  --records-surface-muted:
    #f0f1f2;

  --records-surface-hover:
    #f5f6f7;

  --records-surface-active:
    #eceef0;

  --records-text:
    #111214;

  --records-text-strong:
    #08090a;

  --records-text-soft:
    #4b5159;

  --records-muted:
    #7b828b;

  --records-muted-2:
    #a3a8ae;

  --records-border:
    #e1e3e6;

  --records-border-soft:
    #eceef0;

  --records-border-strong:
    #c9cdd2;

  --records-primary:
    #101113;

  --records-primary-hover:
    #222428;

  --records-primary-text:
    #ffffff;

  --records-success:
    #177c3d;

  --records-success-bg:
    #eff8f2;

  --records-success-border:
    #cbe6d3;

  --records-warning:
    #9b6200;

  --records-warning-bg:
    #fff8e9;

  --records-warning-border:
    #eadbb4;

  --records-danger:
    #b62f2f;

  --records-danger-bg:
    #fff2f2;

  --records-danger-border:
    #edcccc;

  --records-info:
    #365f8e;

  --records-info-bg:
    #f0f5fb;

  --records-info-border:
    #cedceb;

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

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

  --records-shadow-md:
    0
    18px
    44px
    rgba(
      15,
      23,
      42,
      0.09
    );

  --records-radius-xs:
    7px;

  --records-radius-sm:
    9px;

  --records-radius-md:
    12px;

  --records-radius-lg:
    15px;

  --records-radius-xl:
    18px;

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


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

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

  --records-surface:
    #0d0e0e;

  --records-surface-soft:
    #121313;

  --records-surface-muted:
    #181919;

  --records-surface-hover:
    #171818;

  --records-surface-active:
    #202121;

  --records-text:
    #f2f3f4;

  --records-text-strong:
    #ffffff;

  --records-text-soft:
    #b9bdc2;

  --records-muted:
    #858b92;

  --records-muted-2:
    #5f646a;

  --records-border:
    #272828;

  --records-border-soft:
    #1e1f1f;

  --records-border-strong:
    #3b3d3d;

  --records-primary:
    #f0f1f2;

  --records-primary-hover:
    #ffffff;

  --records-primary-text:
    #101111;

  --records-success:
    #69ce89;

  --records-success-bg:
    #102218;

  --records-success-border:
    #275034;

  --records-warning:
    #eeb453;

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

  --records-warning-border:
    #56421e;

  --records-danger:
    #ff8585;

  --records-danger-bg:
    #281313;

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

  --records-info:
    #8bbdef;

  --records-info-bg:
    #102032;

  --records-info-border:
    #294761;

  --records-shadow-xs:
    0
    1px
    2px
    rgba(
      0,
      0,
      0,
      0.25
    );

  --records-shadow-sm:
    0
    8px
    20px
    rgba(
      0,
      0,
      0,
      0.22
    );

  --records-shadow-md:
    0
    24px
    60px
    rgba(
      0,
      0,
      0,
      0.38
    );
}


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

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

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

  padding: 0 !important;

  overflow-x: hidden !important;
}


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

  overflow-x: hidden;
}


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

.records-page {
  position: relative;

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

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

  display: flex;
  flex-direction: column;

  gap: 14px;

  padding: 12px;

  color:
    var(--records-text);

  background:
    var(--records-page-bg);

  overflow-x: hidden;

  animation:
    recordsPageEnter
    280ms
    ease
    both;
}


/* =========================================================
   06. ICONS
   ========================================================= */

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

  stroke-width: 1.9;
}


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

.records-head {
  position: relative;

  width: 100%;
  min-width: 0;

  min-height: 122px;

  display: grid;

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

  align-items: center;

  gap: 22px;

  padding:
    18px
    20px;

  color:
    var(--records-text);

  background:
    var(--records-surface);

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

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

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

  overflow: hidden;

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


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


/* =========================================================
   08. HEADER ACCENT
   ========================================================= */

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

  position: absolute;

  top: 0;

  left: 20px;
  right: 20px;

  height: 1px;

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

  opacity: 0.8;

  pointer-events: none;
}


.records-head::after {
  content: "";

  position: absolute;

  width: 220px;
  height: 220px;

  right: -110px;
  bottom: -150px;

  border:
    1px
    solid
    var(--records-border-soft);

  border-radius: 50%;

  pointer-events: none;
}


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

.records-brand {
  position: relative;

  z-index: 1;

  min-width: 0;

  display: grid;

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

  align-items: center;

  gap: 14px;
}


.records-brand__icon {
  position: relative;

  width: 56px;
  height: 56px;

  min-width: 56px;

  display: grid;
  place-items: center;

  color:
    var(--records-text);

  background:
    var(--records-surface-soft);

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

  border-radius: 14px;

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


.records-head:hover
.records-brand__icon {
  background:
    var(--records-surface-muted);

  transform:
    translateY(-1px);
}


.records-brand__icon .icon,
.records-brand__icon svg {
  width: 24px;
  height: 24px;
}


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


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

  margin-bottom: 5px;

  color:
    var(--records-muted);

  font-size: 10px;

  font-weight: 850;

  line-height: 1;

  letter-spacing: 0.11em;

  text-transform: uppercase;
}


.records-brand h2 {
  margin: 0;

  color:
    var(--records-text-strong);

  font-size:
    clamp(
      25px,
      2.2vw,
      33px
    );

  font-weight: 850;

  line-height: 1.06;

  letter-spacing: -0.045em;
}


.records-brand p {
  max-width: 720px;

  margin:
    7px
    0
    0;

  color:
    var(--records-text-soft);

  font-size: 12px;

  font-weight: 520;

  line-height: 1.45;
}


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

.records-head__status {
  position: relative;

  z-index: 1;

  display: grid;

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

  gap: 8px;

  padding-left: 18px;

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


.records-head-status {
  min-width: 135px;
  min-height: 58px;

  display: grid;

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

  align-items: center;

  gap: 9px;

  padding:
    8px
    10px;

  color:
    var(--records-text);

  background:
    var(--records-surface-soft);

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

  border-radius: 10px;

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


.records-head-status:hover {
  background:
    var(--records-surface-hover);

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


.records-head-status > .icon,
.records-head-status > svg {
  width: 36px;
  height: 36px;

  padding: 9px;

  color:
    var(--records-muted);

  background:
    var(--records-surface);

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

  border-radius: 9px;
}


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

  display: grid;

  gap: 3px;
}


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

  font-size: 8.5px;

  font-weight: 850;

  line-height: 1;

  letter-spacing: 0.07em;

  text-transform: uppercase;
}


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

  color:
    var(--records-text-strong);

  font-size: 11.5px;

  font-weight: 760;

  line-height: 1.2;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;
}


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

.records-head__actions {
  position: relative;

  z-index: 1;

  display: flex;

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

  gap: 8px;

  padding-left: 18px;

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


/* =========================================================
   12. BUTTONS
   ========================================================= */

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

  display: inline-flex;

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

  gap: 7px;

  padding:
    0
    13px;

  color:
    var(--records-text);

  background:
    var(--records-surface);

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

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

  outline: none;

  font: inherit;

  font-size: 10.5px;

  font-weight: 760;

  line-height: 1;

  white-space: nowrap;

  cursor: pointer;

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


.records-btn:hover:not(:disabled) {
  color:
    var(--records-text-strong);

  background:
    var(--records-surface-hover);

  border-color:
    var(--records-text-soft);

  transform:
    translateY(-1px);
}


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


.records-btn:disabled {
  opacity: 0.42;

  cursor: not-allowed;

  transform: none;
}


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


/* =========================================================
   13. PRIMARY BUTTON
   ========================================================= */

.records-btn--dark {
  color:
    var(--records-primary-text);

  background:
    var(--records-primary);

  border-color:
    var(--records-primary);
}


.records-btn--dark:hover:not(:disabled) {
  color:
    var(--records-primary-text);

  background:
    var(--records-primary-hover);

  border-color:
    var(--records-primary-hover);

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


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

  padding:
    0
    10px;

  font-size: 10px;
}


.records-btn--danger:hover:not(:disabled) {
  color:
    var(--records-danger);

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

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


/* =========================================================
   14. BUTTON INTERNAL ICON
   ========================================================= */

.records-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
      15%,
      transparent
    );

  border-radius: 7px;
}


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


/* =========================================================
   15. MÉTRICAS
   ========================================================= */

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

  display: grid;

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

  gap: 1px;

  background:
    var(--records-border);

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

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

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

  overflow: hidden;
}


/* =========================================================
   16. METRIC CARD
   ========================================================= */

.records-metric {
  position: relative;

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

  display: grid;

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

  align-items: center;

  gap: 10px;

  padding:
    14px
    13px;

  color:
    var(--records-text);

  background:
    var(--records-surface);

  border: 0;

  outline: 0;

  font: inherit;

  text-align: left;

  cursor: pointer;

  overflow: hidden;

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


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

  position: absolute;

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

  width: 2px;

  background:
    var(--records-text);

  border-radius: 999px;

  opacity: 0;

  transform:
    scaleY(0.45);

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


.records-metric:hover {
  background:
    var(--records-surface-hover);
}


.records-metric:hover::before,
.records-metric.is-active::before {
  opacity: 0.45;

  transform:
    scaleY(1);
}


.records-metric.is-active {
  background:
    var(--records-surface-muted);
}


/* =========================================================
   17. METRIC ICON
   ========================================================= */

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

  min-width: 42px;

  display: grid;
  place-items: center;

  color:
    var(--records-text-soft);

  background:
    var(--records-surface-soft);

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

  border-radius: 10px;

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


.records-metric:hover
.records-metric__icon {
  border-color:
    var(--records-border-strong);

  background:
    var(--records-surface);

  transform:
    translateY(-1px);
}


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


/* =========================================================
   18. MÉTRICAS POR ESTADO
   ========================================================= */

.records-metric--completos
.records-metric__icon {
  color:
    var(--records-success);

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

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


.records-metric--incompletos
.records-metric__icon,
.records-metric--por-vencer
.records-metric__icon {
  color:
    var(--records-warning);

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

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


.records-metric--vencidos
.records-metric__icon {
  color:
    var(--records-danger);

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

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


/* =========================================================
   19. METRIC COPY
   ========================================================= */

.records-metric__copy {
  min-width: 0;

  display: grid;

  gap: 4px;
}


.records-metric__copy small {
  min-width: 0;

  color:
    var(--records-muted);

  font-size: 8.5px;

  font-weight: 850;

  line-height: 1;

  letter-spacing: 0.07em;

  text-transform: uppercase;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;
}


.records-metric__copy strong {
  min-width: 0;

  color:
    var(--records-text-strong);

  font-size: 21px;

  font-weight: 850;

  line-height: 1;

  letter-spacing: -0.04em;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;
}


.records-metric__copy em {
  min-width: 0;

  color:
    var(--records-muted);

  font-size: 9.5px;

  font-style: normal;

  font-weight: 540;

  line-height: 1.3;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;
}


.records-metric__arrow {
  width: 22px;
  height: 22px;

  display: grid;
  place-items: center;

  color:
    var(--records-muted);

  opacity: 0.5;

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


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

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


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


/* =========================================================
   20. PANEL
   ========================================================= */

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

  display: flex;
  flex-direction: column;

  color:
    var(--records-text);

  background:
    var(--records-surface);

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

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

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

  overflow: hidden;
}


/* =========================================================
   21. FILTERS
   ========================================================= */

.records-filters {
  position: relative;

  width: 100%;
  min-width: 0;

  background:
    var(--records-surface);

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


/* =========================================================
   22. FILTER HEADER
   ========================================================= */

.records-filters__head {
  min-height: 76px;

  display: flex;

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

  gap: 18px;

  padding:
    14px
    16px;

  background:
    var(--records-surface-soft);

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


.records-filters__title {
  min-width: 0;

  display: grid;

  gap: 3px;
}


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

  font-size: 8.5px;

  font-weight: 850;

  line-height: 1;

  letter-spacing: 0.1em;

  text-transform: uppercase;
}


.records-filters__title > strong {
  color:
    var(--records-text-strong);

  font-size: 15px;

  font-weight: 820;

  line-height: 1.2;
}


.records-filters__title p {
  margin: 0;

  color:
    var(--records-muted);

  font-size: 10px;

  font-weight: 520;

  line-height: 1.35;
}


/* =========================================================
   23. FILTER SUMMARY
   ========================================================= */

.records-filters__summary {
  display: flex;

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

  gap: 8px;
}


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

  display: inline-flex;

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

  gap: 6px;

  padding:
    0
    9px;

  color:
    var(--records-muted);

  background:
    var(--records-surface);

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

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

  font-size: 9px;

  font-weight: 650;
}


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


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

  display: grid;
  place-items: center;

  padding:
    0
    5px;

  color:
    var(--records-primary-text);

  background:
    var(--records-primary);

  border-radius: 999px;

  font-size: 8px;

  font-weight: 850;
}


/* =========================================================
   24. SEARCH ROW
   ========================================================= */

.records-search-row {
  width: 100%;
  min-width: 0;

  display: grid;

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

  align-items: center;

  gap: 8px;

  padding:
    12px
    14px;

  background:
    var(--records-surface);

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


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

.records-search {
  position: relative;

  width: 100%;
  min-width: 0;

  display: flex;
  align-items: center;
}


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

  left: 13px;

  width: 16px;
  height: 16px;

  color:
    var(--records-muted);

  pointer-events: none;
}


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

  height: 43px;

  padding:
    0
    42px
    0
    40px;

  color:
    var(--records-text);

  background:
    var(--records-surface-soft);

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

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

  outline: none;

  font: inherit;

  font-size: 11px;

  font-weight: 600;

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


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


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

  border-color:
    var(--records-text-soft);

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


.records-search input::placeholder {
  color:
    var(--records-muted-2);
}


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

.records-search button {
  position: absolute;

  right: 7px;

  width: 29px;
  height: 29px;

  display: grid;
  place-items: center;

  padding: 0;

  color:
    var(--records-muted);

  background:
    transparent;

  border: 0;

  border-radius: 7px;

  cursor: pointer;

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


.records-search button:hover {
  color:
    var(--records-text);

  background:
    var(--records-surface-muted);
}


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


/* =========================================================
   27. FILTER BODY
   ========================================================= */

.records-filters__body {
  display: grid;

  grid-template-rows:
    0fr;

  min-width: 0;

  opacity: 0;

  visibility: hidden;

  overflow: hidden;

  background:
    var(--records-surface-soft);

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


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


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

  opacity: 1;

  visibility: visible;
}


/* =========================================================
   28. FILTER GRID
   ========================================================= */

.records-filters-grid {
  min-width: 0;

  display: grid;

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

  gap: 0;

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


/* =========================================================
   29. FILTER FIELD
   ========================================================= */

.records-filter-field {
  min-width: 0;

  min-height: 78px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  gap: 6px;

  padding:
    10px
    12px;

  background:
    var(--records-surface);

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

  transition:
    background-color
      150ms
      ease;
}


.records-filter-field:last-child {
  border-right: 0;
}


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


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

  font-size: 8.5px;

  font-weight: 850;

  line-height: 1;

  letter-spacing: 0.07em;

  text-transform: uppercase;
}


.records-filter-field select,
.records-filter-field input {
  width: 100%;
  min-width: 0;

  height: 38px;

  padding:
    0
    9px;

  color:
    var(--records-text);

  background:
    var(--records-surface-soft);

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

  border-radius: 8px;

  outline: none;

  font: inherit;

  font-size: 10.5px;

  font-weight: 620;

  cursor: pointer;

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


.records-filter-field select:hover,
.records-filter-field input:hover {
  border-color:
    var(--records-border-strong);
}


.records-filter-field select:focus,
.records-filter-field input:focus {
  background:
    var(--records-surface);

  border-color:
    var(--records-text-soft);
}


/* =========================================================
   30. FILTER FOOTER
   ========================================================= */

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

  display: flex;

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

  gap: 12px;

  padding:
    10px
    13px;

  background:
    var(--records-surface-soft);
}


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

  align-items: center;

  gap: 6px;

  color:
    var(--records-muted);

  font-size: 9.5px;

  font-weight: 560;
}


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


/* =========================================================
   31. FOCUS
   ========================================================= */

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

  outline-offset: 2px;
}


/* =========================================================
   32. RESPONSIVE · 1450
   ========================================================= */

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


  .records-head__status {
    display: none;
  }


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


/* =========================================================
   33. RESPONSIVE · 1100
   ========================================================= */

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


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


  .records-filter-field {
    border-bottom:
      1px
      solid
      var(--records-border);
  }


  .records-filter-field:nth-child(2n) {
    border-right: 0;
  }


  .records-filter-field:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}


/* =========================================================
   34. RESPONSIVE · 820
   ========================================================= */

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

    padding: 8px;
  }


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

    gap: 14px;

    min-height: 0;

    padding: 15px;
  }


  .records-head__actions {
    width: 100%;

    padding:
      12px
      0
      0;

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

    border-left: 0;
  }


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


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


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


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


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

    flex-direction: column;
  }


  .records-filters__summary {
    width: 100%;

    justify-content: space-between;
  }
}


/* =========================================================
   35. RESPONSIVE · 620
   ========================================================= */

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

    padding: 6px;
  }


  .records-head {
    padding: 12px;

    border-radius: 12px;
  }


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

    gap: 10px;
  }


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

    min-width: 46px;

    border-radius: 11px;
  }


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


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


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


  .records-head__actions {
    display: grid;

    grid-template-columns:
      1fr;
  }


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


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


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

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

    padding: 11px;
  }


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

    min-width: 38px;
  }


  .records-metric__copy strong {
    font-size: 18px;
  }


  .records-filters__summary {
    display: grid;

    grid-template-columns:
      1fr;
  }


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


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


  .records-filter-field,
  .records-filter-field:nth-child(2n) {
    border-right: 0;

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


  .records-filter-field:last-child {
    border-bottom: 0;
  }


  .records-filters__footer {
    align-items: stretch;

    flex-direction: column;
  }


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


/* =========================================================
   36. ANIMACIÓN
   ========================================================= */

@keyframes recordsPageEnter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}


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

   WIRTZ HUB · CAPITAL HUMANO · LEGAJOS

   REDISEÑO PREMIUM
   PARTE 1 DE 3

   CONTIENE:
   - Variables
   - Página
   - Header
   - Acciones
   - Métricas
   - Panel principal
   - Filtros
   - Search
   ========================================================= */


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

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

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


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


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

.records-page,
.records-modal,
.records-toast {
  --records-page-bg:
    #f4f5f6;

  --records-surface:
    #ffffff;

  --records-surface-soft:
    #f8f9fa;

  --records-surface-muted:
    #f0f1f2;

  --records-surface-hover:
    #f5f6f7;

  --records-surface-active:
    #eceef0;

  --records-text:
    #111214;

  --records-text-strong:
    #08090a;

  --records-text-soft:
    #4b5159;

  --records-muted:
    #7b828b;

  --records-muted-2:
    #a3a8ae;

  --records-border:
    #e1e3e6;

  --records-border-soft:
    #eceef0;

  --records-border-strong:
    #c9cdd2;

  --records-primary:
    #101113;

  --records-primary-hover:
    #222428;

  --records-primary-text:
    #ffffff;

  --records-success:
    #177c3d;

  --records-success-bg:
    #eff8f2;

  --records-success-border:
    #cbe6d3;

  --records-warning:
    #9b6200;

  --records-warning-bg:
    #fff8e9;

  --records-warning-border:
    #eadbb4;

  --records-danger:
    #b62f2f;

  --records-danger-bg:
    #fff2f2;

  --records-danger-border:
    #edcccc;

  --records-info:
    #365f8e;

  --records-info-bg:
    #f0f5fb;

  --records-info-border:
    #cedceb;

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

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

  --records-shadow-md:
    0
    18px
    44px
    rgba(
      15,
      23,
      42,
      0.09
    );

  --records-radius-xs:
    7px;

  --records-radius-sm:
    9px;

  --records-radius-md:
    12px;

  --records-radius-lg:
    15px;

  --records-radius-xl:
    18px;

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


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

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

  --records-surface:
    #0d0e0e;

  --records-surface-soft:
    #121313;

  --records-surface-muted:
    #181919;

  --records-surface-hover:
    #171818;

  --records-surface-active:
    #202121;

  --records-text:
    #f2f3f4;

  --records-text-strong:
    #ffffff;

  --records-text-soft:
    #b9bdc2;

  --records-muted:
    #858b92;

  --records-muted-2:
    #5f646a;

  --records-border:
    #272828;

  --records-border-soft:
    #1e1f1f;

  --records-border-strong:
    #3b3d3d;

  --records-primary:
    #f0f1f2;

  --records-primary-hover:
    #ffffff;

  --records-primary-text:
    #101111;

  --records-success:
    #69ce89;

  --records-success-bg:
    #102218;

  --records-success-border:
    #275034;

  --records-warning:
    #eeb453;

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

  --records-warning-border:
    #56421e;

  --records-danger:
    #ff8585;

  --records-danger-bg:
    #281313;

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

  --records-info:
    #8bbdef;

  --records-info-bg:
    #102032;

  --records-info-border:
    #294761;

  --records-shadow-xs:
    0
    1px
    2px
    rgba(
      0,
      0,
      0,
      0.25
    );

  --records-shadow-sm:
    0
    8px
    20px
    rgba(
      0,
      0,
      0,
      0.22
    );

  --records-shadow-md:
    0
    24px
    60px
    rgba(
      0,
      0,
      0,
      0.38
    );
}


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

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

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

  padding: 0 !important;

  overflow-x: hidden !important;
}


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

  overflow-x: hidden;
}


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

.records-page {
  position: relative;

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

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

  display: flex;
  flex-direction: column;

  gap: 14px;

  padding: 12px;

  color:
    var(--records-text);

  background:
    var(--records-page-bg);

  overflow-x: hidden;

  animation:
    recordsPageEnter
    280ms
    ease
    both;
}


/* =========================================================
   06. ICONS
   ========================================================= */

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

  stroke-width: 1.9;
}


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

.records-head {
  position: relative;

  width: 100%;
  min-width: 0;

  min-height: 122px;

  display: grid;

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

  align-items: center;

  gap: 22px;

  padding:
    18px
    20px;

  color:
    var(--records-text);

  background:
    var(--records-surface);

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

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

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

  overflow: hidden;

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


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


/* =========================================================
   08. HEADER ACCENT
   ========================================================= */

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

  position: absolute;

  top: 0;

  left: 20px;
  right: 20px;

  height: 1px;

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

  opacity: 0.8;

  pointer-events: none;
}


.records-head::after {
  content: "";

  position: absolute;

  width: 220px;
  height: 220px;

  right: -110px;
  bottom: -150px;

  border:
    1px
    solid
    var(--records-border-soft);

  border-radius: 50%;

  pointer-events: none;
}


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

.records-brand {
  position: relative;

  z-index: 1;

  min-width: 0;

  display: grid;

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

  align-items: center;

  gap: 14px;
}


.records-brand__icon {
  position: relative;

  width: 56px;
  height: 56px;

  min-width: 56px;

  display: grid;
  place-items: center;

  color:
    var(--records-text);

  background:
    var(--records-surface-soft);

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

  border-radius: 14px;

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


.records-head:hover
.records-brand__icon {
  background:
    var(--records-surface-muted);

  transform:
    translateY(-1px);
}


.records-brand__icon .icon,
.records-brand__icon svg {
  width: 24px;
  height: 24px;
}


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


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

  margin-bottom: 5px;

  color:
    var(--records-muted);

  font-size: 10px;

  font-weight: 850;

  line-height: 1;

  letter-spacing: 0.11em;

  text-transform: uppercase;
}


.records-brand h2 {
  margin: 0;

  color:
    var(--records-text-strong);

  font-size:
    clamp(
      25px,
      2.2vw,
      33px
    );

  font-weight: 850;

  line-height: 1.06;

  letter-spacing: -0.045em;
}


.records-brand p {
  max-width: 720px;

  margin:
    7px
    0
    0;

  color:
    var(--records-text-soft);

  font-size: 12px;

  font-weight: 520;

  line-height: 1.45;
}


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

.records-head__status {
  position: relative;

  z-index: 1;

  display: grid;

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

  gap: 8px;

  padding-left: 18px;

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


.records-head-status {
  min-width: 135px;
  min-height: 58px;

  display: grid;

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

  align-items: center;

  gap: 9px;

  padding:
    8px
    10px;

  color:
    var(--records-text);

  background:
    var(--records-surface-soft);

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

  border-radius: 10px;

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


.records-head-status:hover {
  background:
    var(--records-surface-hover);

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


.records-head-status > .icon,
.records-head-status > svg {
  width: 36px;
  height: 36px;

  padding: 9px;

  color:
    var(--records-muted);

  background:
    var(--records-surface);

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

  border-radius: 9px;
}


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

  display: grid;

  gap: 3px;
}


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

  font-size: 8.5px;

  font-weight: 850;

  line-height: 1;

  letter-spacing: 0.07em;

  text-transform: uppercase;
}


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

  color:
    var(--records-text-strong);

  font-size: 11.5px;

  font-weight: 760;

  line-height: 1.2;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;
}


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

.records-head__actions {
  position: relative;

  z-index: 1;

  display: flex;

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

  gap: 8px;

  padding-left: 18px;

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


/* =========================================================
   12. BUTTONS
   ========================================================= */

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

  display: inline-flex;

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

  gap: 7px;

  padding:
    0
    13px;

  color:
    var(--records-text);

  background:
    var(--records-surface);

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

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

  outline: none;

  font: inherit;

  font-size: 10.5px;

  font-weight: 760;

  line-height: 1;

  white-space: nowrap;

  cursor: pointer;

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


.records-btn:hover:not(:disabled) {
  color:
    var(--records-text-strong);

  background:
    var(--records-surface-hover);

  border-color:
    var(--records-text-soft);

  transform:
    translateY(-1px);
}


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


.records-btn:disabled {
  opacity: 0.42;

  cursor: not-allowed;

  transform: none;
}


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


/* =========================================================
   13. PRIMARY BUTTON
   ========================================================= */

.records-btn--dark {
  color:
    var(--records-primary-text);

  background:
    var(--records-primary);

  border-color:
    var(--records-primary);
}


.records-btn--dark:hover:not(:disabled) {
  color:
    var(--records-primary-text);

  background:
    var(--records-primary-hover);

  border-color:
    var(--records-primary-hover);

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


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

  padding:
    0
    10px;

  font-size: 10px;
}


.records-btn--danger:hover:not(:disabled) {
  color:
    var(--records-danger);

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

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


/* =========================================================
   14. BUTTON INTERNAL ICON
   ========================================================= */

.records-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
      15%,
      transparent
    );

  border-radius: 7px;
}


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


/* =========================================================
   15. MÉTRICAS
   ========================================================= */

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

  display: grid;

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

  gap: 1px;

  background:
    var(--records-border);

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

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

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

  overflow: hidden;
}


/* =========================================================
   16. METRIC CARD
   ========================================================= */

.records-metric {
  position: relative;

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

  display: grid;

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

  align-items: center;

  gap: 10px;

  padding:
    14px
    13px;

  color:
    var(--records-text);

  background:
    var(--records-surface);

  border: 0;

  outline: 0;

  font: inherit;

  text-align: left;

  cursor: pointer;

  overflow: hidden;

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


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

  position: absolute;

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

  width: 2px;

  background:
    var(--records-text);

  border-radius: 999px;

  opacity: 0;

  transform:
    scaleY(0.45);

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


.records-metric:hover {
  background:
    var(--records-surface-hover);
}


.records-metric:hover::before,
.records-metric.is-active::before {
  opacity: 0.45;

  transform:
    scaleY(1);
}


.records-metric.is-active {
  background:
    var(--records-surface-muted);
}


/* =========================================================
   17. METRIC ICON
   ========================================================= */

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

  min-width: 42px;

  display: grid;
  place-items: center;

  color:
    var(--records-text-soft);

  background:
    var(--records-surface-soft);

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

  border-radius: 10px;

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


.records-metric:hover
.records-metric__icon {
  border-color:
    var(--records-border-strong);

  background:
    var(--records-surface);

  transform:
    translateY(-1px);
}


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


/* =========================================================
   18. MÉTRICAS POR ESTADO
   ========================================================= */

.records-metric--completos
.records-metric__icon {
  color:
    var(--records-success);

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

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


.records-metric--incompletos
.records-metric__icon,
.records-metric--por-vencer
.records-metric__icon {
  color:
    var(--records-warning);

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

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


.records-metric--vencidos
.records-metric__icon {
  color:
    var(--records-danger);

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

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


/* =========================================================
   19. METRIC COPY
   ========================================================= */

.records-metric__copy {
  min-width: 0;

  display: grid;

  gap: 4px;
}


.records-metric__copy small {
  min-width: 0;

  color:
    var(--records-muted);

  font-size: 8.5px;

  font-weight: 850;

  line-height: 1;

  letter-spacing: 0.07em;

  text-transform: uppercase;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;
}


.records-metric__copy strong {
  min-width: 0;

  color:
    var(--records-text-strong);

  font-size: 21px;

  font-weight: 850;

  line-height: 1;

  letter-spacing: -0.04em;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;
}


.records-metric__copy em {
  min-width: 0;

  color:
    var(--records-muted);

  font-size: 9.5px;

  font-style: normal;

  font-weight: 540;

  line-height: 1.3;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;
}


.records-metric__arrow {
  width: 22px;
  height: 22px;

  display: grid;
  place-items: center;

  color:
    var(--records-muted);

  opacity: 0.5;

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


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

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


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


/* =========================================================
   20. PANEL
   ========================================================= */

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

  display: flex;
  flex-direction: column;

  color:
    var(--records-text);

  background:
    var(--records-surface);

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

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

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

  overflow: hidden;
}


/* =========================================================
   21. FILTERS
   ========================================================= */

.records-filters {
  position: relative;

  width: 100%;
  min-width: 0;

  background:
    var(--records-surface);

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


/* =========================================================
   22. FILTER HEADER
   ========================================================= */

.records-filters__head {
  min-height: 76px;

  display: flex;

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

  gap: 18px;

  padding:
    14px
    16px;

  background:
    var(--records-surface-soft);

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


.records-filters__title {
  min-width: 0;

  display: grid;

  gap: 3px;
}


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

  font-size: 8.5px;

  font-weight: 850;

  line-height: 1;

  letter-spacing: 0.1em;

  text-transform: uppercase;
}


.records-filters__title > strong {
  color:
    var(--records-text-strong);

  font-size: 15px;

  font-weight: 820;

  line-height: 1.2;
}


.records-filters__title p {
  margin: 0;

  color:
    var(--records-muted);

  font-size: 10px;

  font-weight: 520;

  line-height: 1.35;
}


/* =========================================================
   23. FILTER SUMMARY
   ========================================================= */

.records-filters__summary {
  display: flex;

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

  gap: 8px;
}


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

  display: inline-flex;

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

  gap: 6px;

  padding:
    0
    9px;

  color:
    var(--records-muted);

  background:
    var(--records-surface);

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

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

  font-size: 9px;

  font-weight: 650;
}


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


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

  display: grid;
  place-items: center;

  padding:
    0
    5px;

  color:
    var(--records-primary-text);

  background:
    var(--records-primary);

  border-radius: 999px;

  font-size: 8px;

  font-weight: 850;
}


/* =========================================================
   24. SEARCH ROW
   ========================================================= */

.records-search-row {
  width: 100%;
  min-width: 0;

  display: grid;

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

  align-items: center;

  gap: 8px;

  padding:
    12px
    14px;

  background:
    var(--records-surface);

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


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

.records-search {
  position: relative;

  width: 100%;
  min-width: 0;

  display: flex;
  align-items: center;
}


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

  left: 13px;

  width: 16px;
  height: 16px;

  color:
    var(--records-muted);

  pointer-events: none;
}


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

  height: 43px;

  padding:
    0
    42px
    0
    40px;

  color:
    var(--records-text);

  background:
    var(--records-surface-soft);

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

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

  outline: none;

  font: inherit;

  font-size: 11px;

  font-weight: 600;

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


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


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

  border-color:
    var(--records-text-soft);

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


.records-search input::placeholder {
  color:
    var(--records-muted-2);
}


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

.records-search button {
  position: absolute;

  right: 7px;

  width: 29px;
  height: 29px;

  display: grid;
  place-items: center;

  padding: 0;

  color:
    var(--records-muted);

  background:
    transparent;

  border: 0;

  border-radius: 7px;

  cursor: pointer;

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


.records-search button:hover {
  color:
    var(--records-text);

  background:
    var(--records-surface-muted);
}


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


/* =========================================================
   27. FILTER BODY
   ========================================================= */

.records-filters__body {
  display: grid;

  grid-template-rows:
    0fr;

  min-width: 0;

  opacity: 0;

  visibility: hidden;

  overflow: hidden;

  background:
    var(--records-surface-soft);

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


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


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

  opacity: 1;

  visibility: visible;
}


/* =========================================================
   28. FILTER GRID
   ========================================================= */

.records-filters-grid {
  min-width: 0;

  display: grid;

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

  gap: 0;

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


/* =========================================================
   29. FILTER FIELD
   ========================================================= */

.records-filter-field {
  min-width: 0;

  min-height: 78px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  gap: 6px;

  padding:
    10px
    12px;

  background:
    var(--records-surface);

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

  transition:
    background-color
      150ms
      ease;
}


.records-filter-field:last-child {
  border-right: 0;
}


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


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

  font-size: 8.5px;

  font-weight: 850;

  line-height: 1;

  letter-spacing: 0.07em;

  text-transform: uppercase;
}


.records-filter-field select,
.records-filter-field input {
  width: 100%;
  min-width: 0;

  height: 38px;

  padding:
    0
    9px;

  color:
    var(--records-text);

  background:
    var(--records-surface-soft);

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

  border-radius: 8px;

  outline: none;

  font: inherit;

  font-size: 10.5px;

  font-weight: 620;

  cursor: pointer;

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


.records-filter-field select:hover,
.records-filter-field input:hover {
  border-color:
    var(--records-border-strong);
}


.records-filter-field select:focus,
.records-filter-field input:focus {
  background:
    var(--records-surface);

  border-color:
    var(--records-text-soft);
}


/* =========================================================
   30. FILTER FOOTER
   ========================================================= */

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

  display: flex;

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

  gap: 12px;

  padding:
    10px
    13px;

  background:
    var(--records-surface-soft);
}


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

  align-items: center;

  gap: 6px;

  color:
    var(--records-muted);

  font-size: 9.5px;

  font-weight: 560;
}


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


/* =========================================================
   31. FOCUS
   ========================================================= */

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

  outline-offset: 2px;
}


/* =========================================================
   32. RESPONSIVE · 1450
   ========================================================= */

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


  .records-head__status {
    display: none;
  }


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


/* =========================================================
   33. RESPONSIVE · 1100
   ========================================================= */

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


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


  .records-filter-field {
    border-bottom:
      1px
      solid
      var(--records-border);
  }


  .records-filter-field:nth-child(2n) {
    border-right: 0;
  }


  .records-filter-field:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}


/* =========================================================
   34. RESPONSIVE · 820
   ========================================================= */

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

    padding: 8px;
  }


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

    gap: 14px;

    min-height: 0;

    padding: 15px;
  }


  .records-head__actions {
    width: 100%;

    padding:
      12px
      0
      0;

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

    border-left: 0;
  }


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


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


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


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


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

    flex-direction: column;
  }


  .records-filters__summary {
    width: 100%;

    justify-content: space-between;
  }
}


/* =========================================================
   35. RESPONSIVE · 620
   ========================================================= */

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

    padding: 6px;
  }


  .records-head {
    padding: 12px;

    border-radius: 12px;
  }


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

    gap: 10px;
  }


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

    min-width: 46px;

    border-radius: 11px;
  }


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


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


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


  .records-head__actions {
    display: grid;

    grid-template-columns:
      1fr;
  }


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


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


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

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

    padding: 11px;
  }


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

    min-width: 38px;
  }


  .records-metric__copy strong {
    font-size: 18px;
  }


  .records-filters__summary {
    display: grid;

    grid-template-columns:
      1fr;
  }


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


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


  .records-filter-field,
  .records-filter-field:nth-child(2n) {
    border-right: 0;

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


  .records-filter-field:last-child {
    border-bottom: 0;
  }


  .records-filters__footer {
    align-items: stretch;

    flex-direction: column;
  }


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


/* =========================================================
   36. ANIMACIÓN
   ========================================================= */

@keyframes recordsPageEnter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}


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

   WIRTZ HUB · CAPITAL HUMANO · LEGAJOS

   REDISEÑO PREMIUM
   PARTE 3 DE 3

   CONTIENE:
   - Modales
   - Formularios
   - Detalle
   - Resumen documentos
   - Cards documentos
   - Historial
   - Toast
   - Responsive completo
   - Reduced motion
   ========================================================= */


/* =========================================================
   66. BODY MODAL OPEN
   ========================================================= */

body.records-modal-open {
  overflow: hidden;
}


/* =========================================================
   67. MODAL BACKDROP
   ========================================================= */

.records-modal-backdrop {
  position: fixed;

  inset: 0;

  z-index: 9999;

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

  display: flex;

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

  padding: 20px;

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

  backdrop-filter:
    blur(5px);

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

  overflow: hidden;

  animation:
    recordsBackdropEnter
    180ms
    ease
    both;
}


/* =========================================================
   68. MODAL
   ========================================================= */

.records-modal {
  position: relative;

  width:
    min(
      1080px,
      calc(
        100vw
        -
        40px
      )
    );

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

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

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

  display: flex;
  flex-direction: column;

  color:
    var(--records-text);

  background:
    var(--records-surface);

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

  border-radius:
    16px;

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

  overflow: hidden;

  animation:
    recordsModalEnter
    220ms
    var(--records-ease)
    both;
}


.records-modal--small {
  width:
    min(
      760px,
      calc(
        100vw
        -
        40px
      )
    );
}


.records-modal--detail {
  width:
    min(
      1180px,
      calc(
        100vw
        -
        40px
      )
    );
}


.records-modal--history {
  width:
    min(
      880px,
      calc(
        100vw
        -
        40px
      )
    );
}


/* =========================================================
   69. MODAL HEADER
   ========================================================= */

.records-modal__head {
  position: relative;

  z-index: 4;

  min-height: 82px;

  display: flex;

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

  gap: 16px;

  padding:
    14px
    16px;

  background:
    var(--records-surface);

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

  overflow: hidden;
}


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

  position: absolute;

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

  height: 1px;

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

  opacity: 0.65;

  pointer-events: none;
}


/* =========================================================
   70. MODAL BRAND
   ========================================================= */

.records-modal__brand {
  min-width: 0;

  display: grid;

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

  align-items: center;

  gap: 11px;
}


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

  min-width: 44px;

  display: grid;
  place-items: center;

  color:
    var(--records-text);

  background:
    var(--records-surface-soft);

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

  border-radius: 11px;
}


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


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


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

  margin-bottom: 3px;

  color:
    var(--records-muted);

  font-size: 8.5px;

  font-weight: 850;

  line-height: 1;

  letter-spacing: 0.1em;

  text-transform: uppercase;
}


.records-modal__brand h3 {
  margin: 0;

  color:
    var(--records-text-strong);

  font-size: 17px;

  font-weight: 840;

  line-height: 1.2;

  letter-spacing: -0.025em;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;
}


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

  color:
    var(--records-muted);

  font-size: 10px;

  font-weight: 520;

  line-height: 1.4;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;
}


/* =========================================================
   71. MODAL CLOSE
   ========================================================= */

.records-modal__close {
  width: 34px;
  height: 34px;

  min-width: 34px;

  display: grid;
  place-items: center;

  padding: 0;

  color:
    var(--records-muted);

  background:
    var(--records-surface-soft);

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

  border-radius: 9px;

  outline: none;

  cursor: pointer;

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


.records-modal__close:hover {
  color:
    var(--records-text);

  background:
    var(--records-surface-hover);

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

  transform:
    rotate(3deg);
}


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


/* =========================================================
   72. FORM
   ========================================================= */

.records-form {
  min-height: 0;

  display: flex;
  flex-direction: column;

  background:
    var(--records-surface-soft);

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

  overscroll-behavior: contain;

  scrollbar-width: thin;

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


.records-form::-webkit-scrollbar {
  width: 6px;
}


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

  border-radius: 999px;
}


/* =========================================================
   73. FORM SECTION
   ========================================================= */

.records-form-section {
  padding:
    16px;

  background:
    var(--records-surface);

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


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


/* =========================================================
   74. FORM SECTION TITLE
   ========================================================= */

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

  display: grid;

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

  align-items: center;

  gap: 10px;

  margin-bottom: 13px;

  padding-bottom: 11px;

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


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

  min-width: 36px;

  display: grid;
  place-items: center;

  color:
    var(--records-text-soft);

  background:
    var(--records-surface-soft);

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

  border-radius: 9px;
}


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


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


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

  margin-bottom: 3px;

  color:
    var(--records-muted);

  font-size: 8px;

  font-weight: 850;

  line-height: 1;

  letter-spacing: 0.095em;

  text-transform: uppercase;
}


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

  color:
    var(--records-text-strong);

  font-size: 12px;

  font-weight: 800;

  line-height: 1.3;
}


/* =========================================================
   75. FORM GRID
   ========================================================= */

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

  display: grid;

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

  gap: 9px;
}


/* =========================================================
   76. FIELD
   ========================================================= */

.records-field {
  min-width: 0;

  min-height: 70px;

  display: flex;
  flex-direction: column;

  gap: 6px;

  padding:
    9px
    10px;

  background:
    var(--records-surface-soft);

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

  border-radius: 9px;

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


.records-field:hover,
.records-field:focus-within {
  background:
    var(--records-surface);

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


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

  font-size: 8.5px;

  font-weight: 830;

  line-height: 1;

  letter-spacing: 0.06em;

  text-transform: uppercase;
}


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

  color:
    var(--records-text);

  background:
    transparent;

  border: 0;

  outline: none;

  font: inherit;

  font-size: 10.5px;

  font-weight: 600;
}


.records-field input,
.records-field select {
  min-height: 32px;
}


.records-field textarea {
  min-height: 88px;

  padding:
    4px
    0;

  line-height: 1.45;

  resize: vertical;
}


.records-field--full {
  grid-column:
    1
    /
    -1;
}


/* =========================================================
   77. SWITCH FIELD
   ========================================================= */

.records-field--switch {
  justify-content: center;
}


.records-switch {
  min-height: 34px;

  display: flex;

  align-items: center;

  gap: 8px;
}


.records-switch > input {
  position: absolute;

  opacity: 0;

  pointer-events: none;
}


.records-switch > span {
  position: relative;

  width: 38px;
  height: 22px;

  min-width: 38px;

  display: block;

  background:
    var(--records-surface-muted);

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

  border-radius: 999px;

  cursor: pointer;

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


.records-switch > span::after {
  content: "";

  position: absolute;

  top: 3px;
  left: 3px;

  width: 14px;
  height: 14px;

  background:
    var(--records-muted);

  border-radius: 50%;

  transition:
    left
      170ms
      var(--records-ease),
    background-color
      150ms
      ease;
}


.records-switch
> input:checked
+ span {
  background:
    var(--records-text);

  border-color:
    var(--records-text);
}


.records-switch
> input:checked
+ span::after {
  left: 19px;

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


.records-switch em {
  color:
    var(--records-text-soft);

  font-size: 9.5px;

  font-style: normal;

  font-weight: 620;
}


/* =========================================================
   78. MODAL FOOTER
   ========================================================= */

.records-modal__footer {
  position: sticky;

  z-index: 4;

  bottom: 0;

  min-height: 64px;

  display: flex;

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

  gap: 12px;

  padding:
    11px
    14px;

  background:
    var(--records-surface);

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


.records-modal__footer > div {
  display: flex;

  align-items: center;

  gap: 7px;
}


.records-modal__footer
> div:last-child {
  margin-left: auto;
}


/* =========================================================
   79. DETAIL
   ========================================================= */

.records-detail {
  min-height: 0;

  display: flex;
  flex-direction: column;

  background:
    var(--records-surface-soft);

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

  scrollbar-width: thin;

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


/* =========================================================
   80. DETAIL SUMMARY
   ========================================================= */

.records-detail-summary {
  display: grid;

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

  gap: 1px;

  background:
    var(--records-border-strong);

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


.records-detail-summary article {
  min-width: 0;

  padding:
    14px;

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


.records-detail-summary small {
  display: block;

  margin-bottom: 5px;

  color:
    var(--records-muted);

  font-size: 8px;

  font-weight: 850;

  line-height: 1;

  letter-spacing: 0.07em;

  text-transform: uppercase;
}


.records-detail-summary strong {
  display: block;

  min-width: 0;

  color:
    var(--records-text-strong);

  font-size: 17px;

  font-weight: 850;

  line-height: 1.15;

  letter-spacing: -0.03em;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;
}


/* =========================================================
   81. PERSONAL INFO
   ========================================================= */

.records-personal-info {
  display: grid;

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

  gap: 1px;

  background:
    var(--records-border);

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


.records-personal-info article {
  min-width: 0;

  padding:
    12px
    13px;

  background:
    var(--records-surface-soft);
}


.records-personal-info article > span {
  display: flex;

  align-items: center;

  gap: 5px;

  color:
    var(--records-muted);

  font-size: 8px;

  font-weight: 820;

  line-height: 1;

  letter-spacing: 0.05em;

  text-transform: uppercase;
}


.records-personal-info article
> span
.icon,
.records-personal-info article
> span
svg {
  width: 12px;
  height: 12px;
}


.records-personal-info article
> strong {
  display: block;

  margin-top: 6px;

  min-width: 0;

  color:
    var(--records-text);

  font-size: 10.5px;

  font-weight: 700;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;
}


/* =========================================================
   82. DOCUMENT SUMMARY
   ========================================================= */

.records-document-summary {
  display: grid;

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

  gap: 1px;

  background:
    var(--records-border);

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


.records-document-summary article {
  min-width: 0;

  min-height: 66px;

  display: grid;

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

  align-items: center;

  gap: 8px;

  padding:
    9px
    10px;

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


.records-document-summary article > span {
  width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  color:
    var(--records-muted);

  background:
    var(--records-surface-soft);

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

  border-radius: 8px;
}


.records-document-summary article
> span
.icon,
.records-document-summary article
> span
svg {
  width: 14px;
  height: 14px;
}


.records-document-summary article
> div {
  min-width: 0;
}


.records-document-summary small {
  display: block;

  color:
    var(--records-muted);

  font-size: 7.5px;

  font-weight: 850;

  line-height: 1;

  letter-spacing: 0.055em;

  text-transform: uppercase;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;
}


.records-document-summary strong {
  display: block;

  margin-top: 4px;

  color:
    var(--records-text-strong);

  font-size: 14px;

  font-weight: 850;

  line-height: 1;
}


/* =========================================================
   83. DETAIL SECTION
   ========================================================= */

.records-detail-section {
  padding:
    16px;

  background:
    var(--records-surface-soft);

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


.records-detail-section > header {
  min-height: 58px;

  display: flex;

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

  gap: 14px;

  margin-bottom: 12px;

  padding-bottom: 11px;

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


.records-detail-section
> header
> div {
  min-width: 0;
}


.records-detail-section
> header
> div
> span {
  display: block;

  margin-bottom: 3px;

  color:
    var(--records-muted);

  font-size: 8px;

  font-weight: 850;

  line-height: 1;

  letter-spacing: 0.1em;

  text-transform: uppercase;
}


.records-detail-section
> header
> div
> strong {
  display: block;

  color:
    var(--records-text-strong);

  font-size: 13px;

  font-weight: 820;
}


.records-detail-section
> header
> div
> p {
  margin:
    4px
    0
    0;

  color:
    var(--records-muted);

  font-size: 9.5px;

  line-height: 1.4;
}


/* =========================================================
   84. DOCUMENTS LIST
   ========================================================= */

.records-documents-list {
  display: grid;

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

  gap: 10px;
}


/* =========================================================
   85. DOCUMENT CARD
   ========================================================= */

.records-document {
  position: relative;

  min-width: 0;

  padding: 12px;

  background:
    var(--records-surface);

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

  border-radius: 11px;

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

  overflow: hidden;

  transition:
    background-color
      150ms
      ease,
    border-color
      150ms
      ease,
    transform
      180ms
      var(--records-ease),
    box-shadow
      150ms
      ease;
}


.records-document:hover {
  background:
    var(--records-surface-hover);

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

  box-shadow:
    var(--records-shadow-sm);

  transform:
    translateY(-2px);
}


.records-document::before {
  content: "";

  position: absolute;

  left: 0;

  top: 14px;
  bottom: 14px;

  width: 2px;

  background:
    var(--records-text-soft);

  border-radius: 999px;

  opacity: 0;

  transform:
    scaleY(0.5);

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


.records-document:hover::before {
  opacity: 0.45;

  transform:
    scaleY(1);
}


/* =========================================================
   86. DOCUMENT HEAD
   ========================================================= */

.records-document__head {
  min-width: 0;

  display: grid;

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

  align-items: start;

  gap: 9px;
}


.records-document__icon {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  color:
    var(--records-text-soft);

  background:
    var(--records-surface-soft);

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

  border-radius: 9px;
}


.records-document__icon .icon,
.records-document__icon svg {
  width: 16px;
  height: 16px;
}


.records-document__copy {
  min-width: 0;
}


.records-document__copy > span {
  display: block;

  margin-bottom: 3px;

  color:
    var(--records-muted);

  font-size: 7.5px;

  font-weight: 850;

  line-height: 1;

  letter-spacing: 0.06em;

  text-transform: uppercase;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;
}


.records-document__copy > strong {
  display: block;

  color:
    var(--records-text-strong);

  font-size: 11px;

  font-weight: 780;

  line-height: 1.3;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;
}


.records-document__copy > small {
  display: block;

  margin-top: 4px;

  color:
    var(--records-muted);

  font-size: 8px;

  font-weight: 570;
}


/* =========================================================
   87. DOCUMENT META
   ========================================================= */

.records-document__meta {
  display: flex;

  align-items: center;

  gap: 7px;

  flex-wrap: wrap;

  margin-top: 10px;

  padding-top: 9px;

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


.records-document__meta > span {
  display: inline-flex;

  align-items: center;

  gap: 4px;

  color:
    var(--records-muted);

  font-size: 8px;

  font-weight: 560;
}


.records-document__meta
> span
.icon,
.records-document__meta
> span
svg {
  width: 11px;
  height: 11px;
}


.records-document__meta
> span
strong {
  color:
    var(--records-text);

  font-weight: 700;
}


.records-document__meta
> span.is-required {
  color:
    var(--records-text-strong);

  font-weight: 780;
}


/* =========================================================
   88. DOCUMENT DESCRIPTION
   ========================================================= */

.records-document__description {
  margin:
    9px
    0
    0;

  color:
    var(--records-text-soft);

  font-size: 9px;

  font-weight: 520;

  line-height: 1.5;
}


/* =========================================================
   89. DOCUMENT FILE
   ========================================================= */

.records-document__file {
  min-width: 0;

  display: flex;

  align-items: center;

  gap: 6px;

  margin-top: 9px;

  padding:
    8px
    9px;

  color:
    var(--records-text);

  background:
    var(--records-surface-soft);

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

  border-radius: 8px;
}


.records-document__file .icon,
.records-document__file svg {
  width: 13px;
  height: 13px;

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


.records-document__file span {
  min-width: 0;

  font-size: 8.5px;

  font-weight: 620;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;
}


.records-document__file--empty {
  color:
    var(--records-muted);
}


/* =========================================================
   90. DOCUMENT NOTES
   ========================================================= */

.records-document__notes {
  display: grid;

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

  gap: 7px;

  margin-top: 9px;

  padding:
    8px
    9px;

  background:
    var(--records-surface-soft);

  border-left:
    2px
    solid
    var(--records-border-strong);
}


.records-document__notes .icon,
.records-document__notes svg {
  width: 13px;
  height: 13px;

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


.records-document__notes p {
  margin: 0;

  color:
    var(--records-text-soft);

  font-size: 9px;

  line-height: 1.45;
}


/* =========================================================
   91. DOCUMENT ACTIONS
   ========================================================= */

.records-document__actions {
  display: flex;

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

  gap: 5px;

  flex-wrap: wrap;

  margin-top: 10px;

  padding-top: 9px;

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


/* =========================================================
   92. DETAIL NOTES
   ========================================================= */

.records-detail-notes {
  padding:
    14px
    16px;

  background:
    var(--records-surface);

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


.records-detail-notes > span {
  display: inline-flex;

  align-items: center;

  gap: 6px;

  color:
    var(--records-text-strong);

  font-size: 10px;

  font-weight: 780;
}


.records-detail-notes > span .icon,
.records-detail-notes > span svg {
  width: 14px;
  height: 14px;
}


.records-detail-notes p {
  margin:
    8px
    0
    0;

  color:
    var(--records-text-soft);

  font-size: 10px;

  line-height: 1.5;

  white-space: pre-wrap;
}


/* =========================================================
   93. DETAIL FOOTER
   ========================================================= */

.records-detail-footer {
  min-height: 62px;

  display: flex;

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

  gap: 7px;

  padding:
    10px
    14px;

  background:
    var(--records-surface);

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


/* =========================================================
   94. HISTORY
   ========================================================= */

.records-history {
  min-height: 0;

  display: flex;
  flex-direction: column;

  background:
    var(--records-surface-soft);

  overflow-y: auto;
}


/* =========================================================
   95. HISTORY LIST
   ========================================================= */

.records-history-list {
  display: flex;
  flex-direction: column;

  gap: 8px;

  padding: 12px;
}


/* =========================================================
   96. HISTORY ITEM
   ========================================================= */

.records-history-item {
  min-width: 0;

  display: grid;

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

  gap: 10px;

  padding: 11px;

  background:
    var(--records-surface);

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

  border-radius: 10px;

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


.records-history-item:hover {
  background:
    var(--records-surface-hover);

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


.records-history-item__icon {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  color:
    var(--records-text-soft);

  background:
    var(--records-surface-soft);

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

  border-radius: 9px;
}


.records-history-item__icon
.icon,
.records-history-item__icon
svg {
  width: 15px;
  height: 15px;
}


.records-history-item__copy {
  min-width: 0;
}


.records-history-item__copy
> div:first-child {
  display: flex;

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

  gap: 10px;
}


.records-history-item__copy
> div:first-child
strong {
  color:
    var(--records-text-strong);

  font-size: 10px;

  font-weight: 800;
}


.records-history-item__copy
> div:first-child
span {
  color:
    var(--records-muted);

  font-size: 8px;

  white-space: nowrap;
}


.records-history-item__copy
> small {
  display: block;

  margin-top: 4px;

  color:
    var(--records-muted);

  font-size: 8px;

  font-weight: 600;
}


.records-history-item__copy
> p {
  display: flex;

  align-items: center;

  gap: 7px;

  margin:
    8px
    0
    0;

  color:
    var(--records-text);

  font-size: 10px;

  font-weight: 650;
}


.records-history-item__copy
> p
span {
  color:
    var(--records-muted);
}


.records-history-item__copy
> p
.icon,
.records-history-item__copy
> p
svg {
  width: 12px;
  height: 12px;
}


.records-history-item__copy
> em {
  display: block;

  margin-top: 7px;

  color:
    var(--records-text-soft);

  font-size: 9px;

  font-style: normal;

  line-height: 1.45;
}


.records-history-item__copy
> footer {
  margin-top: 8px;

  padding-top: 8px;

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


.records-history-item__copy
> footer
span {
  display: inline-flex;

  align-items: center;

  gap: 4px;

  color:
    var(--records-muted);

  font-size: 8px;
}


/* =========================================================
   97. TOAST
   ========================================================= */

.records-toast {
  position: fixed;

  right: 18px;
  bottom: 18px;

  z-index: 12000;

  min-width: 280px;

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

  display: grid;

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

  align-items: center;

  gap: 9px;

  padding:
    8px
    12px
    8px
    8px;

  color:
    var(--records-text);

  background:
    var(--records-surface);

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

  border-radius: 10px;

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

  font-size: 10px;

  font-weight: 650;

  opacity: 0;

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

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


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

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


.records-toast__icon {
  width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  color:
    var(--records-success);

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

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

  border-radius: 8px;
}


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


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


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

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

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


/* =========================================================
   98. MODAL ANIMATIONS
   ========================================================= */

@keyframes recordsBackdropEnter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}


@keyframes recordsModalEnter {
  from {
    opacity: 0;

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

  to {
    opacity: 1;

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


/* =========================================================
   99. RESPONSIVE · 1420
   ========================================================= */

@media (
  max-width: 1420px
) {
  .records-document-summary {
    grid-template-columns:
      repeat(
        3,
        minmax(
          0,
          1fr
        )
      );
  }
}


/* =========================================================
   100. RESPONSIVE · 1100
   ========================================================= */

@media (
  max-width: 1100px
) {
  .records-form-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(
          0,
          1fr
        )
      );
  }


  .records-documents-list {
    grid-template-columns:
      1fr;
  }
}


/* =========================================================
   101. RESPONSIVE · 820
   ========================================================= */

@media (
  max-width: 820px
) {
  .records-modal-backdrop {
    align-items: flex-end;

    padding: 0;
  }


  .records-modal,
  .records-modal--small,
  .records-modal--detail,
  .records-modal--history {
    width: 100%;

    max-width: 100%;

    max-height: 92dvh;

    border-right: 0;
    border-bottom: 0;
    border-left: 0;

    border-radius:
      16px
      16px
      0
      0;
  }


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


  .records-field--full {
    grid-column: auto;
  }


  .records-modal__footer {
    align-items: stretch;

    flex-direction: column;
  }


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

    margin-left:
      0
      !important;
  }


  .records-modal__footer
  > div:last-child {
    display: grid;

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


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


  .records-detail-summary,
  .records-personal-info {
    grid-template-columns:
      repeat(
        2,
        minmax(
          0,
          1fr
        )
      );
  }


  .records-document-summary {
    grid-template-columns:
      repeat(
        2,
        minmax(
          0,
          1fr
        )
      );
  }


  .records-detail-section
  > header {
    align-items: stretch;

    flex-direction: column;
  }


  .records-detail-section
  > header
  .records-btn {
    width: 100%;
  }
}


/* =========================================================
   102. RESPONSIVE · 620
   ========================================================= */

@media (
  max-width: 620px
) {
  .records-modal,
  .records-modal--small,
  .records-modal--detail,
  .records-modal--history {
    max-height: 96dvh;

    border-radius:
      14px
      14px
      0
      0;
  }


  .records-modal__head {
    min-height: 70px;

    padding:
      11px
      12px;
  }


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

    gap: 9px;
  }


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

    min-width: 40px;
  }


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


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


  .records-form-section {
    padding: 12px;
  }


  .records-detail-summary,
  .records-personal-info,
  .records-document-summary {
    grid-template-columns:
      1fr;
  }


  .records-detail-summary article,
  .records-personal-info article,
  .records-document-summary article {
    border-bottom:
      1px
      solid
      var(--records-border);
  }


  .records-detail-summary article:last-child,
  .records-personal-info article:last-child,
  .records-document-summary article:last-child {
    border-bottom: 0;
  }


  .records-detail-section {
    padding: 12px;
  }


  .records-document__head {
    grid-template-columns:
      36px
      minmax(
        0,
        1fr
      );
  }


  .records-document-state {
    grid-column:
      1
      /
      -1;

    justify-self: start;
  }


  .records-document__actions {
    display: grid;

    grid-template-columns:
      1fr;

    width: 100%;
  }


  .records-document__actions
  .records-btn {
    width: 100%;
  }


  .records-detail-footer {
    align-items: stretch;

    flex-direction: column;
  }


  .records-detail-footer
  .records-btn {
    width: 100%;
  }


  .records-modal__footer
  > div:last-child {
    grid-template-columns:
      1fr;
  }


  .records-history-item__copy
  > div:first-child {
    align-items: flex-start;

    flex-direction: column;
  }


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

    min-width: 0;

    max-width: none;
  }
}


/* =========================================================
   103. RESPONSIVE · 420
   ========================================================= */

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


  .records-history-item {
    grid-template-columns:
      32px
      minmax(
        0,
        1fr
      );
  }


  .records-history-item__icon {
    width: 32px;
    height: 32px;
  }
}


/* =========================================================
   104. REDUCED MOTION
   ========================================================= */

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

    transition:
      none
      !important;
  }


  .records-spin {
    animation:
      recordsSpin
      1.2s
      linear
      infinite
      !important;
  }
}


/* =========================================================
   FIN · PARTE 3 DE 3
   ========================================================= */
   /* =========================================================
   LEGAJOS · FIX TABLA / EMPTY / PAGINACIÓN
   AGREGAR AL FINAL DE legajos.css
   ========================================================= */


/* =========================================================
   CONTENEDOR DE TABLA
   ========================================================= */

.records-table-wrap {
  width: 100% !important;
  min-width: 0 !important;

  position: relative;

  display: block !important;

  background:
    var(
      --records-surface,
      var(--panel)
    ) !important;

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

  border-top:
    1px
    solid
    var(
      --records-border,
      var(--border)
    ) !important;
}


/* =========================================================
   TABLA
   ========================================================= */

.records-table {
  width: 100% !important;

  min-width: 1280px !important;

  display: table !important;

  table-layout: fixed !important;

  border-collapse:
    separate !important;

  border-spacing:
    0 !important;

  color:
    var(
      --records-text,
      var(--text)
    ) !important;

  background:
    var(
      --records-surface,
      var(--panel)
    ) !important;
}


.records-table thead {
  display:
    table-header-group !important;
}


.records-table tbody {
  display:
    table-row-group !important;
}


.records-table tr {
  display:
    table-row !important;
}


/* =========================================================
   CABECERA
   ========================================================= */

.records-table th {
  position: relative;

  display:
    table-cell !important;

  height: 48px !important;

  padding:
    0
    14px !important;

  color:
    var(
      --records-muted,
      var(--muted)
    ) !important;

  background:
    var(
      --records-surface-soft,
      var(--background)
    ) !important;

  border-right:
    1px
    solid
    var(
      --records-border,
      var(--border)
    ) !important;

  border-bottom:
    1px
    solid
    var(
      --records-border-strong,
      var(--border)
    ) !important;

  font-size:
    10px !important;

  font-weight:
    800 !important;

  line-height:
    1 !important;

  letter-spacing:
    0.045em !important;

  text-align:
    left !important;

  text-transform:
    uppercase !important;

  white-space:
    nowrap !important;

  vertical-align:
    middle !important;
}


.records-table th:last-child {
  border-right:
    0 !important;
}


/* =========================================================
   ANCHOS
   ========================================================= */

.records-table th:nth-child(1) {
  width: 220px !important;
}


.records-table th:nth-child(2) {
  width: 150px !important;
}


.records-table th:nth-child(3) {
  width: 150px !important;
}


.records-table th:nth-child(4) {
  width: 165px !important;
}


.records-table th:nth-child(5) {
  width: 90px !important;
}


.records-table th:nth-child(6) {
  width: 105px !important;
}


.records-table th:nth-child(7) {
  width: 95px !important;
}


.records-table th:nth-child(8) {
  width: 150px !important;
}


.records-table th:nth-child(9) {
  width: 135px !important;
}


.records-table th:nth-child(10) {
  width: 165px !important;
}


.records-table th:nth-child(11) {
  width: 150px !important;
}


/* =========================================================
   CELDAS
   ========================================================= */

.records-table td {
  display:
    table-cell !important;

  min-height:
    68px !important;

  padding:
    12px
    14px !important;

  color:
    var(
      --records-text,
      var(--text)
    ) !important;

  background:
    var(
      --records-surface,
      var(--panel)
    ) !important;

  border-right:
    1px
    solid
    var(
      --records-border-soft,
      var(--border)
    ) !important;

  border-bottom:
    1px
    solid
    var(
      --records-border,
      var(--border)
    ) !important;

  font-size:
    11px !important;

  font-weight:
    550 !important;

  line-height:
    1.4 !important;

  vertical-align:
    middle !important;
}


.records-table td:last-child {
  border-right:
    0 !important;
}


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


/* =========================================================
   HOVER
   ========================================================= */

.records-table tbody
tr:not(:has(.records-empty)):hover
td {
  background:
    var(
      --records-surface-hover,
      var(--background)
    ) !important;
}


/* =========================================================
   CELDA EMPTY
   ========================================================= */

.records-table-message {
  width: 100% !important;

  padding:
    0 !important;

  border-right:
    0 !important;

  background:
    var(
      --records-surface,
      var(--panel)
    ) !important;
}


/* =========================================================
   EMPTY
   ========================================================= */

.records-empty {
  width: 100% !important;

  min-height:
    290px !important;

  display:
    flex !important;

  flex-direction:
    column !important;

  align-items:
    center !important;

  justify-content:
    center !important;

  gap:
    8px !important;

  padding:
    36px
    20px !important;

  color:
    var(
      --records-muted,
      var(--muted)
    ) !important;

  background:
    var(
      --records-surface,
      var(--panel)
    ) !important;

  text-align:
    center !important;
}


/* =========================================================
   EMPTY ICON
   ========================================================= */

.records-empty > span {
  width:
    54px !important;

  height:
    54px !important;

  display:
    grid !important;

  place-items:
    center !important;

  margin-bottom:
    4px !important;

  color:
    var(
      --records-text-soft,
      var(--text)
    ) !important;

  background:
    var(
      --records-surface-soft,
      var(--background)
    ) !important;

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

  border-radius:
    13px !important;
}


.records-empty > span .icon,
.records-empty > span svg {
  width:
    22px !important;

  height:
    22px !important;
}


/* =========================================================
   EMPTY TEXT
   ========================================================= */

.records-empty > strong {
  display:
    block !important;

  margin:
    0 !important;

  color:
    var(
      --records-text-strong,
      var(--text)
    ) !important;

  font-size:
    15px !important;

  font-weight:
    800 !important;

  line-height:
    1.25 !important;
}


.records-empty > p {
  max-width:
    420px !important;

  margin:
    2px
    0
    10px !important;

  color:
    var(
      --records-muted,
      var(--muted)
    ) !important;

  font-size:
    11px !important;

  font-weight:
    500 !important;

  line-height:
    1.5 !important;
}


/* =========================================================
   EMPTY BUTTON
   ========================================================= */

.records-empty
.records-btn {
  min-width:
    145px !important;

  min-height:
    40px !important;

  margin-top:
    2px !important;
}


/* =========================================================
   LOADING
   ========================================================= */

.records-loading {
  width: 100% !important;

  min-height:
    290px !important;

  display:
    flex !important;

  flex-direction:
    column !important;

  align-items:
    center !important;

  justify-content:
    center !important;

  gap:
    8px !important;

  padding:
    36px
    20px !important;

  text-align:
    center !important;
}


.records-loading > span {
  width:
    52px !important;

  height:
    52px !important;

  display:
    grid !important;

  place-items:
    center !important;

  color:
    var(
      --records-text,
      var(--text)
    ) !important;

  background:
    var(
      --records-surface-soft,
      var(--background)
    ) !important;

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

  border-radius:
    13px !important;
}


.records-loading strong {
  color:
    var(
      --records-text-strong,
      var(--text)
    ) !important;

  font-size:
    14px !important;

  font-weight:
    800 !important;
}


.records-loading p {
  margin:
    0 !important;

  color:
    var(
      --records-muted,
      var(--muted)
    ) !important;

  font-size:
    11px !important;
}


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

.records-pagination {
  width:
    100% !important;

  min-height:
    64px !important;

  display:
    flex !important;

  align-items:
    center !important;

  justify-content:
    space-between !important;

  gap:
    16px !important;

  padding:
    11px
    14px !important;

  color:
    var(
      --records-text,
      var(--text)
    ) !important;

  background:
    var(
      --records-surface-soft,
      var(--background)
    ) !important;

  border-top:
    1px
    solid
    var(
      --records-border-strong,
      var(--border)
    ) !important;
}


/* =========================================================
   PAGINACIÓN INFO
   ========================================================= */

.records-pagination__info {
  display:
    inline-flex !important;

  align-items:
    center !important;

  gap:
    5px !important;

  color:
    var(
      --records-muted,
      var(--muted)
    ) !important;

  font-size:
    10.5px !important;

  font-weight:
    560 !important;

  white-space:
    nowrap !important;
}


.records-pagination__info strong {
  color:
    var(
      --records-text-strong,
      var(--text)
    ) !important;

  font-weight:
    800 !important;
}


/* =========================================================
   PAGINACIÓN ACCIONES
   ========================================================= */

.records-pagination__actions {
  display:
    flex !important;

  align-items:
    center !important;

  justify-content:
    flex-end !important;

  gap:
    8px !important;
}


.records-pagination__page {
  min-height:
    36px !important;

  display:
    inline-flex !important;

  align-items:
    center !important;

  justify-content:
    center !important;

  gap:
    4px !important;

  padding:
    0
    11px !important;

  color:
    var(
      --records-muted,
      var(--muted)
    ) !important;

  background:
    var(
      --records-surface,
      var(--panel)
    ) !important;

  border:
    1px
    solid
    var(
      --records-border,
      var(--border)
    ) !important;

  border-radius:
    8px !important;

  font-size:
    10px !important;

  font-weight:
    600 !important;

  white-space:
    nowrap !important;
}


.records-pagination__page strong {
  color:
    var(
      --records-text-strong,
      var(--text)
    ) !important;

  font-weight:
    800 !important;
}


/* =========================================================
   DESKTOP · NO MOSTRAR LABELS MOBILE
   ========================================================= */

@media (
  min-width: 821px
) {
  .records-table td::before {
    content:
      none !important;

    display:
      none !important;
  }
}


/* =========================================================
   RESPONSIVE · TABLET / MOBILE
   ========================================================= */

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


  .records-table {
    min-width:
      0 !important;

    display:
      block !important;
  }


  .records-table thead {
    display:
      none !important;
  }


  .records-table tbody {
    width:
      100% !important;

    display:
      grid !important;

    grid-template-columns:
      1fr !important;

    gap:
      9px !important;

    padding:
      9px !important;

    background:
      var(
        --records-surface-soft,
        var(--background)
      ) !important;
  }


  .records-table tbody tr {
    width:
      100% !important;

    display:
      grid !important;

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

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

    border-radius:
      11px !important;

    overflow:
      hidden !important;
  }


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

    min-height:
      64px !important;

    display:
      flex !important;

    flex-direction:
      column !important;

    align-items:
      flex-start !important;

    justify-content:
      center !important;

    gap:
      5px !important;

    border-right:
      1px
      solid
      var(
        --records-border,
        var(--border)
      ) !important;

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


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


  .records-table-message {
    grid-column:
      1
      /
      -1 !important;

    display:
      block !important;

    padding:
      0 !important;

    border:
      0 !important;
  }


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


  .records-empty,
  .records-loading {
    min-height:
      240px !important;
  }


  .records-pagination {
    align-items:
      stretch !important;

    flex-direction:
      column !important;
  }


  .records-pagination__actions {
    width:
      100% !important;

    justify-content:
      space-between !important;
  }
}


/* =========================================================
   RESPONSIVE · MOBILE
   ========================================================= */

@media (
  max-width: 620px
) {
  .records-table tbody tr {
    grid-template-columns:
      1fr !important;
  }


  .records-table tbody td,
  .records-table tbody
  td:nth-child(2n) {
    border-right:
      0 !important;
  }


  .records-empty {
    min-height:
      270px !important;

    padding:
      28px
      16px !important;
  }


  .records-pagination__info {
    justify-content:
      center !important;
  }


  .records-pagination__actions {
    display:
      grid !important;

    grid-template-columns:
      1fr
      auto
      1fr !important;
  }


  .records-pagination__actions
  .records-btn {
    width:
      100% !important;
  }
}/* =========================================================
   LEGAJOS · FIX ESTADO / ACTUALIZACIÓN / ACCIONES / PAGINACIÓN
   AGREGAR AL FINAL DE legajos.css
   ========================================================= */


/* =========================================================
   ÚLTIMAS COLUMNAS
   ========================================================= */

.records-table th:nth-child(9),
.records-table td:nth-child(9) {
  width: 150px !important;
}


.records-table th:nth-child(10),
.records-table td:nth-child(10) {
  width: 170px !important;
}


.records-table th:nth-child(11),
.records-table td:nth-child(11) {
  width: 180px !important;
}


/* =========================================================
   ESTADO
   ========================================================= */

.records-state {
  min-width: 105px !important;

  min-height: 32px !important;

  display: inline-flex !important;

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

  gap: 7px !important;

  padding:
    0
    10px !important;

  border-radius:
    8px !important;

  font-size:
    10px !important;

  font-weight:
    750 !important;

  line-height:
    1 !important;

  white-space:
    nowrap !important;
}


.records-state .icon,
.records-state svg {
  width:
    14px !important;

  height:
    14px !important;

  flex:
    0
    0
    14px !important;
}


/* =========================================================
   ESTADO · INCOMPLETO
   ========================================================= */

.records-state--incompleto {
  color:
    var(
      --records-warning
    ) !important;

  background:
    var(
      --records-warning-bg
    ) !important;

  border:
    1px
    solid
    var(
      --records-warning-border
    ) !important;
}


/* =========================================================
   ESTADO · COMPLETO
   ========================================================= */

.records-state--completo {
  color:
    var(
      --records-success
    ) !important;

  background:
    var(
      --records-success-bg
    ) !important;

  border:
    1px
    solid
    var(
      --records-success-border
    ) !important;
}


/* =========================================================
   ESTADO · OBSERVADO
   ========================================================= */

.records-state--observado {
  color:
    var(
      --records-info
    ) !important;

  background:
    var(
      --records-info-bg
    ) !important;

  border:
    1px
    solid
    var(
      --records-info-border
    ) !important;
}


/* =========================================================
   ESTADO · ARCHIVADO
   ========================================================= */

.records-state--archivado {
  color:
    var(
      --records-muted
    ) !important;

  background:
    var(
      --records-surface-muted
    ) !important;

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


/* =========================================================
   ACTUALIZACIÓN
   ========================================================= */

.records-date {
  min-height:
    32px !important;

  display:
    inline-flex !important;

  align-items:
    center !important;

  padding:
    0
    2px !important;

  color:
    var(
      --records-text-soft
    ) !important;

  font-size:
    10.5px !important;

  font-weight:
    650 !important;

  line-height:
    1.2 !important;

  white-space:
    nowrap !important;
}


/* =========================================================
   ACCIONES
   ========================================================= */

.records-row-actions {
  width:
    100% !important;

  display:
    flex !important;

  align-items:
    center !important;

  justify-content:
    flex-start !important;

  gap:
    6px !important;
}


/* =========================================================
   BOTONES DE ACCIÓN
   ========================================================= */

.records-icon-btn {
  width:
    34px !important;

  height:
    34px !important;

  min-width:
    34px !important;

  display:
    inline-grid !important;

  place-items:
    center !important;

  padding:
    0 !important;

  color:
    var(
      --records-text-soft
    ) !important;

  background:
    var(
      --records-surface-soft
    ) !important;

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

  border-radius:
    8px !important;

  cursor:
    pointer !important;

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


.records-icon-btn:hover {
  color:
    var(
      --records-text-strong
    ) !important;

  background:
    var(
      --records-surface-hover
    ) !important;

  border-color:
    var(
      --records-text-soft
    ) !important;

  transform:
    translateY(-1px) !important;
}


.records-icon-btn .icon,
.records-icon-btn svg {
  width:
    15px !important;

  height:
    15px !important;

  stroke-width:
    1.9 !important;
}


/* =========================================================
   BOTÓN ARCHIVAR
   ========================================================= */

.records-icon-btn--danger:hover {
  color:
    var(
      --records-danger
    ) !important;

  background:
    var(
      --records-danger-bg
    ) !important;

  border-color:
    var(
      --records-danger-border
    ) !important;
}


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

.records-pagination {
  min-height:
    68px !important;

  display:
    grid !important;

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

  align-items:
    center !important;

  gap:
    16px !important;

  padding:
    12px
    14px !important;

  background:
    var(
      --records-surface-soft
    ) !important;

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


/* =========================================================
   INFO PAGINACIÓN
   ========================================================= */

.records-pagination__info {
  display:
    flex !important;

  align-items:
    center !important;

  gap:
    5px !important;

  color:
    var(
      --records-muted
    ) !important;

  font-size:
    10.5px !important;

  font-weight:
    580 !important;
}


.records-pagination__info strong {
  color:
    var(
      --records-text-strong
    ) !important;

  font-size:
    11px !important;

  font-weight:
    800 !important;
}


/* =========================================================
   BOTONES PAGINACIÓN
   ========================================================= */

.records-pagination__actions {
  display:
    flex !important;

  align-items:
    center !important;

  gap:
    8px !important;
}


.records-pagination__actions
.records-btn {
  min-height:
    38px !important;

  padding:
    0
    12px !important;

  font-size:
    10.5px !important;
}


/* =========================================================
   INDICADOR DE PÁGINA
   ========================================================= */

.records-pagination__page {
  min-width:
    92px !important;

  min-height:
    38px !important;

  display:
    inline-flex !important;

  align-items:
    center !important;

  justify-content:
    center !important;

  gap:
    4px !important;

  padding:
    0
    12px !important;

  color:
    var(
      --records-muted
    ) !important;

  background:
    var(
      --records-surface
    ) !important;

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

  border-radius:
    8px !important;

  font-size:
    10px !important;

  font-weight:
    650 !important;

  white-space:
    nowrap !important;
}


.records-pagination__page strong {
  color:
    var(
      --records-text-strong
    ) !important;

  font-weight:
    800 !important;
}


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

@media (
  max-width: 820px
) {
  .records-row-actions {
    display:
      grid !important;

    grid-template-columns:
      repeat(
        4,
        minmax(
          0,
          1fr
        )
      ) !important;

    gap:
      7px !important;
  }


  .records-icon-btn {
    width:
      100% !important;

    min-height:
      38px !important;
  }


  .records-pagination {
    grid-template-columns:
      1fr !important;
  }


  .records-pagination__info {
    justify-content:
      center !important;
  }


  .records-pagination__actions {
    width:
      100% !important;

    display:
      grid !important;

    grid-template-columns:
      1fr
      auto
      1fr !important;
  }


  .records-pagination__actions
  .records-btn {
    width:
      100% !important;
  }
}


@media (
  max-width: 520px
) {
  .records-row-actions {
    grid-template-columns:
      repeat(
        2,
        minmax(
          0,
          1fr
        )
      ) !important;
  }


  .records-pagination__actions {
    grid-template-columns:
      1fr !important;
  }


  .records-pagination__page {
    width:
      100% !important;
  }
}/* =========================================================
   LEGAJOS · AJUSTE FINAL
   MÁS RÁPIDO · RESPONSIVE FULL · SIN SCROLL HORIZONTAL
   DIVISIONES MARCADAS · LETRAS MÁS NEGRAS
   PEGAR AL FINAL DE legajos.css
   ========================================================= */


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

.records-page,
.records-modal,
.records-toast {
  --records-text: #111111;
  --records-text-strong: #000000;
  --records-text-soft: #34383d;
  --records-muted: #5d636a;
  --records-muted-2: #80868d;

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

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


html[data-theme="dark"] .records-page,
html[data-theme="dark"] .records-modal,
html[data-theme="dark"] .records-toast,
body.dark .records-page,
body.dark .records-modal,
body.dark .records-toast,
.dark .records-page,
.dark .records-modal,
.dark .records-toast {
  --records-text: #f5f5f5;
  --records-text-strong: #ffffff;
  --records-text-soft: #d3d6da;
  --records-muted: #afb4ba;
  --records-muted-2: #797f86;

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

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


/* =========================================================
   02. SIN SCROLL HORIZONTAL GLOBAL
   ========================================================= */

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


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

  overflow-x: hidden !important;
}


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


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

  overflow-x: hidden !important;
}


/* =========================================================
   03. MÁS RÁPIDA
   ========================================================= */

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


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


.records-head,
.records-brand__icon,
.records-head-status,
.records-btn,
.records-icon-btn,
.records-metric,
.records-metric__icon,
.records-metric__arrow,
.records-search input,
.records-search button,
.records-filter-field,
.records-filter-field select,
.records-filter-field input,
.records-field,
.records-document,
.records-modal__close {
  transition:
    background-color 60ms ease,
    border-color 60ms ease,
    color 60ms ease,
    opacity 60ms ease !important;
}


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


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


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


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

  animation-duration: 80ms !important;
}


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


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

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


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


.records-brand > div > span,
.records-head-status small,
.records-metric__copy small,
.records-filters__title > span,
.records-filter-field > span,
.records-table th,
.records-form-section__title > div > span,
.records-field > span,
.records-detail-summary small,
.records-personal-info article > span,
.records-document-summary small,
.records-detail-section > header > div > span,
.records-document__copy > span {
  font-weight: 850 !important;
}


.records-head-status strong,
.records-metric__copy strong,
.records-filters__title > strong,
.records-person strong,
.records-cell-main,
.records-table-number,
.records-state,
.records-form-section__title > div > strong,
.records-detail-summary strong,
.records-personal-info article > strong,
.records-document-summary strong,
.records-document__copy > strong,
.records-history-item__copy > div:first-child strong {
  font-weight: 800 !important;
}


.records-brand p,
.records-metric__copy em,
.records-filters__title p,
.records-filters__summary > span,
.records-filters__footer > span,
.records-person small,
.records-cell-sub,
.records-date,
.records-field input,
.records-field select,
.records-field textarea,
.records-search input,
.records-filter-field select,
.records-filter-field input,
.records-modal__brand p,
.records-document__description,
.records-document__meta,
.records-history-item__copy {
  font-weight: 650 !important;
}


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


/* =========================================================
   05. HEADER · DIVISIONES
   ========================================================= */

.records-head {
  border-color: var(--records-border-strong) !important;
}


.records-head::before,
.records-head::after {
  display: none !important;
}


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


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


.records-btn {
  border-color: var(--records-border-strong) !important;
}


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

.records-metrics {
  gap: 0 !important;

  background: transparent !important;

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


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


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


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


/* =========================================================
   07. PANEL / FILTROS
   ========================================================= */

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


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


.records-filters__head,
.records-search-row {
  border-bottom-color: var(--records-border-strong) !important;
}


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


.records-filter-field {
  border-right-color: var(--records-border-strong) !important;
}


.records-filters__footer {
  border-top: 1px solid var(--records-border-strong) !important;
}


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


/* =========================================================
   08. TABLA · SIN SCROLL HORIZONTAL
   ========================================================= */

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

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

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


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

  table-layout: fixed !important;
}


/* =========================================================
   09. TABLA · COLUMNAS PROPORCIONALES
   ========================================================= */

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


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


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


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


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


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


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


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


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


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


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


/* =========================================================
   10. TABLA · DIVISIONES
   ========================================================= */

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


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


.records-table th:not(:last-child),
.records-table td:not(:last-child) {
  border-right:
    1px
    solid
    var(--records-border) !important;
}


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


/* =========================================================
   11. TABLA · CONTENIDO SIN DESBORDE
   ========================================================= */

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

  overflow: hidden;
}


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


.records-person strong,
.records-person small,
.records-cell-main,
.records-cell-sub,
.records-date,
.records-state > span {
  max-width: 100%;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;
}


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

  padding:
    0
    6px !important;
}


.records-row-actions {
  width: 100%;
  min-width: 0;

  gap: 3px !important;
}


.records-row-actions .records-icon-btn {
  width: 28px !important;
  height: 28px !important;

  min-width: 28px !important;
}


/* =========================================================
   12. PAGINACIÓN
   ========================================================= */

.records-pagination {
  border-top:
    1px
    solid
    var(--records-border-strong) !important;
}


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


/* =========================================================
   13. MODALES · MÁS RÁPIDOS Y DIVIDIDOS
   ========================================================= */

.records-modal {
  max-width: calc(100vw - 24px) !important;

  border-color:
    var(--records-border-strong) !important;

  overflow-x: hidden !important;
}


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


.records-modal__head::after {
  display: none !important;
}


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


.records-form,
.records-detail,
.records-history {
  overflow-x: hidden !important;
}


/* =========================================================
   14. FORMULARIOS · DIVISIONES
   ========================================================= */

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


.records-form-section__title {
  border-bottom:
    1px
    solid
    var(--records-border-strong) !important;
}


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


.records-field {
  border-color:
    var(--records-border) !important;
}


.records-field:hover,
.records-field:focus-within {
  border-color:
    var(--records-border-strong) !important;
}


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


/* =========================================================
   15. DETALLE · DIVISIONES MARCADAS
   ========================================================= */

.records-detail-summary,
.records-personal-info,
.records-document-summary {
  gap: 0 !important;

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


.records-detail-summary article,
.records-personal-info article,
.records-document-summary article {
  border-right:
    1px
    solid
    var(--records-border-strong) !important;
}


.records-detail-summary article:last-child,
.records-personal-info article:last-child,
.records-document-summary article:last-child {
  border-right: 0 !important;
}


.records-detail-section {
  border-bottom:
    1px
    solid
    var(--records-border-strong) !important;
}


.records-detail-section > header {
  border-bottom:
    1px
    solid
    var(--records-border-strong) !important;
}


.records-detail-notes,
.records-detail-footer {
  border-color:
    var(--records-border-strong) !important;
}


/* =========================================================
   16. DOCUMENTOS · DIVISIONES
   ========================================================= */

.records-document {
  border-color:
    var(--records-border-strong) !important;

  box-shadow: none !important;
}


.records-document__icon,
.records-document__file {
  border-color:
    var(--records-border-strong) !important;
}


.records-document__meta,
.records-document__actions {
  border-top-color:
    var(--records-border-strong) !important;
}


.records-document__notes {
  border-left-color:
    var(--records-border-strong) !important;
}


.records-history-item {
  border-color:
    var(--records-border-strong) !important;
}


.records-history-item__icon {
  border-color:
    var(--records-border-strong) !important;
}


.records-history-item__copy > footer {
  border-top-color:
    var(--records-border-strong) !important;
}


/* =========================================================
   17. RESPONSIVE · 1450
   ========================================================= */

@media (max-width: 1450px) {
  .records-metric {
    border-right:
      1px
      solid
      var(--records-border-strong) !important;

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


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


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


/* =========================================================
   18. RESPONSIVE · 1100
   ========================================================= */

@media (max-width: 1100px) {
  .records-filter-field,
  .records-filter-field:nth-child(2n) {
    border-right:
      1px
      solid
      var(--records-border-strong) !important;

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


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


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


/* =========================================================
   19. RESPONSIVE · TABLET / MOBILE
   ========================================================= */

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

    gap: 8px;

    padding: 6px;

    overflow-x: hidden !important;
  }


  .records-head {
    gap: 10px;

    padding: 11px;

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


  .records-brand {
    gap: 9px;
  }


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

    min-width: 42px;
  }


  .records-brand h2 {
    font-size: 21px;

    font-weight: 900 !important;
  }


  .records-brand p {
    font-size: 10px;

    font-weight: 650 !important;
  }


  .records-head__actions {
    gap: 6px;

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


  /* =======================================================
     MÉTRICAS TABLET
     ======================================================= */

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

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


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

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

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


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


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


  /* =======================================================
     TABLA → CARDS
     ======================================================= */

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


  .records-table {
    width:
      100% !important;

    min-width:
      0 !important;

    max-width:
      100% !important;

    display:
      block !important;
  }


  .records-table thead {
    display:
      none !important;
  }


  .records-table tbody {
    width:
      100% !important;

    max-width:
      100% !important;

    display:
      grid !important;

    grid-template-columns:
      1fr !important;

    gap:
      8px !important;

    padding:
      8px !important;

    overflow-x:
      hidden !important;
  }


  .records-table tbody tr {
    width:
      100% !important;

    max-width:
      100% !important;

    display:
      grid !important;

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

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

    border-radius:
      10px !important;

    overflow:
      hidden !important;
  }


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

    max-width:
      100% !important;

    min-width:
      0 !important;

    min-height:
      58px !important;

    display:
      flex !important;

    flex-direction:
      column !important;

    align-items:
      flex-start !important;

    justify-content:
      center !important;

    gap:
      5px !important;

    padding:
      9px !important;

    border-right:
      1px
      solid
      var(--records-border) !important;

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

    text-align:
      left !important;

    overflow:
      hidden !important;
  }


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


  .records-table tbody td::before {
    font-weight:
      850 !important;
  }


  .records-table-message {
    grid-column:
      1
      /
      -1 !important;

    border:
      0 !important;
  }


  .records-pagination {
    align-items:
      stretch !important;

    flex-direction:
      column !important;

    gap:
      8px !important;
  }


  .records-pagination__info {
    justify-content:
      center !important;
  }


  .records-pagination__actions {
    width:
      100% !important;
  }


  /* =======================================================
     MODALES TABLET
     ======================================================= */

  .records-modal-backdrop {
    align-items:
      flex-end !important;

    padding:
      0 !important;
  }


  .records-modal,
  .records-modal--small,
  .records-modal--detail,
  .records-modal--history {
    width:
      100% !important;

    max-width:
      100% !important;

    max-height:
      94dvh !important;

    overflow-x:
      hidden !important;

    border-right:
      0 !important;

    border-bottom:
      0 !important;

    border-left:
      0 !important;
  }


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


  .records-field--full {
    grid-column:
      auto !important;
  }


  .records-detail-summary,
  .records-personal-info,
  .records-document-summary {
    grid-template-columns:
      repeat(
        2,
        minmax(
          0,
          1fr
        )
      ) !important;
  }


  .records-detail-summary article,
  .records-personal-info article,
  .records-document-summary article {
    border-right:
      1px
      solid
      var(--records-border-strong) !important;

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


  .records-detail-summary article:nth-child(2n),
  .records-personal-info article:nth-child(2n),
  .records-document-summary article:nth-child(2n) {
    border-right:
      0 !important;
  }


  .records-documents-list {
    grid-template-columns:
      1fr !important;
  }
}


/* =========================================================
   20. MOBILE
   ========================================================= */

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

    padding: 4px;
  }


  .records-head {
    padding: 9px;

    border-radius: 10px;
  }


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

    gap: 8px;
  }


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

    min-width: 38px;

    border-radius: 9px;
  }


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


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


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


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


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

    font-size: 10px;
  }


  /* =======================================================
     MÉTRICAS MOBILE
     ======================================================= */

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


  .records-metric,
  .records-metric:nth-child(2n),
  .records-metric:nth-child(3n),
  .records-metric:nth-last-child(-n + 2),
  .records-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(--records-border-strong) !important;

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


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


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


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

    min-width: 30px;
  }


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


  .records-metric__copy {
    gap: 2px;
  }


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


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


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


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


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

  .records-filters__head {
    min-height: 0;

    gap: 8px;

    padding: 8px;
  }


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


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


  .records-filters__summary {
    gap: 5px;
  }


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

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


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

    padding: 7px;
  }


  .records-search input {
    height: 36px;

    font-size: 10px;
  }


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


  .records-filter-field,
  .records-filter-field:nth-child(2n) {
    min-height: 62px;

    border-right:
      0 !important;

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


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


  .records-filter-field select,
  .records-filter-field input {
    height: 34px;
  }


  /* =======================================================
     TABLA MOBILE · UNA COLUMNA
     ======================================================= */

  .records-table tbody tr {
    grid-template-columns:
      1fr !important;
  }


  .records-table tbody td,
  .records-table tbody
  td:nth-child(2n) {
    grid-column:
      auto !important;

    border-right:
      0 !important;

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


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


  .records-row-actions {
    display:
      grid !important;

    grid-template-columns:
      repeat(
        4,
        minmax(
          0,
          1fr
        )
      ) !important;

    width:
      100% !important;

    gap:
      5px !important;
  }


  .records-row-actions
  .records-icon-btn {
    width:
      100% !important;

    min-width:
      0 !important;

    min-height:
      34px !important;
  }


  .records-pagination {
    padding:
      8px !important;
  }


  .records-pagination__actions {
    display:
      grid !important;

    grid-template-columns:
      1fr !important;

    gap:
      5px !important;
  }


  .records-pagination__actions
  .records-btn,
  .records-pagination__page {
    width:
      100% !important;
  }


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

  .records-modal,
  .records-modal--small,
  .records-modal--detail,
  .records-modal--history {
    width:
      100vw !important;

    max-width:
      100vw !important;

    max-height:
      100dvh !important;

    border:
      0 !important;

    border-radius:
      0 !important;
  }


  .records-modal__head {
    min-height:
      66px;

    padding:
      9px
      10px;

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


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

    gap:
      8px;
  }


  .records-modal__icon {
    width:
      38px;

    height:
      38px;

    min-width:
      38px;
  }


  .records-modal__brand h3 {
    font-size:
      14px;
  }


  .records-modal__brand p {
    font-size:
      8.5px;
  }


  .records-form-section {
    padding:
      10px;

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


  .records-form-section__title {
    margin-bottom:
      9px;

    padding-bottom:
      8px;

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


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


  .records-field {
    min-height:
      62px;

    padding:
      8px
      9px;

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


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


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

    font-weight:
      650 !important;
  }


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


  .records-detail-summary,
  .records-personal-info,
  .records-document-summary {
    grid-template-columns:
      1fr !important;
  }


  .records-detail-summary article,
  .records-personal-info article,
  .records-document-summary article,
  .records-detail-summary article:nth-child(2n),
  .records-personal-info article:nth-child(2n),
  .records-document-summary article:nth-child(2n) {
    border-right:
      0 !important;

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


  .records-detail-summary article:last-child,
  .records-personal-info article:last-child,
  .records-document-summary article:last-child {
    border-bottom:
      0 !important;
  }


  .records-detail-section {
    padding:
      10px;
  }


  .records-document {
    padding:
      10px;
  }


  .records-document__head {
    grid-template-columns:
      34px
      minmax(
        0,
        1fr
      ) !important;
  }


  .records-document-state {
    grid-column:
      1
      /
      -1;

    justify-self:
      start;
  }


  .records-document__actions {
    display:
      grid !important;

    grid-template-columns:
      1fr !important;

    width:
      100%;
  }


  .records-document__actions
  .records-btn {
    width:
      100%;
  }


  .records-detail-footer {
    align-items:
      stretch;

    flex-direction:
      column;
  }


  .records-detail-footer
  .records-btn {
    width:
      100%;
  }


  .records-modal__footer
  > div:last-child {
    grid-template-columns:
      1fr !important;
  }
}


/* =========================================================
   21. MOBILE MUY CHICO
   ========================================================= */

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


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


  .records-metric,
  .records-metric:nth-child(2n),
  .records-metric:nth-child(3n),
  .records-metric:nth-last-child(-n + 2),
  .records-metric:nth-last-child(-n + 3) {
    border-right:
      0 !important;

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


  .records-metric:last-child {
    border-bottom:
      0 !important;
  }


  .records-row-actions {
    grid-template-columns:
      repeat(
        2,
        minmax(
          0,
          1fr
        )
      ) !important;
  }
}


/* =========================================================
   22. PROTECCIÓN FINAL
   ========================================================= */

.records-page img,
.records-page svg,
.records-modal img,
.records-modal svg {
  max-width:
    100%;
}


.records-page input,
.records-page select,
.records-page textarea,
.records-page button,
.records-modal input,
.records-modal select,
.records-modal textarea,
.records-modal button {
  min-width:
    0;

  max-width:
    100%;
}


.records-page p,
.records-page span,
.records-page strong,
.records-page small,
.records-page h1,
.records-page h2,
.records-page h3,
.records-modal p,
.records-modal span,
.records-modal strong,
.records-modal small,
.records-modal h2,
.records-modal h3 {
  overflow-wrap:
    anywhere;
}


.records-table-wrap,
.records-form,
.records-detail,
.records-history,
.records-modal,
.records-page {
  overflow-x:
    hidden !important;
}/* =========================================================
   LEGAJOS · TODO MÁS CHICO
   PEGAR AL FINAL DEL CSS
   ========================================================= */

.records-page {
  gap: 6px !important;
  padding: 5px !important;
}


/* HEADER */

.records-head {
  min-height: 86px !important;

  gap: 12px !important;

  padding:
    10px
    12px !important;

  border-radius: 10px !important;
}


.records-brand {
  grid-template-columns:
    40px
    minmax(
      0,
      1fr
    ) !important;

  gap: 9px !important;
}


.records-brand__icon {
  width: 40px !important;
  height: 40px !important;

  min-width: 40px !important;

  border-radius: 9px !important;
}


.records-brand__icon .icon,
.records-brand__icon svg {
  width: 17px !important;
  height: 17px !important;
}


.records-brand > div > span {
  margin-bottom: 2px !important;

  font-size: 8px !important;
}


.records-brand h2 {
  font-size:
    clamp(
      19px,
      1.7vw,
      23px
    ) !important;
}


.records-brand p {
  margin-top: 3px !important;

  font-size: 9.5px !important;

  line-height: 1.35 !important;
}


/* STATUS HEADER */

.records-head__status {
  gap: 6px !important;

  padding-left: 10px !important;
}


.records-head-status {
  min-width: 108px !important;
  min-height: 44px !important;

  grid-template-columns:
    28px
    minmax(
      0,
      1fr
    ) !important;

  gap: 6px !important;

  padding:
    5px
    7px !important;
}


.records-head-status > .icon,
.records-head-status > svg {
  width: 28px !important;
  height: 28px !important;

  padding: 7px !important;
}


.records-head-status small {
  font-size: 7px !important;
}


.records-head-status strong {
  font-size: 9.5px !important;
}


/* ACTIONS */

.records-head__actions {
  gap: 5px !important;

  padding-left: 10px !important;
}


/* BUTTONS */

.records-btn {
  min-height: 31px !important;

  gap: 5px !important;

  padding:
    0
    9px !important;

  border-radius: 7px !important;

  font-size: 9px !important;
}


.records-btn--compact {
  min-height: 27px !important;

  padding:
    0
    7px !important;

  font-size: 8.5px !important;
}


.records-btn .icon,
.records-btn svg {
  width: 12px !important;
  height: 12px !important;
}


.records-btn__icon {
  width: 21px !important;
  height: 21px !important;

  margin-left: -4px !important;
}


.records-btn__icon .icon,
.records-btn__icon svg {
  width: 10px !important;
  height: 10px !important;
}


/* MÉTRICAS */

.records-metric {
  min-height: 76px !important;

  grid-template-columns:
    31px
    minmax(
      0,
      1fr
    )
    15px !important;

  gap: 6px !important;

  padding:
    8px
    9px !important;
}


.records-metric__icon {
  width: 31px !important;
  height: 31px !important;

  min-width: 31px !important;

  border-radius: 7px !important;
}


.records-metric__icon .icon,
.records-metric__icon svg {
  width: 14px !important;
  height: 14px !important;
}


.records-metric__copy {
  gap: 2px !important;
}


.records-metric__copy small {
  font-size: 7px !important;
}


.records-metric__copy strong {
  font-size: 16px !important;
}


.records-metric__copy em {
  font-size: 7.5px !important;
}


.records-metric__arrow {
  width: 15px !important;
  height: 15px !important;
}


.records-metric__arrow .icon,
.records-metric__arrow svg {
  width: 10px !important;
  height: 10px !important;
}


/* FILTROS */

.records-filters__head {
  min-height: 54px !important;

  gap: 8px !important;

  padding:
    8px
    10px !important;
}


.records-filters__title {
  gap: 2px !important;
}


.records-filters__title > span {
  font-size: 7px !important;
}


.records-filters__title > strong {
  font-size: 12px !important;
}


.records-filters__title p {
  font-size: 8px !important;
}


.records-filters__summary {
  gap: 5px !important;
}


.records-filters__summary > span {
  min-height: 28px !important;

  gap: 4px !important;

  padding:
    0
    7px !important;

  font-size: 8px !important;
}


.records-filters__summary > span strong {
  min-width: 18px !important;
  height: 18px !important;

  font-size: 7px !important;
}


/* SEARCH */

.records-search-row {
  gap: 5px !important;

  padding:
    7px
    9px !important;
}


.records-search input {
  height: 32px !important;

  padding:
    0
    34px
    0
    31px !important;

  font-size: 9px !important;
}


.records-search > .icon,
.records-search > svg {
  left: 10px !important;

  width: 13px !important;
  height: 13px !important;
}


.records-search button {
  right: 4px !important;

  width: 24px !important;
  height: 24px !important;
}


/* FILTER GRID */

.records-filter-field {
  min-height: 59px !important;

  gap: 4px !important;

  padding:
    7px
    8px !important;
}


.records-filter-field > span {
  font-size: 7px !important;
}


.records-filter-field select,
.records-filter-field input {
  height: 31px !important;

  padding:
    0
    7px !important;

  font-size: 9px !important;
}


.records-filters__footer {
  min-height: 42px !important;

  gap: 8px !important;

  padding:
    7px
    9px !important;
}


.records-filters__footer > span {
  font-size: 8px !important;
}


/* TABLA */

.records-table th {
  height: 30px !important;

  padding:
    0
    6px !important;

  font-size: 7px !important;
}


.records-table td {
  height: 46px !important;

  padding:
    5px
    6px !important;

  font-size: 8.5px !important;
}


.records-person {
  gap: 5px !important;
}


.records-person__avatar {
  width: 26px !important;
  height: 26px !important;

  min-width: 26px !important;

  font-size: 8px !important;
}


.records-person strong {
  font-size: 9px !important;
}


.records-person small,
.records-cell-sub,
.records-date {
  font-size: 7.5px !important;
}


.records-cell-main {
  font-size: 8.5px !important;
}


.records-table-number {
  font-size: 9px !important;
}


.records-state {
  min-height: 21px !important;

  gap: 3px !important;

  padding:
    0
    5px !important;

  font-size: 7px !important;
}


.records-state .icon,
.records-state svg {
  width: 9px !important;
  height: 9px !important;
}


.records-row-actions {
  gap: 2px !important;
}


.records-row-actions .records-icon-btn {
  width: 24px !important;
  height: 24px !important;

  min-width: 24px !important;
}


.records-row-actions .icon,
.records-row-actions svg {
  width: 11px !important;
  height: 11px !important;
}


/* COMPLETITUD */

.records-completion {
  font-size: 8px !important;
}


/* PAGINACIÓN */

.records-pagination {
  min-height: 40px !important;

  gap: 6px !important;

  padding:
    6px
    8px !important;
}


.records-pagination__info,
.records-pagination__page {
  font-size: 8px !important;
}


/* MODAL */

.records-modal {
  border-radius: 11px !important;
}


.records-modal__head {
  min-height: 58px !important;

  gap: 9px !important;

  padding:
    9px
    10px !important;
}


.records-modal__brand {
  grid-template-columns:
    34px
    minmax(
      0,
      1fr
    ) !important;

  gap: 7px !important;
}


.records-modal__icon {
  width: 34px !important;
  height: 34px !important;

  min-width: 34px !important;

  border-radius: 8px !important;
}


.records-modal__icon .icon,
.records-modal__icon svg {
  width: 14px !important;
  height: 14px !important;
}


.records-modal__brand > div > span {
  margin-bottom: 2px !important;

  font-size: 7px !important;
}


.records-modal__brand h3 {
  font-size: 13px !important;
}


.records-modal__brand p {
  margin-top: 2px !important;

  font-size: 8px !important;
}


.records-modal__close {
  width: 27px !important;
  height: 27px !important;

  min-width: 27px !important;
}


.records-modal__close .icon,
.records-modal__close svg {
  width: 12px !important;
  height: 12px !important;
}


/* FORM */

.records-form-section {
  padding: 10px !important;
}


.records-form-section__title {
  grid-template-columns:
    29px
    minmax(
      0,
      1fr
    ) !important;

  gap: 7px !important;

  margin-bottom: 8px !important;

  padding-bottom: 7px !important;
}


.records-form-section__icon {
  width: 29px !important;
  height: 29px !important;

  min-width: 29px !important;
}


.records-form-section__icon .icon,
.records-form-section__icon svg {
  width: 13px !important;
  height: 13px !important;
}


.records-form-section__title > div > span {
  font-size: 7px !important;
}


.records-form-section__title > div > strong {
  font-size: 10px !important;
}


.records-form-grid {
  gap: 6px !important;
}


.records-field {
  min-height: 54px !important;

  gap: 4px !important;

  padding:
    6px
    7px !important;

  border-radius: 7px !important;
}


.records-field > span {
  font-size: 7px !important;
}


.records-field input,
.records-field select,
.records-field textarea {
  font-size: 9px !important;
}


.records-field input,
.records-field select {
  min-height: 27px !important;
}


.records-field textarea {
  min-height: 62px !important;
}


/* SWITCH */

.records-switch {
  min-height: 28px !important;

  gap: 6px !important;
}


.records-switch > span {
  width: 32px !important;
  height: 18px !important;

  min-width: 32px !important;
}


.records-switch > span::after {
  width: 12px !important;
  height: 12px !important;

  top: 2px !important;
  left: 2px !important;
}


.records-switch > input:checked + span::after {
  left: 16px !important;
}


.records-switch em {
  font-size: 8px !important;
}


/* MODAL FOOTER */

.records-modal__footer {
  min-height: 48px !important;

  gap: 7px !important;

  padding:
    7px
    9px !important;
}


/* DETAIL SUMMARY */

.records-detail-summary article {
  padding: 9px !important;
}


.records-detail-summary small {
  margin-bottom: 3px !important;

  font-size: 7px !important;
}


.records-detail-summary strong {
  font-size: 13px !important;
}


/* PERSONAL INFO */

.records-personal-info article {
  padding:
    8px
    9px !important;
}


.records-personal-info article > span {
  font-size: 7px !important;
}


.records-personal-info article > strong {
  margin-top: 4px !important;

  font-size: 9px !important;
}


/* DOCUMENT SUMMARY */

.records-document-summary article {
  min-height: 52px !important;

  grid-template-columns:
    27px
    minmax(
      0,
      1fr
    ) !important;

  gap: 6px !important;

  padding:
    6px
    7px !important;
}


.records-document-summary article > span {
  width: 27px !important;
  height: 27px !important;
}


.records-document-summary article > span .icon,
.records-document-summary article > span svg {
  width: 12px !important;
  height: 12px !important;
}


.records-document-summary small {
  font-size: 6.5px !important;
}


.records-document-summary strong {
  margin-top: 2px !important;

  font-size: 11px !important;
}


/* DETAIL SECTION */

.records-detail-section {
  padding: 10px !important;
}


.records-detail-section > header {
  min-height: 44px !important;

  gap: 8px !important;

  margin-bottom: 8px !important;

  padding-bottom: 7px !important;
}


.records-detail-section > header > div > span {
  font-size: 7px !important;
}


.records-detail-section > header > div > strong {
  font-size: 10.5px !important;
}


.records-detail-section > header > div > p {
  margin-top: 2px !important;

  font-size: 8px !important;
}


/* DOCUMENTOS */

.records-documents-list {
  gap: 7px !important;
}


.records-document {
  padding: 8px !important;

  border-radius: 8px !important;
}


.records-document__head {
  grid-template-columns:
    29px
    minmax(
      0,
      1fr
    )
    auto !important;

  gap: 6px !important;
}


.records-document__icon {
  width: 29px !important;
  height: 29px !important;
}


.records-document__icon .icon,
.records-document__icon svg {
  width: 13px !important;
  height: 13px !important;
}


.records-document__copy > span {
  font-size: 6.5px !important;
}


.records-document__copy > strong {
  font-size: 9px !important;
}


.records-document__copy > small {
  margin-top: 2px !important;

  font-size: 7px !important;
}


.records-document__meta {
  gap: 5px !important;

  margin-top: 6px !important;

  padding-top: 6px !important;
}


.records-document__meta > span {
  font-size: 7px !important;
}


.records-document__description {
  margin-top: 6px !important;

  font-size: 8px !important;
}


.records-document__file {
  margin-top: 6px !important;

  padding:
    6px
    7px !important;

  font-size: 7.5px !important;
}


.records-document__notes {
  margin-top: 6px !important;

  padding:
    6px
    7px !important;
}


.records-document__notes p {
  font-size: 8px !important;
}


.records-document__actions {
  gap: 4px !important;

  margin-top: 6px !important;

  padding-top: 6px !important;
}


/* HISTORY */

.records-history-list {
  gap: 6px !important;

  padding: 8px !important;
}


.records-history-item {
  grid-template-columns:
    30px
    minmax(
      0,
      1fr
    ) !important;

  gap: 7px !important;

  padding: 8px !important;

  border-radius: 8px !important;
}


.records-history-item__icon {
  width: 30px !important;
  height: 30px !important;
}


.records-history-item__copy > div:first-child strong {
  font-size: 8.5px !important;
}


.records-history-item__copy > div:first-child span,
.records-history-item__copy > small,
.records-history-item__copy > footer span {
  font-size: 7px !important;
}


.records-history-item__copy > p {
  margin-top: 5px !important;

  font-size: 8.5px !important;
}


.records-history-item__copy > em {
  margin-top: 5px !important;

  font-size: 8px !important;
}


/* MOBILE */

@media (max-width: 620px) {
  .records-page {
    gap: 4px !important;
    padding: 3px !important;
  }


  .records-head {
    padding: 7px !important;
  }


  .records-brand {
    grid-template-columns:
      32px
      minmax(
        0,
        1fr
      ) !important;

    gap: 6px !important;
  }


  .records-brand__icon {
    width: 32px !important;
    height: 32px !important;

    min-width: 32px !important;
  }


  .records-brand h2 {
    font-size: 17px !important;
  }


  .records-brand p {
    font-size: 8px !important;
  }


  .records-btn {
    min-height: 30px !important;

    font-size: 8.5px !important;
  }


  .records-metric,
  .records-metric:nth-child(2n),
  .records-metric:nth-child(3n),
  .records-metric:nth-last-child(-n + 2),
  .records-metric:nth-last-child(-n + 3) {
    min-height: 58px !important;

    grid-template-columns:
      25px
      minmax(
        0,
        1fr
      )
      12px !important;

    gap: 5px !important;

    padding: 6px !important;
  }


  .records-metric__icon {
    width: 25px !important;
    height: 25px !important;

    min-width: 25px !important;
  }


  .records-metric__copy strong {
    font-size: 14px !important;
  }


  .records-metric__copy small,
  .records-metric__copy em {
    font-size: 6.5px !important;
  }


  .records-filters__head {
    padding: 7px !important;
  }


  .records-search-row {
    padding: 6px !important;
  }


  .records-search input {
    height: 31px !important;
  }


  .records-filter-field {
    min-height: 52px !important;

    padding:
      6px
      7px !important;
  }


  .records-table tbody {
    gap: 5px !important;

    padding: 5px !important;
  }


  .records-table tbody tr {
    border-radius: 7px !important;
  }


  .records-table tbody td,
  .records-table tbody td:nth-child(2n) {
    min-height: 45px !important;

    padding:
      6px
      7px !important;
  }


  .records-modal__head {
    min-height: 54px !important;

    padding:
      7px
      8px !important;
  }


  .records-modal__brand {
    grid-template-columns:
      30px
      minmax(
        0,
        1fr
      ) !important;
  }


  .records-modal__icon {
    width: 30px !important;
    height: 30px !important;

    min-width: 30px !important;
  }


  .records-modal__brand h3 {
    font-size: 12px !important;
  }


  .records-form-section {
    padding: 8px !important;
  }


  .records-form-section__title {
    grid-template-columns:
      26px
      minmax(
        0,
        1fr
      ) !important;
  }


  .records-form-section__icon {
    width: 26px !important;
    height: 26px !important;

    min-width: 26px !important;
  }


  .records-field {
    min-height: 50px !important;

    padding:
      6px
      7px !important;
  }


  .records-detail-section {
    padding: 8px !important;
  }


  .records-document {
    padding: 7px !important;
  }
}


/* MOBILE MUY CHICO */

@media (max-width: 390px) {
  .records-page {
    padding: 2px !important;
  }


  .records-head {
    padding: 6px !important;
  }


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


  .records-metric,
  .records-metric:nth-child(2n),
  .records-metric:nth-child(3n),
  .records-metric:nth-last-child(-n + 2),
  .records-metric:nth-last-child(-n + 3) {
    min-height: 54px !important;
  }
}/* =========================================================
   LEGAJOS · AJUSTE INTERMEDIO
   UN POCO MÁS GRANDE QUE EL ÚLTIMO
   PEGAR AL FINAL DEL CSS
   ========================================================= */

.records-page {
  gap: 7px !important;
  padding: 6px !important;
}


/* HEADER */

.records-head {
  min-height: 92px !important;

  gap: 13px !important;

  padding:
    12px
    14px !important;
}


.records-brand {
  grid-template-columns:
    42px
    minmax(
      0,
      1fr
    ) !important;

  gap: 10px !important;
}


.records-brand__icon {
  width: 42px !important;
  height: 42px !important;

  min-width: 42px !important;
}


.records-brand h2 {
  font-size:
    clamp(
      20px,
      1.8vw,
      24px
    ) !important;
}


.records-brand p {
  font-size: 10px !important;
}


/* BOTONES */

.records-btn {
  min-height: 33px !important;

  padding:
    0
    10px !important;

  font-size: 9.5px !important;
}


.records-btn--compact {
  min-height: 29px !important;

  font-size: 9px !important;
}


/* MÉTRICAS */

.records-metric {
  min-height: 82px !important;

  grid-template-columns:
    33px
    minmax(
      0,
      1fr
    )
    16px !important;

  gap: 7px !important;

  padding:
    9px
    10px !important;
}


.records-metric__icon {
  width: 33px !important;
  height: 33px !important;

  min-width: 33px !important;
}


.records-metric__copy small {
  font-size: 7.5px !important;
}


.records-metric__copy strong {
  font-size: 17px !important;
}


.records-metric__copy em {
  font-size: 8px !important;
}


/* FILTROS */

.records-filters__head {
  min-height: 58px !important;

  padding:
    9px
    11px !important;
}


.records-filters__title > span {
  font-size: 7.5px !important;
}


.records-filters__title > strong {
  font-size: 13px !important;
}


.records-filters__title p {
  font-size: 8.5px !important;
}


.records-filters__summary > span {
  min-height: 30px !important;

  font-size: 8.5px !important;
}


.records-search-row {
  padding:
    8px
    10px !important;
}


.records-search input {
  height: 34px !important;

  font-size: 9.5px !important;
}


.records-filter-field {
  min-height: 62px !important;

  padding:
    8px
    9px !important;
}


.records-filter-field > span {
  font-size: 7.5px !important;
}


.records-filter-field select,
.records-filter-field input {
  height: 33px !important;

  font-size: 9.5px !important;
}


/* TABLA */

.records-table th {
  height: 33px !important;

  padding:
    0
    7px !important;

  font-size: 7.5px !important;
}


.records-table td {
  height: 50px !important;

  padding:
    6px
    7px !important;

  font-size: 9px !important;
}


.records-person__avatar {
  width: 28px !important;
  height: 28px !important;

  min-width: 28px !important;
}


.records-person strong {
  font-size: 9.5px !important;
}


.records-person small,
.records-cell-sub,
.records-date {
  font-size: 8px !important;
}


.records-cell-main {
  font-size: 9px !important;
}


.records-state {
  min-height: 23px !important;

  font-size: 7.5px !important;
}


.records-row-actions .records-icon-btn {
  width: 26px !important;
  height: 26px !important;

  min-width: 26px !important;
}


/* PAGINACIÓN */

.records-pagination {
  min-height: 43px !important;

  padding:
    7px
    9px !important;
}


.records-pagination__info,
.records-pagination__page {
  font-size: 8.5px !important;
}


/* MODAL */

.records-modal__head {
  min-height: 62px !important;

  padding:
    10px
    11px !important;
}


.records-modal__brand {
  grid-template-columns:
    36px
    minmax(
      0,
      1fr
    ) !important;
}


.records-modal__icon {
  width: 36px !important;
  height: 36px !important;

  min-width: 36px !important;
}


.records-modal__brand > div > span {
  font-size: 7.5px !important;
}


.records-modal__brand h3 {
  font-size: 14px !important;
}


.records-modal__brand p {
  font-size: 8.5px !important;
}


.records-modal__close {
  width: 29px !important;
  height: 29px !important;

  min-width: 29px !important;
}


/* FORMULARIO */

.records-form-section {
  padding: 11px !important;
}


.records-form-section__title {
  grid-template-columns:
    31px
    minmax(
      0,
      1fr
    ) !important;

  gap: 8px !important;

  margin-bottom: 9px !important;

  padding-bottom: 8px !important;
}


.records-form-section__icon {
  width: 31px !important;
  height: 31px !important;

  min-width: 31px !important;
}


.records-form-section__title > div > span {
  font-size: 7.5px !important;
}


.records-form-section__title > div > strong {
  font-size: 10.5px !important;
}


.records-field {
  min-height: 58px !important;

  padding:
    7px
    8px !important;
}


.records-field > span {
  font-size: 7.5px !important;
}


.records-field input,
.records-field select,
.records-field textarea {
  font-size: 9.5px !important;
}


.records-field input,
.records-field select {
  min-height: 29px !important;
}


.records-field textarea {
  min-height: 68px !important;
}


/* DETALLE */

.records-detail-summary article {
  padding: 10px !important;
}


.records-detail-summary small {
  font-size: 7.5px !important;
}


.records-detail-summary strong {
  font-size: 14px !important;
}


.records-personal-info article {
  padding:
    9px
    10px !important;
}


.records-personal-info article > span {
  font-size: 7.5px !important;
}


.records-personal-info article > strong {
  font-size: 9.5px !important;
}


/* DOCUMENTOS */

.records-document {
  padding: 9px !important;
}


.records-document__head {
  grid-template-columns:
    31px
    minmax(
      0,
      1fr
    )
    auto !important;
}


.records-document__icon {
  width: 31px !important;
  height: 31px !important;
}


.records-document__copy > span {
  font-size: 7px !important;
}


.records-document__copy > strong {
  font-size: 9.5px !important;
}


.records-document__copy > small {
  font-size: 7.5px !important;
}


/* MOBILE */

@media (max-width: 620px) {
  .records-page {
    gap: 5px !important;
    padding: 4px !important;
  }


  .records-head {
    padding: 8px !important;
  }


  .records-brand {
    grid-template-columns:
      35px
      minmax(
        0,
        1fr
      ) !important;

    gap: 7px !important;
  }


  .records-brand__icon {
    width: 35px !important;
    height: 35px !important;

    min-width: 35px !important;
  }


  .records-brand h2 {
    font-size: 18px !important;
  }


  .records-brand p {
    font-size: 8.5px !important;
  }


  .records-btn {
    min-height: 32px !important;

    font-size: 9px !important;
  }


  .records-metric,
  .records-metric:nth-child(2n),
  .records-metric:nth-child(3n),
  .records-metric:nth-last-child(-n + 2),
  .records-metric:nth-last-child(-n + 3) {
    min-height: 63px !important;

    grid-template-columns:
      27px
      minmax(
        0,
        1fr
      )
      13px !important;

    gap: 6px !important;

    padding: 7px !important;
  }


  .records-metric__icon {
    width: 27px !important;
    height: 27px !important;

    min-width: 27px !important;
  }


  .records-metric__copy strong {
    font-size: 15px !important;
  }


  .records-metric__copy small,
  .records-metric__copy em {
    font-size: 7px !important;
  }


  .records-search input {
    height: 33px !important;
  }


  .records-filter-field {
    min-height: 56px !important;
  }


  .records-table tbody {
    gap: 6px !important;

    padding: 6px !important;
  }


  .records-table tbody td,
  .records-table tbody td:nth-child(2n) {
    min-height: 49px !important;

    padding:
      7px
      8px !important;
  }


  .records-modal__head {
    min-height: 57px !important;

    padding:
      8px
      9px !important;
  }


  .records-modal__brand {
    grid-template-columns:
      32px
      minmax(
        0,
        1fr
      ) !important;
  }


  .records-modal__icon {
    width: 32px !important;
    height: 32px !important;

    min-width: 32px !important;
  }


  .records-modal__brand h3 {
    font-size: 13px !important;
  }


  .records-form-section {
    padding: 9px !important;
  }


  .records-field {
    min-height: 54px !important;

    padding:
      7px
      8px !important;
  }
}