.upload
{
    background-color: #FEFEFE;
    border: 1px solid #999;
    padding: 5px 0 0 5px;
}

form.dark .upload {
    background-color: #121214;
    border-color: #333;
    border-radius: 5px;
}

.upload button.mgUpload {
    background-color: #f0f0f0;
    background-image: url('../svg/form/add.svg');
    background-position: center center;
    background-repeat: no-repeat;
    border: 1px solid #ccc;
    border-radius: 4px;

    cursor: pointer;
    margin: 0 5px 5px 0;
    height: 50px;
    width: 50px;
}

form.dark .upload button.mgUpload {
    background-color: #333;
    border-color: #121214;
}

.upload button.mgUpload:hover {
    background-color: #FFF;
}

.upload .mgUploaded {
    float: left;
}

.upload .mgUploaded .mgLoader {
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 0 5px 5px 0;
    width: 48px;
    height: 48px;
    float: left;
    /*box-sizing: border-box;*/
}

.upload .mgUploaded .mgSpace {
    vertical-align: top;
    display: inline-block;
    margin: 0 5px 5px 0;
}

.upload .mgUploaded .mgItem {
    display: inline-block;
    vertical-align: top;
    position: relative;
    margin: 0 5px 5px 0;
}

.upload .mgUploaded .mgItem img {
    vertical-align: top;
    height: 50px;
}

.upload .mgUploaded .mgItem .delete {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #FFF;
    background-image: url(../img/admin/delete1.png);
    background-position: top center;
    background-repeat: no-repeat;
    border: 1px solid #BBB;
    width: 25px;
    height: 25px;
    padding: 0 !important;
    margin: 2px;
}

.mgUploaded .mgItem:hover .delete {
    display: block !important;
}


.upload .mgUploaded .mgItem:hover .delete {
    display: block !important;
}

.upload .mgUploaded .mgItem textarea {
    background-color: #FFF;
    vertical-align: top;
    min-height: 48px;
    height: 48px;
    width: 200px;
    padding: 0;
    margin: 0;
}

/* ******************** */

.upload .mgUploaded .pdf {
    display: inline-block;
    width: 46px;
    height: 50px;
    background-image: url(../img/icons/icon_pdf.png);
    background-repeat: no-repeat;
    background-position: center left;
}

.upload .mgUploaded .doc {
    display: inline-block;
    width: 46px;
    height: 50px;
    background-image: url(../img/icons/icon_doc.png);
    background-repeat: no-repeat;
    background-position: center left;
}

.upload .mgUploaded .ppt {
    display: inline-block;
    width: 46px;
    height: 50px;
    background-image: url(../img/icons/icon_ppt.png);
    background-repeat: no-repeat;
    background-position: center left;
}

.upload .mgUploaded .xls {
    display: inline-block;
    width: 46px;
    height: 50px;
    background-image: url(../img/icons/icon_xls.png);
    background-repeat: no-repeat;
    background-position: center left;
}

.upload .mgUploaded .jpg {
    display: inline-block;
    width: 46px;
    height: 50px;
    background-image: url(../img/icons/icon_img.png);
    background-repeat: no-repeat;
    background-position: center left;
}

.upload .mgUploaded .png {
    display: inline-block;
    width: 46px;
    height: 50px;
    background-image: url(../img/icons/icon_img.png);
    background-repeat: no-repeat;
    background-position: center left;
}