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

   WIRTZ HUB · CAPITAL HUMANO · COMPENSACIONES
   PARTE 1 DE 2
   ========================================================= */

/* =========================================================
   PAGE
   ========================================================= */

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

  display: flex;
  flex-direction: column;

  gap: 10px;

  padding: 8px;

  color: var(--text);
  background: var(--background);
}

/* =========================================================
   CONTENEDOR GLOBAL
   ========================================================= */

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

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

  padding: 0 !important;

  overflow-x: hidden !important;
}

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

  overflow-x: hidden;
}

/* =========================================================
   ICONOS
   ========================================================= */

.compensations-page .icon,
.compensations-modal .icon,
.compensations-toast .icon {
  width: 17px;
  height: 17px;

  stroke-width: 1.9;

  flex: 0 0 auto;
}

/* =========================================================
   HEADER
   ========================================================= */

.compensations-head {
  width: 100%;
  min-width: 0;

  display: grid;

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

  align-items: center;

  gap: 18px;

  padding: 16px;

  border: 1px solid var(--border);
  border-radius: 14px;

  background: var(--panel);

  overflow: hidden;
}

/* =========================================================
   HEADER · BRAND
   ========================================================= */

.compensations-brand {
  min-width: 0;

  display: flex;
  align-items: center;

  gap: 14px;
}

.compensations-brand__icon {
  width: 52px;
  height: 52px;

  flex: 0 0 52px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--border);
  border-radius: 12px;

  background: var(--background);
  color: var(--text);
}

.compensations-brand__icon .icon {
  width: 23px;
  height: 23px;
}

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

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

  margin-bottom: 4px;

  color: var(--muted);

  font-size: 10px;
  font-weight: 750;

  line-height: 1.2;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}

.compensations-brand h2 {
  margin: 0;

  color: var(--text);

  font-size: clamp(22px, 2vw, 28px);
  font-weight: 760;

  line-height: 1.08;

  letter-spacing: -0.035em;
}

.compensations-brand p {
  max-width: 620px;

  margin: 7px 0 0;

  color: var(--muted);

  font-size: 12px;
  font-weight: 500;

  line-height: 1.45;
}

/* =========================================================
   HEADER · STATUS
   ========================================================= */

.compensations-head__status {
  display: flex;
  align-items: stretch;

  gap: 7px;
}

.compensations-head-status {
  min-width: 120px;

  display: flex;
  align-items: center;

  gap: 9px;

  padding: 9px 11px;

  border: 1px solid var(--border);
  border-radius: 10px;

  background: var(--background);
}

.compensations-head-status > .icon {
  width: 16px;
  height: 16px;

  color: var(--muted);
}

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

  display: flex;
  flex-direction: column;

  gap: 1px;
}

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

  font-size: 9px;
  font-weight: 700;

  line-height: 1.2;

  letter-spacing: 0.055em;

  text-transform: uppercase;
}

.compensations-head-status strong {
  max-width: 160px;

  overflow: hidden;

  color: var(--text);

  font-size: 11px;
  font-weight: 720;

  line-height: 1.3;

  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================================================
   HEADER · ACTIONS
   ========================================================= */

.compensations-head__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 7px;

  flex-wrap: wrap;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.compensations-btn {
  min-height: 36px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  padding: 0 12px;

  border: 1px solid var(--border);
  border-radius: 9px;

  background: var(--panel);
  color: var(--text);

  font: inherit;

  font-size: 11px;
  font-weight: 700;

  line-height: 1;

  cursor: pointer;

  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.compensations-btn:hover:not(:disabled) {
  background: var(--background);

  border-color: color-mix(
    in srgb,
    var(--text) 22%,
    var(--border)
  );
}

.compensations-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.compensations-btn:disabled {
  opacity: 0.42;

  cursor: not-allowed;
}

.compensations-btn--dark {
  border-color: #0a0a0a;

  background: #0a0a0a;
  color: #ffffff;
}

.compensations-btn--dark:hover:not(:disabled) {
  border-color: #1d1d1d;

  background: #1d1d1d;
}

.compensations-btn--compact {
  min-height: 32px;

  padding-inline: 10px;
}

.compensations-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.compensations-btn__arrow {
  width: 14px !important;
  height: 14px !important;

  opacity: 0.7;
}

/* =========================================================
   DARK MODE · BUTTON
   ========================================================= */

:root[data-theme="dark"] .compensations-btn--dark,
[data-theme="dark"] .compensations-btn--dark {
  border-color: #f0f0f0;

  background: #f0f0f0;
  color: #090909;
}

:root[data-theme="dark"] .compensations-btn--dark:hover:not(:disabled),
[data-theme="dark"] .compensations-btn--dark:hover:not(:disabled) {
  border-color: #ffffff;

  background: #ffffff;
}

/* =========================================================
   MÉTRICAS
   ========================================================= */

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

  display: grid;

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

  border: 1px solid var(--border);
  border-radius: 14px;

  background: var(--panel);

  overflow: hidden;
}

.compensations-metric {
  position: relative;

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

  display: grid;

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

  align-items: center;

  gap: 9px;

  padding: 13px;

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

  background: transparent;
  color: var(--text);

  font: inherit;

  text-align: left;

  cursor: pointer;

  transition:
    background 0.16s ease,
    color 0.16s ease;
}

.compensations-metric:last-child {
  border-right: 0;
}

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

.compensations-metric.is-active {
  background: var(--background);
}

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

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--border);
  border-radius: 9px;

  background: var(--panel);
  color: var(--text);
}

.compensations-metric__icon .icon {
  width: 18px;
  height: 18px;
}

.compensations-metric__copy {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 3px;
}

