.error-bubble {
    padding: 20px;
    background: #EF5F5F;
    color: #fff;
    font-weight: bold;
    border-radius: 5px;
}
.error-bubble .title {
    font-size: 1.5em;
    line-height: 2em;
}
.breadcrumb {
    margin-left: 0px;
    margin-bottom: 25px;
    margin-top: -5px;
    font-size: 1.5em;
    font-weight: bold;
    color: #999;
}
.breadcrumb i {
    margin-left: 5px;
    margin-right: 5px;
}


/* #region  File upload section */
#fileupload .fileinput-button i {
    margin-right: 7px;
    margin-left: -3px;
}
#fileupload .progress {
    border: 1px solid #ddd;
    background: #fff;
}
#fileupload .file-uploaded  {
    color: green;
}
#fileupload button.start  {
    min-width: 103px;
}
#fileupload .fileupload-buttonbar {
    margin-top: 5px;
}
#fileupload .drag-drop-label {
    color: #999;
    font-size: 0.8em;
}
#fileupload .fileupload-progress {
    display: none;
}
#fileupload .fileupload-progress.fade.in {
    display: inline-block;
    margin-top: 25px;
    margin-bottom: 25px;
    text-align: center;
}
#fileupload .template-download .preview img {
    max-width: 60px;
    max-height: 60px;
}
#fileupload .actions {
    padding: 0px;
    margin-bottom: 0px;
    display: inline-block;
}
#fileupload .actions .btn {
    padding-top: 9px;
    padding-bottom: 9px;
    opacity: 0.9;
}
#fileupload .btn-link:focus {
    background: #fff;
}
#fileupload .btn:hover,
#fileupload .btn:focus,
#fileupload .btn:active {
    text-decoration: none;
}
.actions > .btn.old-images {
    display: none;
}

#fileupload .tool-bar .btn.selected {
    border-radius: 0px;
    background: #ddd;
}
#fileupload .item-select-all {
    padding: 9px;
    padding-bottom: 0px;
    margin-right: 10px;
    margin-bottom: 0px;
}
#fileupload .item-select-all label {
    margin-bottom: 0px !important;
}
#fileupload .item-select-all strong {
    opacity: 0.9;
    color: #fe5621 !important;
}
#fileupload .tool-bar .btn.latest {
    display: none;
}
#fileupload .tool-bar .btn.my-files {
    display: none;
}
#fileupload .for-popup {
    display: none;
}
/* #endregion */


/* #region  Gallery view */
.file-manager {
    -webkit-touch-callout: none;
      -webkit-user-select: none;
       -khtml-user-select: none;
         -moz-user-select: none;
          -ms-user-select: none;
              user-select: none;
    display: inline-block;
    background: #fafafa;
    border: 1px solid #eee;
    margin: 0px;
    margin-top: 10px;
    width: 100%;
}
.file-manager * {
    -webkit-transition: all 0.15s ease-out !important;
    -moz-transition:    all 0.15s ease-out !important;
    -ms-transition:     all 0.15s ease-out !important;
    -o-transition:      all 0.15s ease-out !important;
}
.file-manager.gallery-view {
    min-height: 400px;
}
.file-manager .fm-cell {
    display: inline-block;
    overflow: hidden;
    padding: 1px;
    float: left;
    text-align: center;
}
.file-manager a.thumb-box {
    display: inline-block;
}
.file-manager .file img {
    cursor: pointer;
}
.file-manager .file:hover img {
    filter: saturate(140%) brightness(110%) contrast(105%);
}
.file-manager .file .short-info {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: rgba(0,0,0,0.2);
    color: #eee;
    font-size: 10px;
    padding: 0px 2px;
    font-weight: bold;
}
.file-manager .file img {
    width: 100%;
}

