/* Custom utility enhancements */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-content:not(.hidden) {
    animation: fadeIn 0.2s ease-out forwards;
}

/* Badge helpers */
.badge-valid {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.badge-expiring {
    background-color: #fef08a;
    color: #854d0e;
    border: 1px solid #fde047;
}

.badge-expired {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.badge-missing {
    background-color: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

/* Print layout */
#match-roster-printout {
    display: none;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 8mm 10mm;
    }
    html, body {
        background: #ffffff !important;
        color: #000000 !important;
        font-family: Arial, Calibri, sans-serif !important;
        font-size: 11px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    header, nav, main, footer, .no-print, button, .modal, #toast-container, #rosterPreviewModal {
        display: none !important;
    }
    #match-roster-printout {
        display: block !important;
        width: 100% !important;
        margin: 0 auto !important;
        background: #ffffff !important;
        color: #000000 !important;
    }
    .print-table {
        width: 100% !important;
        border-collapse: collapse !important;
        margin-bottom: 6px !important;
    }
    .print-table th, .print-table td {
        border: 1px solid #000000 !important;
        padding: 2.2px 4px !important;
        font-size: 10px !important;
        line-height: 1.15 !important;
    }
    .vertical-formation-text {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        text-align: center;
        font-weight: bold;
        letter-spacing: 2px;
        font-size: 9.5px;
    }
}

/* On-screen A4 Modal Preview */
.a4-preview-page {
    width: 210mm;
    min-height: 290mm;
    max-width: 100%;
    margin: 0 auto;
    background: #ffffff;
    color: #000000;
    padding: 10mm 12mm;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    font-family: Arial, Calibri, sans-serif;
    font-size: 11px;
}
.a4-preview-page .print-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 6px;
}
.a4-preview-page .print-table th, .a4-preview-page .print-table td {
    border: 1px solid #000000;
    padding: 2.2px 4px;
    font-size: 10px;
    line-height: 1.15;
}
.a4-preview-page .vertical-formation-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: center;
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 9.5px;
}

/* ================= CALENDAR SCROLLBARS ================= */
/* Completely eliminate horizontal scrollbars and make vertical scrollbars slim & elegant */
.cal-day-events {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.cal-day-events::-webkit-scrollbar {
    width: 3px !important;
    height: 0px !important;
}
.cal-day-events::-webkit-scrollbar:horizontal {
    display: none !important;
    width: 0px !important;
    height: 0px !important;
}
.cal-day-events::-webkit-scrollbar-track {
    background: transparent !important;
}
.cal-day-events::-webkit-scrollbar-thumb {
    background-color: #cbd5e1 !important;
    border-radius: 9999px !important;
}
.cal-day-events::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8 !important;
}

/* ================= CALENDAR GROUP FILTERS ================= */
.cal-group-filter {
    height: 34px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    border-radius: 0.625rem;
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    transition: all 0.15s ease-in-out;
    user-select: none;
    box-sizing: border-box;
    cursor: pointer;
    line-height: 1;
}
.cal-group-filter:hover {
    background-color: #e2e8f0;
    color: #0f172a;
}
.cal-group-filter.active {
    background-color: #0f172a !important;
    color: #ffffff !important;
    border-color: #0f172a !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) !important;
}

/* Cluster container for Minihokej and Mikrus subgroups */
.cal-group-cluster {
    height: 34px;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 0.625rem;
    padding: 2px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    box-sizing: border-box;
}
.cal-group-cluster .cal-group-filter {
    height: 28px;
    padding: 0 9px;
    border-radius: 0.45rem;
    border: 1px solid transparent;
    font-size: 11.5px;
    background-color: transparent;
    color: #475569;
}
.cal-group-cluster .cal-group-filter:hover {
    background-color: #e2e8f0;
    color: #0f172a;
}
.cal-group-cluster .cal-group-filter.active {
    background-color: #0f172a !important;
    color: #ffffff !important;
    border-color: #0f172a !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12) !important;
}

#calendarGroupFilters {
    overflow: visible !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
#calendarGroupFilters::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* ================= CALENDAR EVENT TYPE BADGES ================= */
.cal-event-type-badge {
    background-color: #e2e8f0;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    font-weight: 700;
}

/* ================= ROSTER BUILDER POSITION SLOTS ================= */
.roster-pos-badge {
    background-color: #e2e8f0;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    font-weight: 800;
}
.roster-pos-label {
    color: #64748b;
    font-weight: 600;
    font-style: normal;
}
.roster-empty-btn {
    background-color: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: #334155;
    font-weight: 700;
}
.roster-empty-btn:hover {
    background-color: #fef3c7;
    border-color: #f59e0b;
    color: #78350f;
}
.roster-player-name {
    color: #0f172a;
    font-weight: 800;
}
.roster-chip {
    background-color: #f1f5f9;
    color: #334155;
}

/* ==========================================================================
   GKS KATOWICE THEME (ŻÓŁTY - ZIELONY - CZARNY)
   Testowy motyw klubowy o wysokiej czytelności i sportowym charakterze
   ========================================================================== */

/* 1. Global & Backgrounds */
html.theme-gks,
body.theme-gks {
    background-color: #090e0b !important;
    color: #f8fafc !important;
}

/* Header & Top Bar with GKS Tricolor Accent Bar */
body.theme-gks header {
    background: linear-gradient(180deg, #050806 0%, #0c140f 100%) !important;
    border-bottom: 2px solid #143521 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.85) !important;
    position: relative;
}

body.theme-gks header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffd000 0%, #ffd000 33.3%, #0d7a42 33.3%, #0d7a42 66.6%, #050806 66.6%, #050806 100%);
    z-index: 50;
}