.compensations-metric__copy small {
  overflow: hidden;

  color: var(--muted);

  font-size: 9px;
  font-weight: 750;

  line-height: 1.2;

  letter-spacing: 0.075em;

  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.compensations-metric__copy strong {
  overflow: hidden;

  color: var(--text);

  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 760;

  line-height: 1.18;

  letter-spacing: -0.025em;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.compensations-metric__copy em {
  overflow: hidden;

  color: var(--muted);

  font-size: 10px;
  font-style: normal;
  font-weight: 500;

  line-height: 1.25;

  text-overflow: ellipsis;
  white-space: nowrap;
}

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

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: var(--muted);

  opacity: 0.7;
}

.compensations-metric__arrow .icon {
  width: 14px;
  height: 14px;
}

/* =========================================================
   MÉTRICAS · TONOS
   ========================================================= */

.compensations-metric--masa.is-active .compensations-metric__icon,
.compensations-metric--promedio.is-active .compensations-metric__icon,
.compensations-metric--adicionales.is-active .compensations-metric__icon,
.compensations-metric--bonos.is-active .compensations-metric__icon,
.compensations-metric--descuentos.is-active .compensations-metric__icon,
.compensations-metric--activos.is-active .compensations-metric__icon {
  border-color: color-mix(
    in srgb,
    var(--text) 24%,
    var(--border)
  );
}

/* =========================================================
   TABS
   ========================================================= */

.compensations-tabs {
  width: 100%;

  display: flex;
  align-items: center;

  gap: 5px;

  padding: 4px;

  border: 1px solid var(--border);
  border-radius: 10px;

  background: var(--panel);
}

.compensations-tab {
  min-height: 32px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  padding: 0 11px;

  border: 1px solid transparent;
  border-radius: 7px;

  background: transparent;
  color: var(--muted);

  font: inherit;

  font-size: 11px;
  font-weight: 700;

  cursor: pointer;

  transition:
    background 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease;
}

.compensations-tab:hover {
  color: var(--text);

  background: var(--background);
}

.compensations-tab.is-active {
  border-color: var(--border);

  background: var(--background);
  color: var(--text);
}

/* =========================================================
   PANEL
   ========================================================= */

.compensations-panel,
.compensations-adjustments-panel {
  width: 100%;
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 0;

  border: 1px solid var(--border);
  border-radius: 14px;

  background: var(--panel);

  overflow: hidden;
}

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

.compensations-filters {
  width: 100%;

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

  background: var(--panel);
}

/* =========================================================
   FILTROS · HEAD
   ========================================================= */

.compensations-filters__head {
  min-height: 70px;

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

  gap: 16px;

  padding: 13px 14px;
}

.compensations-filters__title {
  min-width: 0;
}

.compensations-filters__title > span {
  display: block;

  margin-bottom: 3px;

  color: var(--muted);

  font-size: 9px;
  font-weight: 750;

  line-height: 1.2;

  letter-spacing: 0.11em;

  text-transform: uppercase;
}

.compensations-filters__title > strong {
  display: block;

  color: var(--text);

  font-size: 15px;
  font-weight: 750;

  line-height: 1.25;
}

.compensations-filters__title p {
  margin: 4px 0 0;

  color: var(--muted);

  font-size: 10px;
  font-weight: 500;

  line-height: 1.4;
}

.compensations-filters__summary {
  display: flex;
  align-items: center;

  gap: 10px;
}

.compensations-filters__summary > span {
  display: inline-flex;
  align-items: center;

  gap: 6px;

  color: var(--muted);

  font-size: 10px;
  font-weight: 600;
}

.compensations-filters__summary > span strong {
  min-width: 22px;
  height: 22px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding-inline: 5px;

  border: 1px solid var(--border);
  border-radius: 6px;

  background: var(--background);
  color: var(--text);

  font-size: 10px;
}

/* =========================================================
   SEARCH
   ========================================================= */

.compensations-search-row {
  display: grid;

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

  gap: 7px;

  padding: 0 14px 13px;
}

.compensations-search {
  position: relative;

  min-width: 0;

  display: flex;
  align-items: center;
}

.compensations-search > .icon {
  position: absolute;

  left: 12px;

  width: 15px;
  height: 15px;

  color: var(--muted);

  pointer-events: none;
}

.compensations-search input {
  width: 100%;
  min-width: 0;
  height: 38px;

  padding:
    0
    38px
    0
    36px;

  border: 1px solid var(--border);
  border-radius: 9px;

  outline: none;

  background: var(--background);
  color: var(--text);

  font: inherit;

  font-size: 11px;
  font-weight: 520;

  transition:
    border-color 0.16s ease,
    background 0.16s ease;
}

.compensations-search input::placeholder {
  color: var(--muted);

  opacity: 0.75;
}

.compensations-search input:focus {
  border-color: color-mix(
    in srgb,
    var(--text) 28%,
    var(--border)
  );
}

.compensations-search button {
  position: absolute;

  right: 7px;

  width: 26px;
  height: 26px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 6px;

  background: transparent;
  color: var(--muted);

  cursor: pointer;
}

.compensations-search button:hover {
  background: var(--panel);
  color: var(--text);
}

/* =========================================================
   FILTROS · BODY
   ========================================================= */

.compensations-filters__body {
  display: none;

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

  background: var(--background);
}

.compensations-filters.is-open .compensations-filters__body {
  display: block;
}

.compensations-filters-grid {
  display: grid;

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

  gap: 10px;

  padding: 13px 14px;
}

/* =========================================================
   FILTER FIELD
   ========================================================= */

.compensations-filter-field,
.compensations-field {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 5px;
}

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

  font-size: 9px;
  font-weight: 700;

  line-height: 1.2;

  letter-spacing: 0.045em;

  text-transform: uppercase;
}

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

  border: 1px solid var(--border);
  border-radius: 8px;

  outline: none;

  background: var(--panel);
  color: var(--text);

  font: inherit;

  font-size: 11px;
  font-weight: 520;

  transition:
    border-color 0.16s ease,
    background 0.16s ease;
}

.compensations-filter-field select,
.compensations-field select,
.compensations-field input {
  height: 36px;

  padding: 0 10px;
}

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

  padding: 10px;

  line-height: 1.45;

  resize: vertical;
}

.compensations-filter-field select:focus,
.compensations-field select:focus,
.compensations-field input:focus,
.compensations-field textarea:focus {
  border-color: color-mix(
    in srgb,
    var(--text) 28%,
    var(--border)
  );
}

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

/* =========================================================
   FILTROS · FOOTER
   ========================================================= */

