/*!
 * @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2015
 * @package bootstrap-fileinput
 * @version 4.2.6
 *
 * File input styling for Bootstrap 3.0
 * Built for Yii Framework 2.0
 * Author: Kartik Visweswaran
 * Year: 2015
 * For more Yii related demos visit http://demos.krajee.com or http://plugins.krajee.com/file-preview-icons-demo
 */

.file-preview-frame,
.file-preview-image,
.file-preview-other {
    height: 160px;
    vertical-align: middle
}

.file-loading {
    top: 0;
    right: 0;
    width: 25px;
    height: 25px;
    font-size: 999px;
    text-align: right;
    color: #fff;
    background: url(images/fileinput-loading.gif) top left no-repeat;
    border: none
}

.file-object {
    margin: 0 0 -5px;
    padding: 0
}

.btn-file {
    position: relative;
    overflow: hidden
}

.btn-file input[type=file] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    text-align: right;
    opacity: 0;
    background: 0 0;
    cursor: inherit;
    display: block
}

.file-caption-name {
    display: inline-block;
    overflow: hidden;
    height: 20px;
    word-break: break-all
}

.input-group-lg .file-caption-name {
    height: 25px
}

.file-preview-detail-modal {
    text-align: left
}

.file-error-message {
    background-color: #f2dede;
    color: #a94442;
    text-align: center;
    border-radius: 5px;
    padding: 5px 10px 5px 5px
}

.file-error-message pre,
.file-error-message ul {
    margin: 5px 0;
    text-align: left
}

.file-caption-disabled {
    background-color: #EEE;
    cursor: not-allowed;
    opacity: 1
}

.file-preview {
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 5px;
    width: 100%;
    margin-bottom: 5px
}

.file-preview-frame {
    display: table;
    margin: 8px;
    border: 1px solid #ddd;
    box-shadow: 1px 1px 5px 0 #a2958a;
    padding: 6px;
    float: left;
    text-align: center
}

.file-preview-frame:not(.file-preview-error):hover {
    box-shadow: 3px 3px 5px 0 #333
}

.file-preview-text {
    text-align: left;
    width: 160px;
    margin-bottom: 2px;
    color: #428bca;
    background: #fff;
    overflow-x: hidden
}

.file-preview-other {
    display: table-cell;
    text-align: center;
    width: 160px;
    border: 2px solid #999;
    border-radius: 10px;
    opacity: .8;
    line-height: 1;
}

.file-actions,
.file-other-error {
    text-align: left
}

.file-preview-frame:not(.file-preview-error) .file-preview-other:hover {
    opacity: 1
}

.file-icon-lg {
    font-size: 1.2em
}

.file-icon-2x {
    font-size: 2.4em
}

.file-icon-4x {
    font-size: 4.8em
}

.file-input-ajax-new .fileinput-remove-button,
.file-input-ajax-new .fileinput-upload-button,
.file-input-new .close,
.file-input-new .file-preview,
.file-input-new .fileinput-remove-button,
.file-input-new .fileinput-upload-button,
.file-input-new .glyphicon-file {
    display: none
}

.loading {
    background: url(images/fileinput-loading.gif) center center no-repeat content-box !important
}

.file-actions {
    margin-top: 15px
}

.file-footer-buttons {
    float: right
}

.file-upload-indicator {
    padding-top: 2px;
    cursor: default;
    opacity: .8;
    width: 60%
}

.file-upload-indicator:hover {
    font-weight: 700;
    opacity: 1
}

.file-footer-caption {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 160px;
    text-align: center;
    padding-top: 4px;
    font-size: 11px;
    color: #777;
    margin: 5px auto 10px
}

.file-preview-frame:not(.file-preview-error) .file-footer-caption:hover {
    color: #000
}

.file-drop-zone {
    border: 1px dashed #aaa;
    border-radius: 4px;
    height: 100%;
    text-align: center;
    vertical-align: middle;
    margin: 12px 15px 12px 12px;
    padding: 5px
}

.file-drop-zone-title {
    color: #aaa;
    font-size: 40px;
    padding: 85px 10px
}

.highlighted {
    border: 2px dashed #999 !important;
    background-color: #f0f0f0
}

.file-uploading {
    background: url(images/fileinput-loading-sm.gif) center bottom 10px no-repeat;
    opacity: .6
}

