/* Golf League Dashboard frontend styles */
.gld-dashboard .gld-season-grid-wrap {
    position: relative !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.gld-dashboard .gld-season-grid-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.gld-dashboard .gld-season-grid-table th:first-child,
.gld-dashboard .gld-season-grid-table td:first-child,
.gld-dashboard .gld-season-grid-table tbody th:first-child {
    position: -webkit-sticky !important;
    position: sticky !important;
    left: 0 !important;
    z-index: 10 !important;
    background: #fffdf8 !important;
    box-shadow: 2px 0 0 rgba(234, 215, 173, 0.95) !important;
}

.gld-dashboard .gld-season-grid-table thead th:first-child {
    z-index: 20 !important;
    background: #f7f0df !important;
}

.gld-dashboard .gld-season-grid-table tbody th:first-child {
    min-width: 95px;
    max-width: 150px;
    white-space: nowrap;
}

.gld-dashboard .gld-table-swipe-note,
.gld-table-swipe-note {
    display: block !important;
    margin: 10px 0 0 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #3f5f3b !important;
    text-align: center !important;
}

/* iOS Safari sticky-column support */
.gld-dashboard .gld-season-grid-wrap {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: scroll !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    transform: translateZ(0);
}

.gld-dashboard .gld-season-grid-table {
    table-layout: auto !important;
    width: max-content !important;
    min-width: 980px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.gld-dashboard .gld-season-grid-table th:first-child,
.gld-dashboard .gld-season-grid-table td:first-child,
.gld-dashboard .gld-season-grid-table tbody th:first-child {
    position: -webkit-sticky !important;
    position: sticky !important;
    left: 0 !important;
    z-index: 50 !important;
    min-width: 105px !important;
    width: 105px !important;
    max-width: 130px !important;
    background-clip: padding-box !important;
}

.gld-dashboard .gld-season-grid-table thead th:first-child {
    z-index: 70 !important;
}

.gld-dashboard .gld-season-grid-table tbody th:first-child {
    z-index: 60 !important;
}

@supports (-webkit-touch-callout: none) {
    .gld-dashboard .gld-season-grid-wrap {
        overflow-x: scroll !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .gld-dashboard .gld-season-grid-table th:first-child,
    .gld-dashboard .gld-season-grid-table td:first-child,
    .gld-dashboard .gld-season-grid-table tbody th:first-child {
        position: -webkit-sticky !important;
        position: sticky !important;
        left: 0 !important;
        z-index: 80 !important;
    }

    .gld-dashboard .gld-season-grid-table thead th:first-child {
        z-index: 90 !important;
    }
}

.gld-status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.gld-status-item {
    background: #fffdf8;
    border: 1px solid #ead7ad;
    border-radius: 10px;
    padding: 12px;
}
.gld-status-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #3f5f3b;
    font-weight: 700;
    margin-bottom: 3px;
}
@media (max-width: 800px) {
    .gld-status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 480px) {
    .gld-status-grid {
        grid-template-columns: 1fr;
    }
}
