/* 
   Financiera Core CSS 
   Reemplazo ligero de Bootstrap para Grid y Utilidades
*/

:root {
    --primary: #6366f1;
    --secondary: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --light: #f8fafc;
    --dark: #1e293b;
    --white: #ffffff;
    --black: #000000;
}

/* === Reset Básico === */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--dark);
    background-color: #f1f5f9;
}

/* === Grid System Simplificado === */
.container, .container-fluid {
    width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    margin-right: auto;
    margin-left: auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * 0);
    margin-right: calc(-0.5 * 1.5rem);
    margin-left: calc(-0.5 * 1.5rem);
}

.row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(1.5rem * 0.5);
    padding-left: calc(1.5rem * 0.5);
    margin-top: 0;
}

.col { flex: 1 0 0%; }
.col-12 { flex: 0 0 auto; width: 100%; }
.col-6 { flex: 0 0 auto; width: 50%; }

@media (min-width: 576px) {
    .col-sm-6 { flex: 0 0 auto; width: 50%; }
}

@media (min-width: 768px) {
    .col-md-1 { flex: 0 0 auto; width: 8.333333%; }
    .col-md-2 { flex: 0 0 auto; width: 16.666667%; }
    .col-md-3 { flex: 0 0 auto; width: 25%; }
    .col-md-4 { flex: 0 0 auto; width: 33.333333%; }
    .col-md-5 { flex: 0 0 auto; width: 41.666667%; }
    .col-md-6 { flex: 0 0 auto; width: 50%; }
    .col-md-7 { flex: 0 0 auto; width: 58.333333%; }
    .col-md-8 { flex: 0 0 auto; width: 66.666667%; }
    .col-md-9 { flex: 0 0 auto; width: 75%; }
    .col-md-10 { flex: 0 0 auto; width: 83.333333%; }
    .col-md-11 { flex: 0 0 auto; width: 91.666667%; }
    .col-md-12 { flex: 0 0 auto; width: 100%; }
    .d-md-block { display: block !important; }
    .d-md-flex { display: flex !important; }
    .d-md-none { display: none !important; }
}

@media (min-width: 992px) {
    .col-lg-3 { flex: 0 0 auto; width: 25%; }
    .col-lg-4 { flex: 0 0 auto; width: 33.333333%; }
    .col-lg-5 { flex: 0 0 auto; width: 41.666667%; }
    .col-lg-6 { flex: 0 0 auto; width: 50%; }
    .col-lg-7 { flex: 0 0 auto; width: 58.333333%; }
    .col-lg-8 { flex: 0 0 auto; width: 66.666667%; }
    .col-lg-9 { flex: 0 0 auto; width: 75%; }
    .d-lg-inline-flex { display: inline-flex !important; }
    .d-lg-block { display: block !important; }
    .d-lg-none { display: none !important; }
}

