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

@media (min-width: 769px) and (max-width: 1199px) {
    .hdr-center-col {
        display: none !important;
    }

    .hdr-left-col {
        flex: 0 0 auto;
        width: 60%;
        max-width: none;
    }

    .hdr-right-col {
        flex: 0 0 auto;
        width: 40%;
        max-width: none;
    }

    .hdr-lgn-text {
        display: none;
    }
}

.hdr-dt-row {
    display: flex;
}

.hdr-mobile-row {
    display: none;
}

@media (max-width: 768px) {
    .hdr-dt-row {
        display: none;
    }

    .hdr-mobile-row {
        display: flex;
        padding: 15px 0;
    }

    body > header.fixed-top {
        margin-top: 0;
    }

    .hdr-mob-logo-wrp img {
        height: 34px;
        width: auto;
        display: block;
    }

    .hdr-mob-actions {
        gap: 10px;
    }

    .hdr-mob-srch-btn {
        background: #CCFE04;
        border: none;
        border-radius: 10px;
        padding: 7px 10px;
        line-height: 0;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hdr-mob-srch-btn img {
        width: 18px;
        height: 18px;
        display: block;
    }

    .hdr-mob-srch-btn:active {
        background: #b8e503;
    }

    .hdr-mob-cart-btn {
        background: #CCFE04;
        padding: 7px 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 0;
        text-decoration: none;
    }

    .hdr-mob-cart-btn img {
        width: 18px;
        height: 18px;
        display: block;
    }

    .hdr-mob-cart-btn:active {
        background: #b8e503;
    }

    .btn-hmbrgr {
        background: none;
        border: none;
        padding: 4px 2px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        flex-shrink: 0;
    }

    .btn-hmbrgr span {
        display: block;
        width: 24px;
        height: 2px;
        background: #CCFE04;
        border-radius: 1px;
        transition: transform 0.25s ease, opacity 0.2s ease;
    }

    .hdr-srch-overlay {
        position: absolute;
        inset: 0;
        background: #101010;
        z-index: 100;
        align-items: center;
        padding: 0 14px;
        gap: 10px;
    }

    header.srch-active .hdr-srch-overlay {
        display: flex;
    }

    .hdr-srch-overlay-form {
        flex: 1;
        position: relative;
        display: flex;
        align-items: center;
    }

    .hdr-srch-overlay-input {
        width: 100%;
        background: transparent;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.35);
        color: #ffffff;
        font-family: Mulish, sans-serif;
        font-size: 15px;
        padding: 7px 38px 7px 4px;
        outline: none;
        border-radius: 0;
        -webkit-appearance: none;
    }

    .hdr-srch-overlay-input::placeholder {
        color: rgba(255, 255, 255, 0.4);
    }

    .hdr-srch-overlay-submit {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        background: transparent;
        border: none;
        padding: 4px;
        cursor: pointer;
        display: flex;
        align-items: center;
        line-height: 0;
    }

    .hdr-srch-overlay-submit img {
        width: 18px;
        height: 18px;
        display: block;
    }

    .hdr-srch-overlay-submit:active {
        opacity: 0.7;
    }

    .hdr-srch-overlay-close {
        background: none;
        border: none;
        color: #CCFE04;
        font-size: 22px;
        line-height: 1;
        padding: 0 2px;
        cursor: pointer;
        flex-shrink: 0;
        font-family: Mulish, sans-serif;
        font-weight: 300;
    }

    .hdr-srch-overlay-close:active {
        opacity: 0.7;
    }

    .header-tint {
        height: 14%;
    }
}

#mobileMenu {
    background: #101010;
    background-image: none;
}

.mob-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #1e1e1e;
    flex-shrink: 0;
}

.mob-menu-logo {
    height: 30px;
    width: auto;
    display: block;
}

.btn-close-mob {
    background: none;
    border: none;
    color: #CCFE04;
    font-size: 24px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    font-family: Mulish, sans-serif;
    font-weight: 300;
}

.btn-close-mob:hover {
    opacity: 0.75;
}