.compensations-filters__footer {
  min-height: 50px;

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

  gap: 12px;

  padding: 10px 14px;

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

.compensations-filters__footer > span {
  display: inline-flex;
  align-items: center;

  gap: 6px;

  color: var(--muted);

  font-size: 10px;
  font-weight: 500;
}

/* =========================================================
   TABLA
   ========================================================= */

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

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

.compensations-table {
  width: 100%;
  min-width: 1180px;

  border-collapse: collapse;
  border-spacing: 0;

  table-layout: auto;
}

.compensations-table th,
.compensations-table td {
  border-bottom: 1px solid var(--border);

  text-align: left;
  vertical-align: middle;
}

.compensations-table th {
  height: 42px;

  padding: 0 10px;

  background: var(--background);
  color: var(--muted);

  font-size: 9px;
  font-weight: 750;

  line-height: 1.2;

  letter-spacing: 0.045em;

  text-transform: uppercase;

  white-space: nowrap;
}

.compensations-table td {
  height: 58px;

  padding: 8px 10px;

  background: var(--panel);
  color: var(--text);

  font-size: 11px;
}

.compensations-table tbody tr {
  transition:
    background 0.14s ease;
}

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

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

/* =========================================================
   PERSON
   ========================================================= */

.compensations-person {
  min-width: 180px;

  display: flex;
  align-items: center;

  gap: 9px;
}

.compensations-person__avatar {
  width: 32px;
  height: 32px;

  flex: 0 0 32px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--border);
  border-radius: 8px;

  background: var(--background);
  color: var(--text);

  font-size: 9px;
  font-weight: 760;

  letter-spacing: 0.035em;
}

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

.compensations-person strong {
  display: block;

  max-width: 180px;

  overflow: hidden;

  color: var(--text);

  font-size: 11px;
  font-weight: 720;

  line-height: 1.3;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.compensations-person small {
  display: block;

  margin-top: 2px;

  color: var(--muted);

  font-size: 9px;
  font-weight: 550;

  line-height: 1.3;
}

/* =========================================================
   TABLE CELLS
   ========================================================= */

.compensations-cell-main {
  display: block;

  max-width: 150px;

  overflow: hidden;

  color: var(--text);

  font-size: 10px;
  font-weight: 570;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.compensations-money {
  display: inline-block;

  color: var(--text);

  font-size: 10px;
  font-weight: 650;

  white-space: nowrap;
}

.compensations-money--positive,
.compensations-money--bonus {
  color: var(--text);
}

.compensations-money--negative {
  color: var(--muted);
}

.compensations-total {
  display: inline-block;

  color: var(--text);

  font-size: 11px;
  font-weight: 780;

  white-space: nowrap;
}

/* =========================================================
   ESTADO
   ========================================================= */

.compensations-state {
  min-height: 25px;

  display: inline-flex;
  align-items: center;

  gap: 5px;

  padding: 0 7px;

  border: 1px solid var(--border);
  border-radius: 999px;

  background: var(--background);
  color: var(--text);

  font-size: 9px;
  font-weight: 700;

  white-space: nowrap;
}

.compensations-state .icon {
  width: 12px;
  height: 12px;
}

.compensations-state--inactiva,
.compensations-state--vencida {
  color: var(--muted);
}

/* =========================================================
   DATE
   ========================================================= */

.compensations-date {
  display: inline-flex;
  align-items: center;

  gap: 5px;

  color: var(--muted);

  font-size: 9px;
  font-weight: 600;

  white-space: nowrap;
}

.compensations-date .icon {
  width: 13px;
  height: 13px;
}

/* =========================================================
   ROW ACTIONS
   ========================================================= */

.compensations-row-actions {
  display: flex;
  align-items: center;

  gap: 4px;

  white-space: nowrap;
}

.compensations-icon-btn {
  width: 28px;
  height: 28px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 1px solid var(--border);
  border-radius: 7px;

  background: var(--panel);
  color: var(--muted);

  cursor: pointer;

  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.compensations-icon-btn:hover {
  border-color: color-mix(
    in srgb,
    var(--text) 24%,
    var(--border)
  );

  background: var(--background);
  color: var(--text);
}

.compensations-icon-btn--danger:hover {
  color: #b42318;

  border-color: color-mix(
    in srgb,
    #b42318 36%,
    var(--border)
  );
}

.compensations-icon-btn .icon {
  width: 14px;
  height: 14px;
}

/* =========================================================
   LOADING / EMPTY / ERROR
   ========================================================= */

.compensations-table-message {
  padding: 0 !important;
}

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

  min-height: 220px;

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

  gap: 7px;

  padding: 28px;

  text-align: center;
}

.compensations-loading > span,
.compensations-empty > span {
  width: 40px;
  height: 40px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--border);
  border-radius: 10px;

  background: var(--background);
  color: var(--text);
}

.compensations-loading strong,
.compensations-empty strong {
  color: var(--text);

  font-size: 13px;
  font-weight: 730;
}

.compensations-loading p,
.compensations-empty p {
  max-width: 420px;

  margin: 0;

  color: var(--muted);

  font-size: 10px;
  font-weight: 500;

  line-height: 1.45;
}

.compensations-empty .compensations-btn {
  margin-top: 5px;
}

.compensations-empty--error > span {
  color: #b42318;
}

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

.compensations-pagination {
  min-height: 54px;

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

  gap: 12px;

  padding: 9px 13px;

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

  background: var(--panel);
}

.compensations-pagination__info {
  display: flex;
  align-items: center;

  gap: 4px;

  color: var(--muted);

  font-size: 10px;
}

.compensations-pagination__info strong {
  color: var(--text);

  font-weight: 720;
}

.compensations-pagination__actions {
  display: flex;
  align-items: center;

  gap: 7px;
}

.compensations-pagination__page {
  padding: 0 5px;

  color: var(--muted);

  font-size: 10px;

  white-space: nowrap;
}

.compensations-pagination__page strong {
  color: var(--text);
}

/* =========================================================
   AJUSTES MASIVOS · HEAD
   ========================================================= */

.compensations-adjustments-head {
  min-height: 74px;

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

  gap: 14px;

  padding: 13px 14px;

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

.compensations-adjustments-head > div > span {
  display: block;

  margin-bottom: 3px;

  color: var(--muted);

  font-size: 9px;
  font-weight: 750;

  letter-spacing: 0.11em;

  text-transform: uppercase;
}

.compensations-adjustments-head > div > strong {
  display: block;

  color: var(--text);

  font-size: 15px;
  font-weight: 750;
}

.compensations-adjustments-head p {
  margin: 4px 0 0;

  color: var(--muted);

  font-size: 10px;
}

/* =========================================================
   AJUSTES · LIST
   ========================================================= */

.compensations-adjustments-list {
  width: 100%;

  display: grid;

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

  gap: 9px;

  padding: 12px;
}

.compensations-adjustment-card {
  min-width: 0;

  display: grid;

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

  gap: 10px;

  padding: 12px;

  border: 1px solid var(--border);
  border-radius: 10px;

  background: var(--background);
}

.compensations-adjustment-card__icon {
  width: 38px;
  height: 38px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--border);
  border-radius: 9px;

  background: var(--panel);
  color: var(--text);
}

.compensations-adjustment-card__content {
  min-width: 0;
}

.compensations-adjustment-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 12px;
}

