
    .select2-container--bootstrap-5 .select2-selection {
      min-height: 38px;
    }
    .select2-container--bootstrap-5 .select2-selection--single {
      padding: 0.375rem 0.75rem;
    }
    .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
      line-height: 1.5;
      padding: 0;
    }
    .select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
      height: 36px;
    }
    
    /* Estilos para inventario por marcas */
    .table-info {
      background-color: #d1ecf1 !important;
      border-color: #bee5eb !important;
    }
    
    .table-success {
      background-color: #d4edda !important;
      border-color: #c3e6cb !important;
    }
    
    /* ===== ESTILOS GLOBALES PARA TODAS LAS TABLAS DATATABLE ===== */
    
    /* Configuración base para evitar redimensionamiento */
    table.dataTable {
      table-layout: fixed !important;
      width: 100% !important;
      max-width: 100% !important;
    }
    
    table.dataTable thead th,
    table.dataTable tbody td {
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      white-space: nowrap !important;
      word-wrap: break-word !important;
      box-sizing: border-box !important;
    }
    
    /* Wrapper de DataTables para controlar overflow */
    .dataTables_wrapper {
      width: 100% !important;
      max-width: 100% !important;
      overflow: hidden !important;
      box-sizing: border-box !important;
    }
    
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
      white-space: nowrap !important;
    }
    
    .dataTables_wrapper .dataTables_filter input {
      width: 200px !important;
      max-width: 200px !important;
      box-sizing: border-box !important;
    }
    
    /* Container responsive para todas las tablas */
    .table-responsive {
      overflow-x: hidden !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
    }
    
    /* Estilos específicos para cada tabla */
    
    /* Tabla de Clientes */
    #tablaClientes {
      table-layout: fixed !important;
      width: 100% !important;
    }
    
    #tablaClientes th:nth-child(1), #tablaClientes td:nth-child(1) { width: 5% !important; }   /* # */
    #tablaClientes th:nth-child(2), #tablaClientes td:nth-child(2) { width: 12% !important; }  /* Nombre */
    #tablaClientes th:nth-child(3), #tablaClientes td:nth-child(3) { width: 12% !important; }  /* Apellido */
    #tablaClientes th:nth-child(4), #tablaClientes td:nth-child(4) { width: 8% !important; }   /* Anillo */
    #tablaClientes th:nth-child(5), #tablaClientes td:nth-child(5) { width: 10% !important; }  /* Tienda */
    #tablaClientes th:nth-child(6), #tablaClientes td:nth-child(6) { width: 12% !important; }  /* Avenida */
    #tablaClientes th:nth-child(7), #tablaClientes td:nth-child(7) { width: 15% !important; }  /* Producto */
    #tablaClientes th:nth-child(8), #tablaClientes td:nth-child(8) { width: 10% !important; }  /* Precio */
    #tablaClientes th:nth-child(9), #tablaClientes td:nth-child(9) { width: 10% !important; }  /* Fecha */
    #tablaClientes th:nth-child(10), #tablaClientes td:nth-child(10) { width: 6% !important; }  /* Acciones */
    
    /* Tabla de Productos */
    #tablaProductos {
      table-layout: fixed !important;
      width: 100% !important;
    }
    
    #tablaProductos th:nth-child(1), #tablaProductos td:nth-child(1) { width: 10% !important; }  /* # */
    #tablaProductos th:nth-child(2), #tablaProductos td:nth-child(2) { width: 70% !important; }  /* Producto */
    #tablaProductos th:nth-child(3), #tablaProductos td:nth-child(3) { width: 20% !important; }  /* Acciones */
    
    /* Tabla de Compras */
    #tablaCompras {
      table-layout: fixed !important;
      width: 100% !important;
    }
    
    #tablaCompras th:nth-child(1), #tablaCompras td:nth-child(1) { width: 5% !important; }   /* # */
    #tablaCompras th:nth-child(2), #tablaCompras td:nth-child(2) { width: 20% !important; }  /* Producto */
    #tablaCompras th:nth-child(3), #tablaCompras td:nth-child(3) { width: 10% !important; }  /* Cantidad */
    #tablaCompras th:nth-child(4), #tablaCompras td:nth-child(4) { width: 15% !important; }  /* Precio */
    #tablaCompras th:nth-child(5), #tablaCompras td:nth-child(5) { width: 15% !important; }  /* Total */
    #tablaCompras th:nth-child(6), #tablaCompras td:nth-child(6) { width: 15% !important; }  /* Fecha */
    #tablaCompras th:nth-child(7), #tablaCompras td:nth-child(7) { width: 10% !important; }  /* Proveedor */
    #tablaCompras th:nth-child(8), #tablaCompras td:nth-child(8) { width: 10% !important; }  /* Acciones */
    
    /* Tabla de Libro Diario */
    #tablaLibroDiario {
      table-layout: fixed !important;
      width: 100% !important;
    }
    
    #tablaLibroDiario th:nth-child(1), #tablaLibroDiario td:nth-child(1) { width: 8% !important; }   /* Fecha */
    #tablaLibroDiario th:nth-child(2), #tablaLibroDiario td:nth-child(2) { width: 4% !important; }   /* # */
    #tablaLibroDiario th:nth-child(3), #tablaLibroDiario td:nth-child(3) { width: 12% !important; }  /* Cliente */
    #tablaLibroDiario th:nth-child(4), #tablaLibroDiario td:nth-child(4) { width: 12% !important; }  /* Producto */
    #tablaLibroDiario th:nth-child(5), #tablaLibroDiario td:nth-child(5) { width: 6% !important; }   /* Cantidad */
    #tablaLibroDiario th:nth-child(6), #tablaLibroDiario td:nth-child(6) { width: 8% !important; }   /* Precio Venta */
    #tablaLibroDiario th:nth-child(7), #tablaLibroDiario td:nth-child(7) { width: 8% !important; }   /* Precio Compra */
    #tablaLibroDiario th:nth-child(8), #tablaLibroDiario td:nth-child(8) { width: 9% !important; }   /* Ganancia Líquida */
    #tablaLibroDiario th:nth-child(9), #tablaLibroDiario td:nth-child(9) { width: 8% !important; }   /* Total */
    #tablaLibroDiario th:nth-child(10), #tablaLibroDiario td:nth-child(10) { width: 5% !important; }  /* QR */
    #tablaLibroDiario th:nth-child(11), #tablaLibroDiario td:nth-child(11) { width: 6% !important; }  /* Efectivo */
    #tablaLibroDiario th:nth-child(12), #tablaLibroDiario td:nth-child(12) { width: 6% !important; }  /* Delivery */
    #tablaLibroDiario th:nth-child(13), #tablaLibroDiario td:nth-child(13) { width: 6% !important; }  /* Delivery S/N */
    #tablaLibroDiario th:nth-child(14), #tablaLibroDiario td:nth-child(14) { width: 6% !important; }  /* Acciones */
    
    /* Tabla de Libro General */
    #tablaLibroGeneral {
      table-layout: fixed !important;
      width: 100% !important;
    }
    
    #tablaLibroGeneral th:nth-child(1), #tablaLibroGeneral td:nth-child(1) { width: 12% !important; }  /* Fecha */
    #tablaLibroGeneral th:nth-child(2), #tablaLibroGeneral td:nth-child(2) { width: 10% !important; }  /* Total Ventas */
    #tablaLibroGeneral th:nth-child(3), #tablaLibroGeneral td:nth-child(3) { width: 15% !important; }  /* Total Ingresos */
    #tablaLibroGeneral th:nth-child(4), #tablaLibroGeneral td:nth-child(4) { width: 15% !important; }  /* Total Ganancia */
    #tablaLibroGeneral th:nth-child(5), #tablaLibroGeneral td:nth-child(5) { width: 12% !important; }  /* Pagos QR */
    #tablaLibroGeneral th:nth-child(6), #tablaLibroGeneral td:nth-child(6) { width: 12% !important; }  /* Pagos Efectivo */
    #tablaLibroGeneral th:nth-child(7), #tablaLibroGeneral td:nth-child(7) { width: 12% !important; }  /* % Ganancia */
    #tablaLibroGeneral th:nth-child(8), #tablaLibroGeneral td:nth-child(8) { width: 12% !important; }  /* Acciones */
    
    /* Estilos para tabla de clientes fija (mantenido para compatibilidad) */
    .table-fixed {
      table-layout: fixed !important;
      width: 100% !important;
    }
    
    .table-fixed th,
    .table-fixed td {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      word-wrap: break-word;
    }
    
    .card-totales {
      transition: transform 0.2s;
    }
    
    .card-totales:hover {
      transform: translateY(-5px);
    }
    
    /* Estilos para validación de campos */
    .is-invalid {
      border-color: #dc3545 !important;
      box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
    }
    
    .form-select.is-invalid {
      background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e") !important;
      background-repeat: no-repeat !important;
      background-position: right 0.75rem center !important;
      background-size: 16px 12px !important;
    }
    
    /* Estilos para campos requeridos dinámicamente */
    .campo-requerido {
      border-left: 3px solid #0d6efd;
    }
    
    .text-danger {
      color: #dc3545 !important;
    }
 