.file-drop-zone, .krajee-default .file-preview-audio audio, .krajee-default .file-preview-image, .krajee-default .file-preview-other {
    vertical-align: middle;
}

.file-loading {
    top: 0;
    left: 0;
    width: 25px;
    height: 25px;
    font-size: 0px;
    text-align: left;
    color: #fff;
    background: url(../Images/load.gif) top right 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;
        left: 0;
        min-width: 100%;
        min-height: 100%;
        text-align: left;
        opacity: 0;
        background: none;
        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-error-message {
    color: #ffffff;
    background-color: #f35757;
    border: 1px solid #ebccd1;
    border-radius: 4px;
    margin: 5px;
    padding: 5px;
    position: relative;
}
.file-error-message::before {
    content: '\f0d8';
    font-family: FontAwesome;
    position: absolute;
    top: -11px;
    color: #f35757;
    font-size: 19px;
    text-decoration: none;
    font-style: normal;
    left: 46%;
}

    .file-error-message pre, .file-error-message ul {
        text-align: right;
        margin: 0;
    }

    .file-error-message pre {
        margin: 2px 0;
    }

.file-error-message > ul > li {
    display: block;
}

.file-caption-disabled {
    background-color: #EEE;
    cursor: not-allowed;
    opacity: 1;
}

.file-preview {
    width: 100%;
    margin-bottom: 15px;
}

.krajee-default.file-preview-frame {
    position: relative;
    display: table;
    border: 1px solid #ddd;
    float: right;
    text-align: center;
    margin: 4px;
    padding: 6px;
    box-shadow: 0px 1px 3px 0 #a2958a !important;
    border-radius: 5px !important;
    background: #fff;
}
.avatar .krajee-default.file-preview-frame {
    margin: 0px;
}

    .krajee-default.file-preview-frame:not(.file-preview-error):hover {
        box-shadow: 3px 3px 5px 0 #333;
    }

    .krajee-default.file-preview-frame .kv-file-content {
        height: auto;
    }

    .krajee-default.file-preview-frame .file-thumbnail-footer {
        height: auto;
        max-height: 70px;
    }

.krajee-default .file-preview-text {
    display: block;
    color: #428bca;
    border: 1px solid #ddd;
    font-family: Menlo,Monaco,Consolas,"Courier New",monospace;
    outline: 0;
    resize: none;
    padding: 8px;
}

.krajee-default .file-preview-html {
    border: 1px solid #ddd;
    overflow: auto;
    padding: 8px;
}

.krajee-default[data-template=audio] .file-preview-audio {
    display: table-cell;
    vertical-align: middle;
    height: 170px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.krajee-default .file-zoom-dialog .file-preview-text {
    font-size: 1.2em;
}

.krajee-default .file-preview-other {
    right: 0;
    top: 0;
    left: 0;
    bottom: 0;
    text-align: center;
    margin: auto;
    padding: 10px;
}

    .krajee-default .file-preview-other:hover {
        opacity: .8;
    }

.krajee-default .file-other-icon {
    font-size: 8em;
}

.krajee-default .file-actions {
    margin-top: 15px;
}

.krajee-default .file-footer-buttons {
    float: left;
}

.krajee-default .file-footer-caption {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 125px;
    text-align: center;
    padding-top: 4px;
    font-size: 11px;
    color: #777;
    margin: 5px auto;
}

.file-input-ajax-new .fileinput-remove-button, .file-input-ajax-new .fileinput-upload-button, .file-input-ajax-new .no-browse .input-group-btn, .file-input-new .close, .file-input-new .fileinput-remove-button, .file-input-new .fileinput-upload-button, .file-input-new .glyphicon-file, .file-input-new .no-browse .input-group-btn, .hide-content .kv-file-content {
    display: none;
}

.krajee-default .file-preview-error {
    opacity: .65;
    box-shadow: none;
}

.krajee-default .file-preview-frame:not(.file-preview-error) .file-footer-caption:hover {
    color: #000;
}

.krajee-default .file-drag-handle, .krajee-default .file-upload-indicator {
    position: absolute;
    text-align: center;
    bottom: -21px;
    right: -6px;
    border-right: none;
    border-bottom: none;
    border-left: 1px solid #8a6d3b;
    border-top: 1px solid #8a6d3b;
    border-top-left-radius: 24px;
    font-size: 12px;
    padding: 8px 3px 1px 8px;
}

.krajee-default .file-drag-handle {
    background-color: #d9edf7;
    border-color: #bce8f1;
}

.krajee-default .file-upload-indicator {
    font-size: 13px;
    background-color: #fcf8e3;
    padding-bottom: 0;
    border-color: #faebcc;
}

.krajee-default.file-preview-error .file-upload-indicator {
    background-color: #f2dede;
    border-color: #ebccd1;
}

.krajee-default.file-preview-success .file-upload-indicator {
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

.krajee-default.file-preview-loading .file-upload-indicator {
    background-color: #e5e5e5;
    border-color: #777;
}

.krajee-default .file-thumb-progress .progress, .krajee-default .file-thumb-progress .progress-bar {
    height: 10px;
    font-size: 9px;
    line-height: 12px;
}

.krajee-default .file-thumbnail-footer {
    position: relative;
}

.krajee-default .file-thumb-progress {
    height: 10px;
    position: absolute;
    right: 0;
    left: 0;
}

.krajee-default.kvsortable-ghost {
    background: #e1edf7;
    border: 2px solid #a1abff;
}

.file-zoom-dialog .file-other-icon {
    font-size: 50in;
}

.file-input-ajax-new .no-browse .form-control, .file-input-new .no-browse .form-control {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.file-thumb-loading {
    background: url(../Images/load.gif) center center no-repeat content-box !important;
}

.file-sortable .file-drag-handle {
    cursor: 0;
    opacity: 1;
}

    .file-sortable .file-drag-handle:hover {
        opacity: .7;
    }

.file-drop-zone {
    border:1px dashed #aaa;
    border-radius: 4px;
    height: 100%;
    text-align: center;
    /*margin:12px 15px 12px 12px;*/
    padding: 5px;
}

.file-drop-zone-title {
    color: #aaa;
    font-size: 1.6em;
    cursor: default;
    padding: 85px 10px;
}

.clickable .file-drop-zone-title, .file-preview .clickable {
    cursor: pointer;
}

.file-drop-zone.clickable:hover {
    border: 1px dashed #999;
}

.file-drop-zone.clickable:focus {
    border: 1px solid #5acde2;
}

.file-drop-zone .file-preview-thumbnails {
    font-size: 13px;
    cursor: default;
}

.file-highlighted {
    border: 2px dashed #999 !important;
    background-color: #f0f0f0;
}

.file-uploading {
    background: url(../PublicServices/PageNotFound.html) center bottom 10px no-repeat;
    opacity: .65;
}

.file-zoom-fullscreen.modal {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.file-zoom-fullscreen .modal-dialog {
    position: fixed;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.file-zoom-fullscreen .modal-content {
    border-radius: 0;
    box-shadow: none;
}

.file-zoom-fullscreen .modal-body {
    overflow-y: auto;
}

.file-zoom-dialog .modal-body {
    position: relative !important;
}

.file-zoom-dialog .btn-navigate {
    position: absolute;
    background: 0 0;
    text-decoration: none;
    outline: 0;
    opacity: .7;
    top: 45%;
    font-size: 4em;
    color: #1c94c4;
    margin: 0;
    padding: 0;
}

.file-zoom-dialog .floating-buttons {
    position: absolute;
    top: 5px;
    left: 10px;
}

.floating-buttons, .floating-buttons .btn {
    z-index: 3000;
}

    .file-zoom-dialog .kv-zoom-actions .btn, .floating-buttons .btn {
        margin-right: 3px;
    }

.file-zoom-dialog .btn-navigate:not([disabled]):focus, .file-zoom-dialog .btn-navigate:not([disabled]):hover {
    outline: 0;
    box-shadow: none;
    opacity: .5;
}

.file-zoom-dialog .btn-navigate[disabled] {
    opacity: .3;
}

.file-zoom-dialog .btn-prev {
    right: 1px;
}

.file-zoom-dialog .btn-next {
    left: 1px;
}

.file-zoom-content {
    height: 480px;
    text-align: center;
}

    .file-zoom-content .file-preview-image, .file-zoom-content .file-preview-video {
        max-height: 100%;
    }

    .file-zoom-content > .file-object.type-image {
        width: auto;
        height: auto;
        min-height: inherit;
        max-width: 100%;
        max-height: 100%;
    }

    .file-zoom-content > .file-object.type-flash, .file-zoom-content > .file-object.type-video {
        width: auto;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
    }

    .file-zoom-content > .file-object.type-audio {
        width: auto;
        height: 30px;
    }

.file-preview-initial.sortable-chosen {
    background-color: #d9edf7;
}

.btn-file ::-ms-browse {
    font-size: 10000px;
    width: 100%;
    height: 100%;
}

.progress-bar {
    float: right;
    width: 0;
    height: 100%;
    font-size: 12px;
    line-height: 20px;
    color: #fff;
    text-align: center;
    background-color: #337ab7;
    -webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,.15);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.15);
    -webkit-transition: width .6s ease;
    -o-transition: width .6s ease;
    transition: width .6s ease;
}

.progress-bar-success {
    background-color: #5cb85c;
}

.rotate-2 {
    transform: rotateY(180deg);
}

.rotate-3 {
    transform: rotate(180deg);
}

.rotate-4 {
    transform: rotate(180deg) rotateY(180deg);
}

.rotate-5 {
    transform: rotate(270deg) rotateY(180deg);
}

.rotate-6 {
    transform: rotate(90deg);
}

.rotate-7 {
    transform: rotate(90deg) rotateY(180deg);
}

.rotate-8 {
    transform: rotate(270deg);
}

.file-zoom-content .is-portrait-gt4 {
    margin-top: 60px;
}

.file-input .kv-upload-progress, .file-input .kv-file-zoom {
    visibility: hidden;
    display: none;
}

.file-zoom-dialog, .krajee-default .file-actions, .krajee-default .file-other-error {
    text-align: right;
}

.file-caption-main, .file-zoom-content > .file-object.type-default, .file-zoom-content > .file-object.type-html, .file-zoom-content > .file-object.type-pdf, .file-zoom-content > .file-object.type-text {
    width: 100%;
}

.btn.button.btn-file {
    padding: 4px 30px;
    background: #607D8B;
    width: 150px !important;
    position: absolute;
    bottom: 5px;
    left: 7px;
}
@media (max-width: 780px) {
    .btn.button.btn-file {
        position: relative !important;
        top: 0px !important;
        left: 0 !important;
        right: 0 !important;
    }
}

button.kv-file-remove.btn.btn-xs.btn-default {
    position: absolute;
    left: -7px;
    bottom: -7px;
    width: 10px;
    padding: 0px;
    margin: 0px;
    width: 27px;
    height: 22px;
    border-radius: 0% 100px 0px 0px;
    text-align: center;
    font-size: 15px;
    color: #d43529;
    background: #f0d8d8;
    padding-right: 5px;
}

.file-input-new, .file-input-ajax-new {
    min-height: 40px;
}

    .file-input-new .file-preview, .file-input-ajax-new .file-preview {
        background: none #e6e6e6;
        /*height: 185px;
    background: url('../Images/defaultprofileimage.png') no-repeat center center / 100% auto #ccc;*/
        height: auto;
    }

.krajee-default .file-preview-image, .krajee-default .file-preview-other-frame {
    max-width: 200px !important;
    max-height: 200px !important;
}

.avatar .krajee-default .file-preview-image, .avatar .krajee-default .file-preview-other-frame {
    max-width: 100% !important;
    max-height: 100% !important;
}

.file-input-new .uploadNote, .file-input-ajax-new .uploadNote {
    margin-top: -10px;
    margin-bottom: 5px;
    display: block;
    font-style: italic;
    font-size: 11px;
    line-height: 2em;
}

.file-footer-buttons {
    display: none;
    visibility: hidden;
}

.file-input {
    border: 1px dashed #ccc;
    padding: 6px;
    text-align: center;
    position: relative;
    display: inline-block;
    width: calc(100% - 40px);
    background: #f9f9f9;
    vertical-align: top;
}

    .file-input.file-input-ajax-new .file-preview.required::before {
        content: '*';
        color: red;
        position: absolute;
        right: 10px;
        font-size: 19px;
    }

    .file-input.file-input-ajax-new.has-error {
        border-color: red;
        border-style: solid;
    }

.kv-fileinput-error button.close.kv-error-close {
    display: none;
}

.kv-fileinput-error {
    padding-top: 7px;
    line-height: 1.4em;
    font-weight: 400;
}

.glyphicon.glyphicon-ok-sign::before {
    font-family: FontAwesome;
    content: "\f00c";
}

.glyphicon.glyphicon-trash::after {
    font-style: normal;
    content: "\f014";
    font-family: FontAwesome;
    padding: 0px 5px 0px 5px;
    font-weight: normal;
    font-size: 19px;
}

.avatar {
    margin-bottom: 12px;
}

    .avatar .file-input {
        width: 152px;
        background-color: unset;
        margin: 6px;
    }
    .avatar .file-input span i {
    margin-left: 5px;
}
.avatar .file-preview-video, .avatar .file-preview-other-frame {
    width: 100% !important;
    height: 138px !important;
}

@media (max-width: 780px) {

    .file-input {
        width: calc(98% - 40px) !important;
    }
}


.file-input.required .file-input-title:after {
    content: '*';
    color: red;
    position: absolute;
    font-size: 19px;
    margin-right: 3px;
}
/* to avoid overlapping of error message and upload button */
.file-input.has-error {
    padding-bottom: 30px;
}
    /* hide the preview if the image/doc is invalid */
    .file-input.has-error .file-preview .file-preview-thumbnails {
        display: none;
    }
    /* removal of error message's up arrow */
    .file-input.has-error .file-error-message:before {
        display: none;
    }