.compensations-adjustment-card__head > div {
  min-width: 0;
}

.compensations-adjustment-card__head strong {
  display: block;

  overflow: hidden;

  color: var(--text);

  font-size: 11px;
  font-weight: 740;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.compensations-adjustment-card__head span {
  display: block;

  margin-top: 2px;

  color: var(--muted);

  font-size: 9px;
}

.compensations-adjustment-card__value {
  flex: 0 0 auto;

  margin: 0 !important;

  color: var(--text) !important;

  font-size: 14px !important;
  font-weight: 760 !important;

  white-space: nowrap;
}

.compensations-adjustment-card__meta {
  display: flex;
  align-items: center;

  gap: 9px;

  flex-wrap: wrap;

  margin-top: 9px;
}

.compensations-adjustment-card__meta span {
  display: inline-flex;
  align-items: center;

  gap: 4px;

  color: var(--muted);

  font-size: 9px;
  font-weight: 550;
}

.compensations-adjustment-card__meta .icon {
  width: 12px;
  height: 12px;
}

.compensations-adjustment-card__content > p {
  margin: 9px 0 0;

  color: var(--muted);

  font-size: 10px;

  line-height: 1.45;
}

/* =========================================================
   ANIMACIONES
   ========================================================= */

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

.compensations-spin {
  animation: compensationsSpin 0.8s linear infinite;
}

@keyframes compensationsFadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.compensations-page {
  animation: compensationsFadeIn 0.2s ease both;
}

/* =========================================================
   CONTINÚA EN PARTE 2

   - Modales
   - Formularios
   - Detalle
   - Conceptos
   - Historial
   - Toast
   - Dark mode
   - Responsive completo
   - Tabla móvil tipo cards
   ========================================================= */
   /* =========================================================
   WIRTZ HUB · CAPITAL HUMANO · COMPENSACIONES
   PARTE 2 DE 2

   CONTINÚA DESPUÉS DE:
   @keyframes compensationsFadeIn
   ========================================================= */

/* =========================================================
   MODAL · BACKDROP
   ========================================================= */

.compensations-modal-backdrop {
  position: fixed;
  inset: 0;

  z-index: 9999;

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

  padding: 20px;

  background: rgba(0, 0, 0, 0.72);
}

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

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

.compensations-modal {
  width: min(1040px, 100%);
  max-height: calc(100vh - 40px);

  display: flex;
  flex-direction: column;

  border: 1px solid var(--border);
  border-radius: 14px;

  background: var(--panel);
  color: var(--text);

  overflow: hidden;

  box-shadow: none;

  animation: compensationsModalIn 0.18s ease both;
}

.compensations-modal--small {
  width: min(760px, 100%);
}

.compensations-modal--detail {
  width: min(980px, 100%);
}

.compensations-modal--history {
  width: min(820px, 100%);
}

@keyframes compensationsModalIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.995);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =========================================================
   MODAL · HEAD
   ========================================================= */

.compensations-modal__head {
  min-height: 82px;

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

  gap: 16px;

  padding: 14px 16px;

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

  background: var(--panel);
}

.compensations-modal__brand {
  min-width: 0;

  display: flex;
  align-items: center;

  gap: 12px;
}

.compensations-modal__icon {
  width: 42px;
  height: 42px;

  flex: 0 0 42px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--border);
  border-radius: 10px;

  background: var(--background);
  color: var(--text);
}

.compensations-modal__icon .icon {
  width: 19px;
  height: 19px;
}

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

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

  margin-bottom: 3px;

  color: var(--muted);

  font-size: 9px;
  font-weight: 750;

  letter-spacing: 0.11em;

  text-transform: uppercase;
}

.compensations-modal__brand h3 {
  margin: 0;

  color: var(--text);

  font-size: 17px;
  font-weight: 760;

  line-height: 1.2;

  letter-spacing: -0.02em;
}

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

  color: var(--muted);

  font-size: 10px;
  font-weight: 500;

  line-height: 1.4;
}

.compensations-modal__close {
  width: 32px;
  height: 32px;

  flex: 0 0 32px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 1px solid var(--border);
  border-radius: 8px;

  background: var(--background);
  color: var(--muted);

  cursor: pointer;

  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.compensations-modal__close:hover {
  background: var(--panel);
  color: var(--text);

  border-color: color-mix(
    in srgb,
    var(--text) 24%,
    var(--border)
  );
}

/* =========================================================
   FORM
   ========================================================= */

.compensations-form {
  min-height: 0;

  display: flex;
  flex-direction: column;

  overflow-y: auto;
}

.compensations-form-section {
  padding: 15px 16px;

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

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

.compensations-form-section__title {
  display: flex;
  align-items: center;

  gap: 10px;

  margin-bottom: 13px;
}

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

  flex: 0 0 34px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--border);
  border-radius: 8px;

  background: var(--background);
  color: var(--text);
}

.compensations-form-section__icon .icon {
  width: 15px;
  height: 15px;
}

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

  margin-bottom: 2px;

  color: var(--muted);

  font-size: 8px;
  font-weight: 750;

  letter-spacing: 0.1em;

  text-transform: uppercase;
}

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

  color: var(--text);

  font-size: 12px;
  font-weight: 730;
}

/* =========================================================
   FORM GRID
   ========================================================= */

.compensations-form-grid {
  display: grid;

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

  gap: 10px;
}

