/* SGTC v29.1 - Cards amplos no estoque + paginação */

.page-v29-1-stock {
    max-width: 1640px;
    overflow-x: hidden;
}

.page-v29-1-stock .v23-card {
    overflow: visible;
}

.v291-filter-shell,
.v291-list-shell {
    padding: 18px;
}

.v291-filter {
    display: grid;
    grid-template-columns: minmax(240px, 1.2fr) minmax(200px, .9fr) minmax(180px, .8fr) minmax(150px, .6fr) auto auto;
    gap: 12px;
    align-items: end;
}

.v291-filter label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #214c47;
    font-size: 12px;
    font-weight: 900;
}

.v291-filter label > span {
    display: block;
}

.v291-check {
    height: 46px;
    align-self: end;
}

.v291-filter-actions {
    display: flex;
    gap: 8px;
    align-self: end;
}

.v291-list-head {
    margin-bottom: 16px;
}

.v291-summary-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.v291-product-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.v291-product-card {
    border: 1px solid #dcebe5;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(249,253,251,.99));
    box-shadow: 0 16px 36px rgba(4, 45, 39, .08);
    padding: 18px 20px;
}

.v291-product-card.critical {
    border-color: #eed0a2;
    box-shadow: 0 16px 36px rgba(151, 116, 19, .10);
    background: linear-gradient(180deg, #fffef9, #fffaf1);
}

.v291-product-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 14px;
    border-bottom: 1px solid #e7efec;
}

.v291-identity {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
    flex: 1;
    min-width: 0;
}

.v291-chip-row,
.v291-main-title,
.v291-head-side {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.v291-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 950;
    color: #54716c;
}

.v291-chip-row strong,
.v291-product-grid strong,
.v291-main-title h3 {
    color: #06372f;
}

.v291-chip-row strong {
    font-size: 26px;
    line-height: 1;
}

.v291-main-title h3 {
    margin: 0;
    font-size: clamp(24px, 2.5vw, 31px);
    line-height: 1.05;
}

.v291-main-title small,
.v291-category,
.v291-foot-note span,
.v291-foot-note small {
    color: #637f79;
    font-weight: 700;
}

.v291-head-side {
    min-width: 210px;
    align-items: flex-end;
    text-align: right;
}

.v291-head-side .v23-pill.alert {
    background: #fff0cf;
    color: #8d6710;
}

.v291-category {
    font-size: 13px;
}

.v291-product-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.v291-product-grid div {
    border: 1px solid #e6efec;
    border-radius: 14px;
    background: rgba(245, 250, 248, .9);
    padding: 12px 14px;
    min-width: 0;
}

.v291-product-grid span {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    color: #5a7771;
    font-weight: 950;
    text-transform: uppercase;
}

.v291-product-grid strong {
    display: block;
    font-size: clamp(18px, 1.8vw, 24px);
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.v291-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e7efec;
}

.v291-foot-note {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.v291-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.v291-empty {
    text-align: center;
    padding: 30px 18px;
    border: 1px dashed #d5e5e0;
    border-radius: 18px;
    color: #6a847e;
    font-weight: 850;
}

.v291-pagination {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.v291-pagination-info {
    color: #56736d;
    font-size: 13px;
    font-weight: 850;
}

.v291-pagination-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.v291-pagination a {
    text-decoration: none;
    border: 1px solid #cfe0da;
    border-radius: 11px;
    padding: 10px 14px;
    background: #fff;
    color: #075a52;
    font-size: 12px;
    font-weight: 950;
}

.v291-pagination a.active {
    background: #0f766e;
    border-color: #0f766e;
    color: #fff;
}

.v291-pagination a.disabled {
    opacity: .45;
    pointer-events: none;
}

@media (max-width: 1280px) {
    .v291-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .v291-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .v291-filter {
        grid-template-columns: 1fr;
    }
    .v291-product-head,
    .v291-product-footer,
    .v291-identity {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }
    .v291-head-side {
        min-width: 0;
        align-items: flex-start;
        text-align: left;
    }
    .v291-product-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .v291-product-grid {
        grid-template-columns: 1fr;
    }
}