/* GKS Logo KM Badge */
body.theme-gks .bg-gradient-to-tr.from-amber-500.to-amber-300 {
    background: linear-gradient(135deg, #ffd000 0%, #f59e0b 100%) !important;
    color: #050806 !important;
    box-shadow: 0 0 15px rgba(255, 208, 0, 0.35) !important;
}

/* Navigation tabs in GKS theme */
body.theme-gks .nav-tab {
    color: #cbd5e1 !important;
    transition: all 0.15s ease-in-out;
}

body.theme-gks .nav-tab:hover {
    background-color: #12281a !important;
    color: #ffd000 !important;
}

body.theme-gks .nav-tab.bg-slate-800,
body.theme-gks .nav-tab[class*="text-amber-400"] {
    background: linear-gradient(135deg, #0d4224 0%, #082d18 100%) !important;
    color: #fde047 !important;
    border: 1px solid #1b6b3b !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.25) !important;
}

/* 2. Containers, Cards and Panels */
body.theme-gks .bg-white {
    background-color: #111813 !important;
    color: #f8fafc !important;
    border-color: #1a3323 !important;
}

body.theme-gks .bg-slate-50,
body.theme-gks .bg-slate-50\/80,
body.theme-gks .bg-slate-50\/60,
body.theme-gks .bg-slate-50\/50 {
    background-color: #090e0b !important;
}

body.theme-gks .bg-slate-100 {
    background-color: #16221a !important;
    color: #f1f5f9 !important;
    border-color: #1f3d28 !important;
}

body.theme-gks .bg-slate-200 {
    background-color: #1a2c20 !important;
    color: #e2e8f0 !important;
}

body.theme-gks .hover\:bg-slate-200:hover {
    background-color: #243d2c !important;
}

body.theme-gks .border-slate-100,
body.theme-gks .border-slate-200,
body.theme-gks .border-slate-200\/80,
body.theme-gks .border-slate-300 {
    border-color: #1a3323 !important;
}

body.theme-gks .divide-slate-100 > :not([hidden]) ~ :not([hidden]),
body.theme-gks .divide-slate-200 > :not([hidden]) ~ :not([hidden]) {
    border-color: #1a3323 !important;
}

/* 3. Text contrast & Typography */
body.theme-gks .text-slate-900,
body.theme-gks .text-slate-800 {
    color: #f8fafc !important;
}

body.theme-gks .text-slate-700,
body.theme-gks .text-slate-600 {
    color: #cbd5e1 !important;
}

body.theme-gks .text-slate-500,
body.theme-gks .text-slate-400 {
    color: #94a3b8 !important;
}

/* 4. Tables */
body.theme-gks table:not(.print-table):not(.a4-preview-page *):not(#match-roster-printout *) thead tr,
body.theme-gks thead tr.bg-slate-50:not(.print-table *):not(.a4-preview-page *):not(#match-roster-printout *),
body.theme-gks thead tr.bg-slate-50\/80:not(.print-table *):not(.a4-preview-page *):not(#match-roster-printout *),
body.theme-gks thead tr.bg-slate-100:not(.print-table *):not(.a4-preview-page *):not(#match-roster-printout *) {
    background: linear-gradient(180deg, #092615 0%, #061b0e 100%) !important;
    border-bottom: 2px solid #1a5730 !important;
}

body.theme-gks table:not(.print-table):not(.a4-preview-page *):not(#match-roster-printout *) thead th {
    color: #ffd000 !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em;
    border-color: #1a5730 !important;
}

body.theme-gks table:not(.print-table):not(.a4-preview-page *):not(#match-roster-printout *) tbody tr {
    background-color: #111813 !important;
    border-bottom: 1px solid #172a1d !important;
    transition: background-color 0.15s ease;
}

body.theme-gks table:not(.print-table):not(.a4-preview-page *):not(#match-roster-printout *) tbody tr:nth-child(even) {
    background-color: #0c120e !important;
}

body.theme-gks table:not(.print-table):not(.a4-preview-page *):not(#match-roster-printout *) tbody tr:hover,
body.theme-gks tr.hover\:bg-slate-50\/80:hover:not(.print-table *):not(.a4-preview-page *):not(#match-roster-printout *) {
    background-color: #16291d !important;
}

body.theme-gks table:not(.print-table):not(.a4-preview-page *):not(#match-roster-printout *) td {
    color: #f1f5f9 !important;
    border-color: #172a1d !important;
}

/* 5. Inputs, Selects and Forms */
body.theme-gks input:not([type="checkbox"]):not([type="radio"]),
body.theme-gks select,
body.theme-gks textarea {
    background-color: #070c09 !important;
    border: 1px solid #203f2a !important;
    color: #ffffff !important;
}

body.theme-gks input:focus,
body.theme-gks select:focus,
body.theme-gks textarea:focus {
    border-color: #ffd000 !important;
    box-shadow: 0 0 0 2px rgba(255, 208, 0, 0.3) !important;
    outline: none !important;
}

body.theme-gks input::placeholder,
body.theme-gks textarea::placeholder {
    color: #64748b !important;
}

body.theme-gks select option {
    background-color: #0e1510 !important;
    color: #ffffff !important;
}

/* 6. Buttons & Interactive Elements */
/* Primary GKS Action Button (Yellow Gold) */
body.theme-gks .bg-amber-500,
body.theme-gks button.bg-amber-500 {
    background: linear-gradient(135deg, #ffd000 0%, #eab308 100%) !important;
    color: #050806 !important;
    font-weight: 800 !important;
    border: 1px solid #ca8a04 !important;
    box-shadow: 0 2px 10px rgba(250, 204, 21, 0.35) !important;
}

body.theme-gks .bg-amber-500:hover,
body.theme-gks button.bg-amber-500:hover {
    background: linear-gradient(135deg, #ffe033 0%, #facc15 100%) !important;
    box-shadow: 0 4px 16px rgba(255, 208, 0, 0.5) !important;
}

/* Secondary Action Button (GKS Forest Green) */
body.theme-gks .bg-emerald-600 {
    background: linear-gradient(135deg, #0d7a42 0%, #08582f 100%) !important;
    border: 1px solid #168249 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.25) !important;
}

body.theme-gks .bg-emerald-600:hover {
    background: linear-gradient(135deg, #109150 0%, #0d7a42 100%) !important;
}

/* Neutral Buttons */
body.theme-gks .bg-slate-800 {
    background-color: #142017 !important;
    border-color: #213c29 !important;
    color: #e2e8f0 !important;
}

body.theme-gks .bg-slate-800:hover {
    background-color: #1b2c20 !important;
    color: #ffffff !important;
}

/* General Dark Theme hover fixes for slate backgrounds (prevents white hover flash) */
body.theme-gks .hover\:bg-slate-50:hover,
body.theme-gks .hover\:bg-slate-50\/80:hover,
body.theme-gks .hover\:bg-slate-50\/70:hover,
body.theme-gks .hover\:bg-slate-50\/50:hover {
    background-color: #12281a !important;
}

body.theme-gks .hover\:bg-slate-100:hover {
    background-color: #163321 !important;
}

body.theme-gks .hover\:bg-slate-200:hover {
    background-color: #1c4029 !important;
}

body.theme-gks tr.hover\:bg-slate-50:hover,
body.theme-gks tr.hover\:bg-slate-50\/80:hover,
body.theme-gks tr.hover\:bg-slate-50\/70:hover {
    background-color: #12281a !important;
}

/* 7. Modals & Popups */
body.theme-gks div[id$="Modal"]:not(#rosterPreviewModal) .bg-white {
    background-color: #111813 !important;
    border: 1px solid #234731 !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 25px rgba(13, 122, 66, 0.25) !important;
}

body.theme-gks div[id$="Modal"]:not(#rosterPreviewModal) h3,
body.theme-gks div[id$="Modal"]:not(#rosterPreviewModal) h2 {
    color: #ffd000 !important;
}

body.theme-gks div[id$="Modal"]:not(#rosterPreviewModal) .border-b,
body.theme-gks div[id$="Modal"]:not(#rosterPreviewModal) .border-t {
    border-color: #1a3323 !important;
}

/* 8. Medical Status Badges in GKS style */
body.theme-gks .badge-valid {
    background-color: #063d21 !important;
    color: #4ade80 !important;
    border: 1px solid #166534 !important;
}

body.theme-gks .badge-expiring {
    background-color: #422006 !important;
    color: #fde047 !important;
    border: 1px solid #ca8a04 !important;
    font-weight: 800 !important;
}

body.theme-gks .badge-expired {
    background-color: #450a0a !important;
    color: #f87171 !important;
    border: 1px solid #991b1b !important;
}

body.theme-gks .badge-missing {
    background-color: #1b261f !important;
    color: #94a3b8 !important;
    border: 1px solid #283d30 !important;
}

/* 9. Calendar Styling */
body.theme-gks .cal-days-header-row {
    border-color: #1a3323 !important;
}

body.theme-gks .cal-days-header-row .cal-day-name {
    color: #94a3b8 !important;
}

body.theme-gks .cal-days-header-row .cal-day-weekend-header {
    color: #facc15 !important;
}

body.theme-gks .cal-day-cell {
    background-color: #0c140f !important;
    border-color: #172c1e !important;
}

body.theme-gks .cal-day-cell.cal-day-weekday {
    background-color: #0c140f !important;
    border-color: #172c1e !important;
}

body.theme-gks .cal-day-cell.cal-day-weekday:hover {
    border-color: #2b5939 !important;
}

/* Weekend cells styling: cohesive dark-emerald tint with warm amber date */
body.theme-gks .cal-day-cell.cal-day-weekend {
    background-color: #122217 !important;
    border-color: #1e3d29 !important;
}

body.theme-gks .cal-day-cell.cal-day-weekend:hover {
    background-color: #172d1f !important;
    border-color: #2b5939 !important;
}

body.theme-gks .cal-day-cell.cal-day-other-month {
    background-color: #080e0a !important;
    border-color: #122016 !important;
    opacity: 0.35 !important;
}

body.theme-gks .cal-day-cell.cal-today,
body.theme-gks .cal-day-cell.cal-day-today {
    background-color: #162a1c !important;
    border-color: #ffd000 !important;
    box-shadow: inset 0 0 0 1px #ffd000 !important;
}

body.theme-gks .cal-day-num {
    color: #f1f5f9 !important;
}

body.theme-gks .cal-day-num-weekend {
    color: #facc15 !important;
}

body.theme-gks .cal-day-num-other {
    color: #64748b !important;
}

body.theme-gks .cal-day-cell .cal-day-add-btn {
    color: #ffd000 !important;
}

body.theme-gks .cal-day-cell .cal-day-add-btn:hover {
    background-color: #1d3d27 !important;
    color: #ffffff !important;
}

body.theme-gks .cal-day-header {
    background-color: #081a0f !important;
    color: #ffd000 !important;
    border-color: #143e24 !important;
}

body.theme-gks #calendarMonthHeader,
body.theme-gks .cal-month-title {
    color: #ffd000 !important;
}

body.theme-gks .cal-day-events {
    scrollbar-color: #1a4d2c transparent !important;
}

body.theme-gks .cal-day-events::-webkit-scrollbar-thumb {
    background-color: #1a4d2c !important;
}

body.theme-gks .cal-day-events::-webkit-scrollbar-thumb:hover {
    background-color: #ffd000 !important;
}

body.theme-gks .cal-group-filter {
    background-color: #142218 !important;
    color: #94a3b8 !important;
    border-color: #1a3323 !important;
}
body.theme-gks .cal-group-filter:hover {
    background-color: #1c3325 !important;
    color: #ffffff !important;
}
body.theme-gks .cal-group-filter.active {
    background-color: #ffd000 !important;
    color: #0a0f0d !important;
    border-color: #ffd000 !important;
    font-weight: 800 !important;
    box-shadow: 0 0 10px rgba(255, 208, 0, 0.25) !important;
}
body.theme-gks .cal-group-cluster {
    background-color: #0d1611 !important;
    border-color: #1a3323 !important;
}
body.theme-gks .cal-group-cluster .cal-group-filter:not(.active) {
    background-color: transparent !important;
    border-color: transparent !important;
    color: #94a3b8 !important;
}
body.theme-gks .cal-group-cluster .cal-group-filter:not(.active):hover {
    background-color: #142218 !important;
    color: #ffffff !important;
}
body.theme-gks .cal-group-cluster .cal-group-filter.active {
    background-color: #ffd000 !important;
    color: #0a0f0d !important;
    border-color: #ffd000 !important;
    font-weight: 800 !important;
    box-shadow: 0 0 10px rgba(255, 208, 0, 0.25) !important;
}

body.theme-gks #calViewModeGrid.bg-white,
body.theme-gks #calViewModeList.bg-white {
    background-color: #ffd000 !important;
    color: #0a0f0d !important;
    font-weight: 800 !important;
}

/* Event Details Modal in GKS Theme */
body.theme-gks #eventDetailsHeader {
    background-color: #090e0b !important;
    background-image: none !important;
    border-color: #1a3323 !important;
}
body.theme-gks #eventDetailsHeader button {
    background-color: #142218 !important;
    color: #94a3b8 !important;
    border: 1px solid #234731 !important;
}
body.theme-gks #eventDetailsHeader button:hover {
    background-color: #1f3d28 !important;
    color: #ffffff !important;
}
body.theme-gks #eventDetailsTitle {
    color: #ffd000 !important;
}
body.theme-gks .cal-event-type-badge,
body.theme-gks #eventDetailsTypeBadge {
    background-color: #142218 !important;
    color: #ffd000 !important;
    border: 1px solid #234731 !important;
    font-weight: 800 !important;
}
body.theme-gks #eventDetailsDayOfWeek {
    color: #ffd000 !important;
}
body.theme-gks #eventDetailsOpponentBox {
    background-color: #0e1510 !important;
    border: 1px solid #1a3323 !important;
}
body.theme-gks #eventDetailsOpponentLabel {
    color: #94a3b8 !important;
}
body.theme-gks #eventDetailsOpponent {
    color: #ffffff !important;
}
body.theme-gks #eventDetailsDescriptionBox > span {
    color: #94a3b8 !important;
}
body.theme-gks #eventDetailsDescription {
    background-color: #0e1510 !important;
    border-color: #1a3323 !important;
    color: #cbd5e1 !important;
}
body.theme-gks #eventDetailsRosterBanner {
    background-color: #0e1510 !important;
    border: 1px solid #1a3323 !important;
}
body.theme-gks #eventDetailsRosterText {
    color: #f1f5f9 !important;
}
body.theme-gks #btnEventDetailsRosterTop {
    background-color: #ffd000 !important;
    color: #0a0f0d !important;
    font-weight: 800 !important;
    border: 1px solid #ffd000 !important;
    box-shadow: 0 0 10px rgba(255, 208, 0, 0.25) !important;
}
body.theme-gks #btnEventDetailsRosterTop:hover {
    background-color: #ffe04d !important;
    color: #000000 !important;
}
body.theme-gks #eventDetailsFooter {
    background-color: #090e0b !important;
    border-color: #1a3323 !important;
}
body.theme-gks #eventDetailsFooter button.text-slate-600 {
    color: #94a3b8 !important;
}
body.theme-gks #eventDetailsFooter button.text-slate-600:hover {
    color: #ffffff !important;
}