/* =========================================================
   FIELD STATES
   ========================================================= */

.compensations-field input:disabled,
.compensations-field select:disabled,
.compensations-field textarea:disabled {
  opacity: 0.58;

  cursor: not-allowed;
}

.compensations-field input::placeholder,
.compensations-field textarea::placeholder {
  color: var(--muted);

  opacity: 0.7;
}

/* =========================================================
   MODAL · FOOTER
   ========================================================= */

.compensations-modal__footer {
  position: sticky;
  bottom: 0;

  z-index: 2;

  min-height: 64px;

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

  gap: 12px;

  padding: 12px 16px;

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

  background: var(--panel);
}

.compensations-modal__footer > div {
  display: flex;
  align-items: center;

  gap: 7px;

  margin-left: auto;
}

/* =========================================================
   ACTIVE SWITCH
   ========================================================= */

.compensations-active-switch {
  display: inline-flex;
  align-items: center;

  gap: 8px;

  color: var(--text);

  font-size: 10px;
  font-weight: 650;

  cursor: pointer;
}

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

  opacity: 0;
  pointer-events: none;
}

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

  width: 34px;
  height: 19px;

  flex: 0 0 34px;

  border: 1px solid var(--border);
  border-radius: 999px;

  background: var(--background);

  transition:
    background 0.16s ease,
    border-color 0.16s ease;
}

.compensations-active-switch b::after {
  content: "";

  position: absolute;

  top: 3px;
  left: 3px;

  width: 11px;
  height: 11px;

  border-radius: 50%;

  background: var(--muted);

  transition:
    transform 0.16s ease,
    background 0.16s ease;
}

.compensations-active-switch input:checked + b {
  border-color: var(--text);

  background: var(--text);
}

.compensations-active-switch input:checked + b::after {
  transform: translateX(15px);

  background: var(--panel);
}

/* =========================================================
   WARNING
   ========================================================= */

.compensations-modal__warning {
  display: inline-flex;
  align-items: center;

  gap: 6px;

  color: var(--muted);

  font-size: 9px;
  font-weight: 560;

  line-height: 1.35;
}

.compensations-modal__warning .icon {
  width: 14px;
  height: 14px;
}

/* =========================================================
   DETAIL
   ========================================================= */

.compensations-detail {
  min-height: 0;

  display: flex;
  flex-direction: column;

  overflow-y: auto;
}

/* =========================================================
   DETAIL · SUMMARY
   ========================================================= */

.compensations-detail-summary {
  display: grid;

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

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

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

  padding: 13px;

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

  background: var(--background);
}

.compensations-detail-summary article:last-child {
  border-right: 0;
}

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

  margin-bottom: 4px;

  color: var(--muted);

  font-size: 8px;
  font-weight: 750;

  letter-spacing: 0.065em;

  text-transform: uppercase;
}

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

  overflow: hidden;

  color: var(--text);

  font-size: 15px;
  font-weight: 760;

  letter-spacing: -0.02em;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.compensations-detail-summary__total {
  background: var(--panel) !important;
}

.compensations-detail-summary__total strong {
  font-size: 17px;
}

/* =========================================================
   DETAIL · SECTION
   ========================================================= */

.compensations-detail-section {
  padding: 14px 16px;
}

.compensations-detail-section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  margin-bottom: 11px;
}

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

  margin-bottom: 2px;

  color: var(--muted);

  font-size: 8px;
  font-weight: 750;

  letter-spacing: 0.1em;

  text-transform: uppercase;
}

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

  color: var(--text);

  font-size: 13px;
  font-weight: 730;
}

/* =========================================================
   CONCEPTS
   ========================================================= */

.compensations-concepts-list {
  display: grid;

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

  gap: 8px;
}

.compensations-concept {
  min-width: 0;

  display: grid;

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

  align-items: center;

  gap: 9px;

  padding: 10px;

  border: 1px solid var(--border);
  border-radius: 9px;

  background: var(--background);
}

.compensations-concept.is-inactive {
  opacity: 0.55;
}

.compensations-concept__icon {
  width: 34px;
  height: 34px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--border);
  border-radius: 8px;

  background: var(--panel);
  color: var(--text);
}

.compensations-concept__icon .icon {
  width: 15px;
  height: 15px;
}

.compensations-concept__copy {
  min-width: 0;
}

.compensations-concept__copy > span {
  display: block;

  margin-bottom: 2px;

  color: var(--muted);

  font-size: 8px;
  font-weight: 700;

  letter-spacing: 0.055em;

  text-transform: uppercase;
}

.compensations-concept__copy > strong {
  display: block;

  overflow: hidden;

  color: var(--text);

  font-size: 11px;
  font-weight: 720;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.compensations-concept__copy > small {
  display: block;

  margin-top: 3px;

  color: var(--muted);

  font-size: 9px;
  font-weight: 550;
}

.compensations-concept__actions {
  display: flex;
  align-items: center;

  gap: 4px;
}

/* =========================================================
   DETAIL · FOOTER
   ========================================================= */

.compensations-detail-footer {
  min-height: 56px;

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

  gap: 7px;

  padding: 10px 14px;

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

  background: var(--panel);
}

/* =========================================================
   HISTORY
   ========================================================= */

.compensations-history {
  min-height: 0;

  display: flex;
  flex-direction: column;

  overflow-y: auto;
}

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

  gap: 8px;

  padding: 12px;
}

.compensations-history-item {
  display: grid;

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

  gap: 10px;

  padding: 10px;

  border: 1px solid var(--border);
  border-radius: 9px;

  background: var(--background);
}

.compensations-history-item__icon {
  width: 34px;
  height: 34px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--border);
  border-radius: 8px;

  background: var(--panel);
  color: var(--text);
}

.compensations-history-item__icon .icon {
  width: 15px;
  height: 15px;
}

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

.compensations-history-item__copy > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 8px;
}

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

  font-size: 10px;
  font-weight: 730;
}

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

  font-size: 8px;

  white-space: nowrap;
}

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

  margin-top: 4px;

  color: var(--muted);

  font-size: 8px;
}

.compensations-history-item__copy > p {
  display: flex;
  align-items: center;

  gap: 7px;

  margin: 7px 0 0;

  color: var(--text);

  font-size: 10px;
}

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