.mob-menu-body {
    padding: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mob-menu-section {
    padding: 16px 20px;
    border-bottom: 1px solid #1e1e1e;
}
.mob-menu-section:last-child {
    border-bottom: none;
}

.mob-menu-identity {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mob-menu-identity .hdr-lgn-wrp {
    column-gap: 10px;
}

.mob-menu-identity .hdr-lgn-text {
    display: block !important;
}

.mob-menu-identity .hdr-lgn-text a {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}

.mob-menu-identity .hdr-lgn-text a:hover {
    color: #CCFE04;
}

.mob-menu-identity .hdr-lng-wrp {
    max-width: none;
    column-gap: 10px;
    font-size: 15px;
    font-weight: 600;
}

.mob-menu-upd {
    text-align: center;
}

.mob-menu-upd .hdr-lst-upd-wrp {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.mob-menu-upd .hdr-lst-upd-txt {
    font-size: 12px;
    padding: 7px 24px 7px 16px;
}

.mob-menu-upd .hdr-lst-upd-tm {
    font-size: 12px;
    padding: 7px 10px;
}

.mob-nav-lst {
    margin: 0;
}

.mob-nav-item {
    padding: 13px 0;
    border-bottom: 1px solid #1e1e1e;
}

.mob-nav-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mob-nav-item a {
    color: #999999;
    text-decoration: none;
    font-size: 15px;
    display: block;
    transition: color 0.25s ease;
}

.mob-nav-item a:hover {
    color: #CCFE04;
}

.mob-btn-asxt {
    width: 100%;
    text-align: center;
}

.mob-mngrs-label {
    color: #CCFE04;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.mob-mngrs-emails,
.mob-mngrs-phones {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mob-mngrs-emails {
    margin-bottom: 10px;
}

.mob-mngrs-emails a {
    color: #c7c7c7;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
}

.mob-mngrs-phones a {
    color: #c7c7c7;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
}

.mob-mngrs-emails a:hover,
.mob-mngrs-phones a:hover {
    color: #CCFE04;
}

.hdr-srch-overlay {
    display: none;
}

@media (max-width: 768px) {
    .ctgrs-lst {
        margin: 0;
    }
}


@media (max-width: 374px) {
    .mob-menu-upd .hdr-lst-upd-wrp {
        flex-wrap: initial;
    }

    .mob-menu-section {
        padding: 16px 10px;
    }
}

/* -------------------------------------------------------
   ASSORTMENT MENU — mobile column switching
   ------------------------------------------------------- */

.asmnt-back-btn {
    display: none;
}

@media (max-width: 768px) {

    #assortmentMenu .mnu-drpdwn {
        flex-direction: column;
        margin-top: 0;
    }

    #assortmentMenu .asmnt-cats-col {
        width: 100%;
        max-width: none;
    }

    #assortmentMenu.cat-selected .asmnt-offcanvas-header {
        justify-content: space-between;
        align-items: center;
    }

    #assortmentMenu.cat-selected .asmnt-back-btn {
        display: flex;
    }

    .ctgr-itm > a {
        min-width: unset;
        width: 100%;
    }

    #assortmentMenu .asmnt-grid-col {
        display: none;
        width: 100%;
        max-width: none;
    }

    #assortmentMenu.cat-selected .asmnt-cats-col {
        display: none;
    }

    #assortmentMenu.cat-selected .asmnt-grid-col {
        display: block;
    }

    .grd-mnu-itm {
        width: 225px;
        height: auto;
        min-height: 110px;
    }

    .grd-mnu-itm-crcl {
        top: unset;
        left: unset;
        bottom: -12px;
        right: -12px;
    }

    #assortmentMenu .xl-prc-wrp {
        margin-top: 12px;
    }

    #assortmentMenu .grd-mnu-wrp > .row:last-child > div {
        width: 100%;
        max-width: none;
    }

    .asmnt-back-btn {
        align-items: center;
        gap: 8px;
        background: none;
        border: none;
        color: #CCFE04;
        font-family: Mulish, sans-serif;
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .asmnt-back-btn::before {
        content: '←';
        font-size: 16px;
        line-height: 1;
    }

    .asmnt-back-btn:active {
        opacity: 0.7;
    }
}

@media (max-width: 575px) {
    .grd-mnu-itm {
        width: calc(50% - 10px);
    }
}

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

/* ========================== FOOTER ========================== */

