/* Datei-Upload mit Dropzone und Vorschaubildern (Karten aus buildUploadFileCard in allgemein.js).
   Kopie der Upload-Regeln aus summenermittlung.css ohne deren seitenweite Regeln (.row, .col-6 usw.),
   damit die Datei in anderen Formularen eingebunden werden kann. Verwendet von aenderungsmitteilung.html. */

.upload-controls {
    margin-bottom: 18px;
}

.upload-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 150px;
    padding: 24px 16px;
    margin-bottom: 12px;
    border: 1px dashed #9aa7b5;
    background: linear-gradient(180deg, #f9fbfd 0%, #eef3f7 100%);
    color: #415364;
    text-align: center;
    cursor: pointer;
}

.upload-dropzone:hover {
    border-color: #337ab7;
    background: linear-gradient(180deg, #f4f8fc 0%, #e8f0f8 100%);
}

.upload-dropzone.is-dragover {
    border-color: #337ab7;
    background: linear-gradient(180deg, #eaf3fb 0%, #dceaf7 100%);
    box-shadow: inset 0 0 0 1px #337ab7;
}

.upload-dropzone-icon {
    font-size: 30px;
    color: #337ab7;
}

.upload-dropzone-title {
    font-weight: 600;
}

.upload-dropzone-hint {
    font-size: 0.95rem;
}

.upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.upload-progress-wrap {
    margin-bottom: 18px;
}

.upload-progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    color: #4f5b66;
    font-size: 0.95rem;
}

.upload-progress {
    display: block;
    height: 20px;
    background-color: #e9eef2;
    overflow: hidden;
}

.upload-progress .progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.upload-thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.upload-thumb-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border: 1px solid #d9e2ea;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}

.upload-thumb-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    background: #f4f7fa;
    overflow: hidden;
}

.upload-thumb-media img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.upload-thumb-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #748391;
}

.upload-thumb-placeholder i {
    font-size: 34px;
}

.upload-thumb-name {
    margin: 0;
    text-align: left;
    font-weight: 600;
    color: #334250;
    word-break: break-word;
}

/* Kategorie und Beschreibung je Datei werden in der Aenderungsmitteilung nicht benoetigt */
.upload-ohne-meta .upload-thumb-meta {
    display: none;
}

.upload-thumb-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
}

.upload-thumb-link {
    color: #337ab7;
    text-decoration: none;
    font-size: 0.95rem;
}

.upload-thumb-link:hover {
    text-decoration: underline;
}

.dateien-loeschen {
    border: 0;
    background: transparent;
    color: #b42318;
    padding: 0;
    font-size: 0.95rem;
}

.dateien-loeschen:hover {
    text-decoration: underline;
}
