﻿
.player-matchup-root {
    width: 100%;
    margin-bottom: 1rem;
}
    .player-matchup-root .button-display {
        margin-bottom: .5rem;
    }

.pl-box, .tm-box {
    width: 85%;
    vertical-align: top;

}
    .pl-box .headblock {
        width: 100%;
        display: flex;
        align-items: center;
        margin-bottom: 2px;
    }

        .pl-box .headblock h4 {
            margin-bottom: 0;
        }

        .pl-box .headblock .player-new-btn {
            margin-left: 20px;
            cursor: pointer;
            display: none;
            padding: 6px 20px;
            font-size: 14px;
            text-decoration: none;
            transition: all .3s;
            text-align: center;
            background-color: #fff;
            color: #327657;
            border: 1px solid #333;
        }
    .tm-box .sel-player {
        display: flex;
    }

ul.box {
    list-style: none;
    padding: 0;
    min-height: 270px;
    max-height: 400px;
    height: 100%;
    overflow: hidden;
    overflow-y: auto;
    border: 0.5px solid #333;
    width: 100%;
    background: #171B21;
}

    ul.box .player-block {
        cursor: pointer;
        display: flex;
        align-items: center;
        border-bottom: 0.5px solid #333;
        width: 100%;
        height: 42px;
        overflow: hidden;
    }
    ul.box .player-name {
        display: flex;
        align-items: center;
        padding-left: 5px;
        height: auto;
        font-size: 13px;
        overflow: hidden;
    }
    ul.box .player-extra {
        display: flex;
        align-items: center;
        padding-left: 5px;
        height: auto;
        font-size: 12px;
        overflow: hidden;
    }

    ul.box .selected {
        position: sticky;
        top: 0;
        left: 0;
        background-color: #6B7B83;
        color: #fff;
    }
    ul.box .selected:nth-child(2) {
        
        top: 42px;        
    }

    /*ul.box li {
        margin: 1px 0;
    }*/
    ul.box.pmu-team-list li {
        margin: 2px 0;
    }

/* teams */
.team-block {
    display: flex;
    /* flex-direction: row; */
    align-items: center;
    width: 100%;
    /*background-color: #31353C;*/
    color: #fff;
    border-radius: 0;
    border: 1px solid #31353C;
}

    .team-block .rank-div {
        display: flex;
        align-items: center;
        width: 38px;
        background-color: #19528A;
        height: 38px;
        cursor: move;
       /* border-radius: 4px 0 0 4px;*/
    }
        .team-block .rank-div:active {
            cursor: grabbing;
        }

    .team-block .rank-fld {
        text-align: center;
        font-size: 13px;
        color: #fff;
        width: 100%;
    }

    .team-block .team-players {
        text-align: left;
        flex-grow: 1;
        font-size: 13px;
        padding-left: 4px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* number of lines to show */
        -webkit-box-orient: vertical;
    }

  /*  .team-block .del-btn, .team-block .details-btn {
        cursor: pointer;
        display: inline-block;
        height: 38px;
        width: 38px;
        padding: 10px 6px;
        font-size: 1em;
        line-height: 1.4;
        text-decoration: none;
        transition: all .3s;
        text-align: center;
        background-color: #fff;
    }*/

    .team-block .del-btn {
       /* border: 1px solid #F39C12;*/
        color: #fff;
    }

        .team-block .del-btn:hover {
            background: #ECC442;
            color: #fff;
        }
        .team-block .del-btn svg {
            width: 12px;
            height: 12px;
        }

    .team-block .details-btn {
        border: 1px solid #088D4D;
        color: #088D4D;
        display: none;
    }

        .team-block .details-btn:hover {
            background: #088D4D;
            color: #fff;
        }

    .team-block.unpaid .details-btn {
        border: 1px solid #088D4D;
        color: #088D4D;
    }

        .team-block.unpaid .details-btn:hover {
            background: #088D4D;
            color: #fff;
        }

  

.participant-add-btn {
    cursor: pointer;
    display: inline-block;
    padding: 5px 20px;
    margin: 0 4px;
    font-size: 1em;
    text-decoration: none;
    transition: all .3s;
    text-align: center;
    background-color: #339977;
    color: #fff;
    border: none;
    border-radius: 4px;
}

.unsel-box {
    display: flex;
    align-items: center;
}

    .unsel-box .selected-count {
        width: 15%;
    }
.selected-teams-box {
    display: flex;
    align-items: center;
}
    .selected-teams-box .teams-shuffle-btn {
        cursor: pointer;
        padding: 5px 20px;
        margin-left: 4px;
        font-size: 1em;
        text-decoration: none;
        transition: all .3s;
        text-align: center;
        background-color: #336699;
        color: #fff;
        border: none;
        border-radius: 4px
    }
input[type=search]::-webkit-search-cancel-button {
    -webkit-appearance: searchfield-cancel-button;
}
.assign-player-box {
    padding: 10px;
    background: #171B21;
    margin-bottom: 20px;
    width: 100%;
}
.app-option {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
}
.app-option label {
   margin:0;
   padding-right: 5px;
}