@media (min-width: 769px) and (max-width: 1199px) {

    .footer-col-1,
    .footer-col-2,
    .footer-col-3,
    .footer-col-4 {
        flex: 0 0 50%;
        max-width: 50%;
        width: 50%;
    }

    .footer-col-3,
    .footer-col-4 {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {

    .f-flc {
        padding-top: 28px;
        padding-bottom: 20px;
    }

    .footer-col-1 {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 16px;
    }

    .footer-col-1 .row:first-child {
        flex: 0 0 auto;
        width: 50%;
    }

    .footer-col-1 .row:last-child {
        flex-direction: column;
        align-items: flex-start;
        width: 50%;
    }

    .fc1-te1, .fc1-te2, .fc1-te3 {
        padding-left: 1.7rem;
    }

    .fc1-te1 {
        padding-top: 0;
    }

    .footer-col-2,
    .footer-col-4 {
        flex: 0 0 50%;
        max-width: 50%;
        width: 50%;
        margin-top: 28px;
    }

    .footer-col-3 {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
        margin-top: 28px;
        order: 4;
    }

    .footer-col-4 {
        order: 3;
    }

    .f-bb {
        flex-direction: column-reverse;
    }

    .f-bb-c1,
    .f-bb-c2 {
        flex: none;
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    .f-bb-c2 {
        padding-bottom: 0;
    }

    .ftr-socials {
        justify-content: center;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .footer-col-2,
    .footer-col-4 {
        flex: 0 0 30%;
        max-width: 30%;
        width: 30%;
    }
}

@media (min-width: 576px) and (max-width: 768px) {
    .footer-col-1,    
    .footer-col-3 {
        flex: 0 0 50%;
        max-width: 50%;
        width: 50%;
    }

    .footer-col-2,
    .footer-col-4 {
        flex: 0 0 30%;
        max-width: 30%;
        width: 30%;
    }

    .footer-col-2 {
        margin-top: 0;
    }

    .footer-col-3,
    .footer-col-4 {
        margin-top: 40px;
        order: unset;
    }

    .footer-col-1 {
        flex-direction: column;
        gap: 0;
    }

    .footer-col-1 .row:first-child {
        flex: unset;
        width: auto;
    }

    .footer-col-1 .row:last-child {
        flex-direction: row;
        align-items: unset;
        width: auto;
    }

    .fc1-te1,
    .fc1-te2,
    .fc1-te3 {
        padding-left: 0;
    }

    .fc1-te1 {
        padding-top: 12px;
    }

    .footer-col-4 {
        order: unset;
    }

    .f-bb {
        flex-direction: row;
    }

    .f-bb-c1,
    .f-bb-c2 {
        flex: 1 0 0%;
        width: auto;
        max-width: none;
        text-align: left;
    }

    .f-bb-c2 {
        padding-bottom: unset;
    }

    .ftr-socials {
        justify-content: flex-end;
    }
}

/* ========================== FOOTER END ========================== */

/* ========================== HOMEPAGE ========================== */

@media (max-width: 768px) {
    .hm-pg-brnd-lst {
        display: none;
    }

    .carousel-control-prev {
        left: 44%;
    }

    .carousel-control-next {
        right: 44%;
    }

    .pdct-grid-hdr {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hm-pg-txt-el-1 {
        font-size: 16px;
        line-height: 20px;
        text-align: initial;
    }

    .hm-pg-txt-el-2 {
        text-align: initial;
        max-width: 70.625%;
    }
}

/* ========================== HOMEPAGE END ========================== */

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

@media (max-width: 1019px) {
    .available-table input[type="text"],
    .available-table input[type="search"],
    .available-table input[type="submit"] {
        border-radius: 0;
    }
}

@media (max-width: 799px) {
    .available-table tr {
        width: 100%;
        height: auto;
        display: inline-block;
        position: relative;
    }

    .available-table td.code {
        position: absolute;
        left: 36px;
        top: 10px;
        font-size: 12px;
    }

    .available-table table tbody td {
        padding: 0;
        border: none;
    }

    .available-table td.present {
        top: 10px;
        left: -5px;
        display: block;
        padding: 0;
        padding-left: 10px;
    }

    .available-table td.name {
        display: inline-block;
        padding: 0;
        width: 50%;
        margin-top: 10px;
        padding-bottom: 10px;
        padding-left: 5px;
        text-align: left;
    }

    .available-table table td.price {
        display: inline-block;
        position: absolute;
        top: 16px;
        font-weight: bold;
        right: 120px;
        font-size: 1.25em;
        font-size: 14px;
    }

    .available-table td.availability {
        display: inline-block;
        position: absolute;
        top: 27px;
        left: 30px;
    }

    .available-table td.quantity.quantity {
        position: absolute;
        right: 0;
        top: 10px;
        width: 90px;
    }

    .available-table .quantity-tooltip-container {
        padding-top: 0;
        padding-left: 15px;
    }

    .available-table td.quantity input[type="text"] {
        width: 27px;
    }

    .available-table table td.last {
        display: inline-block;
        margin-top: 15px;
        float: right;
        width: 105px;
    }

    .available-table td > button {
        width: 105px;
    }
}

@media (max-width: 768px) {
    .prdct-wrp {
        padding-top: 85px;
    }

    .prdct-wrp #breadcrumbs {
        padding-bottom: 20px;
    }
}

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

/* =========================== Responsive account =========================== */

@media (max-width: 768px) {
    .prfl-pg #breadcrumbs {
        margin-bottom: 20px;
    }

    .prfl-pg {
        padding-top: 90px;
    }

    .stlmnt-mn-lnk a {
        font-size: 14px
    }
    
    .stlmnt-mn-wrp li {
        padding: 15px;
    }
    
}

/* =========================== Responsive account end =========================== */

/* =========================== Responsive account sidebar  =========================== */

#accountSidebar {
    --bs-offcanvas-width: 290px;
}

@media (min-width: 1024px) {

    #accountSidebar {
        position:   static  !important;
        transform:  none    !important;
        visibility: visible !important;
        width:      auto    !important;
        border-right: 0     !important;
        box-shadow: none    !important;
        overflow-y: visible !important;
        z-index:    auto    !important;
    }

    .acnt-sb-col {
        display: block;
    }

    .acnt-sb-toggle {
        display: none !important;
    }
}

@media (max-width: 1023.98px) {
    .acnt-sb-col {
        width: 0;
        padding-left: 0;
        padding-right: 0;
    }

    #accountSidebar {
        height: fit-content;
        margin-top: auto;
        margin-bottom: auto;
        border-radius: 0 20px 20px 0;
    }

    .stlmnt-mn-wrp {
        padding: 28px 12px 28px 28px;
    }
}

