.clientes-new .pcr-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.clientes-new .pcr-kpi{cursor:pointer;text-align:left;border:1px solid #dbeafe;border-top:3px solid #2563eb;border-radius:12px;padding:16px;background:#fff;color:#0f172a}.clientes-new .pcr-kpi strong{display:block;font-size:clamp(17px,1.7vw,27px);margin:9px 0}.clientes-new .pcr-kpi:hover,.clientes-summary button:hover{background:#ecfdf5}.clientes-new .pcr-kpi span{font-size:12px;color:#64748b}.clientes-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;margin:10px 0}.clientes-summary button{text-align:left;background:#f8fafc;border:1px solid #e2e8f0;border-radius:9px;padding:12px;color:#0f172a;cursor:pointer}.clientes-summary span{display:block;font-size:12px;color:#64748b;margin-top:6px}.clientes-new .pcr-dialog{width:min(1100px,94vw);max-height:90vh;border:1px solid #cbd5e1;border-radius:14px;padding:22px}.clientes-new .pcr-dialog::backdrop{background:#0f172a66}.clientes-new .pcr-dialog header{display:flex;justify-content:space-between;gap:16px}.clientes-new th,.clientes-new td{font-size:12px}.clientes-new .pcr-scroll{max-height:65vh}.clientes-new .pdg-tabs{flex-wrap:wrap}.clientes-new [aria-current=page]{background:#eff6ff;color:#2563eb;border-bottom:2px solid #2563eb}.clientes-new [hidden]{display:none!important}@media(max-width:900px){.clientes-new .pcr-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.clientes-new .pcr-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}@media(prefers-reduced-motion:no-preference){.clientes-new .pcr-panel{animation:clientes-appear .18s ease-out}@keyframes clientes-appear{from{opacity:.4}to{opacity:1}}}
.clientes-new{color:#0f172a}.clientes-new button,.clientes-new input,.clientes-new select{font:inherit}.clientes-new button{border:1px solid #cbd5e1;border-radius:8px;padding:9px 12px;background:#fff;color:#0f172a;cursor:pointer}.clientes-new button:disabled{opacity:.5;cursor:default}.clientes-new :focus-visible{outline:3px solid #10b981;outline-offset:2px}.clientes-new label{display:flex;flex-direction:column;gap:7px}.clientes-new input,.clientes-new select{min-height:42px;border:1px solid #cbd5e1;border-radius:8px;padding:8px;box-sizing:border-box}.clientes-new .report-more summary{padding:10px 15px;cursor:pointer}.clientes-new .report-more .cqz-budget-more-menu button{width:100%;text-align:left}.clientes-new .pcr-kpi:nth-child(2){border-top-color:#10b981}.clientes-new .pcr-kpi:nth-child(3){border-top-color:#f59e0b}.clientes-new .pcr-kpi:nth-child(5){border-top-color:#ef4444}
/* Vista de trabajo y ficha comercial. */
#clientes-informe .pcr-head{margin-bottom:12px}#clientes-informe .pcr-head p{font-size:14px}#clientes-informe .pcr-status{font-size:13px;line-height:1.4;margin:4px 0 12px;color:#64748b}#clientes-informe .pcr-status:empty{display:none}#clientes-informe .pcr-status.pcr-error{color:#b91c1c}#clientes-informe .cl-owner-card{border-left:4px solid var(--cl-owner);padding:14px 16px;min-height:90px}#clientes-informe .cl-owner-card strong{font-size:14px;color:var(--cl-owner)}#clientes-informe .cl-owner-card span{font-size:13px;line-height:1.5}#clientes-informe .cl-owner-card[aria-pressed=true]{outline:2px solid var(--cl-owner);outline-offset:1px;background:#f0fdfa}#clientes-informe .cl-owner-badge{display:inline-block;border:1px solid var(--cl-owner);border-left:4px solid var(--cl-owner);border-radius:7px;color:var(--cl-owner);background:#fff;padding:5px 9px;font-size:12px;font-weight:650;line-height:1.4;white-space:normal}#clientes-informe .pcr-scroll{position:relative;overflow:auto;max-height:62vh;isolation:isolate;border:1px solid #e2e8f0;border-radius:10px;scrollbar-gutter:stable}#clientes-informe .pcr-scroll table{border-collapse:separate;border-spacing:0;width:100%;margin:0}#clientes-informe .pcr-scroll thead th{position:sticky!important;top:0!important;z-index:5;background:#eef4fc!important;color:#334155;box-shadow:0 1px 0 #cbd5e1;padding:13px 12px;vertical-align:middle;font-size:13px;text-align:left}#clientes-informe .pcr-scroll .cl-client-table{min-width:1350px}#clientes-informe .pcr-scroll tbody th,#clientes-informe .pcr-scroll tbody td{font-size:13px;padding:12px;line-height:1.5;border-bottom:1px solid #e8edf3;vertical-align:middle;background:#fff}#clientes-informe .pcr-scroll tbody tr:nth-child(even)>*{background:#f8fafc}#clientes-informe .pcr-scroll .cl-client-table thead th:first-child{left:0;z-index:7;min-width:250px}#clientes-informe .pcr-scroll .cl-client-table tbody th:first-child{position:sticky;left:0;z-index:2;min-width:250px;max-width:330px;text-align:left;box-shadow:1px 0 0 #e2e8f0}#clientes-informe .cl-client-link{border:0;padding:0;background:transparent;text-align:left;color:#1e40af;font-weight:650;line-height:1.45}#clientes-informe .cl-client-link:hover{text-decoration:underline}#clientes-informe .cl-client-code{display:block;color:#64748b;font-size:12px;margin-top:4px}#clientes-informe .cl-view-switch{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:10px 0 14px}#clientes-informe .cl-view-switch strong{margin-right:auto}#clientes-informe .cl-view-switch [aria-pressed=true]{background:#e0f2fe;color:#1d4ed8;border-color:#93c5fd}#clientes-informe .cl-overdue-table{min-width:1400px}#clientes-informe .cl-overdue-table th:first-child{min-width:270px;text-align:left}#clientes-informe .cl-overdue-table tbody th:not([colspan]){position:sticky;left:0;z-index:2;box-shadow:1px 0 0 #e2e8f0}#clientes-informe .cl-overdue-table thead th:first-child{left:0;z-index:7}#clientes-informe .cl-overdue-table tbody th[colspan]{background:#e8f5ef;color:#065f46;font-size:14px}#clientes-informe .pcr-dialog{padding:26px;max-width:960px}#clientes-informe .pcr-dialog header{position:sticky;top:-26px;background:#fff;z-index:10;padding:6px 0 14px;border-bottom:1px solid #e2e8f0}#clientes-informe .pcr-dialog h3{font-size:21px;margin:0}#clientes-informe .cl-ficha-subtitle{color:#64748b;margin:14px 0}#clientes-informe .cl-ficha-balances{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0 24px}#clientes-informe .cl-ficha-balances article{padding:16px;border:1px solid #dbeafe;border-top:3px solid #2563eb;border-radius:10px;background:#f8fbff}#clientes-informe .cl-ficha-balances article:nth-child(2){border-top-color:#10b981}#clientes-informe .cl-ficha-balances small{color:#64748b;font-size:13px}#clientes-informe .cl-ficha-balances strong{display:block;font-size:23px;margin-top:8px}#clientes-informe .cl-ficha-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 28px;margin:16px 0 24px}#clientes-informe .cl-ficha-fields dt{font-size:13px;color:#64748b;margin-bottom:5px}#clientes-informe .cl-ficha-fields dd{font-size:15px;color:#0f172a;font-weight:600;margin:0}#clientes-informe .cl-ficha-pending{background:#f8fafc;border-radius:9px;padding:14px 18px;margin:16px 0}#clientes-informe .cl-ficha-pending h4{margin:0 0 8px}#clientes-informe .cl-ficha-pending ul{padding-left:20px;line-height:1.7;margin:0}#clientes-informe .cl-source-details{border-top:1px solid #e2e8f0;margin-top:24px;padding-top:14px;font-size:13px;color:#64748b}#clientes-informe .cl-source-details summary{cursor:pointer;font-weight:600}#clientes-informe .cl-source-details .pcr-scroll{margin-top:12px;max-height:240px}@media(max-width:650px){#clientes-informe .cl-ficha-balances{grid-template-columns:1fr}#clientes-informe .cl-ficha-fields{grid-template-columns:1fr}#clientes-informe .pcr-dialog{padding:18px}#clientes-informe .pcr-dialog h3{font-size:18px}#clientes-informe .cl-ficha-balances strong{font-size:22px}#clientes-informe .pcr-scroll .cl-client-table tbody th:first-child,#clientes-informe .pcr-scroll .cl-client-table thead th:first-child{min-width:180px;max-width:220px}}
/* Bitácora independiente de los cortes. Conserva posición al guardar. */
#clientes-informe .cl-journal{margin-top:24px;padding-top:20px;border-top:1px solid #dbe4ee;color:#0f172a}
#clientes-informe .cl-journal>p,#clientes-informe .cl-journal small{font-size:13px;color:#64748b;line-height:1.5}
#clientes-informe .cl-journal label{display:block;font-size:13px;font-weight:600;margin:12px 0}
#clientes-informe .cl-journal input,#clientes-informe .cl-journal select,#clientes-informe .cl-journal textarea{display:block;width:100%;box-sizing:border-box;padding:10px 12px;margin-top:6px;border:1px solid #cbd5e1;border-radius:8px;background:white;color:#0f172a;font:inherit}
#clientes-informe .cl-journal textarea{resize:vertical;min-height:110px}
#clientes-informe .cl-journal-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}
#clientes-informe .cl-journal-form{padding:16px;background:#f8fafc;border-radius:12px}
#clientes-informe .cl-journal-form[hidden]{display:none}
#clientes-informe .cl-journal-form>small{display:block;margin-top:10px}
#clientes-informe .cl-journal-entry{padding:15px;margin:14px 0;border:1px solid #dbe4ee;border-left:3px solid #10b981;border-radius:8px;background:white}
#clientes-informe .cl-journal-entry header{position:static;display:flex;justify-content:space-between;gap:12px;padding:0;border:0;flex-wrap:wrap}
#clientes-informe .cl-journal-entry time{font-size:12px;color:#64748b}
#clientes-informe .cl-journal-note{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.6}
#clientes-informe .cl-journal-entry small{display:block;overflow-wrap:anywhere}
#clientes-informe .cl-journal .cl-journal-error{color:#b91c1c}
@media(max-width:600px){#clientes-informe .cl-journal-fields{grid-template-columns:1fr;gap:0}#clientes-informe .cl-journal input,#clientes-informe .cl-journal textarea,#clientes-informe .cl-journal select{font-size:16px}}
