.btn {
    background-color: #008e70 !important; /* Green primary color */
    border-color: #008e70 !important;
    color: white !important;
    padding: 0.375rem 0.75rem; /* Standard padding for consistent size */
    font-size: 1rem;           /* Standard font size */
    border-width: 1px;         /* Ensure border width is consistent */
}

.btn:hover {
    background-color: #006a54 !important; /* Slightly darker green for hover */
    border-color: #006a54 !important;
}

/* Custom Secondary Button */
.btn-secondary-custom {
    background-color: white !important;      /* White background */
    color: #008e70 !important;               /* Text color (same as your primary button) */
    border: 1px solid #008e70 !important;    /* Border with the same color as the text */
    padding: 0.375rem 0.75rem;               /* Match primary button padding */
    font-size: 1rem;                         /* Match primary button font size */
    border-width: 1px;                       /* Ensure border width matches */
}

.btn-secondary-custom:hover {
    background-color: #f8f9fa !important;    /* Slightly gray on hover */
    color: #005f47 !important;               /* Darker text color on hover */
    border-color: #005f47 !important;        /* Darker border color */
}

.btn-secondary-custom:focus {
    outline: none !important;                /* Remove outline on focus */
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.1) !important; /* Optional: add focus shadow */
}

.btn-league-management {
    background-color: #8ed3f9 !important;
    border-color: #8ed3f9 !important;
    color: #083b5d !important;
}

.btn-league-management:hover {
    background-color: #69c2f5 !important;
    border-color: #69c2f5 !important;
    color: #062e49 !important;
}

/* Ensure both buttons are small when using btn-sm */
.btn-sm {
    padding: 0.25rem 0.5rem !important; /* Match size for both buttons */
    font-size: 0.875rem !important;     /* Ensure consistent font size for small buttons */
    border-radius: 0.2rem;              /* Ensure consistent border radius */
}

.grpr-navbar-shell {
    position: relative;
}

.grpr-navbar-brand {
    font-size: 1.35rem;
    line-height: 1.15;
}

.grpr-nav-active-league-mobile,
.grpr-nav-active-league-desktop {
    color: #1d4e89;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 991.98px) {
    .grpr-navbar-shell {
        min-height: 68px;
    }

    .grpr-navbar-left {
        min-width: 0;
        gap: 0.5rem !important;
    }

    .grpr-nav-active-league-mobile {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        max-width: calc(100% - 220px);
        text-align: center;
    }
}

@media (min-width: 992px) {
    .grpr-nav-active-league-item {
        margin-right: 0.6rem;
        min-width: 9.5rem;
        justify-content: center;
    }

    .grpr-nav-active-league-desktop {
        max-width: 20ch;
        text-align: center;
    }
}

/* Rotate text for table headers */
.rotate {
    transform: rotate(-90deg);
    transform-origin: left bottom;
    white-space: nowrap;
    vertical-align: bottom;
    height: 150px; /* Adjust as needed */
    width: 30px; /* Adjust as needed */
}

.rotate th {
    padding: 5px;
}

.partner-heatmap-table {
    width: max-content !important;
    max-width: none;
    table-layout: auto;
}

.partner-heatmap-corner {
    min-width: 0;
    width: auto;
}

.partner-heatmap-col-header {
    height: 230px;
    min-width: 0;
    width: auto;
    padding: 0 0.25rem 0.5rem;
    vertical-align: bottom;
    text-align: center;
    overflow: visible;
}

.partner-heatmap-col-label {
    display: inline-block;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
}

.partner-heatmap-row-header {
    min-width: 0;
    width: auto;
    white-space: nowrap;
}

.partner-heatmap-total-header,
.partner-heatmap-total-cell {
    background-color: #d0d4da;
    min-width: 0;
    width: auto;
    padding: 0.35rem 0.45rem;
    text-align: center;
    vertical-align: middle;
    font-weight: 600;
}

.partner-heatmap-total-header {
    height: 230px;
    padding: 0 0 0.5rem;
    vertical-align: bottom;
    overflow: visible;
}

.partner-heatmap-total-label {
    display: inline-block;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
}

.partner-heatmap-table .heatmap-cell {
    padding: 0.35rem 0.45rem;
    text-align: center;
    vertical-align: middle;
}

.course-heatmap-table {
    width: max-content !important;
    max-width: none;
    table-layout: auto;
}

.course-heatmap-row-header {
    min-width: 0;
    width: auto;
    white-space: nowrap;
    text-align: left !important;
    font-weight: 600;
}