/* Right column container */
/*.player-team-box .tm-box {
    background: #171B21;
    border: 1px solid #333;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(20, 20, 40, 0.06);
    padding: 14px;
}*/

    /* Title row */
/*    .player-team-box .tm-box > h4 {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 0 0 10px 0;
        font-weight: 700;
        letter-spacing: .2px;
    }*/
.player-team-box h4 {
    font-size: 15px;
}
    .player-team-box .tm-box > h4 {
        margin-bottom: 10px;
    }
.player-team-box .teams-count {
    font-weight: 600;
    color: #E6EDF3;
}
.player-team-box .players-count {
    font-weight: 600;
    color: #E6EDF3;
}
/* Search + actions bar */
.player-team-box .selected-teams-box {
    display: flex;
    gap: 10px;
    align-items: center;
    position: sticky; /* ako je container scroll */
    top: 0;
    z-index: 2;
}

    /* Search input */
    /*.player-team-box .selected-teams-box input[type="search"] {
        flex: 1 1 auto;
        border: 1px solid #e6e8f0;
        border-radius: 10px;
        padding: 10px 12px;
        outline: none;
        background: #fff;
    }*/

        .player-team-box .selected-teams-box input[type="search"]:focus {
            border-color: #c7cffc;
            box-shadow: 0 0 0 4px rgba(99,102,241,.12);
        }

/* Teams list container */
.player-team-box .sel-player .box.teams {
    margin: 12px 0 0 0;
    padding: 0;
    list-style: none;
    max-height: 520px; /* prilagodi */
    overflow: auto;
    scrollbar-gutter: stable;
}



/* Card body (your .team-block) */
/*.player-team-box .team-block {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #eef0f6;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(20,20,40,.04);
    transition: box-shadow .15s ease, transform .06s ease, border-color .15s ease;
}*/
    /* rank i drag da ne rastežu */
    .player-team-box .team-block .rank-div {
        flex: 0 0 auto;
    }

    .player-team-box .team-block:hover {
        border-color: #e3e7ff;
        box-shadow: 0 10px 22px rgba(20,20,40,.08);
    }

    .player-team-box .team-block:active {
        transform: translateY(1px);
    }

/* Rank pill */
.player-team-box .rank-div {
    display: flex;
    align-items: center;
    justify-content: center;
}

/*.player-team-box .rank-fld {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #111827;
    font-weight: 700;
    font-size: 13px;
}*/

/* Player text */
/*.player-team-box .team-players {
    font-size: 15px;*/ /* ← veće */
    /*line-height: 1.35;*/ /* ← prozračnije */
    /*font-weight: 600;
    padding-right: 8px;
    color: #111827;
    word-break: break-word;
}*/
/* IME: neka uzme sav prostor */
/*.player-team-box .team-block .team-players {
    flex: 1 1 auto;
    min-width: 0;*/ /* ključ: omogućuje skraćivanje/ellipsis */
    /*font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    padding-right: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;*/ /* makni ovo ako želiš prelazak u novi red */
/*}
    .player-team-box .team-players a {
        color: inherit;
        text-decoration: none;
        display: inline-block;
        max-width: 100%;
    }*/

        .player-team-box .team-players a:hover {
            text-decoration: underline;
        }

/* Buttons */
.player-team-box .team-block .del-btn {
 /*   border: 1px solid #333;
    border-radius: 4px;*/
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    /*.player-team-box .team-block button:hover {
        box-shadow: 0 8px 18px rgba(20,20,40,.08);
    }*/

/* gumbi desno */
.player-team-box .team-block .del-btn {
    flex: 0 0 auto;
}

.player-team-box .dropdown-menu a {
    color: #E6EDF3;
}
    .player-team-box .dropdown-menu a:hover,
    .player-team-box .dropdown-menu a:active,
    .player-team-box .dropdown-menu a:focus,
    .pmu-team-menu-global a:hover {
        color: #E6EDF3;
        background: #31353C;
    }

.player-team-box .dropdown-toggle {
    padding: 0 15px 0 5px;
}  

    .player-team-box .dropdown-toggle i {
        color: #E6EDF3;
    }

.pmu-team-menu-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
}
    /*.pmu-team-menu-btn::before {
        content: "\f013";
        font-family: icomoon;
        font-size: 14px;
        color: #fff;
    }*/
.pmu-team-menu-global a.dropdown-item {
    color: #E6EDF3;
}
.pmu-team-menu-global a.dropdown-item:hover,
.pmu-team-menu-global a.dropdown-item:active,
.pmu-team-menu-global a.dropdown-item:focus {    
    background: #31353C;
}
@media only screen and (min-width: 768px) {
    .pl-box, .tm-box {
        width: 100%;        
    }
}
@media only screen and (min-width: 992px) {
    /*.team-block .del-btn, .team-block .details-btn {
        width: 7%;
    }
    .team-block .rank-div {
        width: 9%;
    }
    .team-block .team-players {
        width: 84%;
    }*/
    .assign-player-box {
        min-height: 520px;
    }
}
