﻿/*-------------------
      Base Sizes
--------------------*/
/* This is the single variable that controls them all */
/* The size of page text  */
/*-------------------
     Transitions
--------------------*/
@media (max-width: 991.98px) {
    .table-wrap-md > tbody > tr > td > span, .table-wrap-md > tr > td > span {
        color: #212529;
    }

    .table-wrap-md > tbody > tr > td:before, .table-wrap-md > tr > td:before {
        color: #6c757d;
    }
}

.nav-tabs {
    border: 1px solid #dee2e6;
    border-bottom: 0;
}

@media (max-width: 767px) {
    .tab-content > .tab-pane {
        display: block;
    }

        .tab-content > .tab-pane .table tbody tr:nth-of-type(odd) {
            background-color: #f8f9fa;
        }

        .tab-content > .tab-pane.fade {
            opacity: 1;
        }
}

@media (min-width: 576px) {
    .exclude-package {
        background: rgba(0, 0, 0, 0.05);
    }

    .td-norm {
        line-height: 1.5 !important;
    }

        .td-norm em {
            font-style: normal;
        }

    .d-load-btn i {
        margin-left: 0.25rem;
    }

    table:not(.table-home) td:not(.accordian-head) {
        white-space: nowrap;
    }
}

@media only screen and (min-width: 767px) and (max-width: 1081px) {
    .accordian-head {
        min-width: 250px;
    }

    .tablet-scroll {
        position: relative;
        overflow: hidden;
        overflow-x: scroll;
        margin-right: -1rem;
    }

        .tablet-scroll.tablet-shadow {
            -webkit-box-shadow: 0px 2px 1px 1px #dee2e6;
            box-shadow: 0px 2px 1px 1px #dee2e6;
        }

    .slide-table {
        overflow: hidden;
        overflow-x: scroll;
        position: relative;
        padding-right: 1rem;
    }

        .slide-table td:last-child {
            position: relative;
        }

            .slide-table td:last-child:after {
                content: "";
                width: 1rem;
                height: 100%;
                background: white;
                position: absolute;
                right: -1rem;
                top: 0;
                display: block;
            }
}

