﻿div.drop-zone {
    min-height: 150px;
    border-width: 1px;
    border-color: lightgray;
    border-style: solid;
    border-radius: 4px;
    position: relative;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    vertical-align: top;
    white-space: nowrap;
    background-color: white;
}

div.drop-zone.drop-here div.drop-zone-notifier {
    display: inline-block;
}

div.drop-zone.drop-here > div.thumbnail {
    display: none;
}

div.drop-zone.error {
    border-color: red;
}

.drop-zone-error-message {
    color: red;
    visibility: hidden;
}

div.drop-zone.error + .drop-zone-error-message {
    visibility: visible;
}

div.drop-zone-notifier {
    border-width: 1px;
    border-color: rgba(214, 214, 214, 0.44);
    border-style: solid;
    border-radius: 4px;
    box-sizing: border-box;
    padding: 10px;
    display: none;
    width: 100%;
    height: 100%;
    background-color: rgba(214, 214, 214, 0.44);
    position: absolute;
}

div.drop-zone-notifier > div {
    height: 100%;
    box-sizing: border-box;
    border-width: 6px;
    border-color: lightslategray;
    border-style: dashed;
    border-radius: 10px;
    font-size: 25pt;
    color: lightslategray;
    opacity: 0.7;
    text-align: center;
    font-weight: bold;
    padding-top: 30px;
}

div.drop-zone > div.thumbnail {
    margin-left: 5px;
}

div.drop-zone > div.thumbnail:last-child {
    margin-right: 5px;
}


div.thumbnail {
    background-color: transparent;
    margin-top: 5px;
    position: relative;
    border-width: 2px;
    border-style: solid;
    border-radius: 2px;
    border-color: transparent;
    padding-top: 2px;
    padding-bottom: 1px;
    width: 110px;
    display: inline-block;
    vertical-align: top;
}

div.drop-zone[data-multiple="false"] div.thumbnail {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

div.thumbnail.pending {
    opacity: 0.7;
}

div.thumbnail:hover {
    border-color: lightgrey;
}

div.thumbnail:hover > span,
div.thumbnail:hover > a {
    display: inline-block;
}

div.drop-zone.readonly > div.thumbnail > span {
    display: none;
}

div.thumbnail > input.file-guid {
    display: none;
}

div.thumbnail > span {
    display: none;
    color: lightgrey;
    opacity: 0.8;
    position: absolute;
    padding-right: 1px;
    padding-top: 1px;
    right: 0px;
    top: -2px;
    cursor: pointer;
}

div.thumbnail > span:hover {
    color: red;
    opacity: 1;
}

div.thumbnail > div.file-name {
    color: lightslategrey;
    text-align: center;
    font-weight: bold;
    white-space: normal;
    word-wrap: break-word;
}

div.thumbnail > img {
    width: 100%;
    margin-bottom: 2px;
}

div.thumbnail > a {
    left: 50%;
    top: 50%;
    display: none;
    color: black;
    opacity: 0.2;
    margin-left: -25px;
    margin-top: -48px;
    position: absolute;
    font-size: 45pt;
}

div.drop-zone.drop-here > div.upload-files,
div.drop-zone.readonly > div.upload-files {
    display: none;
}

div.drop-zone > div.upload-files {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 5;
}