/**
 * Complemento app — SIX39
 * El layout responsive principal vive en style.css (bloque "responsive os").
 * Aquí helpers de vistas específicas / touch / DataTables / cobros.
 */

:root {
  --touch-min: 44px;
}

.text-break-mobile {
  overflow-wrap: anywhere;
  word-break: normal;
}

/* =========================================================
   ESTÁNDAR DATATABLES (gastos / recaudos / clientes / etc.)
   ========================================================= */
.dt-table-wrap,
.customers-table-wrap {
  width: 100%;
  max-width: 100%;
}

/* Toolbar: Excel/PDF/Imprimir a la izq; Mostrar + Buscar a la der */
.dataTables_wrapper .dt-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
}

.dataTables_wrapper .dt-top-exports,
.dataTables_wrapper .dt-top-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.dataTables_wrapper .dt-top-tools {
  margin-left: auto;
}

.dataTables_wrapper .dt-buttons {
  float: none !important;
  display: inline-flex !important;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0 !important;
}

.dataTables_wrapper .dt-buttons .btn,
.dataTables_wrapper .dt-buttons .dt-button {
  min-height: 32px !important;
  height: 32px !important;
  padding: 0 0.65rem !important;
  font-size: 0.75rem !important;
  line-height: 1 !important;
  margin: 0 !important;
  border-radius: 4px !important;
  display: inline-flex !important;
  align-items: center;
  gap: 0.3rem;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  float: none !important;
  text-align: left !important;
  margin: 0 !important;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

.dataTables_wrapper .dataTables_length select {
  min-height: 32px;
  height: 32px;
  padding: 0 1.5rem 0 0.4rem;
  font-size: 0.8rem;
  width: auto !important;
}

.dataTables_wrapper .dataTables_filter input {
  min-height: 32px !important;
  height: 32px !important;
  margin-left: 0.35rem !important;
  padding: 0 0.55rem !important;
  font-size: 0.8rem !important;
  width: 160px !important;
  max-width: 42vw;
}

.dataTables_wrapper .dt-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  float: none !important;
  padding-top: 0 !important;
  margin: 0 !important;
}

.dataTables_wrapper .dataTables_info {
  font-size: 0.78rem;
  color: #6c757d;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  min-width: 1.85rem !important;
  height: 1.85rem !important;
  padding: 0 0.4rem !important;
  margin: 0 0.1rem !important;
  font-size: 0.75rem !important;
  line-height: 1.85rem !important;
}

/* Filas compactas (sin pisar el padding-left del + de Responsive) */
table.dataTable.table-sm thead th,
table.dataTable.table-sm tbody td,
table.dataTable thead th,
table.dataTable tbody td {
  padding-top: 0.4rem !important;
  padding-right: 0.5rem !important;
  padding-bottom: 0.4rem !important;
  padding-left: 0.5rem !important;
  vertical-align: middle !important;
  font-size: 0.8125rem;
}

/* El + de DataTables Responsive no debe montarse sobre el texto */
table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > td:first-child,
table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > th:first-child,
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control {
  position: relative !important;
  padding-left: 2rem !important;
  cursor: pointer;
}

table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > td:first-child:before,
table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > th:first-child:before,
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before {
  top: 50% !important;
  left: 0.35rem !important;
  margin-top: -8px !important;
  height: 16px !important;
  width: 16px !important;
  line-height: 16px !important;
  border: none !important;
  box-shadow: none !important;
}

table.dataTable.nowrap th,
table.dataTable.nowrap td {
  white-space: nowrap;
}

table.dataTable td .d-flex {
  flex-wrap: wrap;
  gap: 0.25rem;
}

/* Acciones unificadas en todas las tablas */
.dt-actions,
.customer-actions-cell {
  display: inline-flex !important;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.dt-actions-form {
  display: inline;
  margin: 0;
}

.dt-actions .btn,
.dt-actions .btn-xs,
.customer-actions-cell .btn,
.customer-actions-cell .btn-xs,
table.dataTable .btn-xs {
  min-height: 28px !important;
  height: 28px !important;
  padding: 0 0.45rem !important;
  margin: 0 !important;
  font-size: 0.7rem !important;
  line-height: 1 !important;
  white-space: nowrap;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 4px !important;
}

.dt-actions .dropdown-toggle::after,
.customer-actions-cell .dropdown .btn::after {
  margin-left: 0.2rem;
}

/* Celular: número + iconos chicos en línea */
.customer-phone-cell {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.customer-phone-number {
  font-size: 0.8125rem;
  white-space: nowrap;
}

.customer-phone-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0.2rem;
}

.customer-phone-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  font-size: 0.85rem !important;
  line-height: 1 !important;
  text-decoration: none !important;
  color: #fff !important;
}