.acnt-sb-toggle {
    position:  fixed;
    left:      0;
    top:       50%;
    transform: translateY(-50%);
    z-index:   1046;
    width:  24px;
    height: 64px;
    padding: 0;
    background-color: #151515;
    border:       1px solid rgba(242, 242, 242, 0.14);
    border-left:  0;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    display:         flex;
    align-items:     center;
    justify-content: center;
    transition: left 0.3s ease-in-out;
}

.acnt-sb-toggle[aria-expanded="true"] {
    left: 290px;
}

.acnt-sb-arrow {
    color:      #CCFE04;
    display:    block;
    flex-shrink: 0;
    transition: transform 0.3s ease-in-out;
}

.acnt-sb-toggle[aria-expanded="true"] .acnt-sb-arrow {
    transform: rotate(180deg);
}

/* =========================== Responsive account sidebar end =========================== */

/* =========================== Responsive arrivings page =========================== */

@media (max-width: 768px) {
    .arrvl-pg {
        padding-top: 90px;
        background-image: url(../img/menu-background.png);
        background-color: #101010;
        background-size: cover;
    }

    .arrvl-pg #breadcrumbs {
        margin-bottom: 20px;
    }

    .xl-prc-txt {
        padding: 15px 0 0 15px;
    }

    .xl-prc-wrp img {
        padding: 15px 15px 0px 0px;
    }
    
    .xl-prc-hdr {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .arrvl-tbl-row .col-2:nth-child(2),
    .arrvl-tbl-hdr > .col-2:nth-child(2) {
        overflow: hidden;
        min-width: 0;
        word-break: break-all;
        font-size: 11px;
    }
}
/* =========================== Responsive arrivings page end =========================== */

