/* ============================================================
   Aportize - 13º salário (CLT)
   Reaproveita net-salary.css; aqui só as parcelas e o layout
   dos campos. Requer <main class="... ns-page ts-page">.
   ============================================================ */

/* ---------- Parcelas ---------- */

.ts-page .installments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
}

.ts-page .installment {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 16px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
}

.ts-page .installment__label {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
}

.ts-page .installment__value {
  overflow-x: auto;
  color: var(--text);
  font-family: var(--mono);
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  scrollbar-width: thin;
}

.ts-page .installment__date {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

/* ---------- Campos ---------- */

@media (min-width: 620px) {
  .ts-page .field--wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 379px) {
  .ts-page .installments {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (forced-colors: active) {
  .ts-page .installment {
    border: 1px solid ButtonText;
  }
}