.customer-phone-wa {
  background: #25d366 !important;
}

.customer-phone-call {
  background: #17a2b8 !important;
}

.customer-phone-btn-text {
  display: none !important;
}

/* Filtros estándar (colapsables en móvil) */
.app-filters {
  margin-bottom: 0.75rem;
}

.app-filters-header {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem !important;
  min-height: unset;
}

.app-filters-title {
  font-size: 0.9rem;
  color: #203a56;
}

.app-filters-body {
  padding: 0.65rem 0.85rem 0.35rem !important;
}

.app-filters-body .form-label,
.app-filters-body label {
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
  display: block;
}

.app-filters-body .form-control-sm {
  min-height: 34px;
  height: auto;
  font-size: 0.8125rem;
}

@media (min-width: 1200px) {
  .app-filters-toggle,
  .app-filters-header {
    display: none !important;
  }

  .app-filters-collapse.collapse {
    display: block !important;
    height: auto !important;
  }
}

@media (max-width: 991.98px) {
  .dataTables_wrapper .dt-top {
    flex-direction: column;
    align-items: stretch;
  }

  .dataTables_wrapper .dt-top-tools {
    margin-left: 0;
    justify-content: space-between;
  }

  .dataTables_wrapper .dataTables_filter {
    width: 100%;
  }

  .dataTables_wrapper .dataTables_filter label {
    width: 100%;
  }

  .dataTables_wrapper .dataTables_filter input {
    flex: 1;
    width: 100% !important;
    max-width: none;
    margin-left: 0 !important;
    margin-top: 0.25rem;
  }

  .dataTables_wrapper .dt-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .dataTables_wrapper .dataTables_paginate {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .dataTables_wrapper .dataTables_paginate .pagination {
    flex-wrap: nowrap !important;
    display: inline-flex !important;
  }
}

@media (max-width: 575.98px) {
  .dataTables_wrapper .dt-buttons {
    width: 100%;
  }

  .dataTables_wrapper .dt-buttons .btn,
  .dataTables_wrapper .dt-buttons .dt-button {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* Buscar cliente / VALIDAR: misma altura input + botón */
.app-search-group {
  flex-wrap: nowrap;
  align-items: stretch;
}

.app-search-group > .form-control {
  height: auto;
  min-height: 42px;
}

.app-search-group .input-group-append,
.app-search-group .input-group-append .btn {
  display: flex;
  align-items: center;
}

.app-search-group .input-group-append .btn {
  height: 100%;
  min-height: 42px;
  white-space: nowrap;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.app-map-box {
  width: 100%;
  height: 280px;
  border-radius: 8px;
  overflow: hidden;
}

/* ---------- /requests: cards móvil + paginación ---------- */
.requests-cards {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.request-card {
  background: #fff;
  border: 1px solid #e9eef5;
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
}

.request-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.request-card-client {
  min-width: 0;
  flex: 1;
}

.request-card-name {
  display: block;
  font-weight: 600;
  color: #1e3a5f;
  font-size: 0.92rem;
  line-height: 1.25;
  text-decoration: none;
}

.request-card-name:hover {
  color: #222fb9;
}

.request-card-meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: #6c757d;
}

.request-card-state {
  flex-shrink: 0;
  font-size: 0.72rem !important;
  white-space: nowrap;
}

.request-card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.8125rem;
  padding: 0.15rem 0;
}

.request-card-row > span {
  color: #6c757d;
  flex-shrink: 0;
}

.request-card-row > strong {
  text-align: right;
  font-weight: 600;
  color: #203a56;
  word-break: break-word;
}

.request-card-action {
  display: block;
  margin-top: 0.55rem;
  text-align: center;
  background: #222fb9;
  color: #fff !important;
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none !important;
}

.request-card-action:hover {
  background: #1a2499;
  color: #fff !important;
}

/* Paginación Laravel usable en móvil */
.app-pagination {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.25rem;
}

.app-pagination nav {
  display: block;
}

.app-pagination .pagination {
  display: inline-flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  margin-bottom: 0 !important;
  gap: 0.2rem;
}

.app-pagination .page-item {
  display: inline-block !important;
  float: none !important;
  margin: 0 !important;
}

.app-pagination .page-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem !important;
  padding: 0 0.45rem !important;
  margin: 0 !important;
  font-size: 0.75rem !important;
  line-height: 1 !important;
  white-space: nowrap;
  border-radius: 4px !important;
}

.app-pagination p,
.app-pagination .small {
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  color: #6c757d;
}

@media (max-width: 575.98px) {
  .app-pagination .page-link {
    min-width: 1.85rem;
    height: 1.85rem !important;
    padding: 0 0.35rem !important;
    font-size: 0.7rem !important;
  }
}

/* ---------- Cobros: filtros colapsables ---------- */
.cobros-filters-header {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem !important;
}

.cobros-filters-toolbar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.cobros-filters-body {
  padding: 0.75rem 0.9rem 0.5rem !important;
}

.cobros-filters-body .form-group {
  margin-bottom: 0.65rem;
}

.cobros-filters-body .form-group > strong,
.cobros-filters-body .form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  display: block;
}

.cobros-filters-body .form-control-sm {
  min-height: 34px;
  height: auto;
  font-size: 0.8125rem;
}

/* Desktop: filtros siempre visibles, sin botón */
@media (min-width: 1200px) {
  .cobros-filters-toggle {
    display: none !important;
  }

  .cobros-filters-collapse.collapse {
    display: block !important;
    height: auto !important;
  }
}

/* ---------- Cobros cards (compactas, sin .btn del tema) ---------- */
.usuario_de_cobro {
  margin-bottom: 0.4rem !important;
}

.usuario_de_cobro .cobro-card {
  height: auto !important;
  margin-bottom: 0.4rem !important;
  border-width: 2px !important;
  border-radius: 8px !important;
  overflow: hidden;
}

.usuario_de_cobro .cobro-card.is-postponed {
  background: #fff8f0;
}

.cobro-card-inner {
  padding: 0.5rem 0.65rem;
}

.cobro-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.4rem;
}

