﻿
img.autofitbg {
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    opacity:0;
}
.UploadFiles {
    position: relative;
    width: 100%;
    height: 40px;
    background: #eee;
    border: none;
    display: flex;
    align-items: center;
}

    .UploadFiles input[type="file"] {
        position: absolute !important;
        width: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
    }

    .UploadFiles .openUploader {
        position: relative;
        width: 100%;
        height: 40px;
        display: flex;
        align-items: center;
        box-sizing: border-box;
        padding-right: 110px;
        cursor: pointer;
    }

        .UploadFiles .openUploader label:first-child {
            cursor: pointer;
            width: calc(100% - 110px);
            height: 40px;
            display: flex;
            align-items: center;
            box-sizing: border-box;
            padding: 0 10px 0 0;
        }

        .UploadFiles .openUploader .btn {
            position: absolute;
            right: 5px;
            top: 0;
            bottom: 0;
            margin: auto;
            height: 30px;
            width: 100px;
            background: #b98e5d;
            display: flex;
            justify-content: center;
            align-items: center;
            color: #fff;
            border-radius: 4px;
            cursor: pointer;
        }

            .UploadFiles .openUploader .btn:hover {
                background: #ecbd87;
                color: #313131;
            }

            .UploadFiles .openUploader .btn:active {
                background: #966834;
                color: #ffcb90;
            }