@media (max-width: 767.98px) {
    table, thead, tbody, th, tr, td, .table-wrap-md th {
        display: block;
    }

    .table-wrap-md > tbody > tr:first-child {
        border-top: 0;
    }

    .table-wrap-md > tbody > tr > td > span:first-child:after {
        display: none;
    }

    .table-wrap-md > tbody > tr > td:first-child {
        padding-top: 0.3rem;
    }

    .table-wrap-md > tbody > tr > td.accordian-head:before {
        display: none;
    }

    table th {
        margin: 0;
    }

        table th th:first-child {
            width: 100% !important;
        }

        table th:not(:first-child) {
            display: none;
        }

    table tr {
        position: relative;
    }

        table tr.table-item {
            border-top: 0;
            overflow: hidden;
        }

        table tr.exclude-package {
            background: #fff;
        }

            table tr.exclude-package .item-name {
                background: rgba(0, 0, 0, 0.05);
            }

        table tr .accordian-head {
            padding: 0 !important;
            border: 0 !important;
        }

            table tr .accordian-head .item-name {
                display: -webkit-box;
                display: -ms-flexbox;
                display: flex;
                display: block;
            }

                table tr .accordian-head .item-name > div {
                    -webkit-box-flex: 1 !important;
                    -ms-flex: 1 1 auto !important;
                    flex: 1 1 auto !important;
                }

                    table tr .accordian-head .item-name > div.toggle-btn {
                        padding: 0.75rem;
                        padding-left: 2.25rem;
                    }

                        table tr .accordian-head .item-name > div.toggle-btn:after {
                            font-family: "Font Awesome 5 Pro";
                            padding-left: 1rem;
                            padding-right: 1rem;
                            -webkit-font-smoothing: antialiased;
                            transition: transform 0.1s ease, opacity 333ms ease, -webkit-transform 333ms ease;
                            position: absolute;
                            top: 0.65rem;
                            left: 0;
                            font-weight: 400;
                            content: "\f105";
                            font-size: 1.125rem;
                            -webkit-transform: rotate(90deg);
                            -ms-transform: rotate(90deg);
                            transform: rotate(90deg);
                        }

                        table tr .accordian-head .item-name > div.toggle-btn .toggle-name {
                            max-width: 90%;
                            display: block;
                        }

            table tr .accordian-head .item-desc {
                margin-bottom: 0.5rem;
                padding-left: 0.75rem;
                padding-right: 0.75rem;
            }

                table tr .accordian-head .item-desc a {
                    margin-bottom: 0.5rem;
                }

        table tr.open {
            padding-bottom: 1rem;
        }

            table tr.open .item-name {
                margin-bottom: 1rem;
                background: rgba(0, 0, 0, 0.025);
                -webkit-box-shadow: 0px 1px 2px 0 rgba(34, 36, 38, 0.15);
                box-shadow: 0px 1px 2px 0 rgba(34, 36, 38, 0.15);
            }

                table tr.open .item-name > div.toggle-btn:after {
                    -webkit-transform: rotate(-90deg);
                    -ms-transform: rotate(-90deg);
                    transform: rotate(-90deg);
                    color: #0069d9;
                }

            table tr.open .hide-td:not(.nest-wrap) {
                display: block;
            }

        table tr td {
            position: relative;
        }

            table tr td .hide-td, table tr td.hide-td {
                display: none;
                padding-bottom: 0 !important;
            }

            table tr td .d-load-btn, table tr td.d-load-btn {
                padding: 0.5rem 0;
                position: absolute;
                right: 0;
                top: 0;
                text-align: center;
            }

    table .nest-wrap {
        width: 100%;
        overflow-x: hidden;
        overflow-y: hidden;
    }

        table .nest-wrap.table-wrap-md > tbody > tr > td:before {
            display: block;
            float: none;
            min-height: 30px;
            color: #6c757d;
        }

        table .nest-wrap.table-wrap-md > tbody > tr > td:last-child:before {
            content: "";
        }

        table .nest-wrap .nest {
            position: relative;
        }

            table .nest-wrap .nest tr {
                display: -webkit-box;
                display: -ms-flexbox;
                display: flex;
            }

                table .nest-wrap .nest tr .td-norm {
                    margin-top: .5rem;
                    line-height: 2.25;
                    font-size: 0.88889rem;
                    white-space: nowrap;
                    padding: 0;
                }

                    table .nest-wrap .nest tr .td-norm em {
                        display: none;
                    }

                    table .nest-wrap .nest tr .td-norm:last-child:after {
                        content: "";
                        width: 15px;
                        height: 100%;
                        background: white;
                        position: absolute;
                        right: -16px;
                        top: 0;
                        display: block;
                    }

                    table .nest-wrap .nest tr .td-norm.has-attr:before {
                        display: block;
                    }

    table tr td.has-attr:before {
        content: attr(data-title) "";
        color: #6c757d;
        min-height: 1.7rem;
        margin-right: 0.5rem;
        float: none;
    }

    table tr td.has-attr:empty {
        display: none !important;
    }

    table tr td.has-attr.category:before {
        content: attr(data-title) "Product Category: ";
    }

    table tr td.has-attr.interface:before {
        content: attr(data-title) "Interface: ";
    }

    table tr td.has-attr.version:before {
        content: attr(data-title) "Version: ";
    }

    table tr td.has-attr.date:before {
        content: attr(data-title) "Date Posted: ";
    }

    table tr td.has-attr.driver:before {
        content: attr(data-title) "Driver: ";
    }

    table tr td.has-attr.comm:before {
        content: attr(data-title) "Comm Sheet: ";
    }

    table tr td.has-attr.certified:before {
        content: attr(data-title) "Certified: ";
    }

    .download-icon {
        background: #dee2e6;
        display: inline-block !important;
        height: 24px;
        width: 24px;
        margin: 4px 0;
        text-align: center;
        border-radius: 500rem;
        border: 4px solid #dee2e6;
        line-height: 24px;
    }

        .download-icon:after {
            padding-left: 0 !important;
            padding-right: 0 !important;
        }
}

td[colspan="18"]:before {
    content: '' !important;
}

table.table-drivers .empty-td, .table-drivers th:nth-child(even) {
    display: none !important;
}

.link-prev:before {
    padding-left: 0;
}

.popover {
    top: 4.65rem;
    display: none;
    max-width: 100%;
    z-index: 9;
}

.focused {
    border-color: #5aaaff;
    outline: 0;
    -webkit-box-shadow: 0 0 0 0.2rem rgba(0, 105, 217, 0.25);
    box-shadow: 0 0 0 0.2rem rgba(0, 105, 217, 0.25);
}
