.association-selection {
    position: relative;
}

.association-selection {
    width: 100%;
    padding-right: 30px;
    background-color: var(--bs-modal-bg);
    cursor: pointer;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.association-selection > span {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 30px;
    vertical-align: middle;
    text-align: center;
    line-height: 33px;
    padding-left: 4px;
}

.associations-tooltip {
    margin: 0;
    padding: 4px 0 0 0;
}

.associations-tooltip > hr {
    margin: 0;
    padding: 0 0 4px 0;
}

.associations-tooltip > table td {
    text-align: left;
    padding: 0 4px;
}

/****************************************************************************************/
/*** models table                                                                     ***/
/****************************************************************************************/

.models-table tr {
    cursor: pointer;
}

.models-table .position {
    width: 40px;
    text-align: center;
}

.models-table .associations {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.models-table .strategy {
    width: 40px;
    text-align: center;
}

.models-table .participant-count {
    width: 40px;
    text-align: center;
}

.models-table .repetition-count {
    width: 40px;
    text-align: center;
}

.models-table .status {
    width: 40px;
    text-align: center;
}

.models-table .status .ok {
    color: green;
}

.models-table .status .error {
    color: red;
}

/****************************************************************************************/
/*** model details                                                                    ***/
/****************************************************************************************/

.model-details .form-group {
    padding-left: 5px;
    padding-right: 5px;
}

.model-details .mandatory {
    color: red;
}

/****************************************************************************************/
/*** play table                                                                       ***/
/****************************************************************************************/

.plays-table .grip {
    width: 30px;
    text-align: center;
}

.plays-table .repetition {
    width: 50px;
    text-align: center;
}

.plays-table .round {
    width: 50px;
    text-align: center;
}

.plays-table .match {
    width: 50px;
    text-align: center;
}

.plays-table .match .btn {
    cursor: default;
    pointer-events: none;
}

.plays-table .strategy {
    width: 80px;
    text-align: center;
}

.plays-table .strategy .dropdown-item > span {
    display: inline-block;
    width: 25px;
    text-align: center;
}

.plays-table .swap-players {
    width: 60px;
    text-align: center;
}

.plays-table .swap-players i {
    --fa-animation-duration: 1s;
    --fa-animation-iteration-count: 0.5;
}

.plays-table .player1,
.plays-table .player2 {
    text-align: center;
}

.plays-table button.btn.dropdown-toggle {
    width: 100%;
}

/****************************************************************************************/
/*** error popup                                                                      ***/
/****************************************************************************************/
.error-popup {
    position: absolute;
    top: 10px;
    right: 0;
    transform: translateX(calc(100% + 20px));
    padding: 1rem 1rem 0 0;
    color: red;
    max-width: calc(50vw - 500px);
    background-color: var(--bs-modal-bg);;
    border-radius: var(--bs-modal-border-radius);
}

.error-popup h4 {
    padding-left: 1rem;
}
