#nav_debtors{position:relative;padding-right:18px}.debt-badge{position:absolute;right:-5px;top:-7px;border-radius:20px;background:#dc2626;color:white;min-width:20px;padding:2px 5px;font-size:11px;font-weight:800;border:2px solid white}.debt-kpis{display:flex;gap:20px;flex-wrap:wrap;padding:16px 0}.debt-tabs{flex-wrap:wrap;margin:10px 0}.debt-proof-tab{border:2px solid #d97706;background:#fffbeb;color:#92400e}.debt-import{margin:15px 0;padding:12px;background:#f8fafc;border:1px solid #d0d5dd;border-radius:8px}.debt-customer{padding:14px;margin:14px 0;border:1px solid #d0d5dd;border-radius:10px}.debt-customer h3{margin:0 0 7px}.debt-customer>.row select{max-width:270px;width:auto}.debt-customer td{vertical-align:top;min-width:100px}.debt-customer td:last-child{min-width:250px}.debt-customer .row{flex-wrap:wrap;gap:6px}.debt-notes{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;max-height:300px;overflow:auto;font-size:12px}.debt-customer summary{cursor:pointer;margin:9px 0}.debt-tabs b{margin-left:5px}@media(max-width:600px){.debt-customer{padding:9px}.debt-tabs .btn{font-size:11px}.debt-kpis{gap:10px}.debt-customer>.row select{max-width:100%;width:100%}}
@media(max-width:600px){.debt-customer .scroll{overflow:visible}.debt-customer table,.debt-customer tbody{display:block;width:100%}.debt-customer thead{display:none}.debt-customer tr{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:12px 0;border-bottom:1px solid #d0d5dd}.debt-customer td,.debt-customer td:last-child{display:block;min-width:0;border:0;padding:3px;overflow-wrap:anywhere}.debt-customer td::before{display:block;font-size:10px;font-weight:700;color:#667085;margin-bottom:3px}.debt-customer td:nth-child(1)::before{content:'Título / parcela'}.debt-customer td:nth-child(2)::before{content:'Vencimento'}.debt-customer td:nth-child(3)::before{content:'Valor na entrada'}.debt-customer td:nth-child(4)::before{content:'Saldo'}.debt-customer td:nth-child(5){grid-column:1/-1}.debt-customer td:nth-child(5)::before{content:'Situação'}.debt-customer td:last-child{grid-column:1/-1}.debt-customer td:last-child .btn{font-size:11px}}

.debt-trade-name{margin:0 0 8px;color:#334155;font-size:13px;overflow-wrap:anywhere}.debt-trade-name span{color:#64748b;font-size:11px}.debt-sort-note{margin:12px 0 0;color:#64748b;font-size:11px}
#nav.nav>#nav_debtors{padding-right:28px}#nav_debtors .debt-badge{right:4px;top:4px}

.debt-update{margin:0 0 18px;padding:14px 16px;border:1px solid #93c5fd;border-left:5px solid #2563eb;border-radius:8px;background:#eff6ff;color:#1e3a8a}.debt-update>div:first-child{display:flex;gap:8px 16px;align-items:baseline;flex-wrap:wrap}.debt-update>div:first-child>span{font-weight:700}.debt-update strong{font-size:19px}.debt-update-sources{display:flex;gap:10px 28px;flex-wrap:wrap;margin-top:10px}.debt-update-sources>div{display:grid;gap:3px;font-size:12px}.debt-update-sources small{color:#475569;font-size:10px}.debt-copy-actions{margin:0 0 12px}.debt-copy-actions .btn{white-space:normal}

.debt-disregard{color:#9a3412;border-color:#fed7aa;background:#fff7ed}.debt-disregard-reason{color:#475569;max-width:500px;font-size:12px;overflow-wrap:anywhere}

.debt-customer-heading{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;margin-bottom:7px}.debt-customer-heading h3{margin:0}.debt-count-note{font-size:11px;color:#64748b;margin:0}.debt-customer-heading .btn{white-space:normal}

.debt-pix-bar{margin:0 0 14px;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px 14px}.debt-pix-actions{order:1;display:flex;flex-wrap:wrap;gap:8px}.debt-pix-button{display:inline-flex;align-items:center;gap:8px;background:#128653;color:#fff;border-color:#0d7044;padding:8px 12px;text-align:left}.debt-pix-button:hover{background:#0d7044}.debt-pix-button:focus-visible{outline:3px solid #2bbbac;outline-offset:3px}.debt-pix-button img{object-fit:contain;background:white;border-radius:5px;flex-shrink:0}.debt-pix-button small{display:block;font-size:10px;line-height:1.4;font-weight:500}.debt-pix-bar [role=status]{font-size:12px;color:#0d7044}

.debt-trade-editor{margin:0 0 9px}.debt-trade-editor label{display:block;font-size:10px;font-weight:400;color:#64748b;margin-bottom:3px}.debt-trade-editor>div{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.debt-trade-editor input{width:260px;max-width:100%;padding:5px 7px;font-size:12px;min-width:0}.debt-trade-editor .btn{font-size:11px;padding:5px 9px}

#nav.nav .debt-unseen-update{background:#fef3c7;color:#78350f;border-color:#b45309;outline:2px solid #b45309;outline-offset:-2px;animation:debt-update-pulse 1.25s ease-in-out infinite}
.debt-update-flag{padding:2px 5px;border-radius:4px;background:#92400e;color:#fff;font-size:9px;line-height:1.25;font-weight:800}
@keyframes debt-update-pulse{0%,100%{box-shadow:0 0 0 0 #d9770644}50%{box-shadow:0 0 0 4px #d9770699;background:#fbbf24}}
@media(prefers-reduced-motion:reduce){#nav.nav .debt-unseen-update{animation:none}}
.debt-factory-overview{margin:0 0 18px;padding:14px 16px;border:1px solid #cbd5e1;border-radius:8px;background:#f8fafc}
.debt-factory-overview h3{margin:0 0 12px}
.debt-factory-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:10px}
.debt-factory-card{display:grid;align-content:start;gap:5px;padding:12px;border:1px solid #cbd5e1;border-radius:7px;background:#fff}
.debt-factory-new{border:2px solid #b45309;background:#fffbeb;padding:11px}
.debt-factory-name{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap}
.debt-factory-name h4,.debt-factory-card p{margin:0}
.debt-factory-name span{background:#92400e;color:#fff;border-radius:4px;padding:2px 5px;font-size:10px;font-weight:800}
.debt-factory-card strong{font-size:16px}
.debt-factory-card small{color:#475569}

.debt-collection-filter,.debt-collection-options{margin:12px 0;border:1px solid #cbd5e1;border-radius:8px;padding:10px 12px}
.debt-collection-filter legend,.debt-collection-options legend{padding:0 5px;font-weight:700}
.debt-collection-filter .row{flex-wrap:wrap}
.debt-collection-options label{display:flex;gap:8px;align-items:center;margin:6px 0;cursor:pointer}
.debt-collection-options input{width:auto;margin:0;accent-color:#166534}
.debt-collection-chip{display:inline-block;background:#f1f5f9;color:#334155;border:1px solid transparent;border-radius:6px;padding:3px 8px;font:inherit;font-size:11px;font-weight:800}
button.debt-collection-chip{cursor:pointer;min-height:32px}
.debt-collection-chip[aria-pressed="true"]{outline:2px solid currentColor;outline-offset:1px}
.debt-collection-chip[data-debt-status="charged"]{background:#ffedd5;color:#9a3412}
.debt-collection-chip[data-debt-status="unanswered"]{background:#fef08a;color:#713f12}
.debt-collection-chip[data-debt-status="unresponsive"]{background:#fee2e2;color:#991b1b}

#nav_debtors .debt-badge-seller{position:static;margin-left:4px;border:0}
#nav_debtors .debt-badge-empty{background:#475569}
