.fileinput-button {
    position: relative;
    overflow: hidden;
    -webkit-transition: background-color 300ms;
    transition: background-color 300ms;
}

.fileinput-button input {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    opacity: 0;
    -ms-filter: "alpha(opacity=0)";
    font-size: 200px;
    direction: ltr;
    cursor: pointer;
}

#upload_progress {
    opacity: 0;
    display: none;
}

#upload_progress.show_progress {
    margin: 25px 0;
    display: block;
    opacity: 1;
    filter: alpha(opacity=100);
}

.multiupload .progress {
    margin: 0;
}

.multiupload .progress+.progress-extended {
    margin-top: 10px;
}

.table .upload_img,
.table .download_img {
    width: 88px;
}

.table .upload_img .img-thumbnail,
.table .download_img .img-thumbnail {
    max-height: 88px;
    min-height: 52px;
    min-width: 52px;
    height: auto;
    text-align: center;
}

.table .upload_img .img-thumbnail a,
.table .download_img .img-thumbnail a {
    display: block;
}

.table .upload_info p,
.table .download_info p {
    margin: 0;
}

.table .upload_info .name,
.table .download_info .name {
    font-size: 13px;
    font-weight: 700;
}

.table .upload_info .size,
.table .download_info .size {
    font-size: 11px;
    color: #999;
    margin-bottom: 8px;
}

.table .upload_info .alert,
.table .download_info .alert {
    padding: 7px 12px;
    font-size: 13px;
    margin-bottom: 0;
}

.table .upload_actions,
.table .download_actions {
    vertical-align: middle;
    text-align: center;
}

.template-upload tr,
.template-download tr {
    overflow: hidden;
}

.img-grid {
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
}

.img-grid li {
    position: relative;
    float: left;
    overflow: hidden;
    width: 16.66666667%;
    padding: 0 10px 10px 0;
}

.img-grid2 li {
    position: relative;
    float: left;
    overflow: hidden;
    width: 100%;
    padding: 0 10px 10px 0;
}

.img-grid li>a,
.img-grid li>a img {
    display: block;
    cursor: pointer;
    margin: 0;
}

.img-grid li .upload_img_single {
    width: 230px;
    max-width: 100%;
    height: auto;
    margin: 0;
    display: block;
    position: relative;
}

.img-grid li .upload_img_single canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

.img-grid li .upload_img_single img {
    max-width: 100%;
    height: auto;
    display: block;
}

.img-grid li .upload_img_single .upload_img_actions {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 5px;
    right: 5px;
    display: block;
    background: rgba(0, 0, 0, 0.5);
    padding: 30px 20px 20px;
}

.img-grid li .upload_img_single .upload_img_actions .upload_img_name {
    color: #fff;
    display: block;
    padding-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.img-grid li .upload_img_single .upload_img_actions .btn {
    border: none;
    margin: 2px;
    border-radius: 5px;
}

.img-grid li .upload_img_single .upload_img_actions .alert {
    padding: 4px;
    margin-bottom: 10px;
}

@media (max-width: 1199px) {
    .img-grid li {
        width: 20%;
    }
}

@media (max-width: 991px) {
    .img-grid li {
        width: 25%;
    }
}

@media (max-width: 767px) {
    .img-grid li {
        width: 33.33333333%;
    }
}

@media (max-width: 479px) {
    .img-grid li {
        width: 50%;
    }
}

.thumbnail {
    display: block;
    padding: 4px;
    margin-bottom: 20px;
    line-height: 1.428571429;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

.thumbnail>img,
.thumbnail a>img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}