.tf-finance-kanban .sw-column{min-height:300px}
.tf-column-total{margin:12px 14px 0;color:#315f7f;font-size:13px;font-weight:700}
.tf-charge.sw-row{cursor:default}
.tf-charge-amount{font-size:21px;font-weight:700;color:#115e98;overflow-wrap:anywhere}
.tf-charge-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:6px;padding-top:10px;border-top:1px solid #e5edf3}
.tf-charge-actions .btn{white-space:normal;text-align:left}
.tf-charge .btn:focus-visible{outline:3px solid #0aa8c5;outline-offset:2px}
@media print{#tf-root .sw-views,#tf-root .toolbar,.tf-charge-actions{display:none}.tf-finance-kanban .sw-column{min-height:0}}

/* Parcelamentos: aligned controls, stable columns and scoped row states. */
#tf-root .tf-parcel-workspace{--tf-parcel-text:#243f51;--tf-parcel-muted:#4d6371}
#tf-root .tf-parcel-toolbar{display:grid;grid-template-columns:minmax(230px,1fr) minmax(200px,240px) minmax(220px,260px);align-items:end;gap:16px;margin:24px 0 14px}
#tf-root .tf-parcel-toolbar label{display:grid;gap:7px;min-width:0;color:#31566e;font-size:12px;font-weight:600}
#tf-root .tf-parcel-toolbar input,#tf-root .tf-parcel-toolbar select{box-sizing:border-box;width:100%;min-width:0;height:40px;padding:9px 11px;border:1px solid #91aab9;border-radius:7px;background:#fff;color:#173f5b;font:500 12px Montserrat,Arial,sans-serif}
#tf-root .tf-parcel-toolbar input::placeholder{color:#526b7d;opacity:1}
#tf-root .tf-parcel-toolbar :is(input,select):focus-visible{outline:2px solid #034ea2;outline-offset:2px}
#tf-root .tf-parcel-toolbar select:has(option:checked:not([value="all"])){border-color:#034ea2;background:#e5f2ff}
#tf-root .tf-parcel-quick-filters{display:flex;gap:8px;flex-wrap:wrap}
#tf-root .tf-parcel-filter-summary{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:16px 0 12px;color:#31566e;font-size:12px}
#tf-root .tf-parcel-key{display:flex;flex-wrap:wrap;gap:12px;margin-left:auto;font-size:11px;color:#405a6c}
#tf-root .tf-parcel-key span{display:inline-flex;gap:6px;align-items:center}
#tf-root .tf-parcel-key span:before{content:"";width:8px;height:8px;border-radius:50%;background:var(--tf-key-color)}
#tf-root .tf-key-late{--tf-key-color:#b73737}#tf-root .tf-key-ontime{--tf-key-color:#1d74aa}#tf-root .tf-key-review{--tf-key-color:#9b6b1b}#tf-root .tf-key-done{--tf-key-color:#034ea2}
#tf-root .tf-parcel-table-wrap{overflow:auto;border:1px solid #d1dfe7;border-radius:10px}
#tf-root .tf-parcel-queue{table-layout:fixed;width:100%;min-width:1240px;border:0;border-collapse:collapse}
#tf-root .tf-col-client{width:16%}#tf-root .tf-col-agency{width:13%}#tf-root .tf-col-installment{width:38%}#tf-root .tf-col-due{width:9%}#tf-root .tf-col-state{width:9%}#tf-root .tf-col-actions{width:15%}
#tf-root .tf-parcel-queue th{height:48px;box-sizing:border-box;vertical-align:middle;padding:12px 14px;background:#eaf2f7;color:#31566e;font-size:11px;font-weight:700;letter-spacing:.035em;line-height:1.4;text-align:left}
#tf-root .tf-parcel-queue td{padding:16px 14px;vertical-align:top;overflow-wrap:anywhere;border-bottom:1px solid #dce5eb;font-size:13px;line-height:1.5}
#tf-root .tf-parcel-queue tbody tr:last-child td{border-bottom:0}
#tf-root .tf-parcel-row>td{background:var(--tf-parcel-surface);color:var(--tf-parcel-text,#243f51)}
#tf-root .tf-parcel-late{--tf-parcel-surface:#fff0f0;--tf-parcel-ink:#862b2b}
#tf-root .tf-month-cell.tf-overdue,#tf-root .tf-current-installment.tf-overdue{background:#fff0f0;color:#862b2b;border:1px solid #e9a9a9}
#tf-root .tf-current-installment{display:flex;flex-direction:column;gap:3px;margin-top:8px;padding:7px 8px;border:1px solid #b5cce1;border-radius:7px;background:#edf5fc;color:#034ea2;line-height:1.4}
#tf-root .tf-current-installment small{color:inherit;font-size:10px}
#tf-root .tf-parcel-ontime{--tf-parcel-surface:#edf6ff;--tf-parcel-ink:#174d78}
#tf-root .tf-parcel-done{--tf-parcel-surface:#e3f1ff;--tf-parcel-ink:#034ea2}
#tf-root .tf-parcel-review{--tf-parcel-surface:#fff6e5;--tf-parcel-ink:#6d4c14}
#tf-root .tf-parcel-row .tiny{color:var(--tf-parcel-muted,#4d6371);font-size:11px;line-height:1.6}
#tf-root .tf-parcel-state{display:block;margin-bottom:3px;color:var(--tf-parcel-ink);font-size:12px;line-height:1.4}
#tf-root .tf-parcel-queue .ec-client-link{display:inline;padding:0;border:0;border-radius:0;background:none;color:#034ea2;font:600 12px Montserrat,Arial,sans-serif;text-align:left;text-decoration:none;line-height:1.5;cursor:pointer}
#tf-root .tf-parcel-queue .ec-client-link:hover{text-decoration:underline;text-underline-offset:3px}
#tf-root .tf-parcel-progress{height:5px;max-width:96px;margin-top:6px;border-radius:4px;background:#dce7ec;overflow:hidden}
#tf-root .tf-parcel-progress>div{height:100%;border-radius:inherit}
#tf-root .tf-parcel-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
#tf-root .tf-parcel-actions .btn{display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:32px;box-sizing:border-box;margin:0;padding:6px;border-radius:6px;white-space:normal;text-align:center;font-size:11px;line-height:1.3;box-shadow:none}
#tf-root .tf-parcel-actions .btn:only-child{grid-column:1/-1;justify-self:start;width:auto;padding:6px 12px}
#tf-root .tf-parcel-queue :is(.btn,.ec-client-link):focus-visible{outline:2px solid #034ea2;outline-offset:2px}
@media(max-width:900px){#tf-root .tf-parcel-toolbar{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#tf-root .tf-parcel-search{grid-column:1/-1}#tf-root .tf-parcel-key{width:100%;margin-left:0}}
@media(max-width:480px){#tf-root .tf-parcel-toolbar{grid-template-columns:minmax(0,1fr)}#tf-root .tf-parcel-search{grid-column:auto}}
@media print{#tf-root .tf-parcel-toolbar,#tf-root .tf-parcel-quick-filters,#tf-root .tf-parcel-filter-summary .btn{display:none}#tf-root .tf-parcel-row>td{print-color-adjust:exact;-webkit-print-color-adjust:exact}}

#tf-root .tf-parcel-scroll-hint{display:none;margin:0 0 10px;color:#405a6c;font-size:11px}
#tf-root .tf-parcel-table-wrap:focus-visible{outline:2px solid #034ea2;outline-offset:2px}
#tf-root.tf-parcel-root{min-width:0;color:#002e6e}
#tf-root.tf-parcel-root .tf-parcel-views{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:20px 0}
#tf-root.tf-parcel-root .tf-parcel-views .btn{min-height:40px;margin:0}
#tf-root .tf-parcel-workspace>.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
#tf-root .tf-parcel-workspace>.cards>.card{min-width:0;margin:0}
#tf-root .tf-parcel-workspace>.cards .kpi{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:6px;padding:16px;line-height:1.4}
#tf-root .tf-parcel-workspace>.cards .kpi b{font-size:24px;color:#034ea2;font-variant-numeric:tabular-nums}
#tf-root .tf-parcel-workspace>.cards .kpi span{font-size:12px;color:#405a6c}
#tf-root .tf-parcel-annual-toolbar{grid-template-columns:140px minmax(240px,1fr) auto;margin-top:20px}
#tf-root .tf-parcel-annual-toolbar>.btn{min-height:40px;margin:0;white-space:nowrap}
#tf-root .tf-parcel-queue td:nth-child(3),#tf-root .tf-parcel-queue td:nth-child(4){font-variant-numeric:tabular-nums}
#tf-root .tf-current-installment{min-width:0;overflow-wrap:normal}
#tf-root .tf-current-installment b{font-variant-numeric:tabular-nums}
#tf-root .tf-installment-list{display:grid;grid-auto-flow:column;grid-auto-columns:140px;align-items:stretch;gap:8px;max-width:100%;overflow-x:auto;padding:2px 2px 8px;scrollbar-color:#91aab9 #edf2f7}
#tf-root .tf-installment-card{display:grid;gap:4px;margin:0;padding:10px;border:1px solid #b5cce1;border-radius:7px;background:#edf5fc;color:#174d78;line-height:1.4}
#tf-root .tf-installment-card.tf-overdue{background:#fff0f0;color:#862b2b;border-color:#e9a9a9}
#tf-root .tf-installment-heading{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-variant-numeric:tabular-nums}
#tf-root .tf-installment-heading span{font-size:12px;font-weight:600}
#tf-root .tf-installment-card small{font-size:11px;color:inherit}
#tf-root .tf-installment-card .btn{min-height:40px;margin:4px 0 0;width:100%;white-space:normal;font-size:12px}
#tf-root .tf-parcel-actions .btn{min-height:40px}
#tf-root .tf-parcel-annual-toolbar~.tiny{max-width:100ch;margin:0 0 16px;line-height:1.6;color:#405a6c}
#tf-root .tf-annual-scroll{max-width:100%;max-height:68vh;overflow:auto;border:1px solid #d1dfe7;border-radius:10px;scrollbar-color:#91aab9 #edf2f7;scrollbar-width:auto}
#tf-root .tf-annual-scroll:focus-visible{outline:2px solid #034ea2;outline-offset:2px}
#tf-root .tf-annual{width:100%;min-width:1604px;table-layout:fixed;border-collapse:separate;border-spacing:0}
#tf-root .tf-annual th,#tf-root .tf-annual td{box-sizing:border-box;width:112px;min-width:112px;padding:12px 8px;text-align:center;vertical-align:middle;border-bottom:1px solid #dce5eb;border-right:1px solid #e7eef3}
#tf-root .tf-annual th:first-child,#tf-root .tf-annual td:first-child{width:260px;min-width:260px;max-width:260px;white-space:normal;overflow-wrap:anywhere;text-align:left;padding:16px;position:sticky;left:0;z-index:2;background:#fff}
#tf-root .tf-annual thead th{height:48px;position:sticky;top:0;z-index:3;background:#eaf2f7;color:#002e6e;font-size:12px}
#tf-root .tf-annual thead th:first-child{z-index:4;background:#eaf2f7}
#tf-root .tf-annual .ec-client-link{display:block;max-width:100%;margin:0 0 6px;padding:0;border:0;background:none;color:#034ea2;font:600 12px/1.5 Montserrat,Arial,sans-serif;text-align:left;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
#tf-root .tf-annual .ec-client-link:hover{text-decoration:underline;text-underline-offset:3px}
#tf-root .tf-annual .ec-client-link:focus-visible{outline:2px solid #034ea2;outline-offset:3px}
#tf-root .tf-annual .tiny{font-size:11px;line-height:1.6;color:#405a6c}
#tf-root .tf-month-cell{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:72px;width:100%;padding:10px 6px;border:1px solid transparent;border-radius:7px;font-size:12px;line-height:1.4;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#tf-root .tf-month-cell small{display:block;font-size:10px;line-height:1.4}
#tf-root .tf-month-cell.tf-sent{background:#034ea2;color:#fff}
#tf-root .tf-month-cell.tf-pending{background:#edf5fc;color:#174d78}
#tf-root .tf-month-cell.tf-automatic{background:#f1f3f5;color:#414b57}
@media(max-width:900px){#tf-root .tf-parcel-workspace>.cards{grid-template-columns:repeat(2,minmax(0,1fr))}#tf-root .tf-parcel-annual-toolbar{grid-template-columns:140px minmax(0,1fr)}#tf-root .tf-parcel-annual-toolbar .tf-parcel-search{grid-column:2}#tf-root .tf-parcel-annual-toolbar>.btn{grid-column:1/-1;justify-self:start}}
@media(max-width:480px){#tf-root .tf-parcel-annual-toolbar{grid-template-columns:minmax(0,1fr)}#tf-root .tf-parcel-annual-toolbar .tf-parcel-search{grid-column:auto}#tf-root .tf-annual th:first-child,#tf-root .tf-annual td:first-child{width:180px;min-width:180px;max-width:180px}#tf-root .tf-annual{min-width:1524px}#tf-root .tf-parcel-quick-filters .btn{min-height:44px}}
@media(max-width:900px){#tf-root .tf-parcel-scroll-hint{display:block}}
@media print{#tf-root .tf-parcel-scroll-hint{display:none}}





/* Per-competence reasons remain visible and distinct from sent/overdue. */
#tf-root .tf-key-not-sent{--tf-key-color:#a64b0b}
#tf-root .tf-parcel-not-sent{--tf-parcel-surface:#fff4e7;--tf-parcel-ink:#8a3c08;--tf-parcel-muted:#814b22}
#tf-root .tf-installment-card.tf-not-sent,#tf-root .tf-month-cell.tf-not-sent{background:#fff4e7;color:#8a3c08;border:1px solid #dca46f}
#tf-root .tf-installment-reason{margin:2px 0;font-size:12px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;color:inherit}
#tf-root .tf-annual-reason{display:block;text-align:left;white-space:pre-wrap;line-height:1.5;font-size:11px;color:inherit}
#tf-root .tf-installment-card .btn:focus-visible{outline:2px solid #034ea2;outline-offset:2px}
#tf-reason-form{display:grid;gap:12px;max-width:100%}
#tf-reason-form p{margin:0;line-height:1.5}
#tf-reason-form .field{display:grid;gap:7px;font-weight:600}
#tf-reason-text{box-sizing:border-box;width:100%;resize:vertical;min-height:110px;max-height:45vh;line-height:1.5;color:#173f5b;background:#fff;border:1px solid #91aab9;border-radius:7px;padding:10px;font:400 14px/1.5 Montserrat,Arial,sans-serif;caret-color:#034ea2}
#tf-reason-text::placeholder{color:#526b7d;opacity:1}
#tf-reason-text:focus-visible{outline:2px solid #034ea2;outline-offset:2px}
#tf-reason-error{color:#862b2b;font-size:12px;line-height:1.5}

/* Current/upcoming installments use an inline row; overdue batches keep their detail. */
#tf-root .tf-parcel-compact>td{padding-top:10px;padding-bottom:10px;vertical-align:middle}
#tf-root .tf-parcel-compact .tf-installment-list{grid-auto-columns:minmax(340px,1fr);align-items:start;padding-bottom:2px}
#tf-root .tf-parcel-compact .tf-installment-card{grid-template-columns:minmax(90px,1fr) auto auto;grid-template-rows:auto auto auto;column-gap:8px;row-gap:2px;padding:8px 10px;align-items:center}
#tf-root .tf-parcel-compact .tf-installment-heading{grid-column:1;grid-row:1;justify-content:flex-start;gap:8px;align-items:baseline}
#tf-root .tf-parcel-compact .tf-installment-card>small:first-of-type{grid-column:1;grid-row:2}
#tf-root .tf-parcel-compact .tf-installment-card>small:nth-of-type(2){grid-column:1;grid-row:3}
#tf-root .tf-parcel-compact .tf-installment-card>.btn{width:auto;max-width:126px;min-height:40px;padding:6px 8px;margin:0;align-self:center;line-height:1.3}
#tf-root .tf-parcel-compact .tf-installment-card>.btn:first-of-type{grid-column:2;grid-row:1 / span 3}
#tf-root .tf-parcel-compact .tf-installment-card>.btn:nth-of-type(2){grid-column:3;grid-row:1 / span 3}
#tf-root .tf-parcel-compact .tf-not-sent>.btn:first-of-type{grid-column:2 / span 2;grid-row:1 / span 2;justify-self:end}
#tf-root .tf-parcel-compact .tf-installment-reason{grid-column:1 / -1;grid-row:3;margin-top:3px}
@media(max-width:480px){#tf-root .tf-parcel-compact .tf-installment-card>.btn,#tf-root .tf-parcel-compact .tf-parcel-actions .btn{min-height:44px}}

