/**
* 2007-2025 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2025 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/
.price-list-loading {
    margin: 15px 0;
    text-align: center;
    font-weight: bold;
    color: #666;
}

/* ===== Wrapper general ===== */
#customerpricelist .product-list-wrapper {

    margin: 0 auto;
   
    color: #111;
}

/* ===== Header ===== */
#customerpricelist .product-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 18px;
    position: sticky;
    top: 0px;
    background: #fff;
    padding-bottom: 8px
}

#customerpricelist .product-list-header h1 {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    color:#242f61;
}

/* impresion */
.print-box {
    
    background: #f5f5f5;
    padding: 9px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s ease;
}

.print-box:hover {
    background: #e0e0e0;
}


@media print {

  #print-area  {
   margin-left: 20px;
  }
  
  #print-area .product-list {
   margin-left: 20px;
   padding-left: 20px;
  }
  
  
}



/* ===== Ordenar ===== */
.order-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-box label {
    font-size: 14px;
    color: #555;
    white-space: nowrap;
}

.order-box select {
    padding: 10px 8px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
}

/* ===== Tabla ===== */
#customerpricelist .product-list {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 12px;
    overflow-y: auto;
}

/* ===== Head ===== */
#customerpricelist .product-list thead th {
    background: #f5f5f5;
    padding: 16px 14px;
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    border-bottom: 1px solid #e5e5e5;
    vertical-align: bottom;
   
  position: sticky;
  top: 50px;             
  
  z-index: 10;

}

#customerpricelist .product-list thead th small {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-top: 2px;
}

/* ===== Body ===== */
#customerpricelist .product-list tbody td {
    padding: 16px 14px;
    font-size: 15px;
    border-bottom: 1px solid #eee;
    
}


#customerpricelist .final-price {
    font-weight: bold;
    font-size: 16px;
}

#customerpricelist .discount-row {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 2px;
}

#customerpricelist .badge-discount {
    background: #2ecc71;
    color: white;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-top: -3px;
}

#customerpricelist .original-price {
    text-decoration: line-through;
    color: #666;
    font-size: 13px;
}

/* Hover fila */
#customerpricelist .product-list tbody tr:hover {
    background: #fafafa;
}

/* Codificador */
#customerpricelist .product-list tbody td:first-child {
    font-weight: 600;
    color: #444;
    
}

/* Producto */
#customerpricelist .product-list tbody td:nth-child(2) {
    font-weight: 600;
}


/* Precio principal más marcado */
#customerpricelist .product-list tbody td:nth-child(3) {
    font-weight: 700;
}

#customerpricelist .pagination-wrapper {
   display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
}

#customerpricelist .price-list-pagination button {
    padding: 6px 10px;
    border: 0px solid #ccc;
    background: #fff;
    cursor: pointer;
}

#customerpricelist .price-list-pagination button.active {
    background: #0c398c;
    color: #fff;
    font-weight: bold;
}


/* ===== Loading ===== */
.price-list-loading {
    margin: 24px 0;
    padding: 14px;
    text-align: center;
    font-size: 14px;
    color: #555;
    background: #f7f7f7;
    border-radius: 8px;
}


/* ===== Responsive ===== */
@media(max-width: 768px) {

    #customerpricelist .product-list-header h1 {
        font-size: 28px;
    }

    #customerpricelist .product-list {
        font-size: 14px;
    }

    #customerpricelist .product-list thead {
        display: none;
    }

    #customerpricelist .product-list tbody tr {
        display: block;
        padding: 12px;
        border-bottom: 1px solid #e5e5e5;
    }

    #customerpricelist .product-list tbody td {
        display: flex;
        justify-content: space-between;
        padding: 6px 0;
        border: none;
        text-align: left;
    }

    #customerpricelist .product-list tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #666;
    }
}

.print-header {
    background-color: #333;
    color: #000000;
    text-align: center;
    padding: 10px;
}

.print-footer {
    background-color: #333;
    color: #000000;
    text-align: center;
    padding: 10px;
}


/*
@media print {
*/
    /* Define the header and footer */
  /*  @page {
        size:  auto;  
        margin: 0mm; 
        padding: 0mm;
    }
        
    .print-area {
        margin-left: 10px;
        width: 100%;
        margin: 0px;
    }

    .product-list {
        width: 100%;
        padding: 0px;
        margin-left: auto;
        margin-right: auto;
    }

    .product-list thead th, .product-list thead, .product-list thead tr {
        border: none !important;
    }

    .print-header:after {
        content: "Lista de precios Quimobásicos";
        display: block;
        text-align: center;
    }

    .print-footer:after {
        content: "Información sujeta a cambio sin previo aviso";
        display: block;
        text-align: center;
    }
}
*/