/* =========================== Responsive orders page =========================== */
@media (max-width: 1024px) {
    .ordr-ctrl-form input[type="date"] {
        flex: 1 1 auto;
        min-width: 110px;
    }

    .ordr-tbl-hdr {
        display: none;
    }

    .ordr-tbl-dt {
        display: grid !important;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "num    toggle"
            "date   status"
            "deliv  deliv"
            "sum    seats";
        column-gap: 10px;
        row-gap: 6px;
        padding: 12px 16px;
        min-height: unset;
        border-bottom: none;
    }

    .ordr-tbl-dt > [class*="col-"] {
        width: auto !important;
        flex: none !important;
        max-width: none !important;
        padding-left: 0;
        padding-right: 0;
    }

    .ordr-tbl-dt > div:nth-child(1) { /* Order # */
        grid-area: num;
        justify-content: flex-start !important;
        font-size: 15px;
    }

    .ordr-tbl-dt > div:nth-child(2) { /* Date */
        grid-area: date;
        justify-content: flex-start !important;
        font-size: 13px;
    }

    .ordr-tbl-dt > div:nth-child(3) { /* Sum */
        grid-area: sum;
        justify-content: flex-start !important;
        font-size: 13px;
    }

    .ordr-tbl-dt > div:nth-child(4) { /* Status badge */
        grid-area: status;
        justify-content: flex-end !important;
    }

    .ordr-tbl-dt > div:nth-child(5) { /* Delivery service + TTN */
        grid-area: deliv;
        justify-content: flex-start !important;
        flex-wrap: wrap;
        gap: 2px 6px;
        font-size: 12px;
    }

    .ordr-tbl-dt > div:nth-child(6) { /* Seat count */
        grid-area: seats;
        justify-content: flex-end !important;
        font-size: 13px;
    }

    .ordr-tbl-dt > div:nth-child(7) { /* Expand ▼ toggle */
        grid-area: toggle;
        justify-content: flex-end !important;
        align-items: flex-start !important;
        padding-top: 3px;
    }

    .ordr-tbl-dt > div:nth-child(3)::before {
        content: attr(data-label) ':\00a0';
        color: #6C6C6C;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        white-space: nowrap;
        align-self: center;
    }

    .ordr-tbl-dt > div:nth-child(6)::before {
        content: attr(data-label) ':\00a0';
        color: #6C6C6C;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        white-space: nowrap;
        align-self: center;
    }

    .ordr-ttn {
        word-break: break-all;
    }

    .ordr-pd-tbl-hdr {
        display: none;
    }

    .ordr-pd-tbl-cont {
        margin-left: 0;
        margin-right: 0;
    }

    /*
     * 5-column grid — 2 rows per product line:
     *
     *   col widths: 22px | 1fr | 32px | 32px | 52px
     *
     *   Row 1:  [# (span)] [Name ...................] [         Sum →]
     *   Row 2:  [# (span)] [Code     ] [ ×Qty ] [ ✓Ship ]
     *
     *   Sum spans cols 3-5 → ~116px, enough for any price value.
     *   Code gets the full 1fr column (~190px at 375px), handles long SKUs.
     */
    .ordr-pd-tbl-dt {
        display: grid !important;
        grid-template-columns: 22px minmax(0, 1fr) 32px 32px 52px;
        grid-template-rows: auto auto;
        column-gap: 6px;
        row-gap: 4px;
        padding: 10px 12px;
        min-height: unset;
    }

    .ordr-pd-tbl-dt > [class*="col-"] {
        width: auto !important;
        flex: none !important;
        max-width: none !important;
        padding-left: 0;
        padding-right: 0;
    }

    .ordr-pd-tbl-dt > div:nth-child(1) {
        grid-column: 1;
        grid-row: 1 / 3;
        align-items: flex-start !important;
        padding-top: 2px;
    }

    .ordr-pd-tbl-dt > div:nth-child(2) {
        grid-column: 2;
        grid-row: 2;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        font-size: 11px;
        color: #6C6C6C;
    }

    .ordr-pd-tbl-dt > div:nth-child(3) {
        grid-column: 2;
        grid-row: 1;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        font-size: 13px;
        line-height: 1.35;
    }

    .ordr-pd-tbl-dt > div:nth-child(4) {
        grid-column: 3;
        grid-row: 2;
        justify-content: center !important;
        align-items: flex-start !important;
        font-size: 12px;
        white-space: nowrap;
    }

    .ordr-pd-tbl-dt > div:nth-child(5) {
        grid-column: 4;
        grid-row: 2;
        justify-content: center !important;
        align-items: flex-start !important;
        font-size: 12px;
        white-space: nowrap;
    }

    .ordr-pd-tbl-dt > div:nth-child(6) {
        grid-column: 3 / 6;
        grid-row: 1;
        justify-content: flex-end !important;
        align-items: flex-start !important;
        font-size: 13px;
        font-weight: 600;
        color: #FFFFFF;
        white-space: nowrap;
    }

    .ordr-pd-tbl-dt > div:nth-child(4)::before {
        content: '×\00a0';
        color: #6C6C6C;
        font-size: 10px;
        align-self: center;
    }
    .ordr-pd-tbl-dt > div:nth-child(5)::before {
        content: '✓\00a0';
        color: #3EBD72;
        font-size: 10px;
        align-self: center;
    }

    .ordr-pd-tbl-footer {
        padding: 10px 12px;
    }
}

