/* Libro V3 — detalle expand Cobranzas (alineado a v5) */

#cobranzas .nd-cob-mes-expand--v3-libro {
  padding: 0.35rem 0 0.15rem;
  background: transparent;
  border: none;
  box-shadow: none;
}

.cob-v3-expand-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Panel — misma familia que nd-cob-mes-expand-card, con acento verde */
#cobranzas.view.nd-cob-v5-view.active .cob-v3-detail {
  border-radius: 0 0 10px 10px;
  border: 1px dashed rgba(255, 255, 255, 0.13);
  border-left: 3px solid rgba(52, 211, 153, 0.55);
  background: rgba(255, 255, 255, 0.042);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

html.theme-f10 #cobranzas.view.nd-cob-v5-view.active .cob-v3-detail {
  border-color: rgba(168, 146, 116, 0.22);
  border-left-color: rgba(52, 211, 153, 0.5);
  background: rgba(255, 255, 255, 0.038);
}

#cobranzas .cob-v3-detail {
  border-radius: 9px;
  border: 1px dashed rgba(148, 163, 184, 0.2);
  border-left: 3px solid rgba(52, 211, 153, 0.45);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.cob-v3-detail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem 0.4rem;
}

.cob-v3-detail__head-left {
  min-width: 0;
}

.cob-v3-detail__contrato {
  display: block;
  font-size: 0.72rem;
  opacity: 0.72;
  margin-bottom: 0.05rem;
}

.cob-v3-detail__mes {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  color: rgba(241, 245, 249, 0.95);
}

.cob-v3-detail__estado .badge {
  font-size: 0.7rem;
}

.cob-v3-detail__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  padding: 0 0.75rem 0.55rem;
}

.cob-v3-detail__chip {
  font-size: 0.76rem;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  white-space: nowrap;
}

.cob-v3-detail__chip em {
  font-style: normal;
  font-size: 0.66rem;
  opacity: 0.62;
  margin-right: 0.22rem;
}

.cob-v3-detail__chip--ok {
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(52, 211, 153, 0.28);
}

.cob-v3-detail__chip--pend {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(251, 191, 36, 0.28);
}

.cob-v3-detail__chip--favor {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(96, 165, 250, 0.32);
}

.cob-v3-detail__cobro-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  flex-wrap: wrap;
  padding: 0.42rem 0.75rem 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cob-v3-detail__cobro-bar .cob-v3-detail__cobro-guia {
  flex: 1 1 12rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border-top: none;
  background: transparent;
}

.cob-v3-detail__cobro-bar .cob-v3-detail__cta {
  flex: 0 0 auto;
  padding: 0;
  margin: 0;
  justify-content: flex-end;
}

.cob-v3-detail__cobro-guia {
  margin: 0;
  padding: 0.42rem 0.75rem 0.5rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.88);
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cob-v3-detail__cobro-guia strong {
  font-weight: 600;
  color: rgba(241, 245, 249, 0.95);
}

/* theme-f10 = tema oscuro por defecto: mismo contraste que la regla base */
html.theme-f10 .cob-v3-detail__cobro-guia {
  color: rgba(226, 232, 240, 0.88);
  background: rgba(255, 255, 255, 0.03);
}

html.theme-f10 .cob-v3-detail__cobro-guia strong {
  color: rgba(241, 245, 249, 0.95);
}

/* theme-f5 = tema claro: texto oscuro legible sobre panel claro */
html.theme-f5 .cob-v3-detail__cobro-guia {
  color: rgba(60, 54, 48, 0.82);
  background: rgba(0, 0, 0, 0.04);
  border-top-color: rgba(60, 54, 48, 0.1);
}

html.theme-f5 .cob-v3-detail__cobro-guia strong {
  color: rgba(60, 54, 48, 0.95);
}

html.theme-f10 .cob-v3-detail__chip--favor {
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.25);
}

.cob-v3-detail__parcial {
  margin: 0;
  padding: 0.38rem 0.75rem;
  font-size: 0.8rem;
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.08);
  border-top: 1px solid rgba(251, 191, 36, 0.12);
}

