/* ----------------------------------------------------------------------------------------------- data-sheets © evomedien, 2022*/

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

table#datasheets {
    border-spacing: 0px;
    margin-top: 2rem;
    position: relative;
}

table#datasheets th,
table#datasheets td {
    vertical-align: middle;
    padding: 0.5rem;
    font-size: 12px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

table#datasheets small {
    white-space: nowrap;
}

table#datasheets .fancySearchRow {
    position: absolute;
    top: -2.5rem;
    right: 0;
}

table#datasheets .fancySearchRow th {
    border: 0 none;
}

table#datasheets .fancySearchRow input {
    padding: 0.25rem 0.75rem;
    border-radius: 5rem;
    border: 1px solid #ddd;
}

table#datasheets td.td-bold {
    font-weight: bold;
    white-space: nowrap;
    padding-right: 1rem;
}

table#datasheets .short-desc {
    display: none;
}

table#datasheets td a {
    color: var(--vtblue);
}

table#datasheets td i {
    color: var(--vtorange);
}

table#datasheets td a.btn-fav {
    cursor: pointer;
    text-decoration: none;
}

table#datasheets tr td a.btn-fav .fav {
    display: none;
}

table#datasheets tr.favorite td a.btn-fav .fav {
    display: inline;
}

table#datasheets tr.favorite td a.btn-fav .nofav {
    display: none;
}

table#datasheets td a.btn-fav span {
    text-indent: -999px;
    display: inline-block;
}

#datasheet-favorites h5 {
    background: var(--vtorange);
    color: #fff;
    padding: 0.75rem;
    margin: -1.875rem -1.25rem;
}

#datasheet-favorites {
    background: var(--vtlightgray);
    bottom: 0;
    box-sizing: border-box;
    max-width: 15rem;
    overflow: visible;
    position: fixed;
    right: 0;
    top: 0;
    transform: translateX(0);
    transition: transform 0.5s ease-in-out;
    width: 100%;
    z-index: 100002;
}

#datasheet-favorites.is-hidden {
    transform: translateX(100%);
}

#datasheet-favorites>div {
    background: #fff;
    box-shadow: 0 0 0.8125rem 0 rgb(0 0 0 / 15%);
    display: flex;
    flex-direction: column;
    height: 100vh;
    margin-left: auto;
    overflow: hidden;
    padding: 1.875rem 1.25rem;
    position: relative;
    width: 100%;
}

#datasheet-favorites .favorites-list {
    overflow: auto;
    height: 90%;
}

#datasheet-favorites .favorites-list .card {
    font-size: 12px;
    margin-bottom: 0.5rem;
    animation: fadeIn 0.5s;
}

#datasheet-favorites .favorites-list .card .card-body {
    padding: 0.5rem;
    position: relative;
}

#datasheet-favorites .favorites-list .card .card-body a.remove-fav {
    position: absolute;
    top: -4px;
    right: -1px;
    cursor: pointer;
}

#datasheet-favorites .favorites-list span.short-desc {
    display: none;
}

#datasheet-favorites .favorites-list span.product,
#datasheet-favorites .favorites-list span.collateral {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#datasheet-favorites .favorites-list+.row>div {
    display: flex;
    align-items: flex-end;
}

#datasheet-favorites a.btn-clear {
    padding: 0.1rem 0.5rem;
    cursor: pointer;
    border-radius: 2rem;
    font-size: 11px;
}

#datasheet-favorites a.btn-download {
    padding: 0.25rem 0.5rem;
    width: 100%;
}

@media (max-width: 1600px) {

    .datasheets .hero-content .frame>p:nth-child(3),
    .datasheets .hero-content .frame>p:nth-child(4) {
        display: none;
    }

    .datasheets .hero-content .frame>p:nth-child(2) {
        transform: translateY(-2rem);
    }

    .datasheets .hero--padding .hero-content {
        padding: 5rem 1.5rem 0;
        height: 170px;
    }

    #datasheet-favorites {
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        height: 33vh;
        max-width: 100vw;
        transform: translateY(0);
    }

    #datasheet-favorites.is-hidden {
        transform: translateY(100%);
    }

    #datasheet-favorites>div {
        height: 100%;
        width: 100vw;
    }

    table#datasheets td a.btn-fav {
        height: 25px;
        display: block;
    }

    #datasheet-favorites a.btn-clear {
        padding: 0.25rem 0.5rem;
    }

    #datasheet-favorites a.btn {
        width: auto;
        margin-top: 2rem !important;
    }

    #datasheet-favorites .favorites-list {
        display: flex;
        flex-wrap: wrap;
        align-content: flex-start;
    }

    #datasheet-favorites .favorites-list .card {
        flex: 0 0 18.5%;
        height: 55px;
        margin: 5px;
    }

    #datasheet-favorites>div>div.row {
        box-shadow: 1px -11px 12px -5px rgba(0, 0, 0, 0.05);
        position: relative;
        z-index: 9;
    }
}

@media (max-width: 767px) {
    #datasheet-favorites a.btn-clear {
        font-size: 1em;
    }

    #datasheet-favorites a.btn {
        margin-top: 1rem !important;
    }

    #datasheet-favorites .favorites-list+.row>div {
        align-items: normal;
    }

    #datasheet-favorites {
        height: 28vh;
    }

    .datasheets .hero--padding .hero-content {
        padding: 1rem 1.5rem 0;
        height: auto;
    }

    .datasheets .breadcrumb-section,
    .datasheets .hero-content .frame>p:nth-child(2),
    /* table#datasheets .long-desc, */
    table#datasheets tr>th:nth-child(2),
    table#datasheets tr>th:nth-child(3),
    table#datasheets tr>td:nth-child(2),
    table#datasheets tr>td:nth-child(3) {
        display: none;
    }

    table#datasheets .long-desc {
        font-weight: bold;
    }

    table#datasheets .long-desc::before {
        content: "\f019";
        /* Font Awesome Download Icon */
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        /* Required for solid icons */
        margin-right: 8px;
        /* Adds some space between the icon and the text */
    }

    table#datasheets .short-desc {
        display: block;
        background: var(--vtblue);
        padding: 0.5rem 1rem;
        color: #fff;
        text-align: center;
        text-transform: uppercase;
        margin: 0.1rem 0;
        font-size: 0.75em;
        /* --- */
        display: none !important
    }

    table#datasheets {
        margin-top: 3rem;
    }

    #datasheet-favorites .favorites-list .card {
        flex: 0 0 45%;
        height: 55px;
        margin: 5px;
    }
}