/* =========================== Responsive orders page end =========================== */

/* =========================== Responsive settlements page =========================== */

@media (max-width: 768px) {
    .stlmnt-pg {
        padding-top: 90px;
    }

    .stlmnt-dt-ctrl-cont {
        flex-direction: column;
        gap: 8px;
    }

    .stlmnt-dt-ctrl-cldr {
        flex-wrap: wrap;
        gap: 8px;
        margin-right: 0;
    }

    .stlmnt-dt-ctrl-cldr input[type="text"],
    .stlmnt-dt-ctrl-cldr input.stlmnt-fp-input {
        flex: 1 1 0;
        min-width: 0;
        padding-left: 8px;
        padding-right: 8px;
        margin-right: 0;
    }

    .stlmnt-dt-ctrl-cldr .btn {
        flex: 1 1 100%;
    }

    .stlmnt-dt-ctrl-dbt {
        flex-wrap: wrap;
        gap: 8px;
    }

    .stlmnt-dt-ctrl-dbt > div {
        margin-right: 0;
    }

    #modal_Document_download .window_center {
        align-items: flex-end;
        padding: 0;
    }

    #modal_Document_download .window_dialog {
        max-width: 100%;
        width: 100%;
        max-height: 70vh;
        border-radius: 16px 16px 0 0;
        margin: 0;
    }
}

