/*  ------------ Table of Contents ------------

    #General
    #Login
    #Table products
    #Product detail
    #Media queries
        Min width 768px

-------------------------------------------- */

/* #General */

:root {

    /* Colors */
    --color-primary:#0059d5;
    --color-primary-2: #00429f;
    --color-text-base: #0a0a0a;
    --color-secondary-neutral:#5d5d5d;
    --color-bg:#f6f6f6;
    --color-table-row:#fdfdfd;
    --color-input-neutral: #b0b0b0;

    /* Fonts */
    --text-fontFamily: "Geist", sans-serif;
    --fontSize-body-base: .875rem;
    --fontSize-title-h1: 2rem;
    --fontSize-title-h2: 1.75rem;
}

body {
    font-family: var(--text-fontFamily);
    color: var(--color-text-base);
    background-color: var(--color-bg);
    margin: 0;
    font-size: var(--fontSize-body-base);
}

.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    box-sizing: border-box;
}

.row {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.d-none {
    display: none !important;
}

.d-inblock {
    display: inline-block !important;
}

.d-block {
    display: block !important;
}

.col {
    position: relative;
    width: 100%;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
    -ms-flex-preferred-size: 0;
    flex-basis: 0;
    -ms-flex-positive: 1;
    flex-grow: 1;
    max-width: 100%;
}

.col-w-1 {
    width: 500px;
}

.col-df-1 {
    flex: 1;
}

.p-4 {
    padding: 1.5rem !important;
}

.pt-3 {
    padding-top: 1rem !important;
}

.pl-0, .px-0 {
    padding-left: 0 !important;
}

.d-flex {
    display: -ms-flexbox !important;
    display: flex !important;
}

.align-items-start {
    -ms-flex-align: start !important;
    align-items: flex-start !important;
}

.flex-row-reverse {
    flex-direction: row-reverse !important;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.justify-content-center {
    justify-content: center !important;
}

.align-items-center {
    align-items: center !important;
}

.card-wrapper {
    background-color: #fff;
    border-radius: .5rem;
    -webkit-box-shadow: 0px 0px 2px 0px #888;
    box-shadow: 0 0 2px #888;
    display: block;
    padding: .5rem;
    margin-bottom: 20px;
}

.card-wrapper label {
    font-weight: 400;
    font-size: .8rem;
    line-height: 1rem;
    color: #5d5d5d;
    display: block;
    width: 100%;
    margin-bottom: 10px;
}

.card-wrapper h2 {
    text-align: left;
    color: #0a0a0a;
    font-size: 1.25rem;
    line-height: 1.5rem;
    margin: 0;
}

.card-wrapper .card-header, .card-wrapper .card-body {
    padding: .5rem;
}

.card-wrapper .input-wrapper {
    border-radius: .5rem;
    border-style: solid;
    border-width: .0625rem;
    border-color: var(--color-input-neutral);
    display: flex;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.card-wrapper .input-wrapper input {
    width: 100%;
    background-color: transparent;
    border: none;
    box-sizing: border-box;
    height: 2rem;
    padding: .5rem;
}

h1 {
    font-size: 2rem;
    line-height: 2.5rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    font-weight: 600;
    letter-spacing: 0.3px;
    font-size: .8rem;
    line-height: .875rem;
    border-radius: .5rem;
    padding: .5rem 1rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    border: none;
    height: 32px;
    text-decoration: none;
    box-sizing: border-box;
}

.btn-primary:hover {
    background-color: var(--color-primary-2);
}

.btn-secondary {
    text-decoration: none;
    line-height: 0;
    height: 32px;
    border: 1px solid #888;
    border-radius: .5rem;
    box-sizing: border-box;
}

.btn-secondary:hover {
    background-color: #d1d1d1;
    border-color: #888;
}

.btn-back {
    width: 50px;
}

.btn-log {
    color: var(--color-text-base);
    font-weight: 600;
    letter-spacing: 0.3px;
    font-size: .8rem;
    line-height: .875rem;
    min-width: 120px;
    max-width: 240px;
}

.btn-disabled {
    pointer-events: none;
    opacity: 0.5;    
    cursor: not-allowed;
}

.btn-productDetail {
    min-width: 100px;
}

.btn-searchProducts {
    min-width: 96px;
}

.transition-btn {
    transition: .15s ease;
}

.header {
    padding: 0 1.5rem;  
    margin-top: 15px;
}

/* #Login */

    #section-login {
        height: 100vh;
    }

    #section-login a {
        font-size: 1rem;
    }

/* #Table products */

    #col_searchProducts, #col_selectedProducts {
        padding: 26px;
    }

    #page_searchProducts .header {
        margin-bottom: 15px;
    }

    #page_searchProducts .page-content {
        padding: 1.5rem;
    }

    #page_searchProducts h1 {
        margin: 0;
    }

    #page_searchProducts form {
        margin-bottom: 10px;
    }

    #page_searchProducts form input {
        border-radius: .5rem;
        border: 1px solid rgb(176, 176, 176);
        margin-right: 5px;
        height: 32px;
        box-sizing: border-box;
        padding-left: 10px;
    }

    #page_searchProducts .page-content .btn-secondary {
        width: 80px;
        height: 32px;
        cursor: pointer;
    }

    .table-actions {
        text-align: right;
        padding-right: 15px;
    }

    #page_searchProducts .table-actions .btn-secondary {
        width: 80px;
        height: 32px;
        cursor: pointer;
        display: inline-block;
        padding: 6px 30px;
    }

    .theade {
        padding: .5rem 0;
    }

    table {
        width: 100%;
        box-shadow: 0 0 2px #888;
        border-collapse: collapse;
    }

    th, td {
        border-bottom: 1px solid #ddd;
        padding: 8px;
        text-align: left;
    }
    
    table tr {
        background-color: var(--color-table-row);
    }

    th {
        background-color: #f4f4f4;
    }

    #page_searchProducts img, table .no-image {
        width: 50px;
        height: 50px;
        object-fit: cover;
        border-radius: 5px;
        margin-right: 10px;
    }

    #page_searchProducts .name-product {
        color: var(--color-primary);
        font-weight: 600;
    }

    table .no-image {
        display: flex;
        font-size: 0.7rem;
        border: 1px solid #c6c6c6;
        text-align: center;
        color: var(--color-secondary-neutral);
        align-items: center;
    }

    table .btn-secondary {
        transform: scaleX(-1);
    }

    #col_selectedProducts {
        margin-top: 26px;
        margin-right: 26px;
        transition: background-color 0.3s ease;
    }   

    #col_selectedProducts table {
        box-shadow: none;
    }

    #alert-noSelected {
        text-align: center;
    }

    #col_selectedProducts .theade {
        padding-top: 0;
        padding-bottom: 1rem;
    }

    #productCounter {
        padding-top: 5px;
    }