.course-heatmap-col-header {
    height: 230px;
    min-width: 0;
    width: auto;
    padding: 0 0.25rem 0.5rem;
    vertical-align: bottom;
    text-align: center;
    overflow: visible;
}

.course-heatmap-col-label {
    display: inline-block;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
}

.course-heatmap-total-header,
.course-heatmap-total-cell {
    background-color: #d0d4da;
    min-width: 0;
    width: auto;
    padding: 0.35rem 0.45rem;
    text-align: center;
    vertical-align: middle;
    font-weight: 600;
}

.course-heatmap-total-header {
    height: 230px;
    padding: 0 0.25rem 0.5rem;
    vertical-align: bottom;
    overflow: visible;
}

.course-heatmap-total-label {
    display: inline-block;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
}

.course-heatmap-table td {
    padding: 0.35rem 0.45rem;
    text-align: center;
    vertical-align: middle;
}

.date-heatmap-table {
    width: max-content !important;
    max-width: none;
    table-layout: auto;
}

.date-heatmap-row-header {
    min-width: 0;
    width: auto;
    white-space: nowrap;
    text-align: left !important;
    font-weight: 600;
}

.date-heatmap-col-header {
    height: 170px;
    min-width: 0;
    width: auto;
    padding: 0 0.25rem 0.5rem;
    vertical-align: bottom;
    text-align: center;
    overflow: visible;
}

.date-heatmap-col-label {
    display: inline-block;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
}

.date-heatmap-total-header,
.date-heatmap-total-cell {
    background-color: #d0d4da;
    min-width: 0;
    width: auto;
    padding: 0.35rem 0.45rem;
    text-align: center;
    vertical-align: middle;
    font-weight: 600;
}

.date-heatmap-total-header {
    height: 170px;
    padding: 0 0.25rem 0.5rem;
    vertical-align: bottom;
    overflow: visible;
}

.date-heatmap-total-label {
    display: inline-block;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
}

.date-heatmap-table td {
    padding: 0.35rem 0.45rem;
    text-align: center;
    vertical-align: middle;
}

@media (max-width: 992px) {
    .partner-heatmap-col-header {
        height: 190px;
        min-width: 0;
        width: auto;
    }

    .partner-heatmap-col-label {
        font-size: 0.875rem;
    }

    .partner-heatmap-total-header {
        height: 190px;
        min-width: 0;
        width: auto;
    }

    .partner-heatmap-total-cell {
        min-width: 0;
        width: auto;
    }

    .partner-heatmap-total-label {
        font-size: 0.875rem;
    }

    .course-heatmap-col-header {
        height: 190px;
        min-width: 0;
        width: auto;
    }

    .course-heatmap-col-label {
        font-size: 0.875rem;
    }

    .course-heatmap-total-header,
    .course-heatmap-total-cell {
        min-width: 0;
        width: auto;
    }

    .course-heatmap-total-header {
        height: 190px;
    }

    .course-heatmap-total-label {
        font-size: 0.875rem;
    }

    .date-heatmap-col-header {
        height: 140px;
        min-width: 0;
        width: auto;
    }

    .date-heatmap-col-label {
        font-size: 0.875rem;
    }

    .date-heatmap-total-header,
    .date-heatmap-total-cell {
        min-width: 0;
        width: auto;
    }

    .date-heatmap-total-header {
        height: 140px;
    }

    .date-heatmap-total-label {
        font-size: 0.875rem;
    }
}

.gray-column {
    background-color: #f2f2f2; /* Light gray background */
}


/* Navy badge */
.badge-navy { 
  background-color: #0d3b66 !important; 
  color: #fff !important; 
}

/* clickable game tiles */
.game-card {
  display: block;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  background: #fff;
  cursor: pointer;
  transition: transform .06s ease, box-shadow .06s ease, border-color .06s ease;
  user-select: none;
  outline: none;
}
.game-card:hover { box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,.06); }
.game-card:focus { box-shadow: 0 0 0 .2rem rgba(0,142,112,.2); } /* your green */
.game-card.selected {
  border-color: #008e70;
  box-shadow: 0 0 0 .2rem rgba(0,142,112,.25);
}

.game-card-body { padding: 1rem; }
.game-card-title { font-weight: 600; }
.game-card-sub { color: #6c757d; font-size: .9rem; }

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

/* hide the native checkbox inside the card */
.game-card > input[type="checkbox"] {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* selected state (pure CSS) */
.game-card:has(> input[type="checkbox"]:checked) {
  border-color: #008e70;
  box-shadow: 0 0 0 .2rem rgba(0,142,112,.25);
}