@media (max-width: 1024px) {

    .stlmnt-dt-ctrl-cont {
        flex-wrap: wrap;
        gap: 15px 8px;
    }

    .stlmnt-dt-tbl-dt > div:nth-child(1),
    .stlmnt-dt-tbl-dt > div:nth-child(2),
    .stlmnt-dt-tbl-dt > div:nth-child(3),
    .stlmnt-dt-tbl-dt > div:nth-child(4),
    .stlmnt-dt-tbl-dt > div:nth-child(5),
    .stlmnt-pd-dt-tbl-dt > div:nth-child(1),
    .stlmnt-pd-dt-tbl-dt > div:nth-child(2),
    .stlmnt-pd-dt-tbl-dt > div:nth-child(3),
    .stlmnt-pd-dt-tbl-dt > div:nth-child(4),
    .stlmnt-pd-dt-tbl-dt > div:nth-child(5),
    .stlmnt-pd-dt-tbl-dt > div:nth-child(6) {
        border: none;
    }

    /* ─── Outer contract table ─── */

    .stlmnt-dt-tbl-hdr {
        display: none;
    }

    /*
     * 2-column grid, 3 rows:
     *
     *   col widths: 1fr | auto
     *
     *   Row 1:  [doc name ......................] [print / ▼]
     *   Row 2:  [Поч.: start           ] [+: inc]
     *   Row 3:  [−: dec                ] [Кін.: end]
     */
    .stlmnt-dt-tbl-dt {
        display: grid !important;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "doc     toggle"
            "start   inc"
            "dec     end";
        column-gap: 10px;
        row-gap: 4px;
        padding: 10px 12px;
        margin: 0;
        min-height: unset;
        align-items: center;
    }

    .stlmnt-dt-tbl-dt > [class*="col-"] {
        width: auto !important;
        flex: none !important;
        max-width: none !important;
        padding-left: 0;
        padding-right: 0;
        height: auto;
    }

    .stlmnt-dt-tbl-dt > div:nth-child(1) { /* Document name + date */
        grid-area: doc;
        justify-content: flex-start !important;
        align-self: start;
        font-size: 13px;
        line-height: 1.35;
    }

    .stlmnt-dt-tbl-dt > div:nth-child(2) { /* На початок Периоду */
        grid-area: start;
        justify-content: flex-start !important;
        font-size: 13px;
    }

    .stlmnt-dt-tbl-dt > div:nth-child(3) { /* Збільшення боргу */
        grid-area: inc;
        justify-content: flex-end !important;
        font-size: 13px;
    }

    .stlmnt-dt-tbl-dt > div:nth-child(4) { /* Зменшення боргу */
        grid-area: dec;
        justify-content: flex-start !important;
        font-size: 13px;
    }

    .stlmnt-dt-tbl-dt > div:nth-child(5) { /* На кін. Периоду */
        grid-area: end;
        justify-content: flex-end !important;
        font-size: 13px;
    }

    .stlmnt-dt-tbl-dt > div:nth-child(6) { /* Print icon + ▼ toggle */
        grid-area: toggle;
        justify-content: flex-end !important;
        align-self: start;
        padding-top: 3px;
    }

    /* Inline micro-labels — language-neutral abbreviations used in both UA/RU */
    .stlmnt-dt-tbl-dt > div:nth-child(2)::before,
    .stlmnt-dt-tbl-dt > div:nth-child(3)::before,
    .stlmnt-dt-tbl-dt > div:nth-child(4)::before,
    .stlmnt-dt-tbl-dt > div:nth-child(5)::before {
        font-size: 10px;
        font-weight: 700;
        color: #6C6C6C;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        white-space: nowrap;
        align-self: center;
    }

    .stlmnt-dt-tbl-dt > div:nth-child(2)::before { content: "Поч.:\00a0"; }
    .stlmnt-dt-tbl-dt > div:nth-child(3)::before { content: "+:\00a0"; }
    .stlmnt-dt-tbl-dt > div:nth-child(4)::before { content: "−:\00a0"; }
    .stlmnt-dt-tbl-dt > div:nth-child(5)::before { content: "Кін.:\00a0"; }

    /* ─── Inner product sub-table ─── */

    .stlmnt-pd-dt-tbl-hdr {
        display: none;
    }

    /*
     * 4-column grid, 2 rows:
     *
     *   col widths: 1fr | 1fr | auto | auto
     *
     *   Row 1:  [product name (span 1-2) ....] [      sum (span 3-4)]
     *   Row 2:  [barcode (col 1)] [article (col 2)] [×qty] [price]
     */
    .stlmnt-pd-dt-tbl-dt {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto;
        grid-template-rows: auto auto;
        column-gap: 6px;
        row-gap: 4px;
        padding: 10px 12px;
        margin: 0;
        min-height: unset;
    }

    .stlmnt-pd-dt-tbl-dt > [class*="col-"] {
        width: auto !important;
        flex: none !important;
        max-width: none !important;
        padding-left: 0;
        padding-right: 0;
        min-height: unset;
    }

    .stlmnt-pd-dt-tbl-dt > div:nth-child(1) { /* Barcode */
        grid-column: 1;
        grid-row: 2;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        font-size: 11px;
        color: #6C6C6C;
    }

    .stlmnt-pd-dt-tbl-dt > div:nth-child(2) { /* Article */
        grid-column: 2;
        grid-row: 2;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        font-size: 11px;
        color: #6C6C6C;
    }

    .stlmnt-pd-dt-tbl-dt > div:nth-child(3) { /* Product name */
        grid-column: 1 / 3;
        grid-row: 1;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        font-size: 13px;
        line-height: 1.35;
    }

    .stlmnt-pd-dt-tbl-dt > div:nth-child(4) { /* Qty */
        grid-column: 3;
        grid-row: 2;
        justify-content: center !important;
        align-items: flex-start !important;
        font-size: 12px;
        white-space: nowrap;
    }

    .stlmnt-pd-dt-tbl-dt > div:nth-child(5) { /* Price */
        grid-column: 4;
        grid-row: 2;
        justify-content: flex-end !important;
        align-items: flex-start !important;
        font-size: 12px;
        white-space: nowrap;
    }

    .stlmnt-pd-dt-tbl-dt > div:nth-child(6) { /* Sum */
        grid-column: 3 / 5;
        grid-row: 1;
        justify-content: flex-end !important;
        align-items: flex-start !important;
        font-size: 13px;
        font-weight: 600;
        white-space: nowrap;
    }

    .stlmnt-pd-dt-tbl-dt > div:nth-child(4)::before {
        content: '×\00a0';
        color: #6C6C6C;
        font-size: 10px;
        align-self: center;
    }
}

