/* Gestión de vacaciones (ritmo de uso, cruces y cálculo), casillas de truncas y adelanto en la solicitud.
   Las animaciones quedan neutralizadas por el bloque prefers-reduced-motion de base.css. */

.vm-tabs, .vm-pane { min-width: 0; }
.vm-pane.is-entering { animation: vm-enter .32s var(--ease) both; }
@keyframes vm-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes vm-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Ritmo de uso */
.pace-head { flex-wrap: wrap; }
.pace-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; }
.pace-toolbar .control { width: min(240px, 100%); }
.pace-toolbar .seg button { min-height: 36px; }
.pace-list { display: grid; gap: 10px; padding: 16px 22px 22px; }
.pace-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(90px, auto) minmax(220px, 1.4fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-left: 4px solid var(--tone);
  border-radius: var(--r-md);
  background: var(--surface);
  animation: vm-rise .35s var(--spring) both;
  animation-delay: calc(var(--i, 0) * 30ms);
  transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.pace-row:hover { border-color: var(--tone); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.pace-person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pace-person > div { min-width: 0; }
.pace-person strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pace-person small { display: flex; align-items: center; gap: 5px; margin-top: 3px; overflow: hidden; color: var(--ink-3); font-size: 11.5px; white-space: nowrap; text-overflow: ellipsis; }
.pace-balance { display: grid; justify-items: end; text-align: right; }
.pace-balance span { color: var(--ink-3); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.pace-balance strong { color: var(--state-earned); font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pace-balance .pace-expired { color: var(--state-expired); font-size: 11px; font-weight: 700; }
.pace-progress { display: grid; gap: 6px; min-width: 0; }
.pace-progress small { font-size: 11.5px; color: var(--ink-2); }
.pace-progress small.muted { color: var(--ink-3); }
.pace-status { justify-self: end; }

/* Casillas de truncas y adelanto en el formulario de solicitud */
.rq-options {
  display: grid; gap: 8px; margin: 0; padding: 12px;
  border: 1px dashed var(--line); border-radius: 12px; background: var(--surface-2);
  animation: pop .3s var(--spring);
}
.rq-options legend { display: inline-flex; align-items: center; gap: 6px; padding: 0 6px; color: var(--ink); font-size: 12.5px; font-weight: 800; }
.rq-options legend .i { width: 15px; height: 15px; color: var(--state-hold); }
.rq-option {
  display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; min-height: 44px; padding: 10px 12px;
  border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface); cursor: pointer;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.rq-option:hover { border-color: var(--tone); transform: translateY(-1px); }
.rq-option:has(input:checked) { border-color: var(--tone); box-shadow: 0 0 0 3px var(--tone-soft); }
.rq-option:has(input:focus-visible) { outline: 3px solid var(--tone-soft); outline-offset: 2px; }
.rq-option input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--tone); }
.rq-option b { display: block; color: var(--tone-ink); font-size: 13px; }
.rq-option small { display: block; margin-top: 2px; color: var(--ink-2); font-size: 12px; line-height: 1.4; }
.rq-options-note { display: flex; align-items: center; gap: 6px; margin: 2px 2px 0; color: var(--ink-2); font-size: 12px; font-weight: 600; }
.rq-options-note .i { width: 14px; height: 14px; }

/* Etiquetas de una solicitud con truncas, adelanto o en revisión de RR. HH. */
.req-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.req-tags .chip { font-size: 10.5px; }

@media (max-width: 900px) {
  .pace-row { grid-template-columns: minmax(0, 1fr) auto; }
  .pace-progress { grid-column: 1 / -1; }
  .pace-status { grid-column: 1 / -1; justify-self: start; }
  .pace-toolbar { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .pace-list { padding: 12px; }
  .pace-row { gap: 12px; padding: 12px; }
}
