/* APP KAPITAL V2 · C42 · Tablero de créditos por asesor, estado y producto */
#view-dashboard .k42-section{margin:16px 0;padding:19px 20px 20px;border:1px solid rgba(129,41,144,.13);border-radius:18px;background:linear-gradient(160deg,#fff,#fcf9fd);box-shadow:0 9px 26px rgba(52,17,62,.07);color:#382c3f}
#view-dashboard .k42-head{display:flex;justify-content:space-between;gap:14px;align-items:center;flex-wrap:wrap;margin-bottom:16px}
#view-dashboard .k42-head small{display:block;color:#812990;font-size:11px;font-weight:850;letter-spacing:.13em}
#view-dashboard .k42-head h3{font-size:22px;line-height:1.2;margin:3px 0 5px;color:#3a2040}
#view-dashboard .k42-head p{font-size:13px;margin:0;color:#796881}
#view-dashboard .k42-refresh{background:linear-gradient(180deg,#9d30af,#721880);color:white;border:0;border-radius:11px;box-shadow:0 4px 0 #541360,0 7px 13px #47125018;padding:10px 16px;font-weight:750;cursor:pointer}
#view-dashboard .k42-refresh:disabled{opacity:.65;cursor:wait}
#view-dashboard .k42-scope{display:inline-block;border-radius:99px;padding:5px 10px;background:#f1e7f5;color:#812990;font-weight:800;font-size:12px}
#view-dashboard .k42-feedback{font-size:12px;color:#6b5575;margin:0 0 14px;min-height:18px}
#view-dashboard .k42-feedback.k42-error{color:#a42231}
#view-dashboard .k42-counters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}
#view-dashboard .k42-tile{min-height:84px;border:1px solid #e8ddeb;border-radius:13px;padding:13px 14px;background:linear-gradient(180deg,#fff,#f8f1fa);box-sizing:border-box}
#view-dashboard .k42-tile strong{display:block;font-size:25px;color:#812990;line-height:1.22;font-weight:900}
#view-dashboard .k42-tile span{font-size:12px;font-weight:750;color:#64536b}
#view-dashboard .k42-filters{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-end;margin:12px 0 17px}
#view-dashboard .k42-filters label{display:flex;flex-direction:column;gap:5px;min-width:175px;flex:1 1 175px;color:#675170;font-size:12px;font-weight:800}
#view-dashboard .k42-filters select{width:100%;height:38px;border:1px solid #dbc7e1;border-radius:10px;padding:7px 10px;background:#fff;color:#392b40;font-size:13px}
#view-dashboard .k42-panels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:15px}
#view-dashboard .k42-panel{border:1px solid #ebdfee;border-radius:13px;background:#fff;padding:13px;min-width:0;box-sizing:border-box}
#view-dashboard .k42-panel h4{font-size:14px;margin:0 0 11px;color:#663073;font-weight:850}
#view-dashboard .k42-bar-row{display:grid;grid-template-columns:minmax(0,1fr) 36px;gap:5px 8px;margin:10px 0}
#view-dashboard .k42-bar-row .k42-bar-title{font-size:12px;line-height:1.3;min-width:0;overflow-wrap:anywhere;color:#5b4b64;font-weight:700}
#view-dashboard .k42-bar-row .k42-bar-number{text-align:right;font-size:12px;color:#583361;font-weight:850}
#view-dashboard .k42-bar-track{grid-column:1/-1;background:#f0e8f4;border-radius:10px;height:8px;overflow:hidden}
#view-dashboard .k42-bar-fill{height:100%;border-radius:10px;background:linear-gradient(90deg,#ae49bf,#812990)}
#view-dashboard .k42-bar-row.state-aprobado .k42-bar-fill{background:linear-gradient(90deg,#43c8a2,#228c6e)}
#view-dashboard .k42-bar-row.state-negado .k42-bar-fill{background:linear-gradient(90deg,#f093a1,#d75068)}
#view-dashboard .k42-bar-row.state-devuelto .k42-bar-fill{background:linear-gradient(90deg,#f9cb7b,#d69b36)}
#view-dashboard .k42-empty{font-size:12px;color:#82778a;margin:12px 0}
#view-dashboard .k42-table-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:18px 0 10px}
#view-dashboard .k42-table-head h4{font-size:15px;color:#5a3265;margin:0}
#view-dashboard .k42-table-head span{font-size:11px;color:#82748a}
#view-dashboard .k42-scroll{overflow:auto;border:1px solid #e9d9eb;border-radius:11px}
#view-dashboard .k42-table{border-collapse:collapse;width:100%;min-width:640px;font-size:12px}
#view-dashboard .k42-table th{text-align:left;background:#f1e6f3;color:#602869;padding:11px 12px;font-weight:850}
#view-dashboard .k42-table td{padding:10px 12px;border-top:1px solid #f1e6f3;vertical-align:top;color:#4e4054}
#view-dashboard .k42-table tbody tr:nth-child(even){background:#fdfaff}
#view-dashboard .k42-table td:first-child{font-weight:800;color:#812990;white-space:nowrap}
#view-dashboard .k42-pill{font-size:11px;font-weight:800;display:inline-block;border-radius:7px;background:#f3edf6;color:#682b75;padding:4px 7px;white-space:nowrap}
#view-dashboard .k42-pill.state-aprobado{background:#e5f7ef;color:#19724f}
#view-dashboard .k42-pill.state-negado{background:#fde9ed;color:#ad244a}
#view-dashboard .k42-pill.state-devuelto{background:#fff3df;color:#9c6817}
#view-dashboard .k42-note{margin:10px 0 0;font-size:11px;color:#897d8d;line-height:1.4}
@media(max-width:1120px){#view-dashboard .k42-panels{grid-template-columns:1fr 1fr}#view-dashboard .k42-panels .k42-users-panel{grid-column:1/-1}}
@media(max-width:740px){#view-dashboard .k42-section{padding:14px 12px}#view-dashboard .k42-counters{grid-template-columns:repeat(2,minmax(0,1fr))}#view-dashboard .k42-panels{grid-template-columns:1fr}#view-dashboard .k42-panels .k42-users-panel{grid-column:auto}#view-dashboard .k42-head h3{font-size:18px}#view-dashboard .k42-filters label{min-width:135px}}
/* Los controles que exige el servidor ocultar no pueden reaparecer por reglas de layout. */
#view-dashboard #k42-adviser-wrap[hidden],#view-dashboard #k42-users-panel[hidden]{display:none!important}