.cob-v3-detail__cta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  padding: 0 0.75rem 0.55rem;
}

.cob-v3-detail__cta-btn {
  width: auto;
  max-width: none;
  min-width: 0;
  flex: 0 0 auto;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

.cob-v3-detail__comps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.cob-v3-detail__comp {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.45rem 0.75rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
}

.cob-v3-detail__comp:last-child {
  border-bottom: none;
}

.cob-v3-detail__comp--empty {
  display: block;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.65;
  padding: 0.7rem;
  background: transparent;
}

.cob-v3-detail__comps--xref {
  border-top: 1px solid rgba(100, 160, 220, 0.22);
}

.cob-v3-detail__comp--xref {
  background: rgba(56, 120, 190, 0.08);
}

.cob-v3-detail__comp-xref-hint {
  display: block;
  font-size: 0.72rem;
  line-height: 1.35;
  margin-top: 0.15rem;
}

.cob-v3-detail__comp--xref .cob-v3-detail__comp-actions--xref {
  flex-wrap: nowrap;
  overflow: visible;
}

.cob-v3-detail__comp--native.cob-v3-detail__comp--highlight {
  outline: 2px solid rgba(96, 165, 250, 0.75);
  outline-offset: 2px;
  background: rgba(56, 120, 190, 0.14);
}

.cob-v3-detail__comp-info {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.cob-v3-detail__comp-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.75);
}

.cob-v3-detail__comp-id {
  font-size: 0.78rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-all;
  color: rgba(226, 232, 240, 0.95);
  background: rgba(15, 23, 42, 0.35);
  padding: 0.12rem 0.38rem;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: fit-content;
  max-width: 100%;
}

.cob-v3-detail__comp-meta {
  font-size: 0.7rem;
  line-height: 1.35;
  color: rgba(148, 163, 184, 0.82);
  white-space: normal;
  word-break: break-word;
}

.cob-v3-detail__comp-monto {
  font-size: 0.9rem;
  font-weight: 700;
  color: #6ee7b7;
  white-space: nowrap;
  text-align: right;
  padding: 0 0.15rem;
}

.cob-v3-detail__comp-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  row-gap: 0.35rem;
  align-items: center;
  justify-content: flex-end;
}

.cob-v3-detail__comp-actions .nd-cob-pago-mes-acciones__recibo,
.cob-v3-detail__comp-actions .nd-cob-pago-mes-acciones__detalle,
.cob-v3-detail__comp-actions .nd-cob-pago-mes-acciones__eliminar,
.cob-v3-detail__comp-actions .nd-cob-pago-mes-acciones__comp {
  display: inline-flex;
  align-items: center;
}

/* V5 oculta Eliminar en filas V2 (menú ⋮); en expand libro V3 debe verse siempre */
#cobranzas.view.nd-cob-v5-view.active .cob-v3-detail .nd-cob-pago-mes-acciones__eliminar {
  display: inline-flex;
  align-items: center;
}

#cobranzas.view.nd-cob-v5-view.active .cob-v3-detail .cob-v3-btn--detalle {
  font-weight: 600;
  color: #bae6fd;
  background: rgba(14, 116, 144, 0.28);
  border: 1px solid rgba(56, 189, 248, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#cobranzas.view.nd-cob-v5-view.active .cob-v3-detail .cob-v3-btn--detalle:hover {
  color: #e0f2fe;
  background: rgba(8, 145, 178, 0.38);
  border-color: rgba(125, 211, 252, 0.55);
}

html.theme-f10 #cobranzas.view.nd-cob-v5-view.active .cob-v3-detail .cob-v3-btn--detalle {
  color: #0c4a6e;
  background: rgba(224, 242, 254, 0.95);
  border-color: rgba(56, 189, 248, 0.45);
}

html.theme-f10 #cobranzas.view.nd-cob-v5-view.active .cob-v3-detail .cob-v3-btn--detalle:hover {
  color: #075985;
  background: rgba(186, 230, 253, 0.98);
  border-color: rgba(14, 165, 233, 0.5);
}

