:root {
    --primary-color: #7b2cbf;
    --primary-dark: #5a108f;
    --primary-light: #e0aaff;
    --accent-color: rgb(242, 0, 255);
    --text-light: #f5f5f5;
    --text-dark: #333;
    --error-color: #ff3e3e;
    --success-color: #28a745;
    --bg-dark: #1a1a1a;
    --bg-darker: #121212;
}

/* Barra superior: tabs + acciones en la misma línea */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 10px 0 20px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.toolbar-left {
    display: flex;
    gap: 12px;
    align-items: center;
}

.toolbar-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.actions-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 16px;
    border: 1px solid #6843b2;
    border-radius: 10px;
    background: var(--text-light);
    color: var(--primary-light);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 15px;
}

.tab-button.active {
    background: #5A108F;
    color: #fff;
    box-shadow: 0 4px 12px rgba(90, 16, 143, 0.3);
}

.tab-button:hover {
    background: #310055;
    color: #fff;
}

/* Button styles */
.button {
    --main-focus: #5a108f;
    --font-color: #ffffff;
    --bg-color-sub: rgb(242, 0, 255);
    --bg-color: #6843b2;
    position: relative;
    width: 150px;
    height: 40px;
    cursor: pointer;
    display: flex;
    border: 2px solid var(--main-focus);
    box-shadow: 4px 4px var(--main-focus);
    background-color: var(--bg-color);
    border-radius: 10px;
    overflow: hidden;
}

.button,
.button__icon,
.button__text {
    transition: all 0.3s;
}

.button .button__text {
    transform: translateX(22px);
    color: var(--font-color);
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(90, 16, 143, 0.4);
}

.button .button__icon {
    position: absolute;
    transform: translateX(109px);
    height: 100%;
    width: 39px;
    background-color: var(--bg-color-sub);
    display: flex;
    align-items: center;
    justify-content: center;
}

.button .svg {
    width: 20px;
    fill: var(--font-color);
    color: white;
}


.button:hover .button__text {
    color: transparent;
}

.button:hover .button__icon {
    width: 148px;
    transform: translateX(0);
}

.button:active {
    transform: translate(3px, 3px);
    box-shadow: 0px 0px var(--main-focus);
}

/* Supplier form styles */
.tabla {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #6843b2;
    border-radius: 5px;
    background-color: #000;
}

.tabla label {
    display: block;
    margin-bottom: 5px;
    color: #f5f5f5;
}

.tabla input {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.tabla input:focus {
    outline: none;
    border-color: rgb(242, 0, 255);
    box-shadow: 0 0 0 2px rgba(164, 22, 26, 0.1);
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #f5f5f5;
    font-size: 2.2em;
    text-align: center;
}

.modal-content h4 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #f5f5f5;
    font-size: 1em;
}

.modal-content input,
.modal-content select {
    background-color: #e0aaff;
    color: #000;
    font-size: 16px;
    max-width: 500px;
    height: 40px;
    padding: 10px;
    border: 2px solid #6843b2;
    border-radius: 5px;
}

.modal-content input:focus,
.modal-content select:focus {
    color: rgb(75, 0, 79);
    background-color: #e0aaff;
    outline-color: rgb(242, 0, 255);
    box-shadow: -3px -3px 15px rgb(242, 0, 255);
    transition: .1s;
    transition-property: box-shadow;
}

.modal-content .boton {
    background-color: #5a108f;
    color: white;
    margin-left: 220px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s ease;
}

.modal-content .boton:hover {
    background-color: #310055;
}

.boton {
    background: #6843b2;
    color: white;
    font-weight: bold;
    padding: 10px 30px;
    margin-left: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.boton:hover {
    background: #5a108f;
    color: rgb(242, 0, 255);
}

.coment {
    font-size: 14px;
    color: #666;
    margin-top: -10px;
    display: flex;
    justify-content: center;
}

#undoFilterBtn {
    background-color: #333;
    color: #f5f5f5;
    border: 1px solid #555;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

#undoFilterBtn:hover {
    background-color: #444;
}

/* Filter modal styles */
.modal-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
}

.modal-inputs {
    margin-bottom: 20px;
}

.modal-inputs label {
    display: block;
    margin-bottom: 8px;
    color: #e0aaff;
    font-weight: 500;
    font-size: 14px;
}

.modal-inputs input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #6843b2;
    border-radius: 8px;
    font-size: 15px;
    background-color: #2a2a2a;
    color: #fff;
    transition: all 0.3s ease;
}

.modal-inputs input:focus {
    outline: none;
    border-color: rgb(242, 0, 255);
    box-shadow: 0 0 10px rgba(242, 0, 255, 0.3);
    background-color: #3a3a3a;
}

