
   .select2-container--default .select2-selection--single {
      height: 38px; /* altura de input de Bootstrap 5 */
      padding: 6px 12px;
      border: 1px solid #ced4da;
      border-radius: 0.375rem;
    }
    
  /*========================================
MODAL DE CARTERA
  ========================================*/
@media (max-width: 768px) {
  #modalDetalleCartera .modal-dialog {
    max-width: 100vw !important;
    width: 100vw !important;
    margin: 0 !important;
    height: 100vh !important;
    display: flex;
    flex-direction: column;
  }

  #modalDetalleCartera .modal-content {
    height: 100vh !important;
    display: flex;
    flex-direction: column;
    border-radius: 0 !important;
    overflow: hidden;
  }

  #modalDetalleCartera .modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
  }
}
  /*========================================
  INPUT PARA TIPO DE VENTA (DETAL O AL POR MAYOR)
  ========================================*/

.venta-layout-box {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    background-color: #fff;
  }



  .venta-layout-cell {
    padding: 10px;
    border-left: 1px solid #eee;
    border-top: none;
  }

  .venta-layout-row > .venta-layout-cell:first-child {
    border-left: none;
  }

  @media (max-width: 767px) {
    .venta-layout-cell {
      border-left: none;
      border-top: 1px solid #eee;
    }

    .venta-layout-row > .venta-layout-cell:first-child {
      border-top: none;
    }
  }

  .toggle-precio {
    display: flex;
    gap: 10px;
  }

    .btn-precio {
    padding: 1px 16px; /* Padding vertical grande por defecto (pantallas grandes) */
    border: 2px solid #3c8dbc;
    background: white;
    color: #3c8dbc;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
  }

  @media (min-width: 1600px) {
    .btn-precio {
      padding: 8px 16px;
    }
  }

  .btn-precio.active {
    background: #3c8dbc;
    color: white;
  }


  /*========================================
  SWITCH YA QUE NO ESTA EN ESTA VERSION BOOTSTRAP
  ========================================*/

  .custom-switch {
  display: flex;
  align-items: center;
  gap: 10px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px; width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #3c8dbc;
}

input:checked + .slider:before {
  transform: translateX(20px);
}
