/* =========================================================
   ترتيب الفريقين - بطاقة المباراة
   ========================================================= */

.match-teams-standing-widget {
    width: 100%;
    padding: 20px 16px;
    box-sizing: border-box;
     margin-bottom: 8px;
}


/* العنوان */

.match-teams-standing-title {
    margin-bottom: 18px;

    color: #111827;

    font-size: 15px;
    font-weight: 700;

    text-align: center;
}


/* الجدول */

.match-teams-standing-table {
    width: 100%;
}


/* رأس الجدول */

.match-teams-standing-head {
    display: grid;

    grid-template-columns:
        24px
        minmax(0, 1fr)
        32px
        42px
        42px;

    align-items: center;

    gap: 6px;

    padding: 0 4px 8px;

    color: #6b7280;

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

    border-bottom: 1px solid #e5e7eb;
}


/* الصف */

.match-team-standing-row {
    display: grid;

    grid-template-columns:
        24px
        minmax(0, 1fr)
        32px
        42px
        42px;

    align-items: center;

    gap: 6px;

    min-height: 54px;

    padding: 7px 4px;

    box-sizing: border-box;

    border-bottom: 1px solid #f1f5f9;
}


/* آخر صف */

.match-team-standing-row:last-child {
    border-bottom: 0;
}


/* المركز */

.match-team-standing-row .standing-rank,
.match-teams-standing-head .standing-rank {
    text-align: center;
}


/* الفريق */

.match-team-standing-row .standing-team {
    display: flex;
    align-items: center;

    min-width: 0;

    gap: 7px;

    color: #111827;

    font-size: 12px;
    font-weight: 600;
}


/* شعار الفريق */

.match-team-standing-row .standing-team img {
    display: block;

    width: 28px;
    height: 28px;

    flex: 0 0 28px;

    object-fit: contain;
}


/* اسم الفريق */

.match-team-standing-row .standing-team span {
    min-width: 0;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;
}


/* الأرقام */

.match-team-standing-row .standing-played,
.match-team-standing-row .standing-diff,
.match-team-standing-row .standing-points,

.match-teams-standing-head .standing-played,
.match-teams-standing-head .standing-diff,
.match-teams-standing-head .standing-points {
    text-align: center;
}


/* النقاط */

.match-team-standing-row .standing-points {
    color: #111827;

    font-weight: 800;
}

@media (max-width: 768px) {

    .match-teams-standing-widget {
        margin-top: 0;
    }

}

.match-teams-standing-table {
    padding-top: 10px;
}

@media (max-width: 768px) {

    .match-teams-standing-widget {
        width: calc(100vw - 30px) !important;
        max-width: none !important;

        margin-left: calc((100% - (100vw - 30px)) / 2) !important;
        margin-right: calc((100% - (100vw - 30px)) / 2) !important;

        box-sizing: border-box;
    }

}

/* =========================================================
   ترتيب الفريقين - الفرنسية LTR
   ========================================================= */

.match-teams-standing-widget--fr {
    direction: ltr;
    text-align: left;
}


/* العنوان */

.match-teams-standing-widget--fr .match-teams-standing-title {
    direction: ltr;
    text-align: center;
}


/* الجدول */

.match-teams-standing-widget--fr .match-teams-standing-table {
    direction: ltr;
}


/* رأس الجدول */

.match-teams-standing-widget--fr .match-teams-standing-head {
    direction: ltr;
}


/* الصفوف */

.match-teams-standing-widget--fr .match-team-standing-row {
    direction: ltr;
}


/* الفريق */

.match-teams-standing-widget--fr .standing-team {
    direction: ltr;
    justify-content: flex-start;
    text-align: left;
}


/* اسم الفريق */

.match-teams-standing-widget--fr .standing-team span {
    text-align: left;
}


/* الأرقام */

.match-teams-standing-widget--fr .standing-rank,
.match-teams-standing-widget--fr .standing-played,
.match-teams-standing-widget--fr .standing-diff,
.match-teams-standing-widget--fr .standing-points {
    text-align: center;
}