.content-bank-container {
    .cb-navbar-totalsearch {
        font-size: $font-size-xs;
    }
    
    .cb-content-wrapper {
        background-color: $body-bg;
        padding: 0.5rem;
        min-height: 110px;
        max-height: 500px;
        overflow-x: auto;
        flex-wrap: wrap;
    }
    .cb-thumbnail {
        width: 24px;
        height: 24px;
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
    }
    &.view-grid {
        .cb-listitem {
            margin-bottom: 0.5rem;
        }

        @include media-breakpoint-down(sm) {
            .cb-listitem {
                flex-basis: 50%;
            }
        }

        @include media-breakpoint-up(sm) {
            .cb-listitem {
                max-width: 120px;
                min-width: 120px;
            }
        }

        .cb-name {
            font-size: $font-size-xs;
            text-align: center;
        }
        .cb-file {
            padding: 0.5rem;
        }
        .cb-thumbnail {
            width: 64px;
            height: 64px;
            margin-left: auto;
            margin-right: auto;
            margin-bottom: 0.5rem;
        }
        .cb-heading,
        .cb-date,
        .cb-size,
        .cb-type {
            display: none;
        }
    }

    &.view-list {
        .cb-content-wrapper {
            padding: 0 0.5rem;
            flex-direction: column;
            flex-wrap: nowrap;
        }

        .cb-thumbnail {
            margin-right: 0.5rem;
        }

        .cb-listitem,
        .cb-heading {
            display: flex;
            flex-wrap: wrap;
            width: 100%;
            border-bottom: $border-width solid $border-color;
        }

        .cb-column {
            display: flex;
            padding: 0.25rem;
            align-items: center;
            font-size: $font-size-xs;

            .title {
                font-weight: $font-weight-sm-bold;
            }
        }

        .cb-column {
            border-right: $border-width solid $border-color;
        }

        @include media-breakpoint-down(sm) {
            .cb-column {
                flex: 0 0 50%;
                max-width: 50%;
            }
        }

        @include media-breakpoint-up(sm) {
            .cb-heading {
                position: sticky;
                top: 0;
                z-index: 1;
            }

            .cb-file,
            .cb-date {
                flex: 0 0 35%;
                max-width: 35%;
            }
            .cb-size,
            .cb-type {
                flex: 0 0 15%;
                max-width: 15%;
            }
            .cb-column.last {
                border-right: 0;
            }
        }

        .cb-btnsort {
            span {
                display: none;
            }
            &.dir-none .default,
            &.dir-asc .asc,
            &.dir-desc .desc {
                display: block;
            }
        }
    }
}

.cb-toolbar-container .dropdown-scrollable {
    max-height: 190px;
    overflow-y: auto;

    .os-scrollbar-handle {
        background: rgba($dropdown-text,.6)
    }
}