/* WhatsApp Export Modal in GKS Dark Theme */
body.theme-gks #whatsAppExportHeader {
    background-color: #090e0b !important;
    background-image: linear-gradient(135deg, #0d2818 0%, #090e0b 100%) !important;
    border-color: #1a3323 !important;
}

body.theme-gks #whatsAppExportHeader h3,
body.theme-gks #waExportTitle {
    color: #ffd000 !important;
}

body.theme-gks #whatsAppExportHeader p,
body.theme-gks #waExportSubtitle {
    color: #cbd5e1 !important;
}

body.theme-gks #whatsAppExportHeader button,
body.theme-gks #waExportCloseBtn {
    background-color: #142218 !important;
    color: #94a3b8 !important;
    border: 1px solid #234731 !important;
}

body.theme-gks #whatsAppExportHeader button:hover,
body.theme-gks #waExportCloseBtn:hover {
    background-color: #1f3d28 !important;
    color: #ffffff !important;
    border-color: #2b573a !important;
}

body.theme-gks #whatsAppExportFooter {
    background-color: #090e0b !important;
    border-color: #1a3323 !important;
}

body.theme-gks #waGatheringTime {
    color: #34d399 !important;
}

/* Date and Time pickers in Dark Theme */
body.theme-gks input[type="date"]::-webkit-calendar-picker-indicator,
body.theme-gks input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(0.85);
    cursor: pointer;
}