@media (max-width: 375px) {
    #modal_Document_download .window_dialog {
        padding: 22px 16px 18px;
        border-radius: 16px 16px 0 0;
    }

    #modal_Document_download .window_center {
        padding: 0;
    }

    #modal_Document_download label {
        font-size: 13px;
    }
}

@media (min-width: 1024px) {
    #modal_Document_download .window_dialog {
        max-width: 460px;
    }
}

/* =========================== Responsive settlements page end =========================== */

/* =========================== Responsive favorites page =========================== */

@media (max-width: 1024px) {

    /* ── Table header: hidden on all compact widths ──────────────────────── */
    .fvrt-tbl-hdr {
        display: none !important;
    }

    /* ── Each data row → 2-row card grid ─────────────────────────────────────
     *
     *  Columns: 52px  |  1fr  |  auto  |  34px
     *
     *  Row 1:  [ img ] [ name .............. ] [ price ] [ × ]
     *  Row 2:  [ img ] [ sku ............... ] [  buy btn  →  ]
     *
     *  "img"  spans rows 1–2  (photo stays beside all content)
     *  "buy"  spans cols 3–4 in row 2  (enough room for button label)
     * ─────────────────────────────────────────────────────────────────────── */
    .fvrt-tbl-dt {
        display: grid !important;
        grid-template-columns: 52px minmax(0, 1fr) auto 34px;
        grid-template-rows: auto auto;
        grid-template-areas:
            "img  name   price  remove"
            "img  sku    buy    buy";
        column-gap: 10px;
        row-gap: 8px;
        padding: 12px 8px;
        margin: 0 8px;
        min-height: unset;
        align-items: start;
    }

    /* Strip all Bootstrap col-* sizing from every child */
    .fvrt-tbl-dt > [class*="col-"] {
        width: auto !important;
        flex: none !important;
        max-width: none !important;
        padding-left: 0;
        padding-right: 0;
        min-height: unset !important;
    }

    /* ── Row index: hidden (not meaningful in card layout) ── */
    .fvrt-tbl-dt .fvrt-idx {
        display: none !important;
    }

    /* ── Photo: spans both rows ── */
    .fvrt-tbl-dt .fvrt-img {
        grid-area: img;
        align-items: flex-start !important;
        justify-content: center !important;
        padding-top: 2px;
    }

    /* ── Product name: row 1, left-aligned ── */
    .fvrt-tbl-dt .fvrt-name {
        grid-area: name;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        font-size: 13px;
        line-height: 1.35;
    }

    /* ── SKU / code: row 2, muted secondary info ── */
    .fvrt-tbl-dt .fvrt-sku {
        grid-area: sku;
        justify-content: flex-start !important;
        align-items: center !important;
        font-size: 11px;
        color: #6C6C6C;
    }

    /* ── Price: row 1, right-aligned ── */
    .fvrt-tbl-dt .fvrt-price {
        grid-area: price;
        justify-content: flex-end !important;
        align-items: flex-start !important;
        white-space: nowrap;
        font-size: 14px;
    }

    /* ── Buy button: row 2, spans cols 3–4 ── */
    .fvrt-tbl-dt .fvrt-buy {
        grid-area: buy;
        justify-content: flex-end !important;
        align-items: center !important;
    }

    .fvrt-btn-buy {
        font-size: 12px;
        padding: 5px 12px;
    }

    /* ── Remove button: row 1, far right ── */
    .fvrt-tbl-dt .fvrt-remove {
        grid-area: remove;
        justify-content: flex-end !important;
        align-items: flex-start !important;
    }

    /* ── Table container: tighten bottom padding ── */
    .fvrt-tbl-cont {
        padding-bottom: 4px;
    }
}

/* =========================== Responsive favorites page end =========================== */
