﻿/*.simple-tab > li {
    display: none;
}*/

.tab-noheader > li{
    display: none;
}

.tab-noheader, .simple-tab-content {
    border: none !important;
}

/* Ajustar el tamaño de la tarjeta sin imagen y truncar a dos líneas */
.product-card {
    background-color: antiquewhite;
    border-color: black;
    border-width: 1px;
    border-style: solid;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    max-width: 120px; /* Tarjeta más pequeña */
    min-width: 120px;
    text-align: center;
    padding: 10px;
    margin: 3px;
    display: flex;
    flex-direction: column;
    /*justify-content: space-between;*/
    height: 100px; /* Reducir la altura */
    overflow: hidden; /* Evitar que el contenido se desborde */
}

    .product-card:hover {
        transform: translateY(-5px);
    }

.product-name {
    font-size: 12px; /* Fuente más pequeña para el nombre */
    font-weight: 500;
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Mostrar solo 2 líneas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    margin-bottom: 5px;
    min-height: 35px; /* Asegurar un tamaño mínimo para el nombre */
}

.product-price {
    font-size: 14px;
    font-weight: 600;
    color: #f7810a;
    margin-bottom: 1px;
}

.btn-add {
    background-color: #28a745;
    color: white;
    padding: 1px 1px; /* Botón más pequeño */
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px; /* Fuente más pequeña */
    transition: background-color 0.3s ease;
}

    .btn-add:hover {
        background-color: #218838;
    }

.custom-product-info {
    display: flex;
    flex-direction: column;
}

.custom-product-name {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 0px;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Mostrar solo 2 líneas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.custom-product-price {
    color: #666;
    font-size: 13px;
}

.custom-quantity-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.custom-quantity-value {
    width: 60px;
    text-align: center;
}

.custom-discounts-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.custom-discounts-value {
    width: 60px;
    text-align: center;
}

.custom-decrease-btn, .custom-increase-btn, .custom-delete-btn {
    cursor: pointer;
}

/*Desvanecimiento (Fade In/Out)*/
#listadoT, #formularioT {
    transition: opacity 0.2s ease-in-out;
}

#listadoT {
    opacity: 1;
}

#formularioT {
    opacity: 0;
}

.disabledControls {
    pointer-events: none;
    opacity: 0.5; /* Para dar una indicación visual de que está deshabilitado */
}



.amount-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

    .amount-table td {
        padding: 2px 0; /* Reduce el padding para hacer el diseño más compacto */
    }

    .amount-table input {
        border: none;
        outline: none;
        box-shadow: none;
        background: transparent;
        text-align: right;
        font-weight: bold;
        color: darkgray;
        width: 100%;
        padding: 0; /* Elimina padding interno para mayor compacidad */
    }

        .amount-table input#lblTotal {
            color: #495057;
        }

    .amount-table td:first-child {
        font-weight: 500;
        width: 70%; /* Ajusta el ancho de la columna izquierda */
    }

    .amount-table .text-right {
        width: 30%; /* Ajusta el ancho de la columna derecha */
    }


    /* Por defecto, se muestra toda la tabla */
    .amount-table tr {
        display: table-row;
    }

/* En dispositivos pequeños (teléfonos), ocultar todas las filas excepto el Total Neto */
@media (max-width: 767px) {
    .amount-table tr {
        display: none; /* Ocultar todas las filas */
    }

        .amount-table tr:last-child {
            display: table-row; /* Mostrar solo la última fila (Total Neto) */
            background-color: #000; /* Fondo negro */
            color: #fff; /* Texto blanco */
        }

            .amount-table tr:last-child input:disabled {
                background-color: #000; /* Mantener el fondo negro en dispositivos pequeños también */
                color: #fff !important; /* Mantener el texto blanco en dispositivos pequeños */
            }
}


.modal-header {
    background-color: #00695C!important;
    color:white!important;
}
.close{
    color:white!important;
}
@media (max-width: 767px) {
    .modal-fullscreen .modal-dialog {
        width: 100vw;
        height: 100vh;
        margin: 0;
        padding: 0;
        max-width: 100vw;
    }

    .modal-fullscreen .modal-content {
        height: 100vh;
        border-radius: 0;
        border: none;
        display: flex;
        flex-direction: column;
    }

    /* Fijar el header del modal */
    .modal-fullscreen .modal-header {
        position: sticky;
        top: 0;
        z-index: 10;
        width: 100%;
        background-color: #00695C;
        /*background-image: linear-gradient(180deg, #343a40 0%, #212529 100%);*/
        color: white;
    }

    /* Fijar el footer del modal */
    .modal-fullscreen .modal-footer {
        position: sticky;
        bottom: 0;
        z-index: 10;
        width: 100%;
        background-image: linear-gradient(180deg, #343a40 0%, #212529 100%);
        color: white;
    }

    /* Hacer que el cuerpo del modal sea desplazable */
    .modal-fullscreen .modal-body {
        overflow-y: auto;
        flex-grow: 1;
    }
}

.modal-fullscreen-custom .modal-dialog {
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    /*max-width: 100vw;*/
    max-width: 100%;
    max-height: 100%;
}

.modal-fullscreen-custom .modal-content {
    height: 100vh;
    border-radius: 0;
    border: none;
    display: flex;
    flex-direction: column;
}

/* Fijar el header del modal */
.modal-fullscreen-custom .modal-header {
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%;
    background-color: #00695C;
    /*background-image: linear-gradient(180deg, #343a40 0%, #212529 100%);*/
    color: white;
}

/* Fijar el footer del modal */
.modal-fullscreen-custom .modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 10;
    width: 100%;
    background-image: linear-gradient(180deg, #343a40 0%, #212529 100%);
    color: white;
}

/* Hacer que el cuerpo del modal sea desplazable */
.modal-fullscreen-custom .modal-body {
    overflow-y: auto;
    flex-grow: 1;
}

/* Cambiar el tamaño de fuente de las opciones */
.bootstrap-autocomplete .dropdown-item {
    font-size: 14px; /* Ajusta el tamaño según tu necesidad */
    white-space: nowrap; /* Evitar que las opciones se dividan en varias líneas */
    overflow: hidden; /* Esconde el contenido que desborde */
    text-overflow: ellipsis; /* Añade "..." si el texto es demasiado largo */
    cursor: pointer;
}

/* Personalizar la lista completa */
.bootstrap-autocomplete.dropdown-menu {
    font-size: 14px; /* Tamaño de fuente general */
    max-height: 200px; /* Altura máxima para opciones */
    overflow-y: auto; /* Scroll si hay muchas opciones */
    border: 1px solid #ccc; /* Opcional: Borde de la lista */
    background-color: #f9f9f9; /* Fondo de la lista */
}

/* Resaltar opción activa */
.bootstrap-autocomplete .dropdown-item.active {
    background-color: #007bff;
    color: white;
    font-weight: bold;
}
.sw-theme-basic, .sw-theme-arrows {
    border: 0px !important;
}

.select2-results__option {
    font-size: 13px;
}

.select2-selection__rendered {
    font-size: 13px !important;
}