/* 10. Dashboard KPI Cards & Widgets */
body.theme-gks #tab-dashboard .grid > div {
    background-color: #111813 !important;
    border-color: #1c3624 !important;
}

body.theme-gks #tab-dashboard .grid > div:hover {
    border-color: #2b573a !important;
}

body.theme-gks .from-amber-50 {
    background: linear-gradient(135deg, #0e2216 0%, #132c1e 100%) !important;
    border-color: #1f472f !important;
}

/* Dashboard Medical Watchlist in Dark Mode */
body.theme-gks #dashboardWatchlist > div,
body.theme-gks .watchlist-row {
    border: 1px solid transparent !important;
    transition: all 0.15s ease-in-out;
}

body.theme-gks #dashboardWatchlist > div:hover,
body.theme-gks .watchlist-row:hover {
    background: linear-gradient(135deg, #0d4224 0%, #082d18 100%) !important;
    border: 1px solid #1b6b3b !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(27, 107, 59, 0.2) !important;
}

body.theme-gks #dashboardWatchlist > div:hover .text-slate-900,
body.theme-gks #dashboardWatchlist > div:hover .watchlist-name,
body.theme-gks .watchlist-row:hover .watchlist-name {
    color: #fde047 !important;
}

body.theme-gks #dashboardWatchlist > div:hover .text-slate-500,
body.theme-gks .watchlist-row:hover .text-slate-500 {
    color: #cbd5e1 !important;
}

body.theme-gks #dashboardWatchlist .w-8.h-8.rounded-full.bg-slate-100,
body.theme-gks #dashboardWatchlist .watchlist-avatar,
body.theme-gks .watchlist-row .watchlist-avatar {
    background-color: #142218 !important;
    color: #ffd000 !important;
    border: 1px solid #234731 !important;
}

body.theme-gks #dashboardWatchlist > div:hover .w-8.h-8.rounded-full.bg-slate-100,
body.theme-gks #dashboardWatchlist > div:hover .watchlist-avatar,
body.theme-gks .watchlist-row:hover .watchlist-avatar {
    background-color: #1b4226 !important;
    border-color: #fde047 !important;
    color: #ffffff !important;
}

body.theme-gks #dashboardWatchlist button.bg-amber-100 {
    background-color: #ffd000 !important;
    color: #050806 !important;
    font-weight: 800 !important;
    border: 1px solid #ffd000 !important;
}

body.theme-gks #dashboardWatchlist button.bg-amber-100:hover {
    background-color: #ffe04d !important;
    color: #000000 !important;
}

