
/* =========================
   کانتینر اصلی
========================= */
.loan-order-details-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 25px;
    background: #f5f5f5;
    border-radius: 12px;
    font-family: 'IRANYekanX';
    direction: rtl;
}

/* =========================
   هدر سفارش
========================= */
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.order-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #333;
}

/* =========================
   وضعیت سفارش (مدرن)
========================= */
.order-status {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
}

.status-pending { background:#fff4e5; color:#ff9800; }
.status-completed { background:#e8f5e9; color:#2e7d32; }
.status-failed { background:#ffebee; color:#c62828; }
.status-cancelled { background:#eceff1; color:#546e7a; }

/* =========================
   کارت‌های اطلاعات
========================= */
.order-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.order-section h3 {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 700;
    color: #444;
    border-right: 4px solid #ef4056;
    padding-right: 8px;
}

/* =========================
   جدول مدرن
========================= */
.order-info-table {
    width: 100%;
    border-collapse: collapse;
}

.order-info-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.order-info-table tr:last-child {
    border-bottom: none;
}

.order-info-table th {
    text-align: right;
    width: 40%;
    padding: 10px 0;
    font-weight: 500;
    color: #777;
}

.order-info-table td {
    text-align: left;
    padding: 10px 0;
    font-weight: 600;
    color: #333;
}

.order-info-table a {
    color: #ef4056;
    text-decoration: none;
}

.order-info-table a:hover {
    text-decoration: underline;
}

/* =========================
   اعتبارسنجی
========================= */
.credit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.credit-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* =========================
   یادداشت
========================= */
.order-note-content {
    background: #fafafa;
    padding: 15px;
    border-radius: 8px;
    line-height: 1.8;
    font-size: 14px;
}

/* =========================
   دکمه‌ها
========================= */
.order-actions {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.btn-back {
    background: #ef4056;
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.btn-back:hover {
    background: #d81b3a;
}

/* =========================
   خطا
========================= */
.loan-error {
    background: #fff3f3;
    color: #d32f2f;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

/* =========================
   ریسپانسیو موبایل
========================= */
@media (max-width: 768px) {

    .loan-order-details-container {
        padding: 15px;
        margin: 15px;
    }

    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .order-section {
        padding: 15px;
    }

    /* تبدیل جدول به کارت اپلیکیشنی */
    .order-info-table,
    .order-info-table tbody,
    .order-info-table tr,
    .order-info-table th,
    .order-info-table td {
        display: block;
        width: 100%;
    }

    .order-info-table tr {
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: 1px dashed #eee;
    }

    .order-info-table th {
        font-size: 12px;
        color: #999;
        padding: 5px 0;
    }

    .order-info-table td {
        font-size: 14px;
        padding: 0 0 8px;
        text-align: right;
    }

    .credit-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .order-actions {
        flex-direction: column;
    }

    .btn-back {
        
        text-align: center;
    }
}
