td {
    background-color: transparent !important;
    width: 200px !important;
}

.code-main a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: underline;
    color: #333333;
}

.img-products {
    width: 100% !important;
    max-width: 200px !important;
}

table td,
table th {
    vertical-align: middle;
    text-align: start;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: none !important;
}

table {
    border-collapse: collapse;
    border-style: hidden;
    box-shadow: 0 0 0 1px #666;
    width: 100%;
    table-layout: auto;
    /* ensures column alignment */
    margin-block-end: 0px;
}

.product-items-table-container {
    width: 100%;
}

.table-items-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.table-items-filter-control {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 180px;
}

.table-items-filter-control span {
    font-size: 13px;
    color: #2B3131;
    font-weight: 500;
}

.table-items-filter-control select {
    border: 1px solid #BEC6C6;
    border-radius: 6px;
    padding: 8px 10px;
    background: #fff;
    color: #070808;
    font-size: 14px;
}

.table-wrapper {
    border-radius: 8px;
    border: 1px solid #BEC6C6;
    display: block;
    width: 100%;
    overflow-y: hidden;
}

.table-wrapper thead,
.table-wrapper tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.table-wrapper thead {
    width: calc(100%);
}

.table-wrapper tbody {
    display: block;
    max-height: 540px;
    overflow-y: auto;
    overflow-x: hidden;
}

.table-wrapper th,
.table-wrapper td {
    width: 150px;
    border: 1px solid #ccc;
}

/* Custom Scroll */
.table-wrapper::-webkit-scrollbar {
    display: none;
}

.table-wrapper tbody::-webkit-scrollbar {
    display: block;
    width: 5px;
}

.table-wrapper tbody::-webkit-scrollbar-thumb {
    background-color: #000;
    border-radius: 5px;
}

.table-wrapper tbody::-webkit-scrollbar-track {
    background-color: #ddd;
    border: 1px solid #ccc;
    border-radius: 15x;
}

tr {
    border-bottom: 1px solid #BEC6C6;
}

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

thead th {
    position: sticky;
    top: 0;
    /* stick to top of scroll area */
    z-index: 2;
    /* stay above body cells */
    background-color: #F5F6F4;
    text-align: start;
}

/* Type Table */

div.items-type {
    display: flex;
    justify-content: center;
    background-color: #F5F6F4 !important;
    border: 1px solid #BEC6C6 !important;
    border-radius: 5px;
    padding: 10px 20px;
    gap: 8px;
}

/* Color Table */

div.color {
    width: max-content;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Mobile */
@media only screen and (max-width: 767px) {
    .table-items-filters {
        flex-direction: column;
        gap: 10px;
    }

    .table-items-filter-control {
        min-width: 100%;
    }

    td.td-img {
        width: auto !important;
        max-width: none !important;
        white-space: normal !important;
    }

    .img-products {
        width: 150px !important;
        height: auto !important;
        object-fit: contain !important;
        display: block !important;
        margin: 0 auto;
    }
}

/* 

.table-wrapper {
  display: block;
  width: 100%;
  overflow: auto;
}

.table-wrapper thead,
.table-wrapper tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.table-wrapper thead {
  width: calc(100%); 
}

.table-wrapper tbody {
  display: block;
  height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
}

.table-wrapper th,
.table-wrapper td {
  width: 150px;
  border: 1px solid #ccc;
}

*/