body.theme-gks #dashboardWatchlist a.bg-slate-100 {
    background-color: #142218 !important;
    color: #4ade80 !important;
    border: 1px solid #234731 !important;
}

body.theme-gks #dashboardWatchlist a.bg-slate-100:hover {
    background-color: #1f3d28 !important;
    color: #86efac !important;
}

/* "Zobacz wszystkich →" link in medical watchlist */
body.theme-gks #tab-dashboard button.text-blue-600 {
    color: #38bdf8 !important;
}

body.theme-gks #tab-dashboard button.text-blue-600:hover {
    color: #ffd000 !important;
}

/* Upcoming matches in Dashboard hover */
body.theme-gks #dashboardUpcomingEvents > div:hover {
    background: linear-gradient(135deg, #0d4224 0%, #082d18 100%) !important;
    border-color: #1b6b3b !important;
}

body.theme-gks #dashboardUpcomingEvents > div:hover span.text-slate-900 {
    color: #fde047 !important;
}

/* 11. Alerts */
body.theme-gks #urgentAlertsBanner {
    background-color: #3b0d0d !important;
    border-color: #7f1d1d !important;
}
body.theme-gks #urgentAlertsTitle {
    color: #fca5a5 !important;
}
body.theme-gks #urgentAlertsDesc {
    color: #fecaca !important;
}

/* 12. Roster Formations & Player Cards */
body.theme-gks #formationGrid_BR > div,
body.theme-gks [id^="formationGrid_"] > div {
    background-color: #0b110d !important;
    border-color: #193121 !important;
}

/* Position badge: LO, PO, LS, ŚR, PS, BR, Rez */
body.theme-gks .roster-pos-badge {
    background-color: #16241a !important;
    color: #ffd000 !important;
    border: 1px solid #284732 !important;
    font-weight: 900 !important;
}

/* Position label: Lewy Obrońca, Prawy Obrońca, Środkowy, etc. */
body.theme-gks .roster-pos-label {
    color: #cbd5e1 !important;
    font-weight: 700 !important;
    font-style: normal !important;
}

/* Empty slot button: + Wybierz zawodnika */
body.theme-gks .roster-empty-btn {
    background-color: #121c15 !important;
    border: 1px dashed #244b32 !important;
    color: #f1f5f9 !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}
body.theme-gks .roster-empty-btn:hover {
    background-color: #1c3022 !important;
    border-color: #ffd000 !important;
    color: #ffd000 !important;
}
body.theme-gks .roster-empty-btn .roster-empty-plus {
    color: #ffd000 !important;
}
body.theme-gks .roster-empty-btn .roster-empty-text {
    color: #f1f5f9 !important;
}
body.theme-gks .roster-empty-btn:hover .roster-empty-text {
    color: #ffd000 !important;
}

/* Assigned player slot */
body.theme-gks .roster-player-name {
    color: #ffffff !important;
    font-weight: 900 !important;
}
body.theme-gks .roster-chip {
    background-color: #16241a !important;
    color: #e2e8f0 !important;
    border: 1px solid #284732 !important;
}
body.theme-gks .roster-change-btn {
    color: #ffd000 !important;
}
body.theme-gks .roster-change-btn:hover {
    color: #ffe04d !important;
}

body.theme-gks .roster-player-chip {
    background-color: #142219 !important;
    border-color: #213f2b !important;
    color: #ffffff !important;
}

body.theme-gks .roster-player-chip:hover {
    border-color: #ffd000 !important;
}

/* 13. Login Screen in GKS Theme */
body.theme-gks #loginScreen {
    background: radial-gradient(circle at 50% 25%, #0d281a 0%, #060907 65%, #020403 100%) !important;
}

body.theme-gks #loginScreen > div {
    background-color: rgba(14, 21, 16, 0.95) !important;
    border: 1px solid #1f482c !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 30px rgba(255, 208, 0, 0.15) !important;
}

/* 14. Corner Theme Segmented Control */
body.theme-gks #themeSegmentedControl {
    background-color: #070c09 !important;
    border-color: #1a3824 !important;
}

/* 15. Admin Panel & Subtabs */
.admin-subtab-btn.active {
    background-color: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

body.theme-gks #adminSubNav {
    background-color: #070c09 !important;
    border-color: #1a3824 !important;
}

body.theme-gks .admin-subtab-btn {
    color: #94a3b8 !important;
}

body.theme-gks .admin-subtab-btn:hover {
    color: #ffffff !important;
    background-color: #12281a !important;
}

body.theme-gks .admin-subtab-btn.active {
    background: linear-gradient(135deg, #0d4224 0%, #082d18 100%) !important;
    color: #ffd000 !important;
    border: 1px solid #1b6b3b !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.25) !important;
}

/* Detected Local Files Card & Buttons */
body.theme-gks #detectedFilesCard {
    background: linear-gradient(135deg, #09170f 0%, #0d2216 100%) !important;
    border-color: #1a3b26 !important;
}

body.theme-gks #detectedFilesCard h3 {
    color: #ffd000 !important;
}

