.tournament-practice-draw {
}

/* Select Styling */
.tournament-practice-draw .select--custom {
    max-width: 250px;
}

/* Mobile View - Card Layout */
.tee-times-mobile {
    display: block;
}

.tee-time-card {
    background: #fff;
    padding: 1rem;
}

.tee-time-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
}

.tee-time-card__time {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.tee-time-card__tee-field {
    font-size: 1.5rem;
    text-align: right;
}

.tee-label {
    font-weight: 600;
    color: #2c3e50;
    margin-right: 0.25rem;
}

.field-label {
    color: #6c757d;
}

.tee-time-card__players {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.player-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
    min-width: 70px;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.country-flag {
    width: 20px;
    height: auto;
    vertical-align: middle;
}

.player-name {
    color: #2c3e50;
}

.player-handicap {
    color: #6c757d;
    font-size: 0.875rem;
    margin-left: 0.25rem;
}

.player-empty {
    color: #adb5bd;
}

/* Desktop View - Table Layout */
.tee-times-desktop {
    display: block;
}

.tee-times-header {
    display: grid;
    grid-template-columns: 80px 100px repeat(4, 1fr);
    gap: 1rem;
    background-color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem 0.375rem 0 0;
    border-bottom: 2px solid #dee2e6;
}

.header-cell {
    font-size: 13px;
    color: #8D8D93;
    text-transform: uppercase;
}

.tee-times-row {
    cursor: pointer;
    display: grid;
    grid-template-columns: 80px 100px repeat(4, 1fr);
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.tee-times-row:hover {
    background-color: #f8f9fa;
}

.data-cell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
}

.cell-tee {
    color: #2c3e50;
}

.tournament-practice-draw .alert {
    border-radius: 0.5rem;
    padding: 1rem;
}

.tournament-practice-draw .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Modal Styling */
.tournament-practice-draw .modal-content {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.tournament-practice-draw .modal-header {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 1.25rem;
}

.tournament-practice-draw .modal-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.25rem;
}

.tournament-practice-draw-modal input[type='email'],
.tournament-practice-draw-modal input[type='text'],
.tournament-practice-draw-modal button {
    font-size: 1.5rem;
}

.tournament-practice-draw-modal .btn-sm {
    font-size: 1.1rem;
}

/* Available Slots List */
.available-slots {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
}

.available-slot-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #fff;
    margin-right: 4px; /* Reserve space for the shift */
}

.available-slot-item:hover {
    border-color: #0d6efd;
    background-color: #f8f9ff;
    transform: translateX(4px);
}

.slot-info {
    flex: 1;
}

.slot-time {
    font-size: 1.125rem;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.slot-details {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Responsive */
@media (max-width: 767px) {
    .tournament-practice-draw .select--custom {
        min-width: 100%;
    }
    
    .tournament-practice-draw .btn {
        width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .tee-times-header,
    .tee-times-row {
        grid-template-columns: 70px 90px repeat(4, 1fr);
        gap: 0.75rem;
        font-size: 0.875rem;
    }
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.tms-pr_position-relative {
    position: relative;
}

.tms-pr_autocomplete-wrapper {
    position: relative;
}

.tms-pr_autocomplete-input {
    position: relative;
    z-index: 2;
    background: transparent;
}

.tms-pr_autocomplete-suggestion {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 0.375rem 0.75rem;
    pointer-events: none;
    z-index: 1;
    white-space: nowrap;
    overflow: hidden;
    font-family: inherit;
    font-size: inherit;
    line-height: 1.5;
    border: 1px solid transparent;
}

.tms-pr_typed-text {
    opacity: 0;
}

.tms-pr_suggested-text {
    color: #adb5bd;
}

.tms-pr_search-loading {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #6c757d;
    z-index: 3;
}

.tms-pr_search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.tms-pr_search-dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f5;
    transition: background-color 0.2s;
}

    .tms-pr_search-dropdown-item:hover,
    .tms-pr_search-dropdown-item.tms-pr_highlighted {
        background-color: #e7f1ff;
    }

    .tms-pr_search-dropdown-item:last-child {
        border-bottom: none;
    }

.tms-pr_player-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.tms-pr_player-name--booked {
    margin-left: 4px;
    color: green;
}

.tms-pr_matched-part {
    color: #212529;
    font-weight: 600;
}

.tms-pr_unmatched-part {
    color: #adb5bd;
}

.tms-pr_no-results {
    padding: 16px;
    text-align: center;
    color: #6c757d;
}

.modal-footer .d-flex {
    width: 100%;
}