
/* Parche visual nómina - 2026-04-15 */
:root{
  --ux-max:1560px;
  --ux-soft:#f8fafc;
  --ux-soft-blue:#eef4ff;
  --ux-soft-warn:#fff5e8;
  --ux-soft-danger:#fff0f3;
  --ux-text:#203047;
}
body{color:var(--ux-text)!important}
.container{max-width:var(--ux-max)!important;padding:0 24px!important}
.topbar,.card{border-radius:18px!important}
.card{padding:22px!important}
.table-wrap{overflow:auto}
.table{min-width:1200px}
.table thead th{position:sticky;top:0;z-index:2;background:#f8fafc!important;box-shadow:0 1px 0 #e5e7eb}
.table th,.table td{padding:12px 14px!important}
.inline-note,.muted,.hint,.mini{line-height:1.45}
input[readonly]{background:#f8fafc}
body[data-nomina-page="conceptos"] .container,
body[data-nomina-page="periodos"] .container,
body[data-nomina-page="novedades"] .container,
body[data-nomina-page="calculo"] .container{max-width:1580px!important}
.ux-split{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);gap:18px;align-items:start}
.ux-panel{padding:16px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(180deg,#fbfdff, #f7faff)}
.ux-panel h3{margin:0 0 8px 0;font-size:16px}
.ux-panel .ux-note{font-size:13px;color:#516074;line-height:1.5}
.ux-preview-box{margin-top:12px;padding:14px;border-radius:14px;background:#fff;border:1px solid #dde7fb}
.ux-preview-row{display:flex;justify-content:space-between;gap:12px;font-size:13px;padding:5px 0;border-bottom:1px dashed #edf2f7}
.ux-preview-row:last-child{border-bottom:none}
.ux-badge{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;background:var(--ux-soft-blue);color:var(--primary);font-size:12px;font-weight:700}
.ux-kpi-warning,.ux-stat-warning{background:var(--ux-soft-warn)!important;border-color:#f7d8a3!important}
.ux-kpi-danger,.ux-stat-danger{background:var(--ux-soft-danger)!important;border-color:#f2b5c2!important}
.ux-kpi-ok,.ux-stat-ok{background:#eefbf2!important;border-color:#bce3c8!important}
.ux-field-help{margin-top:6px;font-size:12px;color:#64748b;line-height:1.45}
.ux-disabled{background:#f8fafc!important;color:#94a3b8!important}
.ux-headline{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}
.ux-headline .left{max-width:900px}
.ux-chip-warn{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;background:var(--ux-soft-warn);color:#9a5b00;font-size:11px;font-weight:700}
.ux-table-compact th{white-space:nowrap}
body[data-nomina-page="novedades"] .table,
body[data-nomina-page="calculo"] .table{min-width:1500px}
body[data-nomina-page="novedades"] .employee,
body[data-nomina-page="calculo"] .employee{min-width:280px}
body[data-nomina-page="calculo"] .stats,
body[data-nomina-page="periodos"] .stats{gap:14px!important}
body[data-nomina-page="calculo"] .stat,
body[data-nomina-page="periodos"] .stat{min-height:92px;display:flex;flex-direction:column;justify-content:center}
body[data-nomina-page="conceptos"] .grid,
body[data-nomina-page="periodos"] .grid,
body[data-nomina-page="novedades"] .grid,
body[data-nomina-page="calculo"] .grid{gap:16px!important}
body[data-nomina-page="conceptos"] .checks label{display:flex;gap:8px;align-items:flex-start}
body[data-nomina-page="conceptos"] .checks input[type="checkbox"]{margin-top:2px}
body[data-nomina-page="novedades"] textarea.obs{min-width:260px;min-height:64px}
body[data-nomina-page="calculo"] .summary-line{background:#fbfdff!important}
body[data-nomina-page="calculo"] .table th:nth-child(1),
body[data-nomina-page="calculo"] .table td:nth-child(1),
body[data-nomina-page="calculo"] .table th:nth-child(2),
body[data-nomina-page="calculo"] .table td:nth-child(2){position:sticky;background:inherit}
body[data-nomina-page="calculo"] .table th:nth-child(1),
body[data-nomina-page="calculo"] .table td:nth-child(1){left:0;z-index:3;background:#fff}
body[data-nomina-page="calculo"] .table th:nth-child(2),
body[data-nomina-page="calculo"] .table td:nth-child(2){left:280px;z-index:3;background:#fff}
body[data-nomina-page="novedades"] .table th:first-child,
body[data-nomina-page="novedades"] .table td:first-child{position:sticky;left:0;z-index:3;background:#fff}
@media (max-width:1200px){
  .ux-split{grid-template-columns:1fr}
  body[data-nomina-page="calculo"] .table th:nth-child(2),
  body[data-nomina-page="calculo"] .table td:nth-child(2){left:240px}
}
@media (max-width:768px){
  .container{padding:0 14px!important}
  .card{padding:16px!important}
}