body.theme-gks #detectedFilesCard .detected-files-desc,
body.theme-gks #detectedFilesCard > p {
    color: #94a3b8 !important;
}

body.theme-gks .btn-detected-clear {
    background-color: #132419 !important;
    color: #fb7185 !important;
    border-color: #2b4533 !important;
}

body.theme-gks .btn-detected-clear:hover {
    background-color: #3b1219 !important;
    border-color: #f43f5e !important;
    color: #ffffff !important;
}

body.theme-gks .btn-detected-refresh {
    background-color: #132419 !important;
    color: #ffd000 !important;
    border-color: #2b4533 !important;
}

body.theme-gks .btn-detected-refresh:hover {
    background-color: #1c3624 !important;
    border-color: #ffd000 !important;
    color: #ffffff !important;
}

body.theme-gks .detected-files-box {
    background-color: #070e0a !important;
    border-color: #1a3b26 !important;
}

body.theme-gks .detected-files-box .detected-files-title {
    color: #f1f5f9 !important;
}

body.theme-gks .detected-files-box .detected-files-sub,
body.theme-gks .detected-files-box .detected-files-empty-msg {
    color: #94a3b8 !important;
}

body.theme-gks .btn-detected-restore {
    background: linear-gradient(135deg, #ffd000 0%, #eab308 100%) !important;
    color: #020617 !important;
    border: 1px solid #ffd000 !important;
    font-weight: 800 !important;
}

body.theme-gks .btn-detected-restore:hover {
    background: #ffdb33 !important;
    box-shadow: 0 0 12px rgba(255, 208, 0, 0.4) !important;
}

body.theme-gks .detected-file-item {
    background-color: #0c1510 !important;
    border-color: #1a3b26 !important;
}

body.theme-gks .detected-file-item:hover {
    border-color: #2b5939 !important;
    background-color: #112017 !important;
}

body.theme-gks .detected-file-item .detected-file-name {
    color: #f8fafc !important;
}

body.theme-gks .detected-file-item .detected-file-path {
    color: #94a3b8 !important;
}

/* Drag & Drop Zone in Dark Mode */
body.theme-gks #dropZone {
    background-color: #08120c !important;
    border-color: #1c3825 !important;
}

body.theme-gks #dropZone:hover {
    border-color: #ffd000 !important;
    background-color: #0e2015 !important;
}

/* Login Logs Table Avatars */
body.theme-gks .login-log-avatar {
    background-color: #070e0a !important;
}

body.theme-gks .login-log-avatar.status-success {
    background-color: #081a0f !important;
    border-color: rgba(255, 208, 0, 0.45) !important;
    color: #ffd000 !important;
    box-shadow: 0 0 8px rgba(255, 208, 0, 0.15);
}

body.theme-gks .login-log-avatar.status-logout {
    background-color: #0c1510 !important;
    border-color: #1f3b28 !important;
    color: #94a3b8 !important;
}

body.theme-gks .login-log-avatar.status-failed {
    background-color: #1f0a0d !important;
    border-color: rgba(244, 63, 94, 0.4) !important;
    color: #fb7185 !important;
}

body.theme-gks .login-log-avatar.status-default {
    background-color: #0c1510 !important;
    border-color: #1f3b28 !important;
    color: #cbd5e1 !important;
}

/* Database Backup & Restore in Dark Mode */
body.theme-gks .restore-req-badge {
    color: #fb7185 !important;
}

body.theme-gks #restoreDropZone {
    background-color: #08120c !important;
    border-color: #1c3d28 !important;
}

body.theme-gks #restoreDropZone:hover,
body.theme-gks #restoreDropZone.border-amber-500 {
    background-color: #0e2417 !important;
    border-color: #ffd000 !important;
}

body.theme-gks #restoreDropZone #restoreFilePrompt {
    color: #f1f5f9 !important;
}

body.theme-gks #restoreDropZone:hover #restoreFilePrompt {
    color: #ffd000 !important;
}

body.theme-gks #restoreDropZone #restoreFileDetails {
    color: #94a3b8 !important;
}

body.theme-gks #restoreSelectedFileCard {
    background: linear-gradient(135deg, #091a10 0%, #11281a 100%) !important;
    border-color: #1f472f !important;
}

body.theme-gks #restoreSelectedFileCard #restoreSelectedFileName {
    color: #ffd000 !important;
}

body.theme-gks #restoreSelectedFileCard #restoreSelectedFileSize {
    color: #86efac !important;
}

body.theme-gks #restoreSelectedFileCard button {
    color: #94a3b8 !important;
}

body.theme-gks #restoreSelectedFileCard button:hover {
    color: #fb7185 !important;
}

/* Database Restore Button */
body.theme-gks #btnExecuteRestore:disabled,
body.theme-gks .btn-restore-db:disabled,
body.theme-gks .btn-restore-db.is-disabled {
    background: #0c1611 !important;
    color: #64748b !important;
    border: 1px solid #1a3323 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}

body.theme-gks #btnExecuteRestore:not(:disabled),
body.theme-gks .btn-restore-db:not(:disabled),
body.theme-gks .btn-restore-db.is-active {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%) !important;
    color: #ffffff !important;
    border: 1px solid #f43f5e !important;
    box-shadow: 0 4px 18px rgba(225, 29, 72, 0.4) !important;
    cursor: pointer !important;
}

body.theme-gks #btnExecuteRestore:not(:disabled):hover,
body.theme-gks .btn-restore-db:not(:disabled):hover,
body.theme-gks .btn-restore-db.is-active:hover {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%) !important;
    box-shadow: 0 4px 22px rgba(244, 63, 94, 0.55) !important;
}

/* Database Safety Guarantee Banner */
body.theme-gks #backupSafetyBanner {
    background: linear-gradient(135deg, #091319 0%, #0c1b26 100%) !important;
    border-color: #17374d !important;
}

body.theme-gks #backupSafetyBanner h4 {
    color: #38bdf8 !important;
}

