/* ===== Upload box ("Tập tin đính kèm") =====
   Markup built by static/js/utils/upload-box.js; shared by house_management and invoice.
   Class names keep the original `house-mng-upload` prefix. */
.house-mng-upload {
    padding: 0.75rem 0 1rem;
    border-top: 1px solid #eef0f3;
}

.house-mng-upload__zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 11rem;
    padding: 1.5rem 1rem;
    border: 2px dotted var(--primary);
    border-radius: 16px;
    cursor: pointer;
    text-align: center;
}

.house-mng-upload__zone:hover,
.house-mng-upload__zone:focus-visible,
.house-mng-upload__zone.is-dragover {
    background: #eff6ff;
    outline: none;
}

.house-mng-upload__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.75rem;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 1.25rem;
}

.house-mng-upload__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
}

.house-mng-upload__hint {
    margin: 0.25rem 0 0;
    color: #6b7280;
}

.house-mng-upload__hint strong {
    color: #111827;
}

.house-mng-upload__preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.house-mng-upload__thumb {
    flex-shrink: 0;
    width: 4rem;
    height: 4rem;
    border-radius: 8px;
    object-fit: cover;
    background: #f1f2f4;
}

/* A PDF: icon in the thumbnail's place */
.house-mng-upload__file-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 8px;
    background: #fef2f2;
    color: #dc2626;
    font-size: 1.75rem;
}

.house-mng-upload__file-icon.d-none,
.house-mng-upload__thumb.d-none {
    display: none;
}

.house-mng-upload__info {
    flex: 1;
    min-width: 0;
}

.house-mng-upload__name {
    margin: 0;
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.house-mng-upload__status {
    margin: 0.125rem 0 0;
    font-size: 0.85rem;
    color: #6b7280;
}

.house-mng-upload__status.is-done {
    color: #16a34a;
}

.house-mng-upload__remove {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    background: #f1f2f4;
    border: 0;
    border-radius: 50%;
    color: #4b5563;
}

.house-mng-upload__error {
    margin: 0.5rem 0 0;
    color: #dc2626;
    font-weight: 600;
}
