/* ============================================================================
   Milton select container
   ============================================================================ */
.milton-file-select-container {
    height: 480px;
}

.milton-file-select-container > .row,
.milton-file-select-container > .row > div {
    height: 100%;
}

.milton-file-select-container .milton-btn-upload-file,
.milton-file-select-container .milton-btn-upload-asset {
    float: left;
    margin-right: 5px;
}

.milton-file-select-container .btn-ok {
    float: right;
}

.milton-file-select-container .dropzone-previews {
    display: none !important;
}

.milton-file-select-container .milton-file-preview-wrapper {
    position: relative;
    height: 100%;
}

.milton-file-select-container .milton-file-progress {
    position: absolute;
    top: 45px;
    left: 0px;
    right: 0px;
    z-index: 1;
}

.milton-file-select-container .milton-file-preview {
    position: absolute;
    border-radius: 0;
    margin: 0;
    overflow: auto !important;
    position: absolute;
    top: 45px;
    left: 0px;
    right: 0px;
    bottom: 0;
    height: auto !important;
    box-shadow: none;
}

/* ============================================================================
   Milton tree
   ============================================================================ */
.milton-tree-wrapper .mtree-wrapper {
    height: 100%;
}

.milton-file-select-container .milton-tree-wrapper {
    position: relative;
    height: 100%;
}

.milton-file-select-container .mtree {
    overflow: auto !important;
    position: absolute;
    top: 45px;
    left: 0;
    right: 0;
    bottom: 0;
    height: auto !important;
}

.milton-tree-wrapper .mtree-wrapper .tab-content {
    top: 83px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
}

.milton-file-select-container .milton-tree-wrapper .mtree-wrapper .tab-content .mtree {
    top: 0;
    border: 0;
}

.milton-file-select-container .milton-tree-wrapper .mtree-wrapper .tab-content .mtree-assets {
    top: 0;
    border: 0;
}

/* ============================================================================
   Milton modal
   ============================================================================ */
.modal.modal-mselect {
    padding: 0 !important;
}

.modal.modal-mselect * {
    box-sizing: border-box;
}

.modal.modal-mselect .modal-dialog {
    margin: 0;
    width: 100%;
    height: 100%;
}

.modal.modal-mselect .modal-dialog .modal-content {
    border-radius: 0 !important;
    height: 100%;
    border: 0 !important;
}

.modal.modal-mselect .modal-dialog .modal-content .milton-file-select-container {
    height: 100%;
}

.modal.modal-mselect .modal-dialog .modal-content .modal-body {
    height: calc(100% - 56px - 61px);
    overflow: auto;
}

.modal.modal-mselect.modal-no-footer .modal-dialog .modal-content .modal-body {
    height: calc(100% - 56px);
}

.modal.modal-mselect .modal-dialog .modal-content .modal-footer {
    border-radius: 0 !important;
}