/* ============================================================
   Order Detail Page Styles
   ============================================================ */

/* --- Header Card --- */
.order-detail-header {
    background: linear-gradient(135deg, #f8f9fc 0%, #eef2ff 100%);
    border-radius: 0.75rem;
}

.order-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--vz-primary) 0%, #4b6de8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.order-icon-wrapper i {
    font-size: 24px;
    color: #fff;
}

/* --- Detail Sections --- */
.detail-section {
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid #e9ecef;
}

.detail-section:last-child,
.detail-section.mb-0 {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--vz-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-section-title i {
    font-size: 1.1rem;
}

/* --- Detail Field (label / value pair) --- */
.detail-field {
    background: #f8f9fc;
    border-radius: 0.5rem;
    padding: 0.875rem 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    transition: background-color 0.15s ease;
}

.detail-field:hover {
    background: #eef2ff;
}

.detail-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.detail-label i {
    font-size: 0.95rem;
    opacity: 0.7;
}

.detail-value {
    font-size: 0.925rem;
    font-weight: 500;
    color: #344050;
    word-break: break-word;
}

/* --- Stat Cards --- */
.detail-stat-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.625rem;
    padding: 1rem;
    height: 100%;
    transition: box-shadow 0.2s ease;
}

.detail-stat-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.detail-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.3rem;
}

.detail-stat-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #2d3748;
    line-height: 1.2;
}

.detail-stat-label {
    font-size: 0.75rem;
    color: #8c98a4;
    font-weight: 500;
}

/* --- Yes/No Cards --- */
.detail-yesno-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fc;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: background-color 0.15s ease;
}

.detail-yesno-card:hover {
    background: #eef2ff;
}

.detail-yesno-label {
    font-size: 0.85rem;
    color: #4a5568;
    font-weight: 500;
}

/* --- Contact Cards --- */
.detail-contact-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    overflow: hidden;
    height: 100%;
}

.detail-contact-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    background: #f8f9fc;
    border-bottom: 1px solid #e9ecef;
}

.detail-contact-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-contact-body {
    padding: 0.5rem 0;
}

.detail-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.625rem 1.25rem;
    transition: background-color 0.15s ease;
}

.detail-contact-row:hover {
    background: #f8f9fc;
}

.detail-contact-row > i {
    font-size: 1.1rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

/* --- File Groups --- */
.detail-file-group {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    overflow: hidden;
    height: 100%;
}

.detail-file-group-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    background: #f8f9fc;
    border-bottom: 1px solid #e9ecef;
}

.detail-file-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.detail-file-list {
    padding: 0.25rem 0;
}

.detail-file-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1rem;
    color: #4a5568;
    text-decoration: none;
    transition: background-color 0.15s ease;
    border-radius: 0;
}

.detail-file-item:hover {
    background: #f0f4ff;
    color: var(--vz-primary);
}

.detail-file-name {
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- Print Styles --- */
@media print {
    .order-detail-header .btn,
    .breadcrumb-widgets,
    .app-menu,
    .navbar-header,
    .footer {
        display: none !important;
    }

    .card {
        border: none !important;
        box-shadow: none !important;
    }

    .detail-field,
    .detail-stat-card,
    .detail-yesno-card,
    .detail-contact-card {
        break-inside: avoid;
    }
}

/* --- RTL specific tweaks --- */
[dir="rtl"] .detail-contact-row > i,
[dir="rtl"] .detail-label i {
    margin-left: 0;
}

[dir="rtl"] .detail-file-item .ms-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
}
