﻿/* Index international-only additions: scoped so existing Sudanese fixtures stay unchanged. */
.gedian-landing .gs-tab-panel[data-panel="international"] .gii-root {
    font-family: Tajawal,Arial,sans-serif;
    direction: rtl;
    color: #1f2937;
    font-size: 12px;
    max-width: 100%;
    padding: 8px 0 16px
}

.gii-root * {
    box-sizing: border-box
}

.gii-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    margin-bottom: 9px
}

.gii-label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px
}

    .gii-label strong {
        font-size: 14px;
        color: #315b24
    }

    .gii-label small {
        font-size: 10px;
        color: #7d8c7e
    }

.gii-live-pulse {
    height: 7px;
    width: 7px;
    display: inline-block;
    border-radius: 50%;
    background: #608e3c
}

.gii-count {
    display: flex;
    gap: 8px;
    align-items: center;
    white-space: nowrap;
    font-size: 11px;
    color: #657168
}

    .gii-count b {
        font-size: 12px;
        color: #345d2c
    }

.gii-live-count {
    background: #edf5e8;
    padding: 4px 7px;
    border-radius: 20px
}

.gii-date-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 9px;
    background: #fff;
    padding: 7px;
    border-radius: 12px;
    border: 1px solid #e5e7eb
}

.gii-dates {
    display: flex;
    gap: 4px;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: thin;
    justify-content: space-around
}

.gii-date-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    text-align: center;
    flex: 1 0 53px;
    min-width: 49px;
    min-height: 52px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #4b5b4d;
    text-decoration: none !important;
    padding: 5px 4px
}

    .gii-date-pill small {
        font-size: 9.5px;
        line-height: 1.2;
        white-space: nowrap
    }

    .gii-date-pill b {
        font-size: 13px
    }

    .gii-date-pill.is-selected-date {
        background: #5b8c3b !important;
        border-color: #5b8c3b;
        color: #fff !important
    }

    .gii-date-pill.is-today:not(.is-selected-date) {
        border-color: #cdddc5;
        background: #f2f8ee
    }

.gii-date-arrow {
    flex: 0 0 27px;
    height: 32px;
    display: grid;
    place-items: center;
    background: #f3f7f0;
    color: #527e39 !important;
    border-radius: 7px;
    font-size: 19px;
    text-decoration: none !important
}

.gii-today {
    font-size: 10px;
    color: #55813e !important;
    white-space: nowrap;
    text-decoration: none !important
}

.gii-filters {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap
}

    .gii-filters button {
        appearance: none;
        border: 1px solid #e1e8df;
        background: #fff;
        color: #637163;
        border-radius: 20px;
        padding: 6px 12px;
        font: 600 11px Tajawal,Arial,sans-serif;
        cursor: pointer
    }

        .gii-filters button.is-active {
            color: #fff;
            background: #5b8c3b;
            border-color: #5b8c3b
        }

.gii-leagues {
    display: grid;
    gap: 9px
}

.gii-league {
    background: #fff;
    border: 1px solid #dfe7dc;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 7px rgba(38,65,31,.04)
}

.gii-league-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    background: #f3f7ef;
    border-bottom: 1px solid #e2eadd
}

.gii-league-title {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0
}

.gii-league-logo, .gii-club-logo {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: white;
    border: 1px solid #edf0eb;
    border-radius: 50%;
    overflow: hidden
}

.gii-league-logo {
    height: 31px;
    width: 31px
}

    .gii-league-logo img, .gii-club-logo img {
        width: 90%;
        height: 90%;
        object-fit: contain
    }

.gii-league-name {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0
}

    .gii-league-name strong {
        font-size: 12px;
        color: #304f28;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis
    }

    .gii-league-name small {
        font-size: 9.5px;
        color: #7f8c7b
    }

.gii-league-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap
}

    .gii-league-tools small {
        font-size: 10px;
        color: #6f7d69
    }

    .gii-league-tools button {
        border: 1px solid #d7e3d0;
        border-radius: 7px;
        background: #fff;
        color: #4f803b;
        width: 24px;
        height: 24px;
        cursor: pointer;
        font-size: 16px
    }

.gii-match {
    display: grid;
    grid-template-columns: minmax(0,1fr) 95px minmax(0,1fr);
    align-items: center;
    gap: 4px;
    min-height: 69px;
    padding: 9px 12px;
    border-bottom: 1px solid #eef0eb
}

    .gii-match:last-child {
        border-bottom: 0
    }

.gii-team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0
}

    .gii-team strong {
        font-size: 11px;
        font-weight: 700;
        line-height: 1.4;
        overflow-wrap: anywhere
    }

.gii-away {
    flex-direction: row-reverse;
    text-align: left
}

.gii-club-logo {
    width: 34px;
    height: 34px
}

    .gii-club-logo span {
        font-weight: 700;
        color: #456a35
    }

.gii-result {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: center;
    align-items: center;
    justify-content: center;
    min-width: 0
}

    .gii-result small {
        font-size: 9.5px;
        color: #869286;
        line-height: 1.1
    }

    .gii-result b {
        font-size: 14px;
        font-weight: 800;
        color: #243d2a;
        white-space: nowrap;
        line-height: 1.2
    }

    .gii-result span {
        font-size: 9.5px;
        color: #768279;
        white-space: nowrap
    }

    .gii-result.is-live span {
        color: #c33136;
        font-weight: 800
    }

    .gii-result.is-live b {
        color: #b6222f
    }

    .gii-result.is-finished span {
        color: #56744b
    }

.gii-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 25px 12px;
    text-align: center;
    background: #fff;
    border: 1px dashed #d9e3d4;
    border-radius: 12px
}

    .gii-empty span {
        font-size: 23px
    }

    .gii-empty strong {
        font-size: 12px
    }

    .gii-empty p {
        font-size: 10px;
        color: #7b857a;
        margin: 0
    }

.gii-filter-empty {
    font-size: 11px;
    padding: 13px
}

.gii-footnote {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 9px;
    color: #89938b;
    font-size: 9.5px
}

.gii-status-dot {
    width: 6px;
    height: 6px;
    background: #5b8c3b;
    border-radius: 50%
}

    .gii-status-dot.failed {
        background: #d15a4b
    }

.gii-root [hidden] {
    display: none !important
}

@media(max-width:550px) {
    .gii-summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px
    }

    .gii-date-toolbar {
        padding: 5px;
        gap: 3px
    }

    .gii-date-pill {
        flex-basis: 43px;
        min-width: 43px
    }

        .gii-date-pill small {
            font-size: 9px
        }

    .gii-match {
        grid-template-columns: minmax(0,1fr) 71px minmax(0,1fr);
        padding: 8px 7px;
        gap: 2px;
        min-height: 61px
    }

    .gii-club-logo {
        height: 28px;
        width: 28px
    }

    .gii-team {
        gap: 4px
    }

        .gii-team strong {
            font-size: 10px
        }

    .gii-result b {
        font-size: 13px
    }

    .gii-result small, .gii-result span {
        font-size: 9px
    }

    .gii-league-head {
        padding: 8px
    }

    .gii-league-tools small {
        display: none
    }
}
