.lwf-standings {

    width:100%;
    border-collapse:collapse;
    font-family:'Cairo',sans-serif;

}

.lwf-standings th{

    background:#0f5132;
    color:#fff;
    padding:12px 8px;
    text-align:center;

}

.lwf-standings td{

    padding:10px;
    text-align:center;
    border-bottom:1px solid #ececec;

}

.lwf-standings tbody tr:hover{

    background:#f8fafc;

}

.lwf-team{

    display:flex;
    align-items:center;
    gap:10px;

}

.lwf-team img{

    width:30px;
    height:30px;
    object-fit:contain;

}

.lwf-form{

    display:flex;
    justify-content:center;
    flex-direction:row-reverse;
    gap:3px;

}

.lwf-form span{

    width:22px;
    height:22px;
    border-radius:5px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:11px;
    font-weight:bold;

}

.form-win{

    background:#16a34a;

}

.form-draw{

    background:#9ca3af;

}

.form-loss{

    background:#dc2626;

}

.next-opponent img{

    width:30px;
    height:30px;
    object-fit:contain;
    transition:.2s;

}

.next-opponent img:hover{

    transform:scale(1.18);

}

.rank-up{

    color:#16a34a;
    font-weight:bold;

}

.rank-down{

    color:#dc2626;
    font-weight:bold;

}

.excluded{

    color:#dc2626;
    opacity:.55;

}

.lwf-team-cell span {
    text-decoration: none;
}

.lwf-team-cell:hover span {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lwf-team-cell{

display:flex;
align-items:center;
font-size:14px;
 font-weight: 600;
gap:10px;

}

/* لا توجد منافسات */

.lwf-standings-empty {
    padding: 35px 20px;
    text-align: center;

    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;

    color: #64748b;
    font-size: 15px;
}


/* =========================================================
   الهاتف
   ========================================================= */

@media (max-width: 768px) {

    .lwf-standings-page {
        padding: 25px 12px 90px;
    }

    .lwf-page-heading {
        margin-bottom: 20px;
    }

    .lwf-page-heading h1 {
        font-size: 28px;
    }

    .lwf-page-heading p {
        font-size: 14px;
    }


    /* الفلتر يصبح سحب أفقي في الهاتف */

    .lwf-standings-filters {
        justify-content: flex-start;
        flex-wrap: nowrap;

        overflow-x: auto;
        overflow-y: hidden;

        -webkit-overflow-scrolling: touch;

        padding: 7px;

        border-radius: 12px;

        scrollbar-width: none;
    }

    .lwf-standings-filters::-webkit-scrollbar {
        display: none;
    }


    .lwf-standings-filter {
        flex: 0 0 auto;

        min-height: 40px;
        padding: 0 15px;

        font-size: 13px;
        white-space: nowrap;
    }


    .lwf-public-standing {
        border-radius: 12px;
        margin-bottom: 22px;
    }


    .lwf-public-standing-header {
        padding: 14px 15px;
        flex-direction: column;
        align-items: flex-start;
    }


    .lwf-public-standing-header h2 {
        font-size: 18px;
    }

}

/* =========================================================
   صفحة الترتيب العامة
   ========================================================= */

.lwf-standings-page {
    width: min(
        var(--site-max-width),
        calc(100% - (var(--site-side-space) * 2))
    );

    max-width: none;
    margin: 0 auto;
    padding: 24px 0 40px;

    box-sizing: border-box;
}


/* =========================================================
   عنوان الصفحة
   ========================================================= */

.lwf-standings-page .lwf-page-heading {
    margin-bottom: 24px;
}

.lwf-standings-page .lwf-page-heading h1 {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
}

.lwf-standings-page .lwf-page-heading p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}


/* =========================================================
   فلاتر صفحة الترتيب
   ========================================================= */

.lwf-standings-page .lwf-standings-filters {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;

    margin: 20px 0;

    padding: 0;
    border: 0;
    background: transparent;
}