/* === Utilidades de Espaciado Adicionales === */
.p-4 { padding: 1.5rem !important; }
.p-3 { padding: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.g-4 { --gutter-x: 1.5rem; --gutter-y: 1.5rem; margin-top: calc(-1 * var(--gutter-y)); margin-left: calc(-0.5 * var(--gutter-x)); }
.g-4 > * { margin-top: var(--gutter-y); padding-left: calc(var(--gutter-x) * 0.5); padding-right: calc(var(--gutter-x) * 0.5); }

/* === Utilidades de Display === */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }
.flex-fill { flex: 1 1 auto !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-start { justify-content: flex-start !important; }
.justify-content-end { justify-content: flex-end !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.gap-5 { gap: 3rem !important; }
.position-relative { position: relative !important; }
.text-center { text-align: center !important; }
.text-end { text-align: right !important; }
.text-muted { color: #64748b !important; }
.text-danger { color: var(--danger) !important; }
.ms-2 { margin-left: 0.5rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.g-3 { --gutter-x: 1rem; --gutter-y: 1rem; margin-top: calc(-1 * var(--gutter-y)); margin-left: calc(-0.5 * var(--gutter-x)); }
.g-3 > * { margin-top: var(--gutter-y); padding-left: calc(var(--gutter-x) * 0.5); padding-right: calc(var(--gutter-x) * 0.5); }

/* === Componentes Dropdown (Vanilla) === */
.dropdown-menu {
    position: absolute;
    z-index: 1000;
    display: none;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0;
    font-size: 0.875rem;
    color: var(--dark);
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
    right: 0;
    top: 100%;
}

.dropdown-menu.show {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    cursor: pointer;
}

.dropdown-item:hover, .dropdown-item:focus {
    color: #1e2125;
    background-color: #e9ecef;
}

.dropdown-divider {
    height: 0;
    margin: 0.5rem 0;
    overflow: hidden;
    border-top: 1px solid #e9ecef;
}

.dropdown-header {
    display: block;
    padding: 0.5rem 1rem;
    margin-bottom: 0;
    font-size: 0.875rem;
    color: #6c757d;
    white-space: nowrap;
}

/* === Imagenes === */
.img-fluid {
    max-width: 100%;
    height: auto;
}
.rounded-circle {
    border-radius: 50% !important;
}

/* === Animaciones === */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === Inputs Modernos (Globales) === */
.form-control, .form-select {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    color: #1e293b;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.02);
}

.form-control:focus, .form-select:focus {
    background-color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === Tabla Moderna Premium === */
.table-modern {
    border-collapse: separate;
    border-spacing: 0 10px;
    width: 100%;
}

.table-modern thead th {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 15px 20px;
}

.table-modern tbody tr {
    background: #ffffff;
    transition: all 0.2s ease;
}

.table-modern tbody tr td {
    padding: 20px;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.table-modern tbody tr td:first-child {
    border-left: 1px solid #f1f5f9;
    border-radius: 15px 0 0 15px;
}

.table-modern tbody tr td:last-child {
    border-right: 1px solid #f1f5f9;
    border-radius: 0 15px 15px 0;
}

.table-modern tbody tr:hover {
    transform: scale(1.005);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    z-index: 1;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600; /* Más peso para look premium */
    padding: 0.75rem 1.5rem; /* Más padding */
    border-radius: 14px; /* Más redondeado */
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid transparent;
    gap: 0.6rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    white-space: nowrap;
    letter-spacing: -0.2px;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: var(--white);
    border: none;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: #ffffff;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

/* === High-End UI Utilities === */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

.lux-shadow {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1) !important;
}

.gradient-text {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Redefinir cards existentes para que sean más modernos */
.kpi-card, .content-card {
    border-radius: 20px !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    background: #fff !important;
    transition: all 0.3s ease !important;
}

.kpi-card:hover, .content-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) !important;
}

.btn-danger {
    background-color: var(--danger);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background-color: #dc2626;
    box-shadow: 0 6px 15px rgba(239, 68, 68, 0.3);
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 8px;
}

/* === DataTables Fixes === */
/* Evitar repetición de iconos de ordenamiento */
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc,
table.dataTable thead .sorting_asc_disabled,
table.dataTable thead .sorting_desc_disabled {
    background-repeat: no-repeat !important;
    background-position: right 0.5rem center !important;
    background-size: 16px !important;
}

/* Ajustes para tabla moderna */
.table-modern thead th {
    position: relative;
    padding-right: 1.5rem !important; /* Espacio para el icono */
}

/* === ESTILOS "LUX" (NUEVA Fianciera) === */
.lux-card {
    background: #ffffff !important;
    border-radius: 20px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.02) !important;
    padding: 25px !important;
    margin-bottom: 25px !important;
}

.lux-title {
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    letter-spacing: -1px !important;
}

.lux-label {
    display: block !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-bottom: 8px !important;
}

.lux-input {
    width: 100% !important;
    background: #f8fafc !important;
    border: 2px solid #f1f5f9 !important;
    border-radius: 12px !important;
    padding: 12px 15px !important;
    font-size: 14px !important;
    color: #334155 !important;
    transition: all 0.3s ease !important;
}

.lux-input:focus {
    background: #fff !important;
    border-color: #6366f1 !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1) !important;
}

/* Estados del buscador de clientes */
.lux-input.buscar-success {
    border-color: #10b981 !important;
    background: #f0fdf4 !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1) !important;
}

.lux-input.buscar-error {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}

/* Estilos para sugerencias de clientes */
.cliente-sugerencia {
    border-left: 3px solid transparent !important;
    transition: all 0.2s ease !important;
}

.cliente-sugerencia:hover {
    background: #f0fdf4 !important;
    border-left-color: #10b981 !important;
    transform: translateX(2px);
}

.cliente-sugerencia:active {
    background: #dcfce7 !important;
}

.cliente-sugerencia.active {
    background: #dcfce7 !important;
    border-left-color: #10b981 !important;
    font-weight: 600;
}

#sugerenciasClientes {
    max-height: 300px;
    overflow-y: auto;
    z-index: 1050;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    margin-top: 4px !important;
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    border: 1px solid #e2e8f0 !important;
}

#sugerenciasClientes .dropdown-item {
    user-select: none;
    border: none !important;
    padding: 0 !important;
}

.cliente-sugerencia {
    display: block !important;
    width: 100% !important;
    padding: 12px 16px !important;
    text-decoration: none !important;
    color: inherit !important;
    border: none !important;
}

#sugerenciasClientes .mensaje-seleccionar {
    background: #eff6ff;
    color: #1e40af;
    font-size: 12px;
    padding: 8px 12px;
    text-align: center;
    border-bottom: 1px solid #dbeafe;
    font-weight: 500;
}

/* Estilos para clientes seleccionados */
.cliente-item-seleccionado {
    transition: all 0.2s ease;
}

.cliente-item-seleccionado:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-remove-cliente:hover {
    background: #fecaca !important;
    transform: scale(1.1);
}

.empty-state {
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

/* Estilos para controles de DataTables */
.dataTables_wrapper {
    position: relative;
}

.dataTables_wrapper .top {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.dataTables_wrapper .bottom {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #475569;
    font-size: 14px !important;
    margin: 0 !important;
}

.dataTables_wrapper .dataTables_length select {
    padding: 6px 12px !important;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #1e293b;
    font-size: 14px !important;
    margin: 0 5px;
    height: auto !important;
    min-height: 38px;
}

.dataTables_wrapper .dataTables_filter input {
    padding: 8px 12px !important;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #1e293b;
    font-size: 14px !important;
    margin-left: 10px;
    min-width: 200px;
    height: auto !important;
    min-height: 38px;
}

.dataTables_wrapper .dataTables_filter input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.dataTables_wrapper .dataTables_info {
    color: #64748b !important;
    font-size: 14px !important;
    padding: 10px 0;
    margin: 0 !important;
}

.dataTables_wrapper .dataTables_paginate {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 8px 12px;
    margin: 0 2px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f1f5f9;
    border-color: #6366f1;
    color: #6366f1;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #6366f1;
    border-color: #6366f1;
    color: white;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Tabla de Items Mejorada */
.lux-table { width: 100% !important; border-spacing: 0 10px !important; border-collapse: separate !important; }
.lux-table th { color: #94a3b8 !important; font-size: 11px !important; font-weight: 700 !important; text-transform: uppercase !important; padding: 0 15px 5px !important; text-align: left !important; }

.lux-item-row td {
    background: #fff !important;
    padding: 15px !important;
    border-top: 1px solid #f1f5f9 !important;
    border-bottom: 1px solid #f1f5f9 !important;
}
.lux-item-row td:first-child { border-left: 1px solid #f1f5f9 !important; border-radius: 12px 0 0 12px !important; }
.lux-item-row td:last-child { border-right: 1px solid #f1f5f9 !important; border-radius: 0 12px 12px 0 !important; }

/* Botones Modernos Lux */
.lux-btn-primary {
    background: #6366f1 !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 30px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.lux-btn-primary:hover { transform: translateY(-2px) !important; box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3) !important; }

.lux-btn-outline {
    background: #fff !important;
    border: 2px dashed #e2e8f0 !important;
    color: #64748b !important;
    padding: 15px !important;
    width: 100% !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
}
.lux-btn-outline:hover { border-color: #6366f1 !important; color: #6366f1 !important; }

/* Barra de Acción Inferior */
.lux-action-bar {
    position: fixed !important;
    bottom: 20px !important;
    right: 30px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    padding: 15px 30px !important;
    border-radius: 100px !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
    border: 1px solid rgba(255,255,255,0.5) !important;
    display: flex !important;
    gap: 15px !important;
    z-index: 9999 !important;
}

/* Card de Cliente Activa */
#infoClienteCard {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: white !important;
    border-radius: 15px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2) !important;
}

.empty-state { padding: 40px !important; text-align: center !important; color: #94a3b8 !important; }
.empty-state i { font-size: 60px !important; margin-bottom: 15px !important; opacity: 0.3 !important; }

/* Estilos para Modal de Catálogo */
.modal-card.modal-lg {
    max-width: 900px !important;
}

.modal-body {
    padding: 1.5rem !important;
}

.producto-row:hover {
    background: #f8fafc !important;
    transition: background 0.2s ease !important;
}

/* Estilos específicos para cotizaciones-view - Forzar visibilidad de controles DataTables */
#tableCotizaciones_wrapper {
    font-size: 14px !important;
}

#tableCotizaciones_wrapper .dataTables_length,
#tableCotizaciones_wrapper .dataTables_filter,
#tableCotizaciones_wrapper .dataTables_info,
#tableCotizaciones_wrapper .dataTables_paginate {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 14px !important;
}

#tableCotizaciones_wrapper .dataTables_length {
    float: left !important;
    margin-bottom: 15px !important;
}

#tableCotizaciones_wrapper .dataTables_filter {
    float: right !important;
    margin-bottom: 15px !important;
    text-align: right !important;
}

#tableCotizaciones_wrapper .dataTables_length label,
#tableCotizaciones_wrapper .dataTables_filter label {
    font-size: 14px !important;
    font-weight: 500;
    color: #475569 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
}

#tableCotizaciones_wrapper .dataTables_length select {
    font-size: 14px !important;
    padding: 6px 12px !important;
    height: auto !important;
    min-height: 38px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px;
    margin: 0 5px;
    background: white !important;
    color: #1e293b !important;
}

#tableCotizaciones_wrapper .dataTables_filter input {
    font-size: 14px !important;
    padding: 6px 12px !important;
    height: auto !important;
    min-height: 38px !important;
    min-width: 200px;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px;
    margin-left: 10px;
    background: white !important;
    color: #1e293b !important;
}

#tableCotizaciones_wrapper .dataTables_info {
    font-size: 14px !important;
    color: #64748b !important;
    float: left !important;
    padding-top: 10px !important;
}