body.theme-gks #backupSafetyBanner,
body.theme-gks #backupSafetyBanner ul,
body.theme-gks #backupSafetyBanner li {
    color: #cbd5e1 !important;
}

body.theme-gks #backupSafetyBanner strong {
    color: #f8fafc !important;
}

body.theme-gks #backupSafetyBanner code {
    background-color: #0f2433 !important;
    color: #7dd3fc !important;
    border: 1px solid #1e4560 !important;
}

/* 16. Navigation Dropdowns */
.nav-dropdown-wrapper {
    position: relative;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

@media (min-width: 768px) {
    .nav-dropdown-wrapper:hover > .nav-dropdown-menu {
        display: block !important;
        animation: navDropdownFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    .nav-dropdown-wrapper:hover .dropdown-chevron {
        transform: rotate(180deg);
    }
}

@keyframes navDropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* GKS Katowice Theme - Navigation Dropdowns */
body.theme-gks .nav-dropdown-menu {
    background-color: #0c1510 !important;
    border-color: #1a3b26 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.95), 0 0 20px rgba(16, 185, 129, 0.2) !important;
}

body.theme-gks .nav-dropdown-menu button {
    color: #cbd5e1 !important;
}

body.theme-gks .nav-dropdown-menu button:hover {
    background-color: #142d1d !important;
    color: #ffd000 !important;
}

body.theme-gks .nav-dropdown-menu .border-t {
    border-color: #173321 !important;
}

/* 17. GKS Katowice Theme - User Dropdown Menu */
body.theme-gks #userDropdownMenu {
    background-color: #0c1510 !important;
    border-color: #1a3b26 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.95), 0 0 20px rgba(16, 185, 129, 0.2) !important;
}

body.theme-gks #userDropdownMenu button:hover {
    background-color: #142d1d !important;
}

body.theme-gks #userDropdownMenu .bg-slate-950\/70 {
    background-color: #080e0b !important;
    border-color: #1a3b26 !important;
}

/* 18. Fix for Jersey Color Indicators & White Dots in All Themes */
.jersey-dot-white,
body.theme-gks .jersey-dot-white,
body.theme-gks span.jersey-dot-white,
body.theme-gks span[data-color="white"] {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25) !important;
}

.jersey-badge-white,
body.theme-gks .jersey-badge-white {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

.jersey-card-header-white,
body.theme-gks .jersey-card-header-white {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-bottom: 1px solid #cbd5e1 !important;
}
body.theme-gks .jersey-card-header-white * {
    color: #0f172a !important;
}

/* ==========================================================================
   19. A4 MATCH PROTOCOL PRINT & LIVE PREVIEW ISOLATION (ALWAYS PURE WHITE PAPER & BLACK TEXT)
   Ensures printout and preview look 100% identical in BOTH Classic and Dark themes!
   ========================================================================== */
#rosterPreviewModal .a4-preview-page,
body.theme-gks #rosterPreviewModal .a4-preview-page,
.a4-preview-page,
body.theme-gks .a4-preview-page,
#match-roster-printout,
body.theme-gks #match-roster-printout {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #000000 !important;
}

#rosterPreviewModal .a4-preview-page *,
body.theme-gks #rosterPreviewModal .a4-preview-page *,
.a4-preview-page *,
body.theme-gks .a4-preview-page *,
#match-roster-printout *,
body.theme-gks #match-roster-printout * {
    color: #000000 !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

#rosterPreviewModal .a4-preview-page table,
body.theme-gks #rosterPreviewModal .a4-preview-page table,
.a4-preview-page table,
body.theme-gks .a4-preview-page table,
#match-roster-printout table,
body.theme-gks #match-roster-printout table,
.print-table,
body.theme-gks .print-table {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-collapse: collapse !important;
    width: 100% !important;
}

#rosterPreviewModal .a4-preview-page tr,
body.theme-gks #rosterPreviewModal .a4-preview-page tr,
.a4-preview-page tr,
body.theme-gks .a4-preview-page tr,
#match-roster-printout tr,
body.theme-gks #match-roster-printout tr,
.print-table tr,
body.theme-gks .print-table tr {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
}

#rosterPreviewModal .a4-preview-page th,
body.theme-gks #rosterPreviewModal .a4-preview-page th,
.a4-preview-page th,
body.theme-gks .a4-preview-page th,
#match-roster-printout th,
body.theme-gks #match-roster-printout th,
.print-table th,
body.theme-gks .print-table th {
    background-color: #f2f2f2 !important;
    background: #f2f2f2 !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
    font-weight: bold !important;
    letter-spacing: normal !important;
    font-size: 10px !important;
    text-align: center !important;
    padding: 2.2px 4px !important;
}

#rosterPreviewModal .a4-preview-page td,
body.theme-gks #rosterPreviewModal .a4-preview-page td,
.a4-preview-page td,
body.theme-gks .a4-preview-page td,
#match-roster-printout td,
body.theme-gks #match-roster-printout td,
.print-table td,
body.theme-gks .print-table td {
    color: #000000 !important;
    border: 1px solid #000000 !important;
    padding: 2.2px 4px !important;
    font-size: 10px !important;
    line-height: 1.15 !important;
    background-color: transparent !important;
}

/* Background fills for protocol header/formation cells */
.a4-preview-page td[style*="#f3f4f6"],
body.theme-gks .a4-preview-page td[style*="#f3f4f6"],
#match-roster-printout td[style*="#f3f4f6"],
body.theme-gks #match-roster-printout td[style*="#f3f4f6"] {
    background-color: #f3f4f6 !important;
}

.a4-preview-page td[style*="#f9fafb"],
body.theme-gks .a4-preview-page td[style*="#f9fafb"],
#match-roster-printout td[style*="#f9fafb"],
body.theme-gks #match-roster-printout td[style*="#f9fafb"] {
    background-color: #f9fafb !important;
}

.a4-preview-page td[style*="#e5e7eb"],
body.theme-gks .a4-preview-page td[style*="#e5e7eb"],
#match-roster-printout td[style*="#e5e7eb"],
body.theme-gks #match-roster-printout td[style*="#e5e7eb"] {
    background-color: #e5e7eb !important;
}