.lwf-standings-page .lwf-standings-filter-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lwf-standings-page .lwf-standings-filter-group select {
    height: 42px;
    min-width: 145px;

    padding: 0 14px;

    border: 1px solid #e5e7eb;
    border-radius: 10px;

    background-color: #fff;

    appearance: none;
    -webkit-appearance: none;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: left 14px center;
    background-size: 12px 12px;

    color: #111827;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
    outline: none;
    box-sizing: border-box;
}

.lwf-standings-page .lwf-standings-filters::-webkit-scrollbar {
    display: none;
}


/* أزرار الفئات فقط */

.lwf-standings-page .lwf-standings-filters .lwf-standings-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;
    padding: 0 18px;

    border: 1px solid transparent;
    border-radius: 10px;

    background: transparent;
    color: #111827;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;
    white-space: nowrap;

    transition: .2s ease;
}

.lwf-standings-page .lwf-standings-filters .lwf-standings-filter:hover {
    color: #16a34a;
}

.lwf-standings-page .lwf-standings-filters .lwf-standings-filter.active {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}


/* =========================================================
   محتوى الترتيب
   ========================================================= */

.lwf-standings-page .lwf-standings-content {
    width: 100%;
}


/* كل بطاقة ترتيب */
.lwf-standings-page .competition-overview-standings-card {
    width: 100%;
    max-width: 100%;
    margin: 0 0 20px;

    box-sizing: border-box;
}


/* =========================================================
   لا نسمح للفلتر الداخلي أن يتمدد بشكل غريب
   نفس فلتر صفحة المنافسة
   ========================================================= */


/* اختيار المجموعة */
.lwf-standings-page
.competition-overview-group-selector {
    width: auto;

    margin-inline-start: auto;
    margin-inline-end: 0;

    display: flex;
    align-items: center;
}

.lwf-standings-page
.competition-overview-group-selector select {
    min-width: 120px;
    height: 40px;

    padding: 0 14px;

    border: 1px solid #e5e7eb;
    border-radius: 10px;

    background-color: #ffffff;

    appearance: none;
    -webkit-appearance: none;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    background-size: 12px 12px;

    color: #111827;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
    outline: none;
    box-sizing: border-box;
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 768px) {

    .lwf-standings-page {
    padding: 18px 0 30px;
    }

    .lwf-standings-page .lwf-page-heading h1 {
        font-size: 24px;
    }

    .lwf-standings-page .lwf-standings-filters {
        margin-bottom: 16px;
    }

    .lwf-standings-page
    .competition-overview-standings-card {
        width: 100%;
        margin-bottom: 16px;
    }

    .lwf-standings-page
    .competition-overview-standings-card
    .lwf-standings-filter {
        flex-wrap: wrap;
    }

    .lwf-standings-page
    .competition-overview-group-selector {
        width: auto;
        margin: 0;
    }

}



.competition-overview-group-selector label {
    margin: 0;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.competition-overview-group-selector select:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, .10);
}

/* =========================================================
   صفحة الترتيب الرئيسية - الهاتف
   جميع الإحصائيات دون scroll أفقي
========================================================= */

