﻿/* taken from tutorial: http://tympanus.net/codrops/2014/01/09/sticky-table-headers-columns/ */

.sticky-wrap {
    overflow-x: scroll;
    overflow-y: visible;
    position: relative;
    margin-bottom: 1.5em;
    width: 100%;
}

    .sticky-wrap .sticky-thead,
    .sticky-wrap .sticky-col,
    .sticky-wrap .sticky-intersect {
        opacity: 0;
        position: absolute;
        top: 0;
        left: 0;
        transition: all .125s ease-in-out;
        z-index: 50;
        width: auto; /* Prevent table from stretching to full size */
        border-collapse: collapse;
    }

    .sticky-wrap .sticky-thead {
        box-shadow: 0 0.25em 0.1em -0.1em rgba(0,0,0,.125);
        z-index: 100;
        width: 100%; /* Force stretch */
    }

    .sticky-wrap .sticky-intersect {
        opacity: 1;
        z-index: 150;
    }

        .sticky-wrap .sticky-intersect th {
            background-color: #b4b4b4;
            color: #fff;
            min-width: 0px !important;
        }

    /* this must be same as .specSheetchart tbody tr td  in products.css */
    .sticky-wrap td, .sticky-wrap th {
        box-sizing: border-box;
        vertical-align: middle;
        padding: 10px 10px;
        color: #111111;
        border: 1px solid #e0e0e0;
        text-align: center;
    }

.sticky-col td, .sticky-col th, .sticky-intersect th {
    vertical-align: middle;
    padding: 10px 10px;
    color: #111111;
    border: 1px solid #e0e0e0;
    min-width: 0px !important;
}

.sticky-thead th:last-child {
    min-width: 160px !important;
}
