/* Reportes · Resumen (producción por doctor A), Caja (B: por cobrar + cierre + facturas juntos) y Comisiones (B: lista + detalle).
   La parte de arriba de Resumen (Cobrado, Gastos, Utilidad, Cómo te pagaron, En qué se fue, Facturado) no se toca. */
#reportes.rv2[data-v="cobros"] #prodDoctor, #reportes.rv2[data-v="com"] #prodDoctor, #reportes.rv2[data-v="liq"] #prodDoctor { display: none !important; }

/* ---------- Caja (B) ---------- */
#reportes.rv2[data-v="cobros"] .ct-tabs { display: none !important; }
#reportes.rv2[data-v="cobros"] #ctBody .ctb { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; align-items: start; }
#reportes.rv2[data-v="cobros"] #ctBody .ctb-r { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
#reportes.rv2[data-v="cobros"] #ctBody .ctb-l, #reportes.rv2[data-v="cobros"] #ctBody .ctb-r > div { background: var(--card, #fff); border-radius: 16px; box-shadow: 0 0 0 .5px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.04), 0 6px 18px rgba(15,23,42,.05); padding: 16px 18px; min-width: 0; }
#reportes.rv2[data-v="cobros"] #ctBody .ctb .ct-card { box-shadow: none !important; border: 0 !important; padding: 0 !important; background: none !important; }
#reportes.rv2[data-v="cobros"] #ctBody .ctb .ct-sr { overflow-x: auto; }
#reportes.rv2[data-v="cobros"] #ctBody .ctb .ct-grid { grid-template-columns: 1fr 1fr; margin-bottom: 10px; }
#reportes.rv2[data-v="cobros"] #ctBody .ctb h3 { font-size: 16px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 6px; }
#reportes.rv2[data-v="cobros"] #ctBody .ctb h3 { color: var(--ink, #14213d) !important; }
#reportes.rv2[data-v="cobros"] #ctBody .ctb-r { overflow: hidden; }
#reportes.rv2[data-v="cobros"] #ctBody .ctb-r > div { overflow-x: auto; }
#reportes.rv2[data-v="cobros"] #ctBody .ctb-r table { width: 100%; min-width: 0; font-size: 13px; }
#reportes.rv2[data-v="cobros"] #ctBody .ctb-r table input { min-width: 0; width: 100%; max-width: 110px; }
#reportes.rv2[data-v="cobros"] #ctBody .ctb-r .ct-form { grid-template-columns: 1fr 1fr; }
#reportes.rv2[data-v="cobros"] #ctBody .ctb-r .ct-grid { grid-template-columns: 1fr 1fr; }
#reportes.rv2[data-v="cobros"] #ctBody .ctb-l tbody td { padding-top: 11px; padding-bottom: 11px; }
#reportes.rv2[data-v="cobros"] #ctBody .ctb-l a.ct-lnk[href*="wa.me"] { background: #e4f6ea; color: #15803d; border-radius: 10px; padding: 6px 12px; min-height: 0; font-weight: 800; }
@media (max-width: 1100px) { #reportes.rv2[data-v="cobros"] #ctBody .ctb { grid-template-columns: 1fr; } }

/* ---------- Comisiones (B): lista de doctores a la izquierda, detalle a la derecha ---------- */
@media (min-width: 900px) {
  html body #reportes.rv2[data-v="com"] #cmBody > .cd { display: grid !important; grid-template-columns: 340px minmax(0, 1fr); gap: 12px 14px; align-items: start; background: none !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; }
  html body #reportes.rv2[data-v="com"] #cmBody > .cd > .dcs { display: block !important; grid-column: 1 !important; margin: 0 !important; background: var(--card, #fff); border-radius: 16px; box-shadow: 0 0 0 .5px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.04), 0 6px 18px rgba(15,23,42,.05); padding: 12px; }
  html body #reportes.rv2[data-v="com"] #cmBody > .cd > .cd-dos { grid-column: 2 !important; grid-row: 1 !important; background: var(--card, #fff); border-radius: 16px; box-shadow: 0 0 0 .5px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.04), 0 6px 18px rgba(15,23,42,.05); padding: 16px 18px; min-width: 0; }
  html body #reportes.rv2[data-v="com"] #cmBody .cd .dg { margin: 0 0 10px !important; }
  html body #reportes.rv2[data-v="com"] #cmBody .cd .dgr { display: flex !important; flex-direction: column !important; gap: 4px !important; }
  html body #reportes.rv2[data-v="com"] #cmBody .cd .dc { grid-template-columns: 38px minmax(0, 1fr) auto !important; gap: 2px 10px !important; align-items: center !important; width: 100% !important; box-shadow: none !important; border: 0 !important; background: transparent !important; padding: 10px !important; border-radius: 12px !important; text-align: left; white-space: normal !important; line-height: 1.25 !important; overflow: hidden !important; }
  html body #reportes.rv2[data-v="com"] #cmBody .cd .dc .av { width: 38px !important; height: 38px !important; grid-row: 1 !important; align-self: center !important; }
  html body #reportes.rv2[data-v="com"] #cmBody .cd .dc .nm { min-width: 0 !important; overflow: hidden !important; gap: 2px !important; }
  html body #reportes.rv2[data-v="com"] #cmBody .cd .dc .nm b, html body #reportes.rv2[data-v="com"] #cmBody .cd .dc .nm small { white-space: normal !important; line-height: 1.25 !important; overflow-wrap: break-word !important; }
  html body #reportes.rv2[data-v="com"] #cmBody .cd .dc .mo { grid-row: 1 !important; align-self: center !important; display: flex !important; flex-direction: column !important; align-items: flex-end !important; gap: 2px !important; line-height: 1.15 !important; white-space: nowrap !important; }
  html body #reportes.rv2[data-v="com"] #cmBody .cd .dc .mo b, html body #reportes.rv2[data-v="com"] #cmBody .cd .dc .mo small { display: block !important; line-height: 1.15 !important; white-space: nowrap !important; }
  html body #reportes.rv2[data-v="com"] #cmBody .cd .dc:hover { background: rgba(120,130,150,.1) !important; }
  html body #reportes.rv2[data-v="com"] #cmBody .cd .dc.on { background: var(--blue-soft, #f0f9ff) !important; box-shadow: inset 0 0 0 1.5px var(--blue, #0284c7) !important; padding: 10px !important; }
  html body #reportes.rv2[data-v="com"] #cmBody .cd .dc .md { display: none !important; }
  html body #reportes.rv2[data-v="com"] #cmBody .cd .dgt { margin: 8px 0 0 !important; text-align: center; }
}
