.ajax-file-upload-filesize {
    width: 50px;
    height: auto;
    margin: 0 5px 5px 0px;
    display: inline-block;
    vertical-align:middle;
}

.ajax-file-upload-percent {
    position: absolute;
    display: inline-block;
    top: 3px;
    left: 48%
}
.ajax-file-upload-red {
    -moz-box-shadow: inset 0 39px 0 -24px #e67a73;
    -webkit-box-shadow: inset 0 39px 0 -24px #e67a73;
    box-shadow: inset 0 39px 0 -24px #e67a73;
    background-color: #e4685d;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    display: inline-block;
    color: #fff;
    font-family: arial;
    font-size: 13px;
    font-weight: normal;
    padding: 4px 15px;
    text-decoration: none;
    text-shadow: 0 1px 0 #b23e35;
    cursor: pointer;
    vertical-align: top;
    margin: 5px 10px 5px 0px;
}
.ajax-file-upload-green {
    background-color: #77b55a;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    margin: 0;
    padding: 0;
    display: inline-block;
    color: #fff;
    font-family: arial;
    font-size: 13px;
    font-weight: normal;
    padding: 4px 15px;
    text-decoration: none;
    cursor: pointer;
    text-shadow: 0 1px 0 #5b8a3c;
    vertical-align: top;
    margin: 5px 10px 5px 0px;
}

.state-hover
{
    border:2px solid #A5A5C7;
}

/* Modificado */

.ajax-file-upload-container {
    margin: 5px 0 1rem 0;
}

.ajax-upload-dragdrop {
    border: 1px solid #ced4da;
    width: calc(100% - 25px);
    color: #DADCE3;
    text-align:left;
    vertical-align:middle;
    height: auto;
    line-height: 21px;
    padding: 6px 12px;
    position: relative;
    border-radius: 0.25rem;
}
.ajax-upload-dragdrop > span{
    font-size: 0.95rem;
    color: #495057;
    display: block;
    width: calc(100% - 135px);

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ajax-file-upload {
    height: auto;
    line-height: 21px;
    padding: 6px 12px;

    position: absolute !important;
    top: -1px;
    right: -1px;
    margin: 0;

    font-size: 0.9rem;
    font-weight: 400;
    text-align: center;

    cursor:pointer;
    display: inline-block;
    text-decoration: none;
    vertical-align: middle;

    box-shadow: none;
    border: 1px solid #ced4da;
    border-radius: 0 .25rem .25rem 0;
    background-color: #e9ecef;
    color: #212529;
}
.ajax-file-upload:hover {
    background-color: #212529;
    color: #e9ecef;
    box-shadow: none;
}

.ajax-file-upload-viewFile {
    position: absolute;
    top: calc(50% - 8px);
    right: -22px;
}

.ajax-file-upload-viewFile.readonly {
    position: absolute;
    top: calc(50% - 3px);
    right:27px;
}

.ajax-file-upload-deleteFile {
    position: absolute;
    top: calc(50% - 8px);
    left: calc(100% - 150px);
}

.ajax-file-upload-statusbar{
    margin:0 0 0.5rem 0;
    border: 0;
    position: relative;
}
.ajax-file-upload-statusbar .ajax-file-upload-filename{
    height: auto;
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    font-weight: 300;
    color: #555555;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ajax-file-upload-statusbar .ajax-file-upload-progress {
    margin: 0 0 5px 0;
    position: relative;
    width: calc(100% - 100px);
    border: 1px solid #ddd;
    padding: 1px;
    border-radius: 3px;
    display: inline-block;
    color:#FFFFFF;
    float: left;
}
.ajax-file-upload-statusbar .ajax-file-upload-progress .ajax-file-upload-bar {
    background-color: #0ba1b5;
    width: 0;
    height: 20px;
    border-radius: 3px;
    color:#FFFFFF;
}

.ajax-file-upload-statusbar.success .ajax-file-upload-filename {
    color: #75ae05;
}
.ajax-file-upload-statusbar.success .ajax-file-upload-progress .ajax-file-upload-bar {
    background-color: #75ae05;
}

.ajax-file-upload-statusbar.error .ajax-file-upload-filename {
    color: #dc3545;
}
.ajax-file-upload-statusbar.error .ajax-file-upload-progress .ajax-file-upload-bar {
    background-color: #dc3545;
}

.ajax-file-upload-error{
    display: none;
}

.ajax-file-upload-red{
    margin: -3px 0 0 5px;
}

/*************/
/* Multiple */

.FileUploadMultipleDragFormField .ajax-upload-dragdrop{
    font-size: 15px;
    text-align: center;
    padding: 15px;
    margin: 0 0 15px 0;
    color: #0C6CAC;
    border: 5px dashed #96B2D0;
    border-radius: 4px;
    cursor: default;
    background: #F8FBFC;
}
.FileUploadMultipleDragFormField .ajax-upload-dragdrop.state-hover
{
    border-color: #67b168;
    border-style: solid;
    box-shadow: inset 0 3px 4px #888;
}
.FileUploadMultipleDragFormField .ajax-upload-dragdrop > span{
    width: 100%;
}
.FileUploadMultipleDragFormField .ajax-file-upload{
    position: relative !important;
}

/* File item */
.fileItem{
    border-radius: 5px;
    background: #EEF5F9;
    border:1px solid #EEF5F9;
    margin-bottom: 15px;
    position: relative;
}
.fileItem .fileItem-header{
    color: #666666;
    padding:5px 17px;
    text-align: center;
    position: relative;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fileItem .fileItem-header a {
    color: #666666;
}
.fileItem .fileItem-header .fa{
    position: absolute;
    top: 7px;
    right: 5px;
    color: #D1322D;
    opacity: 0;
    visibility: hidden;
    transition: all 400ms ease;
}
.fileItem:hover .fileItem-header .fa{
    opacity: 1;
    visibility: visible;
}
.fileItem .fileItem-header span{
    cursor: pointer;
}

.fileItem .fileItem-content{
    background: #fff;
}
.fileItem .fileItem-content > div{
    position: relative;
    padding-bottom: 75%;
    overflow: hidden;
}
.fileItem .fileItem-content a{
    display: block;
    text-align: center;
    position: absolute;
    top:0;
    bottom:0;
    left:0;
    right:0;
}
.fileItem .fileItem-content a img{
    max-width: 100%;
    max-height: 100%;
}

.fileItem .fileItem-footer{
    font-size: 12px;
    padding: 2px 5px;
}
.fileItem .fileItem-footer span{
    float:right;
}

.fileItem.readonly .fileItem-header .fa{
    display: none;
}
.fileItem.readonly .fileItem-header span{
    cursor: default;
}