.filter-clear-btn {
    background-color: #333;
    color: #f5f5f5;
    border: 1px solid #555;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.filter-clear-btn:hover {
    background-color: #444;
    color: rgb(242, 0, 255);
}

/* Row styles */
.proveedor-row, .clickable-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

.proveedor-row:hover, .clickable-row:hover {
    background-color: rgba(90, 16, 143, 0.1);
}

/* Filter modal styles */
.modal-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.modal-inputs input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}


/* Responsive styles */
@media (max-width: 1024px) {
    .button {
        margin-left: auto;
        margin-right: 20px;
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: none;
        padding: 20px;
    }

    .modal-content .boton {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }

    .tabla {
        padding: 15px;
    }

    .button {
        width: 100%;
        margin: 15px 0;
        margin-left: 0;
        margin-right: 0;
        justify-content: center;
    }

    .button:hover .button__icon {
        width: 100%;
    }
    
    .modal-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-buttons button {
        width: 100%;
    }
    
    .filter-clear-btn {
        margin-left: 0;
        width: 100%;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .modal-content h2 {
        font-size: 1.8em;
    }
    
    .modal-content h4 {
        font-size: 0.9em;
    }
    
    .modal-content input,
    .modal-content select {
        font-size: 14px;
        padding: 8px;
    }
    
    .button .button__text {
        font-size: 14px;
    }
    
    .tabla label {
        font-size: 14px;
    }
    
    .tabla input {
        padding: 6px;
        font-size: 14px;
    }
}
.filter-clear-btn {
    background-color: #f0f0f0;
    color: #555;
    border: 1px solid #ddd;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 365px;
    display: none;
}

.filter-clear-btn:hover {
    background-color: #e0e0e0;
    color: #333;
}

/* Proveedor modal styles - Estilos mejorados */
#proveedorModal.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

#proveedorModal .modal-content {
    background-color: #121212;
    padding: 30px;
    border: 2px solid #6843b2;
    width: 90%;
    max-width: 600px; /* Aumentado de 500px a 600px */
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(104, 67, 178, 0.5);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centrado perfecto */
    overflow: visible; /* Permite que dropdowns se extiendan fuera del flujo */
    z-index: 1500; /* Asegura stacking correcto dentro del modal */
}

/* Añadir animación si no existe */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

#proveedorModal .modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #f5f5f5;
    font-size: 1.8em;
    text-align: center;
    border-bottom: 1px solid #6843b2;
    padding-bottom: 10px;
}

#proveedorModal .modal-content h4 {
    color: #e0aaff;
    font-size: 1.2em;
    margin-bottom: 15px;
}

#proveedorModal .tabla {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #6843b2;
    border-radius: 8px;
    background-color: #1a1a1a;
}

#proveedorModal .tabla label {
    display: block;
    margin-bottom: 8px;
    color: #e0aaff;
    font-size: 14px;
    font-weight: 500;
}

#proveedorModal .tabla input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #6843b2;
    border-radius: 8px;
    background-color: #2a2a2a;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

#proveedorModal .tabla input:focus {
    outline: none;
    border-color: rgb(242, 0, 255);
    box-shadow: 0 0 10px rgba(242, 0, 255, 0.5);
    background-color: #3a3a3a;
}

#proveedorModal .coment {
    font-size: 13px;
    color: #888;
    margin-top: -15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: flex-start;
    font-style: italic;
}

#proveedorModal .boton {
    background-color: #5a108f;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
    margin-top: 10px;
}

#proveedorModal .boton:hover {
    background-color: #7b1bc0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(104, 67, 178, 0.4);
}

#proveedorModal .close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    position: absolute;
    top: 15px;
    right: 20px;
}

#proveedorModal .close-btn:hover,
#proveedorModal .close-btn:focus {
    color: #f0f0f0;
    text-decoration: none;
}

/* Estilos para el botón de nuevo proveedor */
/* Estilos para el modal de proveedor */
.modal-content {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
    color: #5A108F;
    margin-bottom: 20px;
}

/* Responsive para el botón */
@media (max-width: 768px) {
    .button {
        margin-left: 0;
        width: 100%;
    }
}

/* Ajustar el botón para que se posicione correctamente sin sidebar */
.button {
    margin-left: auto;
    margin-right: 0;
}

/* Estilos para el botón de importación */
.import-button {
    margin-left: 860px;
}

/* Estilos para el contenedor de toast */
#toastContainer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    min-width: 250px;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    background-color: #4CAF50;
}

.toast-error {
    background-color: #F44336;
}