.cobro-card-who {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.4rem;
  line-height: 1.25;
}

.cobro-card-name,
.usuario_de_cobro .cobro-card-name,
.usuario_de_cobro h4,
.usuario_de_cobro h5 {
  display: inline !important;
  margin: 0 !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  color: #203a56;
  text-transform: none !important;
  line-height: 1.25 !important;
}

.cobro-card-id {
  font-size: 0.75rem !important;
  color: #6c757d;
  font-weight: 500;
}

.cobro-card-contact {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.3rem;
  flex-wrap: wrap;
}

.cobro-card-contact .customer-phone-number {
  font-size: 0.75rem !important;
  color: #203a56;
}

.cobro-card-km {
  flex: 0 0 auto;
  font-size: 0.7rem !important;
  color: #203a56;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.25;
}

.cobro-card-km i {
  font-size: 0.85rem;
  margin-right: 0.1rem;
}

.cobro-card-agreement {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.1rem 0.4rem;
  font-size: 0.65rem !important;
  font-weight: 600;
  line-height: 1.2;
  color: #856404;
  background: #fff3cd;
  border-radius: 3px;
}

.cobro-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}

.cobro-card-amounts {
  font-size: 0.75rem !important;
  color: #5a6a7a;
  line-height: 1.3;
  flex: 1 1 auto;
  min-width: 0;
}

.cobro-card-amounts b {
  color: #203a56;
  font-weight: 600;
  font-size: 0.75rem !important;
}

.cobro-dot {
  margin: 0 0.15rem;
  color: #adb5bd;
}

/* Grilla fija 4 botones — NO usar .btn (el tema los hace enormes) */
.cobro-card-actions {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0.25rem !important;
  width: 100%;
  max-width: 100%;
  flex: 1 1 100%;
  margin: 0 !important;
}

.cobro-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100% !important;
  min-height: 28px !important;
  max-height: 32px !important;
  height: 30px !important;
  padding: 0 0.25rem !important;
  margin: 0 !important;
  border-radius: 4px !important;
  border: 1px solid transparent;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
}

.cobro-btn-pay {
  background: #28a745 !important;
  color: #fff !important;
}

.cobro-btn-view {
  background: #5f7a61 !important;
  color: #fff !important;
}

.cobro-btn-agree {
  background: #f4f5f7 !important;
  color: #203a56 !important;
  border-color: #dde1e6 !important;
}

.cobro-btn-postpone {
  background: #fd7e14 !important;
  color: #fff !important;
}

.cobro-btn-postponed {
  background: #dc3545 !important;
  color: #fff !important;
}

/* Anular reglas globales del tema sobre botones dentro de cobros */
.usuario_de_cobro .cobro-btn.btn,
.usuario_de_cobro a.cobro-btn {
  min-height: 28px !important;
  height: 30px !important;
  padding: 0 0.25rem !important;
  font-size: 0.68rem !important;
  width: 100% !important;
  flex: none !important;
}

.customers-page-filter {
  min-width: 180px;
  flex: 1 1 180px;
}