#tableCotizaciones_wrapper .dataTables_paginate {
    float: right !important;
    padding-top: 10px !important;
}

#tableCotizaciones_wrapper .dataTables_paginate .paginate_button {
    font-size: 14px !important;
    padding: 6px 12px !important;
    min-height: 38px !important;
    margin: 0 2px;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px;
    background: white !important;
    color: #475569 !important;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    min-width: 38px;
}

#tableCotizaciones_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

#tableCotizaciones_wrapper .dataTables_paginate .paginate_button.current {
    background: #6366f1 !important;
    border-color: #6366f1 !important;
    color: white !important;
}

#tableCotizaciones_wrapper .dataTables_paginate .paginate_button.disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* ==================== COMPONENTE DE SELECCIÓN Y BÚSQUEDA PERSONALIZADO (Select2 Propio) ==================== */
.custom-select-container {
    position: relative;
    width: 100%;
}
.custom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    max-height: 220px;
    overflow-y: auto;
    margin-top: 4px;
}
.custom-select-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 13px;
    color: #334155;
    transition: background 0.2s;
    border-bottom: 1px solid #f1f5f9;
}
.custom-select-item:last-child {
    border-bottom: none;
}
.custom-select-item:hover {
    background: #f1f5f9;
}
.custom-select-item .user-name {
    font-weight: 600;
    color: #1e293b;
    display: block;
}
.custom-select-item .user-cargo {
    font-size: 11px;
    color: #64748b;
    display: block;
    margin-top: 2px;
}
.custom-select-loading, .custom-select-empty {
    padding: 12px;
    font-size: 12px;
    color: #64748b;
    text-align: center;
}

/* === Utilidades de Ancho Globales (Compatibilidad Bootstrap) === */
.w-100 { width: 100% !important; }
.w-75 { width: 75% !important; }
.w-50 { width: 50% !important; }
.w-25 { width: 25% !important; }
.h-auto { height: auto !important; }


