/* TEAMS INDEX */

.teams-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) 285px;
    gap:14px;
    align-items:start
}

.teams-main,.teams-sidebar{min-width:0}

.teams-heading{margin-bottom:12px}
.teams-heading h1{
    margin:0 0 4px;
    color:#25282d;
    font-size:25px;
    font-weight:900
}
.teams-heading p{
    margin:0;
    color:#8b8f95;
    font-size:9px
}

.teams-filter{
    margin:12px 0;
    padding:10px;
    display:grid;
    grid-template-columns:minmax(0,1fr) 170px 85px;
    gap:7px;
    background:#fff;
    border:1px solid #d4d7da
}

.teams-filter input,
.teams-filter select{
    min-width:0;
    height:34px;
    padding:0 9px;
    background:#fff;
    border:1px solid #d3d6da;
    color:#3b3e43;
    font-size:9px
}

.teams-filter button{
    height:34px;
    border:0;
    background:#d62531;
    color:#fff;
    font-size:8px;
    font-weight:900;
    text-transform:uppercase;
    cursor:pointer
}

.teams-box-title{
    display:flex;
    align-items:center;
    justify-content:space-between
}

.teams-box-title span:last-child{
    color:#8b8f95;
    font-size:8px
}

.teams-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr))
}

.team-card{
    min-height:84px;
    display:grid;
    grid-template-columns:62px minmax(0,1fr) 105px 18px;
    gap:9px;
    align-items:center;
    padding:9px 10px;
    border-right:1px solid #eee;
    border-bottom:1px solid #eee;
    color:#292c31
}

.team-card:hover{
    background:#fafafb
}

.team-card-logo{
    width:56px;
    height:56px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f2f3f4
}

.team-card-logo img{
    max-width:47px;
    max-height:47px;
    object-fit:contain
}

.team-card-placeholder{
    color:#9ca1a7;
    font-size:13px;
    font-weight:900
}

.team-card-info{
    min-width:0
}

.team-card-info strong{
    display:block;
    color:#282b30;
    font-size:11px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis
}

.team-acronym{
    display:block;
    margin-top:2px;
    color:#777b82;
    font-size:7px;
    font-weight:800
}

.team-country{
    display:block;
    margin-top:5px;
    color:#8c9096;
    font-size:8px
}

.team-card-stats{
    display:grid;
    grid-template-columns:1fr 1fr;
    text-align:center
}

.team-card-stats span{
    color:#888c92;
    font-size:6px;
    text-transform:uppercase
}

.team-card-stats b{
    display:block;
    margin-bottom:2px;
    color:#2b2e33;
    font-size:12px
}

.team-card-arrow{
    color:#9a9ea4;
    font-size:18px;
    text-align:right
}

.team-db-info{
    padding:15px;
    text-align:center
}

.team-db-info strong{
    display:block;
    color:#292c31;
    font-size:24px
}

.team-db-info span{
    color:#888c92;
    font-size:7px;
    text-transform:uppercase
}

.team-db-info p{
    margin:12px 0 0;
    padding-top:12px;
    border-top:1px solid #eee;
    color:#777c82;
    font-size:8px;
    line-height:1.5
}

.teams-empty{
    padding:30px;
    color:#888c92;
    font-size:9px;
    text-align:center
}

@media(max-width:900px){
    .teams-grid{
        grid-template-columns:1fr
    }
}

@media(max-width:850px){
    .teams-layout{display:block}
    .teams-sidebar{margin-top:12px}
}

@media(max-width:650px){
    .teams-filter{
        grid-template-columns:1fr 90px
    }

    .teams-filter input{
        grid-column:1/-1
    }

    .team-card{
        grid-template-columns:52px minmax(0,1fr) 18px
    }

    .team-card-logo{
        width:48px;
        height:48px
    }

    .team-card-logo img{
        max-width:40px;
        max-height:40px
    }

    .team-card-stats{
        display:none
    }
}

/* Country flag */
.team-country{
    display:flex;
    align-items:center;
    gap:5px;
    margin-top:5px;
    color:#8c9096;
    font-size:8px;
}

.team-country-flag{
    width:18px;
    height:11px;
    flex:0 0 18px;
    object-fit:cover;
    border:1px solid rgba(0,0,0,.10);
}
