.debt-titlebar,.debt-filter-bar,.debt-hero,.debt-analysis-grid,.debt-chart-grid,.debt-party-grid{display:grid;gap:14px}.debt-titlebar{grid-template-columns:1fr auto;align-items:center;margin-bottom:14px}.debt-titlebar h2{margin:4px 0;font-size:1.45rem}.debt-titlebar p{margin:0;color:var(--muted);font-size:.75rem}.debt-filter-bar{grid-template-columns:repeat(8,minmax(110px,1fr));align-items:end;padding:14px;margin-bottom:14px}.debt-filter-bar label{display:grid;gap:5px}.debt-filter-bar label span{color:var(--muted);font-size:.62rem;font-weight:700}.debt-filter-search{grid-column:span 2}.debt-hero{grid-template-columns:auto 1fr minmax(230px,.65fr);align-items:center;padding:24px;margin-bottom:14px;border:1px solid color-mix(in srgb,var(--brand) 25%,var(--line));border-radius:24px;background:radial-gradient(circle at 5% 0,color-mix(in srgb,var(--brand) 16%,transparent),transparent 30%),linear-gradient(135deg,color-mix(in srgb,var(--surface) 96%,var(--brand)),var(--surface));box-shadow:var(--shadow)}.debt-health-gauge{display:grid;width:132px;height:132px;place-items:center;border-radius:50%;background:conic-gradient(var(--score-color) calc(var(--debt-score)*1%),var(--surface-2) 0);position:relative}.debt-health-gauge:after{content:"";position:absolute;inset:11px;border-radius:50%;background:var(--surface)}.debt-health-gauge div{z-index:1;display:grid;text-align:center}.debt-health-gauge strong{font-size:2rem;line-height:1;color:var(--score-color)}.debt-health-gauge span{font-size:.62rem;color:var(--muted)}.debt-health--excellent{--score-color:#20a279}.debt-health--medium{--score-color:#d89931}.debt-health--danger{--score-color:#d45e59}.debt-hero h2{margin:4px 0;color:var(--score-color);font-size:1.55rem}.debt-hero p{margin:0 0 5px;font-weight:700}.debt-hero small{color:var(--muted)}.debt-net-position{display:grid;gap:5px;padding:20px;border-inline-start:1px solid var(--line)}.debt-net-position span,.debt-net-position small{color:var(--muted);font-size:.67rem}.debt-net-position strong{font-size:1.45rem}.debt-kpi-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:11px;margin-bottom:14px}.debt-kpi{position:relative;overflow:hidden;display:grid;gap:10px;min-height:126px;padding:16px;border:1px solid var(--line);border-radius:17px;background:var(--surface);box-shadow:0 10px 28px rgb(25 61 70/6%)}.debt-kpi:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--tone,#6f8b94)}.debt-kpi>span,.debt-kpi>small{color:var(--muted);font-size:.65rem}.debt-kpi strong{font-size:1.05rem}.debt-kpi--danger{--tone:#d55f59}.debt-kpi--success{--tone:#20a279}.debt-kpi--upcoming{--tone:#dda13b}.debt-kpi--supplier{--tone:#5777bb}.debt-kpi--customer{--tone:#cb7748}.debt-kpi--net{--tone:var(--brand)}.debt-kpi--info{--tone:#8c6ab0}.debt-analysis-grid{grid-template-columns:1.6fr 1fr;margin-bottom:14px}.debt-smart-analysis,.debt-health-components{padding:20px}.trend-badge{padding:6px 10px;border-radius:20px;font-size:.64rem;font-weight:800}.trend-badge--up{color:#a84945;background:#fff0ee}.trend-badge--down{color:#178167;background:#e9f8f3}.smart-insight-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.smart-insight-grid>div{display:grid;gap:5px;padding:13px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}.smart-insight-grid span,.smart-insight-grid small{color:var(--muted);font-size:.61rem}.smart-insight-grid strong{font-size:.76rem}.health-factor{display:grid;gap:6px;margin:13px 0}.health-factor span{display:flex;justify-content:space-between;color:var(--muted);font-size:.68rem}.health-factor span b{color:var(--ink)}.health-factor i{overflow:hidden;height:8px;border-radius:10px;background:var(--surface-2)}.health-factor i em{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--brand),var(--accent))}.health-factor--days{padding:11px;border-radius:10px;background:var(--surface-2)}.debt-chart-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:14px}.debt-chart-grid .chart-panel{min-width:0}.debt-party-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:14px}.debt-party-panel{min-width:0;padding:18px}.debt-party-panel td strong,.debt-party-panel td small{display:block}.debt-party-panel td small{margin-top:3px;color:var(--muted);font-size:.58rem}.debt-status{display:inline-flex;padding:4px 8px;border-radius:20px;font-size:.58rem;font-weight:800;white-space:nowrap}.debt-status--current{color:#147b61;background:#e6f7f1}.debt-status--upcoming{color:#9b6514;background:#fff4df}.debt-status--overdue{color:#a84541;background:#ffebe9}.whatsapp-reminder{padding:6px 9px;border:0;border-radius:8px;color:#fff;background:#1fa765;font-size:.61rem;font-weight:800}.whatsapp-reminder:hover{background:#168a52}.muted{color:var(--muted);font-size:.6rem}.upcoming-obligations,.debt-reports-panel,.debt-detailed{padding:20px;margin-bottom:14px}.upcoming-timeline{display:grid;gap:8px}.upcoming-timeline article{display:grid;grid-template-columns:58px 1fr auto 70px;gap:12px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:13px}.upcoming-timeline time{display:grid;padding:6px;border-radius:9px;text-align:center;background:var(--surface-2)}.upcoming-timeline time strong{font-size:1rem}.upcoming-timeline time span,.upcoming-timeline div small{color:var(--muted);font-size:.56rem}.upcoming-timeline div{display:grid;gap:3px}.upcoming-timeline>b{font-size:.76rem}.upcoming-timeline em{padding:5px;border-radius:8px;color:#9b6514;background:#fff4df;font-size:.58rem;font-style:normal;text-align:center}.debt-report-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.debt-report-cards article{display:grid;gap:9px;padding:14px;border:1px solid var(--line);border-radius:13px;background:var(--surface-2)}.debt-report-cards article>span{color:var(--muted);font-size:.56rem}.debt-report-cards article>strong{font-size:.78rem}.debt-report-cards article>div{display:flex;gap:6px}.debt-report-cards a{padding:5px 8px;border-radius:7px;color:var(--brand);background:var(--surface);font-size:.59rem;font-weight:800}.table-inline-search{display:grid;gap:4px}.table-inline-search span{color:var(--muted);font-size:.56rem}.table-inline-search input{min-height:36px}.debt-detailed th[data-sort-key]{cursor:pointer}.debt-detailed th[data-sort-key]:hover{color:var(--brand)}@media(max-width:1450px){.debt-filter-bar{grid-template-columns:repeat(4,1fr)}.debt-kpi-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:1050px){.debt-hero{grid-template-columns:auto 1fr}.debt-net-position{grid-column:1/-1;border-inline-start:0;border-top:1px solid var(--line)}.debt-analysis-grid,.debt-party-grid{grid-template-columns:1fr}.debt-kpi-grid{grid-template-columns:repeat(2,1fr)}.debt-report-cards{grid-template-columns:repeat(2,1fr)}}@media(max-width:720px){.debt-titlebar{grid-template-columns:1fr}.debt-filter-bar{grid-template-columns:repeat(2,1fr)}.debt-filter-search{grid-column:span 2}.debt-hero{grid-template-columns:1fr;text-align:center}.debt-health-gauge{margin:auto}.debt-chart-grid{grid-template-columns:1fr}.smart-insight-grid{grid-template-columns:repeat(2,1fr)}.debt-report-cards{grid-template-columns:1fr}.upcoming-timeline article{grid-template-columns:52px 1fr}.upcoming-timeline>b,.upcoming-timeline em{grid-column:2}}@media(max-width:480px){.debt-kpi-grid,.smart-insight-grid{grid-template-columns:1fr}.debt-filter-bar{grid-template-columns:1fr}.debt-filter-search{grid-column:auto}}@media print{.debt-filter-bar,.debt-titlebar .actions,.whatsapp-reminder,.sidebar,.topbar,.app-footer{display:none!important}.stage{margin:0!important}.content{max-width:none!important}.debt-chart-grid{grid-template-columns:repeat(2,1fr)}.debt-party-grid{grid-template-columns:1fr}.debt-kpi-grid{grid-template-columns:repeat(5,1fr)}}
