/*
 * goZanzibar.pl - responsywne tabele w artykulach
 */

#tresc .article-table-box {
    position: relative;
    width: 100%;
    margin: 24px 0;
}

#tresc .article-table-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    box-sizing: border-box;
    border-radius: 9px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
}

#tresc .article-table {
    width: 100%;
    max-width: none;
    margin: 0 !important;
    border-collapse: collapse;
    background: #fff;
    color: #4d5b66;
    line-height: 1.45;
}

#tresc .article-table th,
#tresc .article-table td {
    vertical-align: top;
    overflow-wrap: normal;
    word-break: normal;
}

#tresc .article-table th {
    color: #122e44;
    font-weight: 700;
}

#tresc .article-table--medium {
    min-width: 620px;
}

#tresc .article-table--wide {
    min-width: 760px;
}

#tresc .article-table--xwide {
    min-width: 920px;
}

#tresc .article-table-scroll-hint {
    display: none;
}

@media (max-width: 991.98px) {
    #tresc .article-table-box {
        margin: 22px 0;
    }

    #tresc .article-table-wrap {
        border: 1px solid #e1e6eb;
        border-radius: 9px;
        background: #fff;
    }

    #tresc .article-table-box.has-overflow .article-table-scroll-hint {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 5px;
        min-height: 20px;
        margin: 0 2px 5px;
        color: #697783;
        font-size: 11.5px;
        font-weight: 500;
        line-height: 1.2;
        transition: opacity .2s ease;
    }

    #tresc .article-table-box.has-overflow.is-interacted .article-table-scroll-hint {
        opacity: 0;
        height: 0;
        min-height: 0;
        margin: 0;
        overflow: hidden;
    }

    #tresc .article-table-scroll-hint__arrow {
        color: #e0a72f;
        font-size: 15px;
        line-height: 1;
    }

    #tresc .article-table-box.has-overflow::before,
    #tresc .article-table-box.has-overflow::after {
        content: '';
        position: absolute;
        top: 25px;
        bottom: 1px;
        z-index: 3;
        width: 18px;
        pointer-events: none;
        opacity: 1;
        transition: opacity .15s ease;
    }

    #tresc .article-table-box.has-overflow::before {
        left: 1px;
        background: linear-gradient(to right, rgba(18, 46, 68, .12), rgba(18, 46, 68, 0));
    }

    #tresc .article-table-box.has-overflow::after {
        right: 1px;
        background: linear-gradient(to left, rgba(18, 46, 68, .12), rgba(18, 46, 68, 0));
    }

    #tresc .article-table-box.has-overflow.is-at-start::before,
    #tresc .article-table-box.has-overflow.is-at-end::after {
        opacity: 0;
    }

    #tresc .article-table th,
    #tresc .article-table td {
        padding: 10px !important;
        font-size: 14px;
    }
}

@media (max-width: 575.98px) {
    #tresc .article-table-box {
        width: calc(100% + 4px);
        margin-left: -2px;
        margin-right: -2px;
    }

    #tresc .article-table th,
    #tresc .article-table td {
        padding: 9px !important;
        font-size: 13.5px;
        line-height: 1.4;
    }
}

#tresc .article-table-wrap:focus-visible {
    outline: 2px solid #e0b04f !important;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    #tresc .article-table-scroll-hint,
    #tresc .article-table-box.has-overflow::before,
    #tresc .article-table-box.has-overflow::after {
        transition: none;
    }
}

@media (max-width: 991.98px) {
    #tresc .article-table-box.has-overflow.is-interacted::before,
    #tresc .article-table-box.has-overflow.is-interacted::after {
        top: 0;
    }
}