@media (max-width: 1199.98px) {
  .filtersBlock .form-group strong,
  .card-body .form-group > strong {
    display: block;
    margin-bottom: 0.35rem;
    line-height: 1.3;
  }

  .noshowtablet {
    display: none !important;
  }

  .credit-plan-actions {
    white-space: nowrap;
  }

  .credit-plan-actions .btn {
    margin: 0 0.15rem 0.25rem 0;
  }
}

@media (max-width: 991.98px) {
  .customers-page-header .card-title {
    width: 100%;
  }

  .customers-page-toolbar {
    width: 100%;
  }

  .customers-page-filter {
    min-width: 100%;
    flex: 1 1 100%;
    margin-right: 0 !important;
  }

  .dt-table-wrap,
  .customers-table-wrap {
    margin: 0 -0.25rem;
  }

  .app-map-box {
    height: 240px;
  }

  .credit-show-header .card-title {
    line-height: 1.5;
  }

  .credit-show-header .badge {
    margin: 0.15rem 0.15rem 0.15rem 0;
  }

  /* Child rows DataTables Responsive */
  table.dataTable.dtr-inline.collapsed > tbody > tr > td.child,
  table.dataTable.dtr-inline.collapsed > tbody > tr > th.child {
    padding: 0.75rem 0.85rem;
  }

  table.dataTable > tbody > tr.child ul.dtr-details {
    width: 100%;
  }

  table.dataTable > tbody > tr.child span.dtr-title {
    min-width: 7rem;
    font-weight: 600;
  }

  table.dataTable > tbody > tr.child span.dtr-data {
    word-break: break-word;
  }
}

@media (max-width: 767.98px) {
  .app-search-group {
    flex-direction: column;
    align-items: stretch;
  }

  .app-search-group > .form-control {
    border-radius: 0.5rem !important;
    width: 100%;
  }

  .app-search-group .input-group-append {
    width: 100%;
    margin-left: 0 !important;
    margin-top: 0.5rem;
  }

  .app-search-group .input-group-append .btn {
    width: 100%;
    border-radius: 0.5rem !important;
  }

  .cobro-card-top {
    flex-direction: column;
    align-items: stretch;
  }

  .cobro-card-km {
    align-self: flex-start;
  }
}

@media (max-width: 575.98px) {
  .customers-page-toolbar > .btn,
  .customers-page-toolbar > a.btn {
    width: 100%;
  }

  .cobro-card-actions {
    grid-template-columns: 1fr;
  }
}