.a4-preview-page td[style*="#fee2e2"],
body.theme-gks .a4-preview-page td[style*="#fee2e2"],
#match-roster-printout td[style*="#fee2e2"],
body.theme-gks #match-roster-printout td[style*="#fee2e2"] {
    background-color: #fee2e2 !important;
}

.a4-preview-page td[style*="#dbeafe"],
body.theme-gks .a4-preview-page td[style*="#dbeafe"],
#match-roster-printout td[style*="#dbeafe"],
body.theme-gks #match-roster-printout td[style*="#dbeafe"] {
    background-color: #dbeafe !important;
}

.a4-preview-page td[style*="#d1fae5"],
body.theme-gks .a4-preview-page td[style*="#d1fae5"],
#match-roster-printout td[style*="#d1fae5"],
body.theme-gks #match-roster-printout td[style*="#d1fae5"] {
    background-color: #d1fae5 !important;
}

.a4-preview-page td[style*="#fef3c7"],
body.theme-gks .a4-preview-page td[style*="#fef3c7"],
#match-roster-printout td[style*="#fef3c7"],
body.theme-gks #match-roster-printout td[style*="#fef3c7"] {
    background-color: #fef3c7 !important;
}

.a4-preview-page tr[style*="height: 3px"],
body.theme-gks .a4-preview-page tr[style*="height: 3px"],
#match-roster-printout tr[style*="height: 3px"],
body.theme-gks #match-roster-printout tr[style*="height: 3px"] {
    background-color: #f9fafb !important;
}

.a4-preview-page tr[style*="height: 3px"] td,
body.theme-gks .a4-preview-page tr[style*="height: 3px"] td,
#match-roster-printout tr[style*="height: 3px"] td,
body.theme-gks #match-roster-printout tr[style*="height: 3px"] td {
    border: none !important;
}

/* Hard reset for @media print */
@media print {
    html, body, body.theme-gks {
        background-color: #ffffff !important;
        background: #ffffff !important;
        color: #000000 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    #match-roster-printout,
    body.theme-gks #match-roster-printout,
    #match-roster-printout *,
    body.theme-gks #match-roster-printout * {
        color: #000000 !important;
        text-shadow: none !important;
        box-shadow: none !important;
    }

    #match-roster-printout table,
    body.theme-gks #match-roster-printout table,
    .print-table,
    body.theme-gks .print-table {
        background-color: #ffffff !important;
        border-collapse: collapse !important;
        width: 100% !important;
    }

    #match-roster-printout tr,
    body.theme-gks #match-roster-printout tr,
    .print-table tr,
    body.theme-gks .print-table tr {
        background: transparent !important;
        background-color: transparent !important;
        border: none !important;
    }

    #match-roster-printout th,
    body.theme-gks #match-roster-printout th,
    .print-table th,
    body.theme-gks .print-table th {
        background-color: #f2f2f2 !important;
        color: #000000 !important;
        border: 1px solid #000000 !important;
        font-weight: bold !important;
    }

    #match-roster-printout td,
    body.theme-gks #match-roster-printout td,
    .print-table td,
    body.theme-gks .print-table td {
        color: #000000 !important;
        border: 1px solid #000000 !important;
        background-color: transparent !important;
    }

    #match-roster-printout td[style*="#f3f4f6"],
    body.theme-gks #match-roster-printout td[style*="#f3f4f6"] {
        background-color: #f3f4f6 !important;
    }
    #match-roster-printout td[style*="#f9fafb"],
    body.theme-gks #match-roster-printout td[style*="#f9fafb"] {
        background-color: #f9fafb !important;
    }
    #match-roster-printout td[style*="#e5e7eb"],
    body.theme-gks #match-roster-printout td[style*="#e5e7eb"] {
        background-color: #e5e7eb !important;
    }
    #match-roster-printout td[style*="#fee2e2"],
    body.theme-gks #match-roster-printout td[style*="#fee2e2"] {
        background-color: #fee2e2 !important;
    }
    #match-roster-printout td[style*="#dbeafe"],
    body.theme-gks #match-roster-printout td[style*="#dbeafe"] {
        background-color: #dbeafe !important;
    }
    #match-roster-printout td[style*="#d1fae5"],
    body.theme-gks #match-roster-printout td[style*="#d1fae5"] {
        background-color: #d1fae5 !important;
    }
    #match-roster-printout td[style*="#fef3c7"],
    body.theme-gks #match-roster-printout td[style*="#fef3c7"] {
        background-color: #fef3c7 !important;
    }
}

/* ==========================================================================
   21. MOBILE NAVIGATION ACTION SHEET (BOTTOM SHEET)
   ========================================================================== */
#mobileNavSheetBackdrop {
    transition: opacity 0.2s ease-out;
}

#mobileNavSheetBackdrop.hidden {
    display: none !important;
}

#mobileNavSheetBackdrop:not(.hidden) {
    display: flex !important;
}

.mobile-nav-trigger {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

#mobileNavSheetCard {
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.65);
    animation: mobileNavSheetSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes mobileNavSheetSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0.9;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

body.theme-gks #mobileNavSheetCard {
    background-color: #0c1510 !important;
    border-top: 1px solid #1a3b26 !important;
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.95), 0 0 25px rgba(16, 185, 129, 0.2) !important;
}

body.theme-gks #mobileNavSheetCard .border-b,
body.theme-gks #mobileNavSheetCard .border-t {
    border-color: #173321 !important;
}

body.theme-gks #mobileNavSheetCard button:hover {
    background-color: #142d1d !important;
}

body.theme-gks #mobileNavSheetCard .bg-slate-800\/80,
body.theme-gks #mobileNavSheetCard .bg-slate-800 {
    background-color: #132419 !important;
    border-color: #1a3b26 !important;
}

body.theme-gks #mobileNavSheetCard .bg-slate-950\/80 {
    background-color: #070e0a !important;
    border-color: #1a3b26 !important;
}








