* ================================================================
* PRODUCT CODES
* PrestaShop 1.6
* ================================================================
  */

#productcodes-page {
width: 100%;
max-width: 100%;
margin: 0;
padding: 0;
box-sizing: border-box;
}

#productcodes-page *,
#productcodes-page *:before,
#productcodes-page *:after {
box-sizing: border-box;
}

/*

* ================================================================
* SKIP LEFT COLUMN
* ================================================================
*
* Скриваме лявото меню само на страницата Product Codes.
*

*/

body.productcodes-page #left_column,
body#productcodes-page #left_column {
display: none !important;
}

/*

* Ако PrestaShop не добавя body class,
* използваме URL-а като fallback.
  */

body:has(#productcodes-page) #left_column {
display: none !important;
}

/*

* ================================================================
* MAIN PRESTASHOP COLUMNS
* ================================================================
*
* При тема 1.6 #columns е стандартният container.
*
* След скриването на left_column,
* center_column трябва да заеме цялата ширина.
  */

#columns:has(#productcodes-page) {
width: 100%;
}

/*

* Централната колона
  */

#columns:has(#productcodes-page) #center_column {
width: 100% !important;
max-width: 100% !important;
padding-left: 15px !important;
padding-right: 15px !important;
}

/*

* Row
  */

#columns:has(#productcodes-page) > .row {
margin-left: 0;
margin-right: 0;
}

/*

* ================================================================
* CONTAINER
* ================================================================
*
* НЕ използваме 100vw.
* Оставяме съдържанието в стандартната ширина
* на PrestaShop .container.
  */

.productcodes-container {
width: 100%;
max-width: 100%;
margin: 30px 0;
padding: 0;
}

/*

* ================================================================
* HEADER
* ================================================================
  */

.productcodes-header {
margin-bottom: 20px;
}

.productcodes-title-area {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
}

.productcodes-title-area h1 {
margin: 0;
padding: 0;
font-size: 28px;
line-height: 1.2;
}

.productcodes-count {
font-size: 14px;
white-space: nowrap;
}

.productcodes-count strong {
font-weight: 700;
}

/*

* ================================================================
* FILTERS
* ================================================================
  */

.productcodes-filters {
display: flex;
align-items: stretch;
gap: 10px;
margin-bottom: 15px;
}

.productcodes-search {
flex: 1 1 auto;
min-width: 0;
}

.productcodes-search input {
width: 100%;
height: 44px;
padding: 0 14px;
border: 1px solid #ccc;
border-radius: 4px;
background: #fff;
font-size: 15px;
outline: none;
}

.productcodes-search input:focus {
border-color: #777;
}

.productcodes-category {
width: 280px;
flex: 0 0 280px;
}

.productcodes-category select {
width: 100%;
height: 44px;
padding: 0 12px;
border: 1px solid #ccc;
border-radius: 4px;
background: #fff;
font-size: 15px;
cursor: pointer;
}

.productcodes-clear {
height: 44px;
padding: 0 18px;
border: 1px solid #bbb;
border-radius: 4px;
background: #f5f5f5;
cursor: pointer;
font-size: 14px;
white-space: nowrap;
}

.productcodes-clear:hover {
background: #e9e9e9;
}

/*

* ================================================================
* RESULT INFO
* ================================================================
  */

.productcodes-result-info {
margin-bottom: 10px;
font-size: 14px;
}

.productcodes-result-info strong {
font-weight: 700;
}

/*

* ================================================================
* TABLE
* ================================================================
  */

.productcodes-table-wrapper {
width: 100%;
overflow-x: auto;
border: 1px solid #ddd;
border-radius: 5px;
background: #fff;
}

.productcodes-table {
width: 100%;
border-collapse: collapse;
table-layout: fixed;
}

.productcodes-table th {
padding: 13px 14px;
border-bottom: 2px solid #ddd;
background: #f5f5f5;
text-align: left;
font-size: 14px;
font-weight: 700;
vertical-align: middle;
}

.productcodes-table td {
padding: 12px 14px;
border-bottom: 1px solid #e5e5e5;
font-size: 14px;
vertical-align: middle;
}

.productcodes-table tbody tr:last-child td {
border-bottom: none;
}

.productcodes-table tbody tr:hover td {
background: #fafafa;
}

/*

* ================================================================
* COLUMNS
* ================================================================
  */