.file-manager .fm-cell.folder {
    padding-bottom: 5px;
}
.file-manager .fm-cell.folder:hover {
    background: #ddd;
}
.file-manager .fm-cell.folder .system-folder-badge {
    position: absolute;
    left: 0px;
    top: 0px;
    background: #aaa;
    padding: 3px 5px;
    color: #fff;
}
.file-manager .fm-cell.folder .system-folder-badge i {
    color: #fff;
    font-size: 15px;
}
.file-manager .folder .text {
    padding-left: 5px;
    padding-right: 5px;
    min-height: 40px;
    display: inline-block;
}
.file-manager .folder:hover {
    filter: saturate(130%) brightness(105%) contrast(103%);
}
.file-manager .folder .wrap-image {
    display: inline-block;
    position: relative;
}
.file-manager .folder .count-badge {
    background: #eee;
    position: absolute;
    right: 31%;
    /* top: 37%; */
    bottom: 17%;;
    padding: 1px 5px;
    border-radius: 5px;
    font-size: 0.8em;
    font-weight: bold;
    border: 1px solid #ddd;
    color: #999;
}
.file-manager .folder img {
    width: 49%;
}
.file-manager .folder .fa {
    color: #eba133;
    opacity: 0.8;
    font-size: 12rem;
    font-size: 10rem;
}
.file-manager .folder a {
    color: #888;
    font-size: 1em;
}
.file-manager .folder a:hover {
    color: #eba133;
}
.file-manager .folder a:hover i.fa {
    opacity: 1;
}
.file-manager .empty-folder {
    text-align: center;
    color: #999;
    margin: 3rem;
    margin-top: 8rem;
    margin-bottom: 8rem;
    font-size: 5rem;
}
.file-manager .empty-folder h2 {
    font-weight: bold;
    color: #999;
    font-size: 2.5rem;
    margin-top: 0px;
    margin-bottom: 0px;
}
.file-manager .moving {
    opacity: 0.3;
}
.file-manager .new {
    color: #8ac249;
    font-weight: bold;
}
.file-manager .btn.load-more {
    font-size: 1.25em;
    background: #aaa !important;
    border-color: #bbb !important;
    color: #fff !important;
    padding: 15px 30px;
    margin-top: 50px;
    margin-bottom: 40px;
}
.file-manager .btn.load-more:hover {
    background: #999 !important;
    border-color: #aaa !important;
}
.file-manager .btn.load-more:active {
    background: #888 !important;
    border-color: #999 !important;
}
.file-manager .item-select {
    display: none;
    position: absolute;
    bottom: 23px;
    left: 10px;
    z-index: 1000;
    background: #fff;
}
.file-manager .item-select.item-select-read-only {
    background: #aaa;
    color: #fff;
    font-size: 13px;
    padding: 2px 5px;
    position: absolute;
    bottom: 1px;
    left: 1px;
}
.file-manager.show-selection .item-select {
    display: inline-block;
}
.file-manager .item-select .checkboxes input[type=checkbox]+span:before {
    width: 38px;
    height: 38px;
    font-size: 3.2rem;
    background: #fff;
    border-radius: 3px;
    line-height: 36px;
    border: 1px solid #d5d6dc;
}
/* #endregion */


/* NOTE: keep for now, if we decide to use switch list/gallery */
/* #region  List View */
/* .file-manager.list-view {
    width: 100%;
    background: #fff;
}
.file-manager.list-view .head {
    background: #fafafa;
    font-size: 1.3em;
    color: #999;
}
.file-manager.list-view .name img.preview {
    height: 70px;
    width: 70px;
}
.file-manager.list-view .name .preview {
    margin-right: 25px;
}
.file-manager.list-view .item-select {
    text-align: center;
    padding-left: 25px;
    padding-right: 3px;
}
.file-manager.list-view td.item-select {
    padding-top: 20px;
    width: 75px;
}
.file-manager.list-view .item-select .checkboxes {
    display: inline-block;
}
.file-manager.list-view .checkboxes input[type=checkbox]+span:before {
    background: #fff;
}
.file-manager table.file-list {
    border: 1px solid #eee;
}
.file-manager.list-view .name {
    text-align: left;
    padding: 5px 15px;
    min-height: 50px;

    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.file-manager.list-view .name img {
    height: 70px !important;
}
.file-manager.list-view .name  .preview {
    margin-right: 25px;
    float: left;
}
.file-manager.list-view .name .text {
    margin-top: 21px;
    display: inline-block;
}
.file-manager.list-view .new {
    color: #8ac249;
    font-weight: bold;
}
.file-manager.list-view .folder a {
    color: #666666;
    display: inline-block;
    height: 100%;
    margin-left: 10px;
}
.file-manager.list-view .folder a:hover {
    color: #eba133;
}
.file-manager.list-view .folder i.fa {
    font-size: 5.2rem;
    color: #eba133;
    opacity: 0.8;
    padding-top: 5px;
}
.file-manager.list-view .folder a:hover i.fa {
    opacity: 1;
} */
/* #endregion */