@media (max-width: 768px) {

    .lwf-standings-page {
        width: 100%;
        max-width: 100%;
        padding: 18px 0 30px;
        box-sizing: border-box;
    }

    /* البطاقة */
    .lwf-standings-page .competition-overview-standings-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* منع التمرير الأفقي */
    .lwf-standings-page .match-standings {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    /* الجدول كامل داخل عرض البطاقة */
    .lwf-standings-page .lwf-standings-table {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100%;
        table-layout: fixed;
        border-collapse: collapse;
    }

    /* كل الأعمدة والخلايا */
    .lwf-standings-page .lwf-standings-table th,
    .lwf-standings-page .lwf-standings-table td {
        display: table-cell;
        min-width: 0 !important;
        padding: 8px 1px;
        font-size: 9px;
        line-height: 1.3;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        box-sizing: border-box;
    }

    /* رقم الترتيب */
    .lwf-standings-page .lwf-standings-table th:nth-child(1),
    .lwf-standings-page .lwf-standings-table td:nth-child(1) {
        width: 5%;
    }

    /* الفريق */
    .lwf-standings-page .lwf-standings-table th:nth-child(2),
    .lwf-standings-page .lwf-standings-table td:nth-child(2) {
        width: 29%;
        text-align: right;
        padding-right: 2px;
        padding-left: 2px;
    }

    /* الأعمدة العشرة المتبقية */
    .lwf-standings-page .lwf-standings-table th:nth-child(n+3),
    .lwf-standings-page .lwf-standings-table td:nth-child(n+3) {
        width: 6.6%;
        padding-right: 0;
        padding-left: 0;
    }

    /* اسم الفريق والشعار */
    .lwf-standings-page .lwf-team-cell {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        direction: rtl;

        width: 100%;
        max-width: 100%;
        min-width: 0;

        margin: 0;
        padding: 0;
        gap: 3px;

        overflow: hidden;
        white-space: nowrap;
        box-sizing: border-box;

        font-size: 10px !important;
        font-weight: 500;
    }

    /* شعار الفريق */
    .lwf-standings-page .lwf-team-logo {
        width: 15px;
        height: 15px;
        flex: 0 0 15px;
        object-fit: contain;
    }

    /* اسم الفريق */
    .lwf-standings-page .lwf-team-cell span {
        display: block;
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* شعار المنافس القادم */
    .lwf-standings-page .lwf-next-team {
        width: 15px;
        height: 15px;
        max-width: 100%;
        object-fit: contain;
    }

}

/* =========================================
   صفحة الترتيب الرئيسية - الهاتف
   إظهار جميع الأعمدة دون scroll أفقي
========================================= */

@media (max-width: 768px) {

    /* بطاقة الترتيب */
    .lwf-standings-page .match-standings-card {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    /* الجدول - الكلاس الصحيح */
    .lwf-standings-page .lwf-standings {
        display: table !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        table-layout: fixed !important;
        border-collapse: collapse;
    }

    /* إظهار جميع العناوين والخلايا */
    .lwf-standings-page .lwf-standings th,
    .lwf-standings-page .lwf-standings td {
        display: table-cell !important;
        min-width: 0 !important;
       padding: 4px 0 !important;
        font-size:12px !important;
        line-height: 1.3;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        box-sizing: border-box;
    }

    /* رقم الترتيب */
    .lwf-standings-page .lwf-standings th:nth-child(1),
    .lwf-standings-page .lwf-standings td:nth-child(1) {
        width: 5%;
    }

    /* الفريق والشعار */
    .lwf-standings-page .lwf-standings th:nth-child(2),
    .lwf-standings-page .lwf-standings td:nth-child(2) {
        width: 30%;
        padding-right: 2px !important;
        padding-left: 2px !important;
    }

    /* أعمدة الإحصائيات */
    .lwf-standings-page .lwf-standings th:nth-child(n+3),
    .lwf-standings-page .lwf-standings td:nth-child(n+3) {
        width: 6.5%;
    }

    /* اسم الفريق */
    .lwf-standings-page .lwf-team-cell {
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        direction: rtl;
        width: 100%;
        min-width: 0;
        margin: 0;
        gap: 3px;
        overflow: hidden;
        font-size: 10px !important;
        font-weight: 500;
        box-sizing: border-box;
    }

    /* شعار الفريق */
    .lwf-standings-page .lwf-team-logo {
        width: 15px !important;
        height: 15px !important;
        min-width: 15px;
        flex: 0 0 15px;
        object-fit: contain;
    }

    /* اسم الفريق الطويل */
    .lwf-standings-page .lwf-team-cell span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* شعار المنافس القادم */
    .lwf-standings-page .lwf-next-team {
        width: 15px !important;
        height: 15px !important;
        object-fit: contain;
    }

}

/* =========================================
   صفحة الترتيب الرئيسية - ضبط أعمدة الهاتف
========================================= */

@media (max-width: 768px) {

    .competition-overview-standings-card .lwf-standings {
        display: table !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        table-layout: fixed !important;
        border-collapse: collapse !important;
        margin: 0 !important;
    }

    /* تنسيق جميع الخلايا */
    .competition-overview-standings-card .lwf-standings th,
    .competition-overview-standings-card .lwf-standings td {
        display: table-cell !important;
        min-width: 0 !important;
        padding: 7px 0 !important;
        font-size: 12px !important;
        line-height: 1.4;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        box-sizing: border-box;
    }

    /* رقم الترتيب */
    .competition-overview-standings-card .lwf-standings th:nth-child(1),
    .competition-overview-standings-card .lwf-standings td:nth-child(1) {
        width: 5% !important;
    }

    /* اسم الفريق والشعار */
    .competition-overview-standings-card .lwf-standings th:nth-child(2),
    .competition-overview-standings-card .lwf-standings td:nth-child(2) {
        width: 40% !important;
        text-align: right;
        padding-right: 3px !important;
        padding-left: 2px !important;
    }

    /* أعمدة الإحصائيات */
    .competition-overview-standings-card .lwf-standings th:nth-child(n+3):not(:last-child),
    .competition-overview-standings-card .lwf-standings td:nth-child(n+3):not(:last-child) {
        width: 7% !important;
        padding-right: 3 !important;
        padding-left: 2 !important;
    }

    /* ترتيب اسم الفريق والشعار */
    .competition-overview-standings-card .lwf-team-cell {
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        direction: rtl;
        gap: 3px;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin: 0;
        padding: 0;
        overflow: hidden;
        box-sizing: border-box;
        font-size: 12px !important;
    }

    .competition-overview-standings-card .lwf-team-logo {
        width: 15px !important;
        height: 15px !important;
        min-width: 15px;
        flex: 0 0 15px;
        object-fit: contain;
    }

    .competition-overview-standings-card .lwf-team-cell span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* منع التمرير الأفقي */
    .competition-overview-standings-card .match-standings {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box;
    }
}

/* إخفاء عمود التالي فقط */
.competition-overview-standings-card .lwf-standings-table th:last-child,
.competition-overview-standings-card .lwf-standings-table td:last-child {
    display: none !important;
}

/* =========================================
   إصلاح أعمدة الترتيب في الهاتف
========================================= */

@media (max-width: 768px) {

    .lwf-standings-page .lwf-standings th,
    .lwf-standings-page .lwf-standings td,
    .lwf-standings-page .lwf-standings-table th,
    .lwf-standings-page .lwf-standings-table td {
        display: table-cell !important;
        min-width: 0 !important;
        white-space: nowrap;
        box-sizing: border-box;
    }

    .lwf-standings-page .lwf-standings,
    .lwf-standings-page .lwf-standings-table {
        width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed !important;
    }

    .lwf-standings-page .match-standings {
        overflow-x: hidden !important;
    }

}

/* إخفاء عمود المنافس القادم فقط */
.competition-overview-standings-card .lwf-standings-table th:last-child,
.competition-overview-standings-card .lwf-standings-table td:last-child {
    display: none !important;
}

/* تقليل المسافة بين أعمدة الترتيب في الهاتف */
@media (max-width: 768px) {

    .lwf-standings-page
    .competition-overview-standings-card
    .lwf-standings th:nth-child(1),
    .lwf-standings-page
    .competition-overview-standings-card
    .lwf-standings td:nth-child(1) {
        width: 2% !important;
    }

    /* عمود الفريق */
    .lwf-standings-page
    .competition-overview-standings-card
    .lwf-standings th:nth-child(2),
    .lwf-standings-page
    .competition-overview-standings-card
    .lwf-standings td:nth-child(2) {
        width: 43% !important;
    }

    /* أعمدة الإحصائيات */
    .lwf-standings-page
    .competition-overview-standings-card
    .lwf-standings th:nth-child(n+3),
    .lwf-standings-page
    .competition-overview-standings-card
    .lwf-standings td:nth-child(n+3) {
        width: 5.78% !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }
}

/* =========================================================
   صفحة الترتيب الرئيسية - تقارب أعمدة الهاتف
========================================================= */

@media (max-width: 768px) {

    .lwf-standings-page
    .competition-overview-standings-card
    .lwf-standings-table {
        width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed !important;
        border-collapse: collapse !important;
    }

  .lwf-standings-page
.competition-overview-standings-card
.lwf-standings-table th,
.lwf-standings-page
.competition-overview-standings-card
.lwf-standings-table td {
    padding: 15px 0 !important;
    box-sizing: border-box;
}

    /* عمود الترتيب */
    .lwf-standings-page
    .competition-overview-standings-card
    .lwf-standings-table th:nth-child(1),
    .lwf-standings-page
    .competition-overview-standings-card
    .lwf-standings-table td:nth-child(1) {
        width: 5% !important;
    }

    /* عمود الفريق */
    .lwf-standings-page
    .competition-overview-standings-card
    .lwf-standings-table th:nth-child(2),
    .lwf-standings-page
    .competition-overview-standings-card
    .lwf-standings-table td:nth-child(2) {
        width: 41% !important;
    }

    /* أعمدة الإحصائيات */
    .lwf-standings-page
    .competition-overview-standings-card
    .lwf-standings-table th:nth-child(n+3):not(:last-child),
    .lwf-standings-page
    .competition-overview-standings-card
    .lwf-standings-table td:nth-child(n+3):not(:last-child) {
        width: 6% !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

}

@media (max-width: 768px) {

    .lwf-standings-page
    .competition-overview-standings-card
    .lwf-standings-table tbody td:not(:nth-child(2)) {
        font-size: 12px !important;
        font-weight: 400 !important;
    }

}

@media (max-width: 768px) {

    .lwf-standings-page
    .competition-overview-standings-card
    {
        width: calc(100% - 24px) !important;
        max-width: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }

}

/* =========================================
   توحيد عرض عناصر صفحة الترتيب في الهاتف
========================================= */

@media (max-width: 768px) {

    /* العنوان + الفلاتر + بطاقة الترتيب
       + بطاقة قواعد كسر التعادل */
    .lwf-standings-page .lwf-page-heading,
    .lwf-standings-page .lwf-standings-filters,
    .lwf-standings-page .competition-overview-standings-card,
    .lwf-standings-page .lwf-competition-info {

        width: calc(100% - 24px) !important;
        max-width: none !important;

        margin-left: auto !important;
        margin-right: auto !important;

        box-sizing: border-box !important;
    }

    /* بطاقة قواعد كسر التعادل */
    .lwf-standings-page .lwf-competition-info .lwf-info-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .lwf-team-cell{
    direction:rtl;
}

/* الفرنسية — ترتيب الفريق من اليسار إلى اليمين */
.competition-overview-standings-card--fr .lwf-team-cell{
    direction:ltr;
    justify-content:flex-start;
    text-align:left;
}

}

/* =========================================================
   صفحة الترتيب - تنظيم الفلاتر في الكمبيوتر والهاتف
========================================================= */

/* الكمبيوتر */
.lwf-standings-page .lwf-standings-filters {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;

    width: 100%;
    margin: 20px 0;
    padding: 0;

    overflow: visible;
    box-sizing: border-box;
}

.lwf-standings-page .lwf-standings-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.lwf-standings-page .lwf-standings-filter-group label {
    margin: 0;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.lwf-standings-page .lwf-standings-filter-group select {
    width: auto;
    min-width: 145px;
    max-width: 220px;
    height: 42px;
    padding: 0 14px;

    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background-color: #fff;

    color: #111827;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    box-sizing: border-box;
}

/* الهاتف */
@media (max-width: 768px) {

    .lwf-standings-page .lwf-standings-filters {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;

        width: calc(100% - 24px);
        margin: 16px auto;
        padding: 0;

        overflow: visible;
    }

    .lwf-standings-page .lwf-standings-filter-group {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;

        width: 100%;
        min-width: 0;
    }

    .lwf-standings-page .lwf-standings-filter-group label {
        font-size: 12px;
        line-height: 1.5;
    }

    .lwf-standings-page .lwf-standings-filter-group select {
        width: 100%;
        min-width: 0;
        max-width: none;
        height: 42px;
        padding: 0 10px;
        font-size: 12px;
    }

}

/* =========================================================
   الفرنسية — سهم القوائم المنسدلة
========================================================= */

.competition-overview-standings-card--fr
.competition-overview-group-selector select {
    background-position: right 14px center;
    padding-left: 14px;
    padding-right: 34px;
}

/* =========================================================
   الفرنسية — أسهم فلاتر المنافسة والفئة
========================================================= */

.home-standings--fr .home-standings__filter select {
    background-position: right 10px center;
    padding-left: 10px;
    padding-right: 30px;
}

@media (max-width: 700px) {

    .home-standings--fr .home-standings__filter select {
        background-position: right 9px center;
        padding-left: 12px;
        padding-right: 28px;
    }

}

/* =========================================================
   الفرنسية — اتجاه جدول الترتيب من اليسار إلى اليمين
========================================================= */

.competition-overview-standings-card--fr .lwf-standings,
.competition-overview-standings-card--fr .lwf-standings-table {
    direction: ltr;
}

.competition-overview-standings-card--fr .lwf-standings th,
.competition-overview-standings-card--fr .lwf-standings td,
.competition-overview-standings-card--fr .lwf-standings-table th,
.competition-overview-standings-card--fr .lwf-standings-table td {
    direction: ltr;
}

/* =========================================================
   STANDINGS PAGE — FRENCH LTR
   نفس نظام Home Standings
========================================================= */

.lwf-standings-page--fr {
    direction: ltr;
}


/* =========================
   عنوان الصفحة
========================= */

.lwf-standings-page--fr .lwf-page-heading {
    direction: ltr;
    text-align: left;
}

.lwf-standings-page--fr .lwf-page-heading h1,
.lwf-standings-page--fr .lwf-page-heading p {
    direction: ltr;
    text-align: left;
}


/* =========================
   الفلاتر الرئيسية
   Saison / Compétition / Catégorie
========================= */

.lwf-standings-page--fr .lwf-standings-filters {
    direction: ltr;
    justify-content: flex-start;
}

.lwf-standings-page--fr .lwf-standings-filter-group {
    direction: ltr;
}

.lwf-standings-page--fr .lwf-standings-filter-group label {
    direction: ltr;
    text-align: left;
}

.lwf-standings-page--fr .lwf-standings-filter-group select {
    direction: ltr;
    text-align: left;

    background-position: right 14px center;

    padding-left: 14px;
    padding-right: 34px;
}


/* =========================
   فلتر Tous / À domicile / À l'extérieur
========================= */

.lwf-standings-page--fr .lwf-standings-filter {
    direction: ltr;
    justify-content: flex-start;
}

.lwf-standings-page--fr .lwf-standings-filter button {
    direction: ltr;
}


/* =========================
   عنوان المنافسة + الشعار
========================= */

.lwf-standings-page--fr .match-competition {
    direction: ltr;
    flex-direction: row;
    justify-content: flex-start;

    text-align: left;
}

.lwf-standings-page--fr .match-competition img {
    order: 0;
}

.lwf-standings-page--fr .match-competition__link {
    direction: ltr;
    text-align: left;
}


/* =========================
   اختيار المجموعة
========================= */

.lwf-standings-page--fr .competition-overview-group-selector {
    direction: ltr;
    margin-inline-start: auto;
    margin-inline-end: 0;
}

.lwf-standings-page--fr .competition-overview-group-selector select {
    direction: ltr;
    text-align: left;

    background-position: right 14px center;

    padding-left: 14px;
    padding-right: 34px;
}


/* =========================
   جدول الترتيب
========================= */

.lwf-standings-page--fr .lwf-standings,
.lwf-standings-page--fr .lwf-standings-table {
    direction: ltr;
}

.lwf-standings-page--fr .lwf-standings th,
.lwf-standings-page--fr .lwf-standings td,
.lwf-standings-page--fr .lwf-standings-table th,
.lwf-standings-page--fr .lwf-standings-table td {
    direction: ltr;
}


/* =========================
   الفريق
========================= */

.lwf-standings-page--fr .lwf-team-cell {
    direction: ltr;
    justify-content: flex-start;
    text-align: left;
}


/* =========================
   بطاقات المعلومات تحت الترتيب
   Règles / Notes
========================= */

.lwf-standings-page--fr .lwf-competition-info {
    direction: ltr;
}

.lwf-standings-page--fr .lwf-competition-info .lwf-info-card {
    direction: ltr;
    text-align: left;
}

.lwf-standings-page--fr .lwf-competition-info .lwf-info-card h4 {
    direction: ltr;
    justify-content: flex-start;
    text-align: left;
}

.lwf-standings-page--fr .lwf-competition-info .lwf-info-card p {
    direction: ltr;
    text-align: left;
}

.lwf-standings-page--fr .lwf-competition-info .lwf-rule-row {
    direction: ltr;
}

.lwf-standings-page--fr .lwf-competition-info .lwf-rule-name {
    text-align: left;
}


/* صفحة الترتيب العامة — الأعمدة الظاهرة على الهاتف */
@media (max-width: 768px) {

    .lwf-standings-page .competition-overview-standings-card
    .lwf-standings-table th:nth-child(4),
    .lwf-standings-page .competition-overview-standings-card
    .lwf-standings-table td:nth-child(4),

    .lwf-standings-page .competition-overview-standings-card
    .lwf-standings-table th:nth-child(5),
    .lwf-standings-page .competition-overview-standings-card
    .lwf-standings-table td:nth-child(5),

    .lwf-standings-page .competition-overview-standings-card
    .lwf-standings-table th:nth-child(6),
    .lwf-standings-page .competition-overview-standings-card
    .lwf-standings-table td:nth-child(6),

    .lwf-standings-page .competition-overview-standings-card
    .lwf-standings-table th:last-child,
    .lwf-standings-page .competition-overview-standings-card
    .lwf-standings-table td:last-child {
        display: none !important;
    }
}


/* صفحة الترتيب العامة — مطابقة جدول صفحة المنافسة */
@media (max-width: 768px) {

    .lwf-standings-page .competition-overview-standings-card .lwf-standings-table {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        table-layout: fixed !important;
        border-collapse: collapse !important;
    }

    /* الخطوط والمسافات */
    .lwf-standings-page .competition-overview-standings-card .lwf-standings-table th,
    .lwf-standings-page .competition-overview-standings-card .lwf-standings-table td {
        box-sizing: border-box;
        min-width: 0 !important;
        padding: 8px 1px !important;
        line-height: 1.3;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
    }

    .lwf-standings-page .competition-overview-standings-card .lwf-standings-table thead th {
        font-size: 12px !important;
        font-weight: 700;
    }

    .lwf-standings-page .competition-overview-standings-card .lwf-standings-table tbody td {
        font-size: 12px !important;
    }

    /* توزيع عرض الأعمدة الظاهرة */
    .lwf-standings-page .competition-overview-standings-card .lwf-standings-table th:nth-child(1),
    .lwf-standings-page .competition-overview-standings-card .lwf-standings-table td:nth-child(1) {
        width: 5% !important;
    }

    /* الفريق */
    .lwf-standings-page .competition-overview-standings-card .lwf-standings-table th:nth-child(2),
    .lwf-standings-page .competition-overview-standings-card .lwf-standings-table td:nth-child(2) {
        width: 30% !important;
        padding-right: 3px !important;
        padding-left: 3px !important;
    }

    /* لعب */
    .lwf-standings-page .competition-overview-standings-card .lwf-standings-table th:nth-child(3),
    .lwf-standings-page .competition-overview-standings-card .lwf-standings-table td:nth-child(3),

    /* له، عليه، فارق الأهداف، خصم، نقاط */
    .lwf-standings-page .competition-overview-standings-card .lwf-standings-table th:nth-child(7),
    .lwf-standings-page .competition-overview-standings-card .lwf-standings-table td:nth-child(7),
    .lwf-standings-page .competition-overview-standings-card .lwf-standings-table th:nth-child(8),
    .lwf-standings-page .competition-overview-standings-card .lwf-standings-table td:nth-child(8),
    .lwf-standings-page .competition-overview-standings-card .lwf-standings-table th:nth-child(9),
    .lwf-standings-page .competition-overview-standings-card .lwf-standings-table td:nth-child(9),
    .lwf-standings-page .competition-overview-standings-card .lwf-standings-table th:nth-child(10),
    .lwf-standings-page .competition-overview-standings-card .lwf-standings-table td:nth-child(10),
    .lwf-standings-page .competition-overview-standings-card .lwf-standings-table th:nth-child(11),
    .lwf-standings-page .competition-overview-standings-card .lwf-standings-table td:nth-child(11) {
       width: 12% !important;
padding-right: 0 !important;
padding-left: 0 !important;
    }

    /* النقاط بخط عريض */
    .lwf-standings-page .competition-overview-standings-card .lwf-standings-table tbody td:nth-child(11) {
        font-weight: 700 !important;
    }

    /* اسم الفريق والشعار */
    .lwf-standings-page .competition-overview-standings-card .lwf-team-cell {
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        direction: rtl;
        gap: 3px;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin: 0;
        padding: 0;
        font-size: 12px !important;
        font-weight: 500;
        overflow: hidden;
        white-space: nowrap;
        box-sizing: border-box;
    }

    .lwf-standings-page .competition-overview-standings-card .lwf-team-cell span {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .lwf-standings-page .competition-overview-standings-card .lwf-team-logo {
        width: 15px !important;
        height: 15px !important;
        min-width: 15px;
        flex: 0 0 15px;
        object-fit: contain;
    }

    /* إخفاء الفوز والتعادل والخسارة والمنافس القادم */
    .lwf-standings-page .competition-overview-standings-card .lwf-standings-table th:nth-child(4),
    .lwf-standings-page .competition-overview-standings-card .lwf-standings-table td:nth-child(4),
    .lwf-standings-page .competition-overview-standings-card .lwf-standings-table th:nth-child(5),
    .lwf-standings-page .competition-overview-standings-card .lwf-standings-table td:nth-child(5),
    .lwf-standings-page .competition-overview-standings-card .lwf-standings-table th:nth-child(6),
    .lwf-standings-page .competition-overview-standings-card .lwf-standings-table td:nth-child(6),
    .lwf-standings-page .competition-overview-standings-card .lwf-standings-table th:nth-child(12),
    .lwf-standings-page .competition-overview-standings-card .lwf-standings-table td:nth-child(12) {
        display: none !important;
    }
}



/* إبعاد أعمدة الإحصائيات — صفحة الترتيب العامة */
@media (max-width: 768px) {
    .lwf-standings-page .match-standings > table.lwf-standings-table th,
    .lwf-standings-page .match-standings > table.lwf-standings-table td {
        padding-right: 8px !important;
        padding-left: 8px !important;
    }

    .lwf-standings-page .match-standings > table.lwf-standings-table th:nth-child(2),
    .lwf-standings-page .match-standings > table.lwf-standings-table td:nth-child(2) {
        padding-right: 3px !important;
        padding-left: 3px !important;
    }
}


/* تصحيح إشارة السالب في الخصم والنقاط فقط */
.lwf-standings-page .match-standings .lwf-standings-table td:nth-child(10),
.lwf-standings-page .match-standings .lwf-standings-table td:nth-child(11) {
    direction: ltr !important;
    unicode-bidi: isolate;
    text-align: center;
}


/* تثبيت اتجاه رقم الخصم السالب */
.lwf-standings-page .match-standings .lwf-standings-table tbody td:nth-child(10) {
    direction: ltr !important;
    unicode-bidi: isolate !important;
    text-align: center !important;
}

/* =========================================
   الفرنسية — وضع خطوط مفتاح الترتيب على اليسار
========================================= */

.competition-overview-standings-card--fr
.lwf-standings-legend .legend-item {
    direction: ltr;
    flex-direction: row;
}

/* =========================================================
   الفرنسية — وضع مؤشر المنسحب والمقصى على يسار صف الفريق
   ========================================================= */

.competition-overview-standings-card--fr
.lwf-standings-table tbody tr.withdrawn-row {
    box-shadow: inset 4px 0 0 #9ca3af !important;
}

.competition-overview-standings-card--fr
.lwf-standings-table tbody tr.excluded-row {
    box-shadow: inset 4px 0 0 #fb923c !important;
}
