/* V137 — Janela de cobrança */
.cw-top{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:12px}
.cw-top h2{margin:0;font-size:22px}.cw-top p{margin:4px 0 0;color:#667085}
.cw-filters{display:flex;flex-direction:column;gap:14px;padding:18px 20px;margin-bottom:16px}
.cw-search{display:flex;gap:10px}
.cw-search input{margin:0;font-size:15px;padding:12px 14px}
.cw-search button{white-space:nowrap;padding:0 22px}
.cw-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.cw-label{font-size:12px;font-weight:700;color:#667085;text-transform:uppercase;letter-spacing:.05em;min-width:70px}
.cw-ml{margin-left:12px;min-width:0}
.cw-chips{display:flex;flex-wrap:wrap;gap:8px}
.cw-chips button{display:inline-flex;align-items:center;gap:8px;background:#f3f6f9;color:#2f3d57;border:1px solid #e1e7ef;border-radius:999px;padding:7px 8px 7px 14px;font-weight:600;font-size:13px}
.cw-chips button b{background:#fff;border-radius:999px;padding:2px 9px;font-size:12px;color:#42506a;min-width:28px;text-align:center}
.cw-chips button:hover{border-color:#244180}
.cw-chips button.active{background:#244180;border-color:#244180;color:#fff}
.cw-chips button.active b{background:rgba(255,255,255,.22);color:#fff}
.cw-seg{display:inline-flex;background:#eef2f6;border-radius:10px;padding:3px;gap:2px}
.cw-seg button{background:transparent;color:#42506a;padding:7px 14px;border-radius:8px;font-size:13px}
.cw-seg button.active{background:#fff;color:#1c356a;box-shadow:0 1px 3px rgba(16,24,40,.12)}
#cwCreditorSlot select{margin:0;min-width:200px;padding:8px 10px}
.cw-more summary{cursor:pointer;color:#1c356a;font-weight:700;font-size:14px}
.cw-more-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px 14px;margin-top:6px}
.cw-more-grid label{margin:6px 0}
.cw-more-grid small{font-size:11px}
.cw-hidden{display:none!important}
.cw-exports{display:flex;gap:8px;flex-wrap:wrap;border-top:1px solid #eef1f5;padding-top:12px}
.cw-exports button{font-size:13px;padding:8px 12px}
.cw-results{padding:18px 20px}
.cw-results-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.cw-results-head h2{margin:0;font-size:18px}.cw-results-head span{color:#667085;font-size:13px}
.cw-scroll{overflow-x:auto}
.cw-table{font-size:13.5px}
.cw-table th{font-size:10.5px;white-space:nowrap}
.cw-table td{vertical-align:middle;padding:10px 10px}
.cw-table td small{display:block;color:#8a94a6;font-size:12px}
.cw-table .r{text-align:right;white-space:nowrap}
.cw-ck{width:34px}.cw-ck input,.cw-ck label{margin:0;width:auto}
.cw-ck label{display:block}
.cw-pill{display:inline-block;font-size:11.5px;font-weight:700;padding:3px 9px;border-radius:999px;white-space:nowrap}
.cw-pill.ok{background:#e6efff;color:#365fa5}.cw-pill.muted{background:#f1f3f5;color:#6b7280}
.cw-yes{color:#1c356a;font-weight:800}.cw-no{color:#98a2b3}
.cw-muted{color:#8a94a6}
.sit{display:inline-block;font-size:11.5px;font-weight:800;padding:4px 10px;border-radius:999px;white-space:nowrap;letter-spacing:.01em}
.sit-novo{background:#eef4ff;color:#3559a8}
.sit-andamento{background:#fff4e0;color:#9a5b00}
.sit-quitado{background:#e3f7ef;color:#1b356e}
.sit-encerrado{background:#f1f2f4;color:#4b5565}
.sit-suspenso{background:#fdecec;color:#b42318}
/* cliente aberto: corrige o layout herdado (aside/main do menu lateral) */
.collection-layout>main{padding:0;overflow:visible}
.collection-layout>aside{background:none;color:inherit;padding:0;position:static;height:auto}
.collection-client-head{background:#fff;border:1px solid #e0e5ee;border-radius:16px;padding:14px 18px}
.collection-client-head .status{margin-left:6px}
#cwSitBadge .sit{font-size:12.5px;padding:6px 12px}
.debt-creditor table{font-size:13.5px}
/* cartão situação da cobrança */
.cs-card{display:flex;flex-direction:column;gap:12px}
.cs-in-client{margin-bottom:18px}
.cs-head{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}
.cs-head h2{margin:4px 0}.cs-head h2 .sit{font-size:14px;padding:6px 14px}
.cs-head p{margin:0;color:#667085;font-size:13px}
.cs-sum{display:grid;grid-template-columns:repeat(4,minmax(92px,1fr));gap:8px}
.cs-sum>div{background:#f6f8fa;border-radius:10px;padding:8px 10px;text-align:center}
.cs-sum b{display:block;font-size:20px}.cs-sum span{display:block;font-size:12px;color:#42506a;font-weight:600}.cs-sum small{font-size:11px}
.cs-sum-cancelado b{color:#4b5565}.cs-sum-suspenso b{color:#b42318}.cs-sum-pago b{color:#1b356e}
.cs-group{border:1px solid #e6ebf1;border-radius:12px;overflow:hidden}
.cs-group-head{display:flex;justify-content:space-between;align-items:center;background:#f6f9fb;padding:10px 14px}
.cs-group-head span{display:block;color:#667085;font-size:12px}
.cs-table{font-size:13px}.cs-table th,.cs-table td{padding:8px 12px}
.cs-table tbody tr{cursor:default}
.cs-table input{width:auto;margin:0}
.cs-table .r{text-align:right}
.cs-row-cancelado td,.cs-row-pago td,.cs-row-estornado td{color:#8a94a6}
.cs-st{font-size:11.5px;font-weight:700;padding:3px 8px;border-radius:999px;white-space:nowrap}
.cs-st-aberto{background:#fff4e0;color:#9a5b00}.cs-st-pago{background:#e3f7ef;color:#1b356e}.cs-st-cancelado{background:#f1f2f4;color:#4b5565}.cs-st-suspenso{background:#fdecec;color:#b42318}.cs-st-estornado{background:#f1f2f4;color:#8a94a6}
.cs-reason{font-size:12px;color:#667085;max-width:260px}
.cs-actions{border-top:1px solid #eef1f5;padding-top:12px}
.cs-actions label{margin:0 0 10px}
.cs-btns{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.cs-btns span{color:#667085;font-size:13px;margin-right:auto}
.cs-danger{background:#b42318}.cs-warnbtn{background:#d97706}
.cs-result{min-height:1em;margin:8px 0 0;font-weight:600;color:#1c356a}.cs-result.err{color:#b42318}
.cs-flash{background:#e7f8f2;border:1px solid #c4cee5;color:#182c56;padding:10px 14px;border-radius:10px;font-weight:600}
.cs-warn{background:#fff7e6;border:1px solid #fde2b0;color:#8a5300;padding:10px 14px;border-radius:10px;font-size:13px}
.cs-note{margin:0;font-size:13px}
.cs-events summary{cursor:pointer;font-weight:700;color:#42506a;font-size:14px}
.cs-events>div{padding:8px 0;border-top:1px solid #eef1f5;font-size:13px}
.cs-events span{color:#667085}
@media (max-width:1000px){.cw-more-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cs-sum{grid-template-columns:repeat(2,1fr)}}
.cw-table td:nth-child(7),.cw-table td:nth-child(8){white-space:nowrap}
.cw-fase{background:#f1f3f5!important;color:#475467!important}

/* V144 — painel lateral do cliente na Janela */
.collection-layout{grid-template-columns:minmax(0,1fr) 340px;align-items:start}
.collection-layout>main .card{overflow-x:auto}
.collection-layout>aside{position:sticky;top:12px;max-height:calc(100vh - 24px);overflow:auto;border-radius:16px}
.cw-side{padding:0!important;overflow:hidden}
.cw-side-tabs{display:flex;gap:2px;padding:8px;background:#f3f6f9;border-bottom:1px solid #e3e8ef}
.cw-side-tabs button{flex:1;background:transparent;color:#475467;border-radius:8px;padding:8px 4px;font-size:12.5px;white-space:nowrap}
.cw-side-tabs button.active{background:#fff;color:#1c356a;box-shadow:0 1px 3px rgba(16,24,40,.12)}
.cw-side-pane{padding:14px 16px 16px}
.cw-side-pane label{margin:6px 0}
.cw-side-pane textarea{min-height:90px}
.cw-side-pane small{font-size:11.5px}
.cw-side-pane>button,.cw-side-pane label+button,.cw-side-pane textarea+button,.cw-side-pane small+button{width:100%;margin-top:8px}
.cw-side-sec{padding:4px 0 12px;border-bottom:1px solid #eef1f5;margin-bottom:12px}
.cw-side-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.cw-side-head b{font-size:13px;text-transform:uppercase;letter-spacing:.05em;color:#56637a}
.cw-side-head .link{padding:2px 0;font-size:13px}
.cw-ph{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 0}
.cw-ph-n{font-weight:700;font-size:14px}.cw-ph-n i{font-style:normal;color:#d97706}
.cw-tag{font-size:11px;font-weight:700;padding:2px 8px;border-radius:999px;white-space:nowrap}
.cw-tag.ok{background:#e3f7ef;color:#1b356e}.cw-tag.warn{background:#fff4e0;color:#9a5b00}.cw-tag.bad{background:#fdecec;color:#b42318}.cw-tag.muted{background:#f1f3f5;color:#6b7280}
.cw-addr{padding:4px 0}.cw-addr b{display:block;font-size:13.5px}.cw-addr small{color:#667085}
.cw-mail input{margin:0 0 8px}.cw-mail button{width:100%}
.cw-full{width:100%}
.cw-side-pane .document-line{border-top:1px solid #eef1f5;padding:8px 0}
.debt-creditor th,.debt-creditor td{padding:10px 8px;white-space:nowrap}
.debt-creditor{overflow-x:auto}
/* V180: telefone/e-mail de contato (um por cliente) */
.cw-ph{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.cw-ph-contact{background:#f0f7f2;border-radius:8px;padding:4px 6px;margin:0 -6px}
.cw-ct{margin-left:auto;font-size:11.5px;padding:3px 8px;border-radius:999px;border:1px solid #cfd6dd;background:#fff;color:#4a5560;cursor:pointer;line-height:1.3;min-height:0;box-shadow:none}
.cw-ct:hover{border-color:#2e7d4f;color:#2e7d4f}
.cw-ct.on{background:#2e7d4f;border-color:#2e7d4f;color:#fff;font-weight:600}
.cw-ct-help{display:block;margin-top:6px;font-size:11.5px}
.cw-side .cw-ct:focus,.cw-side .cw-ct:active{background:#fff;color:#2e7d4f;border-color:#2e7d4f;outline:none}.cw-side .cw-ct.on:focus{background:#2e7d4f;color:#fff}