.cob-v3-comprobante-modal__detalle--readonly {
  max-height: min(72vh, 720px);
  overflow: auto;
  padding: 0.15rem 0;
}

.cob-v3-detail__alert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 0.65rem;
  padding: 0.5rem 0.75rem;
  border-top: 1px solid rgba(251, 191, 36, 0.18);
  background: rgba(245, 158, 11, 0.07);
}

.cob-v3-detail__alert--muted {
  border-top-color: rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.1);
}

.cob-v3-detail__alert-text {
  flex: 1 1 12rem;
  font-size: 0.76rem;
  line-height: 1.45;
  color: #fcd34d;
}

.cob-v3-detail__alert--muted .cob-v3-detail__alert-text {
  color: rgba(203, 213, 225, 0.72);
}

.cob-v3-detail__alert-code {
  font-size: 0.72rem;
  padding: 0.06rem 0.28rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.22);
  color: rgba(241, 245, 249, 0.9);
}

/* Botones V3 en expand — heredan nd-cob-pago-mes-btn; afinamos tamaño */
#cobranzas .cob-v3-detail .nd-cob-pago-mes-btn {
  width: auto;
  max-width: none;
  min-width: 5.75rem;
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0.38rem 0.7rem;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: 8px;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

#cobranzas.view.nd-cob-v5-view.active .cob-v3-detail .cob-v3-btn--recibo {
  font-weight: 700;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

#cobranzas.view.nd-cob-v5-view.active .cob-v3-detail .cob-v3-btn--recibo:hover {
  color: #ecfdf5;
  background: rgba(16, 185, 129, 0.28);
  border-color: rgba(110, 231, 183, 0.52);
}

#cobranzas.view.nd-cob-v5-view.active .cob-v3-detail .cob-v3-btn--mod {
  color: rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

#cobranzas.view.nd-cob-v5-view.active .cob-v3-detail .cob-v3-btn--mod:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(52, 211, 153, 0.32);
  color: #d1fae5;
}

#cobranzas.view.nd-cob-v5-view.active .cob-v3-detail .cob-v3-btn--danger,
#cobranzas.view.nd-cob-v5-view.active .cob-v3-detail .cob-v3-btn--revert {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.38);
  border: 1px solid rgba(248, 113, 113, 0.38);
}

#cobranzas.view.nd-cob-v5-view.active .cob-v3-detail .cob-v3-btn--danger:hover:not(:disabled),
#cobranzas.view.nd-cob-v5-view.active .cob-v3-detail .cob-v3-btn--revert:hover:not(:disabled) {
  color: #fff1f2;
  background: rgba(153, 27, 27, 0.52);
  border-color: rgba(252, 165, 165, 0.5);
}

#cobranzas.view.nd-cob-v5-view.active .cob-v3-detail .cob-v3-btn--revert:disabled,
#cobranzas.view.nd-cob-v5-view.active .cob-v3-detail .cob-v3-btn--danger:disabled {
  opacity: 0.45;
}

html.theme-f10 #cobranzas.view.nd-cob-v5-view.active .cob-v3-detail .cob-v3-btn--recibo {
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(52, 211, 153, 0.42);
}

html.theme-f10 #cobranzas.view.nd-cob-v5-view.active .cob-v3-detail .cob-v3-btn--recibo:hover {
  color: #ecfdf5;
  background: rgba(16, 185, 129, 0.3);
}

html.theme-f10 #cobranzas.view.nd-cob-v5-view.active .cob-v3-detail .cob-v3-btn--mod {
  color: rgba(245, 235, 224, 0.92);
  border-color: rgba(168, 146, 116, 0.32);
  background: rgba(255, 255, 255, 0.05);
}

.cob-v3-comprobante-modal__body {
  max-height: min(78vh, 52rem);
  overflow: auto;
}

.cob-v3-comprobante-modal__recibo {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
}

.cob-v3-comprobante-modal__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.cob-v3-comprobante-modal__whatsapp {
  border-color: rgba(37, 211, 102, 0.45);
  color: #25d366;
}