/* Touch: targets cómodos (sin inflar tablas / cobros) */
@media (hover: none) and (pointer: coarse) {
  .actions_card_unique .btn,
  .pagoMora,
  .pagoCuota,
  .acuerdoPago {
    min-height: var(--touch-min);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .cobro-btn {
    min-height: 32px !important;
    height: 32px !important;
  }

  .dt-actions .btn,
  .customer-phone-btn {
    min-height: 28px !important;
  }

  .customradio label {
    min-width: var(--touch-min);
    min-height: var(--touch-min);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* ---------- /cobros: preload + per page + paginador ---------- */
/* Evitar preload global feo en pantallas con loading propio */
body[class="credits.cobros"] #preloader,
body[class="customers.index"] #preloader {
  display: none !important;
}

.customers-dt-loading {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 20;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.78);
}

.customers-dt-loading.is-active {
  display: flex;
}

.customers-dt-loading-inner {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: #203a56;
}

.cobros-page {
  position: relative;
}

.cobros-loading {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(1px);
}

.cobros-loading.is-active {
  display: flex;
}

.cobros-loading-inner {
  text-align: center;
}

.cobros-loading-text {
  margin: 0.75rem 0 0;
  font-size: 0.875rem !important;
  color: #203a56;
  font-weight: 600;
}

.cobros-perpage {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cobros-perpage label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6c757d;
  white-space: nowrap;
}

.cobros-perpage select {
  width: auto !important;
  min-width: 4.25rem;
  min-height: 32px !important;
  height: 32px !important;
  padding: 0 0.4rem !important;
  font-size: 0.8125rem !important;
}

.cobros-results-meta {
  font-size: 0.8rem;
  color: #6c757d;
  margin-bottom: 0.65rem;
}

.cobros-pagination {
  padding-top: 0.25rem;
}

/* =========================================================
   ESCALA TIPOGRÁFICA MÓVIL / TABLET (estándar app)
   ========================================================= */
:root {
  --app-fs-xs: 0.75rem;      /* 12px meta */
  --app-fs-sm: 0.8125rem;    /* 13px labels / inputs / tablas */
  --app-fs-base: 0.875rem;   /* 14px body / p / li */
  --app-fs-md: 0.9375rem;    /* 15px */
  --app-fs-title: 1.0625rem; /* ~17px títulos de card */
  --app-fs-h3: 1.15rem;
  --app-btn-h: 38px;
  --app-input-h: 40px;
}

@media screen and (max-width: 991.98px) {
  body,
  .content-body,
  .content-body p,
  .content-body li,
  .content-body span:not(.badge):not(.cobro-btn):not(.fa):not([class*="la-"]) {
    font-size: var(--app-fs-base) !important;
    line-height: 1.45;
  }

  .content-body h1 { font-size: 1.35rem !important; }
  .content-body h2 { font-size: 1.2rem !important; }
  .content-body h3,
  .content-body .h3 { font-size: var(--app-fs-h3) !important; }
  .content-body h4,
  .content-body .h4,
  .content-body .card-title,
  .header-left .dashboard_bar {
    font-size: var(--app-fs-title) !important;
    font-weight: 600;
    line-height: 1.35;
  }
  .content-body h5,
  .content-body .h5 { font-size: var(--app-fs-md) !important; }
  .content-body h6,
  .content-body .h6 { font-size: var(--app-fs-base) !important; }

  .content-body label,
  .content-body .form-label,
  .content-body .form-group > strong,
  .content-body .form-group strong,
  .content-body b > label,
  .filtersBlock strong,
  .app-filters-body .form-label,
  .cobros-filters-body label,
  .cobros-filters-body strong {
    font-size: var(--app-fs-sm) !important;
    font-weight: 600 !important;
    line-height: 1.3;
    margin-bottom: 0.25rem;
  }

  .content-body .form-control,
  .content-body .form-control-sm,
  .content-body select.form-control,
  .content-body textarea.form-control,
  .content-body .custom-select {
    font-size: var(--app-fs-sm) !important;
    min-height: var(--app-input-h) !important;
    height: auto !important;
    line-height: 1.35 !important;
  }

  .content-body .form-control-sm {
    min-height: 36px !important;
  }

  .content-body .btn,
  .content-body .btn-sm,
  .content-body a.btn,
  .content-body button.btn {
    font-size: var(--app-fs-sm) !important;
    min-height: var(--app-btn-h);
    line-height: 1.2 !important;
  }

  .content-body .btn-xs {
    font-size: var(--app-fs-xs) !important;
    min-height: 30px;
    padding: 0.25rem 0.5rem !important;
  }

  .content-body .btn-lg {
    font-size: var(--app-fs-base) !important;
    min-height: 44px;
  }

  .content-body .badge,
  .content-body .badge-lg {
    font-size: var(--app-fs-xs) !important;
    font-weight: 600;
    line-height: 1.3;
  }

  .content-body table,
  .content-body .table,
  .content-body .table th,
  .content-body .table td,
  .content-body .list-group-item {
    font-size: var(--app-fs-sm) !important;
  }

  .content-body .list-group-item strong,
  .content-body .credit-show-customer strong,
  .content-body .credit-show-summary th {
    font-size: var(--app-fs-sm) !important;
    font-weight: 600 !important;
  }

  .content-body .credit-show-customer span,
  .content-body .credit-show-summary td,
  .content-body .list-group-item span {
    font-size: var(--app-fs-sm) !important;
  }

  .content-body .text-muted,
  .content-body small,
  .content-body .small {
    font-size: var(--app-fs-xs) !important;
  }

  /* Detalle crédito / tirilla / comprobantes */
  .content-body .datacomerce p,
  .content-body #pdfPayment p,
  .content-body .card.user-card h4,
  .content-body .card.user-card h5,
  .content-body .card.user-card h6,
  .content-body .usuario_de_cobro h4,
  .content-body .usuario_de_cobro h5 {
    font-size: var(--app-fs-base) !important;
  }

  .content-body .card.user-card h4 {
    font-size: var(--app-fs-title) !important;
  }

  /* No pisar botones propios de cobro cards */
  .content-body .cobro-btn {
    font-size: 0.7rem !important;
    min-height: 28px !important;
  }

  .content-body .cobro-card-name {
    font-size: 0.85rem !important;
  }

  .content-body .cobro-card-id,
  .content-body .cobro-card-amounts,
  .content-body .cobro-card-km,
  .content-body .cobro-card-agreement {
    font-size: 0.75rem !important;
  }

  .content-body .dt-actions .btn,
  .content-body .dt-actions .btn-xs {
    font-size: 0.7rem !important;
    min-height: 28px !important;
  }
}
