.lbps-cap-report-source,.lbps-cap-report-source *{box-sizing:border-box}
.lbps-cap-report-source{width:100%;background:#f4f7fb;color:#162033;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.lbps-cap-report-source .cap-report-shell{width:min(1180px,calc(100% - 32px));margin:24px auto}
.lbps-cap-report-source .cap-report-table-wrap{overflow:hidden;background:#fff;border:1px solid #dfe6ef;border-radius:14px;box-shadow:0 8px 24px rgba(15,31,58,.06)}
.lbps-cap-report-source .cap-report-table{width:100%;border-collapse:collapse;table-layout:fixed}
.lbps-cap-report-source .cap-report-table th{padding:13px 14px;background:#0b1f3a;color:#fff;font-size:13px;font-weight:700;text-align:right;white-space:nowrap}
.lbps-cap-report-source .cap-report-table th:first-child{text-align:left}
.lbps-cap-report-source .cap-report-table td{padding:10px 14px;border-bottom:1px solid #e8edf3;font-size:14px;text-align:right;vertical-align:middle}
.lbps-cap-report-source .cap-report-table tbody tr:last-child td{border-bottom:0}
.lbps-cap-report-source .cap-report-table tbody tr:hover{background:#f8fafc}
.lbps-cap-report-source .cap-report-table td:first-child{text-align:left}
.lbps-cap-report-source .cap-col-team{width:32%}
.lbps-cap-report-source .cap-col-money{width:17%}
.lbps-cap-report-source .cap-col-exception{width:8.5%}
.lbps-cap-report-source .cap-team{display:flex;align-items:center;gap:10px;min-width:0;color:#162033;font-weight:650;text-decoration:none}
.lbps-cap-report-source .cap-team:hover{text-decoration:underline}
.lbps-cap-report-source .cap-team img{width:32px;height:32px;object-fit:contain;flex:0 0 32px}
.lbps-cap-report-source .cap-team span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lbps-cap-report-source .cap-money{font-variant-numeric:tabular-nums;white-space:nowrap}
.lbps-cap-report-source .cap-money strong,.lbps-cap-report-source .cap-exception{font-weight:800}
.lbps-cap-report-source .cap-negative{color:#c62828;font-weight:800}
.lbps-cap-report-source .cap-exception{display:inline-block;white-space:nowrap}
.lbps-cap-report-source .cap-exception--yes{color:#16803c}
.lbps-cap-report-source .cap-exception--no{color:#c62828}
.lbps-cap-report-source .cap-report-empty{padding:24px;text-align:center;color:#6b7280}

/* Se libera la reserva lateral cuando la tabla deja de caber con holgura. */
@media(max-width:1450px){
  .lbps-dinamic-stage.lbps-cap-report-stage{margin-left:0;width:100%;padding-left:14px;padding-right:14px}
}
@media(min-width:951px) and (max-width:1200px){
  .lbps-cap-report-source .cap-report-shell{width:100%}
  .lbps-cap-report-source .cap-report-table th,.lbps-cap-report-source .cap-report-table td{padding:10px 7px;font-size:12px}
  .lbps-cap-report-source .cap-team{gap:6px}
  .lbps-cap-report-source .cap-team img{width:26px;height:26px;flex-basis:26px}
}

/* Cada fila conserva los seis datos y se organiza como tarjeta. */
@media(max-width:950px){
  .lbps-cap-report-source .cap-report-shell{width:100%;margin:12px auto}
  .lbps-cap-report-source .cap-report-table-wrap{overflow:visible;border:0;box-shadow:none;background:transparent}
  .lbps-cap-report-source .cap-report-table{display:block;width:100%;min-width:0;table-layout:auto}
  .lbps-cap-report-source .cap-report-table colgroup,.lbps-cap-report-source .cap-report-table thead{display:none}
  .lbps-cap-report-source .cap-report-table tbody{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .lbps-cap-report-source .cap-report-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px;min-width:0;padding:14px;border:1px solid #dfe6ef;border-radius:12px;background:#fff;box-shadow:0 4px 14px rgba(15,31,58,.06)}
  .lbps-cap-report-source .cap-report-table tbody td{display:block;min-width:0;padding:9px 0;border-bottom:1px solid #e8edf3;text-align:left;font-size:13px}
  .lbps-cap-report-source .cap-report-table tbody tr:last-child td{border-bottom:1px solid #e8edf3}
  .lbps-cap-report-source .cap-report-table tbody td::before{content:attr(data-label);display:block;margin-bottom:4px;color:#5b6b80;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
  .lbps-cap-report-source .cap-report-table tbody td:first-child{grid-column:1/-1;padding:0 0 11px;margin-bottom:2px}
  .lbps-cap-report-source .cap-report-table tbody td:first-child::before{display:none}
  .lbps-cap-report-source .cap-report-table tbody td:nth-child(2),.lbps-cap-report-source .cap-report-table tbody td:nth-child(5){grid-column:1}
  .lbps-cap-report-source .cap-report-table tbody td:nth-child(3),.lbps-cap-report-source .cap-report-table tbody td:nth-child(6){grid-column:2}
  .lbps-cap-report-source .cap-report-table tbody td:nth-child(4){grid-column:1/-1}
  .lbps-cap-report-source .cap-report-table tbody td:nth-child(5),.lbps-cap-report-source .cap-report-table tbody td:nth-child(6){border-bottom:0}
  .lbps-cap-report-source .cap-team span{white-space:normal;overflow:visible;text-overflow:clip}
}
@media(max-width:640px){.lbps-cap-report-source .cap-report-table tbody{grid-template-columns:1fr}}
@media(max-width:350px){
  .lbps-cap-report-source .cap-report-table tbody tr{grid-template-columns:1fr}
  .lbps-cap-report-source .cap-report-table tbody td:nth-child(n){grid-column:1}
  .lbps-cap-report-source .cap-report-table tbody td:nth-child(5){border-bottom:1px solid #e8edf3}
}
