.loan-orders-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    font-family: 'IRANYekanX';
    direction: rtl;
}

.orders-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.loan-orders-error {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
}

.btn-login {
    display: inline-block;
    padding: 12px 30px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    margin-top: 15px;
    transition: background 0.3s;
}

.btn-login:hover {
    background: #005a87;
}

.no-orders {
    background: #fff;
    padding: 60px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    color: #666;
}

.orders-table-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table thead {
    background: linear-gradient(135deg, #667eea 0%, #004fa1 100%);
    color: #fff;
}

.orders-table th {
    padding: 18px 15px;
    text-align: right;
    font-weight: 600;
    font-size: 14px;
}

.orders-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.orders-table tbody tr:hover {
    background: #f9f9f9;
}

.orders-table td {
    padding: 18px 15px;
    text-align: right;
    color: #555;
    font-size: medium;
    font-family: 'IRANYekanX';
}

.orders-table td small {
    display: block;
    color: #999;
    font-size: 12px;
    margin-top: 4px;
}

.credit-score {
    display: inline-block;
    padding: 6px 14px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
}

.text-muted {
    color: #999;
}

.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    width: 80%;
    text-align: center;
}

.status-pending {
    background: #020202;
    color: #ffbf05;
    width: 80%;
    text-align: center;
}

.status-completed {
    background: #00a728;
    color: #ffffff;
    width: 80%;
    text-align: center;
       border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
    width: 80%;
    text-align: center;
}

.status-failed {
    background: #e50015;
    color: #ffffff;
    width: 80%;
    text-align: center;
    
}

.status-processing {
    background: #d1ecf1;
    color: #0c5460;
    width: 80%;
    text-align: center;
}

.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-receive-loan {
    background: #4caf50;
    color: #fff;
}

.btn-receive-loan:hover:not(.disabled) {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* اصلاح دکمه اعتبارسنجی */
.btn-credit-check {
    background: #0572c9;
    color: #fff;
    padding: 8px 16px; /* جایگزین height و min-height */
    width: 100%;       /* دکمه کل عرض سلول را بگیرد */
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
    font-family: 'IRANYekanX';
}

.btn-credit-check:hover {
    background: #1976d2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}


.btn-download {
    background: #ff9800;
    color: #fff;
}

.btn-download:hover:not(.disabled) {
    background: #f57c00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.btn-payment {
        background: #007032;
    color: #fff;
      border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
}

.btn-payment:hover {
    background: #7b1fa2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.3);
}

.btn.disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ✅ دکمه غیرفعال (خاکستری) */
.btn-disabled {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

/* ✅ دکمه فعال (سبز) */
.btn-active {
    background-color: #28a745 !important;
    color: white !important;
    cursor: pointer !important;
}

.btn-active:hover {
    background-color: #218838 !important;
}

/* overlay */

#zohal-modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.45);
    z-index:99999;

    align-items:center;
    justify-content:center;

    font-family:IRANSans, sans-serif;
}


/* modal box */

.zohal-modal-content{

    background:#fff;
    width:420px;
    max-width:92%;

    border-radius:12px;

    padding:28px;

    box-shadow:
    0 20px 60px rgba(0,0,0,0.15);

    position:relative;

    animation:zohalFade .25s ease;
}


/* animation */

@keyframes zohalFade{

    from{
        opacity:0;
        transform:translateY(15px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}


/* close button */

.zohal-close{

    position:absolute;
    left:12px;
    top:12px;

    border:none;
    background:none;

    font-size:22px;
    cursor:pointer;
    color:#777;
}


/* title */

.zohal-title{

    margin:0 0 8px;
    font-size:20px;
    font-weight:700;
}


/* description */

.zohal-desc{

    margin:0 0 20px;
    font-size:13px;
    color:#666;
}


/* form */

.zohal-form{
    display:flex;
    flex-direction:column;
    gap:12px;
}


/* inputs */

.zohal-field input{

    width:100%;
    height:44px;

    border:1px solid #e3e3e3;

    border-radius:8px;

    padding:0 12px;

    font-size:14px;

    transition:all .2s;
}


.zohal-field input:focus{

    border-color:#ef4056;

    outline:none;

    box-shadow:0 0 0 2px rgba(239,64,86,0.15);
}


/* button */

.zohal-btn{

    height:44px;

    border:none;

    border-radius:8px;

    background:#ef4056;

    color:#fff;

    font-size:14px;

    font-weight:600;

    cursor:pointer;

    transition:all .2s;
}


.zohal-btn:hover{

    background:#e7354b;
}


/* Responsive Design */
/* =========================
   Responsive Design
========================= */
@media (max-width: 768px) {
    .loan-orders-container { padding: 10px; }
    
    .orders-table thead { display: none; }
    
    .orders-table tbody tr {
        display: block;
        margin-bottom: 15px;
        background: #fff;
        border-radius: 12px;
        padding: 15px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    .orders-table td {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border-bottom: 1px dashed #eee;
        font-size: 13px;
    }
    
    /* حذف حاشیه از آخرین ردیف هر کارت */
    .orders-table td:last-child { 
        border-bottom: none; 
        padding-top: 15px;
    }

    /* استایل لیبل (مثلا: "شماره سفارش:") */
    .orders-table td::before {
        content: attr(data-label);
        color: #888;
        font-weight: normal;
    }

    /* مدیریت وضعیت‌ها */
    .status-badge {
        width: auto !important;
        padding: 4px 12px;
        font-size: 11px;
    }

    /* مدیریت دکمه‌ها (مدل دیجی‌کالایی) */
    .action-buttons {
        display: flex;
        flex-direction: row;
        justify-content: left;
        gap: 10px;
        width: 100%;
    }

    .btn, .btn-credit-check {
        flex: 1; /* هر دکمه نصف فضا را می‌گیرد */
        max-width: 140px;
        padding: 10px 5px;
        font-size: 12px;
    }
}
