.waiting {
    cursor: wait !important;
}


.btn-loading {
    opacity: 0.6;
    pointer-events: none;
}

    .btn-loading::after {
        content: " …";
    }


.spinner-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    font-size: 1.5rem;
    color: #333;
}

.icon-cell {
    width: 30px;
    text-align: center;
    padding: 0;
    white-space: nowrap;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}


.pitch1-colour {
    background-color: #fff3cd;  !important; /* light yellow */
}

.pitch2-colour {
    background-color: #f8d7da; !important; /* light red */
}

.pitch3-colour {
    background-color: #d4edda; !important; /* light green */
}

.custom-upload-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background-color: white;
    color: black;
    border: 2px;
    border-radius: 0px;
    border-color: black;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    //text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    .custom-upload-button:hover {
        background-color: #005A9E;
        transform: scale(1.03);
    }

    .custom-upload-button:active {
        transform: scale(0.98);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .custom-upload-button:focus {
        outline: 2px solid #80BFFF;
        outline-offset: 2px;
    }

    .select-mimic-button {
        font-family: inherit;
        font-size: 1rem;
        padding: 6px 12px;

    }

.level-container {
    display: flex;
    gap: 20px; /* space between the tables */
    align-items: flex-start;
}

.left-panel {
    flex: 0 1 auto;
    border: 1px solid #ccc;
    overflow-y: visible;
}

.right-panel {
    flex: 1 1 auto;
    max-height: 800px;
    overflow-y: auto;
    border: 1px solid #ccc;
}

    .left-panel th {
        position: sticky;
        top: 0;
        background: white;
        z-index: 2;
    }

    .right-panel th {
        position: sticky;
        top: 0;
        background: white;
        z-index: 2;
    }


.appt-container {
    display: flex;
    gap: 20px; /* space between the tables */
    align-items: flex-start;
}

.appttable {
    max-height: 800px; /* adjust as needed */
    overflow-y: auto; /* enables scrolling */
    flex: 1;
    border: 1px solid #ccc; /* optional */
}

.apptimporttable {
    max-height: 400px; /* adjust as needed */
    overflow-y: auto; /* enables scrolling */
    flex: 1;
    border: 1px solid #ccc; /* optional */
}



.appttable td {
    padding: 6px 12px; /* vertical | horizontal */
}

.appttable th {
    padding: 6px 12px; /* vertical | horizontal */
    position: sticky;
    top: 0;
    background: white; /* or your preferred colour */
    z-index: 2;
}

.table {
    width: 100%; /* ensures tables fill their panel */
    table-layout: fixed;
}

.xbox {
    cursor: pointer;
    font-size: 1.4rem;
    user-select: none;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 5vh;
    z-index: 1050;
    overflow-y: auto;
}

.modal-content {
    background: white;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-width: 320px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h5 {
    margin: 0;
}

.modal-body {
    padding: 16px 20px;
    overflow-y: auto;
}

.modal-footer {
    padding: 12px 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.close-button {
    background: none;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    color: #555;
}

.close-button:hover {
    color: #000;
}

.clickable-row {
    cursor: pointer;
}

.clickable-row:hover {
    background-color: #e8f0fe;
}

.level-input {
    width: 5.5ch;
    text-align: right;
}


.assessment-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 520px;
}

    .assessment-grid .row {
        display: grid;
        grid-template-columns: 1fr 2fr 50px;
        align-items: center;
        gap: 12px;
    }

    .assessment-grid label {
        font-weight: 600;
    }

.dp-grid {
    display: grid;
    gap: 6px 20px;
}

.dp-grid.desktop {
    grid-template-columns: repeat(3, 1fr);
}

.dp-grid.mobile {
    grid-template-columns: repeat(2, 1fr);
}

.dp-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.score-block {
    margin-bottom: 16px;
}

.score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    margin-bottom: 4px;
}

.score-block input[type="range"] {
    width: 100%;
}


.umpire-assessment-button {
    font-size: 1.25rem; /* Bootstrap h5 size */
    font-weight: 500;
    color: inherit;
    text-decoration: none;
}


.note-icon {
    margin-right: 6px;
    font-size: 1.1em; /* slightly larger for balance */
    vertical-align: middle;
}