.productcodes-category-column {
width: 22%;
}

.productcodes-product-column {
width: 48%;
}

.productcodes-code-column {
width: 20%;
}

.productcodes-copy-column {
width: 10%;
}

/*

* ================================================================
* CATEGORY
* ================================================================
  */

.productcodes-category-cell {
font-weight: 600;
}

/*

* ================================================================
* PRODUCT
* ================================================================
  */

.productcodes-product-cell {
word-break: break-word;
}

/*

* ================================================================
* CODE
* ================================================================
  */

.productcodes-code-cell {
white-space: nowrap;
}

.productcodes-code {
display: inline-block;
padding: 5px 8px;
border: 1px solid #ddd;
border-radius: 3px;
background: #f8f8f8;
font-family: monospace;
font-size: 14px;
letter-spacing: 0;
}

/*

* ================================================================
* COPY BUTTON
* ================================================================
  */

.productcodes-copy {
width: 100%;
min-width: 75px;
height: 34px;
padding: 0 10px;
border: 1px solid #aaa;
border-radius: 4px;
background: #fff;
cursor: pointer;
font-size: 13px;
transition:
background 0.15s ease,
border-color 0.15s ease;
}

.productcodes-copy:hover {
background: #f1f1f1;
}

.productcodes-copy.copied {
background: #e8f5e9;
border-color: #81c784;
}

/*

* ================================================================
* NO RESULTS
* ================================================================
  */

.productcodes-no-results {
margin-top: 15px;
padding: 30px 20px;
border: 1px solid #ddd;
border-radius: 5px;
background: #fafafa;
text-align: center;
font-size: 15px;
}

/*

* ================================================================
* MOBILE
* ================================================================
  */

@media (max-width: 767px) {

```
#columns:has(#productcodes-page) #center_column {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

.productcodes-container {
    margin: 20px 0;
}

.productcodes-title-area {
    display: block;
}

.productcodes-title-area h1 {
    margin-bottom: 8px;
    font-size: 24px;
}

.productcodes-filters {
    display: block;
}

.productcodes-search {
    margin-bottom: 10px;
}

.productcodes-category {
    width: 100%;
    margin-bottom: 10px;
}

.productcodes-clear {
    width: 100%;
}

/*
 * Таблица като блокове
 */

.productcodes-table,
.productcodes-table thead,
.productcodes-table tbody,
.productcodes-table tr,
.productcodes-table td {
    display: block;
    width: 100%;
}

.productcodes-table thead {
    display: none;
}

.productcodes-table {
    border: none;
}

.productcodes-table tbody tr {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

.productcodes-table tbody tr:last-child {
    border-bottom: none;
}

.productcodes-table td {
    display: block;
    width: 100%;
    padding: 5px 0;
    border: none;
}

.productcodes-table td:before {
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.65;
}

.productcodes-category-cell:before {
    content: 'Категория';
}

.productcodes-product-cell:before {
    content: 'Продукт';
}

.productcodes-code-cell:before {
    content: 'Код';
}

.productcodes-copy-cell {
    padding-top: 10px !important;
}

.productcodes-copy {
    width: 100%;
}

.productcodes-code-cell {
    white-space: normal;
}

.productcodes-code {
    max-width: 100%;
    word-break: break-all;
}


/*
 * ================================================================
 * HEADER ACTIONS
 * ================================================================
 */

.productcodes-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}


/*
 * ================================================================
 * EXPORT EXCEL BUTTON
 * ================================================================
 */

.productcodes-export {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    height: 42px;
    padding: 0 18px;

    border: 1px solid #5cb85c;
    border-radius: 4px;

    background: #5cb85c;
    color: #fff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    line-height: 1;
    text-decoration: none;

    cursor: pointer;

    box-shadow: none;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.productcodes-export:hover {
    background: #449d44;
    border-color: #398439;
    color: #fff;
    text-decoration: none;
}

.productcodes-export:focus {
    outline: none;
    color: #fff;
}

.productcodes-export:active {
    background: #398439;
    border-color: #2e6b2e;
    color: #fff;
}

.productcodes-export-icon {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}


/*
 * ================================================================
 * MOBILE
 * ================================================================
 */

@media (max-width: 767px) {

    .productcodes-actions {
        display: block;
    }


    .productcodes-count {
        margin-bottom: 10px;
    }


    .productcodes-export {
        width: 100%;
    }

}