.cob-v3-comprobante-modal__whatsapp:hover:not(:disabled) {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.65);
}

/* Modal confirmar eliminar comprobante V3 */
.cob-v3-elim-modal-backdrop .cob-v3-elim-modal {
  max-width: 26rem;
}

.cob-v3-elim-modal__lead {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(241, 245, 249, 0.95);
}

.cob-v3-elim-modal__ref {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
}

.cob-v3-elim-modal__id-wrap {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(248, 113, 113, 0.22);
}

.cob-v3-elim-modal__id-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(248, 113, 113, 0.85);
  margin-bottom: 0.2rem;
}

.cob-v3-elim-modal__id {
  display: block;
  font-size: 0.8rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-all;
  color: #fecaca;
  background: none;
  padding: 0;
}

.cob-v3-elim-modal__hint {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
}

.cob-v3-elim-modal__liq-warn {
  margin-top: 0.85rem;
  padding: 0.65rem 0.7rem;
  border-radius: 8px;
  background: rgba(180, 83, 9, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.cob-v3-elim-modal__liq-lead {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(254, 243, 199, 0.95);
}

.cob-v3-elim-modal__liq-list {
  margin: 0 0 0.5rem;
  padding-left: 1.1rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(254, 243, 199, 0.9);
}

.cob-v3-elim-modal__liq-list li + li {
  margin-top: 0.25rem;
}

.cob-v3-elim-modal__liq-total-warn {
  margin: 0 0 0.45rem;
  color: rgba(252, 165, 165, 0.95);
}

.cob-v3-elim-modal__liq-chk {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(241, 245, 249, 0.92);
  cursor: pointer;
}

.cob-v3-elim-modal__liq-chk input {
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.cob-v3-elim-modal__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.cob-v3-elim-modal__btn-confirm {
  font-weight: 700;
  color: #fff1f2 !important;
  background: rgba(153, 27, 27, 0.72) !important;
  border: 1px solid rgba(248, 113, 113, 0.45) !important;
}

.cob-v3-elim-modal__btn-confirm:hover {
  background: rgba(185, 28, 28, 0.88) !important;
  border-color: rgba(252, 165, 165, 0.55) !important;
}

html.theme-f10 .cob-v3-elim-modal__btn-confirm {
  color: #fff7ed !important;
  background: rgba(127, 29, 29, 0.78) !important;
}

.cob-v3-filter-hint {
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.86rem;
  line-height: 1.45;
  border: 1px solid rgba(72, 140, 220, 0.28);
  background: rgba(30, 52, 88, 0.14);
}

@media (max-width: 640px) {
  .cob-v3-detail__cobro-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .cob-v3-detail__cobro-bar .cob-v3-detail__cta {
    width: 100%;
    justify-content: flex-start;
  }

  .cob-v3-detail__comp {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .cob-v3-detail__comp-monto {
    text-align: left;
    padding: 0;
  }

  .cob-v3-detail__comp-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* Reporte movimientos del mes (expand Cobranzas — dueño / móvil) */
.cob-v3-mov-report {
  margin: 0.5rem 0.75rem 0.65rem;
  border-radius: 10px;
  border: 1px dashed rgba(52, 211, 153, 0.28);
  background: rgba(16, 185, 129, 0.06);
  overflow: hidden;
}

.cob-v3-mov-report__sum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  font-weight: 650;
  font-size: 0.84rem;
  list-style: none;
  user-select: none;
}

.cob-v3-mov-report__sum::-webkit-details-marker {
  display: none;
}

.cob-v3-mov-report__count {
  display: inline-flex;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.22);
  color: #a7f3d0;
  font-size: 0.72rem;
  font-weight: 700;
}

.cob-v3-mov-report__body {
  padding: 0 0.75rem 0.65rem;
}

.cob-v3-mov-report__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cob-v3-mov-report__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.cob-v3-mov-report__table th,
.cob-v3-mov-report__table td {
  padding: 0.35rem 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left;
  vertical-align: top;
}

.cob-v3-mov-report__table th.num,
.cob-v3-mov-report__table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cob-v3-mov-report__hint {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .cob-v3-mov-report__table thead {
    display: none;
  }
  .cob-v3-mov-report__table tbody tr {
    display: block;
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.12);
  }
  .cob-v3-mov-report__table tbody td {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 0;
    border: none;
  }
  .cob-v3-mov-report__table tbody td::before {
    content: attr(data-label);
    font-size: 0.68rem;
    font-weight: 650;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }
  .cob-v3-mov-report__table tbody td.num {
    justify-content: space-between;
    text-align: right;
  }
}

/* + Cobrar (cobro extra del mes) */
#cobranzas .cob-v3-btn--mas-cobro {
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.42);
  font-weight: 700;
  letter-spacing: 0.02em;
}
#cobranzas .cob-v3-btn--mas-cobro:hover {
  color: #ecfdf5;
  background: rgba(16, 185, 129, 0.24);
  border-color: rgba(52, 211, 153, 0.62);
}