.compensations-history-item__copy > p .icon {
  width: 12px;
  height: 12px;

  color: var(--muted);
}

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

  margin-top: 6px;

  color: var(--muted);

  font-size: 9px;
  font-style: normal;

  line-height: 1.4;
}

.compensations-history-item__copy > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 8px;

  margin-top: 8px;

  padding-top: 7px;

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

.compensations-history-item__copy > footer span {
  display: inline-flex;
  align-items: center;

  gap: 4px;

  color: var(--muted);

  font-size: 8px;
}

.compensations-history-item__copy > footer .icon {
  width: 11px;
  height: 11px;
}

/* =========================================================
   TOAST
   ========================================================= */

.compensations-toast {
  position: fixed;

  right: 18px;
  bottom: 18px;

  z-index: 12000;

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

  display: flex;
  align-items: center;

  gap: 9px;

  padding: 10px 12px;

  border: 1px solid var(--border);
  border-radius: 9px;

  background: var(--panel);
  color: var(--text);

  font-size: 10px;
  font-weight: 600;

  opacity: 0;

  transform: translateY(8px);

  transition:
    opacity 0.18s ease,
    transform 0.18s ease;

  box-shadow: none;
}

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

  transform: translateY(0);
}

.compensations-toast__icon {
  width: 28px;
  height: 28px;

  flex: 0 0 28px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--border);
  border-radius: 7px;

  background: var(--background);
}

.compensations-toast--error {
  border-color: color-mix(
    in srgb,
    #b42318 28%,
    var(--border)
  );
}

.compensations-toast--error .compensations-toast__icon {
  color: #b42318;
}

/* =========================================================
   DARK MODE
   ========================================================= */

:root[data-theme="dark"] .compensations-page,
[data-theme="dark"] .compensations-page {
  --compensations-black:
    #080808;

  --compensations-panel:
    #0c0c0c;

  --compensations-panel-2:
    #101010;

  --compensations-line:
    #232323;

  color: var(--text);

  background: #080808;
}

:root[data-theme="dark"] .compensations-head,
:root[data-theme="dark"] .compensations-panel,
:root[data-theme="dark"] .compensations-adjustments-panel,
:root[data-theme="dark"] .compensations-tabs,
:root[data-theme="dark"] .compensations-modal,
:root[data-theme="dark"] .compensations-modal__head,
:root[data-theme="dark"] .compensations-modal__footer,
:root[data-theme="dark"] .compensations-detail-footer,
:root[data-theme="dark"] .compensations-pagination,
:root[data-theme="dark"] .compensations-toast,
[data-theme="dark"] .compensations-head,
[data-theme="dark"] .compensations-panel,
[data-theme="dark"] .compensations-adjustments-panel,
[data-theme="dark"] .compensations-tabs,
[data-theme="dark"] .compensations-modal,
[data-theme="dark"] .compensations-modal__head,
[data-theme="dark"] .compensations-modal__footer,
[data-theme="dark"] .compensations-detail-footer,
[data-theme="dark"] .compensations-pagination,
[data-theme="dark"] .compensations-toast {
  background: #0c0c0c;
}

:root[data-theme="dark"] .compensations-brand__icon,
:root[data-theme="dark"] .compensations-head-status,
:root[data-theme="dark"] .compensations-metric:hover,
:root[data-theme="dark"] .compensations-metric.is-active,
:root[data-theme="dark"] .compensations-tab:hover,
:root[data-theme="dark"] .compensations-tab.is-active,
:root[data-theme="dark"] .compensations-search input,
:root[data-theme="dark"] .compensations-filters__body,
:root[data-theme="dark"] .compensations-table th,
:root[data-theme="dark"] .compensations-table tbody tr:hover td,
:root[data-theme="dark"] .compensations-person__avatar,
:root[data-theme="dark"] .compensations-state,
:root[data-theme="dark"] .compensations-adjustment-card,
:root[data-theme="dark"] .compensations-modal__icon,
:root[data-theme="dark"] .compensations-form-section__icon,
:root[data-theme="dark"] .compensations-detail-summary article,
:root[data-theme="dark"] .compensations-concept,
:root[data-theme="dark"] .compensations-history-item,
:root[data-theme="dark"] .compensations-loading > span,
:root[data-theme="dark"] .compensations-empty > span,
:root[data-theme="dark"] .compensations-toast__icon,
[data-theme="dark"] .compensations-brand__icon,
[data-theme="dark"] .compensations-head-status,
[data-theme="dark"] .compensations-metric:hover,
[data-theme="dark"] .compensations-metric.is-active,
[data-theme="dark"] .compensations-tab:hover,
[data-theme="dark"] .compensations-tab.is-active,
[data-theme="dark"] .compensations-search input,
[data-theme="dark"] .compensations-filters__body,
[data-theme="dark"] .compensations-table th,
[data-theme="dark"] .compensations-table tbody tr:hover td,
[data-theme="dark"] .compensations-person__avatar,
[data-theme="dark"] .compensations-state,
[data-theme="dark"] .compensations-adjustment-card,
[data-theme="dark"] .compensations-modal__icon,
[data-theme="dark"] .compensations-form-section__icon,
[data-theme="dark"] .compensations-detail-summary article,
[data-theme="dark"] .compensations-concept,
[data-theme="dark"] .compensations-history-item,
[data-theme="dark"] .compensations-loading > span,
[data-theme="dark"] .compensations-empty > span,
[data-theme="dark"] .compensations-toast__icon {
  background: #090909;
}

/* =========================================================
   RESPONSIVE · 1420
   ========================================================= */

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

  .compensations-head__status {
    display: none;
  }

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

  .compensations-metric {
    border-bottom: 1px solid var(--border);
  }

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

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

/* =========================================================
   RESPONSIVE · 1100
   ========================================================= */

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

    gap: 12px;
  }

  .compensations-head__actions {
    max-width: 330px;
  }

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

  .compensations-adjustments-list {
    grid-template-columns: 1fr;
  }

  .compensations-detail-summary {
    grid-template-columns: repeat(
      3,
      minmax(0, 1fr)
    );
  }

  .compensations-detail-summary article:nth-child(3) {
    border-right: 0;
  }

  .compensations-detail-summary article:nth-child(-n + 3) {
    border-bottom: 1px solid var(--border);
  }

  .compensations-detail-summary__total {
    grid-column: span 2;
  }

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

