/* Таблица стилей к главной странице */

.btn.btn-primary.save-folders
    {
    display: block;
    position: absolute;
    bottom: 4px;
    width: 112px;
    }

.b-list {
    padding: 4px;
    width: 135px;
    height: calc(100vh - 40px);
    background-color: #F8F9FA;
}

.b-list_folders {
    display: none;
    margin: 8px 0 4px 0;
    height: calc(100vh - 140px);
    overflow-y:auto;
}

.b-list_folders-item
    {
    position: relative;
    margin-bottom: 2px;
    background-color: #E6E7E8;
    cursor: pointer;
    }
    
    
    .b-list_folders-item b
        {
        position: absolute;
        right: 0;
        width: 16px;
        font-size: 12px;
        line-height: 22px;
        color: #fff;
        background-color: #009444;
        text-align: center;
        }
    
    .b-list_folders-item.active
        {
        font-weight: bold;
        color: #333 !important;
        background-color: #C9CACB;
        }
        
        .b-list_folders-item.active b
            {
            font-weight: bold;
            }
        
    /*.b-list_folders.new .b-list_folders-item.viewed*/
    .b-list_folders-item.viewed 
        {
        color: #9FA0A0;
        }

.b-preview
    {
    padding: 0px;
    height: calc(100vh - 40px);
    background-color: #303030;
    overflow:auto;
    }
    
    .b-preview_inner
        {
        display: none;
        height: 100%;
        }
        
        .b-preview_inner.active
            {
            display: block;
            }
    
    .b-loading {
        display: none;
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        background-image: url(../img/loading.gif);
        background-position: center center;
        background-repeat: no-repeat;
        background-color: #303030;
        z-index: 9999;
    }
    
    .b-folder-content
        {
        height: 100%;
        }
    
        .b-folder-content .sorted,
        .b-folder-content .not-sorted
            {
            margin: 0;
            }
        
.b-foto-double
    {
    padding: 0;
    }

    /*    
    .b-foto-double.pair.last-pair
        {
        margin-right: 50px;
        }
        
    .b-foto-double:last-child
        {
        margin-right: 50px;
        }
        
    .b-foto-double.last-pair
        {
        margin-right: 0;
        }
    */
    
    .b-foto-double.pair.last-pair
        {
        margin-right: 50px;
        }
        
    .b-foto-double:first-child
        {
        margin-left: 50px;
        }
        
    .b-foto-double.first-pair
        {
        margin-left: 0;
        }
    
    
.b-foto {
    padding: 4px;
    
}

    .b-foto_inner {
        position: relative;
        border-radius: 4px;
        overflow: hidden;
        cursor: pointer;
        height: 450px;
    }
    
    .b-foto_inner-emul
        {
        height: 450px;
        }

        .b-foto_inner.single-row
            {
            height: auto;
            }
        
        .b-folder-content.has-selected .b-foto_inner.paired {
            cursor: default;
            opacity: 0.5;
        }
        
        .b-foto_img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }
        
        .b-foto_border
            {
            position: absolute;
            top: 0;
            height: 100%;
            width: 100%;
            border: 1px solid #8D9094;
            border-radius: 4px;
            }
            
            .b-foto_inner.selected .b-foto_border
                {
                border-width: 4px;
                }
        
        .b-foto_number {
            display: none;
            position: absolute;
            top: 6px;
            left: 6px;
            height: 20px;
            width: 20px;
            color: #FFF;
            text-align: center;
            background-color: #0069d9;
            border-radius: 4px;
        }
    
        .b-foto_inner.selected .b-foto_number {
            display: block;
        }
            