/* Documentación / adjuntos — upload UX */
.vm-dz-card .sub-title h4 {
    margin-bottom: 0;
}

.vm-dz-badge {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--brand-black, #111);
    background: var(--brand-accent-muted, rgba(0, 229, 214, 0.15));
    border-radius: 999px;
}

/* Override stock dropzone.css: absolute 428px spritemap ("Upload files") breaks narrow zones */
.vm-dz-zone.dropzone {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    border: 2px dashed rgba(17, 17, 17, 0.18);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(0, 229, 214, 0.06), transparent 70%),
        #fafafa;
    padding: 1.75rem 1.25rem;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.vm-dz-zone.dropzone:hover,
.vm-dz-zone.dropzone.dz-drag-hover {
    border-color: var(--brand-accent, #00e5d6);
    background:
        linear-gradient(180deg, rgba(0, 229, 214, 0.14), transparent 70%),
        #fff;
    box-shadow: 0 0 0 3px var(--brand-accent-muted, rgba(0, 229, 214, 0.15));
}

.vm-dz-zone.dropzone .dz-message,
.vm-dz-zone.dropzone .dz-default.dz-message {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    background-image: none !important;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 600;
    color: #222;
    opacity: 1 !important;
    filter: none !important;
}

.vm-dz-zone.dropzone .dz-default.dz-message span,
.vm-dz-zone.dropzone .dz-message span {
    display: inline;
}

.vm-dz-zone.dropzone .dz-message .vm-dz-hint {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.85rem;
    font-weight: 400;
    color: #777;
}

.vm-dz-zone.dropzone.dz-started .dz-message {
    display: block;
    opacity: 1 !important;
    filter: none !important;
}

.vm-dz-zone.dropzone .dz-preview {
    display: none !important;
}

.vm-dz-panel {
    margin-top: 1rem;
    padding: 1rem 1.15rem 1.1rem;
    border-radius: 12px;
    background: #111;
    color: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.vm-dz-panel.is-done {
    background: #0f2e28;
}

.vm-dz-panel.is-error {
    background: #2a1212;
}

.vm-dz-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.vm-dz-panel__title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.vm-dz-panel__pct {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--brand-accent, #00e5d6);
}

.vm-dz-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: var(--brand-accent, #00e5d6);
    border-radius: 50%;
    animation: vm-dz-spin 0.7s linear infinite;
    flex-shrink: 0;
}

.vm-dz-panel.is-done .vm-dz-spinner,
.vm-dz-panel.is-error .vm-dz-spinner {
    display: none;
}

@keyframes vm-dz-spin {
    to { transform: rotate(360deg); }
}

.vm-dz-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
    margin-bottom: 1rem;
}

.vm-dz-bar__fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #00b8ab, var(--brand-accent, #00e5d6));
    transition: width 0.2s ease;
}

.vm-dz-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.vm-dz-stat {
    text-align: center;
    padding: 0.45rem 0.25rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.vm-dz-stat__n {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.vm-dz-stat__l {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.7;
}

.vm-dz-stat--ok .vm-dz-stat__n { color: #5dffa8; }
.vm-dz-stat--wait .vm-dz-stat__n { color: #ffd56a; }
.vm-dz-stat--err .vm-dz-stat__n { color: #ff8a8a; }

.vm-dz-files {
    max-height: 220px;
    overflow-y: auto;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.25);
}

.vm-dz-file {
    display: grid;
    grid-template-columns: 1.1rem 1fr auto;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.7rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.82rem;
}

.vm-dz-file:last-child {
    border-bottom: 0;
}

.vm-dz-file__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vm-dz-file__meta {
    opacity: 0.65;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.vm-dz-file__ico {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: #888;
}

.vm-dz-file.is-uploading .vm-dz-file__ico {
    background: var(--brand-accent, #00e5d6);
    box-shadow: 0 0 0 3px rgba(0, 229, 214, 0.25);
    animation: vm-dz-pulse 1s ease infinite;
}

.vm-dz-file.is-success .vm-dz-file__ico { background: #5dffa8; }
.vm-dz-file.is-error .vm-dz-file__ico { background: #ff8a8a; }
.vm-dz-file.is-queued .vm-dz-file__ico { background: #ffd56a; }

@keyframes vm-dz-pulse {
    50% { opacity: 0.45; }
}

.vm-dz-summary {
    margin-top: 0.85rem;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.88rem;
    line-height: 1.4;
}

.vm-dz-table-head {
    background-color: #e8e8e8;
    border-radius: 6px 6px 0 0;
}

@media (max-width: 576px) {
    .vm-dz-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}