/* Menú ⋮ comprobante */
.cob-v3-overflow-btn {
  flex: 0 0 auto;
  min-width: 38px;
  width: 38px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(226, 232, 240, 0.92);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.cob-v3-overflow-btn:hover,
.cob-v3-overflow-btn:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(148, 163, 184, 0.55);
  outline: none;
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.22);
}
.cob-v3-overflow-btn[aria-expanded="true"] {
  background: rgba(52, 211, 153, 0.16);
  border-color: rgba(52, 211, 153, 0.45);
  color: #a7f3d0;
}
.cob-v3-overflow-btn__dots {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.cob-v3-comp-overflow-popover {
  z-index: 9850;
  min-width: 248px;
  max-width: min(320px, calc(100vw - 16px));
  padding: 6px;
  border-radius: 12px;
}
.cob-v3-menu-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.cob-v3-menu-item:hover:not(:disabled),
.cob-v3-menu-item:focus-visible:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}
.cob-v3-menu-item:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.cob-v3-menu-item--danger .cob-v3-menu-item__title {
  color: #fca5a5;
}
.cob-v3-menu-item__icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: rgba(148, 163, 184, 0.95);
}
.cob-v3-menu-item__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cob-v3-menu-item__title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.25;
}
.cob-v3-menu-item__desc {
  font-size: 0.74rem;
  line-height: 1.35;
  opacity: 0.72;
}
.cob-v3-menu-sep {
  height: 1px;
  margin: 4px 8px;
  background: rgba(148, 163, 184, 0.28);
}
html.theme-f10 .cob-v3-comp-overflow-popover {
  border-color: rgba(168, 146, 116, 0.28);
}

/* Caramelo claro — expand libro V3 legible (mes, chips, comprobantes, + Cobrar) */
html:not(.theme-f10) .cob-v3-detail__mes {
  color: var(--text, #3c3630);
}

html:not(.theme-f10) .cob-v3-detail__contrato {
  color: var(--muted);
  opacity: 1;
}

html:not(.theme-f10) .cob-v3-detail__chip {
  color: var(--text);
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(60, 54, 48, 0.14);
}

html:not(.theme-f10) .cob-v3-detail__chip em {
  color: var(--muted);
  opacity: 1;
}

html:not(.theme-f10) .cob-v3-detail__chip--ok {
  color: #166534;
  background: rgba(22, 101, 52, 0.12);
  border-color: rgba(22, 101, 52, 0.28);
}

html:not(.theme-f10) .cob-v3-detail__chip--pend {
  color: #b45309;
  background: rgba(180, 83, 9, 0.12);
  border-color: rgba(180, 83, 9, 0.28);
}

html:not(.theme-f10) .cob-v3-detail__chip--favor {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.28);
}

html:not(.theme-f10) .cob-v3-detail__cobro-bar {
  background: rgba(0, 0, 0, 0.03);
  border-top-color: rgba(60, 54, 48, 0.1);
}

html:not(.theme-f10) .cob-v3-detail__comps {
  border-top-color: rgba(60, 54, 48, 0.1);
}

html:not(.theme-f10) .cob-v3-detail__comp {
  border-bottom-color: rgba(60, 54, 48, 0.08);
  background: rgba(0, 0, 0, 0.02);
}