/* #region  FM Popup */
.fm-popup-dialog .jconfirm-content-pane {
    margin-bottom: 10px !important;
}
.fm-popup-dialog .jconfirm-content {
    padding-bottom: 0px;
}
.fm-popup-dialog .jconfirm-buttons  {
    position: absolute;
    top: 0px;
    right: 0px;
}
.fm-popup-dialog .jconfirm-buttons .btn.cancel {
    position: absolute;
    top: -12px;
    right: -12px;
    background: #fff !important;
    border: 0px !important;
    font-size: 1.6em !important;
    color: #999 !important;
}
.fm-popup-dialog .jconfirm-buttons .btn.cancel:hover {
    color: #777 !important;
}
.fm-popup .actions > .btn {
    display: none;
}
.fm-popup .actions > .btn.old-images,
.fm-popup .actions > .btn.new-folder {
    display: inline-block;
}
.fm-popup .file-manager {
    max-height: 550px !important;
    overflow-y: scroll;
}
.fm-popup .breadcrumb {
    margin-top: -30px;
    margin-bottom: 15px;
    padding: 8px 20px;
    font-size: 1.6em;
    text-align: center;
}
.fm-popup #fileupload .tool-bar .btn.latest,
.fm-popup #fileupload .tool-bar .btn.my-files {
    display: inline-block;
}
.fm-popup #fileupload .main {
    display: none;
}
.fm-popup #fileupload .for-popup {
    display: inline-block;
}

.fm-selection {
    display: inline-block;
    margin: 10px 25px;
    position: relative;
 }
.fm-selection img {
    padding: 3px;
    border: 3px solid #ddd;
    border-radius: 5px;
    max-height: 170px;
}
.fm-selection .remove-btn {
    position: absolute;
    font-size: 1.4em;
    padding: 5px 7px;
    right: -12px;
    top: -12px;
    border-radius: 100%;
    border: 1px solid #ddd;
    color: #999;
    background: #eee;
}
.fm-selection .remove-btn:hover {
    cursor: pointer;
    background: #ddd;
    border: 1px solid #ccc;
}

/* #endregion */


/*
// Old stuff for the first version
.fm-popup .file-manager .item-select {
    display: none;
}
.fm-popup .file-manager .file-list tr.file.selected,
.fm-popup .file-manager .file-list tr.file:hover {
    background: #eee;
    cursor: default;
}
.fm-popup .file-manager table td {
    padding-top: 4px;
    padding-bottom: 4px;
}
.fm-popup .file-manager .name .text {
    margin-top: 23px;
}
.fm-popup .file-manager .folder .name .text {
    margin-top: 18px;
}
.fm-popup .file-manager td {
    text-align: left;
    padding: 7px 10px !important;
}
.fm-popup .file-manager th {
    padding: 7px 10px !important;
    font-size: 0.9em;
}
.fm-popup .file-manager td.text-right {
    text-align: right;
}
*/

.delete-forever-thumb {
    height: 80px !important;
    margin: 3px;
    border: 2px solid #ddd;
    border-radius: 5px;
    -webkit-transition: all 0.15s ease !important;
    -moz-transition:    all 0.15s ease !important;
    -ms-transition:     all 0.15s ease !important;
    -o-transition:      all 0.15s ease !important;
}
.delete-forever-thumb:hover {
    opacity: 0.6;
    border: 2px solid #aaa;
}


