/* ============================================================
   Supplier Portal — تصميم RTL عربي
   ============================================================ */

.sp-card {
    direction: rtl;
    text-align: right;
    max-width: 560px;
    margin: 30px auto;
    background: #fff;
    border: 1px solid #e6e8ec;
    border-radius: 14px;
    padding: 32px 28px;
    box-shadow: 0 6px 24px rgba(31, 58, 95, .08);
    font-family: 'Tahoma', 'Segoe UI', Arial, sans-serif;
    color: #1f2a37;
}

.sp-title {
    margin: 0 0 6px;
    font-size: 24px;
    color: #1f3a5f;
}

.sp-step {
    margin: 0 0 22px;
    color: #6b7280;
    font-size: 14px;
}

/* النماذج */
.sp-form label {
    display: block;
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
}

.sp-form input[type="text"],
.sp-form input[type="email"],
.sp-form input[type="password"],
.sp-form input[type="file"] {
    width: 100%;
    margin-top: 6px;
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
    background: #fafbfc;
}

.sp-form input:focus {
    outline: none;
    border-color: #1f3a5f;
    box-shadow: 0 0 0 3px rgba(31, 58, 95, .12);
    background: #fff;
}

.sp-req { color: #dc2626; }

/* الأزرار */
.sp-btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    background: #eef2f7;
    color: #1f3a5f;
    transition: all .15s;
    font-family: inherit;
}
.sp-btn:hover { background: #e2e8f0; }

.sp-btn-primary {
    width: 100%;
    background: #1f3a5f;
    color: #fff;
    margin-top: 8px;
}
.sp-btn-primary:hover { background: #162b47; color: #fff; }

.sp-btn-ghost {
    background: transparent;
    border-color: #d1d5db;
    color: #6b7280;
}

/* التنبيهات */
.sp-notice {
    padding: 13px 16px;
    border-radius: 9px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.6;
}
.sp-notice-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.sp-notice-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.sp-notice-info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

.sp-muted {
    color: #6b7280;
    font-size: 13px;
    margin-top: 14px;
}
.sp-muted a { color: #1f3a5f; font-weight: 600; }

/* لوحة التحكم */
.sp-dash-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.sp-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}
.sp-badge-pending  { background: #fef3c7; color: #92400e; }
.sp-badge-approved { background: #d1fae5; color: #065f46; }
.sp-badge-rejected { background: #fee2e2; color: #991b1b; }

.sp-data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
}
.sp-data-table th,
.sp-data-table td {
    padding: 12px 10px;
    text-align: right;
    border-bottom: 1px solid #eef0f3;
    font-size: 14px;
}
.sp-data-table th {
    width: 40%;
    color: #6b7280;
    font-weight: 600;
}
.sp-data-table td { color: #1f2a37; }
.sp-data-table a { color: #1f3a5f; font-weight: 600; }

/* استجابة الجوال */
@media (max-width: 600px) {
    .sp-card { margin: 16px; padding: 22px 18px; }
    .sp-title { font-size: 20px; }
}