.toast-info {
    background-color: #2196F3;
}

.toast-warning {
    background-color: #FF9800;
}

/* Import modal styles */
.import-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 120%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.import-modal-content {
    background-color: #1a1a1a;
    margin: 8% auto;
    padding: 30px;
    border: 2px solid #6843b2;
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    color: #f5f5f5;
    position: relative;
}

.import-close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.import-close-btn:hover {
    color: #e0aaff;
}

.import-modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #f5f5f5;
    font-size: 2.2em;
    text-align: center;
}

.import-modal-content p {
    margin-bottom: 25px;
    color: #ccc;
    text-align: center;
}

.import-file-container {
    margin-bottom: 25px;
    padding: 14px 16px;
    border: 1px dashed #6843b2;
    border-radius: 10px;
    background-color: rgba(104, 67, 178, 0.08);
    transition: border-color 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 10px 12px;
    align-items: center;
}

.import-file-container.drag-active {
    border-color: #8f5eea;
    background-color: rgba(104, 67, 178, 0.18);
}

.file-clear-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #c0392b;
    background: #b71c1c;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.import-file-container.has-file .import-file-name .file-clear-btn,
.import-file-name.has-file .file-clear-btn { display: inline-flex; }
.file-clear-btn:hover { background: #d32f2f; }

.global-drop-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(104, 67, 178, 0.12);
    backdrop-filter: blur(2px);
    border: 2px dashed #8f5eea;
    z-index: 200000;
    display: none;
    align-items: center;
    justify-content: center;
}
.global-drop-message {
    padding: 16px 22px;
    border-radius: 10px;
    border: 1px solid #6843b2;
    background: rgba(0, 0, 0, 0.7);
    color: #e0aaff;
    font-size: 18px;
}

.import-file-label {
    display: block;
    margin-bottom: 0;
    color: #e0aaff;
    font-weight: 500;
}

.import-file-input {
    display: none;
}

.import-select-button {
    background-color: #6843b2;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    justify-self: end;
}

.import-select-button:hover {
    background-color: #5a108f;
}

.import-file-name {
    margin-top: 0;
    padding: 10px 40px 10px 12px;
    background-color: #2a2a2a;
    border-radius: 8px;
    color: #ccc;
    font-size: 14px;
    word-break: break-all;
    grid-column: 1 / span 2;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 38px;
}

.import-submit-button {
    display: block;
    width: 100%;
    background-color: #5a108f;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.import-submit-button:hover {
    background-color: #310055;
}

.import-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #aaa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.import-close-btn:hover {
    color: #fff;
    transform: rotate(90deg);
}

/* Close button for Importar Conceptos modal */
.import-conceptos-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #aaa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.import-conceptos-close-btn:hover {
    color: #fff;
    transform: rotate(90deg);
}

.botones {
    display: flex;
    justify-content: right;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap;
    margin-bottom: -70px;
    margin-top: 15px;
    gap: 16px; /* más separados entre sí */
}

.buttonn {
    background: linear-gradient(135deg, #0f0514 0%, #1a0933 50%, #240046 100%);
    box-shadow: 0 10px 20px rgba(90, 16, 143, 0.4);
    color: white;
    border: 2px solid #5A108F;
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    margin-left: 10px;
    vertical-align: middle;

}  

/* Antes: button:hover { ... } — causaba fondo feo en todos los botones */
.buttonn:hover {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-color));
    box-shadow: 0 5px 15px rgba(123, 44, 191, 0.4);
}

.buttonn svg {
    width: 15px;
    height: 15px;
    margin-bottom: -3px;
}

/* Estilos para el resultado de la importación */
.import-result {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    color: #f5f5f5;
}

.import-success {
    background-color: rgba(46, 125, 50, 0.3);
    border: 1px solid #2e7d32;
}

.import-error {
    background-color: rgba(211, 47, 47, 0.3);
    border: 1px solid #d32f2f;
}

.import-summary {
    margin-top: 10px;
    font-size: 0.9em;
}

.import-summary span {
    font-weight: bold;
}

/* Estilos para el botón de eliminar todo */
.delete-all-btn {
    background-color: #d32f2f !important;
    border-color: #b71c1c !important;
}

.delete-all-btn:hover {
    background-color: #b71c1c !important;
}


/* Estilos para el modal de confirmación */
.delete-all-close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    position: absolute;
    top: 15px;
    right: 20px;
}

.delete-all-close-btn:hover {
    color: #fff;
    transform: rotate(90deg);
}

#confirmDeleteInput:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

