html, body {
      max-width: 100%;
      overflow-x: clip;
      -webkit-text-size-adjust: 100%;
      -webkit-tap-highlight-color: transparent;
    }
    button, a, select, input, textarea, label {
      touch-action: manipulation;
    }
    .overflow-x-auto, .overflow-y-auto, .custom-scroll {
      -webkit-overflow-scrolling: touch;
    }
    .fixed.inset-0 {
      overscroll-behavior: contain;
    }
    @media (max-width: 1024px) {
      .fixed.inset-0 > div {
        max-height: 92dvh;
      }
      #printReportBody, #singleMatchReportBody, #adminWeeklyReportBody {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
      }
    }
    body {
      font-family: 'Cairo', 'Inter', sans-serif;
      color: #0f172a;
      background-color: #f8fafc;
      background-image: linear-gradient(180deg, #f0fdf4 0%, #f8fafc 260px, #f8fafc 100%);
    }
    /* Light, crisp header & pill navigation across all portals */
    header#mainHeader {
      background: rgba(255, 255, 255, 0.96) !important;
      color: #0f172a !important;
      border-bottom: 1px solid #e2e8f0 !important;
      box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
    }
    header#mainHeader h1,
    header#mainHeader #headerTitle {
      color: #064e3b !important;
    }
    header#mainHeader p,
    header#mainHeader #headerSubtitle {
      color: #475569 !important;
    }
    header#mainHeader > div:nth-child(2) {
      background: #f8fafc !important;
      border-top: 1px solid #e2e8f0 !important;
    }
    header#mainHeader .tab-btn {
      color: #334155 !important;
      background: #ffffff !important;
      border: 1px solid #e2e8f0 !important;
      border-radius: 9999px !important;
      padding: 0.42rem 0.9rem !important;
      font-size: 0.8rem !important;
    }
    header#mainHeader .tab-btn:hover {
      background: #ecfdf5 !important;
      border-color: #a7f3d0 !important;
      color: #065f46 !important;
    }
    header#mainHeader .tab-btn.active {
      background: #047857 !important;
      border-color: #047857 !important;
      color: #ffffff !important;
      box-shadow: 0 2px 8px rgba(4, 120, 87, 0.22) !important;
    }
    /* Softer cards & faster tap response */
    .rounded-2xl {
      box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    }
    header#mainHeader {
      padding-top: env(safe-area-inset-top, 0px);
    }
    footer#lockedCopyrightFooter {
      padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    }
    @media (max-width: 639px) {
      input, select, textarea {
        font-size: 16px !important;
      }
      main {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
      }
    }
    .tab-btn.active {
      background-color: #047857;
      color: #ffffff;
      box-shadow: 0 2px 6px rgba(4, 120, 87, 0.25);
    }
    .custom-scroll::-webkit-scrollbar {
      width: 6px;
      height: 6px;
    }
    .custom-scroll::-webkit-scrollbar-thumb {
      background: #cbd5e1;
      border-radius: 9999px;
    }
    @media print {
      * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
      }
      .no-print { display: none !important; }
      body { background: #ffffff; }
      body.printing-report > *:not(#modalPrintReport) {
        display: none !important;
      }
      body.printing-report #modalPrintReport,
      body.printing-report #modalPrintReport > div,
      body.printing-report #printReportBody {
        overflow: visible !important;
        max-height: none !important;
        height: auto !important;
      }
      body.printing-report #modalPrintReport {
        position: static !important;
        background: #ffffff !important;
        padding: 0 !important;
        display: block !important;
      }
      body.printing-report #modalPrintReport > div {
        max-width: 100% !important;
        max-height: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
      }
    }
    #printReportBody img,
    #singleMatchReportBody img,
    #adminWeeklyReportBody img {
      background: transparent !important;
      mix-blend-mode: normal !important;
    }
    #printReportBody,
    #singleMatchReportBody,
    #adminWeeklyReportBody {
      background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='360' viewBox='0 0 600 360'%3E%3Ctext x='300' y='200' text-anchor='middle' fill='rgba(4,120,87,0.065)' font-size='76' font-weight='900' font-family='Cairo,Arial,sans-serif' transform='rotate(-22 300 200)'%3EALWaab FC%3C/text%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: center center;
      background-size: 520px auto;
    }

.club-logo-watermark {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--club-wm-url, url('../club-logo.png'));
  background-position: center center;
  background-repeat: no-repeat;
  background-size: min(360px, 65vw);
  opacity: 0.065;
}
body > header, body > main, body > footer {
  position: relative;
  z-index: 1;
}

/* Clean, uncluttered Simple UI for Coaches & Admins */
body.wasel-simple-ui #playersGrid button[data-action="strike-player"],
body.wasel-simple-ui #playersGrid button[data-action="delete-player"],
body.wasel-simple-ui #playersGrid button[data-action="unhonor-player"] {
  display: none !important;
}
body.wasel-simple-ui #playersGrid > div {
  padding: 0.9rem !important;
  gap: 0.6rem !important;
}

body.wasel-simple-ui #btnPrintAllQrCards { display: none !important; }
