/* V1471 — componente "Rateio por processo" (insumo e conta a pagar) */
.ts-rateio { display: flex; flex-direction: column; gap: 8px; }
.ts-rateio-linhas { display: flex; flex-direction: column; gap: 6px; }
.ts-rateio-linha { display: grid; grid-template-columns: minmax(0, 1fr) 110px auto 32px; gap: 8px; align-items: center; }
.ts-rateio-linha select, .ts-rateio-pct input { height: 34px; box-sizing: border-box; border: 1px solid #cbd8e9; border-radius: 7px; padding: 4px 9px; font: inherit; font-size: 13px; background: #fff; color: #173b63; width: 100%; }
.ts-rateio-pct { position: relative; }
.ts-rateio-pct input { padding-right: 24px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.ts-rateio-pct span { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); color: #6b7a8f; font-size: 12px; pointer-events: none; }
.ts-rateio-valor { min-width: 104px; text-align: right; font-size: 12.5px; color: #47607c; font-variant-numeric: tabular-nums; }
.ts-rateio-remover { width: 32px; height: 32px; border: 1px solid #d5dfec; border-radius: 7px; background: #fff; color: #8a9bb0; font-size: 18px; line-height: 1; cursor: pointer; }
.ts-rateio-remover:hover { color: #b42318; border-color: #efbbb7; background: #fff5f4; }
.ts-rateio-vazio { margin: 0; padding: 8px 11px; font-size: 12.5px; color: #637b98; background: #f6f9fd; border: 1px dashed #c8d5e5; border-radius: 7px; }
.ts-rateio-rodape { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ts-rateio-acoes { display: flex; gap: 6px; flex-wrap: wrap; }
.ts-rateio-btn { height: 30px; padding: 0 11px; border-radius: 15px; border: 1px solid #c9d6e6; background: #f5f8fc; color: #12315e; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.ts-rateio-btn:hover:not(:disabled) { border-color: #f07f1a; color: #c25e05; }
.ts-rateio-btn:disabled { opacity: .45; cursor: not-allowed; }
.ts-rateio-btn--leve { background: transparent; border-color: transparent; color: #6b7a8f; }
.ts-rateio-total { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 12px; }
.ts-rateio-total.is-ok { color: #1f7a3d; background: #edf9f1; }
.ts-rateio-total.is-falta { color: #a15c00; background: #fff7e7; }
.ts-rateio-total.is-passou { color: #b42318; background: #fff0ef; }
.ts-rateio-origem { font-size: 12px; color: #47607c; background: #eef6ff; border: 1px solid #b9d5f2; border-radius: 7px; padding: 7px 10px; }
.ts-rateio-origem b { color: #12315e; }
@media (max-width: 640px) { .ts-rateio-linha { grid-template-columns: minmax(0, 1fr) 90px 32px; } .ts-rateio-valor { display: none; } }
