/*
 * Shared styles for document-upload pages and dialogs.
 * Used by: ShopDrawingUploadPage, AccountsPayableInvoiceUploadPage,
 *          CompressiveTestResultUploadDialog (and any future upload workflows).
 */

/* ── Full-page layout ───────────────────────────── */
.du-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.du-page-header h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.du-page-header .du-subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 0.95rem;
}

/* ── Info cards row ─────────────────────────────── */
.du-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
}

.du-info-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.du-info-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.du-info-card-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.du-badge {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.du-badge-admin {
    background: #fef3c7;
    color: #92400e;
}

.du-info-card ol {
    margin: 0;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: #374151;
}

.du-info-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.5;
}

/* ── Upload panel ───────────────────────────────── */
.du-upload-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.du-upload-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.du-upload-card-header strong {
    font-size: 1rem;
}

.du-upload-card-header span {
    font-size: 0.85rem;
    color: #6b7280;
}

.du-upload-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.du-processing-status {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ── Results card ───────────────────────────────── */
.du-result-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.du-result-card-header h4 {
    margin: 0 0 0.1rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.du-result-card-header h4.du-success {
    color: #059669;
}

.du-result-card-header h4.du-error {
    color: #dc2626;
}

.du-result-description {
    margin: 0;
    font-size: 0.85rem;
    color: #6b7280;
}