/* Botones estilo Carga (reprocesar/eliminar) */
.reintentar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #5A108F;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 12px 14px;
    min-width: 140px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(90, 16, 143, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.reintentar-btn:hover {
    background-color: #6c1ab8;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(90, 16, 143, 0.3);
}

.reintentar-btn i {
    font-size: 16px;
    line-height: 0;
}

.reintentar-btn:hover i {
    animation: girar 1s ease;
}

.eliminar-todos-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #e74c3c;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 12px 14px;
    min-width: 140px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(231, 76, 60, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.eliminar-todos-btn:hover {
    background-color: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(231, 76, 60, 0.3);
}

.eliminar-todos-btn i {
    font-size: 16px;
    line-height: 0;
}

.eliminar-todos-btn:hover i {
    animation: girar 1s ease;
}

/* (La antigua .actions-bar se mantiene por compatibilidad, ya no se usa) */
/* Evitar fondo al pasar el mouse sobre el botón de borrar por fila */
.delete-btn:hover, .delete-concepto-btn:hover {
    background: transparent !important;
    box-shadow: none !important;
}

/* Concepto modal styles - mismos comportamientos que proveedor */
#conceptoModal.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

#conceptoModal .modal-content {
    background-color: #121212;
    padding: 30px;
    border: 2px solid #6843b2;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(104, 67, 178, 0.5);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#conceptoModal .modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #f5f5f5;
    font-size: 1.8em;
    text-align: center;
    border-bottom: 1px solid #6843b2;
    padding-bottom: 10px;
}

#conceptoModal .tabla {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #6843b2;
    border-radius: 8px;
    background-color: #1a1a1a;
}

#conceptoModal .tabla label {
    display: block;
    margin-bottom: 8px;
    color: #e0aaff;
    font-size: 14px;
    font-weight: 500;
}

#conceptoModal .tabla input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #6843b2;
    border-radius: 8px;
    background-color: #2a2a2a;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

#conceptoModal .tabla input:focus {
    outline: none;
    border-color: rgb(242, 0, 255);
    box-shadow: 0 0 10px rgba(242, 0, 255, 0.5);
    background-color: #3a3a3a;
}

#conceptoModal .boton {
    background-color: #5a108f;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
    margin-top: 10px;
}

#conceptoModal .boton:hover {
    background-color: #7b1bc0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(104, 67, 178, 0.4);
}

#conceptoModal .concepto-close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    position: absolute;
    top: 15px;
    right: 20px;
}

#conceptoModal .concepto-close-btn:hover,
#conceptoModal .concepto-close-btn:focus {
    color: #f0f0f0;
    text-decoration: none;
}
/* ==================== */
/* AUTOCOMPLETADO MEJORADO (Proveedores) */
/* ==================== */
.autocomplete-container {
    position: relative;
    width: 100%;
}

.autocomplete-container input {
    width: 100% !important;
    box-sizing: border-box;
}

.autocomplete-suggestions {
    position: absolute !important;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 2px solid #6843b2;
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 300px;
    overflow-y: auto ;
    z-index: 20000;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.suggestion-item {
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 1px solid rgba(104, 67, 178, 0.2);
    transition: all 0.3s ease;
    color: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.suggestion-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(104, 67, 178, 0.2), transparent);
    transition: width 0.3s ease;
}

.suggestion-item:hover {
    background: linear-gradient(135deg, rgba(104, 67, 178, 0.2) 0%, rgba(90, 16, 143, 0.1) 100%);
    color: #ffffff;
    transform: translateX(5px);
}

.suggestion-item:hover::before { width: 100%; }
.suggestion-item:last-child { border-bottom: none; }

.suggestion-item.selected {
    background: linear-gradient(135deg, #6843b2 0%, #5A108F 100%);
    color: white;
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(90, 16, 143, 0.3);
}

.suggestion-item.selected::before {
    background: rgba(255, 255, 255, 0.3);
    width: 100%;
}

.suggestion-main {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
    color: #e9ecef;
}

.suggestion-secondary {
    font-size: 14px;
    color: #adb5bd;
    font-family: 'Courier New', monospace;
}

.suggestion-item.selected .suggestion-main { color: white; }
.suggestion-item.selected .suggestion-secondary { color: rgba(255, 255, 255, 0.8); }
* {
    scrollbar-width: thin;
    scrollbar-color: #8f5eea rgba(104, 67, 178, 0.15);
}

*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
*::-webkit-scrollbar-track {
    background: rgba(104, 67, 178, 0.15);
    border-radius: 10px;
}
*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8f5eea 0%, #6843b2 100%);
    border-radius: 10px;
    border: 1px solid #5a108f;
}
*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #a77aff 0%, #7a57d6 100%);
}