.media-manager {
    position: relative;
    padding: 10px;
}

.manager-controls {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: #f1f1f1;
    padding: 10px;
    margin-bottom: 10px;
}

.btn-add-folder {
    position: relative;
    margin-left: 10px;
}

.btn-add-folder .fa-folder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 26px;
    line-height: 1;
    color: #f1da36;
}

.btn-add-folder .fa-plus {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}


.manager-content {
    display: flex;
}

.manager-content > *{
    flex: 1 100%;
}

.file-info {
    display: none;
    width: 300px;
    max-width: 300px;
    background: #f8f8f8;
    padding: 10px;
}

.file-info dd {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-uploader {
    width: 300px;
    max-width: 300px;
}

.files-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    align-content: flex-start;
    flex: 2 0px;
    padding: 0 10px;
}

.file {
    position: relative;
    cursor: pointer;
    width: 160px;
    margin: 0 5px 5px;
    border: 1px solid #f0f0f0;
    padding: 5px;
}

.file_select {
    background-color: #f7ff79;
}

.file__tumb {
    position: relative;
    height: 110px;
    overflow: hidden;
}

.file__tumb img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 110px;
}

.file__tumb .fa {
    font-size: 30px;
    color: #333;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.file__name {
    padding: 0 3px;
    text-align: center;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file__icon {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #e2e2e2;
    line-height: 1;
}

/*****************/

.folder-tree {
    width: 240px;
    max-width: 240px;
}

.folder-tree__ul {
    padding: 0;
    list-style: none;
}

.folder-tree__ul_children {
    display: none;
    padding-left: 20px;
}

.folder-tree__item {
    position: relative;
    cursor: pointer;
    color: #333;
    font-size: 14px;
}

.folder-tree__item:before {
    font-family: 'FontAwesome';
    padding-right: 5px;
    color: #f1da36;
}

.folder-tree__item:before {
    content: "\f07b";
}

.folder-tree__item_open:before {
    content: "\f07c";
}

.folder-tree__item_home:before {
    content: "\f015";
    color: #0c7cd5;
}


.folder-tree__item_open > .folder-tree__ul_children {
    display: block;
}

.folder-tree__item_active {
    font-weight: 700;
}

.folder-tree__item_active:before {
    color: #d58646;
}

.folder-tree__item_active > .folder-tree__ul_children {
    font-weight: 400;
}

.folder-tree__ul-children-num {
    position: absolute;
    width: 10px;
    height: 10px;
    top: 0;
    left: -5px;
    background-color: #0c7cd5;
    color: #fff;
    line-height: 1;
    border-radius: 50%;
    font-size: 7px;
}

.folder-tree__ul-children-num span {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/*************************/

.mm-modal-wrap {
    display: flex;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, .5);
}

.mm-modal {
    border-radius: 5px;
    background-color: #fff;
    padding: 20px;
    margin: auto;
    z-index: 9999;
}

.qq-upload-list-selector {
    overflow: hidden;
}

.qq-upload-list-selector .qq-upload-file {
    width: auto;
}

.qq-upload-list-selector li {
    display: flex;
    font-size: 12px;
}

.qq-upload-list-selector .qq-thumbnail-wrapper {
    height: 42px;
    margin-right: 5px;
}

.qq-upload-list-selector .qq-thumbnail-wrapper img {
    height: 100%;
}

/*********************************************/

.media-manager-modal .modal-dialog {
    width: 96%;
}

.media-manager-modal .modal-header {
    text-align: right;
    padding-bottom: 0;
}

.media-manager-modal .modal-body {
    padding-top: 3px;
}

.media-manager-modal .btn-get-files {
    display: none;
    min-width: 120px;
}