/* #Product detail */

    /* Información del producto */

        #productDetail hr {
            border-bottom: 1px solid #ddd;
            color: transparent;
            margin: 1rem .5rem;
        }

        #section-price .card-body .row {
            margin-right: 0;
            margin-left: 0;
        }

        .input-quantity, .input-price {
            box-sizing: border-box;
            border: 1px solid #b0b0b0;
            border-radius: 2px;
            min-width: 166px;
            height: 22px;
        }

        .input-description, .input-note, #comments {
            font-family: "Montserrat", Arial, sans-serif; 
            resize: none;
            box-sizing: border-box;
            border-radius: 0.5rem;
            border: 0.0625rem solid #b0b0b0;
            outline: none;
            box-shadow: none;
        }

        .input-description {
            width: 465px;
            height: 190.5px;
            line-height: 12.5pt;
            font-size: 9pt;
        }

        #alert_description, #alert_note, #alert_comments {
            color: red;
        }

        .alert-container {
            border-radius: 4px;
            padding: .3rem 1rem;
            border: 1px solid transparent;
            height: 32px;
            box-sizing: border-box;
            opacity: 0;
            transition: opacity 0.5s ease;
        }

        .alert-container.show {
            opacity: 1;
        }

        .alert-success {
            color:#3c763d;
            background-color:#dff0d8;
            border-color:#d6e9c6;
        }

        .alert-danger {
            color: #a94442;
            background-color: #f2dede;
            border-color: #ebccd1;
        }

        .alert-saving {
            color: #8a6d3b;
            background-color: #fcf8e3;
            border-color: #faebcc;
        }

        .container-note {
            width: 223px;
        }

        .input-note {
            width: 223px;
            height: 156px;
            line-height: 12.5pt;
            font-size: 9pt;
        } 

        .container-note .card-header {
            padding-left: 0;
        }

        .container-note .card-body {
            padding-left: 0;
            padding-right: 0;
        }
        
        #comments {
            width: 740px;
            height: 323px;
            font-size: 12pt;
            line-height: 14pt;
        }

        #container-comments hr {
            margin-left: 0;
            margin-right: 0;
            margin-top: 1.6rem;
        }

        #container-comments .btn-confirm {
            margin-left: 0;
            margin-bottom: 0;
        }

        .container-quantity {
            width: 40%;
        }

        .container-price {
            width: 60%;
        }

        #price-container h4, .container-priceTotal h4 {
            margin: 0;
            padding: .5rem;
        }

        #price-container label {
            padding-left: .5rem;
        }

        #price-container input {
            margin-left: .5rem;
            margin-bottom: 10px;
        }

        .container-priceTotal {
            border: 1px solid black;
            padding: 10px;
            text-align: center;
            border-radius: 8px;
            width: 223px;
            box-sizing: border-box;
        }

        .container-priceTotal h4 {
            padding-top: 0;
        }

        .container-quantity .alert-container, .container-price .alert-container, .container-description .alert-container, .container-note .alert-container, #container-comments form .alert-container{
            opacity: 1;
            padding: 0 0.2rem;
            height: initial;
            margin-bottom: 0;
            font-size: .8rem;
            position: absolute;
            bottom: -11px;
        }

        #container-comments form .d-flex .alert-container {
            position: initial;
            bottom: initial;
            height: 32px;
            padding: .3rem 1rem;
            opacity: 0;
            font-size: .875rem;
        }

        #container-comments form .d-flex .alert-container.show {
            opacity: 1;
        }

        .container-price h4 {
            margin-top: 0;
            margin-bottom: 7px;
        }

        .container-infoProduct .card-body, #container-comments .card-body {
            position: relative;
        }

        #container-comments form .alert-container {
            bottom: 65px;
        }

        .container-note .alert-container {
            bottom: -27px;
        }

        .btn-confirm {
            margin: 0 .5rem .5rem .5rem;
        }


    /* Galeria de imágenes */

        #section-imgProduct {
            background-color: white;
        }

        /* Eliminar CLASS images-container */
        .images-container, .container-images {
            display: grid;
            grid-template-columns: repeat(3, 1fr); /* Crea 3 columnas de igual tamaño */
            gap: 10px; /* Espacio entre los elementos */
        }

        /* Eliminar CLASS images-container */
        .image-container, .container-image {
            display: inline-block;
            position: relative;
            margin: 5px;
            border: 1px solid #e1e1e1;
        }

        /* Eliminar CLASS images-container */
        .image-container img, .container-image img {
            width: 100%;
            max-width: 160px;
            height: auto;
            display: block;
            cursor: pointer;
            border-radius: 0;
        }

        /* Eliminar CLASS images-container */
        .image-container:hover, .container-image:hover {
            border: 1px solid var(--color-secondary-neutral);
        }

        .tag {
            position: absolute;
            top: 5px;
            left: 5px;
            background: var(--color-primary);
            color: white;
            padding: 3px 5px;
            font-size: 12px;
            border-radius: 3px;
        }

        .order-tag {
            position: absolute;
            bottom: 5px;
            right: 5px;
            background: var(--color-primary);
            color: white;
            padding: 3px 5px;
            font-size: 12px;
            border-radius: 3px;
        }
        

/* #Media queries */

    /* // Min width 768px */

    @media (min-width: 768px) { 

        .col-md-7 {
            -ms-flex: 0 0 58.333333%;
            flex: 0 0 58.333333%;
            max-width: 58.333333%;
        }

        .col-md-6 {
            -ms-flex: 0 0 50%;
            flex: 0 0 50%;
            max-width: 50%;
        }

        .col-md-5 {
            -ms-flex: 0 0 41.666667%;
            flex: 0 0 41.666667%;
            max-width: 41.666667%;
        }

    }