html:not(.theme-f10) .cob-v3-detail__comp-label {
  color: var(--muted);
}

html:not(.theme-f10) .cob-v3-detail__comp-id {
  color: var(--text);
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(60, 54, 48, 0.12);
}

html:not(.theme-f10) .cob-v3-detail__comp-meta {
  color: var(--muted);
}

html:not(.theme-f10) .cob-v3-detail__comp-monto {
  color: #166534;
}

html:not(.theme-f10) #cobranzas .cob-v3-btn--mas-cobro {
  color: #fff;
  background: linear-gradient(145deg, #22c55e 0%, #15803d 100%);
  border-color: rgba(22, 101, 52, 0.45);
  box-shadow: 0 2px 8px rgba(22, 101, 52, 0.2);
}

html:not(.theme-f10) #cobranzas .cob-v3-btn--mas-cobro:hover {
  color: #fff;
  background: linear-gradient(145deg, #16a34a 0%, #166534 100%);
  border-color: rgba(22, 101, 52, 0.55);
}

html:not(.theme-f10) #cobranzas.view.nd-cob-v5-view.active .cob-v3-detail .cob-v3-btn--detalle {
  color: #0c4a6e;
  background: rgba(224, 242, 254, 0.95);
  border-color: rgba(56, 189, 248, 0.45);
}

html:not(.theme-f10) #cobranzas.view.nd-cob-v5-view.active .cob-v3-detail .cob-v3-btn--detalle:hover {
  color: #075985;
  background: rgba(186, 230, 253, 0.98);
  border-color: rgba(14, 165, 233, 0.5);
}

html:not(.theme-f10) #cobranzas.view.nd-cob-v5-view.active .cob-v3-detail .cob-v3-btn--recibo {
  color: #166534;
  background: rgba(22, 101, 52, 0.12);
  border-color: rgba(22, 101, 52, 0.32);
}

html:not(.theme-f10) #cobranzas.view.nd-cob-v5-view.active .cob-v3-detail .cob-v3-btn--recibo:hover {
  color: #14532d;
  background: rgba(22, 101, 52, 0.2);
  border-color: rgba(22, 101, 52, 0.45);
}

html:not(.theme-f10) #cobranzas.view.nd-cob-v5-view.active .cob-v3-detail .cob-v3-btn--mod {
  color: var(--text);
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(60, 54, 48, 0.16);
}

html:not(.theme-f10) #cobranzas.view.nd-cob-v5-view.active .cob-v3-detail .cob-v3-btn--mod:hover {
  color: var(--text);
  background: rgba(222, 184, 150, 0.22);
  border-color: rgba(168, 146, 116, 0.38);
}

html:not(.theme-f10) .cob-v3-overflow-btn {
  color: var(--muted);
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(60, 54, 48, 0.16);
}

html:not(.theme-f10) .cob-v3-overflow-btn:hover,
html:not(.theme-f10) .cob-v3-overflow-btn:focus-visible {
  color: var(--text);
  background: rgba(222, 184, 150, 0.2);
  border-color: rgba(168, 146, 116, 0.35);
}

html:not(.theme-f10) .cob-v3-overflow-btn[aria-expanded="true"] {
  color: #166534;
  background: rgba(22, 101, 52, 0.12);
  border-color: rgba(22, 101, 52, 0.35);
}

html.theme-f5 #cobranzas.view.nd-cob-v5-view.active .cob-v3-detail {
  border-color: var(--border);
  border-left-color: rgba(22, 101, 52, 0.55);
  background: linear-gradient(165deg, #f8f3ec 0%, var(--neo-base) 100%);
  box-shadow: inset 2px 2px 6px var(--neo-d), inset -1px -1px 5px var(--neo-l);
}

html.theme-f5 #cobranzas .cob-v3-detail {
  border-color: var(--border);
  border-left-color: rgba(22, 101, 52, 0.5);
  background: linear-gradient(165deg, #f8f3ec 0%, var(--neo-base) 100%);
}
