
/* ============================================================
   TEAMCO - Mejoras visuales Dolibarr
   Buscador de artículos más grande e intuitivo
   ============================================================ */

/* === BUSCADOR DE ARTÍCULOS EN PEDIDOS/PRESUPUESTOS/FACTURAS === */

/* Ocultar la opción "Entrada libre" para simplificar */
label[for="prod_entry_mode_free"],
#prod_entry_mode_free {
    display: none !important;
}

/* Ocultar el combobox de entrada libre */
#prod_entry_mode_free + span.select2-container,
label[for="prod_entry_mode_free"] ~ span.select2-container:first-of-type {
    display: none !important;
}

/* Hacer el radio de productos predefinidos invisible (siempre seleccionado) */
label[for="prod_entry_mode_predef"],
#prod_entry_mode_predef {
    display: none !important;
}

/* El buscador de productos predefinidos - hacerlo grande y visible */
#prod_entry_mode_predef ~ span.select2-container,
span.select2-container#select2-idprod-container,
.select2-container--default .select2-selection--single {
    width: 100% !important;
    min-width: 300px !important;
}

/* Caja del select2 del buscador de productos */
.select2-container--default .select2-selection--single {
    height: 44px !important;
    border: 2px solid #6c6aa8 !important;
    border-radius: 6px !important;
    background-color: #f8f8ff !important;
    font-size: 15px !important;
    padding: 6px 10px !important;
}

/* Texto dentro del buscador */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 30px !important;
    font-size: 15px !important;
    color: #333 !important;
    padding-left: 8px !important;
}

/* Placeholder del buscador */
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #999 !important;
    font-style: italic !important;
}

/* Flecha del desplegable */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px !important;
}

/* Campo de búsqueda dentro del dropdown */
.select2-search--dropdown .select2-search__field {
    height: 40px !important;
    font-size: 15px !important;
    border: 2px solid #6c6aa8 !important;
    border-radius: 4px !important;
    padding: 6px 10px !important;
}

/* Resultados del dropdown */
.select2-results__option {
    font-size: 14px !important;
    padding: 8px 12px !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.select2-results__option--highlighted {
    background-color: #6c6aa8 !important;
    color: white !important;
}

/* Sección "Añadir nueva línea" - hacer más visible el título */
.div-table-responsive-no-min fieldset,
div.tabsAction,
.underbanner {
    border-top: 3px solid #6c6aa8 !important;
}

/* Etiqueta "Añadir nueva línea" más visible */
td.tdtop > b,
.listtitle {
    font-size: 14px !important;
    font-weight: bold !important;
    color: #6c6aa8 !important;
}

/* Botón AÑADIR más visible */
input#addline {
    background-color: #6c6aa8 !important;
    color: white !important;
    font-size: 14px !important;
    font-weight: bold !important;
    padding: 8px 20px !important;
    border-radius: 5px !important;
    border: none !important;
    cursor: pointer !important;
    min-width: 90px !important;
}

input#addline:hover {
    background-color: #5a5896 !important;
}

/* Campo cantidad más visible */
input#qty {
    font-size: 15px !important;
    font-weight: bold !important;
    text-align: center !important;
    width: 60px !important;
    height: 36px !important;
    border: 2px solid #6c6aa8 !important;
    border-radius: 4px !important;
}
