/*** Tabs ***/

.nd-tabs {
    position: relative;
    display: table;
    width: 100%;
    margin: 0.25em 0;
    border: 0;
    padding: 0;
    list-style: none;
    table-layout: fixed;
}

    #CompanyRow,
    .nd-tabs li {
        position: relative;
        display: table-cell !important;
        vertical-align: middle;
        padding: 0.75em 0.25em 0.75em;
        border: 1px solid #ccc;
        box-shadow: 0 8px 6px -6px #ddd;
        background: #f1f1f3;
        background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ffffff), color-stop(100%, #f1f1f3));
        background: -webkit-linear-gradient(top, #ffffff 0, #f1f1f3 100%);
        background: linear-gradient(top, #ffffff 0, #f1f1f3 100%);
        color: #3b5998;
    }

        .nd-tabs li:not(:first-child) {
            border-left: 0;
        }

#CompanyRow {
    display: table !important;
    width: 100%;
    padding-left: 1em;
}

.nd-tabs li.ndw-tab-current {
    border: 2px solid #3b5998;
}

.nd-tabs li:not(.disabled):hover {
    background: #d2f2ff;
    color: #0040b5;
}

.nd-tabs li:not(.disabled):active {
    background: #ade1f5;
    color: #3b5998;
}

.nd-tabs li.disabled,
.nd-tabs li.disabled span,
.nd-tabs li.disabled h1,
.nd-tabs li.disabled h2 {
    color: lightgray;
}

.nd-tabs li a {
    position: relative;
    display: block;
    width: 100%;
    min-height: 100%;
    color: #002e5d;
    font-size: 1rem;
}

.nd-tabs li h1,
.nd-tabs li h2,
.nd-tabs li span {
    display: block;
    margin: 0;
    padding: 0;
    font-weight: normal;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.nd-tabs li,
.nd-tabs li h1,
.nd-tabs li h2,
.nd-tabs li span {
    text-align: center;
    font-size: 1rem;
    color: #002e5d;
}

.nd-tabs.nd-tabs-no-icons li h1,
.nd-tabs.nd-tabs-no-icons li h2,
.nd-tabs.nd-tabs-no-icons li span {
    font-size: 1rem;
}

.nd-tabs li span em {
    margin-left: 0.25em;
    font-style: normal;
}

.nd-tabs li .icn {
    font-weight: 700;
    font-size: 1.75rem;
}

.nd-tab-content {
    z-index: 0;
}

@media only screen and (max-width: 480px) {
    .nd-tabs li {
        position: relative;
        overflow: hidden;
    }

        .nd-tabs li,
        .nd-tabs li h1,
        .nd-tabs li h2,
        .nd-tabs li span {
            font-size: 1.5rem;
        }

            .nd-tabs li a {
                position: absolute;
                display: table;
                overflow: hidden;
                width: 100%;
                height: 100%;
                top: 0;
                bottom: 0;
                left: 0;
                right: 0;
                min-height: 100%;
                top: 50%;
                -webkit-transform: translate(0,-50%);
                transform: translate(0,-50%);
            }

                .nd-tabs li a span {
                    display: table-cell;
                    vertical-align: middle;
                    white-space: inherit;
                }

                    .nd-tabs li a span em {
                        display: block;
                        margin-left: 0;
                        font-size: 0.75rem;
                    }
}

@media only screen and (min-width: 481px) {
    .nd-tabs li {
        padding: 0;
        white-space: normal;
        font-size: 0;
    }

        .nd-tabs li:not(:first-child) {
            margin-left: 0.25em;
        }

        .nd-tabs li a,
        .nd-tabs li h1,
        .nd-tabs li h2,
        .nd-tabs li span {
            position: relative;
            display: block;
            width: 100%;
            min-height: 100%;
        }

        .nd-tabs li h1,
        .nd-tabs li h2 {
            padding-right: 1.125rem;
            padding-left: 1.125rem;
        }

        .nd-tabs li.disabled,
        .nd-tabs li :not(a) > span,
        .nd-tabs li a,
        .nd-tabs li h1,
        .nd-tabs li h2 {
            padding: 0.75em 1.125rem 0.75em;
        }

        .nd-tabs li .icn {
            font-size: 1.875em;
        }
}

@media only screen and (max-width: 640px) {
    #CompanyRow,
    .nd-tabs li {
        padding: 1.25em 0.25em 1.25em !important;
    }
}