.file-error-message .close {
    margin-top: 10px
}

.file-thumb-progress .progress,
.file-thumb-progress .progress-bar {
    height: 10px;
    font-size: 9px;
    line-height: 10px
}

.file-thumbnail-footer {
    position: relative
}

.file-thumb-progress {
    position: absolute;
    top: 22px;
    left: 0;
    right: 0
}

/** customized for bootstrap-fileinput-style-01 */

.bootstrap-fileinput-style-01 .file-preview-frame {
    margin: 0;
    padding: 5px;
}

.bootstrap-fileinput-style-01 .file-preview {
    border-color: #CCCCCC;
    border-radius: 3px;
    margin: 0 0 10px;
    padding: 0
}

.bootstrap-fileinput-style-01 .file-preview img {
    width: 100%;
}

.bootstrap-fileinput-style-01 .file-caption-name {
    font-size: 12px;
    margin: 4px 0 0
}

.bootstrap-fileinput-style-01 .file-caption-name span {
    color: #55a747;
    margin: 0;
    font-size: 10px;
}

.bootstrap-fileinput-style-01 .file-preview-thumbnails {
    text-align: center;
}

.bootstrap-fileinput-style-01 .file-preview-frame {
    border: 0;
    box-shadow: none;
    display: inline-block;
    float: none;
    height: auto;
    margin-bottom: 0;
}

.bootstrap-fileinput-style-01 .file-preview-frame:hover {
    box-shadow: none !important
}

.bootstrap-fileinput-style-01 .file-preview-frame img {
    display: inline-block;
    height: auto;
    max-width: 100%
}

.bootstrap-fileinput-style-01 .file-footer-caption {
    color: #FFF !important;
    margin: 0;
    padding: 10px 0 0;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: block;
    background: -moz-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%);
    background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#a6000000', GradientType=0);
}

.bootstrap-fileinput-style-01 .file-footer-caption:hover {
    color: #FFF !important
}

.bootstrap-fileinput-style-01 .file-input-ajax-new .fileinput-remove {
}

.bootstrap-fileinput-style-01 .file-preview .fileinput-remove {
    color: #FA2A00;
    display: block;
    opacity: .95;
    transition: all .15s linear;
    position: absolute;
    top: 32px;
    right: 20px;
}

.bootstrap-fileinput-style-01.no-remove-at-beginning .file-input-ajax-new .fileinput-remove {
    display: none !important;
}

.bootstrap-fileinput-style-01 .file-preview .fileinput-remove:hover {
    color: #FA2A00;
    opacity: 1
}

.bootstrap-fileinput-style-01 .kv-fileinput-caption:active,
.kv-fileinput-caption:focus,
.kv-fileinput-caption:hover {
    border-color: #e9e9e9
}

.bootstrap-fileinput-style-01 .file-drop-zone {
    border: 0;
    margin: 0;
    padding: 0
}

.bootstrap-fileinput-style-01 .file-drop-zone-title {
    background-color: #f7f7f7;
    border-radius: 3px;
    margin: 0;
    padding: 86px 0 87px
}

.bootstrap-fileinput-style-01 .file-drop-zone-title span {
    color: #363636;
    font-size: 18px;
    vertical-align: 2px
}

.bootstrap-fileinput-style-01 .file-drop-zone-title .fa {
    color: #55a747;
    font-size: 26px;
    margin: 0 15px 0 0
}

.bootstrap-fileinput-style-01 .file-actions {
    display: none
}

.bootstrap-fileinput-style-01 .file-preview-other {
    display: table-cell;
    text-align: center;
    width: 160px;
    margin-bottom: 30px;
}

.bootstrap-fileinput-style-01 .file-icon-lg {
    font-size: 16px;
    line-height: 40px;
}

.bootstrap-fileinput-style-01 .file-icon-2x {
    font-size: 28px;
    line-height: 40px;
}

.bootstrap-fileinput-style-01 .file-icon-4x {
    font-size: 40px;
    line-height: 40px;
}

.bootstrap-fileinput-style-01 .file-error-message {
    border-radius: 0 0 3px 3px;
    line-height: 1.2;
    font-size: 13px;
}

/** customized for bootstrap-fileinput-style-02 */

.bootstrap-fileinput-style-02 .file-input-ajax-new .fileinput-remove {
    display: none !important
}