/* ============================================================
   Aramis Web + Tabler Dev - Patch visual 1
   Mantiene la logica Django existente y reemplaza el skin general.
   ============================================================ */


/* PATCH 15 - Tipografía global liviana tipo Tabler */
:root {
  --aramis-font-ui: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html,
body,
button,
input,
select,
textarea,
table {
  font-family: var(--aramis-font-ui) !important;
  font-weight: 400;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.aramis-tabler-layout,
body.login-page {
  font-family: var(--aramis-font-ui) !important;
  font-weight: 400 !important;
}

:root {
  --aramis-sidebar-width: 17.25rem;
  --aramis-topbar-height: 3.5rem;
  --aramis-content-max: 1440px;
}

body.aramis-tabler-layout,
body.login-page {
  background: var(--tblr-body-bg) !important;
  color: var(--tblr-body-color);
  display: block !important;
  font-family: var(--tblr-font-sans-serif) !important;
  font-size: .875rem;
  min-height: 100vh;
}

.aramis-tabler-app {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.aramis-tabler-sidebar.topbar {
  background: #ffffff !important;
  border-right: 1px solid var(--tblr-border-color) !important;
  box-shadow: none !important;
  color: var(--tblr-body-color) !important;
  display: flex !important;
  flex: 0 0 var(--aramis-sidebar-width);
  gap: 0 !important;
  height: auto !important;
  inset: 0 auto 0 0;
  max-width: var(--aramis-sidebar-width);
  min-height: 100vh;
  overflow-y: auto;
  padding: 0 !important;
  position: sticky;
  top: 0;
  width: var(--aramis-sidebar-width);
  z-index: 50;
}

.aramis-sidebar-inner {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0 .85rem 1rem !important;
}

.aramis-sidebar-brand-row {
  align-items: center;
  border-bottom: 1px solid var(--tblr-border-color);
  display: flex;
  gap: .75rem;
  justify-content: space-between;
  margin: 0 -.85rem .75rem;
  min-height: 4rem;
  padding: .35rem .85rem;
}

.aramis-tabler-sidebar .brand,
.aramis-tabler-sidebar .navbar-brand {
  color: var(--tblr-body-color) !important;
  display: inline-flex;
  gap: .7rem;
  min-width: 0;
  text-decoration: none !important;
}

.aramis-tabler-sidebar .tenant-menu-logo,
.login-tenant-logo,
.login-top-mark img {
  background: #ffffff;
  border: 1px solid var(--tblr-border-color);
  border-radius: .55rem;
  box-shadow: var(--tblr-box-shadow);
  height: 38px;
  object-fit: contain;
  padding: .25rem .4rem;
  width: 58px;
}

.aramis-tabler-sidebar .brand-copy {
  display: grid;
  gap: .18rem;
  line-height: 1.05;
  min-width: 0;
}

.aramis-tabler-sidebar .brand-copy strong {
  color: #182433 !important;
  font-size: .9rem !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: none !important;
  white-space: nowrap;
}

.aramis-tabler-sidebar .brand-copy small {
  color: var(--tblr-muted) !important;
  font-size: .72rem !important;
  font-weight: 650 !important;
}

.aramis-sidebar-close { display: none !important; }

.aramis-tabler-main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.aramis-tabler-topbar {
  background: rgba(255, 255, 255, .92) !important;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--tblr-border-color);
  box-shadow: none !important;
  color: var(--tblr-body-color) !important;
  height: var(--aramis-topbar-height) !important;
  min-height: var(--aramis-topbar-height);
  padding: 0 !important;
  position: sticky;
  top: 0;
  z-index: 40;
}

.aramis-topbar-inner {
  align-items: center;
  display: flex;
  gap: .85rem;
  min-height: var(--aramis-topbar-height);
  padding: 0 1.25rem !important;
}

.aramis-sidebar-toggle { display: none !important; }

.aramis-topbar-title {
  display: grid;
  gap: .05rem;
  line-height: 1.05;
  min-width: 0;
}

.aramis-topbar-title strong {
  color: #182433;
  font-size: .98rem;
  font-weight: 800;
}

.aramis-topbar-kicker {
  color: var(--tblr-muted);
  font-size: .72rem;
  font-weight: 650;
}

/* Menu lateral basado en clases de Tabler, conservando la estructura Django existente */
.aramis-tabler-sidebar .menu-bar {
  display: flex !important;
  flex-direction: column;
  gap: .16rem !important;
  padding: .25rem 0 .75rem;
}

.aramis-tabler-sidebar .menu-bar > a,
.aramis-tabler-sidebar .menu-group > button,
.aramis-tabler-sidebar .submenu > button,
.aramis-tabler-sidebar .menu-panel > a,
.aramis-tabler-sidebar .submenu-panel > a {
  align-items: center;
  background: transparent !important;
  border: 0 !important;
  border-radius: .45rem !important;
  color: #3b4b5d !important;
  cursor: pointer;
  display: flex !important;
  font-size: .86rem !important;
  font-weight: 650 !important;
  gap: .5rem;
  justify-content: space-between;
  min-height: 2.15rem;
  padding: .46rem .6rem !important;
  text-align: left;
  text-decoration: none !important;
  width: 100%;
}

.aramis-tabler-sidebar .menu-bar > a:hover,
.aramis-tabler-sidebar .menu-group > button:hover,
.aramis-tabler-sidebar .submenu > button:hover,
.aramis-tabler-sidebar .menu-panel > a:hover,
.aramis-tabler-sidebar .submenu-panel > a:hover,
.aramis-tabler-sidebar .menu-panel a.active {
  background: rgba(var(--tblr-primary-rgb), .08) !important;
  color: var(--tblr-primary) !important;
}

.aramis-tabler-sidebar .menu-group,
.aramis-tabler-sidebar .submenu {
  display: block;
  position: relative !important;
  width: 100%;
}

.aramis-tabler-sidebar .menu-group > button::after,
.aramis-tabler-sidebar .submenu > button::after {
  color: #98a2b3;
  content: "›";
  font-size: 1.05rem;
  line-height: 1;
  transition: transform .15s ease;
}

.aramis-tabler-sidebar .menu-group.is-open > button::after,
.aramis-tabler-sidebar .menu-group:focus-within > button::after,
.aramis-tabler-sidebar .submenu.is-open > button::after,
.aramis-tabler-sidebar .submenu:focus-within > button::after {
  transform: rotate(90deg);
}

.aramis-tabler-sidebar .menu-panel,
.aramis-tabler-sidebar .submenu-panel {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: none !important;
  left: auto !important;
  margin: .05rem 0 .35rem .4rem;
  min-width: 0 !important;
  padding: .1rem 0 .1rem .55rem !important;
  position: static !important;
  top: auto !important;
  width: auto !important;
}

.aramis-tabler-sidebar .menu-panel {
  border-left: 1px solid #e7ebf0 !important;
}

.aramis-tabler-sidebar .submenu-panel {
  border-left: 1px dashed #d7dde5 !important;
}

.aramis-tabler-sidebar .menu-group.is-open > .menu-panel,
.aramis-tabler-sidebar .menu-group:focus-within > .menu-panel,
.aramis-tabler-sidebar .menu-group.has-active > .menu-panel,
.aramis-tabler-sidebar .submenu.is-open > .submenu-panel,
.aramis-tabler-sidebar .submenu:focus-within > .submenu-panel,
.aramis-tabler-sidebar .submenu.has-active > .submenu-panel {
  display: block !important;
}

.aramis-tabler-sidebar .menu-panel a[data-progress]::after,
.aramis-tabler-sidebar .submenu-panel a[data-progress]::after {
  background: #eef3fb;
  border: 1px solid #d9e5f5;
  border-radius: 999px;
  color: #52677d;
  content: attr(data-progress);
  flex: 0 0 auto;
  font-size: .68rem;
  font-weight: 800;
  margin-left: auto;
  padding: .14rem .38rem;
}

.aramis-tabler-sidebar .menu-checked::before,
.aramis-tabler-sidebar .menu-panel a.menu-checked::before {
  background: var(--tblr-success);
  border-radius: 999px;
  content: "";
  flex: 0 0 auto;
  height: .45rem;
  width: .45rem;
}

.aramis-tabler-sidebar [data-permission-hidden="1"] { display: none !important; }

.aramis-tabler-topbar .topbar-permissions {
  align-items: center;
  display: inline-flex;
  gap: .45rem;
  margin-left: auto !important;
  min-width: 0;
}

.aramis-tabler-topbar .topbar-action-button,
.aramis-tabler-topbar .topbar-user-chip,
.aramis-tabler-topbar .permission-button,
.aramis-tabler-topbar .logout-button,
.aramis-tabler-topbar .assistant-button {
  align-items: center;
  border-radius: .45rem !important;
  display: inline-flex;
  font-size: .78rem !important;
  font-weight: 700 !important;
  gap: .4rem;
  min-height: 2.15rem !important;
  padding: .35rem .65rem !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.aramis-tabler-topbar .topbar-user-chip {
  background: #f8fafc !important;
  border: 1px solid var(--tblr-border-color) !important;
  box-shadow: none !important;
  color: #34495f !important;
}

.aramis-tabler-topbar .permission-button {
  background: rgba(var(--tblr-primary-rgb), .08) !important;
  border: 1px solid rgba(var(--tblr-primary-rgb), .18) !important;
  box-shadow: none !important;
  color: var(--tblr-primary) !important;
}

.aramis-tabler-topbar .permission-button:hover {
  background: rgba(var(--tblr-primary-rgb), .14) !important;
  transform: none !important;
}

.aramis-tabler-topbar .logout-button {
  background: #fff !important;
  border: 1px solid var(--tblr-border-color) !important;
  box-shadow: none !important;
  color: #4a5565 !important;
}

.aramis-tabler-topbar .logout-button:hover {
  background: #f6f8fb !important;
  transform: none !important;
}

.aramis-tabler-topbar .assistant-button {
  background: #f8fafc !important;
  border: 1px solid var(--tblr-border-color) !important;
  color: #26384b !important;
}

.aramis-tabler-topbar .assistant-button:hover {
  background: #eef4fb !important;
  transform: none !important;
}

.aramis-tabler-topbar .topbar-action-button svg,
.aramis-tabler-topbar .topbar-user-chip svg,
.aramis-tabler-topbar .permission-button svg,
.aramis-tabler-topbar .logout-button svg,
.aramis-tabler-topbar .assistant-button svg {
  height: 1rem;
  width: 1rem;
}

.aramis-page-content.page {
  background: transparent !important;
  color: var(--tblr-body-color) !important;
  flex: 1 0 auto;
  font-size: .875rem !important;
  margin: 0 auto !important;
  max-width: var(--aramis-content-max) !important;
  padding: 1.25rem !important;
  width: 100%;
}

.aramis-page-content h1,
.aramis-page-content h2,
.aramis-page-content h3 {
  color: #182433 !important;
  font-weight: 800;
}

.aramis-page-content .toolbar,
.aramis-page-content .detail-header,
.aramis-page-content .client-fox-title,
.aramis-page-content .section-heading-row,
.aramis-page-content .production-list-toolbar,
.aramis-page-content .sispro-panel-header {
  align-items: center;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem !important;
  padding: .15rem 0 !important;
}

.aramis-page-content .toolbar h1,
.aramis-page-content .detail-header h1,
.aramis-page-content .client-fox-title h1,
.aramis-page-content .sispro-panel-header h1 {
  font-size: 1.25rem !important;
  letter-spacing: 0 !important;
  margin: 0 0 .15rem !important;
}

.aramis-page-content .toolbar p,
.aramis-page-content .detail-header p,
.aramis-page-content .client-fox-title p,
.aramis-page-content .muted,
.aramis-page-content .back {
  color: var(--tblr-muted) !important;
}

.aramis-page-content .client-fox-window,
.aramis-page-content .modal-editor,
.aramis-page-content .table-wrap,
.aramis-page-content .form-grid,
.aramis-page-content .notes,
.aramis-page-content .module-box,
.aramis-page-content .coverage-card,
.aramis-page-content .help-card,
.aramis-page-content .costos-card,
.aramis-page-content .maquinas-card,
.aramis-page-content .sacabocado-card,
.aramis-page-content .troquel-card,
.aramis-page-content .sustrato-card,
.aramis-page-content .stock-card,
.aramis-page-content .pedido-card,
.aramis-page-content .presupuesto-card,
.aramis-page-content .production-card,
.aramis-page-content .sispro-panel-window,
.aramis-page-content .sispro-panel-query-card,
.aramis-page-content .sispro-sql-helper,
.aramis-page-content .sispro-latest-card,
.aramis-page-content .sispro-table-box,
.aramis-page-content .sispro-panel-link-card,
.aramis-page-content .client-box,
.aramis-page-content .client-audit-item,
.aramis-page-content .compact-summary,
.aramis-page-content .detail-grid > div,
.aramis-page-content .card {
  background: #fff !important;
  border: 1px solid var(--tblr-border-color) !important;
  border-radius: var(--tblr-card-border-radius) !important;
  box-shadow: var(--tblr-box-shadow-card) !important;
}

.aramis-page-content .client-fox-window {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.aramis-page-content .client-toolbar,
.aramis-page-content .filters,
.aramis-page-content form.filters,
.aramis-page-content .toolbar form,
.aramis-page-content .production-list-toolbar form,
.aramis-page-content .coverage-toolbar {
  background: #fff !important;
  border: 1px solid var(--tblr-border-color) !important;
  border-radius: var(--tblr-card-border-radius) !important;
  box-shadow: var(--tblr-box-shadow-card) !important;
  padding: .75rem !important;
}

.aramis-page-content button,
.aramis-page-content .button,
.aramis-page-content .btn,
.aramis-page-content .client-tool,
.aramis-page-content .compact-action,
.aramis-page-content .secondary-button,
.aramis-page-content .nav-tool,
.aramis-page-content .mini-action,
.aramis-page-content .layout-editor-button {
  border-radius: var(--tblr-border-radius) !important;
  box-shadow: none !important;
  font-size: .82rem !important;
  font-weight: 700 !important;
  min-height: 2.15rem !important;
}

.aramis-page-content .table-wrap,
.aramis-page-content .dataTables_wrapper,
.aramis-page-content table.dataTable {
  border-color: var(--tblr-border-color) !important;
}

.aramis-page-content table thead th,
.aramis-page-content table.dataTable thead th {
  background: #f8fafc !important;
  color: #52677d !important;
  font-size: .72rem !important;
  font-weight: 800 !important;
  text-transform: uppercase;
}

.aramis-page-content table tbody tr:hover,
.aramis-page-content table.dataTable tbody tr:hover {
  background: #f8fbff !important;
}

.aramis-page-content input,
.aramis-page-content select,
.aramis-page-content textarea {
  border-color: #cbd5e1 !important;
  border-radius: var(--tblr-border-radius) !important;
  box-shadow: none !important;
}

.aramis-page-content input:focus,
.aramis-page-content select:focus,
.aramis-page-content textarea:focus {
  border-color: rgba(var(--tblr-primary-rgb), .65) !important;
  box-shadow: 0 0 0 .2rem rgba(var(--tblr-primary-rgb), .12) !important;
}

.aramis-page-content .module-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.aramis-page-content .module-box {
  padding: 1rem !important;
}

.aramis-page-content .module-box h2 {
  border-bottom: 1px solid var(--tblr-border-color);
  font-size: 1rem !important;
  margin: 0 0 .75rem;
  padding-bottom: .65rem;
}

.aramis-page-content .module-links {
  display: grid;
  gap: .35rem;
}

.aramis-page-content .module-links a {
  align-items: center;
  border-radius: .4rem;
  color: #334155 !important;
  display: flex;
  justify-content: space-between;
  padding: .45rem .55rem;
}

.aramis-page-content .module-links a:hover {
  background: rgba(var(--tblr-primary-rgb), .08);
  color: var(--tblr-primary) !important;
}

.aramis-page-content .module-links strong {
  background: #eef3fb;
  border-radius: 999px;
  color: #52677d;
  font-size: .72rem;
  padding: .12rem .45rem;
}

.toast-stack {
  bottom: auto !important;
  position: fixed !important;
  right: 1rem !important;
  top: 4.25rem !important;
  z-index: 2000 !important;
}

.toast-message {
  background: #fff !important;
  border: 1px solid var(--tblr-border-color) !important;
  border-radius: .55rem !important;
  box-shadow: 0 .5rem 1.5rem rgba(24,36,51,.14) !important;
  color: #243447 !important;
}

.confirm-dialog,
dialog.modal-editor {
  border: 0 !important;
  border-radius: .75rem !important;
  box-shadow: 0 1rem 3rem rgba(24,36,51,.22) !important;
}

.app-footer {
  background: transparent !important;
  border-top: 1px solid var(--tblr-border-color) !important;
  color: var(--tblr-muted) !important;
  margin-top: auto !important;
  padding: 1rem 1.25rem !important;
}

.app-footer-main {
  display: grid !important;
  gap: 1rem !important;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr !important;
  max-width: var(--aramis-content-max);
  margin: 0 auto;
}

.app-footer-col h2,
.app-footer-brand strong {
  color: #182433 !important;
}

.app-footer-bottom {
  border-top: 1px solid var(--tblr-border-color) !important;
  margin: 1rem auto 0 !important;
  max-width: var(--aramis-content-max);
  padding-top: .75rem !important;
}

.print-tenant-header { display: none; }

/* Login Tabler */
body.login-page {
  align-items: center;
  background:
    radial-gradient(circle at top left, rgba(var(--tblr-primary-rgb), .12), transparent 34rem),
    var(--tblr-body-bg) !important;
  display: flex !important;
  min-height: 100vh;
  overflow-x: hidden;
  padding: 1.5rem;
}

.login-top-mark {
  align-items: center;
  color: #334155;
  display: inline-flex;
  font-size: .82rem;
  font-weight: 800;
  gap: .65rem;
  left: 1.5rem;
  position: fixed;
  top: 1.25rem;
}

.login-shell {
  align-items: center;
  display: flex;
  justify-content: center;
  margin: auto;
  max-width: 29rem;
  width: 100%;
}

.login-panel {
  background: #fff;
  border: 1px solid var(--tblr-border-color);
  border-radius: .75rem;
  box-shadow: 0 1rem 3rem rgba(24,36,51,.10);
  padding: 1.5rem;
  width: 100%;
}

.login-brand {
  align-items: center;
  border-bottom: 1px solid var(--tblr-border-color);
  display: flex;
  gap: .85rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
}

.login-brand h1 {
  color: #182433;
  font-size: 1.15rem;
  margin: 0 0 .12rem;
}

.login-brand p,
.login-muted {
  color: var(--tblr-muted);
  margin: 0;
}

.login-alert {
  background: #fdecec;
  border: 1px solid #facaca;
  border-radius: .5rem;
  color: #9c2525;
  font-weight: 700;
  margin-bottom: 1rem;
  padding: .75rem;
}

.login-form {
  display: grid;
  gap: .9rem;
}

.login-field {
  display: grid;
  gap: .35rem;
}

.login-field > span {
  color: #34495f;
  font-size: .82rem;
  font-weight: 750;
}

.login-input-wrap {
  align-items: center;
  display: flex;
  position: relative;
}

.login-input-wrap svg {
  color: #98a2b3;
  fill: none;
  height: 1.05rem;
  left: .7rem;
  pointer-events: none;
  position: absolute;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 1.05rem;
}

.login-input-wrap input {
  min-height: 2.5rem;
  padding-left: 2.25rem;
  width: 100%;
}

.login-submit {
  border-radius: .45rem;
  cursor: pointer;
  font-weight: 800;
  min-height: 2.55rem;
  width: 100%;
}

.login-submit svg {
  fill: none;
  height: 1rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 1rem;
}

.login-demo-card {
  background: #fff;
  border: 1px solid var(--tblr-border-color);
  border-radius: .65rem;
  bottom: 1.5rem;
  box-shadow: var(--tblr-box-shadow-card);
  color: #334155;
  display: grid;
  gap: .2rem;
  padding: .85rem 1rem;
  position: fixed;
  right: 1.5rem;
}

.login-page-footer {
  bottom: 1.5rem;
  color: var(--tblr-muted);
  display: flex;
  gap: 1rem;
  left: 1.5rem;
  position: fixed;
}

.login-panel-footer {
  align-items: center;
  border-top: 1px solid var(--tblr-border-color);
  color: var(--tblr-muted);
  display: flex;
  font-size: .78rem;
  justify-content: space-between;
  margin-top: 1.2rem;
  padding-top: .9rem;
}

/* Login - actualización visual al estilo moderno de Aramis */
body.login-page {
  background:
    radial-gradient(circle at 18% 14%, rgba(11, 120, 208, .12), transparent 28rem),
    linear-gradient(135deg, #eef4fb 0%, #f8fbff 52%, #edf3f8 100%) !important;
  color: #092044;
  font-family: var(--tblr-font-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif);
}

.login-top-mark {
  color: #173653;
  font-size: .88rem;
  font-weight: 650;
  gap: .7rem;
}

.login-top-mark img {
  border: 1px solid #d8e5f4;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(15, 35, 65, .08);
  height: 38px;
  padding: 5px;
  width: 64px;
}

.login-shell {
  max-width: 31rem;
}

.login-panel {
  background: rgba(255, 255, 255, .95);
  border: 1px solid #d8e5f4;
  border-radius: 18px;
  box-shadow: 0 28px 72px rgba(15, 35, 65, .13);
  padding: 1.85rem;
}

.login-brand {
  border-bottom-color: #e3edf8;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1.1rem;
}

.login-tenant-logo {
  border: 1px solid #d8e5f4;
  border-radius: 14px;
  height: 66px;
  padding: 8px;
  width: 104px;
}

.login-brand h1 {
  color: #061f43;
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.1;
}

.login-brand p,
.login-muted {
  color: #536b8d;
  font-size: .92rem;
}

.login-demo-card {
  background: rgba(255, 255, 255, .94);
  border-color: #d8e5f4;
  border-radius: 14px;
  box-shadow: 0 20px 52px rgba(15, 35, 65, .11);
  color: #536b8d;
  font-size: .83rem;
  gap: .35rem;
}

.login-demo-card strong,
.login-demo-card b {
  color: #173653;
  font-weight: 650;
}

.login-alert {
  border-radius: 12px;
  font-weight: 650;
}

.login-field {
  color: #425d7e;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .01em;
}

.login-input-wrap {
  background: #fff;
  border: 1px solid #ccdced;
  border-radius: 14px;
  min-height: 50px;
}

.login-input-wrap:focus-within {
  border-color: #0b78d0;
  box-shadow: 0 0 0 4px rgba(11, 120, 208, .11);
}

.login-input-wrap svg {
  color: #6f8198;
  height: 1.15rem;
  stroke-width: 1.8;
  width: 1.15rem;
}

.login-input-wrap input {
  color: #092044;
  font-size: .96rem;
  min-height: 48px;
}

.login-submit {
  background: #0b78d0 !important;
  border-color: #0b78d0 !important;
  border-radius: 14px;
  box-shadow: 0 14px 26px rgba(11, 120, 208, .18);
  font-size: .94rem;
  font-weight: 700;
  min-height: 50px;
}

.login-submit:hover {
  background: #0868b7 !important;
}

.login-submit svg {
  stroke-width: 1.9;
}

.login-panel-footer {
  border-top-color: #e3edf8;
  color: #6f8198;
  font-size: .78rem;
}

.login-panel-footer strong {
  color: #425d7e;
  font-weight: 650;
}

.login-page-footer {
  color: #6f8198;
  font-size: .78rem;
}

@media (max-width: 1100px) {
  .aramis-tabler-app { display: block; }
  .aramis-tabler-sidebar.topbar {
    box-shadow: 0 1rem 3rem rgba(24,36,51,.18) !important;
    position: fixed;
    transform: translateX(-105%);
    transition: transform .18s ease;
  }
  body.aramis-sidebar-open .aramis-tabler-sidebar.topbar { transform: translateX(0); }
  body.aramis-sidebar-open::after {
    background: rgba(15, 23, 42, .35);
    content: "";
    inset: 0;
    position: fixed;
    z-index: 45;
  }
  .aramis-sidebar-close,
  .aramis-sidebar-toggle { display: inline-flex !important; }
  .aramis-tabler-main { min-height: 100vh; }
  .aramis-tabler-topbar { left: 0; }
  .aramis-page-content.page { padding: 1rem !important; }
  .assistant-button-text { display: none; }
  .app-footer-main { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 720px) {
  .aramis-topbar-title { display: none; }
  .aramis-tabler-topbar .topbar-user-chip span,
  .aramis-tabler-topbar .permission-button span,
  .aramis-tabler-topbar .logout-button span { display: none; }
  .aramis-tabler-topbar .topbar-action-button,
  .aramis-tabler-topbar .topbar-user-chip,
  .aramis-tabler-topbar .permission-button,
  .aramis-tabler-topbar .logout-button,
  .aramis-tabler-topbar .assistant-button {
    min-width: 2.15rem;
    padding-inline: .5rem !important;
  }
  .app-footer-main,
  .app-footer-bottom { grid-template-columns: 1fr !important; }
  .login-demo-card,
  .login-page-footer { display: none; }
  body.login-page { padding: 1rem; }
}

/* ============================================================
   Patch 2 - Sidebar estilo Tabler/Sueldos de referencia
   Solo ajusta barra lateral: marca, ancho, iconos, grupos y activo.
   ============================================================ */
:root {
  --aramis-sidebar-width: 12.75rem;
  --aramis-sidebar-brand-bg: #123f73;
  --aramis-sidebar-brand-bg-2: #0f3766;
  --aramis-sidebar-bg: #f7f9fc;
  --aramis-sidebar-line: #dde4ee;
  --aramis-sidebar-text: #12284a;
  --aramis-sidebar-muted: #5c6f8f;
  --aramis-sidebar-active: #dce9f8;
  --aramis-sidebar-active-line: #2f6fb4;
}

body.aramis-tabler-layout {
  background: #f3f6fa !important;
}

.aramis-tabler-sidebar.topbar {
  background: var(--aramis-sidebar-bg) !important;
  border-right: 1px solid #d5dde8 !important;
  box-shadow: 0 1px 2px rgba(16, 36, 71, .05) !important;
  color: var(--aramis-sidebar-text) !important;
  flex-basis: var(--aramis-sidebar-width) !important;
  max-width: var(--aramis-sidebar-width) !important;
  min-width: var(--aramis-sidebar-width) !important;
  overflow-x: hidden;
  scrollbar-width: thin;
  width: var(--aramis-sidebar-width) !important;
}

.aramis-sidebar-inner {
  background: linear-gradient(180deg, #f9fbfe 0%, #f2f6fb 100%);
  padding: 0 !important;
}

.aramis-sidebar-brand-row {
  background: linear-gradient(180deg, var(--aramis-sidebar-brand-bg), var(--aramis-sidebar-brand-bg-2));
  border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .08);
  color: #fff;
  margin: 0 !important;
  min-height: 3.25rem;
  padding: 0 1.25rem !important;
}

.aramis-tabler-sidebar .brand,
.aramis-tabler-sidebar .navbar-brand {
  align-items: center;
  color: #fff !important;
  display: flex !important;
  gap: 0 !important;
  height: 3.25rem;
  letter-spacing: -.02em;
  padding: 0 !important;
  width: 100%;
}

.aramis-tabler-sidebar .brand-copy-tabler {
  align-items: baseline;
  display: inline-flex !important;
  gap: .28rem;
  line-height: 1;
  min-width: 0;
}

.aramis-tabler-sidebar .brand-copy-tabler strong,
.aramis-tabler-sidebar .brand-copy-tabler span {
  color: #ffffff !important;
  font-size: 1.28rem !important;
  letter-spacing: -.025em;
  line-height: 1;
  text-transform: none !important;
}

.aramis-tabler-sidebar .brand-copy-tabler strong {
  font-weight: 850 !important;
}

.aramis-tabler-sidebar .brand-copy-tabler span {
  font-weight: 500 !important;
  opacity: .98;
}

.aramis-tabler-sidebar .tenant-menu-logo {
  display: none !important;
}

.aramis-tabler-sidebar .menu-bar.aramis-sidebar-menu {
  gap: 0 !important;
  padding: .95rem .7rem 1rem !important;
}

.aramis-tabler-sidebar .menu-bar > a,
.aramis-tabler-sidebar .menu-group > button {
  border-bottom: 1px solid var(--aramis-sidebar-line) !important;
  border-radius: 0 !important;
  color: var(--aramis-sidebar-text) !important;
  font-size: .82rem !important;
  font-weight: 750 !important;
  gap: .25rem !important;
  min-height: 2.35rem !important;
  overflow: hidden;
  padding: .55rem .5rem .55rem .44rem !important;
  position: relative;
}

.aramis-tabler-sidebar .menu-group > button {
  padding-right: .3rem !important;
}

.aramis-tabler-sidebar .menu-entry {
  align-items: center;
  display: inline-flex;
  gap: .62rem;
  min-width: 0;
}

.aramis-tabler-sidebar .menu-text {
  display: inline-block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aramis-tabler-sidebar .menu-icon {
  align-items: center;
  color: #315f98;
  display: inline-flex;
  flex: 0 0 1.15rem;
  height: 1.15rem;
  justify-content: center;
  opacity: .95;
  width: 1.15rem;
}

.aramis-tabler-sidebar .menu-icon svg {
  display: block;
  fill: none;
  height: 1.05rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 1.05rem;
}

.aramis-tabler-sidebar .menu-group > button::after,
.aramis-tabler-sidebar .submenu > button::after {
  color: #577092 !important;
  content: "⌄" !important;
  flex: 0 0 auto;
  font-size: .94rem !important;
  font-weight: 800;
  line-height: 1;
  margin-left: .2rem;
  opacity: .9;
  transform: rotate(-90deg);
  transition: transform .15s ease, color .15s ease;
}

.aramis-tabler-sidebar .menu-group.is-open > button::after,
.aramis-tabler-sidebar .menu-group.has-active > button::after,
.aramis-tabler-sidebar .submenu.is-open > button::after,
.aramis-tabler-sidebar .submenu.has-active > button::after {
  transform: rotate(0deg);
}

.aramis-tabler-sidebar .menu-bar > a:hover,
.aramis-tabler-sidebar .menu-group > button:hover,
.aramis-tabler-sidebar .submenu > button:hover,
.aramis-tabler-sidebar .menu-panel > a:hover,
.aramis-tabler-sidebar .submenu-panel > a:hover {
  background: rgba(220, 233, 248, .65) !important;
  color: #0f3766 !important;
}

.aramis-tabler-sidebar .menu-bar > a.active,
.aramis-tabler-sidebar .menu-group.has-active > button,
.aramis-tabler-sidebar .menu-group.is-open > button,
.aramis-tabler-sidebar .menu-panel a.active,
.aramis-tabler-sidebar .submenu.has-active > button,
.aramis-tabler-sidebar .submenu.is-open > button {
  background: var(--aramis-sidebar-active) !important;
  color: #0d376a !important;
}

.aramis-tabler-sidebar .menu-bar > a.active::before,
.aramis-tabler-sidebar .menu-group.has-active > button::before,
.aramis-tabler-sidebar .menu-group.is-open > button::before {
  background: var(--aramis-sidebar-active-line);
  border-radius: 0 2px 2px 0;
  bottom: .18rem;
  content: "";
  left: -.7rem;
  position: absolute;
  top: .18rem;
  width: 3px;
}

.aramis-tabler-sidebar .menu-panel,
.aramis-tabler-sidebar .submenu-panel {
  border-left: 0 !important;
  margin: 0 !important;
  padding: .22rem 0 .34rem !important;
}

.aramis-tabler-sidebar .menu-panel > a,
.aramis-tabler-sidebar .submenu-panel > a,
.aramis-tabler-sidebar .submenu > button {
  border-radius: 0 !important;
  color: #1e3458 !important;
  font-size: .805rem !important;
  font-weight: 600 !important;
  min-height: 1.75rem !important;
  overflow: hidden;
  padding: .35rem .45rem .35rem 2.15rem !important;
  position: relative;
}

.aramis-tabler-sidebar .submenu > button {
  color: #162d50 !important;
  font-weight: 720 !important;
  padding-left: 1.95rem !important;
}

.aramis-tabler-sidebar .menu-panel > a::before,
.aramis-tabler-sidebar .submenu-panel > a::before,
.aramis-tabler-sidebar .submenu > button .menu-entry::before {
  background: #24466f;
  border-radius: 50%;
  content: "";
  height: .16rem;
  left: 1.18rem;
  opacity: .85;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: .16rem;
}

.aramis-tabler-sidebar .submenu-panel > a {
  color: #435775 !important;
  font-size: .78rem !important;
  min-height: 1.58rem !important;
  padding-left: 2.55rem !important;
}

.aramis-tabler-sidebar .submenu-panel > a::before {
  left: 1.62rem;
  opacity: .55;
}

.aramis-tabler-sidebar .menu-panel a.active,
.aramis-tabler-sidebar .submenu-panel a.active {
  color: #0b3b72 !important;
  font-weight: 760 !important;
}

.aramis-tabler-sidebar .menu-panel a.active::before,
.aramis-tabler-sidebar .submenu-panel a.active::before {
  background: #1f6bb2;
  height: .27rem;
  opacity: 1;
  width: .27rem;
}

.aramis-tabler-sidebar .menu-checked::after,
.aramis-tabler-sidebar [data-progress]::after {
  display: none !important;
}

.aramis-tabler-sidebar .menu-group {
  width: 100%;
}

.aramis-tabler-sidebar .menu-group + .menu-group,
.aramis-tabler-sidebar .menu-group + .menu-bar > a,
.aramis-tabler-sidebar .menu-bar > a + .menu-group {
  margin-top: 0;
}

.aramis-tabler-sidebar .menu-panel::-webkit-scrollbar,
.aramis-tabler-sidebar::-webkit-scrollbar {
  width: .42rem;
}

.aramis-tabler-sidebar .menu-panel::-webkit-scrollbar-thumb,
.aramis-tabler-sidebar::-webkit-scrollbar-thumb {
  background: rgba(58, 89, 130, .28);
  border-radius: 99px;
}

@media (max-width: 1100px) {
  .aramis-sidebar-brand-row {
    padding-right: .65rem !important;
  }
  .aramis-sidebar-close {
    color: #fff !important;
  }
}


/* ============================================================
   Patch 3 - Sidebar Sueldos en 3 grupos: Tablas / Procesos / Reportes
   ============================================================ */
.aramis-tabler-sidebar .aramis-module-sueldos > .menu-panel {
  padding-top: .28rem !important;
}

.aramis-tabler-sidebar .aramis-module-sueldos .sueldos-menu-section > button {
  background: rgba(255, 255, 255, .56) !important;
  border-bottom: 1px solid #dce4ef !important;
  color: #123f73 !important;
  font-weight: 800 !important;
  margin-top: .08rem !important;
}

.aramis-tabler-sidebar .aramis-module-sueldos .sueldos-menu-section.is-open > button,
.aramis-tabler-sidebar .aramis-module-sueldos .sueldos-menu-section.has-active > button {
  background: #dce9f8 !important;
  color: #0d376a !important;
}

.aramis-tabler-sidebar .aramis-module-sueldos .sueldos-menu-section > .submenu-panel {
  padding-bottom: .42rem !important;
}

.aramis-tabler-sidebar .aramis-module-sueldos .sueldos-menu-section + .sueldos-menu-section {
  margin-top: .12rem;
}

/* ============================================================
   Patch 4 - Sidebar más parecida a Tabler: fuente liviana y toggle real
   - Baja la negrita excesiva del menú.
   - Deja la flecha fija, sin rotación.
   - El despliegue depende solo de .is-open para que cierre al segundo click.
   ============================================================ */
body.aramis-tabler-layout,
body.login-page {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.aramis-tabler-sidebar {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.aramis-tabler-sidebar .brand-copy-tabler strong {
  font-weight: 650 !important;
  letter-spacing: -.035em !important;
}

.aramis-tabler-sidebar .brand-copy-tabler span {
  font-weight: 400 !important;
  letter-spacing: -.035em !important;
}

.aramis-topbar-title strong {
  font-weight: 600 !important;
}

.aramis-topbar-kicker {
  font-weight: 500 !important;
}

.aramis-tabler-sidebar .menu-bar > a,
.aramis-tabler-sidebar .menu-group > button {
  color: #334155 !important;
  font-size: .84rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

.aramis-tabler-sidebar .menu-panel > a,
.aramis-tabler-sidebar .submenu-panel > a,
.aramis-tabler-sidebar .submenu > button {
  color: #475569 !important;
  font-size: .815rem !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

.aramis-tabler-sidebar .submenu > button,
.aramis-tabler-sidebar .aramis-module-sueldos .sueldos-menu-section > button {
  color: #334155 !important;
  font-weight: 500 !important;
}

.aramis-tabler-sidebar .menu-bar > a.active,
.aramis-tabler-sidebar .menu-group.has-active > button,
.aramis-tabler-sidebar .menu-group.is-open > button,
.aramis-tabler-sidebar .menu-panel a.active,
.aramis-tabler-sidebar .submenu.has-active > button,
.aramis-tabler-sidebar .submenu.is-open > button,
.aramis-tabler-sidebar .submenu-panel a.active {
  font-weight: 520 !important;
}

.aramis-tabler-sidebar .menu-icon svg {
  stroke-width: 1.65 !important;
}

.aramis-tabler-sidebar .menu-group > button::after,
.aramis-tabler-sidebar .submenu > button::after,
.aramis-tabler-sidebar .menu-group.is-open > button::after,
.aramis-tabler-sidebar .menu-group.has-active > button::after,
.aramis-tabler-sidebar .submenu.is-open > button::after,
.aramis-tabler-sidebar .submenu.has-active > button::after,
.aramis-tabler-sidebar .menu-group:focus-within > button::after,
.aramis-tabler-sidebar .submenu:focus-within > button::after {
  content: "⌄" !important;
  color: #64748b !important;
  font-size: .86rem !important;
  font-weight: 400 !important;
  opacity: .95 !important;
  transform: none !important;
  transition: color .12s ease !important;
}

/* Anula las aperturas por :focus-within y por has-active.
   Si no está .is-open, debe quedar cerrado aunque el botón tenga foco
   o aunque la ruta activa esté dentro del grupo. */
.aramis-tabler-sidebar .menu-group:not(.is-open) > .menu-panel,
.aramis-tabler-sidebar .submenu:not(.is-open) > .submenu-panel {
  display: none !important;
}

.aramis-tabler-sidebar .menu-group.is-open > .menu-panel,
.aramis-tabler-sidebar .submenu.is-open > .submenu-panel {
  display: block !important;
}

.aramis-tabler-sidebar .menu-group:not(.is-open) > button,
.aramis-tabler-sidebar .submenu:not(.is-open) > button {
  background: transparent !important;
}

.aramis-tabler-sidebar .menu-group.has-active:not(.is-open) > button,
.aramis-tabler-sidebar .submenu.has-active:not(.is-open) > button {
  background: rgba(220, 233, 248, .46) !important;
  color: #24466f !important;
}

/* ============================================================
   Patch 5 - Sidebar Tabler real: tipografia liviana + toggle real
   - Sin negritas pesadas en el menu.
   - Flechas fijas: no rotan ni se desplazan.
   - El panel abre/cierra solo por .is-open, no por focus-within.
   ============================================================ */
:root {
  --aramis-sidebar-width: 15.75rem;
  --aramis-sidebar-brand-bg: #1f2937;
  --aramis-sidebar-brand-bg-2: #1f2937;
  --aramis-sidebar-bg: #1f2937;
  --aramis-sidebar-bg-soft: #263241;
  --aramis-sidebar-line: rgba(255, 255, 255, .055);
  --aramis-sidebar-text: #cbd5e1;
  --aramis-sidebar-muted: #94a3b8;
  --aramis-sidebar-active: rgba(255, 255, 255, .055);
  --aramis-sidebar-active-line: #2f8cff;
}

.aramis-tabler-sidebar.topbar {
  background: var(--aramis-sidebar-bg) !important;
  border-right: 0 !important;
  box-shadow: none !important;
  color: var(--aramis-sidebar-text) !important;
  flex-basis: var(--aramis-sidebar-width) !important;
  max-width: var(--aramis-sidebar-width) !important;
  min-width: var(--aramis-sidebar-width) !important;
  width: var(--aramis-sidebar-width) !important;
}

.aramis-sidebar-inner {
  background: var(--aramis-sidebar-bg) !important;
}

.aramis-sidebar-brand-row {
  background: var(--aramis-sidebar-bg) !important;
  border-bottom: 1px solid var(--aramis-sidebar-line) !important;
  box-shadow: none !important;
  min-height: 4.35rem !important;
  padding: 0 1.35rem !important;
}

.aramis-tabler-sidebar .brand,
.aramis-tabler-sidebar .navbar-brand {
  height: 4.35rem !important;
}

.aramis-tabler-sidebar .brand-copy-tabler strong,
.aramis-tabler-sidebar .brand-copy-tabler span {
  color: #ffffff !important;
  font-size: 1.35rem !important;
  letter-spacing: -.025em !important;
  line-height: 1 !important;
}

.aramis-tabler-sidebar .brand-copy-tabler strong {
  font-weight: 650 !important;
}

.aramis-tabler-sidebar .brand-copy-tabler span {
  font-weight: 400 !important;
  opacity: .95 !important;
}

.aramis-tabler-sidebar .menu-bar.aramis-sidebar-menu {
  gap: .08rem !important;
  padding: 1.05rem .72rem 1.2rem !important;
}

.aramis-tabler-sidebar .menu-bar > a,
.aramis-tabler-sidebar .menu-group > button,
.aramis-tabler-sidebar .submenu > button,
.aramis-tabler-sidebar .menu-panel > a,
.aramis-tabler-sidebar .submenu-panel > a {
  align-items: center !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: .35rem !important;
  box-shadow: none !important;
  color: var(--aramis-sidebar-text) !important;
  display: flex !important;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  letter-spacing: 0 !important;
  position: relative !important;
  text-decoration: none !important;
  transition: background-color .12s ease, color .12s ease !important;
  width: 100% !important;
}

.aramis-tabler-sidebar .menu-bar > a,
.aramis-tabler-sidebar .menu-group > button {
  font-size: .925rem !important;
  font-weight: 400 !important;
  justify-content: flex-start !important;
  line-height: 1.25 !important;
  min-height: 2.58rem !important;
  padding: .55rem 2rem .55rem .72rem !important;
}

.aramis-tabler-sidebar .submenu > button,
.aramis-tabler-sidebar .menu-panel > a {
  color: #c0cad8 !important;
  font-size: .895rem !important;
  font-weight: 400 !important;
  justify-content: flex-start !important;
  line-height: 1.24 !important;
  min-height: 2.22rem !important;
  padding: .43rem 2rem .43rem 2.35rem !important;
}

.aramis-tabler-sidebar .submenu-panel > a {
  color: #aeb9c8 !important;
  font-size: .86rem !important;
  font-weight: 400 !important;
  line-height: 1.24 !important;
  min-height: 1.95rem !important;
  padding: .35rem 1rem .35rem 3.05rem !important;
}

.aramis-tabler-sidebar .menu-entry {
  align-items: center !important;
  display: inline-flex !important;
  flex: 1 1 auto !important;
  gap: .72rem !important;
  min-width: 0 !important;
}

.aramis-tabler-sidebar .submenu > button .menu-entry,
.aramis-tabler-sidebar .menu-panel > a .menu-entry,
.aramis-tabler-sidebar .submenu-panel > a .menu-entry {
  gap: .45rem !important;
}

.aramis-tabler-sidebar .menu-text {
  display: inline-block !important;
  font-weight: inherit !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.aramis-tabler-sidebar .menu-icon {
  color: #a8b6c8 !important;
  flex: 0 0 1.1rem !important;
  height: 1.1rem !important;
  opacity: .95 !important;
  width: 1.1rem !important;
}

.aramis-tabler-sidebar .menu-icon svg {
  height: 1.05rem !important;
  stroke-width: 1.7 !important;
  width: 1.05rem !important;
}

/* Flecha fija, misma posicion siempre: no cambia al abrir/cerrar */
.aramis-tabler-sidebar .menu-group > button::after,
.aramis-tabler-sidebar .submenu > button::after {
  color: #9aa8ba !important;
  content: "›" !important;
  display: block !important;
  font-size: 1.05rem !important;
  font-weight: 400 !important;
  height: 1rem !important;
  line-height: 1rem !important;
  margin: 0 !important;
  opacity: .85 !important;
  position: absolute !important;
  right: .78rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  transition: none !important;
  width: .75rem !important;
}

.aramis-tabler-sidebar .menu-group.is-open > button::after,
.aramis-tabler-sidebar .menu-group.has-active > button::after,
.aramis-tabler-sidebar .menu-group:focus-within > button::after,
.aramis-tabler-sidebar .submenu.is-open > button::after,
.aramis-tabler-sidebar .submenu.has-active > button::after,
.aramis-tabler-sidebar .submenu:focus-within > button::after {
  transform: translateY(-50%) !important;
}

/* El foco ya no abre paneles: antes eso hacia que pareciera que no cerraba. */
.aramis-tabler-sidebar .menu-panel,
.aramis-tabler-sidebar .submenu-panel,
.aramis-tabler-sidebar .menu-group:focus-within > .menu-panel,
.aramis-tabler-sidebar .submenu:focus-within > .submenu-panel,
.aramis-tabler-sidebar .menu-group.has-active > .menu-panel,
.aramis-tabler-sidebar .submenu.has-active > .submenu-panel {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  display: none !important;
  margin: 0 !important;
  padding: .12rem 0 .2rem !important;
  position: static !important;
}

.aramis-tabler-sidebar .menu-panel[hidden],
.aramis-tabler-sidebar .submenu-panel[hidden] {
  display: none !important;
}

.aramis-tabler-sidebar .menu-group.is-open > .menu-panel:not([hidden]),
.aramis-tabler-sidebar .submenu.is-open > .submenu-panel:not([hidden]) {
  display: block !important;
}

.aramis-tabler-sidebar .menu-bar > a:hover,
.aramis-tabler-sidebar .menu-group > button:hover,
.aramis-tabler-sidebar .submenu > button:hover,
.aramis-tabler-sidebar .menu-panel > a:hover,
.aramis-tabler-sidebar .submenu-panel > a:hover {
  background: rgba(255, 255, 255, .055) !important;
  color: #ffffff !important;
}

.aramis-tabler-sidebar .menu-bar > a.active,
.aramis-tabler-sidebar .menu-group.is-open > button,
.aramis-tabler-sidebar .submenu.is-open > button,
.aramis-tabler-sidebar .menu-panel a.active,
.aramis-tabler-sidebar .submenu-panel a.active {
  background: rgba(47, 140, 255, .14) !important;
  color: #ffffff !important;
  font-weight: 400 !important;
}

.aramis-tabler-sidebar .menu-group.has-active > button,
.aramis-tabler-sidebar .submenu.has-active > button {
  color: #ffffff !important;
  font-weight: 400 !important;
}

.aramis-tabler-sidebar .menu-bar > a.active::before,
.aramis-tabler-sidebar .menu-group.has-active > button::before,
.aramis-tabler-sidebar .menu-group.is-open > button::before {
  background: var(--aramis-sidebar-active-line) !important;
  border-radius: 0 2px 2px 0 !important;
  bottom: .48rem !important;
  content: "" !important;
  left: -.72rem !important;
  position: absolute !important;
  top: .48rem !important;
  width: 3px !important;
}

.aramis-tabler-sidebar .menu-panel > a::before,
.aramis-tabler-sidebar .submenu-panel > a::before,
.aramis-tabler-sidebar .submenu > button .menu-entry::before {
  background: #7d8ea4 !important;
  border-radius: 50% !important;
  content: "" !important;
  height: .18rem !important;
  left: 1.42rem !important;
  opacity: .7 !important;
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: .18rem !important;
}

.aramis-tabler-sidebar .submenu-panel > a::before {
  left: 2.2rem !important;
  opacity: .5 !important;
}

.aramis-tabler-sidebar .menu-panel a.active::before,
.aramis-tabler-sidebar .submenu-panel a.active::before {
  background: #2f8cff !important;
  height: .24rem !important;
  opacity: 1 !important;
  width: .24rem !important;
}

.aramis-tabler-sidebar .menu-checked::after,
.aramis-tabler-sidebar [data-progress]::after {
  display: none !important;
}

.aramis-tabler-sidebar .aramis-module-sueldos .sueldos-menu-section > button {
  background: transparent !important;
  border: 0 !important;
  color: #c0cad8 !important;
  font-weight: 400 !important;
}

.aramis-tabler-sidebar .aramis-module-sueldos .sueldos-menu-section.is-open > button {
  background: rgba(255, 255, 255, .055) !important;
  color: #ffffff !important;
  font-weight: 400 !important;
}

.aramis-tabler-main {
  background: #f3f6fa !important;
}

@media (max-width: 1100px) {
  .aramis-sidebar-close {
    color: #cbd5e1 !important;
  }
}

/* ==========================================================
   PATCH 6 - Sidebar clara tipo Tabler + flechas fijas reales
   ========================================================== */
:root {
  --aramis-sidebar-light-bg: #f7f9fc;
  --aramis-sidebar-light-bg-2: #ffffff;
  --aramis-sidebar-blue: #164a80;
  --aramis-sidebar-line-light: #dce4ee;
  --aramis-sidebar-text-light: #1f3656;
  --aramis-sidebar-muted-light: #6f7f93;
  --aramis-sidebar-active-bg-light: #dceafb;
  --aramis-sidebar-active-text-light: #164a80;
  --aramis-sidebar-hover-light: #edf3fb;
  --aramis-sidebar-chevron-light: #7b8aa0;
  --aramis-sidebar-chevron-active-light: #315f95;
}

body.aramis-tabler-layout {
  color: #1d2b41 !important;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.aramis-tabler-sidebar.topbar {
  background: linear-gradient(180deg, var(--aramis-sidebar-light-bg) 0%, var(--aramis-sidebar-light-bg-2) 100%) !important;
  border-right: 1px solid var(--aramis-sidebar-line-light) !important;
  color: var(--aramis-sidebar-text-light) !important;
  flex-basis: 14.5rem !important;
  max-width: 14.5rem !important;
  width: 14.5rem !important;
}

.aramis-sidebar-inner {
  background: transparent !important;
  padding: 0 !important;
}

.aramis-sidebar-brand-row {
  background: linear-gradient(180deg, #154b82 0%, #0f3f72 100%) !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  color: #ffffff !important;
  min-height: 4rem !important;
  padding: 0 1.25rem !important;
}

.aramis-tabler-sidebar .brand,
.aramis-tabler-sidebar .navbar-brand {
  color: #ffffff !important;
  height: 4rem !important;
  text-decoration: none !important;
}

.aramis-tabler-sidebar .brand-copy-tabler strong,
.aramis-tabler-sidebar .brand-copy-tabler span {
  color: #ffffff !important;
  font-size: 1.33rem !important;
  line-height: 1 !important;
}

.aramis-tabler-sidebar .brand-copy-tabler strong {
  font-weight: 650 !important;
}

.aramis-tabler-sidebar .brand-copy-tabler span {
  font-weight: 400 !important;
}

.aramis-tabler-sidebar .menu-bar.aramis-sidebar-menu {
  background: transparent !important;
  gap: 0 !important;
  padding: 1rem .85rem 1.25rem !important;
}

.aramis-tabler-sidebar .menu-bar > a,
.aramis-tabler-sidebar .menu-group > button,
.aramis-tabler-sidebar .submenu > button,
.aramis-tabler-sidebar .menu-panel > a,
.aramis-tabler-sidebar .submenu-panel > a {
  align-items: center !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--aramis-sidebar-line-light) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--aramis-sidebar-text-light) !important;
  display: flex !important;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1.25 !important;
  outline: 0 !important;
  position: relative !important;
  text-decoration: none !important;
  transition: background-color .12s ease, color .12s ease !important;
  width: 100% !important;
}

.aramis-tabler-sidebar .menu-bar > a,
.aramis-tabler-sidebar .menu-group > button {
  font-size: .93rem !important;
  min-height: 2.75rem !important;
  padding: .64rem 2.05rem .64rem .42rem !important;
}

.aramis-tabler-sidebar .submenu > button,
.aramis-tabler-sidebar .menu-panel > a {
  color: #294460 !important;
  font-size: .9rem !important;
  min-height: 2.25rem !important;
  padding: .48rem 2.05rem .48rem 1.72rem !important;
}

.aramis-tabler-sidebar .submenu-panel > a {
  border-bottom: 0 !important;
  color: #58708c !important;
  font-size: .84rem !important;
  min-height: 1.9rem !important;
  padding: .36rem 1.1rem .36rem 2.75rem !important;
}

.aramis-tabler-sidebar .menu-entry {
  align-items: center !important;
  display: inline-flex !important;
  flex: 1 1 auto !important;
  gap: .7rem !important;
  min-width: 0 !important;
}

.aramis-tabler-sidebar .submenu > button .menu-entry,
.aramis-tabler-sidebar .menu-panel > a .menu-entry,
.aramis-tabler-sidebar .submenu-panel > a .menu-entry {
  gap: .45rem !important;
}

.aramis-tabler-sidebar .menu-text {
  color: inherit !important;
  display: inline-block !important;
  font-weight: 400 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.aramis-tabler-sidebar .menu-icon {
  color: #3f6f9f !important;
  flex: 0 0 1.12rem !important;
  height: 1.12rem !important;
  opacity: 1 !important;
  width: 1.12rem !important;
}

.aramis-tabler-sidebar .menu-icon svg {
  fill: none !important;
  height: 1.08rem !important;
  stroke: currentColor !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  stroke-width: 1.7 !important;
  width: 1.08rem !important;
}

/* Flecha tipo Tabler: fina, chica, alineada a la derecha, sin cambiar de posicion al abrir/cerrar. */
.aramis-tabler-sidebar .menu-group > button::after,
.aramis-tabler-sidebar .submenu > button::after,
.aramis-tabler-sidebar .menu-group.is-open > button::after,
.aramis-tabler-sidebar .menu-group.has-active > button::after,
.aramis-tabler-sidebar .menu-group:focus-within > button::after,
.aramis-tabler-sidebar .submenu.is-open > button::after,
.aramis-tabler-sidebar .submenu.has-active > button::after,
.aramis-tabler-sidebar .submenu:focus-within > button::after {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1.35px solid currentColor !important;
  border-right: 1.35px solid currentColor !important;
  color: var(--aramis-sidebar-chevron-light) !important;
  content: "" !important;
  display: block !important;
  font-size: 0 !important;
  height: .42rem !important;
  line-height: 1 !important;
  margin: 0 !important;
  opacity: 1 !important;
  position: absolute !important;
  right: .76rem !important;
  top: 50% !important;
  transform: translateY(-62%) rotate(45deg) !important;
  transform-origin: center !important;
  transition: color .12s ease !important;
  width: .42rem !important;
}

.aramis-tabler-sidebar .menu-group.is-open > button::after,
.aramis-tabler-sidebar .submenu.is-open > button::after,
.aramis-tabler-sidebar .menu-group.has-active > button::after,
.aramis-tabler-sidebar .submenu.has-active > button::after {
  color: var(--aramis-sidebar-chevron-active-light) !important;
}

.aramis-tabler-sidebar .menu-panel,
.aramis-tabler-sidebar .submenu-panel,
.aramis-tabler-sidebar .menu-group:focus-within > .menu-panel,
.aramis-tabler-sidebar .submenu:focus-within > .submenu-panel,
.aramis-tabler-sidebar .menu-group.has-active > .menu-panel,
.aramis-tabler-sidebar .submenu.has-active > .submenu-panel {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
}

.aramis-tabler-sidebar .menu-panel[hidden],
.aramis-tabler-sidebar .submenu-panel[hidden] {
  display: none !important;
}

.aramis-tabler-sidebar .menu-group.is-open > .menu-panel:not([hidden]),
.aramis-tabler-sidebar .submenu.is-open > .submenu-panel:not([hidden]) {
  display: block !important;
}

.aramis-tabler-sidebar .menu-bar > a:hover,
.aramis-tabler-sidebar .menu-group > button:hover,
.aramis-tabler-sidebar .submenu > button:hover,
.aramis-tabler-sidebar .menu-panel > a:hover,
.aramis-tabler-sidebar .submenu-panel > a:hover {
  background: var(--aramis-sidebar-hover-light) !important;
  color: var(--aramis-sidebar-active-text-light) !important;
}

.aramis-tabler-sidebar .menu-bar > a.active,
.aramis-tabler-sidebar .menu-group.is-open > button,
.aramis-tabler-sidebar .submenu.is-open > button,
.aramis-tabler-sidebar .menu-panel a.active,
.aramis-tabler-sidebar .submenu-panel a.active {
  background: var(--aramis-sidebar-active-bg-light) !important;
  color: var(--aramis-sidebar-active-text-light) !important;
  font-weight: 400 !important;
}

.aramis-tabler-sidebar .menu-group.has-active > button,
.aramis-tabler-sidebar .submenu.has-active > button {
  color: var(--aramis-sidebar-active-text-light) !important;
  font-weight: 400 !important;
}

.aramis-tabler-sidebar .menu-bar > a.active::before,
.aramis-tabler-sidebar .menu-group.has-active > button::before,
.aramis-tabler-sidebar .menu-group.is-open > button::before {
  background: #2f7fd4 !important;
  border-radius: 0 2px 2px 0 !important;
  bottom: .55rem !important;
  content: "" !important;
  left: -.85rem !important;
  position: absolute !important;
  top: .55rem !important;
  width: 3px !important;
}

.aramis-tabler-sidebar .menu-panel > a::before,
.aramis-tabler-sidebar .submenu-panel > a::before,
.aramis-tabler-sidebar .submenu > button .menu-entry::before {
  background: #486684 !important;
  border-radius: 50% !important;
  content: "" !important;
  height: .18rem !important;
  left: 1.12rem !important;
  opacity: .72 !important;
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: .18rem !important;
}

.aramis-tabler-sidebar .submenu-panel > a::before {
  background: #71869d !important;
  left: 2.15rem !important;
  opacity: .64 !important;
}

.aramis-tabler-sidebar .menu-panel a.active::before,
.aramis-tabler-sidebar .submenu-panel a.active::before {
  background: #1d75d8 !important;
  height: .24rem !important;
  opacity: 1 !important;
  width: .24rem !important;
}

.aramis-tabler-sidebar .menu-checked::after,
.aramis-tabler-sidebar [data-progress]::after {
  display: none !important;
}

.aramis-tabler-sidebar .aramis-module-sueldos > .menu-panel {
  max-height: none !important;
  overflow: visible !important;
}

.aramis-tabler-sidebar .aramis-module-sueldos .sueldos-menu-section > button {
  background: transparent !important;
  border-bottom: 1px solid var(--aramis-sidebar-line-light) !important;
  color: #294460 !important;
  font-weight: 400 !important;
}

.aramis-tabler-sidebar .aramis-module-sueldos .sueldos-menu-section.is-open > button,
.aramis-tabler-sidebar .aramis-module-sueldos .sueldos-menu-section.has-active > button {
  background: var(--aramis-sidebar-active-bg-light) !important;
  color: var(--aramis-sidebar-active-text-light) !important;
  font-weight: 400 !important;
}

.aramis-tabler-sidebar .sueldos-nav-link {
  align-items: center !important;
  display: flex !important;
  gap: .72rem !important;
  justify-content: flex-start !important;
  min-height: 2.25rem !important;
  padding-left: 1.55rem !important;
  text-align: left !important;
}

.aramis-tabler-sidebar .sueldos-nav-link::before {
  left: .58rem !important;
}

.aramis-tabler-sidebar .sueldos-nav-icon {
  align-items: center;
  color: #31516f;
  display: inline-flex;
  flex: 0 0 1.75rem;
  height: 1.75rem;
  justify-content: center;
  width: 1.75rem;
}

.aramis-tabler-sidebar .sueldos-nav-icon svg {
  fill: none;
  height: 1.62rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.28;
  width: 1.62rem;
}

.aramis-tabler-sidebar .sueldos-nav-label {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aramis-tabler-sidebar .sueldos-nav-link:hover .sueldos-nav-icon,
.aramis-tabler-sidebar .sueldos-nav-link.active .sueldos-nav-icon {
  color: #0b74de;
}

@media (min-width: 1101px) {
  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .aramis-module-sueldos > .menu-panel,
  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .aramis-module-sueldos > .menu-panel:not([hidden]),
  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .aramis-module-sueldos .sueldos-menu-section:first-child,
  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .aramis-module-sueldos .sueldos-menu-section:first-child > .submenu-panel,
  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .aramis-module-sueldos .sueldos-menu-section:first-child > .submenu-panel:not([hidden]) {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    opacity: 1 !important;
    overflow: visible !important;
    padding: 0 !important;
    pointer-events: auto !important;
    visibility: visible !important;
    width: auto !important;
  }

  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .aramis-module-sueldos .sueldos-menu-section:first-child > button {
    display: none !important;
  }

  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .aramis-module-sueldos .sueldos-menu-section:not(:first-child) {
    display: none !important;
  }

  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .sueldos-nav-link,
  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .submenu-panel .sueldos-nav-link {
    align-items: center !important;
    border-bottom: 0 !important;
    border-radius: .72rem !important;
    display: flex !important;
    height: 2.65rem !important;
    justify-content: center !important;
    margin: .12rem 0 !important;
    min-height: 2.65rem !important;
    opacity: 1 !important;
    padding: 0 !important;
    pointer-events: auto !important;
    visibility: visible !important;
    width: 100% !important;
  }

  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .sueldos-nav-link::before,
  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .sueldos-nav-label {
    display: none !important;
  }

  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .sueldos-nav-icon {
    color: #31516f !important;
    display: inline-flex !important;
    flex: 0 0 1.55rem !important;
    height: 1.55rem !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 1.55rem !important;
  }

  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .sueldos-nav-icon svg {
    display: block !important;
    height: 1.58rem !important;
    opacity: 1 !important;
    stroke-width: 1.28 !important;
    visibility: visible !important;
    width: 1.58rem !important;
  }
}

.aramis-tabler-main {
  background: #f4f7fb !important;
}

.aramis-tabler-topbar {
  background: rgba(255, 255, 255, .94) !important;
}

.aramis-tabler-sidebar .main-nav-link {
  align-items: center !important;
  display: flex !important;
  gap: .72rem !important;
  justify-content: flex-start !important;
  text-align: left !important;
}

.aramis-tabler-sidebar .menu-group > button.main-nav-link {
  justify-content: flex-start !important;
}

.aramis-tabler-sidebar .menu-group > button.main-nav-link::after {
  margin-left: auto !important;
}

.aramis-tabler-sidebar .main-nav-icon {
  align-items: center;
  color: #53677f;
  display: inline-flex;
  flex: 0 0 1.75rem;
  height: 1.75rem;
  justify-content: center;
  width: 1.75rem;
}

.aramis-tabler-sidebar .main-nav-icon svg {
  fill: none;
  height: 1.62rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.28;
  width: 1.62rem;
}

.aramis-tabler-sidebar .main-nav-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aramis-tabler-sidebar .main-nav-link:hover .main-nav-icon,
.aramis-tabler-sidebar .main-nav-link.active .main-nav-icon,
.aramis-tabler-sidebar .aramis-module-sueldos.has-active > .main-nav-link .main-nav-icon,
.aramis-tabler-sidebar .aramis-module-sueldos.is-open > .main-nav-link .main-nav-icon {
  color: #53677f !important;
}

@media (min-width: 1101px) {
  body.aramis-sidebar-collapsed .aramis-tabler-sidebar .main-nav-link {
    gap: 0 !important;
    justify-content: center !important;
  }

  body.aramis-sidebar-collapsed .aramis-tabler-sidebar .main-nav-label {
    display: none !important;
  }

  body.aramis-sidebar-collapsed .aramis-tabler-sidebar .main-nav-icon {
    color: #53677f !important;
    flex: 0 0 1.35rem !important;
    height: 1.35rem !important;
    width: 1.35rem !important;
  }

  body.aramis-sidebar-collapsed .aramis-tabler-sidebar .main-nav-icon svg {
    height: 1.28rem !important;
    width: 1.28rem !important;
  }
}

/* ==========================================================
   PATCH 6 - Home Sueldos estilo Tabler con datos del sistema
   ========================================================== */
.sueldos-home-tabler {
  color: #1d2b41;
  padding: 0 0 1.5rem;
}

.sueldos-home-head {
  align-items: flex-end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.sueldos-breadcrumb {
  color: #6b7a90;
  font-size: .82rem;
  margin-bottom: .4rem;
}

.sueldos-home-head h1 {
  color: #182338;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.15;
  margin: 0;
}

.sueldos-home-head p {
  color: #66758b;
  font-size: .92rem;
  margin: .28rem 0 0;
}

.sueldos-head-actions,
.sueldos-action-row,
.sueldos-card-title-row {
  align-items: center;
  display: flex;
  gap: .65rem;
}

.sueldos-head-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sueldos-period-select,
.sueldos-select-mini {
  align-items: center;
  background: #fff;
  border: 1px solid #dbe4ef;
  border-radius: .38rem;
  box-shadow: 0 1px 2px rgba(28, 39, 60, .04);
  color: #31445c;
  display: inline-flex;
  font-size: .82rem;
  gap: .45rem;
  min-height: 2.1rem;
  padding: .45rem .72rem;
}

.sueldos-select-mini {
  min-height: 1.8rem;
  padding: .32rem .55rem;
}

.sueldos-primary-action,
.sueldos-soft-action {
  align-items: center;
  border-radius: .38rem;
  display: inline-flex;
  font-size: .84rem;
  font-weight: 500;
  justify-content: center;
  min-height: 2.1rem;
  padding: .48rem .85rem;
  text-decoration: none !important;
}

.sueldos-primary-action {
  background: #0b74de;
  border: 1px solid #0b74de;
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(11, 116, 222, .18);
}

.sueldos-soft-action {
  background: #fff;
  border: 1px solid #cfe0f3;
  color: #0b64c0 !important;
}

.sueldos-hero-grid {
  display: grid;
  gap: .9rem;
  grid-template-columns: minmax(20rem, 1.1fr) minmax(28rem, 1.8fr);
  margin-bottom: .9rem;
}

.sueldos-card {
  background: #fff;
  border: 1px solid #dfe7f0;
  border-radius: .55rem;
  box-shadow: 0 2px 8px rgba(31, 45, 61, .055);
}

.sueldos-welcome-card {
  align-items: center;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 10rem minmax(0, 1fr);
  min-height: 9.2rem;
  padding: 1.25rem 1.35rem;
}

.sueldos-welcome-card h2,
.sueldos-card h2 {
  color: #1b2d46;
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 0;
}

.sueldos-welcome-card p {
  color: #64748b;
  font-size: .9rem;
  line-height: 1.45;
  margin: .45rem 0 .55rem;
}

.sueldos-muted-line {
  color: #53667d;
  font-size: .84rem;
  margin-bottom: .45rem;
}

.sueldos-pill {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: .72rem;
  font-weight: 500;
  line-height: 1;
  padding: .28rem .5rem;
}

.sueldos-pill-success {
  background: #e6f8ed;
  border: 1px solid #bbe9cb;
  color: #20864b;
}

.sueldos-pill-blue {
  background: #eaf3ff;
  border: 1px solid #cfe2ff;
  color: #176bcb;
}

.sueldos-pill-warn {
  background: #fff3e3;
  border: 1px solid #fed7aa;
  color: #c56a09;
}

.sueldos-hero-illustration {
  background: linear-gradient(135deg, #eff6ff, #f8fbff);
  border-radius: 50%;
  height: 7.8rem;
  position: relative;
  width: 7.8rem;
}

.sueldos-illus-circle {
  background: #dcecff;
  border-radius: 50%;
  height: 2.2rem;
  left: 1rem;
  position: absolute;
  top: 1.1rem;
  width: 2.2rem;
}

.sueldos-illus-person {
  background: #1677db;
  border-radius: 1rem 1rem .25rem .25rem;
  bottom: 1.35rem;
  height: 2.5rem;
  left: 1.8rem;
  position: absolute;
  width: 2.15rem;
}

.sueldos-illus-person::before {
  background: #d9e9ff;
  border: 3px solid #1677db;
  border-radius: 50%;
  content: "";
  height: 1.35rem;
  left: .28rem;
  position: absolute;
  top: -1.05rem;
  width: 1.35rem;
}

.sueldos-illus-board {
  background: #fff;
  border: 2px solid #b8d5f5;
  border-radius: .55rem;
  box-shadow: 0 4px 12px rgba(44, 89, 143, .13);
  height: 4.8rem;
  position: absolute;
  right: .8rem;
  top: 1.35rem;
  width: 3.6rem;
}

.sueldos-illus-board span {
  background: #1982e5;
  border-radius: 99px;
  display: block;
  height: .32rem;
  margin: .72rem .55rem 0;
}

.sueldos-illus-coin {
  align-items: center;
  background: #dff2ff;
  border-radius: 50%;
  color: #0b74de;
  display: flex;
  font-size: 1rem;
  font-weight: 600;
  height: 2.05rem;
  justify-content: center;
  left: -.2rem;
  position: absolute;
  top: 4rem;
  width: 2.05rem;
}

.sueldos-kpi-grid {
  display: grid;
  gap: .9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sueldos-kpi-card {
  align-items: center;
  display: flex;
  gap: .85rem;
  min-height: 4.15rem;
  padding: .85rem .95rem;
}

.sueldos-kpi-icon {
  align-items: center;
  border-radius: .55rem;
  display: flex;
  flex: 0 0 2.55rem;
  font-size: 1.1rem;
  height: 2.55rem;
  justify-content: center;
  width: 2.55rem;
}

.sueldos-kpi-blue { background: #eaf3ff; color: #0b74de; }
.sueldos-kpi-cyan { background: #e7f7ff; color: #1084b5; }
.sueldos-kpi-green { background: #e8f7ef; color: #15944d; }
.sueldos-kpi-violet { background: #f1e9ff; color: #7c3aed; }
.sueldos-kpi-orange { background: #fff1e8; color: #e86120; }
.sueldos-kpi-teal { background: #e6fbfb; color: #078a91; }

.sueldos-kpi-card small,
.sueldos-kpi-card em {
  color: #66758b;
  display: block;
  font-size: .72rem;
  font-style: normal;
}

.sueldos-kpi-card strong {
  color: #17263d;
  display: block;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.18;
  margin: .08rem 0;
}

.sueldos-main-grid {
  display: grid;
  gap: .9rem;
  grid-template-columns: minmax(22rem, 1.1fr) minmax(22rem, 1fr) minmax(22rem, 1fr);
  margin-bottom: .9rem;
}

.sueldos-process-card,
.sueldos-chart-card,
.sueldos-donut-card,
.sueldos-range-card,
.sueldos-table-card,
.sueldos-pending-card {
  padding: 1rem;
}

.sueldos-card-title-row {
  justify-content: space-between;
  margin-bottom: .9rem;
}

.sueldos-card-title-row a,
.sueldos-card-link {
  color: #0b74de !important;
  font-size: .8rem;
  text-decoration: none !important;
}

.sueldos-steps {
  display: grid;
  gap: .45rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: .9rem;
}

.sueldos-step {
  color: #8794a6;
  position: relative;
  text-align: center;
}

.sueldos-step:not(:last-child)::after {
  background: #d6e0eb;
  content: "";
  height: 2px;
  left: calc(50% + 1.2rem);
  position: absolute;
  right: calc(-50% + 1.2rem);
  top: .9rem;
}

.sueldos-step.done:not(:last-child)::after,
.sueldos-step.current:not(:last-child)::after {
  background: #7bb5f3;
}

.sueldos-step span {
  align-items: center;
  background: #fff;
  border: 1px solid #cdd8e6;
  border-radius: 50%;
  display: inline-flex;
  font-size: .76rem;
  font-weight: 600;
  height: 1.85rem;
  justify-content: center;
  margin-bottom: .38rem;
  position: relative;
  width: 1.85rem;
  z-index: 1;
}

.sueldos-step.done span,
.sueldos-step.current span {
  background: #0b74de;
  border-color: #0b74de;
  color: #fff;
}

.sueldos-step strong,
.sueldos-step small {
  display: block;
  font-size: .72rem;
  font-weight: 500;
}

.sueldos-step small {
  color: #7a8797;
  font-weight: 400;
  margin-top: .1rem;
}

.sueldos-mini-metrics {
  display: grid;
  gap: .6rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: .9rem;
}

.sueldos-mini-metrics div {
  border: 1px solid #dfe7f0;
  border-radius: .45rem;
  padding: .65rem .7rem;
}

.sueldos-mini-metrics small {
  color: #66758b;
  display: block;
  font-size: .72rem;
}

.sueldos-mini-metrics strong {
  color: #17263d;
  display: block;
  font-size: .98rem;
  font-weight: 600;
  margin-top: .18rem;
}

.sueldos-mini-metrics .ok { color: #1f9d55; }
.sueldos-mini-metrics .warn { color: #f97316; }

.sueldos-bars-chart {
  align-items: end;
  border-bottom: 1px solid #dce5ef;
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  min-height: 12rem;
  padding: .6rem .25rem .25rem;
}

.sueldos-bar-col {
  align-items: center;
  display: grid;
  gap: .35rem;
  height: 100%;
  text-align: center;
}

.sueldos-bar-track {
  align-items: end;
  background: linear-gradient(180deg, transparent, #f2f6fb);
  border-radius: .25rem .25rem 0 0;
  display: flex;
  height: 9.5rem;
  justify-content: center;
}

.sueldos-bar-track span {
  background: linear-gradient(180deg, #5da7f0, #0b74de);
  border-radius: .25rem .25rem 0 0;
  display: block;
  width: 64%;
}

.sueldos-bar-col small,
.sueldos-chart-legend {
  color: #64748b;
  font-size: .72rem;
}

.sueldos-chart-legend {
  align-items: center;
  display: flex;
  gap: .35rem;
  justify-content: center;
  margin-top: .55rem;
}

.sueldos-chart-legend span {
  background: #0b74de;
  border-radius: 50%;
  display: inline-block;
  height: .5rem;
  width: .5rem;
}

.sueldos-donut-wrap {
  align-items: center;
  display: grid;
  gap: .9rem;
  grid-template-columns: 10rem minmax(0, 1fr);
  margin-top: .8rem;
}

.sueldos-donut {
  align-items: center;
  background: conic-gradient(#0b74de 0 37%, #58a5f0 37% 58%, #22c55e 58% 67%, #f59e0b 67% 74%, #d9e1eb 74% 100%);
  border-radius: 50%;
  display: flex;
  height: 9.4rem;
  justify-content: center;
  position: relative;
  width: 9.4rem;
}

.sueldos-donut::after {
  background: #fff;
  border-radius: 50%;
  content: "";
  height: 5.6rem;
  position: absolute;
  width: 5.6rem;
}

.sueldos-donut span {
  color: #273850;
  font-size: .82rem;
  font-weight: 600;
  position: relative;
  text-align: center;
  z-index: 1;
}

.sueldos-donut small {
  color: #7a8797;
  display: block;
  font-size: .68rem;
  font-weight: 400;
}

.sueldos-aportes-list {
  display: grid;
  gap: .42rem;
}

.sueldos-aportes-list div {
  align-items: center;
  display: grid;
  gap: .45rem;
  grid-template-columns: .55rem 1fr 2.7rem 5rem;
}

.sueldos-aportes-list span {
  background: #0b74de;
  border-radius: 50%;
  height: .45rem;
  width: .45rem;
}

.sueldos-aportes-list div:nth-child(2) span { background: #58a5f0; }
.sueldos-aportes-list div:nth-child(3) span { background: #22c55e; }
.sueldos-aportes-list div:nth-child(4) span { background: #f59e0b; }
.sueldos-aportes-list div:nth-child(5) span { background: #94a3b8; }

.sueldos-aportes-list strong,
.sueldos-aportes-list em,
.sueldos-aportes-list b {
  color: #516176;
  font-size: .75rem;
  font-style: normal;
  font-weight: 400;
}

.sueldos-aportes-list b {
  color: #22324a;
  text-align: right;
}

.sueldos-bottom-grid {
  display: grid;
  gap: .9rem;
  grid-template-columns: minmax(22rem, 1fr) minmax(28rem, 1.35fr) minmax(20rem, .95fr);
}

.sueldos-range-list {
  display: grid;
  gap: .7rem;
}

.sueldos-range-row {
  align-items: center;
  display: grid;
  gap: .65rem;
  grid-template-columns: 10.8rem 1fr 3rem 2.2rem;
}

.sueldos-range-row span,
.sueldos-range-row em,
.sueldos-range-row strong {
  color: #53657d;
  font-size: .76rem;
  font-style: normal;
  font-weight: 400;
}

.sueldos-range-row div {
  background: #edf3fb;
  border-radius: 999px;
  height: .54rem;
  overflow: hidden;
}

.sueldos-range-row i {
  background: #0b74de;
  border-radius: inherit;
  display: block;
  height: 100%;
}

.sueldos-mini-table-wrap {
  overflow-x: auto;
}

.sueldos-mini-table {
  border-collapse: collapse;
  min-width: 43rem;
  width: 100%;
}

.sueldos-mini-table th,
.sueldos-mini-table td {
  border-bottom: 1px solid #e5edf5;
  color: #33455f;
  font-size: .76rem;
  padding: .58rem .45rem;
  text-align: left;
  white-space: nowrap;
}

.sueldos-mini-table th {
  color: #718096;
  font-weight: 500;
}

.sueldos-avatar {
  align-items: center;
  background: #eef3f8;
  border-radius: 50%;
  color: #60748c;
  display: inline-flex;
  font-size: .68rem;
  font-weight: 500;
  height: 1.65rem;
  justify-content: center;
  margin-right: .5rem;
  width: 1.65rem;
}

.sueldos-pending-card {
  display: grid;
  gap: .45rem;
}

.sueldos-pending-card h2 {
  margin-bottom: .4rem;
}

.sueldos-pending-card a {
  align-items: center;
  border-bottom: 1px solid #e5edf5;
  color: #33455f !important;
  display: grid;
  font-size: .82rem;
  gap: .7rem;
  grid-template-columns: 2rem 1fr auto;
  padding: .55rem 0;
  text-decoration: none !important;
}

.sueldos-pending-card a span {
  align-items: center;
  background: #edf6ff;
  border-radius: .45rem;
  color: #0b74de;
  display: flex;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.sueldos-pending-card a strong {
  color: #1f3048;
  font-size: .82rem;
  font-weight: 500;
}

@media (max-width: 1320px) {
  .sueldos-hero-grid,
  .sueldos-main-grid,
  .sueldos-bottom-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .sueldos-home-head,
  .sueldos-head-actions,
  .sueldos-action-row {
    align-items: stretch;
    flex-direction: column;
  }

  .sueldos-welcome-card {
    grid-template-columns: 1fr;
  }

  .sueldos-kpi-grid,
  .sueldos-mini-metrics,
  .sueldos-steps {
    grid-template-columns: 1fr;
  }

  .sueldos-step::after {
    display: none;
  }
}

/* ==========================================================
   PATCH 7 - Header/Sidebar como referencia Tabler clara
   ========================================================== */
body.aramis-tabler-layout {
  background: #f4f7fb !important;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.aramis-topbar-tabler-like {
  background: rgba(255,255,255,.96) !important;
  border-bottom: 1px solid #dbe3ee !important;
  box-shadow: 0 .12rem .55rem rgba(15, 23, 42, .05) !important;
  min-height: 3.85rem !important;
  padding: 0 !important;
}

.aramis-topbar-tabler-like .aramis-topbar-inner {
  align-items: center !important;
  display: flex !important;
  gap: 1rem !important;
  justify-content: space-between !important;
  min-height: 3.85rem !important;
  padding: 0 1.5rem !important;
}

.aramis-topbar-left,
.aramis-topbar-right,
.aramis-topbar-breadcrumb {
  align-items: center !important;
  display: flex !important;
}

.aramis-topbar-left { gap: 1.2rem !important; min-width: 0 !important; }
.aramis-topbar-right { gap: .72rem !important; margin-left: auto !important; }

.aramis-topbar-breadcrumb {
  color: #7b8797 !important;
  font-size: .82rem !important;
  gap: .72rem !important;
  min-width: 0 !important;
}

.aramis-topbar-breadcrumb a,
.aramis-topbar-breadcrumb strong,
.aramis-topbar-breadcrumb span {
  color: inherit !important;
  font-weight: 400 !important;
  text-decoration: none !important;
}

.aramis-topbar-breadcrumb strong { color: #22324a !important; }

.aramis-topbar-tabler-like .aramis-sidebar-toggle {
  align-items: center !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: .45rem !important;
  box-shadow: none !important;
  color: #4f6177 !important;
  display: inline-flex !important;
  height: 2rem !important;
  justify-content: center !important;
  padding: 0 !important;
  width: 2rem !important;
}

.aramis-topbar-tabler-like .aramis-sidebar-toggle:hover { background: #eef4fb !important; color: #0b74de !important; }

.aramis-topbar-icon-button,
.aramis-topbar-notification,
.aramis-topbar-profile {
  align-items: center !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: .55rem !important;
  color: #44566d !important;
  display: inline-flex !important;
  height: 2.35rem !important;
  justify-content: center !important;
  position: relative !important;
  text-decoration: none !important;
}

.aramis-topbar-icon-button { font-size: .95rem !important; width: 2.35rem !important; }
.aramis-topbar-icon-button:hover,
.aramis-topbar-notification:hover,
.aramis-topbar-profile:hover { background: #eef4fb !important; color: #0b74de !important; }

.aramis-topbar-notification { width: 2.35rem !important; }
.aramis-topbar-notification svg {
  fill: none !important;
  height: 1.05rem !important;
  stroke: currentColor !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  stroke-width: 1.7 !important;
  width: 1.05rem !important;
}
.aramis-topbar-notification i {
  align-items: center !important;
  background: #0b74de !important;
  border: 2px solid #fff !important;
  border-radius: 999px !important;
  color: #fff !important;
  display: flex !important;
  font-size: .58rem !important;
  font-style: normal !important;
  font-weight: 600 !important;
  height: 1rem !important;
  justify-content: center !important;
  position: absolute !important;
  right: .3rem !important;
  top: .15rem !important;
  width: 1rem !important;
}

.aramis-topbar-profile {
  gap: .55rem !important;
  height: 2.65rem !important;
  justify-content: flex-start !important;
  padding: .15rem 1.55rem .15rem .25rem !important;
}

.aramis-profile-avatar {
  align-items: center !important;
  background: #e9eef6 !important;
  border-radius: 999px !important;
  color: #53647a !important;
  display: inline-flex !important;
  font-size: .78rem !important;
  font-weight: 500 !important;
  height: 2.05rem !important;
  justify-content: center !important;
  text-transform: uppercase !important;
  width: 2.05rem !important;
}

.aramis-profile-copy { display: grid !important; line-height: 1.1 !important; }
.aramis-profile-copy strong { color: #26364e !important; font-size: .82rem !important; font-weight: 500 !important; }
.aramis-profile-copy small { color: #7b8797 !important; font-size: .72rem !important; font-weight: 400 !important; }

.aramis-profile-logout {
  bottom: 0 !important;
  margin: 0 !important;
  position: absolute !important;
  right: .45rem !important;
  top: 0 !important;
}
.aramis-profile-logout button {
  background: transparent !important;
  border: 0 !important;
  cursor: pointer !important;
  height: 100% !important;
  padding: 0 !important;
  position: relative !important;
  width: .8rem !important;
}
.aramis-profile-logout button::after {
  border-bottom: 1.35px solid #7f8da0 !important;
  border-right: 1.35px solid #7f8da0 !important;
  content: "" !important;
  display: block !important;
  height: .38rem !important;
  left: 50% !important;
  position: absolute !important;
  top: 50% !important;
  transform: translate(-50%, -65%) rotate(45deg) !important;
  width: .38rem !important;
}
.aramis-topbar-profile:hover .aramis-profile-logout button::after { border-color: #0b74de !important; }

/* Sidebar clara: flechas iguales a Tabler, finas, fijas y con color por estado. */
.aramis-tabler-sidebar .menu-group > button::after,
.aramis-tabler-sidebar .submenu > button::after,
.aramis-tabler-sidebar .menu-group.is-open > button::after,
.aramis-tabler-sidebar .submenu.is-open > button::after,
.aramis-tabler-sidebar .menu-group.has-active > button::after,
.aramis-tabler-sidebar .submenu.has-active > button::after,
.aramis-tabler-sidebar .menu-group:focus-within > button::after,
.aramis-tabler-sidebar .submenu:focus-within > button::after {
  background: none !important;
  border: 0 !important;
  border-bottom: 1.25px solid #8997aa !important;
  border-right: 1.25px solid #8997aa !important;
  color: transparent !important;
  content: "" !important;
  display: block !important;
  font-size: 0 !important;
  height: .38rem !important;
  line-height: 0 !important;
  margin: 0 !important;
  opacity: 1 !important;
  position: absolute !important;
  right: .72rem !important;
  top: 50% !important;
  transform: translateY(-62%) rotate(45deg) !important;
  transform-origin: center !important;
  transition: border-color .12s ease !important;
  width: .38rem !important;
}
.aramis-tabler-sidebar .menu-group.is-open > button::after,
.aramis-tabler-sidebar .submenu.is-open > button::after,
.aramis-tabler-sidebar .menu-group.has-active > button::after,
.aramis-tabler-sidebar .submenu.has-active > button::after,
.aramis-tabler-sidebar .menu-group > button:hover::after,
.aramis-tabler-sidebar .submenu > button:hover::after {
  border-color: #285f98 !important;
}

.aramis-tabler-sidebar .menu-bar > a,
.aramis-tabler-sidebar .menu-group > button,
.aramis-tabler-sidebar .submenu > button,
.aramis-tabler-sidebar .menu-panel > a,
.aramis-tabler-sidebar .submenu-panel > a,
.aramis-tabler-sidebar .menu-text {
  font-weight: 400 !important;
}

/* Header del home Sueldos con selector real de año/mes. */
.sueldos-home-tabler {
  padding: 1.35rem 1.6rem 2rem !important;
}
.sueldos-home-head {
  align-items: flex-start !important;
  border-bottom: 0 !important;
  display: flex !important;
  gap: 1rem !important;
  justify-content: space-between !important;
  margin: 0 0 1rem !important;
  padding: 0 !important;
}
.sueldos-home-head h1 {
  color: #1e2d44 !important;
  font-size: 1.35rem !important;
  font-weight: 600 !important;
  letter-spacing: -.015em !important;
  margin: .25rem 0 .2rem !important;
}
.sueldos-home-head p,
.sueldos-breadcrumb {
  color: #637189 !important;
  font-size: .86rem !important;
  font-weight: 400 !important;
}
.sueldos-head-actions {
  align-items: center !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: .65rem !important;
}
.sueldos-period-form {
  align-items: center !important;
  background: #fff !important;
  border: 1px solid #dbe4ef !important;
  border-radius: .48rem !important;
  box-shadow: 0 .12rem .45rem rgba(15, 23, 42, .04) !important;
  display: inline-flex !important;
  gap: .25rem !important;
  min-height: 2.35rem !important;
  padding: 0 .45rem !important;
}
.sueldos-period-form-icon {
  align-items: center !important;
  color: #4f6177 !important;
  display: inline-flex !important;
  height: 1.3rem !important;
  justify-content: center !important;
  width: 1.3rem !important;
}
.sueldos-period-form-icon svg {
  fill: none !important;
  height: 1rem !important;
  stroke: currentColor !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  stroke-width: 1.7 !important;
  width: 1rem !important;
}
.sueldos-period-form select {
  appearance: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #31435b !important;
  cursor: pointer !important;
  font-size: .82rem !important;
  font-weight: 400 !important;
  min-height: 2.15rem !important;
  outline: 0 !important;
  padding: 0 1rem 0 .2rem !important;
}
.sueldos-period-form select:focus { box-shadow: none !important; }
.sueldos-period-form::after {
  border-bottom: 1.25px solid #8190a4 !important;
  border-right: 1.25px solid #8190a4 !important;
  content: "" !important;
  height: .35rem !important;
  margin-left: -.85rem !important;
  pointer-events: none !important;
  transform: rotate(45deg) translateY(-.12rem) !important;
  width: .35rem !important;
}
.sr-only {
  clip: rect(0,0,0,0) !important;
  border: 0 !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  white-space: nowrap !important;
  width: 1px !important;
}
.sueldos-empty-state {
  align-items: center !important;
  background: #f7f9fc !important;
  border: 1px dashed #d8e2ee !important;
  border-radius: .55rem !important;
  color: #718096 !important;
  display: flex !important;
  font-size: .82rem !important;
  justify-content: center !important;
  min-height: 4rem !important;
  padding: .9rem !important;
  text-align: center !important;
}

@media (max-width: 780px) {
  .aramis-topbar-tabler-like .aramis-topbar-inner { padding: 0 .85rem !important; }
  .aramis-profile-copy { display: none !important; }
  .sueldos-home-tabler { padding: 1rem !important; }
}

/* ============================================================
   PATCH 8 - Home Sueldos compacto + sidebar contraible real
   - Achica el espacio entre topbar y contenido.
   - Elimina breadcrumb repetido dentro del tablero.
   - El botón hamburguesa contrae/expande la sidebar en escritorio.
   ============================================================ */

.aramis-tabler-sidebar.topbar {
  transition:
    flex-basis .18s ease,
    max-width .18s ease,
    min-width .18s ease,
    width .18s ease,
    margin-left .18s ease,
    transform .18s ease !important;
}

@media (min-width: 1101px) {
  body.aramis-sidebar-collapsed .aramis-tabler-sidebar.topbar {
    border-right-width: 0 !important;
    flex-basis: 0 !important;
    margin-left: calc(var(--aramis-sidebar-width) * -1) !important;
    max-width: 0 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    transform: translateX(-100%) !important;
    width: 0 !important;
  }

  body.aramis-sidebar-collapsed .aramis-tabler-main {
    flex-basis: 100% !important;
    max-width: 100% !important;
  }

  body.aramis-sidebar-collapsed .aramis-sidebar-toggle {
    background: #eef4fb !important;
    color: #0b74de !important;
  }
}

.aramis-page-content.page {
  padding: 0 !important;
}

.sueldos-home-tabler {
  padding: .55rem 1.55rem 2rem !important;
}

.sueldos-home-head {
  align-items: center !important;
  margin: 0 0 .85rem !important;
  min-height: 2.75rem !important;
}

.sueldos-home-head h1 {
  margin: 0 0 .2rem !important;
}

.sueldos-home-head p {
  margin: 0 !important;
}

.sueldos-breadcrumb {
  display: none !important;
}

.aramis-topbar-tabler-like {
  min-height: 3.55rem !important;
}

.aramis-topbar-tabler-like .aramis-topbar-inner {
  min-height: 3.55rem !important;
}

@media (max-width: 780px) {
  .sueldos-home-tabler {
    padding: .75rem .85rem 1.25rem !important;
  }
  .sueldos-home-head {
    align-items: flex-start !important;
  }
}

/* ============================================================
   PATCH 9 - Home Sueldos: iconos SVG + donut Tabler + flechas finas
   ============================================================ */
.aramis-tabler-sidebar .menu-group > button,
.aramis-tabler-sidebar .submenu > button {
  align-items: center !important;
  display: flex !important;
  justify-content: space-between !important;
  padding-right: 1.75rem !important;
}

.aramis-tabler-sidebar .menu-group > button::after,
.aramis-tabler-sidebar .submenu > button::after {
  background: transparent !important;
  border-bottom: 1.35px solid currentColor !important;
  border-right: 1.35px solid currentColor !important;
  color: #8c9ab0 !important;
  content: "" !important;
  flex: 0 0 auto !important;
  font-size: 0 !important;
  height: .42rem !important;
  line-height: 0 !important;
  margin: 0 !important;
  opacity: 1 !important;
  position: absolute !important;
  right: .78rem !important;
  top: 50% !important;
  transform: translateY(-58%) rotate(45deg) !important;
  transition: color .15s ease !important;
  width: .42rem !important;
}

.aramis-tabler-sidebar .menu-group.is-open > button::after,
.aramis-tabler-sidebar .menu-group.has-active > button::after,
.aramis-tabler-sidebar .submenu.is-open > button::after,
.aramis-tabler-sidebar .submenu.has-active > button::after,
.aramis-tabler-sidebar .menu-group > button:hover::after,
.aramis-tabler-sidebar .submenu > button:hover::after {
  color: #0b74de !important;
  transform: translateY(-58%) rotate(45deg) !important;
}

.sueldos-home-tabler-polished {
  --sueldos-blue: #0b74de;
  --sueldos-line: #dfe7f0;
  --sueldos-muted: #66758b;
  --sueldos-text: #1d2b41;
}

.sueldos-hero-grid-polished {
  align-items: stretch !important;
  grid-template-columns: minmax(28rem, 1.05fr) minmax(38rem, 1.8fr) !important;
}

.sueldos-welcome-card-polished {
  grid-template-columns: 13.5rem minmax(0, 1fr) !important;
  min-height: 9.4rem !important;
  padding: 1rem 1.35rem !important;
}

.sueldos-hero-svg {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 7.8rem;
  overflow: hidden;
  width: 13rem;
}

.sueldos-hero-svg svg,
.sueldos-hero-svg img {
  display: block;
  height: 8.25rem;
  max-width: 100%;
  object-fit: contain;
  width: 12.8rem;
}

.sueldos-welcome-copy h2 {
  color: #1d2b41 !important;
  font-size: 1.02rem !important;
  font-weight: 600 !important;
  letter-spacing: -.015em !important;
}

.sueldos-welcome-copy p {
  color: var(--sueldos-muted) !important;
  font-size: .88rem !important;
  line-height: 1.45 !important;
  max-width: 19rem !important;
}

.sueldos-kpi-grid-polished {
  gap: .85rem !important;
  grid-template-columns: repeat(3, minmax(13rem, 1fr)) !important;
}

.sueldos-kpi-card-polished {
  border-radius: .55rem !important;
  box-shadow: 0 2px 8px rgba(31, 45, 61, .052) !important;
  gap: .85rem !important;
  min-height: 4.95rem !important;
  padding: .85rem .95rem !important;
}

.sueldos-kpi-card-polished .sueldos-kpi-icon {
  border-radius: .72rem !important;
  flex: 0 0 2.75rem !important;
  height: 2.75rem !important;
  width: 2.75rem !important;
}

.sueldos-kpi-card-polished .sueldos-kpi-icon svg {
  display: block;
  fill: none;
  height: 1.32rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 1.32rem;
}

.sueldos-kpi-card-polished small {
  color: #65748a !important;
  font-size: .72rem !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

.sueldos-kpi-card-polished strong {
  color: #122238 !important;
  font-size: 1.08rem !important;
  font-weight: 600 !important;
}

.sueldos-kpi-card-polished em {
  color: #65748a !important;
  font-size: .72rem !important;
}

.sueldos-kpi-blue { background: #eaf3ff !important; color: #0b74de !important; }
.sueldos-kpi-cyan { background: #e7f7ff !important; color: #0b84ba !important; }
.sueldos-kpi-green { background: #e8f7ef !important; color: #15944d !important; }
.sueldos-kpi-violet { background: #f1e9ff !important; color: #7c3aed !important; }
.sueldos-kpi-orange { background: #fff1e8 !important; color: #f76707 !important; }
.sueldos-kpi-teal { background: #e6fbfb !important; color: #078a91 !important; }

.sueldos-donut-card-polished {
  min-height: 13.65rem !important;
  overflow: hidden !important;
  padding: 1rem 1rem .65rem !important;
}

.sueldos-donut-card-polished h2 {
  align-items: baseline;
  display: flex;
  gap: .35rem;
  margin-bottom: .9rem !important;
}

.sueldos-donut-card-polished h2 small {
  color: #64748b;
  font-size: .73rem;
  font-weight: 500;
}

.sueldos-donut-wrap-polished {
  align-items: center !important;
  display: grid !important;
  gap: 1rem !important;
  grid-template-columns: 10rem minmax(0, 1fr) !important;
}

/* Graficos reales (ApexCharts) del tablero de Sueldos: evolucion de costos,
   aportes y distribucion salarial. Los contenedores se dimensionan solos
   via JS (chart.height configurado en static/js/app.js initSueldosTableroCharts). */
.sueldos-apex-chart {
  margin-top: .3rem;
  width: 100%;
}

.sueldos-apex-donut {
  width: 100%;
}

.sueldos-apex-donut .apexcharts-canvas {
  margin: 0 auto;
}

.sueldos-charts-toolbar {
  align-items: center;
  display: flex;
  gap: .7rem;
  margin: 1rem 0 .6rem;
  position: relative;
}

.sueldos-charts-toolbar-title {
  color: #16213a;
  flex: 1 1 auto;
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0;
}

.sueldos-charts-toggle {
  align-items: center;
  background: linear-gradient(135deg, #eaf2fd 0%, #f5f9ff 100%);
  border: 1px solid #cfe0f7;
  border-radius: 999px;
  color: #2f5fa8;
  cursor: pointer;
  display: flex;
  font-size: .82rem;
  font-weight: 700;
  gap: .4rem;
  padding: .5rem .9rem;
  transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}

.sueldos-charts-toggle:hover {
  background: linear-gradient(135deg, #dbe9fc 0%, #eef4ff 100%);
  box-shadow: 0 6px 14px rgba(41, 92, 168, .18);
  transform: translateY(-1px);
}

.sueldos-charts-toggle[aria-expanded="true"] {
  background: #0b74de;
  border-color: #0b74de;
  color: #fff;
}

.sueldos-charts-toggle svg {
  fill: none;
  height: 1.05rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 1.05rem;
}

.sueldos-charts-panel {
  animation: aramisHeroKpiPanelIn .16s ease;
  background: #fff;
  border: 1px solid #dfe8f3;
  border-radius: .9rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .14);
  padding: .7rem;
  position: absolute;
  right: 0;
  top: 2.6rem;
  width: 18rem;
  z-index: 30;
}

.sueldos-charts-panel-head {
  margin-bottom: .5rem;
}

.sueldos-charts-panel-head strong {
  color: #16213a;
  font-size: .82rem;
  font-weight: 800;
}

.sueldos-charts-panel-list {
  display: grid;
  gap: .28rem;
  max-height: 20rem;
  overflow-y: auto;
}

.sueldos-charts-option {
  align-items: center;
  border-radius: .6rem;
  cursor: pointer;
  display: flex;
  gap: .5rem;
  padding: .38rem .4rem;
  transition: background .12s ease;
}

.sueldos-charts-option:hover {
  background: #f4f8fd;
}

.sueldos-charts-option input[type="checkbox"] {
  accent-color: #0b74de;
  flex: none;
  height: .95rem;
  margin: 0;
  width: .95rem;
}

.sueldos-charts-option-label {
  color: #33415c;
  font-size: .82rem;
  font-weight: 650;
}

.sueldos-charts-panel-hint {
  color: #8993a4;
  font-size: .68rem;
  margin: .5rem 0 0;
}

.sueldos-extra-charts-grid {
  display: grid;
  gap: .9rem;
  grid-template-columns: repeat(3, minmax(18rem, 1fr));
  margin-top: .9rem;
}

.sueldos-extra-charts-grid .sueldos-apex-chart {
  min-height: 220px;
}

@media (max-width: 1200px) {
  .sueldos-extra-charts-grid {
    grid-template-columns: repeat(2, minmax(16rem, 1fr));
  }
}

@media (max-width: 720px) {
  .sueldos-extra-charts-grid {
    grid-template-columns: 1fr;
  }
}

.sueldos-donut-polished {
  background: var(--sueldos-donut-bg) !important;
  border-radius: 50% !important;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .03) !important;
  height: 9rem !important;
  position: relative !important;
  width: 9rem !important;
}

.sueldos-donut-polished::after {
  background: #fff !important;
  border-radius: 50% !important;
  box-shadow: inset 0 0 0 1px #edf2f7 !important;
  content: "" !important;
  inset: 2.25rem !important;
  position: absolute !important;
  z-index: 0 !important;
}

.sueldos-donut-polished span {
  align-items: center !important;
  color: #344256 !important;
  display: flex !important;
  flex-direction: column !important;
  font-size: .92rem !important;
  font-weight: 500 !important;
  inset: 0 !important;
  justify-content: center !important;
  line-height: 1.15 !important;
  position: absolute !important;
  text-align: center !important;
  z-index: 1 !important;
}

.sueldos-donut-polished span small {
  color: #748198 !important;
  font-size: .72rem !important;
  font-weight: 400 !important;
  margin-top: .18rem !important;
}

.sueldos-aportes-list-polished {
  display: grid !important;
  gap: .45rem !important;
  min-width: 0 !important;
}

.sueldos-aportes-list-polished .sueldos-aporte-row {
  align-items: center !important;
  color: #40516a !important;
  display: grid !important;
  gap: .45rem !important;
  grid-template-columns: .55rem minmax(6.8rem, 1fr) 3.2rem 5.8rem !important;
  min-height: 1.05rem !important;
}

.sueldos-aportes-list-polished .sueldos-aporte-row > span {
  background: var(--aporte-color) !important;
  border-radius: 50% !important;
  height: .42rem !important;
  width: .42rem !important;
}

.sueldos-aportes-list-polished .sueldos-aporte-row strong,
.sueldos-aportes-list-polished .sueldos-aporte-row em,
.sueldos-aportes-list-polished .sueldos-aporte-row b {
  font-size: .73rem !important;
  font-style: normal !important;
  line-height: 1.15 !important;
}

.sueldos-aportes-list-polished .sueldos-aporte-row strong {
  color: #46566d !important;
  font-weight: 500 !important;
}

.sueldos-aportes-list-polished .sueldos-aporte-row em,
.sueldos-aportes-list-polished .sueldos-aporte-row b {
  color: #5f6f85 !important;
  font-weight: 500 !important;
  text-align: right !important;
}

.sueldos-aportes-list-polished.sin-importes .sueldos-aporte-row em,
.sueldos-aportes-list-polished.sin-importes .sueldos-aporte-row b {
  color: #8a96a8 !important;
}

.sueldos-card-link {
  align-items: center;
  border-top: 1px solid #eef2f7;
  color: #0b74de !important;
  display: flex;
  font-size: .78rem;
  gap: .45rem;
  margin: .85rem -1rem -.65rem;
  padding: .72rem 1rem;
  text-decoration: none !important;
}

.sueldos-card-link::after {
  border-bottom: 1.25px solid currentColor;
  border-right: 1.25px solid currentColor;
  content: "";
  height: .38rem;
  transform: rotate(-45deg);
  width: .38rem;
}

.sueldos-pending-icon {
  align-items: center !important;
  border-radius: .52rem !important;
  display: inline-flex !important;
  height: 2rem !important;
  justify-content: center !important;
  width: 2rem !important;
}

.sueldos-pending-icon svg {
  fill: none;
  height: 1rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 1rem;
}

.sueldos-pending-icon.blue { background: #eaf3ff !important; color: #0b74de !important; }
.sueldos-pending-icon.orange { background: #fff5e6 !important; color: #f59f00 !important; }
.sueldos-pending-icon.green { background: #e8f7ef !important; color: #15944d !important; }
.sueldos-pending-icon.violet { background: #f1e9ff !important; color: #7c3aed !important; }

@media (max-width: 1280px) {
  .sueldos-hero-grid-polished {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 900px) {
  .sueldos-kpi-grid-polished,
  .sueldos-main-grid,
  .sueldos-bottom-grid {
    grid-template-columns: 1fr !important;
  }
  .sueldos-donut-wrap-polished {
    grid-template-columns: 1fr !important;
  }
  .sueldos-donut-polished {
    margin-inline: auto !important;
  }
}


/* ============================================================
   PATCH 10 - Sidebar mini con iconos + acordeones independientes
   - Al replegar no desaparece: queda barra angosta con iconos.
   - Los grupos no cierran otros grupos. Se abren/cierran tocando el padre.
   ============================================================ */
:root {
  --aramis-sidebar-collapsed-width: 4.25rem;
}

@media (min-width: 1101px) {
  body.aramis-sidebar-collapsed .aramis-tabler-sidebar.topbar {
    border-right: 1px solid var(--aramis-sidebar-line-light) !important;
    flex-basis: var(--aramis-sidebar-collapsed-width) !important;
    margin-left: 0 !important;
    max-width: var(--aramis-sidebar-collapsed-width) !important;
    min-width: var(--aramis-sidebar-collapsed-width) !important;
    overflow: visible !important;
    transform: none !important;
    width: var(--aramis-sidebar-collapsed-width) !important;
  }

  body.aramis-sidebar-collapsed .aramis-tabler-main {
    flex-basis: calc(100% - var(--aramis-sidebar-collapsed-width)) !important;
    max-width: calc(100% - var(--aramis-sidebar-collapsed-width)) !important;
    min-width: 0 !important;
  }

  body.aramis-sidebar-collapsed .aramis-sidebar-brand-row {
    justify-content: center !important;
    min-height: 4rem !important;
    padding: 0 !important;
  }

  body.aramis-sidebar-collapsed .aramis-tabler-sidebar .brand,
  body.aramis-sidebar-collapsed .aramis-tabler-sidebar .navbar-brand {
    justify-content: center !important;
    width: 100% !important;
  }

  body.aramis-sidebar-collapsed .aramis-tabler-sidebar .brand-copy-tabler {
    align-items: center !important;
    background: rgba(255,255,255,.12) !important;
    border: 1px solid rgba(255,255,255,.22) !important;
    border-radius: .72rem !important;
    display: inline-flex !important;
    height: 2.35rem !important;
    justify-content: center !important;
    width: 2.35rem !important;
  }

  body.aramis-sidebar-collapsed .aramis-tabler-sidebar .brand-copy-tabler strong,
  body.aramis-sidebar-collapsed .aramis-tabler-sidebar .brand-copy-tabler span {
    display: none !important;
  }

  body.aramis-sidebar-collapsed .aramis-tabler-sidebar .brand-copy-tabler::after {
    color: #ffffff !important;
    content: "A" !important;
    font-size: 1.12rem !important;
    font-weight: 650 !important;
    letter-spacing: -.02em !important;
    line-height: 1 !important;
  }

  body.aramis-sidebar-collapsed .aramis-tabler-sidebar .menu-bar.aramis-sidebar-menu {
    gap: .35rem !important;
    padding: .9rem .55rem 1rem !important;
  }

  body.aramis-sidebar-collapsed .aramis-tabler-sidebar .menu-bar > a,
  body.aramis-sidebar-collapsed .aramis-tabler-sidebar .menu-group > button {
    border-bottom: 0 !important;
    border-radius: .7rem !important;
    justify-content: center !important;
    min-height: 2.72rem !important;
    padding: .55rem !important;
  }

  body.aramis-sidebar-collapsed .aramis-tabler-sidebar .menu-entry {
    flex: 0 0 auto !important;
    gap: 0 !important;
    justify-content: center !important;
  }

  body.aramis-sidebar-collapsed .aramis-tabler-sidebar .menu-icon {
    color: #315f95 !important;
    flex: 0 0 1.28rem !important;
    height: 1.28rem !important;
    width: 1.28rem !important;
  }

  body.aramis-sidebar-collapsed .aramis-tabler-sidebar .menu-icon svg {
    height: 1.22rem !important;
    width: 1.22rem !important;
  }

  body.aramis-sidebar-collapsed .aramis-tabler-sidebar .menu-text,
  body.aramis-sidebar-collapsed .aramis-tabler-sidebar .menu-group > button::after,
  body.aramis-sidebar-collapsed .aramis-tabler-sidebar .submenu > button::after,
  body.aramis-sidebar-collapsed .aramis-tabler-sidebar .menu-panel,
  body.aramis-sidebar-collapsed .aramis-tabler-sidebar .submenu-panel,
  body.aramis-sidebar-collapsed .aramis-tabler-sidebar .menu-panel:not([hidden]),
  body.aramis-sidebar-collapsed .aramis-tabler-sidebar .submenu-panel:not([hidden]) {
    display: none !important;
  }

  body.aramis-sidebar-collapsed .aramis-tabler-sidebar .menu-bar > a:hover,
  body.aramis-sidebar-collapsed .aramis-tabler-sidebar .menu-group > button:hover,
  body.aramis-sidebar-collapsed .aramis-tabler-sidebar .menu-bar > a.active,
  body.aramis-sidebar-collapsed .aramis-tabler-sidebar .menu-group.has-active > button,
  body.aramis-sidebar-collapsed .aramis-tabler-sidebar .menu-group.is-open > button {
    background: var(--aramis-sidebar-active-bg-light) !important;
    color: var(--aramis-sidebar-active-text-light) !important;
  }

  body.aramis-sidebar-collapsed .aramis-tabler-sidebar .menu-bar > a.active::before,
  body.aramis-sidebar-collapsed .aramis-tabler-sidebar .menu-group.has-active > button::before,
  body.aramis-sidebar-collapsed .aramis-tabler-sidebar .menu-group.is-open > button::before {
    bottom: .5rem !important;
    left: -.55rem !important;
    top: .5rem !important;
  }
}


/* ============================================================
   PATCH 11 - Sidebar mini limpia al replegar
   - Al contraer la sidebar se cierran todos los submenus.
   - En modo mini nunca se muestran textos sueltos de submenus.
   ============================================================ */
@media (min-width: 1101px) {
  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .menu-group > .menu-panel,
  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .submenu > .submenu-panel,
  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .menu-panel:not([hidden]),
  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .submenu-panel:not([hidden]) {
    display: none !important;
    height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    width: 0 !important;
  }

  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .menu-panel *,
  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .submenu-panel * {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }

  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .submenu,
  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .sueldos-menu-section {
    display: none !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
  }

  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .menu-group.is-open > button::after,
  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .submenu.is-open > button::after,
  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .menu-group.has-active > button::after,
  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .submenu.has-active > button::after {
    display: none !important;
  }

  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .aramis-module-sueldos > .menu-panel,
  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .aramis-module-sueldos .sueldos-menu-section:first-child,
  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .aramis-module-sueldos .sueldos-menu-section:first-child > .submenu-panel {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    opacity: 1 !important;
    overflow: visible !important;
    pointer-events: auto !important;
    visibility: visible !important;
    width: auto !important;
  }

  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .aramis-module-sueldos .sueldos-menu-section:first-child > .submenu-panel > .sueldos-nav-link,
  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .aramis-module-sueldos .sueldos-menu-section:first-child > .submenu-panel > .sueldos-nav-link .sueldos-nav-icon,
  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .aramis-module-sueldos .sueldos-menu-section:first-child > .submenu-panel > .sueldos-nav-link .sueldos-nav-icon svg {
    display: inline-flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
  }

  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .aramis-module-sueldos .sueldos-menu-section:first-child > .submenu-panel > .sueldos-nav-link .sueldos-nav-icon svg * {
    display: initial !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .aramis-module-sueldos .sueldos-menu-section:first-child > .submenu-panel > .sueldos-nav-link {
    align-items: center !important;
    border-radius: .72rem !important;
    height: 2.65rem !important;
    justify-content: center !important;
    margin: .12rem 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .aramis-module-sueldos .sueldos-menu-section:first-child > button,
  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .aramis-module-sueldos .sueldos-menu-section:first-child > .submenu-panel > .sueldos-nav-link::before,
  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .aramis-module-sueldos .sueldos-menu-section:first-child > .submenu-panel > .sueldos-nav-link .sueldos-nav-label {
    display: none !important;
  }

  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .aramis-module-sueldos:not(.is-open) > .menu-panel,
  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .aramis-module-sueldos:not(.is-open) .sueldos-menu-section,
  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .aramis-module-sueldos:not(.is-open) .submenu-panel {
    display: none !important;
    height: 0 !important;
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    visibility: hidden !important;
    width: 0 !important;
  }

  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .aramis-module-sueldos.is-open > .menu-panel,
  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .aramis-module-sueldos.is-open .sueldos-menu-section:first-child,
  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .aramis-module-sueldos.is-open .sueldos-menu-section:first-child > .submenu-panel {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    opacity: 1 !important;
    overflow: visible !important;
    pointer-events: auto !important;
    visibility: visible !important;
    width: auto !important;
  }
}

/* ============================================================
   PATCH 12 - Selector responsive estilo Tabler
   - Botones inferiores para previsualizar PC / tablet / celular.
   - No cambia rutas ni datos; solo aplica clases visuales al layout.
   ============================================================ */
.aramis-responsive-switcher {
  align-items: center;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(182, 193, 207, .8);
  border-radius: 999px;
  bottom: .72rem;
  box-shadow: 0 10px 28px rgba(24, 36, 51, .12);
  display: inline-flex;
  gap: .18rem;
  left: 50%;
  padding: .22rem;
  position: fixed;
  transform: translateX(-50%);
  z-index: 1080;
}

.aramis-responsive-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #6b7788;
  cursor: pointer;
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  margin: 0;
  padding: 0;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
  width: 2rem;
}

.aramis-responsive-button:hover {
  background: #eef4fb;
  color: #1d5d9f;
}

.aramis-responsive-button.is-active {
  background: #0b74de;
  box-shadow: 0 5px 14px rgba(11, 116, 222, .24);
  color: #fff;
}

.aramis-responsive-button svg {
  fill: none;
  height: 1.12rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
  width: 1.12rem;
}

body.aramis-responsive-preview-active {
  background: #e9eef5 !important;
  overflow-x: auto;
  padding-bottom: 3.8rem;
}

body.aramis-responsive-preview-active .aramis-tabler-app {
  background: var(--tblr-body-bg);
  border: 1px solid rgba(182, 193, 207, .9);
  border-radius: .85rem;
  box-shadow: 0 18px 45px rgba(24, 36, 51, .18);
  margin: .75rem auto 4.2rem;
  max-width: min(var(--aramis-responsive-preview-width), calc(100vw - 1.5rem));
  min-height: calc(100vh - 5rem);
  overflow: hidden;
  width: min(var(--aramis-responsive-preview-width), calc(100vw - 1.5rem));
}

body.aramis-preview-tablet {
  --aramis-responsive-preview-width: 820px;
}

body.aramis-preview-mobile {
  --aramis-responsive-preview-width: 390px;
}

body.aramis-preview-tablet .aramis-tabler-topbar,
body.aramis-preview-mobile .aramis-tabler-topbar {
  position: sticky;
  top: 0;
}

body.aramis-preview-tablet .aramis-page-content.page,
body.aramis-preview-mobile .aramis-page-content.page {
  max-width: 100% !important;
}

body.aramis-preview-mobile .aramis-tabler-app {
  display: block;
}

body.aramis-preview-mobile .aramis-tabler-main {
  flex-basis: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  width: 100% !important;
}

body.aramis-preview-mobile .aramis-tabler-sidebar.topbar {
  border-right: 1px solid var(--aramis-sidebar-line-light) !important;
  bottom: .75rem;
  box-shadow: 0 16px 38px rgba(24, 36, 51, .2) !important;
  height: auto !important;
  left: max(.75rem, calc((100vw - var(--aramis-responsive-preview-width)) / 2 + .75rem));
  max-height: calc(100vh - 1.5rem);
  max-width: min(17.25rem, calc(var(--aramis-responsive-preview-width) - 1.5rem));
  min-height: auto;
  overflow-y: auto;
  position: fixed;
  top: .75rem;
  transform: translateX(calc(-100% - 1rem));
  transition: transform .18s ease;
  width: min(17.25rem, calc(var(--aramis-responsive-preview-width) - 1.5rem));
  z-index: 1090;
}

body.aramis-preview-mobile.aramis-sidebar-open .aramis-tabler-sidebar.topbar {
  transform: translateX(0);
}

body.aramis-preview-mobile .aramis-sidebar-inner,
body.aramis-preview-mobile .aramis-tabler-sidebar.topbar .container-fluid {
  min-height: auto;
}

body.aramis-preview-mobile .aramis-sidebar-toggle {
  display: inline-flex !important;
}

body.aramis-preview-mobile .aramis-topbar-inner {
  gap: .45rem;
  padding: 0 .7rem !important;
}

body.aramis-preview-mobile .aramis-topbar-breadcrumb {
  font-size: .78rem;
  min-width: 0;
}

body.aramis-preview-mobile .aramis-topbar-right {
  gap: .25rem;
}

body.aramis-preview-mobile .aramis-topbar-profile {
  padding-inline: .35rem !important;
}

body.aramis-preview-mobile .aramis-profile-copy,
body.aramis-preview-mobile .aramis-topbar-notification i {
  display: none !important;
}

body.aramis-preview-mobile .aramis-page-content.page {
  padding: .8rem !important;
}

body.aramis-preview-mobile .app-footer,
body.aramis-preview-tablet .app-footer {
  display: none !important;
}

@media (max-width: 700px) {
  .aramis-responsive-switcher {
    bottom: .55rem;
  }
}

@media print {
  .aramis-responsive-switcher {
    display: none !important;
  }
}


/* ============================================================
   PATCH 13 - Responsive real para Home Sueldos y preview Tabler
   - En preview tablet/celular las grillas responden por clase, no por ancho del navegador.
   - Evita cortes horizontales, cards recortadas y selects angostos.
   - Mantiene el selector inferior de PC/tablet/celular.
   ============================================================ */
body.aramis-preview-tablet .aramis-tabler-app,
body.aramis-preview-mobile .aramis-tabler-app {
  overflow-x: hidden !important;
}

body.aramis-preview-tablet .aramis-tabler-main,
body.aramis-preview-mobile .aramis-tabler-main,
body.aramis-preview-tablet .aramis-page-content.page,
body.aramis-preview-mobile .aramis-page-content.page,
body.aramis-preview-tablet .sueldos-home-tabler,
body.aramis-preview-mobile .sueldos-home-tabler,
body.aramis-preview-tablet .sueldos-card,
body.aramis-preview-mobile .sueldos-card,
body.aramis-preview-tablet .sueldos-hero-grid,
body.aramis-preview-mobile .sueldos-hero-grid,
body.aramis-preview-tablet .sueldos-main-grid,
body.aramis-preview-mobile .sueldos-main-grid,
body.aramis-preview-tablet .sueldos-bottom-grid,
body.aramis-preview-mobile .sueldos-bottom-grid {
  min-width: 0 !important;
  max-width: 100% !important;
}

body.aramis-preview-tablet .aramis-page-content.page {
  overflow-x: hidden !important;
  padding: .9rem 1rem 4.35rem !important;
}

body.aramis-preview-tablet .sueldos-home-tabler {
  padding: .65rem .75rem 4rem !important;
}

body.aramis-preview-tablet .sueldos-home-head {
  align-items: flex-start !important;
  display: grid !important;
  gap: .7rem !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  margin-bottom: .9rem !important;
}

body.aramis-preview-tablet .sueldos-head-actions {
  justify-self: end !important;
  min-width: 0 !important;
}

body.aramis-preview-tablet .sueldos-hero-grid-polished,
body.aramis-preview-tablet .sueldos-hero-grid {
  grid-template-columns: 1fr !important;
}

body.aramis-preview-tablet .sueldos-welcome-card-polished {
  grid-template-columns: 10rem minmax(0, 1fr) !important;
  min-height: 8.1rem !important;
}

body.aramis-preview-tablet .sueldos-kpi-grid-polished,
body.aramis-preview-tablet .sueldos-kpi-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.aramis-preview-tablet .sueldos-main-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.aramis-preview-tablet .sueldos-donut-card {
  grid-column: 1 / -1 !important;
}

body.aramis-preview-tablet .sueldos-bottom-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.aramis-preview-tablet .sueldos-pending-card,
body.aramis-preview-tablet .sueldos-table-card {
  grid-column: auto !important;
}

body.aramis-preview-tablet .sueldos-mini-table-wrap {
  overflow-x: auto !important;
}

body.aramis-preview-tablet .sueldos-mini-table {
  min-width: 34rem !important;
}

body.aramis-preview-mobile .aramis-tabler-app {
  width: min(var(--aramis-responsive-preview-width), calc(100vw - 1.5rem)) !important;
}

body.aramis-preview-mobile .aramis-page-content.page {
  overflow-x: hidden !important;
  padding: .65rem .65rem 4.35rem !important;
}

body.aramis-preview-mobile .sueldos-home-tabler {
  padding: .55rem .45rem 4rem !important;
}

body.aramis-preview-mobile .sueldos-home-head {
  align-items: stretch !important;
  display: grid !important;
  gap: .65rem !important;
  grid-template-columns: 1fr !important;
  margin-bottom: .75rem !important;
  min-height: 0 !important;
}

body.aramis-preview-mobile .sueldos-home-head h1 {
  font-size: 1.1rem !important;
}

body.aramis-preview-mobile .sueldos-home-head p {
  font-size: .78rem !important;
  line-height: 1.35 !important;
  max-width: 18rem !important;
}

body.aramis-preview-mobile .sueldos-head-actions {
  align-items: stretch !important;
  display: grid !important;
  gap: .55rem !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) !important;
  justify-content: stretch !important;
  width: 100% !important;
}

body.aramis-preview-mobile .sueldos-period-form {
  min-width: 0 !important;
  width: 100% !important;
}

body.aramis-preview-mobile .sueldos-period-form select {
  font-size: .75rem !important;
  min-width: 0 !important;
  padding-left: .05rem !important;
  padding-right: .38rem !important;
}

body.aramis-preview-mobile #sueldos-periodo-mes {
  width: 3.65rem !important;
}

body.aramis-preview-mobile #sueldos-periodo-ano {
  width: 3.05rem !important;
}

body.aramis-preview-mobile .sueldos-period-form::after {
  margin-left: -.12rem !important;
}

body.aramis-preview-mobile .sueldos-head-actions .sueldos-primary-action {
  min-height: 2.35rem !important;
  padding: .45rem .6rem !important;
  width: 100% !important;
}

body.aramis-preview-mobile .sueldos-hero-grid-polished,
body.aramis-preview-mobile .sueldos-hero-grid,
body.aramis-preview-mobile .sueldos-main-grid,
body.aramis-preview-mobile .sueldos-bottom-grid,
body.aramis-preview-mobile .sueldos-kpi-grid-polished,
body.aramis-preview-mobile .sueldos-kpi-grid {
  grid-template-columns: 1fr !important;
}

body.aramis-preview-mobile .sueldos-hero-grid,
body.aramis-preview-mobile .sueldos-main-grid,
body.aramis-preview-mobile .sueldos-bottom-grid,
body.aramis-preview-mobile .sueldos-kpi-grid {
  gap: .7rem !important;
}

body.aramis-preview-mobile .sueldos-welcome-card-polished,
body.aramis-preview-mobile .sueldos-welcome-card {
  align-items: center !important;
  gap: .65rem !important;
  grid-template-columns: 6.4rem minmax(0, 1fr) !important;
  min-height: 7.4rem !important;
  padding: .75rem .75rem !important;
}

body.aramis-preview-mobile .sueldos-hero-svg {
  width: 6.2rem !important;
}

body.aramis-preview-mobile .sueldos-hero-svg svg {
  height: 5.5rem !important;
  width: 6.2rem !important;
}

body.aramis-preview-mobile .sueldos-welcome-copy {
  min-width: 0 !important;
}

body.aramis-preview-mobile .sueldos-welcome-copy h2 {
  font-size: .88rem !important;
  line-height: 1.2 !important;
  white-space: normal !important;
}

body.aramis-preview-mobile .sueldos-welcome-copy p,
body.aramis-preview-mobile .sueldos-muted-line {
  font-size: .76rem !important;
  line-height: 1.35 !important;
  max-width: none !important;
}

body.aramis-preview-mobile .sueldos-kpi-card-polished,
body.aramis-preview-mobile .sueldos-kpi-card {
  min-height: 4.25rem !important;
  padding: .72rem .78rem !important;
}

body.aramis-preview-mobile .sueldos-process-card,
body.aramis-preview-mobile .sueldos-chart-card,
body.aramis-preview-mobile .sueldos-donut-card,
body.aramis-preview-mobile .sueldos-range-card,
body.aramis-preview-mobile .sueldos-table-card,
body.aramis-preview-mobile .sueldos-pending-card {
  padding: .85rem !important;
}

body.aramis-preview-mobile .sueldos-card-title-row {
  align-items: flex-start !important;
  gap: .55rem !important;
  margin-bottom: .75rem !important;
}

body.aramis-preview-mobile .sueldos-card h2,
body.aramis-preview-mobile .sueldos-card-title-row h2 {
  font-size: .92rem !important;
  line-height: 1.25 !important;
}

body.aramis-preview-mobile .sueldos-steps {
  gap: .18rem !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  margin-bottom: .75rem !important;
}

body.aramis-preview-mobile .sueldos-step span {
  height: 1.55rem !important;
  margin-bottom: .26rem !important;
  width: 1.55rem !important;
}

body.aramis-preview-mobile .sueldos-step:not(:last-child)::after {
  left: calc(50% + .9rem) !important;
  right: calc(-50% + .9rem) !important;
  top: .76rem !important;
}

body.aramis-preview-mobile .sueldos-step strong,
body.aramis-preview-mobile .sueldos-step small {
  font-size: .62rem !important;
  line-height: 1.25 !important;
}

body.aramis-preview-mobile .sueldos-mini-metrics {
  gap: .45rem !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body.aramis-preview-mobile .sueldos-mini-metrics div {
  padding: .55rem .5rem !important;
}

body.aramis-preview-mobile .sueldos-mini-metrics small {
  font-size: .66rem !important;
}

body.aramis-preview-mobile .sueldos-action-row {
  display: grid !important;
  gap: .5rem !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.aramis-preview-mobile .sueldos-action-row .sueldos-primary-action {
  grid-column: 1 / -1 !important;
}

body.aramis-preview-mobile .sueldos-action-row .sueldos-primary-action,
body.aramis-preview-mobile .sueldos-action-row .sueldos-soft-action {
  min-height: 2.35rem !important;
  padding: .45rem .55rem !important;
  text-align: center !important;
  width: 100% !important;
}

body.aramis-preview-mobile .sueldos-bars-chart {
  gap: .35rem !important;
  min-height: 9.5rem !important;
}

body.aramis-preview-mobile .sueldos-bar-track {
  height: 7.5rem !important;
}

body.aramis-preview-mobile .sueldos-bar-col small,
body.aramis-preview-mobile .sueldos-chart-legend {
  font-size: .64rem !important;
}

body.aramis-preview-mobile .sueldos-donut-wrap-polished,
body.aramis-preview-mobile .sueldos-donut-wrap {
  gap: .75rem !important;
  grid-template-columns: 1fr !important;
}

body.aramis-preview-mobile .sueldos-donut-polished,
body.aramis-preview-mobile .sueldos-donut {
  height: 8rem !important;
  margin: 0 auto !important;
  width: 8rem !important;
}

body.aramis-preview-mobile .sueldos-donut-polished::after {
  inset: 2rem !important;
}

body.aramis-preview-mobile .sueldos-aportes-list-polished .sueldos-aporte-row {
  grid-template-columns: .5rem minmax(0, 1fr) 2.6rem 4.4rem !important;
}

body.aramis-preview-mobile .sueldos-aportes-list-polished .sueldos-aporte-row strong,
body.aramis-preview-mobile .sueldos-aportes-list-polished .sueldos-aporte-row em,
body.aramis-preview-mobile .sueldos-aportes-list-polished .sueldos-aporte-row b {
  font-size: .66rem !important;
}

body.aramis-preview-mobile .sueldos-range-row {
  gap: .45rem !important;
  grid-template-columns: minmax(6.9rem, 1fr) minmax(3.2rem, .8fr) 2.5rem 1.4rem !important;
}

body.aramis-preview-mobile .sueldos-range-row span,
body.aramis-preview-mobile .sueldos-range-row em,
body.aramis-preview-mobile .sueldos-range-row strong {
  font-size: .68rem !important;
}

body.aramis-preview-mobile .sueldos-mini-table-wrap {
  margin: 0 -.85rem -.85rem !important;
  overflow-x: auto !important;
  padding: 0 .85rem .85rem !important;
}

body.aramis-preview-mobile .sueldos-mini-table {
  min-width: 30rem !important;
}

body.aramis-preview-mobile .sueldos-pending-card a {
  gap: .6rem !important;
}

body.aramis-preview-mobile .aramis-responsive-switcher {
  bottom: .5rem !important;
}

@media (max-width: 900px) {
  body:not(.aramis-responsive-preview-active) .sueldos-hero-grid-polished,
  body:not(.aramis-responsive-preview-active) .sueldos-hero-grid,
  body:not(.aramis-responsive-preview-active) .sueldos-main-grid,
  body:not(.aramis-responsive-preview-active) .sueldos-bottom-grid {
    grid-template-columns: 1fr !important;
  }

  body:not(.aramis-responsive-preview-active) .sueldos-kpi-grid-polished,
  body:not(.aramis-responsive-preview-active) .sueldos-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  body:not(.aramis-responsive-preview-active) .aramis-page-content.page {
    overflow-x: hidden !important;
    padding: .65rem .65rem 4.2rem !important;
  }

  body:not(.aramis-responsive-preview-active) .sueldos-home-tabler {
    padding: .55rem .45rem 4rem !important;
  }

  body:not(.aramis-responsive-preview-active) .sueldos-home-head,
  body:not(.aramis-responsive-preview-active) .sueldos-head-actions,
  body:not(.aramis-responsive-preview-active) .sueldos-kpi-grid-polished,
  body:not(.aramis-responsive-preview-active) .sueldos-kpi-grid {
    grid-template-columns: 1fr !important;
  }

  body:not(.aramis-responsive-preview-active) .sueldos-welcome-card-polished,
  body:not(.aramis-responsive-preview-active) .sueldos-welcome-card {
    grid-template-columns: 7.3rem minmax(0, 1fr) !important;
    padding: .75rem !important;
  }

  body:not(.aramis-responsive-preview-active) .sueldos-hero-svg {
    min-height: 5.9rem !important;
    width: 7rem !important;
  }

  body:not(.aramis-responsive-preview-active) .sueldos-hero-svg svg,
  body:not(.aramis-responsive-preview-active) .sueldos-hero-svg img {
    height: 5.7rem !important;
    width: 6.9rem !important;
  }

  body:not(.aramis-responsive-preview-active) .sueldos-mini-table-wrap {
    overflow-x: auto !important;
  }
}

/* ============================================================
   PATCH 14 - Legajos Sueldos: interfaz Tabler programada
   ============================================================ */
.legajos-modern {
  color: #10243f;
  display: grid;
  gap: 1rem;
  margin: 0 auto;
  max-width: 1540px;
  padding: 1rem 1.35rem 1.75rem;
  width: 100%;
}

.legajos-modern * {
  box-sizing: border-box;
}

.legajos-modern svg,
.legajos-hero-card svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.legajos-modern-head {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 3.35rem;
}

.legajos-title-wrap {
  align-items: center;
  display: flex;
  gap: 1rem;
  min-width: 0;
}

.legajos-title-icon {
  align-items: center;
  background: rgba(255, 255, 255, .92);
  border: 1px solid #dde6f1;
  border-radius: 1rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .07);
  color: #385a82;
  display: inline-flex;
  flex: 0 0 3.25rem;
  height: 3.25rem;
  justify-content: center;
  width: 3.25rem;
}

.legajos-title-icon svg {
  height: 1.65rem;
  width: 1.65rem;
}

.legajos-modern h1 {
  color: #0f1f39 !important;
  font-size: 1.55rem !important;
  font-weight: 750 !important;
  letter-spacing: -.025em;
  line-height: 1.12;
  margin: 0 .0rem .22rem !important;
}

.legajos-modern h2,
.legajos-modern h3 {
  color: #0f1f39 !important;
  font-weight: 750 !important;
}

.legajos-modern p {
  color: #536782;
  font-size: .88rem;
  margin: 0;
}

.legajos-head-actions {
  align-items: center;
  display: flex;
  gap: .65rem;
  justify-content: flex-end;
}

.legajos-btn,
.legajos-icon-btn,
.legajos-page-btn {
  align-items: center;
  border-radius: .55rem !important;
  display: inline-flex;
  gap: .48rem;
  justify-content: center;
  min-height: 2.25rem;
  text-decoration: none !important;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
}

.legajos-btn svg,
.legajos-icon-btn svg,
.legajos-page-btn svg {
  height: 1.05rem;
  width: 1.05rem;
}

.legajos-btn {
  border: 1px solid #d8e2ef;
  font-size: .84rem !important;
  font-weight: 700 !important;
  padding: .48rem .92rem !important;
}

.legajos-btn-primary {
  background: #066fdc !important;
  border-color: #066fdc !important;
  box-shadow: 0 10px 24px rgba(6, 111, 220, .24) !important;
  color: #fff !important;
}

.legajos-btn-primary:hover {
  background: #005fc3 !important;
  border-color: #005fc3 !important;
  color: #fff !important;
}

.legajos-btn-soft,
.legajos-icon-btn {
  background: rgba(255, 255, 255, .92) !important;
  border-color: #dbe4ef !important;
  color: #24405f !important;
}

.legajos-btn-soft:hover,
.legajos-icon-btn:hover {
  background: #f4f8fd !important;
  border-color: #cbd9e8 !important;
  color: #0b74de !important;
}

.legajos-hero-card,
.legajos-main-card,
.legajos-side-card {
  background: rgba(255, 255, 255, .96);
  border: 1px solid #dfe8f3;
  border-radius: 1rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.legajos-hero-card {
  align-items: center;
  display: grid;
  gap: .85rem;
  grid-template-columns: 230px minmax(250px, .92fr) repeat(3, minmax(150px, .58fr));
  min-height: 9.5rem;
  padding: .78rem .92rem;
}

.legajos-hero-illustration {
  align-items: center;
  display: flex;
  justify-content: flex-start;
  min-width: 0;
  overflow: hidden;
}

.legajos-hero-illustration img {
  display: block;
  height: 8.35rem;
  max-height: 8.35rem;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  width: auto;
}

.legajos-hero-copy {
  display: grid;
  gap: .28rem;
  min-width: 0;
}

.legajos-hero-copy > span {
  color: #0b74de;
  display: block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 0;
}

.legajos-hero-copy h2 {
  color: #10243f;
  font-size: 1.32rem;
  font-weight: 650;
  line-height: 1.1;
  margin: 0;
}

.legajos-hero-copy p {
  color: #48607d;
  font-size: .86rem;
  line-height: 1.45;
  margin: 0;
  max-width: 27rem;
}

.legajos-kpi-card {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e1e9f3;
  border-radius: .9rem;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .045);
  display: flex;
  gap: .8rem;
  min-height: 6.15rem;
  padding: .75rem .86rem;
}

.legajos-kpi-icon,
.legajos-mini-icon {
  align-items: center;
  border-radius: 1rem;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
}

.legajos-kpi-icon {
  height: 3.2rem;
  width: 3.2rem;
}

.legajos-kpi-icon svg {
  height: 1.45rem;
  width: 1.45rem;
}

.legajos-kpi-icon.is-blue,
.legajos-mini-icon.is-blue { background: #eaf4ff; color: #0b74de; }
.legajos-kpi-icon.is-green,
.legajos-mini-icon.is-green { background: #e8f8ef; color: #16a05f; }
.legajos-kpi-icon.is-orange,
.legajos-mini-icon.is-orange { background: #fff0e7; color: #ff5b12; }
.legajos-kpi-icon.is-purple,
.legajos-mini-icon.is-purple { background: #f1e8ff; color: #7c3aed; }
.legajos-mini-icon.is-cyan { background: #e8fbff; color: #0891b2; }

.legajos-kpi-card span:not(.legajos-kpi-icon) {
  color: #596b83;
  display: block;
  font-size: .78rem;
  font-weight: 650;
  line-height: 1.25;
}

.legajos-kpi-card strong {
  color: #0f1f39;
  display: block;
  font-size: 1.55rem;
  font-weight: 750;
  line-height: 1.05;
  margin: .18rem 0 .35rem;
}

.legajos-kpi-card small {
  color: #6b7d93;
  display: block;
  font-size: .74rem;
  line-height: 1.2;
}

.legajos-kpi-card small.is-positive { color: #0d9f5c; }
.legajos-kpi-card small.is-warning { color: #f05a16; }

.legajos-workspace-grid {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
}

.legajos-main-card {
  min-width: 0;
  overflow: hidden;
}

.legajos-view-tabs {
  align-items: center;
  border-bottom: 2px solid #cfe3f5;
  display: flex;
  gap: .15rem;
  padding: .7rem .75rem .55rem;
}

.legajos-view-tabs button,
.legajos-view-tabs a,
.legajos-view-tabs span {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: .5rem;
  color: #39516e;
  display: inline-flex;
  font-size: .82rem !important;
  font-weight: 700 !important;
  justify-content: center;
  min-height: 2.1rem;
  min-width: 4.4rem;
  padding: .36rem .78rem !important;
  text-decoration: none !important;
}

.legajos-view-tabs .is-active {
  background: #edf6ff !important;
  border-color: #d9eaff !important;
  color: #066fdc !important;
}

.legajos-filterbar {
  align-items: center;
  border-bottom: 2px solid #cfe3f5;
  display: grid;
  gap: .65rem;
  grid-template-columns: minmax(240px, 1fr) minmax(150px, .35fr) minmax(170px, .45fr) auto auto;
  padding: .85rem .75rem;
}

.legajos-searchbox {
  align-items: center;
  background: #fff;
  border: 1px solid #dbe5f1;
  border-radius: .55rem;
  color: #8aa0b6;
  display: flex;
  gap: .55rem;
  height: 2.35rem;
  min-width: 0;
  padding: 0 .7rem;
}

.legajos-searchbox svg {
  flex: 0 0 1.05rem;
  height: 1.05rem;
  width: 1.05rem;
}

.legajos-searchbox input {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #223955;
  flex: 1 1 auto;
  font-size: .84rem;
  height: 100%;
  min-width: 0;
  outline: 0;
  padding: 0 !important;
}

.legajos-filterbar select,
.legajos-page-size select {
  appearance: auto;
  background: #fff !important;
  border: 1px solid #dbe5f1 !important;
  border-radius: .55rem !important;
  color: #203954 !important;
  font-size: .82rem !important;
  font-weight: 600 !important;
  height: 2.35rem !important;
  min-height: 2.35rem !important;
  padding: 0 .7rem !important;
}

.legajos-icon-btn {
  height: 2.35rem;
  padding: 0 .7rem;
  width: 2.55rem;
}

.legajos-table-scroll {
  overflow-x: auto;
  width: 100%;
}

.legajos-modern-table {
  border-collapse: collapse;
  color: #183250;
  min-width: 900px;
  width: 100%;
}

.legajos-modern-table th,
.legajos-modern-table td {
  border-bottom: 1px solid #e5edf6;
  padding: .72rem .78rem;
  text-align: left;
  vertical-align: middle;
}

.aramis-page-content .legajos-modern-table thead th,
.legajos-modern-table thead th {
  background: #e4f1fb !important;
  border-bottom: 1px solid #c9e3f7 !important;
  color: #244f86 !important;
  font-size: .82rem !important;
  font-weight: 800 !important;
  letter-spacing: .02em;
  text-transform: none !important;
  white-space: nowrap;
}

.legajos-modern-table tbody tr:hover {
  background: #f8fbff;
}

.legajos-number-cell {
  color: #132d4b;
  font-weight: 700;
  white-space: nowrap;
}

.legajos-row-dot {
  background: #93a4b8;
  border-radius: 999px;
  display: inline-block;
  height: .32rem;
  margin-right: .55rem;
  vertical-align: middle;
  width: .32rem;
}

.legajos-row-dot.is-on { background: #0b74de; }

.legajos-person-cell {
  align-items: center;
  display: flex;
  gap: .72rem;
  min-width: 15rem;
}

.legajos-avatar {
  align-items: center;
  border: 1px solid rgba(15, 23, 42, .05);
  border-radius: 999px;
  color: #0f3568;
  display: inline-flex;
  flex: 0 0 2.05rem;
  font-size: .74rem;
  font-weight: 800;
  height: 2.05rem;
  justify-content: center;
  width: 2.05rem;
}

.legajos-avatar svg {
  height: 1rem;
  width: 1rem;
}

.legajos-avatar.is-blue { background: #dbeafe; color: #0b74de; }
.legajos-avatar.is-green { background: #dcfce7; color: #16884d; }
.legajos-avatar.is-purple { background: #ede9fe; color: #6d28d9; }
.legajos-avatar.is-orange { background: #ffedd5; color: #ea580c; }
.legajos-avatar.is-cyan { background: #cffafe; color: #0e7490; }
.legajos-avatar.is-slate,
.legajos-avatar.is-empty { background: #eff6ff; color: #5b8fd6; }

.legajos-person-cell a,
.legajos-cell-main,
.legajos-cell-money {
  color: #183250 !important;
  display: block;
  font-size: .82rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
}

.legajos-person-cell a:hover {
  color: #0b74de !important;
}

.legajos-modern-table small {
  color: #657993;
  display: block;
  font-size: .72rem;
  line-height: 1.25;
  margin-top: .12rem;
  white-space: nowrap;
}

.legajos-status-pill {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-size: .72rem;
  font-weight: 750;
  line-height: 1;
  min-height: 1.35rem;
  padding: .24rem .58rem;
  white-space: nowrap;
}

.legajos-status-pill.is-active {
  background: #dcfce7;
  border-color: #bbf7d0;
  color: #16803f;
}

.legajos-status-pill.is-draft {
  background: #eef2f7;
  border-color: #d9e2ec;
  color: #516174;
}

.legajos-status-pill.is-inactive {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

.legajos-status-pill.is-history {
  background: #f3e8ff;
  border-color: #e9d5ff;
  color: #7e22ce;
}

.legajos-row-actions {
  align-items: center;
  display: flex;
  gap: .45rem;
  justify-content: flex-start;
}

.legajos-row-actions a {
  align-items: center;
  background: #fff;
  border: 1px solid #dbe5f1;
  border-radius: .45rem;
  color: #0b74de;
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  text-decoration: none !important;
  width: 2rem;
}

.legajos-row-actions a:hover {
  background: #edf6ff;
  border-color: #c7def8;
}

.legajos-row-actions svg {
  fill: none;
  height: 1rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 1rem;
}

.legajos-empty {
  color: #63758b;
  padding: 2rem !important;
  text-align: center !important;
}

.legajos-table-footer {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: .9rem .75rem;
}

.legajos-table-footer > span {
  color: #334b67;
  font-size: .78rem;
  font-weight: 650;
}

.legajos-pager {
  align-items: center;
  display: flex;
  gap: .45rem;
}

.legajos-page-size select {
  min-width: 7.6rem;
}

.legajos-page-btn {
  background: #fff;
  border: 1px solid #dce6f1;
  color: #5c7088;
  font-size: 1rem;
  font-weight: 750;
  height: 2.2rem;
  width: 2.2rem;
}

.legajos-page-btn.is-current {
  background: #066fdc;
  border-color: #066fdc;
  box-shadow: 0 10px 20px rgba(6, 111, 220, .2);
  color: #fff;
}

.legajos-page-btn.is-disabled {
  color: #b6c3d0;
  pointer-events: none;
}

.legajos-side-panel {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.legajos-side-card {
  padding: 1rem;
}

.legajos-side-card h2 {
  align-items: center;
  display: flex;
  font-size: .9rem !important;
  gap: .55rem;
  margin: 0 0 .95rem !important;
}

.legajos-mini-icon {
  border-radius: .55rem;
  height: 1.9rem;
  width: 1.9rem;
}

.legajos-mini-icon svg {
  height: 1rem;
  width: 1rem;
}

.legajos-summary-list {
  display: grid;
  gap: .72rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.legajos-summary-list li,
.legajos-activity-item {
  align-items: center;
  display: flex;
  gap: .72rem;
  justify-content: space-between;
}

.legajos-summary-list span {
  align-items: center;
  color: #52677e;
  display: inline-flex;
  font-size: .82rem;
  gap: .5rem;
}

.legajos-summary-list i {
  border-radius: .35rem;
  display: inline-block;
  height: 1.4rem;
  position: relative;
  width: 1.4rem;
}

.legajos-summary-list i::after {
  border: 1.8px solid currentColor;
  border-radius: .25rem;
  content: "";
  inset: .32rem;
  position: absolute;
}

.legajos-summary-list i.is-blue { background: #eaf4ff; color: #0b74de; }
.legajos-summary-list i.is-green { background: #e8f8ef; color: #16a05f; }
.legajos-summary-list i.is-orange { background: #fff0e7; color: #ff5b12; }
.legajos-summary-list i.is-slate { background: #eef2f7; color: #64748b; }

.legajos-summary-list strong {
  color: #0f1f39;
  font-size: .86rem;
  font-weight: 800;
}

.legajos-summary-list strong.is-green { color: #16803f; }
.legajos-summary-list strong.is-orange { color: #e14e0b; }

.legajos-report-link {
  align-items: center;
  background: #f8fbff;
  border: 1px solid #dbe8f7;
  border-radius: .55rem;
  color: #066fdc !important;
  display: flex;
  font-size: .8rem;
  font-weight: 750;
  justify-content: center;
  min-height: 2.25rem;
  padding: .45rem .7rem;
  text-decoration: none !important;
}

.legajos-report-link svg {
  height: .95rem;
  margin-left: .45rem;
  width: .95rem;
}

.legajos-activity-list {
  display: grid;
  gap: .85rem;
}

.legajos-activity-item {
  color: inherit !important;
  justify-content: flex-start;
  text-decoration: none !important;
}

.legajos-activity-item span:nth-child(2) {
  min-width: 0;
}

.legajos-activity-item strong {
  color: #183250;
  display: block;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legajos-activity-item small {
  color: #61748a;
  display: block;
  font-size: .72rem;
  line-height: 1.2;
}

.legajos-activity-item em {
  color: #74869b;
  font-size: .72rem;
  font-style: normal;
  margin-left: auto;
  white-space: nowrap;
}

.legajos-empty-side {
  color: #64748b;
  font-size: .8rem;
  padding: .5rem 0;
}

body.aramis-sidebar-collapsed .legajos-modern {
  max-width: 1600px;
}

body.aramis-preview-tablet .legajos-modern,
body.aramis-preview-mobile .legajos-modern {
  padding: .8rem;
}

body.aramis-preview-tablet .legajos-hero-card {
  grid-template-columns: minmax(260px, 1fr) repeat(2, minmax(170px, .7fr));
}

body.aramis-preview-tablet .legajos-workspace-grid {
  grid-template-columns: 1fr;
}

body.aramis-preview-tablet .legajos-side-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.aramis-preview-mobile .legajos-modern-head,
body.aramis-preview-mobile .legajos-table-footer,
body.aramis-preview-mobile .legajos-head-actions {
  align-items: stretch;
  flex-direction: column;
}

body.aramis-preview-mobile .legajos-title-wrap {
  align-items: flex-start;
}

body.aramis-preview-mobile .legajos-hero-card {
  grid-template-columns: 1fr;
}

body.aramis-preview-mobile .legajos-hero-illustration {
  justify-content: center;
}

body.aramis-preview-mobile .legajos-hero-illustration img {
  height: auto;
  max-height: 10rem;
  width: 100%;
}

body.aramis-preview-mobile .legajos-filterbar,
body.aramis-preview-mobile .legajos-workspace-grid,
body.aramis-preview-mobile .legajos-side-panel {
  grid-template-columns: 1fr;
}

body.aramis-preview-mobile .legajos-btn,
body.aramis-preview-mobile .legajos-head-actions form,
body.aramis-preview-mobile .legajos-head-actions button {
  width: 100%;
}

body.aramis-preview-mobile .legajos-pager {
  justify-content: space-between;
  width: 100%;
}

@media (max-width: 1180px) {
  .legajos-hero-card {
    grid-template-columns: minmax(260px, 1fr) repeat(2, minmax(165px, .7fr));
  }
  .legajos-workspace-grid {
    grid-template-columns: 1fr;
  }
  .legajos-side-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .legajos-modern {
    padding: .8rem .75rem 1.25rem;
  }
  .legajos-modern-head,
  .legajos-table-footer,
  .legajos-head-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .legajos-title-wrap {
    align-items: flex-start;
  }
  .legajos-hero-card,
  .legajos-filterbar,
  .legajos-side-panel {
    grid-template-columns: 1fr;
  }
  .legajos-hero-illustration {
    justify-content: center;
  }
  .legajos-hero-illustration img {
    height: auto;
    max-height: 10rem;
    width: 100%;
  }
  .legajos-kpi-card {
    min-height: 5.5rem;
  }
  .legajos-btn,
  .legajos-head-actions form,
  .legajos-head-actions button {
    width: 100%;
  }
  .legajos-side-panel {
    display: grid;
  }
}


/* ============================================================
   PATCH 15 - Fuente liviana global y Legajos sin negritas pesadas
   Aplica sobre todos los templates que usan aramis_tabler.css.
   ============================================================ */
:root {
  --aramis-font-ui: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body.aramis-tabler-layout,
body.login-page,
body.aramis-tabler-layout *,
body.login-page * {
  font-family: var(--aramis-font-ui) !important;
  letter-spacing: 0 !important;
}

body.aramis-tabler-layout {
  font-weight: 400 !important;
}

/* Menú y barra superior más parecidos al Tabler original: livianos y legibles */
.aramis-tabler-sidebar .brand-copy strong,
.aramis-topbar-title strong {
  font-weight: 600 !important;
}

.aramis-tabler-sidebar .brand-copy small,
.aramis-topbar-kicker {
  font-weight: 400 !important;
}

.aramis-tabler-sidebar .menu-bar > a,
.aramis-tabler-sidebar .menu-group > button,
.aramis-tabler-sidebar .submenu > button,
.aramis-tabler-sidebar .menu-panel > a,
.aramis-tabler-sidebar .submenu-panel > a {
  font-weight: 400 !important;
}

.aramis-tabler-sidebar .menu-bar > a.active,
.aramis-tabler-sidebar .menu-panel > a.active,
.aramis-tabler-sidebar .submenu-panel > a.active,
.aramis-tabler-sidebar .menu-group.has-active > button,
.aramis-tabler-sidebar .submenu.has-active > button {
  font-weight: 500 !important;
}

/* Encabezados generales: presencia sin peso excesivo */
body.aramis-tabler-layout h1,
body.aramis-tabler-layout h2,
body.aramis-tabler-layout h3,
body.aramis-tabler-layout h4,
body.aramis-tabler-layout h5,
body.aramis-tabler-layout h6 {
  font-family: var(--aramis-font-ui) !important;
  font-weight: 600 !important;
  letter-spacing: -.015em !important;
}

body.aramis-tabler-layout strong,
body.aramis-tabler-layout b {
  font-weight: 500 !important;
}

body.aramis-tabler-layout .btn,
body.aramis-tabler-layout button,
body.aramis-tabler-layout select,
body.aramis-tabler-layout input,
body.aramis-tabler-layout textarea {
  font-family: var(--aramis-font-ui) !important;
  font-weight: 400 !important;
}

/* Legajos: ajuste fino del diseño elegido */
.legajos-modern {
  color: #1f3148 !important;
  font-family: var(--aramis-font-ui) !important;
  font-weight: 400 !important;
}

.legajos-modern h1 {
  color: #14233a !important;
  font-size: 1.42rem !important;
  font-weight: 600 !important;
  letter-spacing: -.018em !important;
}

.legajos-modern h2,
.legajos-modern h3,
.legajos-side-card h2 {
  color: #14233a !important;
  font-weight: 600 !important;
}

.legajos-modern p,
.legajos-modern small,
.legajos-kpi-card span:not(.legajos-kpi-icon),
.legajos-summary-list span,
.legajos-activity-item small,
.legajos-activity-item em {
  font-weight: 400 !important;
}

.legajos-btn,
.legajos-icon-btn,
.legajos-page-btn,
.legajos-view-tabs button,
.legajos-view-tabs a,
.legajos-view-tabs span,
.legajos-filterbar select,
.legajos-page-size select,
.legajos-report-link {
  font-weight: 500 !important;
}

.legajos-kpi-card strong {
  color: #14233a !important;
  font-weight: 600 !important;
}

.legajos-modern-table thead th {
  color: #54677f !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}

.legajos-number-cell,
.legajos-person-cell a,
.legajos-cell-main,
.legajos-cell-money,
.legajos-status-pill,
.legajos-summary-list strong,
.legajos-activity-item strong,
.legajos-avatar {
  font-weight: 500 !important;
}

.legajos-person-cell a,
.legajos-cell-main,
.legajos-cell-money {
  color: #1a334f !important;
}

.legajos-modern-table th,
.legajos-modern-table td {
  font-size: .95rem !important;
}

.legajos-modern-table small {
  font-size: .72rem !important;
}

/* Imagen de cabecera: usar el SVG preparado con la ilustración exacta elegida */
.legajos-hero-illustration {
  align-items: center !important;
}

.legajos-hero-illustration img {
  height: 9.6rem !important;
  max-height: 9.6rem !important;
  width: auto !important;
  object-fit: contain !important;
  object-position: left center !important;
}

@media (max-width: 900px) {
  body:not(.aramis-responsive-preview-active) .legajos-hero-illustration img,
  body.aramis-preview-mobile .legajos-hero-illustration img {
    height: 7.4rem !important;
    max-height: 7.4rem !important;
  }
}

/* ============================================================
   PATCH 16 - Legajos: panel lateral fino, grilla compacta y acciones reales
   ============================================================ */
.legajos-workspace-grid {
  gap: .85rem !important;
  grid-template-columns: minmax(0, 1fr) !important;
}

.legajos-side-panel {
  gap: .78rem !important;
}

.legajos-side-card {
  border-radius: .85rem !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .045) !important;
  padding: .82rem !important;
}

.legajos-side-card h2 {
  font-size: .82rem !important;
  font-weight: 500 !important;
  gap: .45rem !important;
  margin-bottom: .72rem !important;
}

.legajos-mini-icon {
  border-radius: .5rem !important;
  height: 1.65rem !important;
  width: 1.65rem !important;
}

.legajos-mini-icon svg {
  height: .88rem !important;
  width: .88rem !important;
}

.legajos-summary-list {
  gap: .48rem !important;
  margin-bottom: .75rem !important;
}

.legajos-summary-list li,
.legajos-activity-item {
  gap: .48rem !important;
}

.legajos-summary-list span {
  font-size: .76rem !important;
  gap: .42rem !important;
}

.legajos-summary-list i {
  border-radius: .35rem !important;
  height: 1.12rem !important;
  width: 1.12rem !important;
}

.legajos-summary-list i::after {
  border-width: 1.45px !important;
  inset: .27rem !important;
}

.legajos-summary-list strong {
  font-size: .78rem !important;
  font-weight: 500 !important;
}

.legajos-report-link {
  border-radius: .5rem !important;
  font-size: .74rem !important;
  font-weight: 500 !important;
  min-height: 2rem !important;
  padding: .38rem .58rem !important;
}

.legajos-activity-list {
  gap: .62rem !important;
}

.legajos-activity-item .legajos-avatar {
  flex-basis: 1.72rem !important;
  font-size: .64rem !important;
  height: 1.72rem !important;
  width: 1.72rem !important;
}

.legajos-activity-item strong {
  font-size: .72rem !important;
  font-weight: 500 !important;
}

.legajos-activity-item small,
.legajos-activity-item em,
.legajos-empty-side {
  font-size: .68rem !important;
}

.legajos-table-scroll {
  overflow-x: visible !important;
}

.legajos-modern-table {
  min-width: 0 !important;
  table-layout: fixed !important;
  width: 100% !important;
}

.legajos-modern-table th,
.legajos-modern-table td {
  font-size: .95rem !important;
  padding: .6rem .6rem !important;
}

.aramis-page-content .legajos-modern-table thead th,
.legajos-modern-table thead th {
  font-size: .82rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

.legajos-modern-table th:nth-child(1),
.legajos-modern-table td:nth-child(1) { width: 5.4%; }
.legajos-modern-table th:nth-child(2),
.legajos-modern-table td:nth-child(2) { width: 23%; }
.legajos-modern-table th:nth-child(3),
.legajos-modern-table td:nth-child(3) { width: 17%; }
.legajos-modern-table th:nth-child(4),
.legajos-modern-table td:nth-child(4) { width: 15%; }
.legajos-modern-table th:nth-child(5),
.legajos-modern-table td:nth-child(5) { width: 13%; }
.legajos-modern-table th:nth-child(6),
.legajos-modern-table td:nth-child(6) { width: 12%; }
.legajos-modern-table th:nth-child(7),
.legajos-modern-table td:nth-child(7) { width: 7%; }
.legajos-modern-table th:nth-child(8),
.legajos-modern-table td:nth-child(8) { width: 7.6%; }

.legajos-modern-table td,
.legajos-modern-table th {
  overflow: hidden;
  text-overflow: ellipsis;
}

.legajos-person-cell {
  gap: .48rem !important;
  min-width: 0 !important;
}

.legajos-person-cell > div,
.legajos-activity-item span:nth-child(2) {
  min-width: 0 !important;
}

.legajos-person-cell a,
.legajos-cell-main,
.legajos-cell-money {
  font-size: .745rem !important;
  font-weight: 500 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legajos-cell-money {
  font-weight: 500 !important;
}

.legajos-modern-table small {
  font-size: .65rem !important;
  line-height: 1.15 !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

.legajos-avatar {
  flex-basis: 1.72rem !important;
  font-size: .64rem !important;
  font-weight: 500 !important;
  height: 1.72rem !important;
  width: 1.72rem !important;
}

.legajos-number-cell {
  font-size: .74rem !important;
  font-weight: 500 !important;
}

.legajos-row-dot {
  height: .25rem !important;
  margin-right: .36rem !important;
  width: .25rem !important;
}

.legajos-status-pill {
  font-size: .65rem !important;
  font-weight: 500 !important;
  min-height: 1.18rem !important;
  padding: .18rem .42rem !important;
}

.legajos-row-actions {
  gap: .24rem !important;
  justify-content: center !important;
  white-space: nowrap;
}

.legajos-row-actions a,
.legajos-row-actions button,
.legajos-action-btn {
  align-items: center;
  background: #fff;
  border: 1px solid #dbe5f1;
  border-radius: .42rem;
  color: #0b74de;
  cursor: pointer;
  display: inline-flex;
  height: 1.72rem;
  justify-content: center;
  padding: 0;
  text-decoration: none !important;
  width: 1.72rem;
}

.legajos-row-actions a:hover,
.legajos-row-actions button:hover,
.legajos-action-btn:hover {
  background: #edf6ff;
  border-color: #c7def8;
  color: #066fdc;
}

.legajos-row-actions svg {
  height: .86rem !important;
  width: .86rem !important;
}

.legajos-action-delete {
  color: #dc2626 !important;
}

.legajos-action-delete:hover {
  background: #fff1f2 !important;
  border-color: #fecdd3 !important;
  color: #be123c !important;
}

.legajos-row-actions .legajos-action-delete,
.legajos-row-actions button.legajos-action-delete,
.legajos-action-btn.legajos-action-delete {
  box-sizing: border-box !important;
  flex: 0 0 1.72rem !important;
  height: 1.72rem !important;
  min-height: 1.72rem !important;
  min-width: 1.72rem !important;
  padding: 0 !important;
  width: 1.72rem !important;
}

.legajos-row-actions .legajos-action-delete::before,
.legajos-row-actions button.legajos-action-delete::before,
.legajos-action-btn.legajos-action-delete::before {
  content: none !important;
}

.legajos-row-actions .legajos-action-delete svg,
.legajos-row-actions button.legajos-action-delete svg,
.legajos-action-btn.legajos-action-delete svg,
.legajos-action-delete .toolbar-svg {
  display: block !important;
  height: .66rem !important;
  width: .66rem !important;
}

.legajos-row-actions .legajos-action-delete svg path,
.legajos-row-actions button.legajos-action-delete svg path,
.legajos-action-btn.legajos-action-delete svg path {
  stroke-width: 1.85 !important;
}

.legajos-filterbar {
  grid-template-columns: minmax(190px, 1fr) minmax(130px, .28fr) minmax(145px, .34fr) auto auto !important;
}

@media (max-width: 1280px) {
  .legajos-workspace-grid {
    grid-template-columns: 1fr !important;
  }
  .legajos-side-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .legajos-table-scroll {
    overflow-x: auto !important;
  }
  .legajos-modern-table {
    min-width: 820px !important;
    table-layout: auto !important;
  }
}

@media (max-width: 760px) {
  .legajos-side-panel {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   PATCH 18 - Legajos: SVG válido y cabecera superior más compacta
   ============================================================ */
.legajos-hero-card {
  align-items: center !important;
  gap: .72rem !important;
  grid-template-columns: minmax(220px, .58fr) repeat(4, minmax(142px, .54fr)) !important;
  min-height: 8.65rem !important;
  padding: .72rem .86rem !important;
}

.legajos-hero-illustration {
  align-items: center !important;
  justify-content: flex-start !important;
  padding-left: .15rem !important;
}

.legajos-hero-illustration img {
  display: block !important;
  height: 7.55rem !important;
  max-height: 7.55rem !important;
  max-width: 100% !important;
  object-fit: contain !important;
  object-position: left center !important;
  width: auto !important;
}

.legajos-kpi-card {
  align-items: center !important;
  border-radius: .78rem !important;
  gap: .58rem !important;
  min-height: 6.45rem !important;
  padding: .68rem .72rem !important;
}

.legajos-kpi-card > div {
  min-width: 0 !important;
}

.legajos-kpi-icon {
  border-radius: .78rem !important;
  height: 2.55rem !important;
  width: 2.55rem !important;
}

.legajos-kpi-icon svg {
  height: 1.12rem !important;
  width: 1.12rem !important;
}

.legajos-kpi-card span:not(.legajos-kpi-icon) {
  color: #2d4360 !important;
  font-size: .74rem !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1.1 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.legajos-kpi-card strong {
  color: #101f35 !important;
  font-size: 1.35rem !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  margin: .1rem 0 .22rem !important;
}

.legajos-kpi-card small {
  font-size: .68rem !important;
  font-weight: 400 !important;
  line-height: 1.05 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

@media (max-width: 1350px) {
  body:not(.aramis-responsive-preview-active) .legajos-hero-card {
    grid-template-columns: minmax(190px, .48fr) repeat(4, minmax(132px, .52fr)) !important;
  }
  body:not(.aramis-responsive-preview-active) .legajos-hero-illustration img {
    height: 6.9rem !important;
    max-height: 6.9rem !important;
  }
  body:not(.aramis-responsive-preview-active) .legajos-kpi-card {
    min-height: 6.15rem !important;
    padding: .62rem .62rem !important;
  }
}

@media (max-width: 1080px) {
  body:not(.aramis-responsive-preview-active) .legajos-hero-card,
  body.aramis-preview-tablet .legajos-hero-card {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body:not(.aramis-responsive-preview-active) .legajos-hero-illustration,
  body.aramis-preview-tablet .legajos-hero-illustration {
    grid-column: 1 / -1 !important;
  }
  body:not(.aramis-responsive-preview-active) .legajos-hero-illustration img,
  body.aramis-preview-tablet .legajos-hero-illustration img {
    height: 7rem !important;
    max-height: 7rem !important;
  }
}

@media (max-width: 680px) {
  body:not(.aramis-responsive-preview-active) .legajos-hero-card,
  body.aramis-preview-mobile .legajos-hero-card {
    grid-template-columns: 1fr !important;
    gap: .55rem !important;
    padding: .68rem !important;
  }
  body:not(.aramis-responsive-preview-active) .legajos-kpi-card,
  body.aramis-preview-mobile .legajos-kpi-card {
    min-height: 5.6rem !important;
  }
  body:not(.aramis-responsive-preview-active) .legajos-hero-illustration img,
  body.aramis-preview-mobile .legajos-hero-illustration img {
    height: 6.2rem !important;
    max-height: 6.2rem !important;
  }
}

/* ==========================================================
   Footer moderno Aramis / Tabler
   ========================================================== */
.app-footer.aramis-modern-footer {
  background:
    radial-gradient(circle at 12% 0, rgba(32, 107, 196, .07), transparent 30rem),
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(248,251,255,.96)) !important;
  border-top: 1px solid rgba(203, 213, 225, .78) !important;
  color: #475569 !important;
  margin-top: 1.25rem !important;
  padding: .8rem 1.05rem calc(.95rem + env(safe-area-inset-bottom, 0px)) !important;
}

.aramis-footer-shell {
  align-items: stretch;
  display: grid;
  gap: .72rem;
  grid-template-columns: minmax(15rem, 1.05fr) minmax(24rem, 1.75fr) minmax(14rem, .9fr);
  margin: 0 auto;
  max-width: var(--aramis-content-max);
}

.aramis-footer-brand,
.aramis-footer-quality,
.aramis-footer-action {
  align-items: center;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(203, 213, 225, .86);
  border-radius: 1rem;
  box-shadow: 0 .55rem 1.25rem rgba(15, 23, 42, .045);
  display: flex;
  gap: .72rem;
  min-height: 4.05rem;
  padding: .7rem .78rem;
  text-decoration: none !important;
}

.aramis-footer-logo,
.aramis-footer-action-icon,
.aramis-footer-quality-icon {
  align-items: center;
  border-radius: .82rem;
  display: inline-flex;
  flex: 0 0 auto;
  height: 2.35rem;
  justify-content: center;
  width: 2.35rem;
}

.aramis-footer-logo {
  background: linear-gradient(135deg, #0d6efd, #2f9aff);
  box-shadow: 0 .4rem 1rem rgba(13, 110, 253, .18);
  color: #fff;
}

.aramis-footer-logo svg,
.aramis-footer-action-icon svg,
.aramis-footer-quality-icon svg {
  height: 1.18rem;
  width: 1.18rem;
}

.aramis-footer-logo svg { fill: currentColor; }

.aramis-footer-action-icon svg,
.aramis-footer-quality-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.aramis-footer-action-icon.is-blue { background: rgba(32, 107, 196, .10); color: #206bc4; }
.aramis-footer-action-icon.is-green { background: rgba(46, 179, 104, .11); color: #2fb344; }
.aramis-footer-action-icon.is-purple { background: rgba(155, 81, 224, .11); color: #8b5cf6; }
.aramis-footer-quality-icon { background: rgba(255, 193, 7, .16); color: #f59f00; }

.aramis-footer-copy,
.aramis-footer-action span:last-child,
.aramis-footer-quality span:last-child {
  display: grid;
  gap: .12rem;
  min-width: 0;
}

.aramis-footer-brand strong,
.aramis-footer-action b,
.aramis-footer-quality b {
  color: #0f2742 !important;
  display: block;
  font-size: .82rem;
  font-weight: 600 !important;
  letter-spacing: -.01em;
  line-height: 1.15;
  white-space: nowrap;
}

.aramis-footer-brand small,
.aramis-footer-action small,
.aramis-footer-quality small {
  color: #5d6b7c !important;
  display: block;
  font-size: .72rem;
  font-weight: 400 !important;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aramis-footer-actions {
  display: grid;
  gap: .62rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.aramis-footer-action {
  color: #334155 !important;
  min-width: 0;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.aramis-footer-action:hover {
  border-color: rgba(32, 107, 196, .28) !important;
  box-shadow: 0 .75rem 1.55rem rgba(32, 107, 196, .10);
  transform: translateY(-1px);
}

.aramis-footer-bottom {
  align-items: center;
  color: #64748b;
  display: flex;
  font-size: .72rem;
  font-weight: 400;
  justify-content: space-between;
  margin: .7rem auto 0;
  max-width: var(--aramis-content-max);
  padding: 0 .1rem;
}

@media (max-width: 1180px) {
  .aramis-footer-shell {
    grid-template-columns: 1fr;
  }

  .aramis-footer-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-footer.aramis-modern-footer {
    padding-inline: .75rem !important;
  }

  .aramis-footer-actions {
    grid-template-columns: 1fr;
  }

  .aramis-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: .25rem;
  }
}


/* ============================================================
   PATCH 20 - Responsive real para Legajos y preview inferior
   - Tablet: sidebar mini + contenido en una columna limpia.
   - Celular: sidebar off-canvas real, no ocupa ancho del contenido.
   - Tabla de Legajos pasa a tarjetas compactas en celular.
   ============================================================ */
body.aramis-responsive-preview-active {
  overflow-x: auto !important;
  padding-bottom: 4.25rem !important;
}

body.aramis-responsive-preview-active .aramis-tabler-app {
  box-sizing: border-box !important;
  isolation: isolate !important;
  max-width: min(var(--aramis-responsive-preview-width), calc(100vw - 1.5rem)) !important;
  overflow: hidden !important;
  position: relative !important;
  width: min(var(--aramis-responsive-preview-width), calc(100vw - 1.5rem)) !important;
}

body.aramis-preview-tablet .aramis-tabler-app {
  display: flex !important;
}

body.aramis-preview-tablet .aramis-tabler-sidebar.topbar {
  flex: 0 0 4.45rem !important;
  left: auto !important;
  max-width: 4.45rem !important;
  min-width: 4.45rem !important;
  position: sticky !important;
  top: 0 !important;
  transform: none !important;
  width: 4.45rem !important;
}

body.aramis-preview-tablet .aramis-tabler-main {
  flex: 1 1 auto !important;
  margin-left: 0 !important;
  max-width: calc(100% - 4.45rem) !important;
  min-width: 0 !important;
  width: calc(100% - 4.45rem) !important;
}

body.aramis-preview-tablet .aramis-page-content.page {
  overflow-x: hidden !important;
  padding: .75rem .85rem 4.35rem !important;
}

body.aramis-preview-mobile .aramis-tabler-app {
  display: block !important;
  max-width: min(var(--aramis-responsive-preview-width), calc(100vw - 1.5rem)) !important;
  overflow: hidden !important;
  width: min(var(--aramis-responsive-preview-width), calc(100vw - 1.5rem)) !important;
}

body.aramis-preview-mobile .aramis-tabler-main {
  display: block !important;
  flex: none !important;
  margin-left: 0 !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding-left: 0 !important;
  width: 100% !important;
}

body.aramis-preview-mobile .aramis-tabler-sidebar.topbar {
  bottom: .65rem !important;
  flex: none !important;
  height: auto !important;
  left: max(.65rem, calc((100vw - min(var(--aramis-responsive-preview-width), calc(100vw - 1.5rem))) / 2 + .65rem)) !important;
  max-height: calc(100vh - 1.3rem) !important;
  max-width: min(15.75rem, calc(var(--aramis-responsive-preview-width) - 1.3rem)) !important;
  min-height: 0 !important;
  min-width: min(15.75rem, calc(var(--aramis-responsive-preview-width) - 1.3rem)) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  position: fixed !important;
  top: .65rem !important;
  transform: translateX(calc(-100% - 1.25rem)) !important;
  transition: transform .18s ease !important;
  width: min(15.75rem, calc(var(--aramis-responsive-preview-width) - 1.3rem)) !important;
  z-index: 1095 !important;
}

body.aramis-preview-mobile.aramis-sidebar-open .aramis-tabler-sidebar.topbar {
  transform: translateX(0) !important;
}

body.aramis-preview-mobile.aramis-sidebar-open::after {
  background: rgba(15, 23, 42, .28) !important;
  content: "" !important;
  inset: .75rem calc((100vw - min(var(--aramis-responsive-preview-width), calc(100vw - 1.5rem))) / 2) 4.15rem !important;
  pointer-events: auto !important;
  position: fixed !important;
  z-index: 1090 !important;
}

body.aramis-preview-mobile .aramis-page-content.page {
  max-width: 100% !important;
  overflow-x: hidden !important;
  padding: .62rem .62rem 4.25rem !important;
}

body.aramis-responsive-preview-active .app-footer.aramis-modern-footer {
  display: none !important;
}

/* Legajos: tablet */
body.aramis-preview-tablet .legajos-modern {
  max-width: 100% !important;
  padding: .7rem !important;
}

body.aramis-preview-tablet .legajos-modern-head {
  align-items: center !important;
  display: grid !important;
  gap: .7rem !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
}

body.aramis-preview-tablet .legajos-hero-card {
  gap: .55rem !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  padding: .65rem !important;
}

body.aramis-preview-tablet .legajos-hero-illustration {
  grid-column: 1 / -1 !important;
  justify-content: center !important;
}

body.aramis-preview-tablet .legajos-hero-illustration img {
  height: 6.35rem !important;
  max-height: 6.35rem !important;
}

body.aramis-preview-tablet .legajos-kpi-card {
  min-height: 5.35rem !important;
  padding: .58rem .62rem !important;
}

body.aramis-preview-tablet .legajos-workspace-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
}

body.aramis-preview-tablet .legajos-side-panel {
  display: grid !important;
  gap: .65rem !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.aramis-preview-tablet .legajos-filterbar {
  grid-template-columns: minmax(0, 1fr) minmax(8.5rem, auto) minmax(9rem, auto) auto auto !important;
}

body.aramis-preview-tablet .legajos-table-scroll {
  max-width: 100% !important;
  overflow-x: auto !important;
}

body.aramis-preview-tablet .legajos-modern-table {
  min-width: 740px !important;
  table-layout: auto !important;
}

/* Legajos: celular */
body.aramis-preview-mobile .legajos-modern {
  max-width: 100% !important;
  padding: .45rem !important;
}

body.aramis-preview-mobile .legajos-modern-head,
body.aramis-preview-mobile .legajos-head-actions,
body.aramis-preview-mobile .legajos-table-footer {
  align-items: stretch !important;
  display: grid !important;
  gap: .55rem !important;
  grid-template-columns: 1fr !important;
}

body.aramis-preview-mobile .legajos-title-wrap {
  align-items: flex-start !important;
  min-width: 0 !important;
}

body.aramis-preview-mobile .legajos-title-wrap h1 {
  font-size: 1.22rem !important;
}

body.aramis-preview-mobile .legajos-title-wrap p {
  font-size: .78rem !important;
  line-height: 1.25 !important;
}

body.aramis-preview-mobile .legajos-btn,
body.aramis-preview-mobile .legajos-head-actions form,
body.aramis-preview-mobile .legajos-head-actions button {
  justify-content: center !important;
  width: 100% !important;
}

body.aramis-preview-mobile .legajos-hero-card {
  gap: .5rem !important;
  grid-template-columns: 1fr !important;
  padding: .6rem !important;
}

body.aramis-preview-mobile .legajos-hero-illustration {
  justify-content: center !important;
}

body.aramis-preview-mobile .legajos-hero-illustration img {
  height: 5.9rem !important;
  max-height: 5.9rem !important;
  max-width: 100% !important;
}

body.aramis-preview-mobile .legajos-kpi-card {
  align-items: center !important;
  display: flex !important;
  gap: .6rem !important;
  min-height: 4.35rem !important;
  padding: .52rem .58rem !important;
}

body.aramis-preview-mobile .legajos-kpi-icon {
  height: 2.2rem !important;
  width: 2.2rem !important;
}

body.aramis-preview-mobile .legajos-kpi-card strong {
  font-size: 1.18rem !important;
}

body.aramis-preview-mobile .legajos-workspace-grid,
body.aramis-preview-mobile .legajos-side-panel,
body.aramis-preview-mobile .legajos-filterbar {
  display: grid !important;
  grid-template-columns: 1fr !important;
}

body.aramis-preview-mobile .legajos-main-card,
body.aramis-preview-mobile .legajos-side-card {
  border-radius: .78rem !important;
}

body.aramis-preview-mobile .legajos-filterbar {
  gap: .45rem !important;
  padding: .65rem !important;
}

body.aramis-preview-mobile .legajos-searchbox input,
body.aramis-preview-mobile .legajos-filterbar select {
  min-width: 0 !important;
  width: 100% !important;
}

body.aramis-preview-mobile .legajos-table-scroll {
  overflow: visible !important;
}

body.aramis-preview-mobile .legajos-modern-table,
body.aramis-preview-mobile .legajos-modern-table thead,
body.aramis-preview-mobile .legajos-modern-table tbody,
body.aramis-preview-mobile .legajos-modern-table tr,
body.aramis-preview-mobile .legajos-modern-table td {
  display: block !important;
  min-width: 0 !important;
  width: 100% !important;
}

body.aramis-preview-mobile .legajos-modern-table thead {
  display: none !important;
}

body.aramis-preview-mobile .legajos-modern-table tbody {
  padding: .55rem !important;
}

body.aramis-preview-mobile .legajos-modern-table tr {
  background: #fff !important;
  border: 1px solid #dfe8f2 !important;
  border-radius: .72rem !important;
  box-shadow: 0 .35rem 1rem rgba(15, 23, 42, .035) !important;
  display: grid !important;
  gap: .35rem .45rem !important;
  grid-template-columns: 1.4rem minmax(0, 1fr) auto !important;
  margin-bottom: .55rem !important;
  padding: .58rem !important;
}

body.aramis-preview-mobile .legajos-modern-table td {
  border: 0 !important;
  padding: 0 !important;
}

body.aramis-preview-mobile .legajos-modern-table td:nth-child(1) {
  align-self: start !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
}

body.aramis-preview-mobile .legajos-modern-table td:nth-child(2) {
  grid-column: 2 !important;
  grid-row: 1 / span 2 !important;
  min-width: 0 !important;
}

body.aramis-preview-mobile .legajos-modern-table td:nth-child(7) {
  align-self: start !important;
  grid-column: 3 !important;
  grid-row: 1 !important;
  justify-self: end !important;
  width: auto !important;
}

body.aramis-preview-mobile .legajos-modern-table td:nth-child(8) {
  grid-column: 3 !important;
  grid-row: 2 !important;
  justify-self: end !important;
  width: auto !important;
}

body.aramis-preview-mobile .legajos-modern-table td:nth-child(3),
body.aramis-preview-mobile .legajos-modern-table td:nth-child(4),
body.aramis-preview-mobile .legajos-modern-table td:nth-child(5),
body.aramis-preview-mobile .legajos-modern-table td:nth-child(6) {
  display: none !important;
}

body.aramis-preview-mobile .legajos-person-cell {
  gap: .45rem !important;
  min-width: 0 !important;
}

body.aramis-preview-mobile .legajos-person-cell a,
body.aramis-preview-mobile .legajos-person-cell small {
  max-width: 9.5rem !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.aramis-preview-mobile .legajos-row-actions {
  gap: .25rem !important;
}

body.aramis-preview-mobile .legajos-table-footer {
  padding: .65rem !important;
}

body.aramis-preview-mobile .legajos-pager,
body.aramis-preview-mobile .legajos-page-size,
body.aramis-preview-mobile .legajos-page-size select {
  width: 100% !important;
}

body.aramis-preview-mobile .legajos-pager {
  display: grid !important;
  grid-template-columns: 1fr auto auto auto !important;
}

@media (max-width: 700px) {
  body.aramis-responsive-preview-active .aramis-tabler-app {
    border-radius: .65rem !important;
    margin-top: .35rem !important;
  }
}

/* ============================================================
   PATCH 21 - Perfil, soporte y notificaciones
   ============================================================ */
.aramis-topbar-dropdown {
  position: relative;
}

.aramis-topbar-dropdown > summary {
  list-style: none;
}

.aramis-topbar-dropdown > summary::-webkit-details-marker {
  display: none;
}

.aramis-topbar-notification {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: .75rem;
  color: #3b4b5d;
  cursor: pointer;
  display: inline-flex;
  height: 2.4rem;
  justify-content: center;
  position: relative;
  width: 2.4rem;
}

.aramis-topbar-notification:hover,
.aramis-topbar-dropdown[open] > .aramis-topbar-notification {
  background: rgba(32, 107, 196, .08);
  color: #0d6efd;
}

.aramis-topbar-notification svg {
  fill: none;
  height: 1.15rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 1.15rem;
}

.aramis-topbar-notification i {
  align-items: center;
  background: #0d6efd;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: .65rem;
  font-style: normal;
  font-weight: 700;
  height: 1.05rem;
  justify-content: center;
  min-width: 1.05rem;
  padding: 0 .22rem;
  position: absolute;
  right: .35rem;
  top: .22rem;
}

.aramis-dropdown-panel {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 1rem;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .14);
  min-width: 17.5rem;
  padding: .65rem;
  position: absolute;
  right: 0;
  top: calc(100% + .65rem);
  z-index: 120;
}

.aramis-dropdown-panel::before {
  background: #fff;
  border-left: 1px solid rgba(15, 23, 42, .1);
  border-top: 1px solid rgba(15, 23, 42, .1);
  content: "";
  height: .65rem;
  position: absolute;
  right: 1.15rem;
  top: -.35rem;
  transform: rotate(45deg);
  width: .65rem;
}

.aramis-dropdown-panel header {
  align-items: center;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  display: flex;
  gap: .75rem;
  padding: .5rem .55rem .7rem;
}

.aramis-dropdown-panel header strong {
  color: #0f172a;
  display: block;
  font-size: .9rem;
  font-weight: 650;
}

.aramis-dropdown-panel header small {
  color: #667085;
  display: block;
  font-size: .74rem;
  margin-top: .1rem;
}

.aramis-profile-dropdown > summary {
  cursor: pointer;
}

.aramis-profile-dropdown[open] .aramis-topbar-profile,
.aramis-topbar-profile:hover {
  background: rgba(32, 107, 196, .06);
}

.aramis-profile-chevron {
  border-bottom: 1.5px solid #667085;
  border-right: 1.5px solid #667085;
  display: inline-block;
  height: .45rem;
  margin-left: .1rem;
  transform: rotate(45deg) translateY(-.1rem);
  width: .45rem;
}

.aramis-profile-panel {
  min-width: 16rem;
}

.aramis-profile-panel a,
.aramis-profile-panel button,
.aramis-dropdown-link {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: .7rem;
  color: #27364a;
  cursor: pointer;
  display: flex;
  font-size: .86rem;
  font-weight: 520;
  gap: .6rem;
  padding: .65rem .6rem;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.aramis-profile-panel a:hover,
.aramis-profile-panel button:hover,
.aramis-dropdown-link:hover {
  background: rgba(32, 107, 196, .08);
  color: #0d6efd;
}

.aramis-profile-panel svg,
.aramis-dropdown-link svg {
  fill: none;
  height: 1.05rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 1.05rem;
}

.aramis-profile-avatar.is-large {
  height: 2.3rem;
  width: 2.3rem;
}

.aramis-notification-panel {
  min-width: 19.5rem;
}

.aramis-notification-item,
.aramis-notification-empty {
  align-items: flex-start;
  border-radius: .8rem;
  color: #27364a;
  display: flex;
  gap: .65rem;
  padding: .65rem .6rem;
  text-decoration: none;
}

.aramis-notification-item:hover {
  background: rgba(32, 107, 196, .07);
}

.aramis-notification-item b,
.aramis-notification-empty b {
  display: block;
  font-size: .84rem;
  font-weight: 650;
}

.aramis-notification-item small,
.aramis-notification-empty small {
  color: #667085;
  display: block;
  font-size: .75rem;
  line-height: 1.35;
  margin-top: .1rem;
}

.aramis-notification-dot {
  background: #f59f00;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(245, 159, 0, .12);
  flex: 0 0 .55rem;
  height: .55rem;
  margin-top: .28rem;
  width: .55rem;
}

.aramis-notification-item.is-danger .aramis-notification-dot {
  background: #e03131;
  box-shadow: 0 0 0 4px rgba(224, 49, 49, .12);
}

.aramis-profile-page {
  display: grid;
  gap: 1rem;
  margin: 0 auto;
  max-width: 1180px;
  padding: 1.1rem;
  width: 100%;
}

.profile-hero-card,
.profile-card {
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(32, 107, 196, .12);
  border-radius: 1.05rem;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .07);
}

.profile-hero-card {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
}

.profile-hero-main {
  align-items: center;
  display: flex;
  gap: .9rem;
}

.profile-hero-avatar {
  align-items: center;
  background: linear-gradient(135deg, #0d6efd, #5aa9ff);
  border-radius: 1rem;
  color: #fff;
  display: inline-flex;
  flex: 0 0 3.2rem;
  font-size: 1.35rem;
  font-weight: 700;
  height: 3.2rem;
  justify-content: center;
  width: 3.2rem;
}

.profile-kicker {
  color: #667085;
  display: block;
  font-size: .76rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.profile-hero-card h1 {
  color: #0f172a;
  font-size: 1.55rem;
  font-weight: 670;
  line-height: 1.1;
  margin: .1rem 0 .2rem;
}

.profile-hero-card p,
.profile-card p {
  color: #53657d;
  line-height: 1.45;
  margin: 0;
}

.profile-support-status {
  align-items: center;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: .95rem;
  display: grid;
  gap: .12rem .6rem;
  grid-template-columns: auto 1fr;
  min-width: 18rem;
  padding: .75rem .9rem;
}

.profile-support-dot {
  background: #12b76a;
  border-radius: 999px;
  grid-row: span 2;
  height: .75rem;
  width: .75rem;
}

.profile-support-status strong {
  color: #0f172a;
  font-size: .9rem;
  font-weight: 650;
}

.profile-support-status small {
  color: #667085;
  font-size: .75rem;
}

.profile-support-status.is-vencido .profile-support-dot,
.profile-support-status.is-critico .profile-support-dot {
  background: #e03131;
}

.profile-support-status.is-alerta .profile-support-dot,
.profile-support-status.is-aviso .profile-support-dot,
.profile-support-status.is-sin_fecha .profile-support-dot,
.profile-support-status.is-sin_registro .profile-support-dot {
  background: #f59f00;
}

.profile-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.profile-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.profile-card header {
  align-items: flex-start;
  display: flex;
  gap: .8rem;
}

.profile-card h2 {
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 650;
  margin: 0 0 .18rem;
}

.profile-card-icon {
  align-items: center;
  border-radius: .85rem;
  display: inline-flex;
  flex: 0 0 2.55rem;
  height: 2.55rem;
  justify-content: center;
  width: 2.55rem;
}

.profile-card-icon svg {
  fill: none;
  height: 1.25rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 1.25rem;
}

.profile-card-icon.is-blue { background: #e7f0ff; color: #0d6efd; }
.profile-card-icon.is-purple { background: #f0e8ff; color: #7950f2; }
.profile-card-icon.is-green { background: #e6f8ef; color: #099268; }
.profile-card-icon.is-orange { background: #fff0e6; color: #f76707; }

.profile-data-list {
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: .9rem;
  display: grid;
  margin: 0;
  overflow: hidden;
}

.profile-data-list div {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: .62rem .75rem;
}

.profile-data-list div + div {
  border-top: 1px solid rgba(15, 23, 42, .08);
}

.profile-data-list dt {
  color: #667085;
  font-size: .78rem;
}

.profile-data-list dd {
  color: #0f172a;
  font-size: .86rem;
  font-weight: 620;
  margin: 0;
}

.profile-form {
  display: grid;
  gap: .75rem;
}

.profile-form label {
  display: grid;
  gap: .25rem;
}

.profile-form label span {
  color: #41546c;
  font-size: .78rem;
  font-weight: 570;
}

.profile-form input,
.profile-form textarea,
.profile-form select {
  background: #fff;
  border: 1px solid #d7e1ee;
  border-radius: .75rem;
  color: #0f172a;
  font-size: .88rem;
  min-height: 2.45rem;
  padding: .55rem .7rem;
  width: 100%;
}

.profile-form input:focus,
.profile-form textarea:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .12);
  outline: none;
}

.profile-form-wide {
  grid-column: 1 / -1;
}

.profile-primary-button {
  align-items: center;
  background: #0d6efd;
  border: 0;
  border-radius: .8rem;
  box-shadow: 0 8px 18px rgba(13, 110, 253, .2);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: .88rem;
  font-weight: 650;
  justify-content: center;
  min-height: 2.5rem;
  padding: .55rem 1rem;
  width: max-content;
}

.profile-primary-button.is-secondary {
  background: #ffffff;
  border: 1px solid #cfe0f5;
  box-shadow: none;
  color: #0d6efd;
}

.profile-form-errors {
  background: #fff5f5;
  border: 1px solid #ffc9c9;
  border-radius: .8rem;
  color: #c92a2a;
  font-size: .82rem;
  padding: .65rem .75rem;
}

.support-summary {
  display: grid;
  gap: .65rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.support-summary div {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: .85rem;
  padding: .72rem .75rem;
}

.support-summary span {
  color: #667085;
  display: block;
  font-size: .75rem;
}

.support-summary strong {
  color: #0f172a;
  display: block;
  font-size: .95rem;
  font-weight: 650;
  margin-top: .15rem;
}

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

.payment-grid {
  display: grid;
  gap: .9rem;
  grid-template-columns: 11rem minmax(0, 1fr);
}

.payment-qr-card,
.payment-methods > div {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: .9rem;
  padding: .75rem;
}

.payment-qr-card {
  align-items: center;
  display: grid;
  justify-items: center;
  text-align: center;
}

.fake-qr {
  background:
    linear-gradient(90deg, #0d6efd 10px, transparent 10px 16px, #0d6efd 16px 24px, transparent 24px),
    linear-gradient(#0d6efd 10px, transparent 10px 16px, #0d6efd 16px 24px, transparent 24px),
    repeating-linear-gradient(45deg, rgba(13,110,253,.2) 0 4px, transparent 4px 8px);
  border: 8px solid #fff;
  border-radius: .75rem;
  box-shadow: 0 6px 20px rgba(15, 23, 42, .08);
  height: 6.8rem;
  margin-bottom: .45rem;
  width: 6.8rem;
}

.payment-qr-card strong,
.payment-methods b {
  color: #0f172a;
  display: block;
  font-size: .88rem;
  font-weight: 650;
}

.payment-qr-card small,
.payment-methods small {
  color: #667085;
  display: block;
  font-size: .76rem;
  line-height: 1.35;
  margin-top: .15rem;
}

.payment-methods {
  display: grid;
  gap: .65rem;
}

@media (max-width: 960px) {
  .profile-hero-card,
  .profile-hero-main {
    align-items: flex-start;
    flex-direction: column;
  }
  .profile-support-status {
    min-width: 0;
    width: 100%;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .aramis-dropdown-panel {
    position: fixed;
    right: .75rem;
    top: 3.7rem;
    width: calc(100vw - 1.5rem);
  }
  .profile-hero-card h1 {
    font-size: 1.3rem;
  }
  .support-summary,
  .support-admin-form,
  .payment-grid {
    grid-template-columns: 1fr;
  }
  .profile-primary-button {
    width: 100%;
  }
}

/* Patch 22 - Perfil y soporte más liviano + bloqueo por soporte vencido */
.aramis-profile-page,
.aramis-profile-page * {
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif !important;
}

.aramis-profile-page {
  gap: .85rem !important;
  max-width: 1160px !important;
  padding: 1rem !important;
}

.profile-hero-card,
.profile-card {
  border-color: rgba(32, 107, 196, .10) !important;
  border-radius: .9rem !important;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .055) !important;
}

.profile-hero-card {
  padding: .9rem 1rem !important;
}

.profile-hero-avatar {
  border-radius: .82rem !important;
  flex-basis: 2.75rem !important;
  font-size: 1.05rem !important;
  font-weight: 520 !important;
  height: 2.75rem !important;
  width: 2.75rem !important;
}

.profile-kicker {
  color: #75849a !important;
  font-size: .68rem !important;
  font-weight: 500 !important;
  letter-spacing: .035em !important;
}

.profile-hero-card h1 {
  color: #162238 !important;
  font-size: 1.28rem !important;
  font-weight: 560 !important;
  letter-spacing: -.01em !important;
  margin: .08rem 0 .16rem !important;
}

.profile-hero-card p,
.profile-card p {
  color: #5f6f86 !important;
  font-size: .82rem !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
}

.profile-support-status {
  border-radius: .8rem !important;
  min-width: 15.5rem !important;
  padding: .62rem .75rem !important;
}

.profile-support-dot {
  height: .56rem !important;
  width: .56rem !important;
}

.profile-support-status strong {
  color: #1f2f46 !important;
  font-size: .82rem !important;
  font-weight: 560 !important;
}

.profile-support-status small {
  font-size: .7rem !important;
  line-height: 1.25 !important;
}

.profile-locked-banner {
  align-items: flex-start !important;
  background: linear-gradient(180deg, #fff7ed 0%, #fff 100%) !important;
  border: 1px solid #ffd8a8 !important;
  border-radius: .9rem !important;
  box-shadow: 0 10px 24px rgba(245, 159, 0, .08) !important;
  color: #92400e !important;
  display: flex !important;
  gap: .75rem !important;
  padding: .8rem .95rem !important;
}

.profile-locked-banner > span {
  align-items: center !important;
  background: #fff0d1 !important;
  border-radius: .72rem !important;
  color: #f76707 !important;
  display: inline-flex !important;
  flex: 0 0 2rem !important;
  height: 2rem !important;
  justify-content: center !important;
  width: 2rem !important;
}

.profile-locked-banner svg {
  fill: none !important;
  height: 1.1rem !important;
  stroke: currentColor !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  stroke-width: 1.8 !important;
  width: 1.1rem !important;
}

.profile-locked-banner strong {
  color: #7c2d12 !important;
  display: block !important;
  font-size: .86rem !important;
  font-weight: 560 !important;
  margin: .05rem 0 .12rem !important;
}

.profile-locked-banner p {
  color: #9a3412 !important;
  font-size: .78rem !important;
  line-height: 1.35 !important;
  margin: 0 !important;
}

.profile-grid {
  gap: .85rem !important;
}

.profile-card {
  gap: .78rem !important;
  padding: .88rem !important;
}

.profile-card header {
  gap: .65rem !important;
}

.profile-card h2 {
  color: #17243a !important;
  font-size: .95rem !important;
  font-weight: 560 !important;
  margin-bottom: .12rem !important;
}

.profile-card-icon {
  border-radius: .72rem !important;
  flex-basis: 2.15rem !important;
  height: 2.15rem !important;
  width: 2.15rem !important;
}

.profile-card-icon svg {
  height: 1.05rem !important;
  stroke-width: 1.65 !important;
  width: 1.05rem !important;
}

.profile-user-summary-grid {
  border: 1px solid rgba(15, 23, 42, .08) !important;
  border-radius: .82rem !important;
  display: grid !important;
  gap: 0 !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  overflow: hidden !important;
}

.profile-user-summary-grid > div {
  background: rgba(248, 250, 252, .68) !important;
  min-width: 0 !important;
  padding: .62rem .7rem !important;
}

.profile-user-summary-grid > div + div {
  border-left: 1px solid rgba(15, 23, 42, .07) !important;
}

.profile-user-summary-grid span {
  color: #6f7f94 !important;
  display: block !important;
  font-size: .68rem !important;
  font-weight: 400 !important;
  line-height: 1.15 !important;
  margin-bottom: .22rem !important;
}

.profile-user-summary-grid strong {
  color: #1d2b42 !important;
  display: block !important;
  font-size: .78rem !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.profile-form {
  gap: .6rem !important;
}

.profile-form label {
  gap: .18rem !important;
}

.profile-form label span {
  color: #465970 !important;
  font-size: .72rem !important;
  font-weight: 500 !important;
}

.profile-form input,
.profile-form textarea,
.profile-form select {
  border-radius: .58rem !important;
  color: #1d2b42 !important;
  font-size: .82rem !important;
  font-weight: 400 !important;
  min-height: 2.18rem !important;
  padding: .45rem .58rem !important;
}

.profile-form input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: #1d2b42 !important;
}

.profile-primary-button {
  border-radius: .62rem !important;
  font-size: .78rem !important;
  font-weight: 520 !important;
  min-height: 2.14rem !important;
  padding: .44rem .78rem !important;
}

.support-summary {
  gap: .52rem !important;
}

.support-summary div {
  border-radius: .72rem !important;
  padding: .58rem .62rem !important;
}

.support-summary span {
  font-size: .68rem !important;
  font-weight: 400 !important;
}

.support-summary strong {
  font-size: .82rem !important;
  font-weight: 520 !important;
  line-height: 1.25 !important;
}

.payment-grid {
  gap: .7rem !important;
  grid-template-columns: 9.2rem minmax(0, 1fr) !important;
}

.payment-qr-card,
.payment-methods > div {
  border-radius: .75rem !important;
  padding: .62rem !important;
}

.fake-qr {
  height: 5.4rem !important;
  width: 5.4rem !important;
}

.payment-qr-card strong,
.payment-methods b {
  color: #1d2b42 !important;
  font-size: .78rem !important;
  font-weight: 540 !important;
}

.payment-qr-card small,
.payment-methods small {
  color: #667891 !important;
  font-size: .68rem !important;
  line-height: 1.32 !important;
}

@media (max-width: 760px) {
  .profile-user-summary-grid {
    grid-template-columns: 1fr !important;
  }
  .profile-user-summary-grid > div + div {
    border-left: 0 !important;
    border-top: 1px solid rgba(15, 23, 42, .07) !important;
  }
}

/* Certificación compacta de Legajos */
.legajos-btn-cert {
  gap: .18rem !important;
  min-width: 3.15rem !important;
  padding-inline: .54rem !important;
  color: #2563eb !important;
}
.legajos-btn-cert span {
  color: #2563eb !important;
  font-size: .72rem !important;
  font-weight: 540 !important;
  line-height: 1 !important;
}
.legajos-certified-help {
  align-items: center;
  background: rgba(239, 246, 255, .78);
  border: 1px solid rgba(37, 99, 235, .11);
  border-radius: .82rem;
  box-shadow: 0 .45rem 1.2rem rgba(15, 23, 42, .045);
  color: #334155;
  display: flex;
  gap: .85rem;
  justify-content: space-between;
  margin: -.3rem 0 .7rem;
  padding: .62rem .75rem;
}
.legajos-certified-help[hidden] {
  display: none !important;
}
.legajos-certified-help strong {
  color: #1d2b42;
  display: block;
  font-size: .78rem;
  font-weight: 540;
  line-height: 1.2;
  margin-bottom: .1rem;
}
.legajos-certified-help p {
  color: #667891;
  font-size: .69rem;
  line-height: 1.28;
  margin: 0;
}

/* ============================================================
   SUELDOS / SECTORES - estilo moderno alineado a Legajos
   ============================================================ */
.sectores-modern {
  max-width: 1540px;
}

.sectores-title-icon {
  color: #0b74de;
}

.sectores-hero-modern {
  grid-template-columns: minmax(310px, 1.35fr) repeat(4, minmax(150px, .65fr));
  min-height: 10.9rem;
}

.sueldos-hero-illustration img {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: block;
  height: 10.1rem;
  max-width: 100%;
  object-fit: contain;
  object-position: left bottom;
  width: auto;
}

.sectores-main-card {
  overflow: hidden;
}

.sectores-filterbar {
  grid-template-columns: minmax(260px, 1fr) auto auto;
}

.sectores-table-scroll {
  overflow-x: auto;
}

.sectores-modern-table {
  min-width: 820px !important;
  table-layout: fixed;
}

.sectores-modern-table th:nth-child(1),
.sectores-modern-table td:nth-child(1) { width: 30%; }
.sectores-modern-table th:nth-child(2),
.sectores-modern-table td:nth-child(2) { width: 14%; }
.sectores-modern-table th:nth-child(3),
.sectores-modern-table td:nth-child(3) { width: 27%; }
.sectores-modern-table th:nth-child(4),
.sectores-modern-table td:nth-child(4) { width: 10%; }
.sectores-modern-table th:nth-child(5),
.sectores-modern-table td:nth-child(5) { width: 10%; }
.sectores-modern-table th:nth-child(6),
.sectores-modern-table td:nth-child(6) { width: 9%; }

.sectores-sector-cell {
  min-width: 0;
}

.sectores-sector-cell > div {
  min-width: 0;
}

.sectores-sector-cell a,
.sectores-sector-cell .legajos-cell-main {
  overflow: hidden;
  text-overflow: ellipsis;
}

.sectores-modern-table td:nth-child(3) small {
  white-space: normal;
}

.sectores-create-panel {
  max-width: 720px;
}

.sectores-create-form {
  display: grid;
  gap: .85rem;
  grid-template-columns: minmax(120px, .35fr) minmax(220px, 1fr);
}

.sectores-create-form label {
  color: #203954;
  display: grid;
  gap: .35rem;
  font-size: .76rem;
  font-weight: 750;
}

.sectores-create-form label.wide {
  grid-column: 1 / -1;
}

.sectores-create-form input {
  background: #fff;
  border: 1px solid #dbe5f1;
  border-radius: .55rem;
  color: #203954;
  font-size: .88rem;
  min-height: 2.35rem;
  padding: .45rem .7rem;
}

.sectores-create-actions {
  align-items: center;
  display: flex;
  gap: .65rem;
  grid-column: 1 / -1;
  justify-content: flex-end;
  padding-top: .35rem;
}

@media (max-width: 900px) {
  .sectores-hero-modern {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .sectores-hero-modern .sueldos-hero-illustration {
    grid-column: 1 / -1;
  }

  .sectores-filterbar,
  .sectores-create-form {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SUELDOS / OBRAS SOCIALES - estilo moderno alineado a Legajos
   ============================================================ */
.obras-modern {
  max-width: 1540px;
}

.obras-title-icon {
  color: #0f8f7a;
}

.obras-hero-modern {
  grid-template-columns: minmax(310px, 1.35fr) repeat(4, minmax(150px, .65fr));
  min-height: 10.9rem;
}

.obras-main-card {
  overflow: hidden;
}

.obras-filterbar {
  grid-template-columns: minmax(260px, 1fr) auto auto;
}

.obras-table-scroll {
  overflow-x: auto;
}

.obras-modern-table {
  min-width: 900px !important;
  table-layout: fixed;
}

.obras-modern-table th:nth-child(1),
.obras-modern-table td:nth-child(1) { width: 34%; }
.obras-modern-table th:nth-child(2),
.obras-modern-table td:nth-child(2) { width: 14%; }
.obras-modern-table th:nth-child(3),
.obras-modern-table td:nth-child(3) { width: 24%; }
.obras-modern-table th:nth-child(4),
.obras-modern-table td:nth-child(4) { width: 10%; }
.obras-modern-table th:nth-child(5),
.obras-modern-table td:nth-child(5) { width: 10%; }
.obras-modern-table th:nth-child(6),
.obras-modern-table td:nth-child(6) { width: 8%; }

.obras-social-cell {
  min-width: 0;
}

.obras-social-cell > div {
  min-width: 0;
}

.obras-social-cell a,
.obras-social-cell .legajos-cell-main {
  overflow: hidden;
  text-overflow: ellipsis;
}

.obras-modern-table td:nth-child(3) small {
  white-space: normal;
}

.obras-create-panel {
  max-width: 780px;
}

.obras-create-form {
  display: grid;
  gap: .85rem;
  grid-template-columns: minmax(120px, .35fr) minmax(220px, 1fr) minmax(140px, .45fr);
}

.obras-create-form label {
  color: #203954;
  display: grid;
  gap: .35rem;
  font-size: .76rem;
  font-weight: 750;
}

.obras-create-form label.wide {
  grid-column: 1 / -1;
}

.obras-create-form input {
  background: #fff;
  border: 1px solid #dbe5f1;
  border-radius: .55rem;
  color: #203954;
  font-size: .88rem;
  min-height: 2.35rem;
  padding: .45rem .7rem;
}

.obras-create-actions {
  align-items: center;
  display: flex;
  gap: .65rem;
  grid-column: 1 / -1;
  justify-content: flex-end;
  padding-top: .35rem;
}

@media (max-width: 900px) {
  .obras-hero-modern {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .obras-hero-modern .sueldos-hero-illustration {
    grid-column: 1 / -1;
  }

  .obras-filterbar,
  .obras-create-form {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SUELDOS / CATALOGOS SIMPLES - AFJP y Modalidades
   ============================================================ */
.catalogo-modern {
  max-width: 1540px;
}

.catalogo-title-icon {
  color: #2563eb;
}

.catalogo-modern-modalidad .catalogo-title-icon {
  color: #7c3aed;
}

.catalogo-hero-modern {
  grid-template-columns: minmax(310px, 1.35fr) repeat(4, minmax(150px, .65fr));
  min-height: 10.9rem;
}

.catalogo-main-card {
  overflow: hidden;
}

.catalogo-filterbar {
  grid-template-columns: minmax(260px, 1fr) auto auto;
}

.catalogo-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .34fr);
  min-height: 360px;
}

.catalogo-table-scroll {
  border-right: 1px solid #e3ebf5;
  overflow-x: auto;
}

.catalogo-modern-table {
  min-width: 760px !important;
  table-layout: fixed;
}

.catalogo-modern-table th:nth-child(1),
.catalogo-modern-table td:nth-child(1) { width: 34%; }
.catalogo-modern-table th:nth-child(2),
.catalogo-modern-table td:nth-child(2) { width: 14%; }
.catalogo-modern-table th:nth-child(3),
.catalogo-modern-table td:nth-child(3) { width: 20%; }
.catalogo-modern-table th:nth-child(4),
.catalogo-modern-table td:nth-child(4) { width: 10%; }
.catalogo-modern-table th:nth-child(5),
.catalogo-modern-table td:nth-child(5) { width: 12%; }
.catalogo-modern-table th:nth-child(6),
.catalogo-modern-table td:nth-child(6) { width: 10%; }

.catalogo-modern-table tr.is-selected td {
  background: #f3f8ff;
}

.catalogo-name-cell {
  min-width: 0;
}

.catalogo-name-cell > div {
  min-width: 0;
}

.catalogo-name-cell a {
  overflow: hidden;
  text-overflow: ellipsis;
}

.catalogo-detail-panel {
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
  display: grid;
  gap: .8rem;
  padding: 1rem;
  align-content: start;
}

.catalogo-detail-panel header {
  border-bottom: 1px solid #e3ebf5;
  display: grid;
  gap: .2rem;
  padding-bottom: .7rem;
}

.catalogo-detail-panel header span,
.catalogo-detail-panel label span {
  color: #526984;
  font-size: .72rem;
  font-weight: 760;
  text-transform: uppercase;
}

.catalogo-detail-panel header strong {
  color: #082445;
  font-size: .98rem;
  line-height: 1.25;
}

.catalogo-detail-panel label {
  display: grid;
  gap: .3rem;
}

.catalogo-detail-panel input {
  background: #fff;
  border: 1px solid #dbe5f1;
  border-radius: .55rem;
  color: #203954;
  font-size: .86rem;
  min-height: 2.2rem;
  padding: .4rem .65rem;
}

.catalogo-detail-panel p {
  color: #61728a;
  font-size: .78rem;
  line-height: 1.45;
  margin: .1rem 0 0;
}

.catalogo-create-panel {
  max-width: 640px;
}

.catalogo-create-form {
  display: grid;
  gap: .85rem;
  grid-template-columns: minmax(120px, .35fr) minmax(220px, 1fr);
}

.catalogo-create-form label {
  color: #203954;
  display: grid;
  gap: .35rem;
  font-size: .76rem;
  font-weight: 750;
}

.catalogo-create-form input {
  background: #fff;
  border: 1px solid #dbe5f1;
  border-radius: .55rem;
  color: #203954;
  font-size: .88rem;
  min-height: 2.35rem;
  padding: .45rem .7rem;
}

.catalogo-create-actions {
  align-items: center;
  display: flex;
  gap: .65rem;
  grid-column: 1 / -1;
  justify-content: flex-end;
  padding-top: .35rem;
}

@media (max-width: 1100px) {
  .catalogo-content-grid {
    grid-template-columns: 1fr;
  }

  .catalogo-table-scroll {
    border-right: 0;
    border-bottom: 1px solid #e3ebf5;
  }
}

@media (max-width: 900px) {
  .catalogo-hero-modern {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .catalogo-hero-modern .sueldos-hero-illustration {
    grid-column: 1 / -1;
  }

  .catalogo-filterbar,
  .catalogo-create-form {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SUELDOS / CARGOS, CODIGOS AUTOMATICOS Y ANTIGUEDAD
   ============================================================ */
.sueldos-catalog-modern {
  max-width: 1540px;
}

.sueldos-catalog-icon {
  color: #0b74de;
}

.codauto-title-icon {
  color: #7c3aed;
}

.antiguedad-title-icon {
  color: #0f8f7a;
}

.sueldos-catalog-hero {
  grid-template-columns: minmax(310px, 1.35fr) repeat(4, minmax(150px, .65fr));
  min-height: 10.9rem;
}

.sueldos-catalog-card {
  overflow: hidden;
}

.sueldos-catalog-filter {
  grid-template-columns: minmax(260px, 1fr) auto auto;
}

.sueldos-catalog-table-scroll {
  overflow-x: auto;
}

.sueldos-catalog-table,
.codauto-modern-table,
.antiguedad-modern-table {
  table-layout: fixed;
}

.sueldos-catalog-table {
  min-width: 860px !important;
}

.sueldos-catalog-table th:nth-child(1),
.sueldos-catalog-table td:nth-child(1) { width: 34%; }
.sueldos-catalog-table th:nth-child(2),
.sueldos-catalog-table td:nth-child(2) { width: 14%; }
.sueldos-catalog-table th:nth-child(3),
.sueldos-catalog-table td:nth-child(3) { width: 12%; }
.sueldos-catalog-table th:nth-child(4),
.sueldos-catalog-table td:nth-child(4) { width: 12%; }
.sueldos-catalog-table th:nth-child(5),
.sueldos-catalog-table td:nth-child(5) { width: 14%; }
.sueldos-catalog-table th:nth-child(6),
.sueldos-catalog-table td:nth-child(6) { width: 14%; }

.codauto-modern-table {
  min-width: 920px !important;
}

.codauto-modern-table th:nth-child(1),
.codauto-modern-table td:nth-child(1) { width: 38%; }
.codauto-modern-table th:nth-child(2),
.codauto-modern-table td:nth-child(2) { width: 13%; }
.codauto-modern-table th:nth-child(3),
.codauto-modern-table td:nth-child(3) { width: 13%; }
.codauto-modern-table th:nth-child(4),
.codauto-modern-table td:nth-child(4) { width: 10%; }
.codauto-modern-table th:nth-child(5),
.codauto-modern-table td:nth-child(5) { width: 12%; }
.codauto-modern-table th:nth-child(6),
.codauto-modern-table td:nth-child(6) { width: 14%; }

.antiguedad-modern-table {
  min-width: 980px !important;
}

.antiguedad-modern-table th:nth-child(1),
.antiguedad-modern-table td:nth-child(1) { width: 28%; }
.antiguedad-modern-table th:nth-child(2),
.antiguedad-modern-table td:nth-child(2) { width: 10%; }
.antiguedad-modern-table th:nth-child(3),
.antiguedad-modern-table td:nth-child(3) { width: 10%; }
.antiguedad-modern-table th:nth-child(4),
.antiguedad-modern-table td:nth-child(4) { width: 10%; }
.antiguedad-modern-table th:nth-child(5),
.antiguedad-modern-table td:nth-child(5) { width: 12%; }
.antiguedad-modern-table th:nth-child(6),
.antiguedad-modern-table td:nth-child(6) { width: 10%; }
.antiguedad-modern-table th:nth-child(7),
.antiguedad-modern-table td:nth-child(7) { width: 10%; }
.antiguedad-modern-table th:nth-child(8),
.antiguedad-modern-table td:nth-child(8) { width: 10%; }

.sueldos-range-create-panel {
  max-width: 780px;
}

.sueldos-range-create-form {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(5, minmax(90px, 1fr));
}

.sueldos-range-create-form label {
  color: #203954;
  display: grid;
  gap: .35rem;
  font-size: .76rem;
  font-weight: 750;
}

.sueldos-range-create-form input {
  background: #fff;
  border: 1px solid #dbe5f1;
  border-radius: .55rem;
  color: #203954;
  font-size: .88rem;
  min-height: 2.35rem;
  padding: .45rem .7rem;
}

.sueldos-range-create-actions {
  align-items: center;
  display: flex;
  gap: .65rem;
  grid-column: 1 / -1;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .sueldos-catalog-hero {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .sueldos-catalog-hero .sueldos-hero-illustration {
    grid-column: 1 / -1;
  }

  .sueldos-catalog-filter,
  .sueldos-range-create-form {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SUELDOS / RECIBOS - carcasa moderna, recibo A4 intacto
   ============================================================ */
.recibos-modern {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  display: grid;
  gap: 1rem;
  margin: 0 auto;
  max-width: 1540px;
  padding: 0 !important;
}

.recibos-modern > .sueldos-page-hero {
  align-items: center;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  display: flex;
  gap: 1rem;
  margin: 0 !important;
  min-height: auto !important;
  padding: 0 !important;
}

.recibos-modern > .sueldos-page-hero .sueldos-page-hero__icon {
  align-items: center;
  background: #fff !important;
  border: 1px solid #dbe5f1 !important;
  border-radius: 1rem !important;
  box-shadow: 0 12px 28px rgba(30, 58, 105, .08) !important;
  color: #0b74de !important;
  display: inline-flex;
  flex: 0 0 58px;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.recibos-modern > .sueldos-page-hero .sueldos-page-hero__icon svg {
  height: 32px !important;
  width: 32px !important;
}

.recibos-modern > .sueldos-page-hero .sueldos-page-hero__text {
  display: grid;
  gap: .16rem;
}

.recibos-modern > .sueldos-page-hero h1 {
  color: #082445 !important;
  font-size: 1.55rem !important;
  font-weight: 820 !important;
  letter-spacing: 0 !important;
  line-height: 1.12 !important;
  margin: 0 !important;
}

.recibos-modern > .sueldos-page-hero .sueldos-page-hero__text > span:not(.parametros-mode-badge) {
  color: #526984 !important;
  font-size: .72rem !important;
  font-weight: 800 !important;
  letter-spacing: .04em;
}

.recibos-modern > .sueldos-page-hero p {
  color: #38557b !important;
  font-size: .95rem !important;
  line-height: 1.35 !important;
  margin: 0 !important;
}

.recibos-modern .parametros-mode-badge {
  align-self: start;
  background: #eaf8ef !important;
  border: 1px solid #bde8c9 !important;
  border-radius: 999px !important;
  color: #08743a !important;
  font-size: .72rem !important;
  font-weight: 820 !important;
  padding: .16rem .5rem !important;
}

.recibos-modern > .legajo-fox-toolbar {
  align-items: center !important;
  background: #fff !important;
  border: 1px solid #dbe5f1 !important;
  border-radius: .9rem !important;
  box-shadow: 0 14px 34px rgba(30, 58, 105, .08) !important;
  display: flex !important;
  gap: .55rem !important;
  margin: 0 !important;
  padding: .65rem .75rem !important;
}

.recibos-modern > .legajo-fox-toolbar .legajo-tool,
.recibos-modern > .legajo-fox-toolbar button.legajo-tool {
  align-items: center !important;
  background: #fff !important;
  border: 1px solid #cfe0f4 !important;
  border-radius: .58rem !important;
  color: #0b3b75 !important;
  display: inline-flex !important;
  font-size: .8rem !important;
  font-weight: 760 !important;
  gap: .35rem !important;
  min-height: 2.15rem !important;
  padding: .42rem .68rem !important;
  text-decoration: none !important;
}

.recibos-modern > .legajo-fox-toolbar .legajo-tool.primary,
.recibos-modern > .legajo-fox-toolbar button.legajo-tool:not(:disabled):nth-of-type(2) {
  background: #0b74de !important;
  border-color: #0b74de !important;
  color: #fff !important;
}

.recibos-modern > .legajo-fox-toolbar .legajo-tool.help {
  background: #eef6ff !important;
  border-color: #cfe3ff !important;
  color: #0b5fc2 !important;
}

.recibos-modern .recibos-print-hint {
  background: #f4f8ff !important;
  border: 1px solid #d8e6f8 !important;
  border-radius: .58rem !important;
  color: #38557b !important;
  font-size: .74rem !important;
  font-weight: 760 !important;
  padding: .45rem .65rem !important;
}

.recibos-modern > .recibos-summary-grid {
  background: #fff !important;
  border: 1px solid #dbe5f1 !important;
  border-radius: 1rem !important;
  box-shadow: 0 14px 34px rgba(30, 58, 105, .08) !important;
  display: grid !important;
  gap: .85rem !important;
  grid-template-columns: repeat(6, minmax(120px, 1fr)) !important;
  margin: 0 !important;
  padding: .95rem !important;
}

.recibos-modern > .recibos-summary-grid article {
  align-items: center;
  background: #fbfdff !important;
  border: 1px solid #dce8f6 !important;
  border-radius: .8rem !important;
  display: grid;
  gap: .12rem;
  min-height: 4.1rem;
  padding: .75rem .9rem !important;
}

.recibos-modern > .recibos-summary-grid span {
  color: #526984 !important;
  font-size: .68rem !important;
  font-weight: 800 !important;
  text-transform: uppercase;
}

.recibos-modern > .recibos-summary-grid strong {
  color: #082445 !important;
  font-size: 1rem !important;
  font-weight: 820 !important;
}

.recibos-modern > .recibos-filtros {
  align-items: end !important;
  background: #fff !important;
  border: 1px solid #dbe5f1 !important;
  border-radius: .95rem !important;
  box-shadow: 0 14px 34px rgba(30, 58, 105, .08) !important;
  display: grid !important;
  gap: .75rem !important;
  grid-template-columns: .65fr .55fr .65fr .85fr minmax(220px, 1.3fr) auto !important;
  margin: 0 !important;
  padding: .9rem !important;
}

.recibos-modern > .recibos-filtros label {
  color: #203954 !important;
  display: grid !important;
  gap: .28rem !important;
  font-size: .72rem !important;
  font-weight: 820 !important;
  text-transform: uppercase;
}

.recibos-modern > .recibos-filtros input,
.recibos-modern > .recibos-filtros select {
  background: #fff !important;
  border: 1px solid #cfe0f4 !important;
  border-radius: .55rem !important;
  color: #203954 !important;
  font-size: .85rem !important;
  min-height: 2.15rem !important;
  padding: .42rem .65rem !important;
}

.recibos-modern > .recibos-filtros .client-tool {
  background: #0b74de !important;
  border: 1px solid #0b74de !important;
  border-radius: .58rem !important;
  color: #fff !important;
  font-size: .82rem !important;
  font-weight: 820 !important;
  min-height: 2.2rem !important;
  padding: .45rem .9rem !important;
}

.recibos-modern > .recibos-periodos {
  background: #fff !important;
  border: 1px solid #dbe5f1 !important;
  border-radius: .95rem !important;
  box-shadow: 0 14px 34px rgba(30, 58, 105, .08) !important;
  display: grid !important;
  gap: .65rem !important;
  margin: 0 !important;
  padding: .9rem !important;
}

.recibos-modern > .recibos-periodos strong {
  color: #082445 !important;
  font-size: .86rem !important;
  font-weight: 820 !important;
}

.recibos-modern > .recibos-periodos div {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: .45rem !important;
}

.recibos-modern .recibo-period-chip {
  background: #eef6ff !important;
  border: 1px solid #cfe3ff !important;
  border-radius: 999px !important;
  color: #0b5fc2 !important;
  font-size: .76rem !important;
  font-weight: 780 !important;
  padding: .32rem .65rem !important;
  text-decoration: none !important;
}

.recibos-modern > .recibos-generated-card {
  background: #fff !important;
  border: 1px solid #dbe5f1 !important;
  border-radius: .95rem !important;
  box-shadow: 0 14px 34px rgba(30, 58, 105, .08) !important;
  overflow: hidden !important;
}

.recibos-generated-head {
  align-items: center;
  border-bottom: 1px solid #e7eef7;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: .82rem 1rem .72rem;
}

.recibos-generated-head h2 {
  color: #082445;
  font-size: .92rem;
  font-weight: 820;
  line-height: 1.2;
  margin: 0;
}

.recibos-generated-head p {
  color: #6d7f95;
  font-size: .74rem;
  margin: .16rem 0 0;
}

.recibos-generated-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: .55rem;
}

.recibos-generated-actions a {
  color: #0874dd;
  font-size: .76rem;
  font-weight: 750;
  text-decoration: none;
}

.recibos-generated-actions button,
.recibos-generated-download {
  align-items: center;
  background: #f8fbff;
  border: 1px solid #d7e5f5;
  border-radius: .45rem;
  color: #0b74de;
  cursor: pointer;
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  padding: 0;
  width: 2rem;
}

.recibos-generated-actions svg,
.recibos-generated-download svg {
  fill: none;
  height: 1rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 1rem;
}

.recibos-generated-table-wrap {
  overflow-x: auto;
}

.recibos-generated-table {
  border-collapse: collapse;
  color: #263f5c;
  font-size: .77rem;
  min-width: 880px;
  table-layout: fixed;
  width: 100%;
}

.recibos-generated-table th,
.recibos-generated-table td {
  border-bottom: 1px solid #e5edf6;
  padding: .58rem .72rem;
  text-align: left;
  vertical-align: middle;
}

.recibos-generated-table th {
  background: #f7faff;
  color: #4e6684;
  font-size: .65rem;
  font-weight: 820;
  text-transform: uppercase;
}

.recibos-generated-table tbody tr:hover {
  background: #fbfdff;
}

.recibos-generated-person {
  align-items: center;
  display: flex;
  gap: .55rem;
  min-width: 0;
}

.recibos-generated-avatar {
  align-items: center;
  background: #edf5ff;
  border: 1px solid #d5e8ff;
  border-radius: 999px;
  color: #0b74de;
  display: inline-flex;
  flex: 0 0 1.8rem;
  font-size: .68rem;
  font-weight: 800;
  height: 1.8rem;
  justify-content: center;
  text-transform: uppercase;
  width: 1.8rem;
}

.recibos-generated-person strong,
.recibos-generated-person small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recibos-generated-person strong {
  color: #173455;
  font-size: .78rem;
  font-weight: 760;
}

.recibos-generated-person small {
  color: #6c7f95;
  font-size: .68rem;
  margin-top: .05rem;
}

.recibos-generated-table .num {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.recibos-generated-status {
  background: #eaf8ef;
  border: 1px solid #bde8c9;
  border-radius: 999px;
  color: #108341;
  display: inline-flex;
  font-size: .67rem;
  font-weight: 800;
  line-height: 1;
  padding: .28rem .48rem;
}

.recibos-generated-action-col {
  text-align: center !important;
  width: 3rem;
}

.recibos-generated-download {
  height: 1.8rem;
  margin: 0 auto;
  text-decoration: none;
  width: 1.8rem;
}

.recibos-generated-download:hover,
.recibos-generated-actions button:hover {
  background: #eef6ff;
  border-color: #b9d8fb;
}

.recibos-generated-empty {
  color: #6d7f95;
  padding: 1rem;
  text-align: center;
}

.recibos-window.recibos-modern {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #10243f;
  display: grid;
  gap: 1rem;
  margin: 0 auto !important;
  max-width: 1540px !important;
  padding: 1rem 1.35rem 1.75rem !important;
  width: 100% !important;
}

.recibos-window.recibos-modern * {
  box-sizing: border-box;
}

.recibos-title-icon {
  color: #0b74de;
}

.recibos-hero-card {
  grid-template-columns: minmax(310px, 1.35fr) repeat(4, minmax(150px, .65fr));
}

.recibos-hero-card .legajos-kpi-card strong {
  font-size: 1.36rem;
}

.recibos-controls-card {
  overflow: visible;
}

.recibos-controls-card .legajos-view-tabs span {
  color: #5d7088;
}

.recibos-controls-card .legajos-filterbar.recibos-filtros {
  align-items: end !important;
  background: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: grid !important;
  gap: .75rem !important;
  grid-template-columns: .55fr .45fr .55fr .75fr minmax(240px, 1.25fr) auto !important;
  margin: 0 !important;
  padding: .95rem .85rem 1rem !important;
}

.recibos-filter-field {
  color: #203954 !important;
  display: grid !important;
  flex-direction: initial !important;
  gap: .32rem !important;
  font-size: .74rem !important;
  font-weight: 750 !important;
  line-height: 1.15;
  text-transform: uppercase;
}

.recibos-filter-field input,
.recibos-filter-field select {
  background: #fff !important;
  border: 1px solid #dbe5f1 !important;
  border-radius: .55rem !important;
  color: #203954 !important;
  font-size: .86rem !important;
  font-weight: 500 !important;
  min-height: 2.5rem !important;
  padding: .48rem .7rem !important;
  text-transform: none;
}

.recibos-filter-legajo {
  min-width: 0;
}

.recibos-periodos {
  background: rgba(255, 255, 255, .96) !important;
  border: 1px solid #dfe8f3 !important;
  border-radius: 1rem !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06) !important;
  display: grid !important;
  gap: .8rem !important;
  margin: 0 !important;
  padding: 1rem !important;
}

.recibos-periodos-head h2 {
  color: #0f1f39 !important;
  font-size: .96rem;
  font-weight: 750 !important;
  line-height: 1.2;
  margin: 0;
}

.recibos-periodos-list {
  display: grid !important;
  gap: .7rem !important;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
}

.recibos-modern .recibo-period-chip {
  align-items: center;
  background: #fff !important;
  border: 1px solid #dbe5f1 !important;
  border-radius: .85rem !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .045);
  color: #173455 !important;
  display: flex;
  gap: .7rem;
  font-size: .8rem !important;
  font-weight: 700 !important;
  line-height: 1.1;
  min-height: 4.15rem;
  padding: .64rem .72rem !important;
  text-decoration: none !important;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.recibos-modern .recibo-period-chip:hover {
  background: #f8fbff !important;
  border-color: #bdd7f4 !important;
  box-shadow: 0 12px 24px rgba(6, 111, 220, .12);
  transform: translateY(-1px);
}

.recibo-period-calendar {
  align-items: center;
  background: #eaf4ff;
  border: 1px solid #cfe3ff;
  border-radius: .75rem;
  color: #0b74de;
  display: grid;
  flex: 0 0 3.05rem;
  height: 3.05rem;
  justify-items: center;
  overflow: hidden;
}

.recibo-period-calendar small {
  align-self: stretch;
  background: #0b74de;
  color: #fff;
  display: grid;
  font-size: .56rem;
  font-weight: 800;
  letter-spacing: 0;
  place-items: center;
  width: 100%;
}

.recibo-period-calendar strong {
  color: #0b3b75;
  font-size: 1.05rem;
  font-weight: 760;
  line-height: 1;
}

.recibo-period-copy {
  display: grid;
  gap: .18rem;
  min-width: 0;
}

.recibo-period-copy strong,
.recibo-period-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recibo-period-copy strong {
  color: #173455;
  font-size: .82rem;
  font-weight: 750;
}

.recibo-period-copy small {
  color: #6b7d93;
  font-size: .72rem;
  font-weight: 650;
}

.recibos-generated-card {
  background: rgba(255, 255, 255, .96) !important;
  border: 1px solid #dfe8f3 !important;
  border-radius: 1rem !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06) !important;
  overflow: hidden !important;
}

.recibos-generated-head {
  padding: .78rem 1rem .7rem;
}

.recibos-generated-head h2 {
  color: #0f1f39 !important;
  font-size: .96rem;
  font-weight: 750;
}

.recibos-generated-head p {
  color: #536782;
  font-size: .78rem;
}

.recibos-generated-actions a {
  color: #066fdc;
  font-size: .82rem;
  font-weight: 700;
}

.recibos-generated-table {
  min-width: 1180px !important;
  table-layout: fixed !important;
}

.recibos-generated-table th:nth-child(1),
.recibos-generated-table td:nth-child(1) { width: 26% !important; }
.recibos-generated-table th:nth-child(2),
.recibos-generated-table td:nth-child(2) { width: 7% !important; }
.recibos-generated-table th:nth-child(3),
.recibos-generated-table td:nth-child(3) { width: 13% !important; }
.recibos-generated-table th:nth-child(4),
.recibos-generated-table td:nth-child(4) { width: 13% !important; }
.recibos-generated-table th:nth-child(5),
.recibos-generated-table td:nth-child(5) { width: 15% !important; }
.recibos-generated-table th:nth-child(6),
.recibos-generated-table td:nth-child(6) { width: 10% !important; }
.recibos-generated-table th:nth-child(7),
.recibos-generated-table td:nth-child(7) { width: 10% !important; }
.recibos-generated-table th:nth-child(8),
.recibos-generated-table td:nth-child(8) { width: 6% !important; }

.recibos-generated-table td:first-child,
.recibos-generated-table th:first-child {
  min-width: 285px !important;
}

.recibos-generated-table th,
.recibos-generated-table td {
  padding: .72rem .82rem !important;
}

.recibos-generated-table .legajos-person-cell {
  gap: .65rem;
}

.recibos-generated-view,
.recibos-generated-download,
.recibos-generated-actions button {
  align-items: center;
  background: #fff !important;
  border: 1px solid #d8e2ef !important;
  border-radius: .55rem !important;
  color: #0b74de !important;
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  text-decoration: none;
  width: 2rem;
}

.recibos-generated-view svg,
.recibos-generated-download svg,
.recibos-generated-actions button svg {
  fill: none;
  height: 1rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 1rem;
}

.recibos-generated-view:hover,
.recibos-generated-download:hover {
  background: #f4f8fd !important;
  border-color: #cbd9e8 !important;
}

.recibos-generated-view {
  color: #24405f !important;
}

.recibos-generated-action-col {
  text-align: center !important;
  width: 5.5rem;
}

.recibos-row-actions {
  align-items: center;
  display: inline-flex;
  gap: .45rem;
  justify-content: center;
}

.recibos-window .recibos-preview-stack {
  display: none;
}

.recibos-window .recibos-preview-stack:target {
  display: grid;
}

@media print {
  .recibos-window .recibos-preview-stack {
    display: block !important;
  }
}

@media (max-width: 1180px) {
  .recibos-hero-card {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .recibos-hero-card .legajos-hero-illustration {
    grid-column: 1 / -1;
  }

  .recibos-modern > .recibos-summary-grid {
    grid-template-columns: repeat(3, minmax(140px, 1fr)) !important;
  }

  .recibos-controls-card .legajos-filterbar.recibos-filtros {
    grid-template-columns: repeat(3, minmax(140px, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .recibos-modern > .sueldos-page-hero,
  .recibos-modern > .legajo-fox-toolbar {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  .recibos-modern > .recibos-summary-grid,
  .recibos-controls-card .legajos-filterbar.recibos-filtros {
    grid-template-columns: 1fr !important;
  }

  .recibos-generated-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
.legajos-certified-help code {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: .55rem;
  color: #2563eb;
  font-size: .66rem;
  line-height: 1.2;
  padding: .36rem .5rem;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .legajos-certified-help {
    align-items: flex-start;
    flex-direction: column;
  }
  .legajos-certified-help code {
    max-width: 100%;
    white-space: normal;
  }
}

/* ==========================================================
   SUELDOS - PATCH 151 LIQUIDACIONES INICIO OPERATIVO
   Primera vista estilo Home: período -> Datos Globales -> circuito.
   ========================================================== */
.liquidaciones-modern {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #1d2b41;
  max-width: 1180px !important;
  padding: 0 !important;
}

.liquidaciones-modern .liquidaciones-start-shell {
  display: grid;
  gap: .9rem;
  margin-top: .9rem;
}

.liquidaciones-modern .liquidaciones-period-card,
.liquidaciones-modern .liquidaciones-global-card,
.liquidaciones-modern .liquidaciones-actions-card,
.liquidaciones-modern .liquidaciones-process-card,
.liquidaciones-modern .liquidaciones-technical-details {
  border-color: #dfe7f0 !important;
  border-radius: .65rem !important;
  box-shadow: 0 2px 8px rgba(31, 45, 61, .055) !important;
}

.liquidaciones-period-card {
  align-items: end;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(18rem, 1fr) minmax(30rem, 1.45fr);
  padding: 1rem 1.1rem;
}

.liquidaciones-period-title {
  align-items: center;
  display: flex;
  gap: .85rem;
  min-width: 0;
}

.liquidaciones-period-icon {
  align-items: center;
  background: #eaf3ff;
  border: 1px solid #cfe2ff;
  border-radius: .65rem;
  color: #0b74de;
  display: inline-flex;
  flex: 0 0 3rem;
  height: 3rem;
  justify-content: center;
  width: 3rem;
}

.liquidaciones-period-icon svg,
.liquidaciones-action-item span + div + svg {
  display: block;
}

.liquidaciones-period-icon svg,
.liquidaciones-action-item svg {
  height: 1.35rem;
  width: 1.35rem;
}

.liquidaciones-period-icon path,
.liquidaciones-period-icon rect {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.liquidaciones-period-title h2,
.liquidaciones-global-head h2,
.liquidaciones-actions-card h2,
.liquidaciones-process-card h2 {
  color: #1b2d46;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -.01em;
  margin: 0;
}

.liquidaciones-period-title p,
.liquidaciones-global-head p {
  color: #64748b;
  font-size: .86rem;
  line-height: 1.38;
  margin: .22rem 0 0;
}

.liquidaciones-period-fields {
  align-items: end;
  display: grid;
  gap: .65rem;
  grid-template-columns: minmax(8.5rem, 1fr) minmax(7.5rem, .75fr) minmax(8.5rem, .75fr) auto;
}

.liquidaciones-period-fields label {
  display: grid;
  gap: .28rem;
  min-width: 0;
}

.liquidaciones-period-fields label span,
.liquidaciones-global-preview small,
.liquidaciones-global-head small {
  color: #66758b;
  display: block;
  font-size: .72rem;
  font-weight: 600;
}

.liquidaciones-period-fields .fox-input {
  background: #fff !important;
  border: 1px solid #dbe4ef !important;
  border-radius: .42rem !important;
  box-shadow: 0 1px 2px rgba(28, 39, 60, .04) !important;
  color: #31445c !important;
  font-size: .85rem !important;
  height: 2.25rem !important;
  min-height: 2.25rem !important;
  padding: .42rem .65rem !important;
  width: 100% !important;
}

.liquidaciones-period-buttons {
  align-items: center;
  display: flex;
  gap: .45rem;
  justify-content: flex-end;
}

.liquidaciones-period-buttons .sueldos-primary-action,
.liquidaciones-period-buttons .sueldos-soft-action {
  border: 0;
  cursor: pointer;
  min-height: 2.25rem;
  white-space: nowrap;
}

.liquidaciones-home-grid {
  display: grid;
  gap: .9rem;
  grid-template-columns: minmax(0, 1.45fr) minmax(20rem, .9fr);
}

.liquidaciones-global-card,
.liquidaciones-actions-card,
.liquidaciones-process-card {
  padding: 1rem;
}

.liquidaciones-global-head {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: .85rem;
}

.liquidaciones-global-preview {
  display: grid;
  gap: .6rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.liquidaciones-global-preview div,
.liquidaciones-mini-metrics div {
  background: #f8fafc;
  border: 1px solid #e0e8f2;
  border-radius: .5rem;
  min-width: 0;
  padding: .65rem .7rem;
}

.liquidaciones-global-preview strong {
  color: #17263d;
  display: block;
  font-size: .86rem;
  font-weight: 650;
  line-height: 1.25;
  margin-top: .16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.liquidaciones-global-actions {
  align-items: center;
  border-top: 1px solid #e3ebf5;
  display: flex;
  gap: .75rem;
  margin-top: .9rem;
  padding-top: .85rem;
}

.liquidaciones-main-action {
  font-size: .9rem !important;
  min-width: 9.5rem;
}

.liquidaciones-global-actions span {
  color: #64748b;
  font-size: .82rem;
}

.liquidaciones-action-list {
  display: grid;
  gap: .55rem;
}

.liquidaciones-action-item {
  align-items: center;
  background: #fff;
  border: 1px solid #dfe7f0;
  border-radius: .55rem;
  color: #1d2b41 !important;
  display: grid;
  gap: .65rem;
  grid-template-columns: 2rem minmax(0, 1fr);
  padding: .72rem .8rem;
  text-decoration: none !important;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.liquidaciones-action-item:hover {
  border-color: #bfd7f5;
  box-shadow: 0 5px 14px rgba(11, 116, 222, .10);
  transform: translateY(-1px);
}

.liquidaciones-action-item > span {
  align-items: center;
  background: #eef6ff;
  border: 1px solid #cfe2ff;
  border-radius: 999px;
  color: #0b74de;
  display: inline-flex;
  font-size: .78rem;
  font-weight: 700;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.liquidaciones-action-item--primary {
  background: linear-gradient(135deg, #f2f8ff, #ffffff);
  border-color: #bdd8f7;
}

.liquidaciones-action-item--primary > span {
  background: #0b74de;
  border-color: #0b74de;
  color: #fff;
}

.liquidaciones-action-item strong,
.liquidaciones-action-item small {
  display: block;
}

.liquidaciones-action-item strong {
  color: #1b2d46;
  font-size: .88rem;
  font-weight: 650;
}

.liquidaciones-action-item small {
  color: #66758b;
  font-size: .74rem;
  margin-top: .12rem;
}

.liquidaciones-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.liquidaciones-mini-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0 !important;
}

.liquidaciones-technical-details {
  overflow: hidden;
}

.liquidaciones-technical-details > summary {
  align-items: center;
  background: #fff;
  cursor: pointer;
  display: flex;
  gap: .55rem;
  justify-content: space-between;
  list-style: none;
  padding: .85rem 1rem;
}

.liquidaciones-technical-details > summary::-webkit-details-marker {
  display: none;
}

.liquidaciones-technical-details > summary::after {
  color: #0b74de;
  content: "Abrir detalle";
  font-size: .78rem;
  font-weight: 650;
}

.liquidaciones-technical-details[open] > summary::after {
  content: "Cerrar detalle";
}

.liquidaciones-technical-details > summary span {
  color: #1b2d46;
  font-size: .95rem;
  font-weight: 650;
}

.liquidaciones-technical-details > summary small {
  color: #66758b;
  font-size: .76rem;
  margin-left: auto;
}

.liquidaciones-technical-details .liquidaciones-table-card {
  border-left: 0 !important;
  border-radius: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

.liquidaciones-certificacion-final {
  margin-top: .9rem !important;
}

@media (max-width: 980px) {
  .liquidaciones-period-card,
  .liquidaciones-home-grid {
    grid-template-columns: 1fr;
  }

  .liquidaciones-period-fields,
  .liquidaciones-global-preview,
  .liquidaciones-mini-metrics {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .liquidaciones-period-fields,
  .liquidaciones-global-preview,
  .liquidaciones-mini-metrics,
  .liquidaciones-steps {
    grid-template-columns: 1fr !important;
  }

  .liquidaciones-technical-details > summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .liquidaciones-technical-details > summary small {
    margin-left: 0;
  }
}

/* ==========================================================
   PATCH 185 - Sueldos Home: aportes compactos sin desborde
   ========================================================== */
.sueldos-donut-card-polished {
  overflow: hidden !important;
}

.sueldos-donut-wrap-polished {
  gap: .75rem !important;
  grid-template-columns: 8.8rem minmax(0, 1fr) !important;
}

.sueldos-donut-polished {
  height: 8.2rem !important;
  width: 8.2rem !important;
}

.sueldos-donut-polished::after {
  inset: 2.05rem !important;
}

.sueldos-donut-polished span {
  font-size: .86rem !important;
  padding: 0 .35rem !important;
}

.sueldos-aportes-list-polished {
  min-width: 0 !important;
  overflow: hidden !important;
}

.sueldos-aportes-list-polished .sueldos-aporte-row {
  gap: .35rem !important;
  grid-template-columns: .5rem minmax(0, 1fr) 3rem !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.sueldos-aportes-list-polished .sueldos-aporte-row strong {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.sueldos-aportes-list-polished .sueldos-aporte-row em {
  white-space: nowrap !important;
}

.sueldos-aportes-list-polished .sueldos-aporte-row b {
  display: none !important;
}

/* ==========================================================
   PATCH 186 - Sidebar: solo iconos principales al contraer
   ========================================================== */
@media (min-width: 1101px) {
  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .aramis-module-sueldos > .menu-panel,
  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .aramis-module-sueldos .sueldos-menu-section,
  html body.aramis-sidebar-collapsed .aramis-tabler-sidebar .aramis-module-sueldos .submenu-panel {
    display: none !important;
    height: 0 !important;
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    visibility: hidden !important;
    width: 0 !important;
  }
}

/* ==========================================================
   PATCH 187 - Sueldos: unificacion visual para pantallas heredadas
   ========================================================== */
.aramis-page-content .sueldos-window:not(.legajo-fox-window),
.aramis-page-content .sueldos-page.parametros-window,
.aramis-page-content .tabla-importada-window,
.aramis-page-content .tablas-importadas-window {
  color: #10243f;
  display: grid;
  gap: 1rem;
  margin: 0 auto;
  max-width: 1540px;
  padding: 1rem 1.35rem 1.75rem;
  width: 100%;
}

.aramis-page-content .sueldos-window:not(.legajo-fox-window) *,
.aramis-page-content .sueldos-page.parametros-window * {
  box-sizing: border-box;
  letter-spacing: 0 !important;
}

.aramis-page-content .sueldos-window:not(.legajo-fox-window) > .sueldos-page-hero,
.aramis-page-content .sueldos-page.parametros-window > .sueldos-page-hero {
  align-items: center;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  display: flex;
  gap: 1rem;
  margin: 0 !important;
  min-height: 3.35rem;
  padding: 0 !important;
}

.aramis-page-content .sueldos-window:not(.legajo-fox-window) > .sueldos-page-hero .sueldos-page-hero__icon,
.aramis-page-content .sueldos-page.parametros-window > .sueldos-page-hero .sueldos-page-hero__icon {
  align-items: center;
  background: rgba(255, 255, 255, .92) !important;
  border: 1px solid #dde6f1 !important;
  border-radius: 1rem !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .07) !important;
  color: #385a82 !important;
  display: inline-flex;
  flex: 0 0 3.25rem;
  height: 3.25rem;
  justify-content: center;
  width: 3.25rem;
}

.aramis-page-content .sueldos-window:not(.legajo-fox-window) > .sueldos-page-hero .sueldos-page-hero__icon img,
.aramis-page-content .sueldos-page.parametros-window > .sueldos-page-hero .sueldos-page-hero__icon img {
  display: block;
  height: 1.7rem !important;
  max-height: 1.7rem !important;
  max-width: 1.7rem !important;
  object-fit: contain;
  width: 1.7rem !important;
}

.aramis-page-content .sueldos-window:not(.legajo-fox-window) > .sueldos-page-hero h1,
.aramis-page-content .sueldos-page.parametros-window > .sueldos-page-hero h1 {
  color: #0f1f39 !important;
  font-size: 1.55rem !important;
  font-weight: 750 !important;
  line-height: 1.12 !important;
  margin: 0 0 .22rem !important;
}

.aramis-page-content .sueldos-window:not(.legajo-fox-window) > .sueldos-page-hero strong,
.aramis-page-content .sueldos-page.parametros-window > .sueldos-page-hero strong {
  color: #39516e !important;
  display: block;
  font-size: .72rem !important;
  font-weight: 800 !important;
  line-height: 1.15;
}

.aramis-page-content .sueldos-window:not(.legajo-fox-window) > .sueldos-page-hero p,
.aramis-page-content .sueldos-page.parametros-window > .sueldos-page-hero p {
  color: #536782 !important;
  font-size: .88rem !important;
  margin: .12rem 0 0 !important;
}

.aramis-page-content .sueldos-window:not(.legajo-fox-window) > .legajo-fox-toolbar,
.aramis-page-content .sueldos-page.parametros-window > .legajo-fox-toolbar,
.aramis-page-content .sueldos-window:not(.legajo-fox-window) > .client-toolbar,
.aramis-page-content .sueldos-page.parametros-window > .client-toolbar {
  align-items: center;
  background: rgba(255, 255, 255, .96) !important;
  border: 1px solid #dfe8f3 !important;
  border-radius: 1rem !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06) !important;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 0 !important;
  padding: .72rem .85rem !important;
}

.aramis-page-content .sueldos-window:not(.legajo-fox-window) .legajo-tool,
.aramis-page-content .sueldos-page.parametros-window .legajo-tool,
.aramis-page-content .sueldos-window:not(.legajo-fox-window) .client-tool,
.aramis-page-content .sueldos-page.parametros-window .client-tool,
.aramis-page-content .sueldos-window:not(.legajo-fox-window) .compact-action,
.aramis-page-content .sueldos-page.parametros-window .compact-action {
  align-items: center;
  background: #fff !important;
  border: 1px solid #d8e2ef !important;
  border-radius: .55rem !important;
  color: #24405f !important;
  display: inline-flex;
  font-size: .84rem !important;
  font-weight: 700 !important;
  gap: .45rem;
  justify-content: center;
  min-height: 2.25rem !important;
  padding: .48rem .9rem !important;
  text-decoration: none !important;
}

.aramis-page-content .sueldos-window:not(.legajo-fox-window) .legajo-tool:hover,
.aramis-page-content .sueldos-page.parametros-window .legajo-tool:hover,
.aramis-page-content .sueldos-window:not(.legajo-fox-window) .client-tool:hover,
.aramis-page-content .sueldos-page.parametros-window .client-tool:hover,
.aramis-page-content .sueldos-window:not(.legajo-fox-window) .compact-action:hover,
.aramis-page-content .sueldos-page.parametros-window .compact-action:hover {
  background: #f4f8fd !important;
  border-color: #cbd9e8 !important;
  color: #0b74de !important;
}

.aramis-page-content .sueldos-window:not(.legajo-fox-window) .legajo-tool.primary,
.aramis-page-content .sueldos-page.parametros-window .legajo-tool.primary,
.aramis-page-content .sueldos-window:not(.legajo-fox-window) button[type="submit"].client-tool,
.aramis-page-content .sueldos-page.parametros-window button[type="submit"].client-tool {
  background: #066fdc !important;
  border-color: #066fdc !important;
  box-shadow: 0 10px 24px rgba(6, 111, 220, .2) !important;
  color: #fff !important;
}

/* Un boton "Borrar" (danger) dentro de un <form method=post> sigue siendo
   type=submit, asi que la regla azul de arriba lo pisaba. Se restaura el rojo. */
.aramis-page-content .sueldos-window:not(.legajo-fox-window) button[type="submit"].client-tool.danger-button,
.aramis-page-content .sueldos-page.parametros-window button[type="submit"].client-tool.danger-button {
  background: #b5473f !important;
  border-color: #b5473f !important;
  box-shadow: none !important;
  color: #fff !important;
}

.aramis-page-content .sueldos-window:not(.legajo-fox-window) .toolbar-svg,
.aramis-page-content .sueldos-page.parametros-window .toolbar-svg {
  fill: none;
  height: 1.05rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.85;
  width: 1.05rem;
}

.aramis-page-content .sueldos-window:not(.legajo-fox-window) .parametros-summary-grid,
.aramis-page-content .sueldos-page.parametros-window .parametros-summary-grid,
.aramis-page-content .sueldos-window:not(.legajo-fox-window) [class$="-summary-grid"] {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  margin: 0 !important;
}

.aramis-page-content .sueldos-window:not(.legajo-fox-window) .parametros-summary-grid > article,
.aramis-page-content .sueldos-page.parametros-window .parametros-summary-grid > article,
.aramis-page-content .sueldos-window:not(.legajo-fox-window) [class$="-summary-grid"] > article {
  background: rgba(255, 255, 255, .96) !important;
  border: 1px solid #dfe8f3 !important;
  border-radius: .9rem !important;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .045) !important;
  min-height: 4.85rem;
  padding: .9rem 1rem !important;
}

.aramis-page-content .sueldos-window:not(.legajo-fox-window) .parametros-summary-grid span,
.aramis-page-content .sueldos-page.parametros-window .parametros-summary-grid span,
.aramis-page-content .sueldos-window:not(.legajo-fox-window) [class$="-summary-grid"] span {
  color: #596b83;
  display: block;
  font-size: .74rem;
  font-weight: 750;
  text-transform: none;
}

.aramis-page-content .sueldos-window:not(.legajo-fox-window) .parametros-summary-grid strong,
.aramis-page-content .sueldos-page.parametros-window .parametros-summary-grid strong,
.aramis-page-content .sueldos-window:not(.legajo-fox-window) [class$="-summary-grid"] strong {
  color: #0f1f39;
  display: block;
  font-size: 1.3rem;
  font-weight: 750;
  line-height: 1.08;
  margin-top: .3rem;
}

.aramis-page-content .sueldos-window:not(.legajo-fox-window) .table-wrap,
.aramis-page-content .sueldos-page.parametros-window .table-wrap,
.aramis-page-content .sueldos-window:not(.legajo-fox-window) [class$="-list-card"],
.aramis-page-content .sueldos-page.parametros-window [class$="-list-card"],
.aramis-page-content .sueldos-window:not(.legajo-fox-window) [class$="-selector"],
.aramis-page-content .sueldos-page.parametros-window [class$="-selector"],
.aramis-page-content .sueldos-window:not(.legajo-fox-window) [class$="-ficha"],
.aramis-page-content .sueldos-page.parametros-window [class$="-ficha"] {
  background: rgba(255, 255, 255, .96) !important;
  border: 1px solid #dfe8f3 !important;
  border-radius: 1rem !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06) !important;
  overflow: hidden;
}

.aramis-page-content .sueldos-window:not(.legajo-fox-window) [class$="-list-head"],
.aramis-page-content .sueldos-page.parametros-window [class$="-list-head"],
.aramis-page-content .sueldos-window:not(.legajo-fox-window) [class$="-selector-head"],
.aramis-page-content .sueldos-page.parametros-window [class$="-selector-head"],
.aramis-page-content .sueldos-window:not(.legajo-fox-window) [class$="-ficha-head"],
.aramis-page-content .sueldos-page.parametros-window [class$="-ficha-head"] {
  align-items: center;
  border-bottom: 1px solid #e3ebf4;
  display: flex;
  gap: .8rem;
  justify-content: space-between;
  padding: .85rem 1rem !important;
}

.aramis-page-content .sueldos-window:not(.legajo-fox-window) [class$="-list-head"] strong,
.aramis-page-content .sueldos-page.parametros-window [class$="-list-head"] strong,
.aramis-page-content .sueldos-window:not(.legajo-fox-window) [class$="-selector-head"] strong,
.aramis-page-content .sueldos-page.parametros-window [class$="-selector-head"] strong,
.aramis-page-content .sueldos-window:not(.legajo-fox-window) [class$="-ficha-head"] strong,
.aramis-page-content .sueldos-page.parametros-window [class$="-ficha-head"] strong {
  color: #0f1f39;
  font-size: .92rem;
  font-weight: 750;
}

.aramis-page-content .sueldos-window:not(.legajo-fox-window) [class$="-list-head"] span,
.aramis-page-content .sueldos-page.parametros-window [class$="-list-head"] span,
.aramis-page-content .sueldos-window:not(.legajo-fox-window) [class$="-selector-head"] span,
.aramis-page-content .sueldos-page.parametros-window [class$="-selector-head"] span,
.aramis-page-content .sueldos-window:not(.legajo-fox-window) [class$="-ficha-head"] small,
.aramis-page-content .sueldos-page.parametros-window [class$="-ficha-head"] small {
  color: #536782 !important;
  font-size: .78rem !important;
  font-weight: 500 !important;
}

.aramis-page-content .sueldos-window:not(.legajo-fox-window) .client-toolbar,
.aramis-page-content .sueldos-page.parametros-window .client-toolbar {
  display: grid;
  gap: .65rem;
  grid-template-columns: minmax(240px, 1fr) minmax(150px, .35fr) auto;
  margin: 0 !important;
}

.aramis-page-content .sueldos-window:not(.legajo-fox-window) .grid-input,
.aramis-page-content .sueldos-page.parametros-window .grid-input,
.aramis-page-content .sueldos-window:not(.legajo-fox-window) .text-input,
.aramis-page-content .sueldos-page.parametros-window .text-input {
  background: #fff !important;
  border: 1px solid #dbe5f1 !important;
  border-radius: .55rem !important;
  color: #203954 !important;
  font-size: .84rem !important;
  min-height: 2.35rem !important;
  padding: 0 .72rem !important;
}

.aramis-page-content .sueldos-window:not(.legajo-fox-window) table.dataTable,
.aramis-page-content .sueldos-page.parametros-window table.dataTable,
.aramis-page-content .sueldos-window:not(.legajo-fox-window) .aramis-datatable,
.aramis-page-content .sueldos-page.parametros-window .aramis-datatable {
  border-collapse: collapse !important;
  color: #183250 !important;
  margin: 0 !important;
  width: 100% !important;
}

.aramis-page-content .sueldos-window:not(.legajo-fox-window) table.dataTable thead th,
.aramis-page-content .sueldos-page.parametros-window table.dataTable thead th,
.aramis-page-content .sueldos-window:not(.legajo-fox-window) .aramis-datatable thead th,
.aramis-page-content .sueldos-page.parametros-window .aramis-datatable thead th {
  background: #fbfdff !important;
  border-bottom: 1px solid #e5edf6 !important;
  color: #526980 !important;
  font-size: .71rem !important;
  font-weight: 800 !important;
  text-transform: none !important;
  white-space: nowrap;
}

.aramis-page-content .sueldos-window:not(.legajo-fox-window) table.dataTable tbody td,
.aramis-page-content .sueldos-page.parametros-window table.dataTable tbody td,
.aramis-page-content .sueldos-window:not(.legajo-fox-window) .aramis-datatable tbody td,
.aramis-page-content .sueldos-page.parametros-window .aramis-datatable tbody td {
  border-bottom: 1px solid #e5edf6 !important;
  color: #183250 !important;
  font-size: .82rem !important;
  padding: .72rem .78rem !important;
  vertical-align: middle;
}

.aramis-page-content .sueldos-window:not(.legajo-fox-window) table.dataTable tbody tr:hover,
.aramis-page-content .sueldos-page.parametros-window table.dataTable tbody tr:hover,
.aramis-page-content .sueldos-window:not(.legajo-fox-window) .aramis-datatable tbody tr:hover,
.aramis-page-content .sueldos-page.parametros-window .aramis-datatable tbody tr:hover {
  background: #f8fbff !important;
}

.aramis-page-content .sueldos-window:not(.legajo-fox-window) .dataTables_wrapper,
.aramis-page-content .sueldos-page.parametros-window .dataTables_wrapper {
  color: #39516e;
  padding: .75rem !important;
}

.aramis-page-content .sueldos-window:not(.legajo-fox-window) .dataTables_wrapper .dataTables_filter input,
.aramis-page-content .sueldos-page.parametros-window .dataTables_wrapper .dataTables_filter input,
.aramis-page-content .sueldos-window:not(.legajo-fox-window) .dataTables_wrapper .dataTables_length select,
.aramis-page-content .sueldos-page.parametros-window .dataTables_wrapper .dataTables_length select {
  border: 1px solid #dbe5f1 !important;
  border-radius: .55rem !important;
  min-height: 2.2rem !important;
}

@media (max-width: 980px) {
  .aramis-page-content .sueldos-window:not(.legajo-fox-window),
  .aramis-page-content .sueldos-page.parametros-window {
    padding: .85rem;
  }

  .aramis-page-content .sueldos-window:not(.legajo-fox-window) .client-toolbar,
  .aramis-page-content .sueldos-page.parametros-window .client-toolbar {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   PATCH 188 - Marca lateral Aramis Web mas profesional
   ========================================================== */
.aramis-tabler-sidebar .aramis-sidebar-brand-row {
  align-items: center !important;
  background: linear-gradient(135deg, #174f86 0%, #0f4274 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .16) !important;
  box-shadow: inset 0 -1px 0 rgba(15, 23, 42, .08) !important;
  display: flex !important;
  justify-content: center !important;
  margin: 0 -.85rem 1rem !important;
  min-height: 4.45rem !important;
  padding: .85rem 1rem !important;
}

.aramis-tabler-sidebar .aramis-sidebar-brand-row .navbar-brand {
  align-items: center !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: inline-flex !important;
  justify-content: center !important;
  min-height: 2.85rem !important;
  padding: .15rem .25rem !important;
  text-decoration: none !important;
  width: 100% !important;
}

.aramis-tabler-sidebar .brand-copy-tabler {
  align-items: baseline !important;
  display: inline-flex !important;
  gap: .28rem !important;
  justify-content: center !important;
  line-height: 1 !important;
  min-width: 0 !important;
  position: relative;
  text-align: center !important;
}

.aramis-tabler-sidebar .brand-copy-tabler::before {
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, .7), transparent);
  border-radius: 999px;
  bottom: -.48rem;
  content: "";
  height: 1px;
  left: .35rem;
  position: absolute;
  right: .35rem;
}

.aramis-tabler-sidebar .brand-copy-tabler strong,
.aramis-tabler-sidebar .brand-copy-tabler span {
  color: #fff !important;
  display: inline-block !important;
  letter-spacing: 0 !important;
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  text-shadow: 0 1px 2px rgba(15, 23, 42, .18);
  white-space: nowrap !important;
}

.aramis-tabler-sidebar .brand-copy-tabler strong {
  font-size: 1.42rem !important;
  font-weight: 800 !important;
}

.aramis-tabler-sidebar .brand-copy-tabler span {
  font-size: 1.28rem !important;
  font-weight: 500 !important;
  opacity: .96;
}

.aramis-tabler-sidebar .brand-copy-tabler::after {
  background: #7dd3fc;
  border: 2px solid rgba(255, 255, 255, .38);
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(125, 211, 252, .16), 0 0 14px rgba(125, 211, 252, .55);
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  height: .5rem;
  margin-left: .42rem;
  transform: translateY(-.08rem);
  width: .5rem;
}

@media (min-width: 1101px) {
  body.aramis-sidebar-collapsed .aramis-tabler-sidebar .aramis-sidebar-brand-row {
    justify-content: center !important;
    min-height: 4rem !important;
    padding: .65rem .45rem !important;
  }

  body.aramis-sidebar-collapsed .aramis-tabler-sidebar .aramis-sidebar-brand-row .navbar-brand {
    border-radius: 0 !important;
    height: 2.6rem !important;
    min-height: 2.6rem !important;
    padding: 0 !important;
    width: 2.6rem !important;
  }

  body.aramis-sidebar-collapsed .aramis-tabler-sidebar .brand-copy-tabler strong,
  body.aramis-sidebar-collapsed .aramis-tabler-sidebar .brand-copy-tabler span {
    display: none !important;
  }

  body.aramis-sidebar-collapsed .aramis-tabler-sidebar .brand-copy-tabler::before {
    display: none;
  }

  body.aramis-sidebar-collapsed .aramis-tabler-sidebar .brand-copy-tabler::after {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .92);
    border-radius: .42rem;
    box-shadow: inset 0 0 0 3px rgba(125, 211, 252, .28);
    content: "";
    height: 1.05rem;
    margin: 0;
    transform: none;
    width: 1.05rem;
  }
}

/* ==========================================================
   PATCH 190 - Imagen de cinta en la barra lateral
   ========================================================== */
.aramis-sidebar-brand-row {
  overflow: visible !important;
  position: relative;
}

.aramis-tenant-ribbon {
  align-items: flex-start;
  display: flex;
  height: 1.5rem;
  position: absolute;
  right: .8rem;
  top: .2rem;
  z-index: 2;
}

.aramis-tenant-ribbon-cap {
  display: block;
  flex: 0 0 auto;
  height: 100%;
  width: auto;
}

.aramis-tenant-ribbon-body {
  align-items: center;
  background: linear-gradient(180deg, #ffd95a 0%, #ffc83d 50%, #f6b928 100%);
  border-bottom: 3px solid #2c93d6;
  box-sizing: content-box;
  display: flex;
  flex: 0 1 auto;
  height: 87%;
  justify-content: center;
  margin-left: -1px;
  min-width: 0;
  padding: 0 .45rem 0 .25rem;
}

.aramis-tenant-ribbon-text {
  color: #17325c;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .02em;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

body.aramis-sidebar-collapsed .aramis-tenant-ribbon {
  display: none;
}

@media (max-width: 1100px) {
  .aramis-tenant-ribbon {
    display: none;
  }
}

/* ==========================================================
   PATCH 189 - Familiares estilo ficha moderna
   ========================================================== */
.familiares-modern {
  margin-left: 0;
  max-width: 1540px;
  padding-left: 1.35rem;
}

.familiares-modern .familiares-title-icon {
  border-color: #dce7f2 !important;
  border-radius: .85rem !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .045) !important;
  height: 3.35rem;
  width: 3.35rem;
}

.familiares-title-icon svg {
  color: #49647f;
  display: block;
  fill: none;
  height: 1.75rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
  width: 1.75rem;
}

.familiares-modern-head {
  min-height: 3.1rem;
}

.familiares-actionbar {
  align-items: center;
  background: rgba(255, 255, 255, .96);
  border: 1px solid #dfe8f3;
  border-radius: 1rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
  display: flex;
  gap: .6rem;
  padding: .7rem .85rem;
}

.familiares-actionbar .legajos-btn[disabled] {
  cursor: default;
  opacity: 1;
}

.familiares-help-pill {
  background: transparent !important;
  border-color: transparent !important;
  padding-right: .2rem !important;
}

.familiares-help-pill span {
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  color: #15803d;
  font-size: .76rem;
  padding: .22rem .7rem;
}

.familiares-board {
  align-items: stretch;
  display: grid;
  gap: .85rem;
  grid-template-columns: minmax(330px, .9fr) minmax(0, 1.75fr);
}

.familiares-list-card,
.familiares-detail-card {
  background: rgba(255, 255, 255, .97);
  border: 1px solid #dfe8f3;
  border-radius: 1rem;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .07);
  min-width: 0;
  overflow: hidden;
}

.familiares-list-card > header {
  border-bottom: 1px solid #e3ebf4;
  display: grid;
  gap: .75rem;
  padding: .9rem .95rem .8rem;
}

.familiares-list-card > header strong {
  color: #0f1f39;
  font-size: .96rem;
  font-weight: 800;
}

.familiares-search {
  align-items: center;
  display: grid;
  gap: .45rem;
  grid-template-columns: minmax(0, 1fr) 2.35rem 2.35rem;
}

.familiares-search input,
.familiares-form-grid input,
.familiares-form-grid select,
.familiares-form-grid textarea {
  background: #fff !important;
  border: 1px solid #d6e2ef !important;
  border-radius: .55rem !important;
  color: #183250 !important;
  font-size: .84rem !important;
  min-height: 2.45rem !important;
  outline: 0;
  padding: .45rem .7rem !important;
  width: 100%;
}

.familiares-search button,
.familiares-search a {
  align-items: center;
  background: #fff;
  border: 1px solid #d6e2ef;
  border-radius: .55rem;
  color: #385a82;
  display: inline-flex;
  height: 2.45rem;
  justify-content: center;
  width: 2.35rem;
}

.familiares-search svg {
  height: 1.05rem;
  width: 1.05rem;
}

.familiares-list {
  display: grid;
  gap: .45rem;
  max-height: 29.5rem;
  overflow: auto;
  padding: .55rem;
}

.familiares-person-card {
  align-items: center;
  background: #fff;
  border: 1px solid #e2eaf4;
  border-radius: .62rem;
  color: #183250 !important;
  display: grid;
  gap: .62rem;
  grid-template-columns: 4rem minmax(0, 1fr) auto .8rem;
  min-height: 4.55rem;
  padding: .5rem .5rem .5rem .45rem;
  text-decoration: none !important;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.familiares-person-card:hover,
.familiares-person-card.is-active {
  background: #f7fbff;
  border-color: #8dc3ff;
  box-shadow: inset 2px 0 0 #0b74de, 0 8px 18px rgba(11, 116, 222, .08);
}

.familiares-legajo-chip {
  align-items: center;
  background: linear-gradient(135deg, #eff6ff, #e5edf7);
  border-radius: .45rem;
  color: #16406d;
  display: inline-flex;
  font-size: .88rem;
  font-weight: 750;
  height: 3.45rem;
  justify-content: center;
  width: 3.55rem;
}

.familiares-person-copy {
  display: grid;
  gap: .08rem;
  min-width: 0;
}

.familiares-person-copy strong {
  color: #10243f;
  font-size: .84rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.familiares-person-copy small {
  color: #3f5875;
  font-size: .75rem;
  line-height: 1.2;
}

.familiares-badges {
  display: grid;
  gap: .25rem;
  justify-items: start;
}

.familiares-badges em,
.familiares-state {
  border-radius: .45rem;
  display: inline-flex;
  font-size: .72rem;
  font-style: normal;
  font-weight: 800;
  justify-content: center;
  min-width: 3.05rem;
  padding: .22rem .5rem;
}

.familiares-badges .is-active,
.familiares-state.is-active {
  background: #dcfce7;
  color: #15803d;
}

.familiares-badges .is-muted {
  background: #eef2f7;
  color: #64748b;
}

.familiares-badges .is-school,
.familiares-state.is-school {
  background: #f0e7ff;
  color: #7c3aed;
}

.familiares-row-arrow {
  color: #385a82;
  height: 1rem;
  width: 1rem;
}

.familiares-list-footer {
  align-items: center;
  border-top: 1px solid #e3ebf4;
  display: flex;
  justify-content: space-between;
  padding: .7rem .85rem;
}

.familiares-list-footer span {
  color: #536782;
  font-size: .78rem;
}

.familiares-list-footer nav {
  align-items: center;
  display: inline-flex;
  gap: .2rem;
}

.familiares-list-footer nav a,
.familiares-list-footer nav span,
.familiares-list-footer nav strong {
  align-items: center;
  border: 1px solid #dbe5f1;
  border-radius: .45rem;
  color: #385a82;
  display: inline-flex;
  font-size: .78rem;
  height: 2rem;
  justify-content: center;
  min-width: 2rem;
  text-decoration: none;
}

.familiares-list-footer nav strong {
  background: #0b74de;
  border-color: #0b74de;
  color: #fff;
}

.familiares-tabs {
  align-items: center;
  border-bottom: 1px solid #e3ebf4;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: .82rem .95rem 0;
}

.familiares-tabs nav {
  align-items: flex-end;
  display: flex;
  gap: 1.25rem;
}

.familiares-tabs button {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #203954;
  font-size: .84rem !important;
  font-weight: 750 !important;
  min-height: 2.25rem !important;
  padding: .35rem 0 .75rem !important;
  position: relative;
}

.familiares-tabs button.is-active {
  color: #066fdc !important;
}

.familiares-tabs button.is-active::after {
  background: #066fdc;
  border-radius: 999px;
  bottom: 0;
  content: "";
  height: .2rem;
  left: 0;
  position: absolute;
  right: 0;
}

.familiares-tabs > div {
  align-items: center;
  display: inline-flex;
  gap: .55rem;
  padding-bottom: .55rem;
}

.familiares-form-grid {
  display: grid;
  gap: 1rem 1.15rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 1.15rem 1.15rem 1.2rem;
}

.familiares-form-grid label {
  display: grid;
  gap: .38rem;
  min-width: 0;
}

.familiares-form-grid label.wide {
  grid-column: 1 / -1;
}

.familiares-form-grid label > span {
  color: #64748b;
  font-size: .78rem;
  font-weight: 700;
}

.familiares-input-row {
  display: grid;
  gap: .35rem;
  grid-template-columns: 4.6rem minmax(0, 1fr);
}

.familiares-form-grid textarea {
  min-height: 4.2rem !important;
  resize: vertical;
}

.familiares-form-grid small {
  color: #64748b;
  font-size: .75rem;
  justify-self: end;
}

.familiares-delete-btn {
  border-color: #fecaca !important;
  color: #ef4444 !important;
}

.familiares-actionbar form {
  margin: 0;
}

.familiares-create-panel {
  max-width: 760px;
}

.familiares-create-form {
  box-shadow: none !important;
  border: 0 !important;
  padding: 1rem !important;
}

.familiares-create-actions {
  align-items: center;
  display: flex;
  gap: .6rem;
  justify-content: flex-end;
}

.familiares-form-grid hr {
  border: 0;
  border-top: 1px solid #e3ebf4;
  grid-column: 1 / -1;
  margin: .25rem 0 0;
  width: 100%;
}

.familiares-footnote {
  color: #536782 !important;
  font-size: .78rem !important;
  padding: 0 .1rem;
}

.familiares-empty,
.familiares-empty-detail {
  color: #64748b;
  padding: 1rem;
}

@media (max-width: 1180px) {
  .familiares-hero-card {
    grid-template-columns: 200px minmax(0, 1fr) repeat(2, minmax(150px, .7fr));
  }

  .familiares-hero-kpi:last-child {
    grid-column: 2 / -1;
  }

  .familiares-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .familiares-hero-card {
    grid-template-columns: 1fr;
    padding: .68rem;
  }

  .familiares-hero-illustration {
    justify-content: center;
  }

  .familiares-hero-illustration img {
    height: 7rem;
    max-height: 7rem;
  }

  .familiares-hero-kpi:last-child {
    grid-column: auto;
  }

  .familiares-actionbar,
  .familiares-tabs {
    align-items: stretch;
    flex-direction: column;
  }

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

  .familiares-person-card {
    grid-template-columns: 3.5rem minmax(0, 1fr);
  }

  .familiares-badges,
  .familiares-row-arrow {
    display: none;
  }
}

/* ==========================================================
   PATCH 190 - Antiguedad layout tipo detalle
   ========================================================== */
.antiguedad-screen {
  color: #10243f;
  display: grid;
  gap: .82rem;
  margin: 0;
  max-width: 1540px;
  padding: .75rem .8rem 1.35rem;
  width: 100%;
}

.antiguedad-screen *,
.antiguedad-screen *::before,
.antiguedad-screen *::after {
  box-sizing: border-box;
  letter-spacing: 0 !important;
}

.antiguedad-screen svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.antiguedad-head {
  align-items: center;
  display: flex;
  min-height: 3.9rem;
}

.antiguedad-title-wrap {
  align-items: center;
  display: flex;
  gap: .85rem;
}

.antiguedad-title-icon {
  align-items: center;
  background: rgba(255, 255, 255, .94);
  border: 1px solid #dfe8f3;
  border-radius: .75rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
  color: #6f8094;
  display: inline-flex;
  height: 3rem;
  justify-content: center;
  width: 3rem;
}

.antiguedad-title-icon svg {
  height: 1.65rem;
  width: 1.65rem;
}

.antiguedad-head h1 {
  color: #0f1f39 !important;
  font-size: 1.45rem !important;
  font-weight: 800 !important;
  line-height: 1.05;
  margin: 0 0 .12rem !important;
}

.antiguedad-head strong {
  color: #526980;
  display: block;
  font-size: .68rem;
  font-weight: 800;
  margin-bottom: .18rem;
}

.antiguedad-head p {
  color: #536782;
  font-size: .78rem;
  margin: 0;
}

.antiguedad-toolbar,
.antiguedad-panel {
  background: rgba(255, 255, 255, .97);
  border: 1px solid #dfe8f3;
  border-radius: .55rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .055);
}

.antiguedad-toolbar {
  align-items: center;
  display: grid;
  gap: .55rem;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  min-height: 3rem;
  padding: .55rem .72rem;
}

.antiguedad-btn {
  align-items: center;
  background: #fff !important;
  border: 1px solid #d6e2ef !important;
  border-radius: .4rem !important;
  color: #24405f !important;
  display: inline-flex;
  font-size: .78rem !important;
  font-weight: 750 !important;
  gap: .42rem;
  justify-content: center;
  min-height: 2rem !important;
  padding: .38rem .72rem !important;
  text-decoration: none !important;
}

.antiguedad-btn svg {
  height: .95rem;
  width: .95rem;
}

.antiguedad-btn-primary {
  border-color: #9dc8ff !important;
  color: #0b74de !important;
}

.antiguedad-layout {
  align-items: stretch;
  display: grid;
  gap: .7rem;
  grid-template-columns: minmax(460px, .92fr) minmax(520px, 1.08fr);
}

.antiguedad-panel {
  min-width: 0;
  overflow: hidden;
}

.antiguedad-panel-head {
  align-items: center;
  border-bottom: 1px solid #e5edf6;
  display: flex;
  gap: .65rem;
  justify-content: space-between;
  min-height: 3rem;
  padding: .72rem .85rem;
}

.antiguedad-panel-head strong {
  color: #10243f;
  font-size: .82rem;
  font-weight: 850;
}

.antiguedad-panel-head div {
  align-items: center;
  display: flex;
  gap: .55rem;
}

.antiguedad-panel-head div span {
  align-items: center;
  background: #eaf4ff;
  border-radius: 999px;
  color: #326fae;
  display: inline-flex;
  font-size: .7rem;
  font-weight: 800;
  height: 1.25rem;
  justify-content: center;
  min-width: 1.25rem;
  padding: 0 .4rem;
}

.antiguedad-search {
  align-items: center;
  display: grid;
  gap: .35rem;
  grid-template-columns: minmax(140px, 1fr) 2rem auto;
  max-width: 250px;
}

.antiguedad-search input,
.antiguedad-detail-form input,
.antiguedad-detail-form select {
  background: #fff !important;
  border: 1px solid #d6e2ef !important;
  border-radius: .38rem !important;
  color: #183250 !important;
  font-size: .78rem !important;
  min-height: 2rem !important;
  padding: .34rem .55rem !important;
  width: 100%;
}

.antiguedad-search button,
.antiguedad-search a {
  align-items: center;
  background: #fff;
  border: 1px solid #d6e2ef;
  border-radius: .38rem;
  color: #6b819a;
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.antiguedad-search svg {
  height: .88rem;
  width: .88rem;
}

.antiguedad-table-wrap {
  min-height: 24rem;
  overflow: auto;
}

.antiguedad-table {
  border-collapse: collapse;
  min-width: 520px;
  table-layout: fixed;
  width: 100%;
}

.antiguedad-table th,
.antiguedad-table td {
  border-bottom: 1px solid #e5edf6;
  color: #183250;
  font-size: .76rem;
  padding: .78rem .85rem;
  text-align: left;
  vertical-align: middle;
}

.antiguedad-table th {
  background: #fbfdff;
  color: #526980;
  font-size: .66rem;
  font-weight: 850;
  text-transform: uppercase;
}

.antiguedad-table tbody tr {
  cursor: pointer;
}

.antiguedad-table tbody tr:hover {
  background: #f7fbff;
}

.antiguedad-table tbody tr.is-selected {
  background: #dceeff;
}

.antiguedad-check {
  align-items: center;
  border: 1px solid #21b46b;
  border-radius: 999px;
  color: #16a05f;
  display: inline-flex;
  font-size: .72rem;
  font-weight: 900;
  height: 1rem;
  justify-content: center;
  width: 1rem;
}

.antiguedad-table-footer {
  align-items: center;
  border-top: 1px solid #e5edf6;
  display: flex;
  justify-content: space-between;
  min-height: 3.1rem;
  padding: .65rem .85rem;
}

.antiguedad-table-footer span,
.antiguedad-table-footer nav {
  color: #6b7d93;
  font-size: .74rem;
}

.antiguedad-table-footer nav {
  align-items: center;
  display: inline-flex;
  gap: .75rem;
}

.antiguedad-table-footer nav strong {
  align-items: center;
  background: #eef5ff;
  border-radius: .38rem;
  color: #24405f;
  display: inline-flex;
  height: 1.7rem;
  justify-content: center;
  width: 1.7rem;
}

.antiguedad-status {
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  color: #15803d;
  font-size: .7rem;
  font-weight: 850;
  padding: .18rem .55rem;
}

.antiguedad-detail-form {
  display: grid;
  gap: .85rem 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: .9rem .95rem 1rem;
}

.antiguedad-detail-form label {
  display: grid;
  gap: .34rem;
}

.antiguedad-detail-form label.wide,
.antiguedad-detail-form .wide,
.antiguedad-detail-form hr {
  grid-column: 1 / -1;
}

.antiguedad-detail-form label span {
  color: #526980;
  font-size: .72rem;
  font-weight: 800;
}

.antiguedad-detail-form label em {
  color: #ef4444;
  font-style: normal;
}

.antiguedad-percent {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.2rem;
}

.antiguedad-percent input {
  border-radius: .38rem 0 0 .38rem !important;
  text-align: right;
}

.antiguedad-percent b {
  align-items: center;
  background: #f4f7fb;
  border: 1px solid #d6e2ef;
  border-left: 0;
  border-radius: 0 .38rem .38rem 0;
  color: #526980;
  display: inline-flex;
  font-size: .76rem;
  justify-content: center;
}

.antiguedad-toggle-row {
  align-items: center;
  display: flex;
  gap: .55rem;
  grid-column: 1 / -1;
}

.antiguedad-toggle-row > span {
  color: #526980;
  font-size: .72rem;
  font-weight: 800;
}

.antiguedad-toggle-row b {
  background: #0b74de;
  border-radius: 999px;
  height: 1.05rem;
  position: relative;
  width: 2rem;
}

.antiguedad-toggle-row b::after {
  background: #fff;
  border-radius: 999px;
  content: "";
  height: .78rem;
  position: absolute;
  right: .14rem;
  top: .135rem;
  width: .78rem;
}

.antiguedad-toggle-row small {
  color: #64748b;
  font-size: .74rem;
}

.antiguedad-info {
  align-items: start;
  background: #eaf4ff;
  border: 1px solid #9dc8ff;
  border-radius: .45rem;
  display: grid;
  gap: .55rem;
  grid-column: 1 / -1;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  padding: .72rem;
}

.antiguedad-info strong {
  align-items: center;
  background: #0b74de;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: .78rem;
  height: 1.15rem;
  justify-content: center;
  width: 1.15rem;
}

.antiguedad-info p {
  color: #24527f;
  font-size: .74rem;
  line-height: 1.35;
  margin: 0;
}

.antiguedad-coverage {
  border: 1px solid #e5edf6;
  border-radius: .45rem;
  padding: .78rem .85rem;
}

.antiguedad-coverage > strong {
  color: #10243f;
  display: block;
  font-size: .78rem;
  font-weight: 850;
  margin-bottom: .9rem;
}

.antiguedad-timeline {
  display: grid;
  gap: .55rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  position: relative;
}

.antiguedad-timeline::before {
  background: linear-gradient(90deg, #0b74de, #0ea5a0, #22c55e, #facc15, #f97316, #dc2626);
  border-radius: 999px;
  content: "";
  height: .28rem;
  left: .35rem;
  position: absolute;
  right: .35rem;
  top: 1.16rem;
}

.antiguedad-timeline span {
  color: #526980;
  display: grid;
  gap: .18rem;
  justify-items: center;
  min-width: 0;
  position: relative;
  text-align: center;
  z-index: 1;
}

.antiguedad-timeline i {
  background: hsl(calc(205 - var(--i) * 28), 85%, 48%);
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .08);
  height: .82rem;
  margin-top: .75rem;
  width: .82rem;
}

.antiguedad-timeline b {
  color: #526980;
  font-size: .68rem;
  font-weight: 800;
}

.antiguedad-timeline em {
  color: #10243f;
  font-size: .85rem;
  font-style: normal;
  font-weight: 850;
}

.antiguedad-timeline small,
.antiguedad-coverage p {
  color: #64748b;
  font-size: .7rem;
}

.antiguedad-empty {
  color: #64748b;
  padding: 1rem;
}

@media (max-width: 1120px) {
  .antiguedad-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .antiguedad-toolbar,
  .antiguedad-detail-form,
  .antiguedad-timeline {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   PATCH 191 - Parametros tablero moderno
   ========================================================== */
.parametros-modern {
  color: #10243f;
  display: grid;
  gap: .85rem;
  margin: 0 auto;
  max-width: 1540px;
  padding: 1rem 1.35rem 1.75rem;
  width: 100%;
}

.parametros-modern *,
.parametros-modern *::before,
.parametros-modern *::after {
  box-sizing: border-box;
  letter-spacing: 0 !important;
}

.parametros-modern svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.parametros-modern-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 3.55rem;
}

.parametros-modern-head h1 {
  color: #0f1f39 !important;
  font-size: 1.32rem !important;
  font-weight: 850 !important;
  margin: 0 0 .1rem !important;
}

.parametros-modern-head strong {
  color: #526980;
  display: block;
  font-size: .68rem;
  font-weight: 800;
}

.parametros-modern-head nav,
.parametros-table-card header form {
  align-items: center;
  display: flex;
  gap: .55rem;
}

.parametros-btn,
.parametros-table-card td a,
.parametros-table-card td button,
.parametros-table-card header button,
.parametros-detail-grid aside a,
.parametros-detail-grid aside button {
  align-items: center;
  background: #fff !important;
  border: 1px solid #d6e2ef !important;
  border-radius: .4rem !important;
  color: #24405f !important;
  display: inline-flex;
  font-size: .74rem !important;
  font-weight: 800 !important;
  gap: .38rem;
  justify-content: center;
  min-height: 2rem !important;
  padding: .36rem .72rem !important;
  text-decoration: none !important;
}

.parametros-btn svg,
.parametros-detail-grid aside svg,
.parametros-table-card header button svg {
  height: .9rem;
  width: .9rem;
}

.parametros-btn-primary {
  background: #0b74de !important;
  border-color: #0b74de !important;
  color: #fff !important;
}

.parametros-kpis {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.parametros-kpis article,
.parametros-categories,
.parametros-detail-card,
.parametros-table-card {
  background: rgba(255, 255, 255, .97);
  border: 1px solid #dfe8f3;
  border-radius: .75rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .055);
}

.parametros-kpis article {
  align-items: center;
  display: grid;
  gap: .72rem;
  grid-template-columns: 2.55rem minmax(0, 1fr);
  min-height: 4.55rem;
  padding: .85rem .95rem;
}

.parametros-kpis article > span,
.parametros-category-icon,
.parametros-detail-icon,
.parametros-mini-icon {
  align-items: center;
  background: #eaf4ff;
  border-radius: .55rem;
  color: #0b74de;
  display: inline-flex;
  justify-content: center;
}

.parametros-kpis article > span {
  height: 2.45rem;
  width: 2.45rem;
}

.parametros-kpis article > span.is-blue {
  background: #eaf4ff;
  color: #0b74de;
}

.parametros-kpis article > span.is-green {
  background: #dcfce7;
  color: #16a34a;
}

.parametros-kpis article > span.is-purple {
  background: #f1e4ff;
  color: #8b5cf6;
}

.parametros-kpis article > span.is-cyan {
  background: #e0f7fb;
  color: #0891b2;
}

.parametros-kpis article > span.is-orange {
  background: #fff1dc;
  color: #f59e0b;
}

.parametros-kpis svg {
  height: 1.18rem;
  width: 1.18rem;
}

.parametros-kpis small,
.parametros-kpis em {
  color: #536782;
  display: block;
  font-size: .7rem;
  font-style: normal;
  font-weight: 700;
}

.parametros-kpis strong {
  color: #10243f;
  font-size: 1.1rem;
  font-weight: 850;
  line-height: 1.05;
}

.parametros-overview {
  align-items: stretch;
  display: grid;
  gap: .85rem;
  grid-template-columns: minmax(310px, .55fr) minmax(0, 1.45fr);
}

.parametros-categories {
  overflow: hidden;
}

.parametros-categories > header,
.parametros-table-card > header {
  align-items: center;
  border-bottom: 1px solid #e5edf6;
  color: #10243f;
  display: flex;
  font-size: .82rem;
  font-weight: 850;
  justify-content: space-between;
  min-height: 3rem;
  padding: .75rem .9rem;
}

.parametros-categories a {
  align-items: center;
  border-bottom: 1px solid #e5edf6;
  color: #183250 !important;
  display: grid;
  gap: .65rem;
  grid-template-columns: 2.1rem minmax(0, 1fr) auto;
  min-height: 4rem;
  padding: .65rem .78rem;
  text-decoration: none !important;
}

.parametros-categories a.is-active {
  background: #eaf4ff;
}

.parametros-category-icon {
  height: 2rem;
  width: 2rem;
}

.parametros-category-icon svg {
  height: 1rem;
  width: 1rem;
}

.parametros-category-icon.is-2 { background: #fff0e7; color: #f97316; }
.parametros-category-icon.is-3 { background: #dcfce7; color: #16a05f; }
.parametros-category-icon.is-4 { background: #ffeafd; color: #d946ef; }
.parametros-category-icon.is-5 { background: #f4e8ff; color: #a855f7; }

.parametros-categories strong {
  display: block;
  font-size: .76rem;
  font-weight: 850;
}

.parametros-categories small {
  color: #536782;
  display: block;
  font-size: .68rem;
  line-height: 1.25;
}

.parametros-categories em {
  align-items: center;
  background: #f1f6fb;
  border: 1px solid #dbe7f3;
  border-radius: 999px;
  color: #385a82;
  display: inline-flex;
  font-size: .7rem;
  font-style: normal;
  font-weight: 800;
  height: 1.35rem;
  justify-content: center;
  min-width: 1.35rem;
  padding: 0 .45rem;
}

.parametros-detail-card {
  overflow: hidden;
}

.parametros-detail-card > header {
  align-items: center;
  border-bottom: 1px solid #e5edf6;
  display: grid;
  gap: .75rem;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  min-height: 4.85rem;
  padding: .85rem 1rem;
}

.parametros-detail-icon {
  height: 2.75rem;
  width: 2.75rem;
}

.parametros-detail-card h2 {
  color: #10243f !important;
  font-size: .98rem !important;
  font-weight: 850 !important;
  margin: 0 0 .2rem !important;
}

.parametros-detail-card p {
  color: #536782;
  font-size: .74rem;
  margin: 0;
}

.parametros-detail-card b.is-ok,
.parametros-detail-card b.is-review,
.parametros-detail-grid span.is-ok,
.parametros-detail-grid span.is-review,
.parametros-table-card td span.is-ok,
.parametros-table-card td span.is-review {
  border-radius: 999px;
  display: inline-flex;
  font-size: .68rem;
  font-weight: 850;
  padding: .18rem .48rem;
}

.parametros-detail-card .is-ok,
.parametros-detail-grid .is-ok,
.parametros-table-card .is-ok {
  background: #dcfce7;
  color: #15803d;
}

.parametros-detail-card .is-review,
.parametros-detail-grid .is-review,
.parametros-table-card .is-review {
  background: #fff0e7;
  color: #f97316;
}

.parametros-detail-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr) 13rem;
  padding: 1rem;
}

.parametros-detail-grid div {
  display: grid;
  gap: .36rem;
  align-content: start;
}

.parametros-detail-grid small {
  color: #526980;
  font-size: .68rem;
  font-weight: 850;
}

.parametros-detail-grid p {
  color: #183250;
  font-size: .74rem;
  line-height: 1.35;
  margin: 0 0 .3rem;
}

.parametros-detail-grid aside {
  display: grid;
  gap: .5rem;
  align-content: start;
}

.parametros-detail-grid aside strong {
  color: #526980;
  font-size: .7rem;
  font-weight: 850;
}

.parametros-detail-grid aside a,
.parametros-detail-grid aside button {
  justify-content: flex-start;
  width: 100%;
}

.parametros-detail-grid aside .danger {
  border-color: #fecaca !important;
  color: #ef4444 !important;
}

.parametros-table-card {
  overflow: hidden;
}

.parametros-table-card header h2 {
  color: #10243f !important;
  font-size: .86rem !important;
  font-weight: 850 !important;
  margin: 0 !important;
}

.parametros-table-card header input {
  background: #fff !important;
  border: 1px solid #d6e2ef !important;
  border-radius: .38rem !important;
  color: #183250 !important;
  font-size: .74rem !important;
  min-height: 2rem !important;
  padding: .35rem .6rem !important;
  width: 220px;
}

.parametros-table-card table {
  border-collapse: collapse;
  width: 100%;
}

.parametros-table-card th,
.parametros-table-card td {
  border-bottom: 1px solid #e5edf6;
  color: #183250;
  font-size: .73rem;
  padding: .68rem .78rem;
  text-align: left;
  vertical-align: middle;
}

.parametros-table-card th {
  background: #fbfdff;
  color: #526980;
  font-size: .65rem;
  font-weight: 850;
}

.parametros-table-card td:first-child {
  align-items: center;
  display: flex;
  gap: .5rem;
}

.parametros-table-card td strong {
  font-size: .74rem;
  font-weight: 850;
}

.parametros-mini-icon {
  flex: 0 0 1.65rem;
  height: 1.65rem;
  width: 1.65rem;
}

.parametros-table-card td:last-child {
  align-items: center;
  display: flex;
  gap: .45rem;
}

.parametros-table-card td button {
  padding: 0 !important;
  width: 2rem;
}

.parametros-table-card footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: .75rem .9rem;
}

.parametros-table-card footer span,
.parametros-table-card footer nav {
  color: #64748b;
  font-size: .72rem;
}

.parametros-table-card footer nav {
  align-items: center;
  display: inline-flex;
  gap: .55rem;
}

.parametros-table-card footer strong {
  align-items: center;
  background: #0b74de;
  border-radius: .42rem;
  color: #fff;
  display: inline-flex;
  height: 1.8rem;
  justify-content: center;
  width: 1.8rem;
}

@media (max-width: 1180px) {
  .parametros-kpis,
  .parametros-overview,
  .parametros-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .parametros-modern-head,
  .parametros-modern-head nav,
  .parametros-table-card > header {
    align-items: stretch;
    flex-direction: column;
  }

  .parametros-table-card {
    overflow-x: auto;
  }

  .parametros-table-card table {
    min-width: 860px;
  }
}

/* Tipos de Leyenda */
.leyendas-modern-window {
  color: #10243f;
  display: grid;
  gap: .9rem;
  margin: 0 auto;
  max-width: 1540px;
  padding: 1rem 1.35rem 1.75rem;
  width: 100%;
}

.leyendas-modern-window * {
  box-sizing: border-box;
}

.leyendas-modern-head,
.parametros-title-head {
  min-height: 3.35rem;
}

.leyendas-title-icon,
.parametros-title-icon {
  border-color: #dce7f2 !important;
  border-radius: .85rem !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .045) !important;
  color: #49647f !important;
  height: 3.35rem;
  width: 3.35rem;
}

.leyendas-title-icon svg,
.parametros-title-icon svg {
  height: 1.75rem;
  stroke-width: 1.45;
  width: 1.75rem;
}

.leyendas-modern-head h1,
.parametros-title-head h1 {
  color: #0f1f39 !important;
  font-size: 1.35rem !important;
  font-weight: 650 !important;
  line-height: 1.12 !important;
  margin: 0 .0rem .18rem !important;
}

.leyendas-modern-head p,
.parametros-title-head p {
  color: #536782;
  font-size: .88rem;
  margin: 0;
}

.leyendas-mode-pill,
.legajos-hero-badge {
  align-items: center;
  background: #dff8e8;
  border: 1px solid #b8efcd;
  border-radius: 999px;
  color: #08783d;
  display: inline-flex;
  font-size: .68rem;
  font-weight: 750;
  justify-content: center;
  line-height: 1;
  margin-top: .15rem;
  padding: .24rem .55rem;
  width: fit-content;
}

.leyendas-summary-grid > article,
.leyendas-usage-grid > article {
  align-items: center;
  background: rgba(255, 255, 255, .96);
  border: 1px solid #dfe8f3;
  border-radius: .9rem;
  display: flex;
  gap: .72rem;
  min-height: 5rem;
  padding: .72rem .82rem;
}

.leyendas-actionbar svg,
.leyendas-detail-medallion svg {
  fill: none;
  height: 1.18rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.85;
  width: 1.18rem;
}

.leyendas-summary-grid span,
.leyendas-usage-grid span {
  color: #4f6683;
  display: block;
  font-size: .74rem;
  font-weight: 650;
}

.leyendas-summary-grid strong,
.leyendas-usage-grid strong {
  color: #0e2746;
  display: block;
  font-size: 1.32rem;
  font-weight: 650;
  line-height: 1.05;
  margin-top: .16rem;
}

.leyendas-summary-grid small,
.leyendas-usage-grid small {
  color: #607690;
  display: block;
  font-size: .72rem;
  line-height: 1.2;
  margin-top: .18rem;
}

.leyendas-actionbar {
  align-items: center;
  background: rgba(255, 255, 255, .96);
  border: 1px solid #dfe8f3;
  border-radius: 1rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
  display: flex;
  gap: .58rem;
  padding: .68rem .82rem;
}

.leyendas-actionbar-spacer {
  flex: 1 1 auto;
}

.leyendas-actionbar .legajos-btn[disabled] {
  cursor: default;
  opacity: .65;
}

.leyendas-actionbar .legajos-btn.help {
  color: #005fcb;
  font-weight: 750;
}

.leyendas-summary-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.leyendas-summary-grid > article,
.leyendas-usage-grid > article {
  min-height: 4.45rem;
}

.leyendas-workspace {
  display: grid;
  gap: .9rem;
  grid-template-columns: minmax(500px, 1.08fr) minmax(360px, .92fr);
}

.leyendas-list-card,
.leyendas-detail-card,
.leyendas-linked-card {
  background: rgba(255, 255, 255, .97);
  border: 1px solid #dfe8f3;
  border-radius: 1rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
  overflow: hidden;
}

.leyendas-list-card {
  min-width: 0;
}

.leyendas-card-head {
  align-items: center;
  border-bottom: 1px solid #e5edf6;
  display: flex;
  gap: .7rem;
  justify-content: space-between;
  min-height: 3.15rem;
  padding: .82rem .95rem;
}

.leyendas-card-head strong {
  color: #10243f;
  display: block;
  font-size: .94rem;
  font-weight: 650;
}

.leyendas-card-head span {
  color: #5c708a;
  display: block;
  font-size: .76rem;
  margin-top: .16rem;
}

.leyendas-table-wrap {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.leyendas-filterbar {
  grid-template-columns: minmax(260px, 1fr) minmax(150px, .34fr) auto;
}

.leyendas-modern-table {
  min-width: 760px;
}

.leyendas-modern-table td:nth-child(1),
.leyendas-modern-table th:nth-child(1) {
  width: 10%;
}

.leyendas-modern-table td:nth-child(2),
.leyendas-modern-table th:nth-child(2) {
  width: 34%;
}

.leyendas-modern-table td:nth-child(3),
.leyendas-modern-table th:nth-child(3) {
  width: 14%;
}

.leyendas-modern-table td:nth-child(4),
.leyendas-modern-table th:nth-child(4),
.leyendas-modern-table td:nth-child(5),
.leyendas-modern-table th:nth-child(5) {
  width: 16%;
}

.leyendas-modern-table td:nth-child(6),
.leyendas-modern-table th:nth-child(6) {
  text-align: center;
  width: 10%;
}

.leyendas-modern-table .legajos-row-actions {
  justify-content: center;
}

.leyendas-table-wrap .dataTables_wrapper {
  padding: .76rem !important;
}

.leyendas-code {
  color: #0b63c9;
  font-weight: 750;
}

.leyendas-datatable tbody tr.is-selected {
  background: #eaf4ff !important;
  box-shadow: inset 3px 0 0 #0b74de;
}

.leyendas-detail-main {
  display: grid;
  gap: 1rem;
  grid-template-columns: 120px 1fr;
  padding: 1rem;
}

.leyendas-detail-medallion {
  align-items: center;
  border-right: 1px solid #e5edf6;
  display: grid;
  justify-items: center;
  padding-right: 1rem;
  text-align: center;
}

.leyendas-detail-medallion > span {
  align-items: center;
  background: #eaf4ff;
  border-radius: 50%;
  color: #0b74de;
  display: inline-flex;
  height: 4.2rem;
  justify-content: center;
  margin-bottom: .48rem;
  width: 4.2rem;
}

.leyendas-detail-medallion svg {
  height: 1.8rem;
  width: 1.8rem;
}

.leyendas-detail-medallion small {
  color: #607690;
  font-size: .72rem;
}

.leyendas-detail-medallion strong {
  color: #0e2746;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
}

.leyendas-detail-medallion em {
  background: #dff8e8;
  border: 1px solid #b8efcd;
  border-radius: 999px;
  color: #08783d;
  font-size: .68rem;
  font-style: normal;
  font-weight: 750;
  margin-top: .38rem;
  padding: .24rem .55rem;
}

.leyendas-detail-medallion em.neutral {
  background: #eef3f8;
  border-color: #dbe5f1;
  color: #526980;
}

.leyendas-detail-info label {
  color: #607690;
  display: block;
  font-size: .72rem;
  font-weight: 650;
}

.leyendas-detail-info > strong {
  border-bottom: 1px solid #e5edf6;
  color: #10243f;
  display: block;
  font-size: .98rem;
  font-weight: 650;
  margin-top: .2rem;
  padding-bottom: .7rem;
}

.leyendas-detail-info dl {
  display: grid;
  gap: .7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: .82rem 0 0;
}

.leyendas-detail-info dt {
  color: #607690;
  font-size: .7rem;
  font-weight: 750;
  margin: 0;
}

.leyendas-detail-info dd {
  color: #10243f;
  font-size: .86rem;
  font-weight: 650;
  margin: .12rem 0 0;
}

.leyendas-usage-grid {
  border-top: 1px solid #e5edf6;
  display: grid;
  gap: .7rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 1rem;
}

.leyendas-empty-detail {
  border: 1px dashed #bfdbfe;
  border-radius: .9rem;
  margin: 1rem;
  min-height: 10rem;
  padding: 1.2rem;
}

.leyendas-empty-detail strong {
  color: #10243f;
  display: block;
  font-size: 1rem;
  font-weight: 650;
}

.leyendas-empty-detail p {
  color: #526980;
  font-size: .86rem;
  line-height: 1.45;
  margin: .38rem 0 0;
}

@media (max-width: 1280px) {
  .leyendas-workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .leyendas-modern-window {
    padding: .7rem;
  }

  .leyendas-summary-grid,
  .leyendas-usage-grid {
    grid-template-columns: 1fr;
  }

  .leyendas-actionbar {
    flex-wrap: wrap;
  }

  .leyendas-actionbar-spacer {
    display: none;
  }

  .leyendas-filterbar {
    grid-template-columns: 1fr;
  }

  .leyendas-detail-main {
    grid-template-columns: 1fr;
  }

  .leyendas-detail-medallion {
    border-right: 0;
    border-bottom: 1px solid #e5edf6;
    padding: 0 0 1rem;
  }

  .leyendas-detail-info dl {
    grid-template-columns: 1fr;
  }
}

/* Regla común para heroes ilustrados de Sueldos.
   Mantiene imagen y texto cerca, sin columnas vacías entre ambos. */
.legajos-hero-card,
.familiares-hero-card,
.leyendas-hero-card {
  gap: .58rem !important;
  padding-left: .72rem !important;
}

.legajos-hero-card,
.familiares-hero-card,
.leyendas-hero-card {
  grid-template-columns: var(--sueldos-hero-image-col, 190px) minmax(260px, 1fr) repeat(3, minmax(150px, .62fr)) !important;
}

.legajos-hero-illustration,
.familiares-hero-illustration,
.leyendas-hero-illustration {
  justify-content: flex-start !important;
}

.legajos-hero-illustration img,
.familiares-hero-illustration img,
.leyendas-hero-illustration img {
  max-width: var(--sueldos-hero-image-max, 190px) !important;
}

.legajos-hero-illustration img {
  max-width: 178px !important;
}

/* Selector de indicadores del header de modulo (partials/_module_hero.html).
   El wrapper de tarjetas KPI ocupa como UNA celda las 3 columnas de KPI que
   reserva la regla comun, y adentro reparte 1 a 5 tarjetas con flex-wrap.
   Asi una 4ta/5ta tarjeta nunca "cae" debajo de la imagen o el titulo. */
.legajos-hero-card {
  position: relative;
}

.legajos-hero-kpi-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  grid-column: 3 / -1;
}

.legajos-hero-kpi-list .legajos-kpi-card {
  flex: 1 1 9.5rem;
  min-width: 9.5rem;
}

/* Conceptos: la ilustracion es cuadrada (1:1), no ancha como las demas, y dejaba
   un hueco vacio al lado del titulo. Se agranda un poco la caja para que ocupe
   mas espacio horizontal sin perder proporcion. */
.conceptos-hero-card .legajos-hero-illustration {
  justify-content: center !important;
}

.conceptos-hero-card .legajos-hero-illustration img {
  height: 9.4rem !important;
  max-height: 9.4rem !important;
  width: 100% !important;
  max-width: 210px !important;
  object-fit: fill !important;
}

/* Ficha de concepto: la piel heredaba el estilo generico "grid-input" de las
   ventanas Fox viejas (fondo plano, tabs cuadrados). Se moderniza al lenguaje
   Tabler que ya usan Legajos/Home, sin tocar .grid-input global (lo reusan
   otras pantallas Fox) ni la logica de guardado inline. */
.conceptos-editor {
  background: var(--tblr-bg-surface, #fff) !important;
  border: 1px solid var(--tblr-border-color) !important;
  border-radius: var(--tblr-card-border-radius, .6rem) !important;
  box-shadow: var(--tblr-box-shadow-card, 0 .5rem 1.5rem rgba(15, 35, 70, .06)) !important;
}

.conceptos-ficha-head {
  background: linear-gradient(180deg, rgba(var(--tblr-primary-rgb), .06), transparent) !important;
  border-bottom: 1px solid var(--tblr-border-color) !important;
  padding: 1rem 1.25rem !important;
}

.conceptos-ficha-head > div > span {
  color: var(--tblr-primary) !important;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.conceptos-ficha-head strong {
  color: var(--tblr-body-color) !important;
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  margin: .18rem 0 .2rem;
}

.conceptos-ficha-head small {
  color: var(--tblr-muted) !important;
  font-size: .78rem;
}

.conceptos-ficha-head .client-tool {
  border-radius: 2rem !important;
}

.conceptos-ficha-head-actions {
  align-items: center;
  display: flex !important;
  flex-wrap: wrap;
  gap: .5rem !important;
}

.conceptos-ficha-head-actions form {
  display: contents;
}

.conceptos-ficha-head-actions .client-tool svg {
  height: 1rem;
  margin-right: .25rem;
  width: 1rem;
}

/* El botón Borrar de la ficha ya no va en rojo: mismo estilo neutro que
   Volver/Listado/Salir, solo con el icono de tacho como diferenciador. */
.aramis-page-content .sueldos-window:not(.legajo-fox-window) .conceptos-ficha-head-actions button[type="submit"].client-tool.danger-button {
  background: #f8fafc !important;
  border: 1px solid var(--tblr-border-color) !important;
  box-shadow: none !important;
  color: var(--tblr-body-color) !important;
}

.conceptos-ficha-head-actions .danger-button svg {
  stroke: #b5473f;
}

/* "Acumuladores y clasificacion" suele quedar mucho mas abajo que "Codigo/
   Descripcion" de arriba, dejando un hueco vacio a la derecha del todo.
   Se lo sube para que arranque a la misma altura que Codigo y ocupe ese
   espacio, en vez de esperar a la altura de "Reglas de calculo". */
#concepto-datos[hidden] {
  display: none !important;
}

#concepto-datos {
  column-gap: 1.5rem;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

#concepto-datos > .conceptos-section-title:first-child {
  grid-column: 1 / -1;
  grid-row: 1;
}

#concepto-datos > .conceptos-top-grid {
  column-gap: .75rem !important;
  grid-column: 1;
  grid-row: 2;
  grid-template-columns: 96px minmax(120px, 1fr) 88px !important;
}

#concepto-datos > .conceptos-top-grid .formula-line {
  grid-column: 2 / 4 !important;
}

#concepto-datos > .conceptos-top-grid label:not(.wide):not(.formula-line):not(.concept-check) .text-input {
  min-width: 0 !important;
  width: 100% !important;
}

#concepto-datos > .conceptos-main-grid {
  display: contents;
}

#concepto-datos > .conceptos-main-grid > .conceptos-column:not(.right) {
  grid-column: 1;
  grid-row: 3;
}

#concepto-datos > .conceptos-main-grid > .conceptos-column.right {
  grid-column: 2;
  grid-row: 2 / span 2;
}

#concepto-datos > .conceptos-section-title--spaced,
#concepto-datos > .conceptos-contrib-grid {
  grid-column: 1 / -1;
}

/* Cta Cble / Cta Cble Pasivo: lookup de plan de cuentas (mismo mecanismo que
   usa Legajos), reusa .legajo-labor-lookup pero esa clase venia 100%
   scopeada a .legajo-modern-profile, asi que hace falta layout propio aca. */
#concepto-datos .legajo-labor-lookup {
  align-items: center;
  display: grid;
  gap: .4rem;
  grid-template-columns: 6.5rem 4.5rem minmax(7rem, 1fr) 1.9rem;
  margin-bottom: .5rem;
}

#concepto-datos .legajo-labor-lookup > span {
  color: var(--tblr-muted);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

#concepto-datos .legajo-labor-lookup .legajo-lookup-trigger {
  align-items: center;
  background: rgba(var(--tblr-primary-rgb), .08);
  border: 1px solid rgba(var(--tblr-primary-rgb), .25);
  border-radius: .4rem;
  color: var(--tblr-primary);
  display: inline-flex;
  height: 1.9rem;
  justify-content: center;
  width: 1.9rem;
}

#concepto-datos .legajo-labor-lookup .legajo-lookup-trigger svg {
  fill: none;
  height: .85rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: .85rem;
}

.conceptos-tabs {
  background: transparent !important;
  border-bottom: 1px solid var(--tblr-border-color) !important;
  gap: .4rem !important;
  padding: .6rem 1.25rem 0 !important;
}

.conceptos-tabs button {
  border-radius: .5rem .5rem 0 0 !important;
  color: var(--tblr-muted) !important;
  font-weight: 700;
  padding: .55rem 1.1rem !important;
  transition: background .15s ease, color .15s ease;
}

.conceptos-tabs button.is-active {
  background: rgba(var(--tblr-primary-rgb), .09) !important;
  border-color: transparent !important;
  color: var(--tblr-primary) !important;
}

.conceptos-nav-toolbar {
  background: rgba(var(--tblr-primary-rgb), .035) !important;
  border-bottom: 1px solid var(--tblr-border-color) !important;
  padding: .6rem 1.25rem !important;
}

.conceptos-nav-toolbar .client-tool {
  align-items: center;
  border-radius: 999px !important;
  display: inline-flex;
  height: 1.9rem;
  justify-content: center;
  padding: 0 !important;
  width: 1.9rem;
}

.conceptos-nav-toolbar strong {
  color: var(--tblr-body-color) !important;
  font-weight: 700;
}

.conceptos-general-card,
.conceptos-formula-card {
  padding: 1.3rem !important;
}

.formula-builder-head {
  background: rgba(var(--tblr-primary-rgb), .04) !important;
  border: 1px solid var(--tblr-border-color) !important;
  border-radius: .6rem !important;
  padding: 1rem 1.1rem !important;
}

.formula-builder-head strong {
  color: var(--tblr-body-color) !important;
  font-size: .92rem !important;
  font-weight: 800 !important;
}

.formula-builder-head span {
  color: var(--tblr-muted) !important;
  font-size: .78rem !important;
  font-weight: 500 !important;
}

.formula-builder-actions .client-tool {
  border-radius: .5rem !important;
}

.formula-main-field textarea.grid-input {
  background: var(--tblr-bg-surface, #fff) !important;
  border: 1px solid var(--tblr-border-color) !important;
  border-radius: .5rem !important;
}

.formula-main-field textarea.grid-input:focus {
  border-color: rgba(var(--tblr-primary-rgb), .55) !important;
  box-shadow: 0 0 0 .2rem rgba(var(--tblr-primary-rgb), .12) !important;
  outline: none;
}

.formula-constant p {
  color: var(--tblr-primary) !important;
}

.conceptos-top-grid,
.conceptos-main-grid {
  gap: 1rem 1.1rem !important;
}

.conceptos-top-grid label > span,
.conceptos-main-grid label > span,
.concept-row > span,
.case-row > span,
.conceptos-contrib-grid span,
.conceptos-formula-meta span {
  color: var(--tblr-muted) !important;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.conceptos-section-title {
  background: #e4f1fb;
  border-bottom: 1px solid #c9e3f7;
  border-radius: .5rem .5rem 0 0;
  color: #244f86;
  display: block;
  font-size: .84rem;
  font-weight: 800;
  margin: .6rem 0 .7rem;
  padding: .55rem .8rem;
}

#concepto-datos > .conceptos-section-title:first-child {
  margin-top: 0;
}

.conceptos-section-title--spaced {
  text-align: center;
}

.conceptos-section-title--spaced {
  margin-top: .35rem;
}

.concept-check {
  background: rgba(var(--tblr-primary-rgb), .05) !important;
  border: 1px solid var(--tblr-border-color) !important;
  border-radius: .5rem !important;
}

.conceptos-column.right {
  border-left: 2px solid #cfe3f5 !important;
}

.conceptos-cases,
.conceptos-contrib-grid {
  background: rgba(var(--tblr-primary-rgb), .04) !important;
  border: 1px solid var(--tblr-border-color) !important;
  border-radius: .6rem !important;
}

.concepts-help {
  color: var(--tblr-muted) !important;
}

.case-row {
  border-radius: .4rem;
  padding: .15rem .3rem;
  transition: background .12s ease;
}

.case-row:hover {
  background: rgba(var(--tblr-primary-rgb), .08);
}

.formula-preview {
  background: rgba(var(--tblr-primary-rgb), .04) !important;
  border: 1px solid var(--tblr-border-color) !important;
  border-radius: .5rem !important;
  color: var(--tblr-body-color) !important;
}

.formula-picker,
.formula-constant {
  background: rgba(var(--tblr-primary-rgb), .04) !important;
  border: 1px solid var(--tblr-border-color) !important;
  border-radius: .6rem !important;
}

.formula-picker header {
  color: var(--tblr-primary) !important;
}

.formula-picker-list {
  background: var(--tblr-bg-surface, #fff) !important;
  border: 1px solid var(--tblr-border-color) !important;
}

.formula-picker-list button {
  background: transparent !important;
  border-bottom: 1px solid var(--tblr-border-color) !important;
  color: var(--tblr-body-color) !important;
}

.formula-picker-list button:hover,
.formula-picker-list button.is-selected {
  background: rgba(var(--tblr-primary-rgb), .1) !important;
}

/* Legajos: popover del boton "Nuevo legajo" para elegir numero antes de crear */
.legajo-nuevo-wrap {
  position: relative;
}

.legajos-view-tabs-spacer {
  margin-left: auto;
}

.legajos-view-tabs .legajo-nuevo-panel {
  left: auto;
  right: 0;
}

.legajos-view-tabs [data-legajo-nuevo-toggle] {
  background: #066fdc !important;
  border-color: #066fdc !important;
  box-shadow: none !important;
  gap: .35rem !important;
  min-height: 2.1rem !important;
  min-width: auto !important;
}

.legajos-view-tabs [data-legajo-nuevo-toggle],
.legajos-view-tabs [data-legajo-nuevo-toggle] span {
  color: #fff !important;
}

.legajos-view-tabs [data-legajo-nuevo-toggle]:hover {
  background: #005fc3 !important;
  border-color: #005fc3 !important;
}

.legajos-view-tabs [data-legajo-nuevo-toggle] svg {
  height: .95rem;
  width: .95rem;
}

.legajos-view-tabs [data-legajo-nuevo-toggle] span {
  display: inline !important;
  min-height: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
}

.legajos-view-tabs .legajo-nuevo-confirm {
  background: var(--tblr-primary) !important;
  border: 0 !important;
  border-radius: .4rem !important;
  color: #fff !important;
  font-size: .85rem !important;
  font-weight: 700 !important;
  min-height: auto !important;
  min-width: 0 !important;
  padding: .45rem .7rem !important;
}

.legajos-view-tabs .legajo-nuevo-confirm:hover {
  filter: brightness(1.05);
}

.legajo-nuevo-panel {
  background: var(--tblr-bg-surface, #fff);
  border: 1px solid var(--tblr-border-color);
  border-radius: .6rem;
  box-shadow: var(--tblr-box-shadow-card, 0 .5rem 1.5rem rgba(15, 35, 70, .12));
  padding: .85rem;
  position: absolute;
  top: calc(100% + .4rem);
  left: 0;
  width: 15rem;
  z-index: 40;
}

.legajo-nuevo-form {
  display: grid;
  gap: .5rem;
}

.legajo-nuevo-form label {
  display: grid;
  gap: .25rem;
}

.legajo-nuevo-form label > span {
  color: var(--tblr-muted);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.legajo-nuevo-form input {
  border: 1px solid var(--tblr-border-color);
  border-radius: .4rem;
  font-size: .95rem;
  padding: .4rem .55rem;
}

.legajo-nuevo-form small {
  color: var(--tblr-muted);
  font-size: .72rem;
}

.legajo-nuevo-confirm {
  background: var(--tblr-primary);
  border: 0;
  border-radius: .4rem;
  color: #fff;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 700;
  padding: .45rem .7rem;
}

.legajo-nuevo-confirm:hover {
  filter: brightness(1.05);
}

/* Libro Sueldos Digital (Interfaces AFIP) */
.libro-digital-card {
  background: var(--tblr-bg-surface, #fff);
  border: 1px solid var(--tblr-border-color);
  border-radius: var(--tblr-card-border-radius, .6rem);
  box-shadow: var(--tblr-box-shadow-card, 0 .5rem 1.5rem rgba(15, 35, 70, .06));
  margin-top: 1rem;
  padding: 1.1rem 1.25rem;
}

.libro-digital-alert {
  background: rgba(var(--tblr-warning-rgb, 245, 159, 0), .12);
  border: 1px solid rgba(var(--tblr-warning-rgb, 245, 159, 0), .3);
  border-radius: .5rem;
  color: var(--tblr-body-color);
  font-size: .85rem;
  margin-top: 1rem;
  padding: .7rem 1rem;
}

.libro-digital-alert a {
  color: var(--tblr-primary);
  font-weight: 700;
}

.libro-digital-filtros {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem 1rem;
}

.libro-digital-filtros label {
  display: grid;
  gap: .3rem;
  min-width: 9rem;
}

.libro-digital-filtros label > span {
  color: var(--tblr-muted);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.libro-digital-filtros button {
  align-self: end;
}

.libro-digital-preview-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
}

.libro-digital-preview-head strong {
  color: var(--tblr-body-color);
  display: block;
  font-size: 1rem;
}

.libro-digital-preview-head span {
  color: var(--tblr-muted);
  font-size: .8rem;
}

.libro-digital-preview-lines {
  background: rgba(var(--tblr-primary-rgb), .04);
  border: 1px solid var(--tblr-border-color);
  border-radius: .5rem;
  color: var(--tblr-body-color);
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  line-height: 1.5;
  margin: 0;
  max-height: 320px;
  overflow: auto;
  padding: .75rem 1rem;
  white-space: pre;
}

.libro-digital-empty {
  color: var(--tblr-muted);
  font-size: .85rem;
  margin: 0;
}

.libro-digital-note strong {
  color: var(--tblr-body-color);
  display: block;
  font-size: .85rem;
  margin-bottom: .25rem;
}

.libro-digital-note p {
  color: var(--tblr-muted);
  font-size: .8rem;
  margin: 0;
}

/* Home (tablero de Sueldos): tarjetas KPI mas finas que el resto de los modulos.
   Ya se veian asi antes de compartir el header con el partial de Legajos; esta
   regla las devuelve a esa proporcion sin tocar el resto de las pantallas. */
.sueldos-home-hero-card {
  grid-template-columns: 168px minmax(190px, .8fr) minmax(0, 2fr) !important;
  margin-bottom: 1.1rem !important;
}

.sueldos-home-hero-card .legajos-kpi-card {
  border-radius: .55rem !important;
  box-shadow: 0 2px 8px rgba(31, 45, 61, .052) !important;
  min-height: 4.95rem !important;
  padding: .85rem .95rem !important;
}

/* Grilla fija de 4 columnas: con hasta 8 tarjetas siempre quedan 2 filas
   parejas de 4, nunca 5+3. El area gana ancho (ver grid-template-columns
   de arriba) para que los textos no se corten tanto. */
.sueldos-home-hero-card .legajos-hero-kpi-list {
  display: grid !important;
  gap: .5rem .6rem;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.sueldos-home-hero-card .legajos-hero-kpi-list .legajos-kpi-card {
  flex: unset;
  min-width: 0;
}

@media (max-width: 1100px) {
  .sueldos-home-hero-card .legajos-hero-kpi-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

.sueldos-home-hero-card .legajos-kpi-icon {
  border-radius: .72rem !important;
  height: 2.75rem !important;
  width: 2.75rem !important;
}

.sueldos-home-hero-card .legajos-kpi-icon svg {
  height: 1.32rem !important;
  width: 1.32rem !important;
}

.sueldos-home-hero-card .legajos-kpi-card span:not(.legajos-kpi-icon) {
  color: #65748a !important;
  font-size: .68rem !important;
  font-weight: 400 !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
}

.sueldos-home-hero-card .legajos-kpi-card strong {
  color: #122238 !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
}

.sueldos-home-hero-card .legajos-kpi-card small {
  color: #65748a !important;
  font-size: .68rem !important;
  font-weight: 400 !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
}

.sueldos-home-hero-card .legajos-kpi-card > div {
  min-width: 0 !important;
}

.legajos-kpi-card.is-entering {
  opacity: 0;
  transform: translateY(4px) scale(.97);
}

.legajos-kpi-card {
  transition: opacity .22s ease, transform .22s ease;
}

.legajos-hero-kpi-toggle {
  align-items: center;
  background: linear-gradient(135deg, #eaf2fd 0%, #f5f9ff 100%);
  border: 1px solid #cfe0f7;
  border-radius: 999px;
  color: #2f5fa8;
  cursor: pointer;
  display: flex;
  height: 2.05rem;
  justify-content: center;
  position: absolute;
  right: .65rem;
  top: .65rem;
  transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
  width: 2.05rem;
  z-index: 5;
}

.legajos-hero-kpi-toggle:hover {
  background: linear-gradient(135deg, #dbe9fc 0%, #eef4ff 100%);
  box-shadow: 0 6px 14px rgba(41, 92, 168, .18);
  transform: translateY(-1px);
}

.legajos-hero-kpi-toggle[aria-expanded="true"] {
  background: #0b74de;
  border-color: #0b74de;
  box-shadow: 0 6px 16px rgba(11, 116, 222, .3);
  color: #fff;
}

.legajos-hero-kpi-toggle svg {
  fill: none;
  height: 1.05rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 1.05rem;
}

.legajos-hero-kpi-panel {
  animation: aramisHeroKpiPanelIn .16s ease;
  background: #ffffff;
  border: 1px solid #dfe8f3;
  border-radius: .9rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .14);
  padding: .7rem;
  position: absolute;
  right: .65rem;
  top: 2.85rem;
  width: 15.5rem;
  z-index: 20;
}

@keyframes aramisHeroKpiPanelIn {
  from { opacity: 0; transform: translateY(-6px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.legajos-hero-kpi-panel-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: .5rem;
}

.legajos-hero-kpi-panel-head strong {
  color: #16213a;
  font-size: .82rem;
  font-weight: 800;
}

.legajos-hero-kpi-panel-head span {
  background: #eaf2fd;
  border-radius: 999px;
  color: #2f5fa8;
  font-size: .68rem;
  font-weight: 800;
  padding: .12rem .5rem;
}

.legajos-hero-kpi-panel-list {
  display: grid;
  gap: .28rem;
  max-height: 15.5rem;
  overflow-y: auto;
}

.legajos-hero-kpi-option {
  align-items: center;
  border-radius: .6rem;
  cursor: pointer;
  display: flex;
  gap: .5rem;
  padding: .32rem .4rem;
  transition: background .12s ease;
}

.legajos-hero-kpi-option:hover {
  background: #f4f8fd;
}

.legajos-hero-kpi-option input[type="checkbox"] {
  accent-color: #0b74de;
  flex: none;
  height: .95rem;
  margin: 0;
  width: .95rem;
}

.legajos-hero-kpi-option input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: .35;
}

.legajos-hero-kpi-option-icon {
  align-items: center;
  border-radius: .55rem;
  display: flex;
  flex: none;
  height: 1.7rem;
  justify-content: center;
  width: 1.7rem;
}

.legajos-hero-kpi-option-icon svg {
  fill: none;
  height: .95rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: .95rem;
}

.legajos-hero-kpi-option-icon.is-blue { background: #eaf4ff; color: #0b74de; }
.legajos-hero-kpi-option-icon.is-green { background: #e8f8ef; color: #16a05f; }
.legajos-hero-kpi-option-icon.is-orange { background: #fff0e7; color: #ff5b12; }
.legajos-hero-kpi-option-icon.is-purple { background: #f1e8ff; color: #7c3aed; }

.legajos-hero-kpi-option-label {
  color: #33415c;
  font-size: .8rem;
  font-weight: 650;
}

.legajos-hero-kpi-panel-hint {
  color: #8993a4;
  font-size: .68rem;
  margin: .5rem 0 0;
}

.legajos-kpi-chart-card {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: .1rem;
  justify-content: center;
  padding: .5rem .4rem;
}

.legajos-kpi-chart-label {
  color: #7c8798;
  font-size: .74rem;
  font-weight: 650;
}

.legajos-kpi-chart-mount {
  width: 100%;
}

.legajos-kpi-chart-mount .apexcharts-canvas {
  margin: 0 auto;
}

@media (max-width: 1080px) {
  .legajos-hero-kpi-toggle,
  .legajos-hero-kpi-panel {
    display: none;
  }
}

.leyendas-modern-window svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.leyendas-modern-table .legajos-row-actions a {
  color: #0b74de !important;
}

.leyendas-modern-table .legajos-row-actions svg {
  color: #0b74de !important;
  fill: none !important;
  stroke: currentColor !important;
}

@media (max-width: 1080px) {
  .legajos-hero-card,
  .familiares-hero-card,
  .leyendas-hero-card {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .legajos-hero-illustration,
  .familiares-hero-illustration,
  .leyendas-hero-illustration {
    grid-column: 1 / -1 !important;
    justify-content: center !important;
  }
}

@media (max-width: 680px) {
  .legajos-hero-card,
  .familiares-hero-card,
  .leyendas-hero-card {
    grid-template-columns: 1fr !important;
  }
}

/* Parámetros: hero ilustrado */
.parametros-modern-head.parametros-hero-card {
  align-items: center;
  background: rgba(255, 255, 255, .97);
  border: 1px solid #dfe8f3;
  border-radius: 1rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
  display: grid;
  column-gap: 1.1rem;
  row-gap: .62rem;
  grid-template-columns: 180px minmax(300px, .95fr) repeat(3, minmax(150px, .5fr));
  min-height: 9.5rem;
  padding: .72rem .9rem;
}

.parametros-hero-kpis {
  display: contents;
}

.parametros-hero-kpis article {
  align-items: center;
  background: rgba(255, 255, 255, .98);
  border: 1px solid #dfe8f3;
  border-radius: .78rem;
  display: grid;
  gap: .62rem;
  grid-template-columns: 2.45rem minmax(0, 1fr);
  min-height: 5.25rem;
  padding: .74rem .8rem;
}

.parametros-hero-kpis span {
  align-items: center;
  border-radius: .65rem;
  display: inline-flex;
  height: 2.45rem;
  justify-content: center;
  width: 2.45rem;
}

.parametros-hero-kpis span.is-green {
  background: #dcfce7;
  color: #16a34a;
}

.parametros-hero-kpis span.is-purple {
  background: #f1e4ff;
  color: #8b5cf6;
}

.parametros-hero-kpis span.is-orange {
  background: #fff1dc;
  color: #f59e0b;
}

.parametros-hero-kpis svg {
  height: 1.15rem;
  width: 1.15rem;
}

.parametros-hero-kpis small,
.parametros-hero-kpis em {
  color: #536782;
  display: block;
  font-size: .7rem;
  font-style: normal;
  font-weight: 700;
}

.parametros-hero-kpis strong {
  color: #10243f;
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.05;
}

.parametros-hero-illustration {
  align-items: center;
  display: flex;
  justify-content: flex-start;
  min-width: 0;
  overflow: hidden;
}

.parametros-hero-illustration img {
  display: block;
  height: 8.3rem;
  max-height: 8.3rem;
  max-width: 180px;
  object-fit: contain;
  object-position: left center;
  width: auto;
}

.parametros-hero-copy {
  display: grid;
  gap: .24rem;
  min-width: 0;
}

.parametros-modern-head .parametros-hero-copy strong {
  color: #0b74de;
  display: block;
  font-size: .72rem;
  font-weight: 800;
}

.parametros-modern-head .parametros-hero-copy h1 {
  color: #10243f !important;
  font-size: 1.45rem !important;
  font-weight: 650 !important;
  line-height: 1.1 !important;
  margin: 0 !important;
}

.parametros-hero-copy p {
  color: #48607d;
  font-size: .86rem;
  line-height: 1.45;
  margin: 0;
  max-width: 31rem;
}

@media (max-width: 1180px) {
  .parametros-modern-head.parametros-hero-card {
    grid-template-columns: 170px minmax(0, 1fr) repeat(2, minmax(145px, .5fr));
  }

  .parametros-hero-kpis article:last-child {
    grid-column: 3 / span 2;
  }
}

@media (max-width: 760px) {
  .parametros-modern-head.parametros-hero-card {
    grid-template-columns: 1fr;
  }

  .parametros-hero-illustration {
    justify-content: center;
  }

  .parametros-hero-kpis {
    display: grid;
    gap: .65rem;
    grid-template-columns: 1fr;
  }
}

/* Legajo detalle - Bancarios integrado */
.legajo-modern-profile #datos-bancarios .legajo-bank-grid {
  align-items: end !important;
  display: grid !important;
  gap: 18px 18px !important;
  grid-template-columns: minmax(420px, .95fr) minmax(360px, 1.05fr) !important;
}

.legajo-modern-profile #datos-bancarios .legajo-bank-grid .fox-row {
  align-items: end !important;
  min-width: 0 !important;
}

.legajo-modern-profile #datos-bancarios .legajo-bank-grid .fox-row > span {
  color: #536983 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  grid-column: 1 / -1 !important;
  line-height: 1.1 !important;
}

.legajo-modern-profile #datos-bancarios .legajo-bank-grid .legajo-lookup-cuenta {
  grid-column: auto !important;
  grid-template-columns: minmax(120px, 150px) 38px minmax(180px, 1fr) !important;
}

.legajo-modern-profile #datos-bancarios .legajo-bank-grid .fox-row.account:not(.legajo-lookup-cuenta) {
  grid-column: auto !important;
  grid-template-columns: minmax(0, 1fr) !important;
}

.legajo-modern-profile #datos-bancarios .legajo-bank-grid .cbu-right {
  grid-column: 1 / -1 !important;
  grid-template-columns: minmax(0, 1fr) !important;
}

.legajo-modern-profile #datos-bancarios .legajo-bank-grid input.fox-input {
  max-width: none !important;
  width: 100% !important;
}

.legajo-modern-profile #datos-bancarios .legajo-bank-grid .legajo-lookup-trigger {
  align-self: end !important;
}

@media (max-width: 1180px) {
  .legajo-modern-profile #datos-bancarios .legajo-bank-grid,
  .legajo-modern-profile #datos-bancarios .legajo-bank-grid .legajo-lookup-cuenta,
  .legajo-modern-profile #datos-bancarios .legajo-bank-grid .fox-row.account:not(.legajo-lookup-cuenta),
  .legajo-modern-profile #datos-bancarios .legajo-bank-grid .cbu-right {
    grid-template-columns: 1fr !important;
  }
}

/* Legajo detalle - secciones modernas y resumen inferior */
.legajo-modern-profile .legajo-modern-legacy-form,
.legajo-modern-profile .legajo-fox-footer {
  display: none !important;
}

.legajo-modern-profile .legajo-detail-sections {
  border: 1px solid #dbe7f4;
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  overflow: hidden;
}

.legajo-modern-profile .legajo-detail-section {
  background: #fff;
  border-bottom: 1px solid #e3ebf5;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.legajo-modern-profile .legajo-detail-section:nth-child(odd) {
  border-right: 2px solid #cfe3f5;
}

.legajo-modern-profile .legajo-detail-section:nth-last-child(-n+2) {
  border-bottom: 0;
}

.legajo-modern-profile .legajo-detail-section h3 {
  align-items: center;
  background: #e4f1fb;
  border-bottom: 1px solid #c9e3f7;
  display: flex;
  font-size: 15px;
  font-weight: 700;
  gap: 9px;
  line-height: 1.2;
  margin: -18px -18px 0;
  min-height: 48px;
  padding: 0 18px;
}

.legajo-modern-profile .legajo-detail-section h3 svg {
  fill: none;
  height: 20px;
  stroke: #3575c8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 20px;
}

.legajo-modern-profile .legajo-section-grid {
  display: grid;
  gap: 12px 14px;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
}

.legajo-modern-profile .legajo-section-grid .fox-row {
  align-items: end !important;
  min-width: 0 !important;
}

.legajo-modern-profile .legajo-section-grid .fox-row.wide,
.legajo-modern-profile .legajo-section-grid .local-row,
.legajo-modern-profile .legajo-section-grid .doc-row,
.legajo-modern-profile .legajo-section-grid .combo-row {
  grid-column: 1 / -1 !important;
}

.legajo-modern-profile .legajo-section-grid .fox-row > span {
  color: #5d6f89 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
}

.legajo-modern-profile .legajo-section-grid .fox-input {
  max-width: none !important;
  min-height: 38px !important;
  width: 100% !important;
}

.legajo-modern-profile .legajo-section-grid .local-row {
  grid-template-columns: minmax(0, 1fr) 44px minmax(84px, .35fr) !important;
}

.legajo-modern-profile .legajo-section-grid .local-row > span {
  grid-column: 1 / -1 !important;
}

.legajo-modern-profile .legajo-section-grid .doc-row {
  grid-template-columns: 72px minmax(140px, 1fr) !important;
}

.legajo-modern-profile .legajo-section-grid .doc-row.doc-row-with-cuil {
  grid-template-columns: 72px minmax(110px, 1fr) 40px minmax(140px, 1fr) !important;
}

.legajo-modern-profile .legajo-section-grid .doc-row-with-cuil > em {
  color: #60728b;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  align-self: center;
}

.legajo-modern-profile .legajo-section-grid .doc-row > span {
  grid-column: 1 / -1 !important;
}

.legajo-modern-profile .legajo-section-grid .combo-row {
  grid-template-columns: 92px minmax(0, 1fr) !important;
}

.legajo-modern-profile .legajo-section-grid .combo-row > span {
  grid-column: 1 / -1 !important;
}

/* Legajo detalle - datos personales compactos */
.legajo-modern-profile #datos-usuario .legajo-detail-section {
  align-content: start !important;
  grid-template-rows: auto auto !important;
}

.legajo-modern-profile #datos-usuario .legajo-detail-section h3 {
  margin-bottom: 0 !important;
}

.legajo-modern-profile #datos-usuario .legajo-section-grid {
  align-content: start !important;
}

.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(2) {
  gap: 12px !important;
}

.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(2) .legajo-section-grid {
  grid-template-columns: minmax(220px, 1fr) minmax(90px, .32fr) !important;
}

.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(2) .fox-row.wide,
.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(2) .local-row {
  grid-column: 1 / -1 !important;
}

.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(2) .mid {
  grid-column: 1 / 2 !important;
  max-width: 270px !important;
}

.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(4) {
  gap: 12px !important;
}

.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(4) .legajo-section-grid {
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr) !important;
}

.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(4) .combo-row {
  grid-column: 1 / 2 !important;
  grid-template-columns: 82px minmax(170px, 1fr) !important;
}

/* Legajo detalle - datos personales con distribucion tipo Fox */
.legajo-modern-profile #datos-usuario .legajo-detail-sections {
  align-items: start !important;
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr) !important;
}

.legajo-modern-profile #datos-usuario .legajo-detail-section {
  border-bottom: 1px solid #e3ebf5 !important;
  border-right: 0 !important;
  min-height: 0 !important;
  padding: 14px !important;
}

.legajo-modern-profile #datos-usuario .legajo-detail-section h3 {
  font-size: 15px !important;
  margin: -14px -14px 10px !important;
  min-height: 42px !important;
  padding: 0 14px !important;
}

.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(1) {
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
}

.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(2) {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(3) {
  grid-column: 1 / -1 !important;
  grid-row: 4 !important;
}

.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(4) {
  grid-column: 2 !important;
  grid-row: 2 !important;
}

.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(5) {
  grid-column: 1 !important;
  grid-row: 3 !important;
}

.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(6) {
  grid-column: 2 !important;
  grid-row: 3 !important;
}

.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(1),
.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(5) {
  border-right: 2px solid #cfe3f5 !important;
}

.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(5),
.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(6) {
  border-bottom: 0 !important;
}

.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(3) {
  border-top: 1px solid #e3ebf5 !important;
}

.legajo-modern-profile #datos-usuario .legajo-section-grid {
  gap: 9px 12px !important;
}

.legajo-modern-profile #datos-usuario .legajo-section-grid .fox-input,
.legajo-modern-profile #datos-usuario .legajo-labor-grid .fox-input,
.legajo-modern-profile #datos-usuario .legajo-labor-lookup .fox-input {
  min-height: 34px !important;
}

.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(2) .legajo-section-grid,
.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(4) .legajo-section-grid,
.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(5) .legajo-labor-grid,
.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(6) .legajo-labor-grid {
  grid-template-columns: 1fr !important;
}

.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(2) .doc-row.doc-row-with-cuil {
  grid-template-columns: 88px minmax(160px, 1fr) 40px minmax(160px, 1fr) !important;
}

.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(3) .legajo-section-grid {
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr) !important;
}

.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(3) .fox-row.wide {
  grid-column: auto !important;
}

.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(3) .local-row {
  grid-column: auto !important;
  grid-template-columns: minmax(0, 1fr) 44px minmax(80px, .35fr) !important;
}

.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(3) .mid {
  grid-column: auto !important;
  max-width: none !important;
}

/* Legajo detalle - datos laborales */
.legajo-modern-profile #datos-empresa .legajo-detail-section {
  align-content: start !important;
  grid-template-rows: auto auto !important;
}

.legajo-modern-profile #datos-empresa .legajo-section-grid {
  align-content: start !important;
}

.legajo-modern-profile #datos-empresa .legajo-section-grid .lookup-row,
.legajo-modern-profile #datos-empresa .legajo-section-grid .modalidad-row,
.legajo-modern-profile #datos-empresa .legajo-section-grid .legajo-labor-pair,
.legajo-modern-profile #datos-empresa .legajo-section-grid .legajo-labor-radio {
  grid-column: 1 / -1 !important;
}

.legajo-modern-profile #datos-empresa .legajo-section-grid .lookup-row {
  grid-template-columns: 82px 118px minmax(170px, 230px) !important;
  max-width: 450px !important;
}

.legajo-modern-profile #datos-empresa .legajo-section-grid .modalidad-row {
  grid-template-columns: 156px 84px minmax(230px, 1fr) 40px !important;
  max-width: 100% !important;
}

.legajo-modern-profile #datos-empresa .legajo-section-grid .lookup-row > span,
.legajo-modern-profile #datos-empresa .legajo-section-grid .modalidad-row > span {
  align-self: center !important;
}

.legajo-modern-profile #datos-empresa .legajo-section-grid .lookup-row .fox-input.code,
.legajo-modern-profile #datos-empresa .legajo-section-grid .modalidad-row .fox-input.code {
  background: #fff !important;
  color: #0b2346 !important;
  font-weight: 500 !important;
}

.legajo-modern-profile #datos-empresa .legajo-section-grid .lookup-row .lookup-desc,
.legajo-modern-profile #datos-empresa .legajo-section-grid .modalidad-row .lookup-desc {
  background: #fff !important;
}

.legajo-modern-profile #datos-empresa .legajo-section-grid .modalidad-row .legajo-lookup-trigger {
  background-color: #e8f2ff !important;
  border-color: #9bc8ff !important;
  color: #0675df !important;
  display: inline-flex !important;
  height: 38px !important;
  width: 38px !important;
}

.legajo-modern-profile #datos-empresa .legajo-section-grid .modalidad-row .legajo-lookup-trigger svg {
  fill: none !important;
  height: 18px !important;
  stroke: currentColor !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  stroke-width: 2 !important;
  width: 18px !important;
}

.legajo-modern-profile #datos-empresa .legajo-section-grid .lookup-row .legajo-lookup-trigger {
  display: none !important;
}

.legajo-modern-profile #datos-empresa .legajo-section-grid .legajo-labor-activity {
  grid-column: 1 / -1 !important;
  max-width: 220px !important;
}

.legajo-modern-profile #datos-empresa .legajo-section-grid .legajo-labor-pair {
  grid-template-columns: 92px 130px 116px 130px !important;
  max-width: 520px !important;
}

.legajo-modern-profile #datos-empresa .legajo-section-grid .legajo-labor-pair > span,
.legajo-modern-profile #datos-empresa .legajo-section-grid .legajo-labor-pair > em {
  color: #5d6f89 !important;
  font-size: 12px !important;
  font-style: normal !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  place-self: center start !important;
}

.legajo-modern-profile #datos-empresa .legajo-section-grid .legajo-labor-radio {
  align-items: center !important;
  background: #f4f8fd !important;
  border: 1px solid #dbe9f8 !important;
  border-radius: 10px !important;
  grid-template-columns: minmax(240px, 1fr) auto 18px auto 18px !important;
  min-height: 38px !important;
  padding: 10px 12px !important;
}

.legajo-modern-profile #datos-empresa .legajo-section-grid .legajo-labor-radio > span {
  align-self: center !important;
}

.legajo-modern-profile #datos-empresa .legajo-section-grid .legajo-labor-radio > em {
  color: #5d6f89 !important;
  font-size: 13px !important;
  font-style: normal !important;
}

.legajo-modern-profile #datos-empresa .legajo-section-grid .legajo-labor-radio input[type="radio"] {
  height: 16px !important;
  margin: 0 !important;
  width: 16px !important;
}

.legajo-modern-profile #datos-empresa .legajo-detail-section:nth-child(4) .legajo-section-grid {
  background: #f7fbff !important;
  border: 1px solid #dbe9f8 !important;
  border-radius: 12px !important;
  gap: 10px !important;
  padding: 12px !important;
}

.legajo-modern-profile #datos-empresa .legajo-labor-dashboard {
  align-items: start;
  border: 1px solid #dbe7f4;
  border-radius: 10px;
  display: grid;
  gap: 0;
  grid-template-columns: minmax(360px, .95fr) minmax(360px, 1fr);
  overflow: hidden;
}

.legajo-modern-profile #datos-empresa .legajo-labor-column {
  align-content: start;
  display: grid;
  gap: 0;
}

.legajo-modern-profile #datos-empresa .legajo-labor-column + .legajo-labor-column {
  border-left: 2px solid #cfe3f5;
}

.legajo-modern-profile #datos-empresa .legajo-labor-block {
  align-content: start;
  background: #fff;
  border-bottom: 1px solid #dbe7f4;
  display: grid;
  gap: 7px;
  padding: 8px 10px;
}

.legajo-modern-profile #datos-empresa .legajo-labor-block:last-child {
  border-bottom: 0;
}

.legajo-modern-profile #datos-empresa .legajo-labor-block h3 {
  align-items: center;
  background: #e4f1fb;
  border-bottom: 1px solid #c9e3f7;
  color: #244f86;
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 7px;
  line-height: 1.2;
  margin: -8px -10px 5px;
  min-height: 30px;
  padding: 0 10px;
}

.legajo-modern-profile #datos-empresa .legajo-labor-block h3 svg {
  fill: none;
  height: 15px;
  stroke: #1976d2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 15px;
}

.legajo-modern-profile :is(#datos-empresa, #datos-usuario) .legajo-labor-grid {
  display: grid;
  gap: 6px 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legajo-modern-profile :is(#datos-empresa, #datos-usuario) .legajo-labor-grid.two {
  grid-template-columns: repeat(2, minmax(150px, 1fr));
}

.legajo-modern-profile :is(#datos-empresa, #datos-usuario) .legajo-labor-grid.compact {
  grid-template-columns: repeat(2, minmax(140px, 1fr));
}

.legajo-modern-profile :is(#datos-empresa, #datos-usuario) .legajo-labor-grid.docs {
  grid-template-columns: 1fr;
}

.legajo-modern-profile :is(#datos-empresa, #datos-usuario) .legajo-labor-grid .full,
.legajo-modern-profile :is(#datos-empresa, #datos-usuario) .legajo-labor-lookup.full {
  grid-column: 1 / -1;
}

.legajo-modern-profile :is(#datos-empresa, #datos-usuario) .legajo-labor-grid label,
.legajo-modern-profile :is(#datos-empresa, #datos-usuario) .legajo-labor-lookup,
.legajo-modern-profile :is(#datos-empresa, #datos-usuario) .legajo-labor-radio,
.legajo-modern-profile :is(#datos-empresa, #datos-usuario) .legajo-labor-selectline,
.legajo-modern-profile :is(#datos-empresa, #datos-usuario) .legajo-labor-list label,
.legajo-modern-profile :is(#datos-empresa, #datos-usuario) .legajo-labor-best label {
  align-items: center;
  display: grid;
  gap: 5px;
  min-width: 0;
}

.legajo-modern-profile :is(#datos-empresa, #datos-usuario) .legajo-labor-grid label > span,
.legajo-modern-profile :is(#datos-empresa, #datos-usuario) .legajo-labor-lookup > span,
.legajo-modern-profile :is(#datos-empresa, #datos-usuario) .legajo-labor-radio > span,
.legajo-modern-profile :is(#datos-empresa, #datos-usuario) .legajo-labor-selectline > span,
.legajo-modern-profile :is(#datos-empresa, #datos-usuario) .legajo-labor-list label > span,
.legajo-modern-profile :is(#datos-empresa, #datos-usuario) .legajo-labor-best label > span {
  color: #5d6f89;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.15;
}

.legajo-modern-profile :is(#datos-empresa, #datos-usuario) .legajo-labor-grid .fox-input,
.legajo-modern-profile :is(#datos-empresa, #datos-usuario) .legajo-labor-lookup .fox-input,
.legajo-modern-profile :is(#datos-empresa, #datos-usuario) .legajo-labor-selectline .fox-input,
.legajo-modern-profile :is(#datos-empresa, #datos-usuario) .legajo-labor-list .fox-input,
.legajo-modern-profile :is(#datos-empresa, #datos-usuario) .legajo-labor-best .fox-input {
  background: #fff;
  font-size: 12px;
  min-height: 28px;
  padding: 4px 8px;
  width: 100%;
}

.legajo-modern-profile :is(#datos-empresa, #datos-usuario) .legajo-labor-lookup {
  grid-template-columns: 132px 58px minmax(120px, 1fr) 30px;
}

.legajo-modern-profile :is(#datos-empresa, #datos-usuario) .legajo-labor-lookup.is-compact {
  grid-template-columns: 92px 72px minmax(130px, 1fr) 30px;
}

.legajo-modern-profile :is(#datos-empresa, #datos-usuario) .legajo-labor-selectline {
  grid-column: 1 / -1;
  grid-template-columns: 132px minmax(0, 1fr);
}

.legajo-modern-profile :is(#datos-empresa, #datos-usuario) .legajo-labor-lookup > span {
  align-self: center;
}

.legajo-modern-profile :is(#datos-empresa, #datos-usuario) .legajo-labor-lookup .legajo-lookup-trigger {
  align-items: center;
  background: #e8f2ff;
  border: 1px solid #9bc8ff;
  border-radius: 6px;
  color: #0675df;
  display: inline-flex;
  font-size: 13px;
  height: 28px;
  justify-content: center;
  line-height: 1;
  width: 28px;
}

.legajo-modern-profile :is(#datos-empresa, #datos-usuario) .legajo-labor-lookup .legajo-lookup-trigger svg {
  fill: none;
  height: 14px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 14px;
}

.legajo-modern-profile :is(#datos-empresa, #datos-usuario) .legajo-labor-extra {
  background: #fbfdff;
}

.legajo-modern-profile :is(#datos-empresa, #datos-usuario) .legajo-labor-lookup em {
  color: #5d6f89;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  justify-self: end;
}

.legajo-modern-profile #datos-empresa .legajo-labor-radio {
  background: #f7fbff;
  border: 1px solid #dbe9f8;
  border-radius: 7px;
  grid-template-columns: minmax(190px, 1fr) auto auto;
  padding: 6px 8px;
}

.legajo-modern-profile #datos-empresa .legajo-labor-radio label {
  align-items: center;
  color: #244f86;
  display: inline-flex;
  font-size: 11px;
  font-weight: 600;
  gap: 5px;
  justify-content: flex-end;
}

.legajo-modern-profile #datos-empresa .legajo-labor-list {
  display: grid;
  gap: 0;
}

.legajo-modern-profile #datos-empresa .legajo-labor-list label {
  border-bottom: 1px solid #e6edf6;
  grid-template-columns: minmax(160px, 1fr) minmax(120px, .42fr);
  min-height: 25px;
}

.legajo-modern-profile #datos-empresa .legajo-labor-list label:last-child {
  border-bottom: 0;
}

.legajo-modern-profile #datos-empresa .legajo-labor-list .fox-input {
  border: 0 !important;
  box-shadow: none !important;
  min-height: 24px !important;
  padding-right: 4px !important;
  text-align: right;
}

.legajo-modern-profile #datos-empresa .fox-input[readonly] {
  background: #f1f5fa !important;
  border-color: #d8e4f0 !important;
  color: #6c7f95 !important;
  cursor: default !important;
  -webkit-text-fill-color: #6c7f95;
}

.legajo-modern-profile #datos-empresa .legajo-labor-list .fox-input[readonly] {
  border-radius: 5px !important;
  padding-left: 6px !important;
  padding-right: 6px !important;
}

.legajo-modern-profile #datos-empresa .legajo-labor-best {
  align-content: start;
  align-items: start;
  background: #f7fbff;
  border: 1px solid #dbe9f8;
  border-radius: 7px;
  display: grid;
  gap: 6px;
  grid-template-columns: .7fr 1.25fr .85fr;
  height: fit-content;
  padding: 5px 8px;
}

.legajo-modern-profile #datos-empresa .legajo-labor-best label {
  gap: 2px;
}

.legajo-modern-profile #datos-empresa .legajo-labor-best .fox-input {
  min-height: 26px;
  padding: 3px 8px;
}

.legajo-modern-profile #datos-empresa .legajo-labor-best .fox-input[readonly] {
  background: #eef4fb;
  color: #5d7188;
}

@media (max-width: 1180px) {
  .legajo-modern-profile #datos-empresa .legajo-labor-dashboard {
    grid-template-columns: 1fr;
  }

  .legajo-modern-profile #datos-empresa .legajo-labor-column + .legajo-labor-column {
    border-left: 0;
    border-top: 1px solid #dbe7f4;
  }
}

@media (max-width: 680px) {
  .legajo-modern-profile :is(#datos-empresa, #datos-usuario) .legajo-labor-grid,
  .legajo-modern-profile :is(#datos-empresa, #datos-usuario) .legajo-labor-grid.two,
  .legajo-modern-profile :is(#datos-empresa, #datos-usuario) .legajo-labor-grid.compact,
  .legajo-modern-profile :is(#datos-empresa, #datos-usuario) .legajo-labor-lookup,
  .legajo-modern-profile :is(#datos-empresa, #datos-usuario) .legajo-labor-selectline,
  .legajo-modern-profile :is(#datos-empresa, #datos-usuario) .legajo-labor-grid.docs .legajo-labor-lookup:first-child,
  .legajo-modern-profile :is(#datos-empresa, #datos-usuario) .legajo-labor-radio,
  .legajo-modern-profile :is(#datos-empresa, #datos-usuario) .legajo-labor-list label,
  .legajo-modern-profile :is(#datos-empresa, #datos-usuario) .legajo-labor-best {
    grid-template-columns: 1fr !important;
  }

  .legajo-modern-profile :is(#datos-empresa, #datos-usuario) .legajo-labor-lookup .legajo-lookup-trigger {
    width: 100%;
  }

  .legajo-modern-profile :is(#datos-empresa, #datos-usuario) .legajo-labor-list .fox-input {
    border: 1px solid #cddcf0 !important;
    padding-right: 10px !important;
  }
}

.legajo-modern-profile .legajo-modern-metrics {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.legajo-modern-profile .legajo-modern-metric,
.legajo-modern-profile .legajo-modern-metric:visited {
  align-items: center;
  background: #fff;
  border: 1px solid #dbe7f4;
  border-radius: 10px;
  color: #0b2346;
  display: grid;
  gap: 12px;
  grid-template-columns: 46px minmax(0, 1fr);
  min-height: 92px;
  padding: 16px;
  text-decoration: none;
}

.legajo-modern-profile .legajo-modern-metric:hover {
  border-color: #b8d5f5;
  box-shadow: 0 10px 22px rgba(15, 45, 90, .06);
}

.legajo-modern-profile .metric-icon {
  align-items: center;
  border-radius: 14px;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.legajo-modern-profile .metric-icon svg {
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 22px;
}

.legajo-modern-profile .metric-icon.is-blue { background: #e8f2ff; color: #0b78d0; }
.legajo-modern-profile .metric-icon.is-green { background: #dcfce7; color: #16a34a; }
.legajo-modern-profile .metric-icon.is-cyan { background: #e0f7ff; color: #0891b2; }
.legajo-modern-profile .metric-icon.is-purple { background: #f1e4ff; color: #8b5cf6; }
.legajo-modern-profile .metric-icon.is-orange { background: #fff1dc; color: #f59e0b; }

.legajo-modern-profile .legajo-modern-metric small,
.legajo-modern-profile .legajo-modern-metric em {
  color: #60728b;
  display: block;
  font-size: 12px;
  font-style: normal;
  line-height: 1.2;
}

.legajo-modern-profile .legajo-modern-metric strong {
  color: #0b2346;
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  margin: 3px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1300px) {
  .legajo-modern-profile .legajo-modern-metrics {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 980px) {
  .legajo-modern-profile .legajo-detail-sections {
    grid-template-columns: 1fr;
  }

  .legajo-modern-profile .legajo-detail-section,
  .legajo-modern-profile .legajo-detail-section:nth-child(odd) {
    border-right: 0;
  }

  .legajo-modern-profile .legajo-detail-section:nth-last-child(-n+2) {
    border-bottom: 1px solid #e3ebf5;
  }

  .legajo-modern-profile .legajo-detail-section:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 680px) {
  .legajo-modern-profile .legajo-section-grid,
  .legajo-modern-profile .legajo-section-grid .local-row,
  .legajo-modern-profile .legajo-section-grid .doc-row,
  .legajo-modern-profile .legajo-section-grid .combo-row,
  .legajo-modern-profile #datos-empresa .legajo-section-grid .lookup-row,
  .legajo-modern-profile #datos-empresa .legajo-section-grid .modalidad-row,
  .legajo-modern-profile #datos-empresa .legajo-section-grid .legajo-labor-pair,
  .legajo-modern-profile #datos-empresa .legajo-section-grid .legajo-labor-radio,
  .legajo-modern-profile .legajo-modern-metrics {
    grid-template-columns: 1fr !important;
  }
}

/* Legajo detalle - responsive real tablet/celular */
@media (max-width: 1180px) {
  .aramis-page-content:has(.legajo-modern-profile) {
    padding-left: .75rem !important;
    padding-right: .75rem !important;
  }

  .legajo-modern-profile {
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .legajo-modern-profile .legajo-fox-toolbar {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .legajo-modern-profile .legajo-modern-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .legajo-modern-summary > * {
    border-bottom: 1px solid #e1eaf5 !important;
    border-right: 1px solid #e1eaf5 !important;
  }

  .legajo-modern-summary > *:nth-child(even) {
    border-right: 0 !important;
  }

  .legajo-modern-profile .legajo-modern-body {
    gap: 12px !important;
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }

  .legajo-modern-profile .legajo-modern-profile-card {
    align-items: center !important;
    display: grid !important;
    gap: 12px 18px !important;
    grid-template-columns: 150px minmax(180px, .7fr) minmax(260px, 1fr) !important;
    justify-items: start !important;
    padding: 18px !important;
  }

  .legajo-modern-profile .legajo-photo-frame {
    grid-row: 1 / span 4 !important;
    height: 138px !important;
    width: 138px !important;
  }

  .legajo-modern-profile .legajo-photo-edit {
    height: 34px !important;
    width: 34px !important;
  }

  .legajo-modern-profile .legajo-photo-edit svg {
    height: 18px !important;
    width: 18px !important;
  }

  .legajo-modern-profile .legajo-modern-profile-card h2,
  .legajo-modern-profile .legajo-modern-profile-card p,
  .legajo-modern-profile .legajo-profile-status {
    justify-self: start !important;
    text-align: left !important;
  }

  .legajo-modern-profile .legajo-modern-profile-card h2 {
    font-size: 19px !important;
    margin: 0 !important;
  }

  .legajo-modern-profile .legajo-modern-profile-card dl {
    align-self: stretch !important;
    border-left: 1px solid #e0e8f2 !important;
    border-top: 0 !important;
    grid-column: 3 !important;
    grid-row: 1 / span 4 !important;
    margin: 0 !important;
    max-width: none !important;
    padding: 0 0 0 18px !important;
  }

  .legajo-modern-tab-area {
    min-height: 0 !important;
    padding: 14px !important;
  }

  .legajo-modern-profile .legajo-modern-metrics {
    grid-template-columns: repeat(2, minmax(180px, 1fr)) !important;
  }

  .legajo-modern-profile .legajo-modern-tabs {
    display: flex !important;
    overflow-x: auto !important;
    overscroll-behavior-x: contain !important;
    scrollbar-width: thin !important;
  }

  .legajo-modern-profile .legajo-modern-tabs a {
    flex: 0 0 148px !important;
    justify-content: center !important;
    min-height: 58px !important;
    white-space: normal !important;
  }
}

@media (max-width: 900px) {
  .legajo-modern-profile .legajo-fox-toolbar {
    overflow-x: auto !important;
    padding-bottom: 8px !important;
  }

  .legajo-modern-profile .legajo-fox-toolbar > * {
    flex: 0 0 auto !important;
  }

  .legajo-modern-profile .legajo-modern-summary {
    grid-template-columns: 1fr !important;
  }

  .legajo-modern-summary > * {
    border-right: 0 !important;
  }

  .legajo-modern-summary .legajo-head-number-editable,
  .legajo-modern-summary .legajo-renumber-form {
    grid-template-columns: 1fr !important;
    max-width: none !important;
  }

  .legajo-panel-title {
    align-items: start !important;
    display: grid !important;
    gap: 4px !important;
  }

  .legajo-modern-profile .legajo-detail-sections {
    grid-template-columns: 1fr !important;
  }

  .legajo-modern-profile .legajo-detail-section,
  .legajo-modern-profile .legajo-detail-section:nth-child(odd) {
    border-right: 0 !important;
  }

  .legajo-modern-profile .legajo-detail-section:not(:last-child) {
    border-bottom: 1px solid #e3ebf5 !important;
  }

  .legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(2) .mid,
  .legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(4) .combo-row {
    grid-column: 1 / -1 !important;
    max-width: none !important;
  }
}

@media (max-width: 680px) {
  .aramis-page-content:has(.legajo-modern-profile) {
    padding-left: .45rem !important;
    padding-right: .45rem !important;
  }

  .legajo-modern-profile {
    border-radius: 10px !important;
    padding: 8px !important;
  }

  .legajo-modern-profile .legajo-tool {
    min-height: 36px !important;
    padding: 7px 11px !important;
  }

  .legajo-modern-profile .legajo-modern-profile-card {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    padding: 16px 14px !important;
    text-align: center !important;
  }

  .legajo-modern-profile .legajo-photo-frame {
    grid-row: auto !important;
    height: 128px !important;
    width: 128px !important;
  }

  .legajo-modern-profile .legajo-modern-profile-card h2,
  .legajo-modern-profile .legajo-modern-profile-card p,
  .legajo-modern-profile .legajo-profile-status {
    justify-self: center !important;
    text-align: center !important;
  }

  .legajo-modern-profile .legajo-modern-profile-card dl {
    border-left: 0 !important;
    border-top: 1px solid #e0e8f2 !important;
    grid-column: auto !important;
    grid-row: auto !important;
    margin-top: 8px !important;
    padding: 14px 0 0 !important;
  }

  .legajo-modern-profile .legajo-modern-profile-card dl div {
    grid-template-columns: 18px minmax(88px, .75fr) minmax(0, 1fr) !important;
  }

  .legajo-modern-tab-area {
    padding: 12px !important;
  }

  .legajo-modern-profile .legajo-detail-section {
    padding: 14px !important;
  }

  .legajo-modern-profile .legajo-section-grid,
  .legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(2) .legajo-section-grid,
  .legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(4) .legajo-section-grid,
  .legajo-modern-profile .legajo-section-grid .local-row,
  .legajo-modern-profile .legajo-section-grid .doc-row,
  .legajo-modern-profile .legajo-section-grid .combo-row,
  .legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(4) .combo-row,
  .legajo-modern-profile #datos-empresa .legajo-section-grid .lookup-row,
  .legajo-modern-profile #datos-empresa .legajo-section-grid .modalidad-row,
  .legajo-modern-profile #datos-empresa .legajo-section-grid .legajo-labor-pair,
  .legajo-modern-profile #datos-empresa .legajo-section-grid .legajo-labor-radio,
  .legajo-modern-profile .legajo-modern-form-grid,
  .legajo-modern-profile .legajo-modern-form-grid .local-row,
  .legajo-modern-profile .legajo-modern-form-grid .doc-row,
  .legajo-modern-profile .legajo-modern-form-grid .combo-row,
  .legajo-modern-profile .legajo-modern-form-grid .legajo-lookup-aux,
  .legajo-modern-profile .legajo-modern-form-grid .modalidad-row,
  .legajo-modern-profile .legajo-modern-form-grid .lookup-double-row,
  .legajo-modern-profile #datos-bancarios .legajo-bank-grid,
  .legajo-modern-profile #datos-bancarios .legajo-bank-grid .legajo-lookup-cuenta,
  .legajo-modern-profile #datos-bancarios .legajo-bank-grid .fox-row.account:not(.legajo-lookup-cuenta),
  .legajo-modern-profile #datos-bancarios .legajo-bank-grid .cbu-right {
    grid-template-columns: 1fr !important;
  }

  .legajo-modern-profile .legajo-section-grid .local-row > em,
  .legajo-modern-profile .legajo-section-grid .doc-row > em {
    margin-top: 4px !important;
  }

  .legajo-modern-profile .legajo-modern-metrics {
    grid-template-columns: 1fr !important;
  }
}

/* Legajo detalle - cierre de distribucion Datos personales */
.legajo-modern-profile #datos-usuario .legajo-detail-sections {
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr) !important;
}

.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(1) {
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
}

.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(2) {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(4) {
  grid-column: 2 !important;
  grid-row: 2 !important;
}

.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(5) {
  grid-column: 1 !important;
  grid-row: 3 !important;
}

.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(6) {
  grid-column: 2 !important;
  grid-row: 3 !important;
}

.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(3) {
  grid-column: 1 / -1 !important;
  grid-row: 4 !important;
}

.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(5) .legajo-labor-grid,
.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(6) .legajo-labor-grid {
  grid-template-columns: 1fr !important;
}

.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(5) .legajo-labor-lookup,
.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(6) .legajo-labor-lookup {
  grid-template-columns: 104px 70px minmax(140px, 1fr) 30px !important;
}

.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(5) .legajo-labor-lookup > span,
.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(6) .legajo-labor-lookup > span {
  grid-column: auto !important;
}

.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(5) .legajo-labor-grid label,
.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(6) .legajo-labor-grid label {
  grid-template-columns: 170px minmax(0, 1fr) !important;
}

.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(5) .legajo-labor-grid label > span,
.legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(6) .legajo-labor-grid label > span {
  grid-column: auto !important;
}

@media (max-width: 980px) {
  .legajo-modern-profile #datos-usuario .legajo-detail-sections {
    grid-template-columns: 1fr !important;
  }

  .legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(n) {
    grid-column: 1 !important;
    grid-row: auto !important;
    border-right: 0 !important;
  }

  .legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(5) .legajo-labor-lookup,
  .legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(6) .legajo-labor-lookup,
  .legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(5) .legajo-labor-grid label,
  .legajo-modern-profile #datos-usuario .legajo-detail-section:nth-child(6) .legajo-labor-grid label {
    grid-template-columns: 1fr !important;
  }
}

/* Legajo detalle - familiares embebidos */
.legajo-modern-profile #datos-familiares .legajo-family-detail {
  border: 1px solid #d8e4f2;
  border-radius: 10px;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
  overflow: hidden;
}

.legajo-modern-profile #datos-familiares .legajo-family-detail[hidden],
.legajo-modern-profile #datos-familiares [data-family-card][hidden] {
  display: none !important;
}

.legajo-modern-profile #datos-familiares .legajo-family-detail.is-active {
  display: grid !important;
}

.legajo-modern-profile #datos-familiares .legajo-family-viewer {
  display: grid;
  gap: 12px;
}

.legajo-modern-profile #datos-familiares .legajo-family-viewer-head {
  align-items: center;
  background: #f8fbff;
  border: 1px solid #d8e4f2;
  border-radius: 10px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-height: 52px;
  padding: 10px 14px;
}

.legajo-modern-profile #datos-familiares .legajo-family-viewer-head div {
  display: grid;
  gap: 2px;
}

.legajo-modern-profile #datos-familiares .legajo-family-viewer-head strong {
  color: #0b2346;
  font-size: 15px;
  font-weight: 800;
}

.legajo-modern-profile #datos-familiares .legajo-family-viewer-head span {
  color: #52677d;
  font-size: 13px;
}

.legajo-modern-profile #datos-familiares .legajo-family-viewer-head nav {
  display: inline-flex;
  gap: 8px;
}

.legajo-modern-profile #datos-familiares .legajo-family-viewer-head button {
  align-items: center;
  background: #fff;
  border: 1px solid #cfe0f4;
  border-radius: 9px;
  color: #0b7ee8;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  padding: 0;
  width: 40px;
}

.legajo-modern-profile #datos-familiares .legajo-family-viewer-head button:hover {
  background: #eaf4ff;
}

.legajo-modern-profile #datos-familiares .legajo-family-viewer-head button svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  width: 18px;
}

.legajo-modern-profile #datos-familiares .legajo-family-detail-section {
  background: #fff;
  min-width: 0;
}

.legajo-modern-profile #datos-familiares .legajo-family-detail-section + .legajo-family-detail-section {
  border-left: 2px solid #cfe3f5;
}

.legajo-modern-profile #datos-familiares .legajo-family-detail-section h3 {
  align-items: center;
  background: #e4f1fb;
  border-bottom: 1px solid #c9e3f7;
  color: #294564;
  display: flex;
  font-size: 15px;
  font-weight: 750;
  gap: 10px;
  margin: 0;
  min-height: 46px;
  padding: 0 18px;
}

.legajo-modern-profile #datos-familiares .legajo-family-detail-section h3 svg {
  color: #1683e7;
  fill: none;
  flex: 0 0 auto;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 22px;
}

.legajo-modern-profile #datos-familiares .legajo-family-form-grid {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.legajo-modern-profile #datos-familiares .legajo-family-read-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 18px;
}

.legajo-modern-profile #datos-familiares .legajo-family-read-grid > div {
  border-bottom: 1px solid #edf2f8;
  display: grid;
  gap: 5px;
  min-height: 50px;
  padding-bottom: 8px;
}

.legajo-modern-profile #datos-familiares .legajo-family-read-grid > div.wide,
.legajo-modern-profile #datos-familiares .legajo-family-read-grid > div.family-doc-row {
  grid-column: 1 / -1;
}

.legajo-modern-profile #datos-familiares .legajo-family-read-grid span {
  color: #52677d;
  font-size: 12px;
  font-weight: 750;
}

.legajo-modern-profile #datos-familiares .legajo-family-read-grid strong {
  color: #0b2346;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.legajo-modern-profile #datos-familiares .legajo-family-form-grid label {
  display: grid;
  gap: 6px;
}

.legajo-modern-profile #datos-familiares .legajo-family-form-grid label > span {
  color: #52677d;
  font-size: 12px;
  font-weight: 750;
}

.legajo-modern-profile #datos-familiares .legajo-family-form-grid .fox-input {
  background: #fff;
  border-color: #cfdaea;
  box-shadow: 0 2px 5px rgba(15, 35, 58, .04);
  min-height: 38px;
}

.legajo-modern-profile #datos-familiares .family-doc-row {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: 132px minmax(0, 1fr);
}

.legajo-modern-profile #datos-familiares .date-row,
.legajo-modern-profile #datos-familiares .short-row {
  max-width: 270px;
}

.legajo-modern-profile #datos-familiares .family-dates-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legajo-modern-profile #datos-familiares .legajo-family-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 14px;
}

.legajo-modern-profile #datos-familiares .legajo-family-actions .legajo-modern-action {
  align-items: center;
  background: #0b7ee8;
  border: 1px solid #0b7ee8;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 14px;
  font-weight: 750;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  text-decoration: none;
}

.legajo-modern-profile #datos-familiares .legajo-family-dots {
  align-items: center;
  display: flex;
  gap: 7px;
  justify-content: center;
  min-height: 18px;
}

.legajo-modern-profile #datos-familiares .legajo-family-dots button {
  background: #c8d8eb;
  border: 0;
  border-radius: 999px;
  height: 8px;
  padding: 0;
  width: 8px;
}

.legajo-modern-profile #datos-familiares .legajo-family-dots button.is-active {
  background: #0b7ee8;
  width: 24px;
}

@media (max-width: 980px) {
  .legajo-modern-profile #datos-familiares .legajo-family-detail {
    grid-template-columns: 1fr;
  }

  .legajo-modern-profile #datos-familiares .legajo-family-detail-section + .legajo-family-detail-section {
    border-left: 0;
    border-top: 1px solid #d8e4f2;
  }

  .legajo-modern-profile #datos-familiares .family-dates-row,
  .legajo-modern-profile #datos-familiares .family-doc-row {
    grid-template-columns: 1fr;
  }

  .legajo-modern-profile #datos-familiares .legajo-family-read-grid {
    grid-template-columns: 1fr;
  }
}

/* Legajo detalle - corte por ancho util con menu lateral */
@media (max-width: 1500px) {
  .legajo-modern-profile .legajo-fox-toolbar {
    overflow-x: auto !important;
    padding-bottom: 8px !important;
    white-space: nowrap !important;
  }

  .legajo-modern-profile .legajo-fox-toolbar > * {
    flex: 0 0 auto !important;
  }

  .legajo-modern-profile .legajo-modern-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .legajo-modern-profile .legajo-modern-summary > * {
    border-bottom: 1px solid #e1eaf5 !important;
    min-width: 0 !important;
  }

  .legajo-modern-profile .legajo-modern-summary > *:nth-child(even) {
    border-right: 0 !important;
  }

  .legajo-modern-profile .legajo-modern-summary .legajo-head-number-editable {
    align-items: start !important;
    display: grid !important;
    gap: 10px !important;
    grid-template-columns: minmax(110px, .28fr) minmax(300px, 1fr) !important;
  }

  .legajo-modern-profile .legajo-modern-summary .legajo-renumber-form {
    display: grid !important;
    gap: 8px !important;
    grid-template-columns: minmax(70px, .35fr) minmax(110px, .6fr) auto !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  .legajo-modern-profile .legajo-modern-summary .legajo-renumber-hint {
    grid-column: 1 / -1 !important;
  }

  .legajo-modern-profile .legajo-modern-tabs {
    display: flex !important;
    overflow-x: auto !important;
    overscroll-behavior-x: contain !important;
    scrollbar-width: thin !important;
  }

  .legajo-modern-profile .legajo-modern-tabs a {
    flex: 0 0 150px !important;
    justify-content: center !important;
    min-height: 58px !important;
    min-width: 0 !important;
    white-space: normal !important;
  }

  .legajo-modern-profile .legajo-modern-body {
    gap: 12px !important;
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  .legajo-modern-profile .legajo-modern-profile-card {
    align-items: center !important;
    display: grid !important;
    gap: 12px 18px !important;
    grid-template-columns: 150px minmax(180px, .55fr) minmax(260px, 1fr) !important;
    justify-items: start !important;
    padding: 18px !important;
    text-align: left !important;
  }

  .legajo-modern-profile .legajo-photo-frame {
    grid-row: 1 / span 4 !important;
    height: 138px !important;
    width: 138px !important;
  }

  .legajo-modern-profile .legajo-modern-profile-card h2,
  .legajo-modern-profile .legajo-modern-profile-card p,
  .legajo-modern-profile .legajo-profile-status {
    justify-self: start !important;
    text-align: left !important;
  }

  .legajo-modern-profile .legajo-modern-profile-card h2 {
    font-size: 19px !important;
    margin: 0 !important;
  }

  .legajo-modern-profile .legajo-modern-profile-card dl {
    align-self: stretch !important;
    border-left: 1px solid #e0e8f2 !important;
    border-top: 0 !important;
    grid-column: 3 !important;
    grid-row: 1 / span 4 !important;
    margin: 0 !important;
    max-width: none !important;
    padding: 0 0 0 18px !important;
  }

  .legajo-modern-tab-area {
    min-height: 0 !important;
    min-width: 0 !important;
    padding: 14px !important;
  }

  .legajo-modern-profile #datos-conceptos-auto .legajo-auto-toolbar,
  .legajo-modern-profile #datos-conceptos-auto .legajo-auto-summary {
    grid-template-columns: 1fr !important;
  }

  .legajo-modern-profile #datos-conceptos-auto .legajo-auto-add-form {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  .legajo-modern-profile #datos-conceptos-auto .legajo-auto-table-wrap {
    overflow-x: auto !important;
  }

  .legajo-modern-profile #datos-conceptos-auto .legajo-auto-table {
    min-width: 620px !important;
  }
}

@media (max-width: 980px) {
  .legajo-modern-profile .legajo-modern-summary,
  .legajo-modern-profile .legajo-modern-summary .legajo-head-number-editable,
  .legajo-modern-profile .legajo-modern-summary .legajo-renumber-form {
    grid-template-columns: 1fr !important;
  }

  .legajo-modern-profile .legajo-modern-summary > * {
    border-right: 0 !important;
  }

  .legajo-modern-profile .legajo-modern-profile-card {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    text-align: center !important;
  }

  .legajo-modern-profile .legajo-photo-frame {
    grid-row: auto !important;
  }

  .legajo-modern-profile .legajo-modern-profile-card h2,
  .legajo-modern-profile .legajo-modern-profile-card p,
  .legajo-modern-profile .legajo-profile-status {
    justify-self: center !important;
    text-align: center !important;
  }

  .legajo-modern-profile .legajo-modern-profile-card dl {
    border-left: 0 !important;
    border-top: 1px solid #e0e8f2 !important;
    grid-column: auto !important;
    grid-row: auto !important;
    margin-top: 8px !important;
    padding: 14px 0 0 !important;
  }

  .legajo-modern-profile #datos-conceptos-auto .legajo-auto-add-form {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 1100px) {
  .legajo-modern-profile #datos-conceptos-auto .legajo-auto-add-form {
    grid-template-columns: 1fr !important;
  }

  .legajo-modern-profile #datos-conceptos-auto .legajo-auto-add-form .legajo-modern-action {
    width: 100% !important;
  }
}

/* Legajo detalle - QA responsive final */
@media (min-width: 681px) and (max-width: 980px) {
  .legajo-modern-profile .legajo-fox-toolbar {
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    padding: 8px 10px !important;
  }

  .legajo-modern-profile .legajo-modern-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .legajo-modern-profile .legajo-modern-summary > * {
    border-right: 1px solid #e1eaf5 !important;
  }

  .legajo-modern-profile .legajo-modern-summary > *:nth-child(even) {
    border-right: 0 !important;
  }

  .legajo-modern-profile .legajo-modern-summary .legajo-head-number-editable {
    grid-template-columns: 1fr !important;
  }

  .legajo-modern-profile .legajo-modern-summary .legajo-renumber-form {
    align-items: end !important;
    grid-template-columns: minmax(72px, .28fr) minmax(126px, 1fr) minmax(90px, auto) !important;
    max-width: none !important;
  }

  .legajo-modern-profile .legajo-modern-summary .legajo-renumber-hint {
    grid-column: 1 / -1 !important;
  }

  .legajo-modern-profile .legajo-modern-profile-card {
    grid-template-columns: 138px minmax(170px, .55fr) minmax(240px, 1fr) !important;
    justify-items: start !important;
    text-align: left !important;
  }

  .legajo-modern-profile .legajo-photo-frame {
    grid-row: 1 / span 4 !important;
    height: 126px !important;
    width: 126px !important;
  }

  .legajo-modern-profile .legajo-modern-profile-card h2,
  .legajo-modern-profile .legajo-modern-profile-card p,
  .legajo-modern-profile .legajo-profile-status {
    justify-self: start !important;
    text-align: left !important;
  }

  .legajo-modern-profile .legajo-modern-profile-card dl {
    border-left: 1px solid #e0e8f2 !important;
    border-top: 0 !important;
    grid-column: 3 !important;
    grid-row: 1 / span 4 !important;
    margin: 0 !important;
    max-width: none !important;
    padding: 0 0 0 16px !important;
  }
}

@media (max-width: 680px) {
  .legajo-modern-profile .legajo-fox-toolbar {
    align-items: center !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    overflow-x: visible !important;
    padding: 8px !important;
    white-space: normal !important;
  }

  .legajo-modern-profile .legajo-tool.primary {
    min-width: 88px !important;
  }

  .legajo-modern-profile .legajo-tool.icon,
  .legajo-modern-profile .legajo-tool-form .legajo-tool {
    height: 36px !important;
    min-width: 42px !important;
    width: 42px !important;
  }

  .legajo-modern-profile .legajo-tool-separator,
  .legajo-modern-profile .legajo-toolbar-spacer {
    display: none !important;
  }

  .legajo-modern-profile .legajo-modern-summary,
  .legajo-modern-profile .legajo-modern-summary .legajo-head-number-editable {
    grid-template-columns: 1fr !important;
  }

  .legajo-modern-profile .legajo-modern-summary > * {
    border-right: 0 !important;
    padding: 14px 16px !important;
  }

  .legajo-modern-profile .legajo-modern-summary .legajo-renumber-form {
    align-items: end !important;
    grid-template-columns: minmax(64px, .32fr) minmax(118px, 1fr) minmax(86px, auto) !important;
    max-width: none !important;
  }

  .legajo-modern-profile .legajo-modern-summary .legajo-renumber-form .fox-input {
    min-height: 34px !important;
    padding: 7px 9px !important;
  }

  .legajo-modern-profile .legajo-renumber-button {
    min-height: 34px !important;
    padding: 7px 10px !important;
  }

  .legajo-modern-profile .legajo-renumber-hint {
    font-size: 11px !important;
    margin-top: -2px !important;
  }

  .legajo-modern-profile .legajo-modern-tabs {
    scroll-padding-inline: 12px !important;
  }

  .legajo-modern-profile .legajo-modern-tabs a {
    flex-basis: 126px !important;
    min-height: 54px !important;
    padding: 8px 10px !important;
  }
}

/* Legajo detalle - responsive por ancho real del modulo */
.legajo-modern-profile {
  container-type: inline-size;
}

@container (max-width: 880px) {
  .legajo-modern-profile .legajo-fox-toolbar {
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    overflow-x: visible !important;
    padding: 8px 10px !important;
    white-space: normal !important;
  }

  .legajo-modern-profile .legajo-modern-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .legajo-modern-profile .legajo-modern-summary > * {
    border-right: 1px solid #e1eaf5 !important;
    min-width: 0 !important;
    padding: 14px 16px !important;
  }

  .legajo-modern-profile .legajo-modern-summary > *:nth-child(even) {
    border-right: 0 !important;
  }

  .legajo-modern-profile .legajo-modern-summary .legajo-head-number-editable,
  .legajo-modern-profile .legajo-modern-summary .legajo-renumber-form {
    grid-template-columns: 1fr !important;
    max-width: none !important;
  }

  .legajo-modern-profile .legajo-modern-body {
    grid-template-columns: 1fr !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  .legajo-modern-profile .legajo-modern-profile-card {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    padding: 20px 18px !important;
    text-align: center !important;
  }

  .legajo-modern-profile .legajo-photo-frame {
    grid-row: auto !important;
  }

  .legajo-modern-profile .legajo-modern-profile-card h2,
  .legajo-modern-profile .legajo-modern-profile-card p,
  .legajo-modern-profile .legajo-profile-status {
    justify-self: center !important;
    text-align: center !important;
  }

  .legajo-modern-profile .legajo-modern-profile-card dl {
    border-left: 0 !important;
    border-top: 1px solid #e0e8f2 !important;
    grid-column: auto !important;
    grid-row: auto !important;
    margin-top: 8px !important;
    max-width: 420px !important;
    padding: 14px 0 0 !important;
    width: 100% !important;
  }

  .legajo-modern-profile .legajo-modern-tab-area {
    min-width: 0 !important;
    padding: 12px !important;
  }

  .legajo-modern-profile .legajo-detail-sections,
  .legajo-modern-profile .legajo-modern-form-grid,
  .legajo-modern-profile .legajo-modern-metrics,
  .legajo-modern-profile .legajo-auto-toolbar,
  .legajo-modern-profile .legajo-auto-summary {
    grid-template-columns: 1fr !important;
  }

  .legajo-modern-profile .legajo-detail-section,
  .legajo-modern-profile .legajo-detail-section:nth-child(odd) {
    border-left: 0 !important;
    border-right: 0 !important;
    border-top: 1px solid #e3ebf5 !important;
  }

  .legajo-modern-profile .legajo-detail-section:first-child {
    border-top: 0 !important;
  }

  .legajo-modern-profile .legajo-section-grid,
  .legajo-modern-profile .legajo-section-grid .local-row,
  .legajo-modern-profile .legajo-section-grid .doc-row,
  .legajo-modern-profile .legajo-section-grid .combo-row,
  .legajo-modern-profile #datos-bancarios .legajo-bank-grid,
  .legajo-modern-profile #datos-conceptos-auto .legajo-auto-add-form {
    grid-template-columns: 1fr !important;
  }

  .legajo-modern-profile .legajo-section-grid .fox-row > span,
  .legajo-modern-profile .legajo-section-grid .local-row > span,
  .legajo-modern-profile .legajo-section-grid .doc-row > span,
  .legajo-modern-profile .legajo-section-grid .combo-row > span {
    grid-column: auto !important;
  }
}

@container (max-width: 560px) {
  .legajo-modern-profile .legajo-modern-summary,
  .legajo-modern-profile .legajo-modern-summary .legajo-head-number-editable,
  .legajo-modern-profile .legajo-modern-summary .legajo-renumber-form {
    grid-template-columns: 1fr !important;
  }

  .legajo-modern-profile .legajo-modern-summary > * {
    border-right: 0 !important;
  }

  .legajo-modern-profile .legajo-modern-tabs {
    overflow-x: auto !important;
  }

  .legajo-modern-profile .legajo-modern-tabs a {
    flex: 0 0 132px !important;
    min-width: 132px !important;
  }

  .legajo-modern-profile .legajo-modern-profile-card {
    padding: 18px 14px !important;
  }

  .legajo-modern-profile .legajo-photo-frame {
    height: 132px !important;
    width: 132px !important;
  }
}

/* Legajo detalle - conceptos automaticos integrado */
.legajo-modern-profile #datos-conceptos-auto {
  gap: 14px !important;
}

.legajo-modern-profile #datos-conceptos-auto .legajo-panel-title {
  align-items: start !important;
  border-bottom: 1px solid #e2ebf6 !important;
  display: grid !important;
  gap: 4px !important;
  grid-template-columns: minmax(0, 1fr) !important;
  margin: 0 !important;
  padding: 0 0 14px !important;
}

.legajo-modern-profile #datos-conceptos-auto .legajo-panel-title strong {
  color: #061f43 !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}

.legajo-modern-profile #datos-conceptos-auto .legajo-panel-title span {
  color: #4d6482 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  max-width: 740px !important;
}

.legajo-modern-profile #datos-conceptos-auto .legajo-auto-panel {
  display: grid !important;
  gap: 14px !important;
  min-width: 0 !important;
}

.legajo-modern-profile #datos-conceptos-auto .legajo-auto-summary {
  display: grid !important;
  gap: 12px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.legajo-modern-profile #datos-conceptos-auto .legajo-auto-summary article {
  align-items: center !important;
  background: #fff !important;
  border: 1px solid #d8e5f4 !important;
  border-radius: 10px !important;
  display: grid !important;
  gap: 2px 12px !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  min-height: 78px !important;
  padding: 13px 15px !important;
}

.legajo-modern-profile #datos-conceptos-auto .legajo-auto-metric-icon {
  align-items: center;
  background: #e8f2ff;
  border-radius: 12px;
  color: #0876d7;
  display: inline-flex;
  grid-row: 1 / span 3;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.legajo-modern-profile #datos-conceptos-auto .legajo-auto-metric-icon svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 20px;
}

.legajo-modern-profile #datos-conceptos-auto .legajo-auto-metric-icon.is-green {
  background: #dcfce7;
  color: #16a34a;
}

.legajo-modern-profile #datos-conceptos-auto .legajo-auto-metric-icon.is-purple {
  background: #f1e4ff;
  color: #8b5cf6;
}

.legajo-modern-profile #datos-conceptos-auto .legajo-auto-summary span {
  color: #45607f !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.legajo-modern-profile #datos-conceptos-auto .legajo-auto-summary strong {
  color: #061f43 !important;
  font-size: 26px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
}

.legajo-modern-profile #datos-conceptos-auto .legajo-auto-summary small {
  color: #62748d !important;
  font-size: 12px !important;
}

.legajo-modern-profile #datos-conceptos-auto .legajo-auto-toolbar {
  align-items: end !important;
  background: #f8fbff !important;
  border: 1px solid #d8e5f4 !important;
  border-radius: 10px !important;
  display: grid !important;
  gap: 12px !important;
  grid-template-columns: minmax(0, 1.35fr) minmax(210px, .65fr) !important;
  padding: 14px !important;
}

.legajo-modern-profile #datos-conceptos-auto .legajo-auto-add-form {
  align-items: end !important;
  display: grid !important;
  gap: 10px !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  min-width: 0 !important;
}

.legajo-modern-profile #datos-conceptos-auto .legajo-auto-add-form label,
.legajo-modern-profile #datos-conceptos-auto .legajo-auto-search {
  display: grid !important;
  gap: 6px !important;
  min-width: 0 !important;
}

.legajo-modern-profile #datos-conceptos-auto .legajo-auto-add-form span,
.legajo-modern-profile #datos-conceptos-auto .legajo-auto-search span {
  color: #405978 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.legajo-modern-profile #datos-conceptos-auto .fox-input {
  background: #fff !important;
  border-color: #cbdcf0 !important;
  border-radius: 8px !important;
  min-height: 39px !important;
}

.legajo-modern-profile #datos-conceptos-auto .legajo-modern-action {
  align-items: center !important;
  background: #0876d7 !important;
  border: 1px solid #0876d7 !important;
  border-radius: 8px !important;
  color: #fff !important;
  display: inline-flex !important;
  font-weight: 600 !important;
  justify-content: center !important;
  min-height: 39px !important;
  padding: 9px 16px !important;
  white-space: nowrap !important;
}

.legajo-modern-profile #datos-conceptos-auto .legajo-modern-action:disabled {
  background: #dbe5f1 !important;
  border-color: #dbe5f1 !important;
  color: #7d8da3 !important;
}

.legajo-modern-profile #datos-conceptos-auto .legajo-auto-table-wrap {
  background: #fff !important;
  border: 1px solid #d8e5f4 !important;
  border-radius: 10px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
}

.legajo-modern-profile #datos-conceptos-auto .legajo-auto-table {
  border-collapse: collapse !important;
  color: #06214a !important;
  font-size: 13px !important;
  min-width: 0 !important;
  table-layout: fixed !important;
  width: 100% !important;
}

.legajo-modern-profile #datos-conceptos-auto .legajo-auto-table th {
  background: #f5f8fc !important;
  border-bottom: 1px solid #d8e5f4 !important;
  color: #3f5572 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 11px 12px !important;
  text-align: left !important;
  text-transform: uppercase !important;
}

.legajo-modern-profile #datos-conceptos-auto .legajo-auto-table th:nth-child(1),
.legajo-modern-profile #datos-conceptos-auto .legajo-auto-table td:nth-child(1) {
  width: 96px !important;
}

.legajo-modern-profile #datos-conceptos-auto .legajo-auto-table th:nth-child(3),
.legajo-modern-profile #datos-conceptos-auto .legajo-auto-table td:nth-child(3) {
  width: 126px !important;
}

.legajo-modern-profile #datos-conceptos-auto .legajo-auto-table th:nth-child(4),
.legajo-modern-profile #datos-conceptos-auto .legajo-auto-table td:nth-child(4) {
  text-align: center !important;
  width: 92px !important;
}

.legajo-modern-profile #datos-conceptos-auto .legajo-auto-table td {
  background: #fff !important;
  border-bottom: 1px solid #e3ebf5 !important;
  color: #06214a !important;
  padding: 11px 12px !important;
  vertical-align: middle !important;
}

.legajo-modern-profile #datos-conceptos-auto .legajo-auto-table tbody tr:nth-child(even) td {
  background: #fbfdff !important;
}

.legajo-modern-profile #datos-conceptos-auto .legajo-auto-code {
  align-items: center !important;
  background: #e8f2ff !important;
  border: 1px solid #cfe1f7 !important;
  border-radius: 999px !important;
  color: #0876d7 !important;
  display: inline-flex !important;
  font-weight: 600 !important;
  justify-content: center !important;
  min-width: 44px !important;
  padding: 4px 10px !important;
}

.legajo-modern-profile #datos-conceptos-auto .legajo-auto-origin {
  color: #58708e !important;
  font-size: 12px !important;
}

.legajo-modern-profile #datos-conceptos-auto .legajo-auto-table td strong {
  color: #061f43 !important;
  display: block !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
}

.legajo-modern-profile #datos-conceptos-auto .legajo-auto-table td small {
  color: #60728b !important;
  display: block !important;
  font-size: 11px !important;
  margin-top: 2px !important;
}

.legajo-modern-profile #datos-conceptos-auto .legajo-auto-delete {
  align-items: center !important;
  background: #fff !important;
  border: 1px solid #ffd2d2 !important;
  border-radius: 7px !important;
  color: #e11d2e !important;
  display: inline-flex !important;
  height: 32px !important;
  justify-content: center !important;
  padding: 0 !important;
  width: 32px !important;
}

.legajo-modern-profile #datos-conceptos-auto .legajo-auto-delete svg {
  fill: none !important;
  height: 14px !important;
  stroke: currentColor !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  stroke-width: 1.7 !important;
  width: 14px !important;
}

@media (max-width: 900px) {
  .legajo-modern-profile #datos-conceptos-auto .legajo-auto-summary,
  .legajo-modern-profile #datos-conceptos-auto .legajo-auto-toolbar,
  .legajo-modern-profile #datos-conceptos-auto .legajo-auto-add-form {
    grid-template-columns: 1fr !important;
  }

  .legajo-modern-profile #datos-conceptos-auto .legajo-modern-action {
    width: 100% !important;
  }

  .legajo-modern-profile #datos-conceptos-auto .legajo-auto-table {
    min-width: 560px !important;
  }
}

@media (max-width: 560px) {
  .legajo-modern-profile #datos-conceptos-auto .legajo-auto-panel {
    gap: 12px !important;
  }

  .legajo-modern-profile #datos-conceptos-auto .legajo-auto-summary article {
    min-height: 72px !important;
    padding: 12px !important;
  }

  .legajo-modern-profile #datos-conceptos-auto .legajo-auto-toolbar {
    padding: 12px !important;
  }

  .legajo-modern-profile #datos-conceptos-auto .legajo-auto-table-wrap {
    overflow: visible !important;
  }

  .legajo-modern-profile #datos-conceptos-auto .legajo-auto-table,
  .legajo-modern-profile #datos-conceptos-auto .legajo-auto-table thead,
  .legajo-modern-profile #datos-conceptos-auto .legajo-auto-table tbody,
  .legajo-modern-profile #datos-conceptos-auto .legajo-auto-table tr,
  .legajo-modern-profile #datos-conceptos-auto .legajo-auto-table td {
    display: block !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .legajo-modern-profile #datos-conceptos-auto .legajo-auto-table thead {
    display: none !important;
  }

  .legajo-modern-profile #datos-conceptos-auto .legajo-auto-table tbody {
    display: grid !important;
    gap: 10px !important;
    padding: 10px !important;
  }

  .legajo-modern-profile #datos-conceptos-auto .legajo-auto-table tr {
    background: #fff !important;
    border: 1px solid #d8e5f4 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
  }

  .legajo-modern-profile #datos-conceptos-auto .legajo-auto-table td {
    align-items: center !important;
    border-bottom: 1px solid #edf2f8 !important;
    display: grid !important;
    gap: 8px !important;
    grid-template-columns: 86px minmax(0, 1fr) !important;
    padding: 10px 12px !important;
    text-align: left !important;
  }

  .legajo-modern-profile #datos-conceptos-auto .legajo-auto-table td:last-child {
    border-bottom: 0 !important;
  }

  .legajo-modern-profile #datos-conceptos-auto .legajo-auto-table td::before {
    color: #5d7089 !important;
    content: attr(data-label) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
  }

  .legajo-modern-profile #datos-conceptos-auto .legajo-auto-table td[data-label="Acciones"] {
    justify-items: start !important;
  }
}

/* ===== Topbar 2 - Ficha del empleado (menu de pestanas, tarjetas sueltas) ===== */
.legajo-modern-profile .legajo-topbar2 {
  align-items: center !important;
  background: #fff !important;
  border: 1px solid #eaeff5 !important;
  border-radius: 14px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  justify-content: space-between !important;
  margin: 0 0 16px !important;
  padding: 10px !important;
}

.legajo-modern-profile .legajo-topbar2-title {
  align-items: center !important;
  display: flex !important;
  gap: 10px !important;
  min-width: 180px !important;
  padding: 0 4px !important;
}

.legajo-modern-profile .legajo-topbar2-title-icon {
  align-items: center !important;
  background: #eaf2fd !important;
  border-radius: 999px !important;
  color: #3a6bb3 !important;
  display: flex !important;
  flex: none !important;
  height: 38px !important;
  justify-content: center !important;
  width: 38px !important;
}

.legajo-modern-profile .legajo-topbar2-title-icon svg {
  fill: none !important;
  height: 19px !important;
  stroke: currentColor !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  stroke-width: 1.8 !important;
  width: 19px !important;
}

.legajo-modern-profile .legajo-topbar2-title strong {
  color: #16213a !important;
  display: block !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

.legajo-modern-profile .legajo-topbar2-title small {
  color: #8993a4 !important;
  font-size: 11.5px !important;
  font-weight: 400 !important;
}

.legajo-modern-profile .legajo-topbar2-tabs.legajo-modern-tabs {
  background: #fff !important;
  border: 1px solid #eaeff5 !important;
  border-radius: 12px !important;
  display: flex !important;
  flex: 1 1 auto !important;
  gap: 0 !important;
  grid-template-columns: none !important;
  justify-content: stretch !important;
  margin: 0 20px !important;
  overflow: hidden !important;
  padding: 0 !important;
}

.legajo-modern-profile .legajo-topbar2-tabs.legajo-modern-tabs a {
  align-items: center !important;
  background: transparent !important;
  border: 0 !important;
  border-right: 1px solid #eef1f6 !important;
  color: #8993a4 !important;
  display: flex !important;
  flex: 1 1 0 !important;
  flex-direction: row !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  gap: 8px !important;
  justify-content: center !important;
  min-height: 0 !important;
  min-width: 110px !important;
  padding: 14px 16px !important;
  position: relative !important;
  transition: background .15s ease, color .15s ease !important;
}

.legajo-modern-profile .legajo-topbar2-tabs.legajo-modern-tabs a:last-child {
  border-right: 0 !important;
}

.legajo-modern-profile .legajo-topbar2-tabs.legajo-modern-tabs a:hover {
  background: #f7f9fc !important;
}

.legajo-modern-profile .legajo-topbar2-tabs.legajo-modern-tabs a.is-active {
  background: transparent !important;
  color: #0b64c0 !important;
}

.legajo-modern-profile .legajo-topbar2-tabs.legajo-modern-tabs a.is-active .legajo-topbar2-tab-label {
  color: #0b64c0 !important;
  font-weight: 700 !important;
}

.legajo-modern-profile .legajo-topbar2-tabs.legajo-modern-tabs a.is-active::after {
  background: #0b78d0 !important;
  border-radius: 999px !important;
  bottom: 0 !important;
  content: "" !important;
  height: 3px !important;
  left: 16px !important;
  position: absolute !important;
  right: 16px !important;
}

.legajo-modern-profile .legajo-topbar2-tab-icon {
  align-items: center !important;
  background: transparent !important;
  border-radius: 0 !important;
  color: #97a1b1 !important;
  display: flex !important;
  height: 20px !important;
  justify-content: center !important;
  width: 20px !important;
}

.legajo-modern-profile .legajo-topbar2-tabs.legajo-modern-tabs a.is-active .legajo-topbar2-tab-icon {
  background: transparent !important;
  color: #0b64c0 !important;
}

.legajo-modern-profile .legajo-topbar2-tab-icon svg {
  fill: none !important;
  height: 19px !important;
  stroke: currentColor !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  stroke-width: 1.8 !important;
  width: 19px !important;
}

.legajo-modern-profile .legajo-topbar2-tab-label {
  color: inherit !important;
  white-space: nowrap !important;
}

.legajo-modern-profile .legajo-topbar2-badge {
  align-items: center !important;
  background: #eef4fc !important;
  border-radius: 9px !important;
  display: flex !important;
  gap: 6px !important;
  min-width: 148px !important;
  padding: 6px 10px !important;
}

.legajo-modern-profile .legajo-topbar2-badge-icon {
  color: #3a6bb3 !important;
  flex: none !important;
}

.legajo-modern-profile .legajo-topbar2-badge-icon svg {
  fill: none !important;
  height: 14px !important;
  stroke: currentColor !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  stroke-width: 1.8 !important;
  width: 14px !important;
}

.legajo-modern-profile .legajo-topbar2-badge strong {
  color: #45536b !important;
  display: block !important;
  font-size: 9.5px !important;
  font-weight: 500 !important;
  letter-spacing: .1px !important;
  line-height: 1.3 !important;
}

.legajo-modern-profile .legajo-topbar2-badge small {
  color: #5b7aa8 !important;
  font-size: 9.5px !important;
  font-weight: 400 !important;
  letter-spacing: .1px !important;
}

@media (max-width: 900px) {
  .legajo-modern-profile .legajo-topbar2 {
    justify-content: center !important;
  }

  .legajo-modern-profile .legajo-topbar2-tabs.legajo-modern-tabs {
    order: 3 !important;
    width: 100% !important;
  }

  .legajo-modern-profile .legajo-topbar2-tabs.legajo-modern-tabs a {
    flex: 1 1 auto !important;
  }
}

@media (max-width: 480px) {
  .legajo-modern-profile .legajo-topbar2-tab-label {
    display: none !important;
  }

  .legajo-modern-profile .legajo-topbar2-tabs.legajo-modern-tabs a {
    min-width: 0 !important;
    padding: 8px !important;
  }
}

/* Final override - Liquidaciones alineado al estilo Legajos */
.aramis-page-content .sueldos-window.liquidaciones-modern.sueldos-liquidaciones-window:not(.legajo-fox-window) {
  gap: 0.9rem !important;
  margin: 0 auto !important;
  max-width: 1540px !important;
  padding: 1rem 1.35rem 1.7rem !important;
  width: 100% !important;
}

.aramis-page-content .liquidaciones-modern > .sueldos-liquidaciones-toolbar {
  margin: 0 !important;
  position: relative !important;
  z-index: 2 !important;
}

/* Panel de titulo de cada ABM (icono + nombre + subtitulo), en violeta con
   letras blancas, en TODOS los ABM. Hay 2 componentes distintos segun la
   pantalla: .sueldos-page-hero (fichas: Legajos, Conceptos) y
   .legajos-modern-head (listados: Cargos, Codigos Automaticos, Obras
   Sociales, Sectores, AFJP, Modalidades). */
.sueldos-page-hero,
.aramis-page-content .sueldos-window:not(.legajo-fox-window) > .sueldos-page-hero,
.aramis-page-content .sueldos-page.parametros-window > .sueldos-page-hero,
.conceptos-modern-page .sueldos-page-hero {
  background: linear-gradient(180deg, #9333ea 0%, #8b00ff 100%) !important;
  border: 1px solid #7209c9 !important;
  border-radius: 10px !important;
  padding: 14px 16px !important;
  width: 100% !important;
  max-width: none !important;
}

.sueldos-page-hero h1,
.aramis-page-content .sueldos-window:not(.legajo-fox-window) > .sueldos-page-hero h1,
.aramis-page-content .sueldos-page.parametros-window > .sueldos-page-hero h1,
.conceptos-modern-page .sueldos-page-hero h1,
.aramis-page-content h1.sueldos-page-hero,
.sueldos-page-hero .sueldos-page-hero__body h1 {
  color: #ffffff !important;
}

.sueldos-page-hero strong,
.sueldos-page-hero .sueldos-page-hero__body strong,
.aramis-page-content .sueldos-window:not(.legajo-fox-window) > .sueldos-page-hero strong,
.aramis-page-content .sueldos-page.parametros-window > .sueldos-page-hero strong,
.conceptos-modern-page .sueldos-page-hero strong {
  color: #f1e6ff !important;
}

.sueldos-page-hero p,
.sueldos-page-hero .sueldos-page-hero__body p,
.aramis-page-content .sueldos-window:not(.legajo-fox-window) > .sueldos-page-hero p,
.aramis-page-content .sueldos-page.parametros-window > .sueldos-page-hero p,
.conceptos-modern-page .sueldos-page-hero p {
  color: #ecdcff !important;
}

.legajos-modern-head {
  background: linear-gradient(180deg, #9333ea 0%, #8b00ff 100%) !important;
  border: 1px solid #7209c9 !important;
  border-radius: 10px !important;
  padding: 14px 16px !important;
}

.legajos-modern-head h1 {
  color: #ffffff !important;
}

.legajos-modern-head p {
  color: #ecdcff !important;
}

.legajos-modern-head .legajos-title-icon {
  background: rgba(255, 255, 255, .92) !important;
}

/* Antigüedad usa su propia clase de encabezado (no .legajos-modern-head),
   mismo tratamiento violeta para que quede parejo con el resto de Sueldos. */
.antiguedad-head {
  background: linear-gradient(180deg, #9333ea 0%, #8b00ff 100%) !important;
  border: 1px solid #7209c9 !important;
  border-radius: 10px !important;
  padding: 14px 16px !important;
}

.antiguedad-head h1 {
  color: #ffffff !important;
}

.antiguedad-head strong {
  color: #f1e6ff !important;
}

.antiguedad-head p {
  color: #ecdcff !important;
}

.antiguedad-title-icon {
  background: rgba(255, 255, 255, .92) !important;
}

/* Item final del menu (donde estas parado) en violeta, distinto del camino
   (Sueldos > Tablas, etc.) que sigue celeste. Solo apunta a los <a> hoja,
   no a los <button> de menu-group/submenu que arman el camino. */
.aramis-tabler-sidebar .menu-bar > a.active,
.aramis-tabler-sidebar .menu-panel a.active,
.aramis-tabler-sidebar .submenu-panel a.active {
  background: #ece0fc !important;
  color: #6b21a8 !important;
}

/* "Resumen de Sueldos" (tablero/home del modulo) - mismo tratamiento violeta
   en su encabezado propio .sueldos-home-head. */
.sueldos-home-head {
  background: linear-gradient(180deg, #9333ea 0%, #8b00ff 100%) !important;
  border: 1px solid #7209c9 !important;
  border-radius: 10px !important;
  padding: 14px 16px !important;
}

.sueldos-home-head h1 {
  color: #ffffff !important;
}

.sueldos-home-head p {
  color: #ecdcff !important;
}

/* "Listados"/"Tablas Importadas" (reportes_legacy.html, tablas_importadas.html,
   tabla_legacy.html, tabla_importada_detalle.html) usan .client-fox-title,
   igual que otras pantallas fuera de Sueldos (Maestros, Pedidos, Presupuestos).
   Se scopea a .sueldos-window para no pintar esas otras. */
.sueldos-window .client-fox-title {
  background: linear-gradient(180deg, #9333ea 0%, #8b00ff 100%) !important;
  border: 1px solid #7209c9 !important;
  border-radius: 10px !important;
  padding: 14px 16px !important;
}

.sueldos-window .client-fox-title h1 {
  color: #ffffff !important;
}

.sueldos-window .client-fox-title p {
  color: #ecdcff !important;
}
