/* Control Total · Por cobrar desde Odoo. Misma línea visual de la vista estándar. Sin dorado. */
.ct-cxc-page{min-width:0}
.ct-cxc-tabs{display:flex;gap:6px;max-width:1280px;margin:0 auto;padding:16px 24px 0;flex-wrap:wrap}
.ct-cxc-tabs button{--co:#E0571B;display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 16px;border-radius:10px;border:1px solid #DCE4ED;background:#fff;color:#33445A;font:600 13.5px Inter,system-ui,sans-serif;cursor:pointer}
.ct-cxc-tabs button[data-scope=NM2]{--co:#2F6596}.ct-cxc-tabs button[data-scope=Personal]{--co:#8A97A8}
.ct-cxc-tabs button i{width:8px;height:8px;border-radius:50%;background:var(--co)}
.ct-cxc-tabs button:hover{border-color:#C3D0DF;background:#F6F8FB}
.ct-cxc-tabs button.on{background:#193651;border-color:#193651;color:#fff}
.ct-cxc-tabs button.on i{box-shadow:0 0 0 2px #fff}
.ct-cxc-tabs button:focus-visible{outline:2px solid #0294CE;outline-offset:2px}
.ct-std.ct-cxc{padding-top:12px}
.ct-cxc .ct-std-status{margin-top:12px}
/* antigüedad */
.ct-cxc-aging{margin-top:14px;background:#fff;border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--sh);padding:18px 20px}
.ct-cxc-ah h2{font-family:var(--disp);font-size:18px;color:var(--n950);margin:4px 0 14px;font-weight:700}
.ct-cxc-bar{display:flex;height:14px;border-radius:99px;overflow:hidden;background:var(--line2);gap:2px}
.ct-cxc-bar i{display:block;height:100%}
.ct-cxc .b0{background:var(--in)}.ct-cxc .b1{background:#7FA3C4}.ct-cxc .b2{background:#4F7BA3}.ct-cxc .b3{background:var(--n700)}.ct-cxc .b4{background:#C9566A}.ct-cxc .b5{background:var(--out)}
.ct-cxc-leg{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-top:14px}
.ct-cxc-leg .lg{display:flex;flex-direction:column;gap:2px;min-width:0}
.ct-cxc-leg .lh{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--mut);white-space:nowrap}
.ct-cxc-leg .lh i{width:10px;height:10px;border-radius:3px;flex:none}
.ct-cxc-leg b{font-family:var(--disp);font-size:16px;color:var(--n950);font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ct-cxc-leg small{font-size:11.5px;color:var(--mut)}
/* partidas sin cliente */
.ct-cxc-loose{margin-top:12px;background:#fff;border:1px solid #EFC9D0;border-radius:var(--r);overflow:hidden}
.ct-cxc-lb{width:100%;display:flex;align-items:center;gap:12px;padding:12px 16px;background:var(--out-s);border:0;text-align:left;cursor:pointer;font:inherit;color:var(--ink2)}
.ct-cxc-lb .ct-std-ic{color:var(--out)}
.ct-cxc-lb span{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.ct-cxc-lb b{color:var(--out);font-weight:600}
.ct-cxc-lb small{font-size:12.5px}
.ct-cxc-lb em{font-style:normal;font-weight:600;color:var(--n800);white-space:nowrap;font-size:13px}
.ct-cxc-lt{padding:4px 0}
/* lista de clientes */
.ct-cxc-tbl{border-top:1px solid var(--line)}
.ct-cxc-th,.ct-cxc-rb{display:grid;grid-template-columns:minmax(0,1fr) 130px 140px 150px 28px;gap:14px;align-items:center;padding:0 20px}
.ct-cxc-th{height:40px;background:#F7F9FC;border-bottom:1px solid var(--line);font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--mut);font-weight:600}
.ct-cxc .r{text-align:right}
.ct-cxc-row{border-bottom:1px solid var(--line2)}
.ct-cxc-rb{width:100%;min-height:60px;background:#fff;border:0;text-align:left;cursor:pointer;font:inherit;color:var(--ink);padding-top:10px;padding-bottom:10px}
.ct-cxc-rb:hover{background:#FAFBFD}
.ct-cxc-rb:focus-visible{outline:2px solid #0294CE;outline-offset:-2px}
.ct-cxc-rb .cl{min-width:0;display:flex;flex-direction:column;gap:3px}
.ct-cxc-rb .cl b{font-weight:600;color:var(--n950);overflow-wrap:anywhere}
.ct-cxc-rb .cl small{font-size:12px;color:var(--mut);overflow-wrap:anywhere}
.ct-cxc .am{font-weight:700;color:var(--n950);font-variant-numeric:tabular-nums;white-space:nowrap}
.ct-cxc .am.neg{color:var(--in)}
.ct-cxc .ov{color:var(--out);font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.ct-cxc .mu{color:var(--mut);font-variant-numeric:tabular-nums;white-space:nowrap}
.ct-cxc-rb .ch svg{width:18px;height:18px;fill:none;stroke:var(--mut);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s}
.ct-cxc-row.open .ct-cxc-rb{background:#F4F7FB}
.ct-cxc-row.open .ch svg{transform:rotate(90deg)}
.ct-cxc-age{display:inline-flex;align-items:center;height:22px;padding:0 9px;border-radius:99px;font-size:11.5px;font-weight:600;white-space:nowrap}
.ct-cxc-age.ok{background:var(--in-s);color:var(--in)}
.ct-cxc-age.mid{background:var(--line2);color:var(--n800)}
.ct-cxc-age.warn{background:var(--out-s);color:var(--out)}
.ct-cxc-age.bad{background:var(--out);color:#fff}
.ct-cxc-age.none{color:var(--mut);padding:0}
/* detalle */
.ct-cxc-det{background:#F7F9FC;padding:6px 20px 16px;border-top:1px solid var(--line2)}
.ct-cxc-sub{background:#fff;border:1px solid var(--line);border-radius:12px;margin-top:10px;overflow:hidden}
.ct-cxc-sub h4{margin:0;padding:12px 16px 8px;font-family:var(--disp);font-size:14.5px;color:var(--n950)}
.ct-cxc-hint{margin:-2px 16px 8px;font-size:12px;color:var(--mut)}
.ct-cxc-it{display:grid;grid-template-columns:minmax(0,1.5fr) 110px 110px 120px 120px 120px;gap:12px;align-items:center;padding:9px 16px;border-top:1px solid var(--line2);font-size:13px}
.ct-cxc-it.head{font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--mut);font-weight:600;background:#F7F9FC;padding-top:8px;padding-bottom:8px}
.ct-cxc-it.ot{grid-template-columns:minmax(0,1fr) 110px 140px}
.ct-cxc-it.lj{grid-template-columns:minmax(0,1fr) 80px 110px 110px 140px}
.ct-cxc-it .doc{min-width:0;display:flex;flex-direction:column;gap:2px}
.ct-cxc-it .doc b{font-weight:600;font-family:var(--mono);font-size:12.5px;color:var(--ink);overflow-wrap:anywhere}
.ct-cxc-it.ot .doc b,.ct-cxc-it.lj .doc b{font-family:inherit;font-weight:500;font-size:13px}
.ct-cxc-it .doc small{font-size:11.5px;color:var(--mut);overflow-wrap:anywhere}
.ct-cxc-it .doc .ct-std-tag{margin:2px 0 0;align-self:flex-start}
.ct-cxc-it .dt{color:var(--ink2);white-space:nowrap}
.ct-cxc-rule{margin:14px 4px 0;font-size:12px;color:var(--mut)}
@media (max-width:1100px){.ct-cxc-leg{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:760px){
 .ct-cxc-tabs{padding:12px 12px 0}.ct-cxc-tabs button{flex:1;justify-content:center;padding:0 10px}
 .ct-cxc-leg{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ct-cxc-aging{padding:14px}
 .ct-cxc-th{display:none}
 .ct-cxc-rb{grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;padding:12px 14px}
 .ct-cxc-rb .cl{grid-column:1;grid-row:1}.ct-cxc-rb .am{grid-column:2;grid-row:1}
 .ct-cxc-rb .ag{grid-column:1;grid-row:2}.ct-cxc-rb .ov{grid-column:2;grid-row:2;font-size:12px}
 .ct-cxc-rb .ov::before{content:attr(data-l) " ";color:var(--mut);font-weight:500}
 .ct-cxc-rb .ch{display:none}
 .ct-cxc-det{padding:4px 10px 12px}
 .ct-cxc-it,.ct-cxc-it.ot,.ct-cxc-it.lj{grid-template-columns:minmax(0,1fr) auto;gap:3px 10px;padding:10px 12px}
 .ct-cxc-it.head{display:none}
 .ct-cxc-it .doc{grid-column:1;grid-row:1}.ct-cxc-it .am{grid-column:2;grid-row:1}
 .ct-cxc-it .dt,.ct-cxc-it .mu{font-size:11.5px}
 .ct-cxc-it .dt[data-l]::before,.ct-cxc-it .mu[data-l]::before{content:attr(data-l) " ";color:var(--mut)}
 .ct-cxc-it>span:nth-child(n+2):not(.am){grid-column:1}
 .ct-cxc-it .ag{grid-column:2;justify-self:end}
 .ct-cxc-lb{flex-wrap:wrap}.ct-cxc-lb em{width:100%;padding-left:28px}
}
.ct-cxc .ov.zero{color:var(--mut);font-weight:500}