/* =========================================================
   RESPONSIVE · 820
   ========================================================= */

@media (
  max-width: 820px
) {
  .compensations-page {
    gap: 8px;

    padding: 6px;
  }

  .compensations-head {
    display: flex;
    flex-direction: column;

    align-items: stretch;

    padding: 13px;
  }

  .compensations-brand {
    align-items: flex-start;
  }

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

    flex-basis: 46px;
  }

  .compensations-head__actions {
    max-width: none;

    justify-content: flex-start;
  }

  .compensations-head__actions .compensations-btn {
    flex: 1 1 auto;
  }

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

  .compensations-metric {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

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

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

  .compensations-tabs {
    overflow-x: auto;

    scrollbar-width: none;
  }

  .compensations-tabs::-webkit-scrollbar {
    display: none;
  }

  .compensations-tab {
    flex: 0 0 auto;
  }

  .compensations-filters__head {
    align-items: flex-start;
  }

  .compensations-filters__summary > span {
    display: none;
  }

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

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

  /* =======================================================
     TABLA → CARDS
     ======================================================= */

  .compensations-table-wrap {
    overflow: visible;
  }

  .compensations-table {
    min-width: 0;

    display: block;
  }

  .compensations-table thead {
    display: none;
  }

  .compensations-table tbody {
    display: grid;

    grid-template-columns: 1fr;

    gap: 8px;

    padding: 9px;
  }

  .compensations-table tr {
    display: grid;

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

    gap: 0;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--panel);

    overflow: hidden;
  }

  .compensations-table td {
    min-height: 54px;
    height: auto;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    gap: 5px;

    padding: 9px 10px;

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

    background: var(--panel);
  }

  .compensations-table td::before {
    display: block;

    color: var(--muted);

    font-size: 8px;
    font-weight: 750;

    letter-spacing: 0.06em;

    text-transform: uppercase;
  }

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

  .compensations-table td:nth-child(2)::before {
    content: "Sector";
  }

  .compensations-table td:nth-child(3)::before {
    content: "Puesto";
  }

  .compensations-table td:nth-child(4)::before {
    content: "Sueldo base";
  }

  .compensations-table td:nth-child(5)::before {
    content: "Adicionales";
  }

  .compensations-table td:nth-child(6)::before {
    content: "Bonos";
  }

  .compensations-table td:nth-child(7)::before {
    content: "Descuentos";
  }

  .compensations-table td:nth-child(8)::before {
    content: "Total";
  }

  .compensations-table td:nth-child(9)::before {
    content: "Estado";
  }

  .compensations-table td:nth-child(10)::before {
    content: "Vigencia";
  }

  .compensations-table td:nth-child(11)::before {
    content: "Acciones";
  }

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

  .compensations-table td:nth-last-child(-n + 1) {
    border-bottom: 0;
  }

  .compensations-table td:last-child {
    grid-column: 1 / -1;

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

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

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

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

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

    justify-content: flex-start;

    flex-wrap: wrap;
  }

  .compensations-pagination {
    flex-direction: column;

    align-items: stretch;
  }

  .compensations-pagination__actions {
    justify-content: space-between;
  }

  /* =======================================================
     MODAL → BOTTOM SHEET
     ======================================================= */

  .compensations-modal-backdrop {
    align-items: flex-end;

    padding: 0;
  }

  .compensations-modal,
  .compensations-modal--small,
  .compensations-modal--detail,
  .compensations-modal--history {
    width: 100%;
    max-height: 92vh;

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

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

  .compensations-modal__head {
    padding: 12px 13px;
  }

  .compensations-form-section {
    padding: 13px;
  }

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

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

  .compensations-modal__footer {
    align-items: stretch;

    flex-direction: column;
  }

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

    margin-left: 0;
  }

  .compensations-modal__footer > div .compensations-btn {
    flex: 1;
  }

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

  .compensations-detail-summary article {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .compensations-detail-summary article:nth-child(2n) {
    border-right: 0;
  }

  .compensations-detail-summary__total {
    grid-column: 1 / -1;

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

  .compensations-concepts-list {
    grid-template-columns: 1fr;
  }

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

    flex-direction: column;
  }

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

/* =========================================================
   RESPONSIVE · 620
   ========================================================= */

@media (
  max-width: 620px
) {
  .compensations-page {
    padding: 5px;
  }

  .compensations-head {
    border-radius: 11px;
  }

  .compensations-brand {
    gap: 10px;
  }

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

    flex-basis: 42px;

    border-radius: 9px;
  }

  .compensations-brand h2 {
    font-size: 21px;
  }

  .compensations-brand p {
    font-size: 10px;
  }

  .compensations-head__actions {
    display: grid;

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

    width: 100%;
  }

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

  .compensations-head__actions .compensations-btn:last-child {
    grid-column: 1 / -1;
  }

  .compensations-metrics {
    grid-template-columns: 1fr;

    border-radius: 11px;
  }

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

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

    padding: 10px;

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

  .compensations-metric:last-child {
    border-bottom: 0 !important;
  }

  .compensations-metric__icon {
    width: 34px;
    height: 34px;
  }

  .compensations-metric__copy strong {
    font-size: 15px;
  }

  .compensations-filters__head {
    flex-direction: column;

    gap: 9px;
  }

  .compensations-filters__summary {
    width: 100%;

    justify-content: flex-end;
  }

  .compensations-filters__summary .compensations-btn {
    width: 100%;
  }

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

  .compensations-filters__footer {
    flex-direction: column;

    align-items: stretch;
  }

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

  .compensations-table tbody {
    padding: 7px;
  }

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

  .compensations-table td,
  .compensations-table td:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .compensations-table td:last-child {
    grid-column: auto;

    border-bottom: 0;
  }

  .compensations-row-actions {
    display: grid;

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

  .compensations-icon-btn {
    width: 100%;
    height: 32px;
  }

  .compensations-pagination__actions {
    display: grid;

    grid-template-columns:
      1fr
      auto
      1fr;
  }

  .compensations-pagination__actions .compensations-btn {
    min-width: 0;

    padding-inline: 8px;
  }

  .compensations-adjustments-list {
    padding: 8px;
  }

  .compensations-adjustment-card {
    grid-template-columns:
      34px
      minmax(0, 1fr);

    padding: 10px;
  }

  .compensations-adjustment-card__icon {
    width: 34px;
    height: 34px;
  }

  .compensations-adjustment-card__head {
    flex-direction: column;

    gap: 5px;
  }

  .compensations-adjustment-card__value {
    font-size: 13px !important;
  }

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

  .compensations-modal__brand p {
    display: none;
  }

  .compensations-detail-summary {
    grid-template-columns: 1fr;
  }

  .compensations-detail-summary article,
  .compensations-detail-summary article:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .compensations-detail-summary__total {
    grid-column: auto;
  }

  .compensations-concept {
    grid-template-columns:
      32px
      minmax(0, 1fr);

    align-items: start;
  }

  .compensations-concept__actions {
    grid-column: 1 / -1;

    width: 100%;

    justify-content: flex-end;
  }

  .compensations-history-item {
    grid-template-columns:
      30px
      minmax(0, 1fr);
  }

  .compensations-history-item__icon {
    width: 30px;
    height: 30px;
  }

  .compensations-history-item__copy > div:first-child {
    align-items: flex-start;

    flex-direction: column;

    gap: 2px;
  }

  .compensations-history-item__copy > footer {
    align-items: flex-start;

    flex-direction: column;
  }

  .compensations-toast {
    right: 10px;
    bottom: 10px;
    left: 10px;

    min-width: 0;
    max-width: none;
  }
}

/* =========================================================
   RESPONSIVE · 420
   ========================================================= */

@media (
  max-width: 420px
) {
  .compensations-head__actions {
    grid-template-columns: 1fr;
  }

  .compensations-head__actions .compensations-btn:last-child {
    grid-column: auto;
  }

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

    font-size: 10px;
  }

  .compensations-tabs {
    gap: 3px;
  }

  .compensations-tab {
    min-height: 30px;

    padding-inline: 9px;

    font-size: 10px;
  }

  .compensations-row-actions {
    grid-template-columns: repeat(
      2,
      minmax(0, 1fr)
    );
  }

  .compensations-pagination__actions {
    grid-template-columns: 1fr 1fr;
  }

  .compensations-pagination__page {
    grid-column: 1 / -1;
    grid-row: 1;

    text-align: center;
  }

  .compensations-modal__head {
    gap: 8px;
  }

  .compensations-modal__icon {
    width: 36px;
    height: 36px;

    flex-basis: 36px;
  }

  .compensations-modal__footer > div {
    flex-direction: column;
  }

  .compensations-modal__footer > div .compensations-btn {
    width: 100%;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (
  prefers-reduced-motion: reduce
) {
  .compensations-page,
  .compensations-modal,
  .compensations-toast,
  .compensations-btn,
  .compensations-icon-btn,
  .compensations-metric,
  .compensations-tab,
  .compensations-active-switch b,
  .compensations-active-switch b::after {
    animation: none !important;

    transition: none !important;
  }

  .compensations-spin {
    animation: compensationsSpin 1.2s linear infinite !important;
  }
}/* =========================================================
   COMPENSACIONES · DIVISIONES MÁS VISIBLES
   AGREGAR AL FINAL DE compensaciones.css
   ========================================================= */

.compensations-head,
.compensations-metrics,
.compensations-tabs,
.compensations-panel,
.compensations-adjustments-panel,
.compensations-filters,
.compensations-adjustment-card,
.compensations-modal,
.compensations-concept,
.compensations-history-item {
  border-color: color-mix(
    in srgb,
    var(--text) 20%,
    var(--border)
  );
}

.compensations-metric {
  border-right-color: color-mix(
    in srgb,
    var(--text) 18%,
    var(--border)
  );
}

.compensations-table th,
.compensations-table td {
  border-bottom-color: color-mix(
    in srgb,
    var(--text) 18%,
    var(--border)
  );
}

.compensations-table th:not(:last-child),
.compensations-table td:not(:last-child) {
  border-right: 1px solid
    color-mix(
      in srgb,
      var(--text) 14%,
      var(--border)
    );
}

.compensations-filters__body,
.compensations-filters__footer,
.compensations-adjustments-head,
.compensations-modal__head,
.compensations-modal__footer,
.compensations-detail-footer,
.compensations-pagination,
.compensations-history-item__copy > footer {
  border-color: color-mix(
    in srgb,
    var(--text) 18%,
    var(--border)
  );
}

.compensations-detail-summary article {
  border-color: color-mix(
    in srgb,
    var(--text) 18%,
    var(--border)
  );
}

.compensations-form-section {
  border-bottom-color: color-mix(
    in srgb,
    var(--text) 18%,
    var(--border)
  );
}

:root[data-theme="dark"] .compensations-head,
:root[data-theme="dark"] .compensations-metrics,
:root[data-theme="dark"] .compensations-tabs,
:root[data-theme="dark"] .compensations-panel,
:root[data-theme="dark"] .compensations-adjustments-panel,
:root[data-theme="dark"] .compensations-adjustment-card,
:root[data-theme="dark"] .compensations-modal,
:root[data-theme="dark"] .compensations-concept,
:root[data-theme="dark"] .compensations-history-item,
[data-theme="dark"] .compensations-head,
[data-theme="dark"] .compensations-metrics,
[data-theme="dark"] .compensations-tabs,
[data-theme="dark"] .compensations-panel,
[data-theme="dark"] .compensations-adjustments-panel,
[data-theme="dark"] .compensations-adjustment-card,
[data-theme="dark"] .compensations-modal,
[data-theme="dark"] .compensations-concept,
[data-theme="dark"] .compensations-history-item {
  border-color: #343434;
}

:root[data-theme="dark"] .compensations-table th,
:root[data-theme="dark"] .compensations-table td,
:root[data-theme="dark"] .compensations-form-section,
:root[data-theme="dark"] .compensations-detail-summary article,
[data-theme="dark"] .compensations-table th,
[data-theme="dark"] .compensations-table td,
[data-theme="dark"] .compensations-form-section,
[data-theme="dark"] .compensations-detail-summary article {
  border-color: #2d2d2d;
}