.blueimp-gallery .description .actions {
    margin-top: 10px;
}
.blueimp-gallery .description .actions .btn {
    margin-right: 5px;
    margin-bottom: 10px;
}
.blueimp-gallery .description .actions .btn .fa {
    margin-left: 0px;
}



@media screen and (max-width: 1200px) {
    #fileupload .actions .btn {
        padding-left: 6px;
        padding-right: 6px;
    }
}

@media screen and (max-width: 767px) {
    #fileupload .actions .btn {
        /* padding-bottom: 5px; */
    }
    #fileupload .actions .btn {
        padding-bottom: 9px;
        margin-bottom: 0px;
    }

    .fileupload-buttonbar .fileinput-button  {
        margin-bottom: 0px;
        padding-bottom: 7px;
        margin-top: -3px;
    }
    .fm-popup-dialog .fileupload-buttonbar .fileinput-button  {
        margin-top: 0px;
        padding-bottom: 10px;
    }

    .fileupload-buttonbar .fileinput-button i {
        font-size: 18px;
        margin-right: -5px;
        margin-left: -5px;
    }
    .fm-popup-dialog #fileupload .fileinput-button i {
        margin-right: 7px;
        margin-left: -3px;
        font-size: 14px;
    }

    .fileupload-buttonbar .delete {
        display: inline-block !important;
    }
    .fm-popup-dialog .fileupload-buttonbar .delete {
        display: none !important;
    }
    .fm-popup-dialog .new-folder .folder-btn-label {
        display: inline-block !important;
    }
    .fm-popup-dialog .new-folder {
        padding-left: 14px !important;
        padding-right: 18px !important;
    }

    .fm-popup-dialog .actions {
        font-size: 11px;
        margin-top: 3px;
    }

    .fm-popup-dialog .fileinput-button {
        display: inline-block !important;
    }
    .fm-popup .breadcrumb {
        font-size: 1.4em;
        margin-top: -25px;
    }
}

@media screen and (max-width: 480px) {
    .fileupload-buttonbar .actions .btn.restore,
    .fileupload-buttonbar .actions .btn.delete-forever {
        font-size: 1em;
        margin-right: 10px;
        margin-left: 10px;
    }
    #fileupload .fileinput-button i {
        margin-right: 0px;
    }
    #fileupload .tool-bar {
        margin-top: -3px;
    }
    .file-manager .folder {
        font-size: 80%;
    }
    .file-manager .folder img {
        width: 38%;
    }
    .file-manager .folder .count-badge {
        font-size: 9px;
        right: 35%;
    }
    .file-manager .folder .text {
        min-height: 32px;
    }

    .jc-bs3-container.container-fluid {
        padding: 0px !important;
    }
    .fm-popup-dialog {
        padding: 0px !important;
    }
    .fm-popup-dialog .jconfirm-box {
        margin: 0px !important;
    }
    .fm-popup-dialog .file-manager .folder img {
        width: 35%;
    }
    .fm-popup-dialog .jconfirm-buttons {
        right: 10px;
    }

    #fileupload .item-select-all {
        margin-right: 0px;
        padding-left: 0px;
        padding-right: 6px;
    }
    #fileupload .item-select-all .checkboxes input[type=checkbox]+span {
        padding: 0 0 0 33px;
    }
    .file-manager .fm-cell.folder .system-folder-badge {
        padding: 1px 3px;
    }
    .file-manager .fm-cell.folder .system-folder-badge i {
        font-size: 11px;
    }
}
@media screen and (max-width: 360px) {
    .hidden-xxs {
        display: none !important;
    }
}
@media screen and (max-width: 320px) {
    .hidden-xxxs {
        display: none !important;
    }
    #fileupload .fileinput-button i {
        margin-right: 0px !important;
    }
}
