/* Общие стили */
.catalog-views-container {
    position: relative;
}
.hidden-element {
    display: none !important;
}
.item__field.element_table{
    flex-direction: column;
    align-items: center;

    padding: 0 0 0 1px;
}
.mobile_position {
    display: flex;
    align-items: center;
    width: 100%;
}
.hidden-element {
    display: none;
}

/* Табличное представление */
.catalog-table-view {
    width: 100%;
}

.catalog-table-scroll {
    overflow-x: auto;
    padding-bottom: 15px;
}

.catalog-table-inner {
    min-width: 900px;
}

.catalog-table-header,
.catalog-table-row {
    display: grid;
    grid-template-columns:
        80px    /* Изображение */
        minmax(200px, 1fr)  /* Название */
        120px   /* Статус */
        100px   /* VOUT */
        100px   /* FSW */
        120px   /* Корпус */
        40px;   /* Ссылка */
    gap: 15px;
    align-items: center;
}

.catalog-table-header {
    padding: 12px;
    font-weight: bold;
    background: #f8f8f8;
    position: sticky;
    left: 0;
}

.catalog-table-row {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    min-height: 80px;
}

/* Грид представление */
.catalog-grid-view {
    display: block;
}

.grid-items-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.catalog-section .catalog-section__left .recommendations-slide__image-container{
    height: 224px;
}

.grid-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
}


.popular__catalog_section{
    width: 100%;
    overflow-y: clip;
    overflow-x: auto;
    cursor: grab;
    user-select: none;
    padding-bottom: 15px;
}


.popular__catalog_section .value-list{
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular__catalog_section::-webkit-scrollbar-thumb {
    background: #000;
    border-radius: 5px;
}

.popular__catalog_section::-webkit-scrollbar {
    width: 10px;
    height: 8px;
    border: 1px solid rgba(0, 0, 0, 0.49);
    border-radius: 5px;
}


.popular__catalog thead tr{
    background: #fff;
}

.popular__catalog thead tr td{
    white-space:nowrap;
    padding: 10px 10px 10px 0;
    border: 0;
    cursor: pointer;
}

.popular__catalog {
    overflow-y: auto;
    border-collapse: collapse;
}


.popular__catalog tbody tr td {
    padding: 0;
    padding-top: 20px;
    vertical-align: top; /* Чтобы содержимое ячеек выравнивалось по верху */
}

.popular__catalog tbody tr td img{
    width: 80px;
    height: 100%;
    object-fit: contain;
}

.h-80{
    height: 80px;
}

thead .px-30:not(:first-child) {
    padding-right: 30px;
    padding-left: 30px;
}


tbody td:not(:first-child) .px-30{
    padding-right: 30px;
    padding-left: 30px;
}

tbody,thead:first-child td{
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    overflow: hidden;
}


tbody,thead:last-child td{
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    overflow: hidden;
}


.bg-white{
    background: #fff;
}

.flex {
    display: flex;
}
.flex-column {
    flex-direction: column;
}
.justify-content-center{
    justify-content: center;
}


.popular__catalog tr .border-right .border-right-1{
    border-right: 1px solid #B2B2B2;
}


.active-desc::after {
    content: "↓";
    margin-left: 5px;
}

.active-asc::after {
    content: "↑";
    margin-left: 5px;
}


.pl-30{
    padding-left: 30px;
}


tbody td .title{
    font-size: 12px;
    color: var(--Grey, #b2b2b2);
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    white-space: nowrap;
    padding-right: 10px;
}


tbody td .value{
    width: 300px;
}


tbody td .value{
    font-size: 20px;
    color: #000;
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
    max-width: max-content;
    min-width: max-content;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 1600px) {
    .catalog-section .catalog-section__left .recommendations-slide__image-container{
        height: 200px;
    }

}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .catalog-table-inner {
        min-width: 100%;
    }

    .catalog-table-header {
        display: none;
    }

    .catalog-table-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
        border: 1px solid #eee;
        margin-bottom: 10px;
    }

    .ct-col {
        display: flex;
        justify-content: space-between;
    }

    .ct-col::before {
        content: attr(data-label);
        font-weight: bold;
        margin-right: 15px;
    }

    .grid-items-container {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .new-items__item.card-view .button_block {
        display: none;
    }

    .new-items__item.card-view .mobile_last-group {
        display: flex;
        justify-content: flex-end;
        padding-top: 12px;
        border-top: 1px solid #f0f0f0;
    }

    .new-items__item.card-view .mobile_last-group .new-items__link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        color: black;
    }

    .new-items__item.card-view .mobile_last-group .new-items__link .cover {
        width: 20px;
        height: 20px;
        margin-left: 10px;
    }
    .new-items__list.tables {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .new-items__list.tables .table-view {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 10px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .new-items__list.tables .mobile_position {
        width: 100%;
    }

    .new-items__list.tables .mobile_first-group {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .new-items__list.tables .mobile_first-group .new-item__preview {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
    }

    .new-items__list.tables .mobile_first-group .item__field[data-id="name"] {
        flex-grow: 1;
    }

    .new-items__list.tables .mobile_property-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .new-items__list.tables .mobile_last-group .new-items__link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 10px 0;
    }

    .new-items__list.tables .mobile_last-group .new-items__link .cover {
        margin-left: 10px;
    }
}
@media (min-width: 601px) {
    .new-items__link {
        border-right: 1px solid white !important;
    }

}

@media (max-width: 601px) {
    .catalog-section .catalog-section__grid{
        grid-template-columns: repeat(1, 1fr);
    }
}

.ico-pdf
{
	display:inline-block;
	background:url(/upload/ico-pdf.png) no-repeat center;
	background-size:contain;
	width:25px;
	height:38px;
	color:transparent;
	text-decoration:none!important;
	
}

[data-code-item="SPECIFICATION"] .value
{
	margin:0 auto!important;
}