.dashboard-body { background: #eef2ed; }
.dashboard-header { display: flex; align-items: center; gap: 25px; padding: 10px 4%; background: #fff; border-bottom: 1px solid var(--line); }
.dashboard-header nav { margin-left: auto; display: flex; align-items: center; gap: 25px; font-size: 13px; }
.staff-label { border-left: 1px solid var(--line); padding-left: 25px; font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.quiet-button { border: 1px solid var(--line); background: white; padding: 9px 15px; border-radius: 5px; color: var(--ink); cursor: pointer; }
.dashboard-main { width: min(1450px, 92%); margin: 42px auto; }
.dashboard-title { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.dashboard-title h1 { font-size: clamp(34px, 4vw, 54px); }
.dashboard-title .eyebrow { margin-bottom: 12px; }
.dashboard-title p:not(.eyebrow) { margin: 16px 0 24px; }
.connection-bar { display: flex; justify-content: space-between; gap: 15px; background: var(--ink); color: white; padding: 14px 20px; border-radius: 7px; font-size: 12px; margin-bottom: 25px; }
.connection-bar .status-dot { background: var(--lime); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 25px 0; }
.stats article { padding: 25px; border: 1px solid var(--line); background: white; border-radius: 8px; }
.stats span { font-size: 13px; color: var(--muted); }
.stats strong { display: block; font-size: 42px; line-height: 1.4; letter-spacing: -.04em; }
.stats small { font-size: 11px; color: var(--muted); }
.booking-panel { background: white; border: 1px solid var(--line); border-radius: 10px; padding: 27px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.panel-heading h2 { font-size: 28px; }
.panel-heading p { font-size: 13px; margin-top: 10px; }
.read-only { font-size: 9px; letter-spacing: .12em; background: #edf2ed; padding: 6px 10px; border-radius: 4px; white-space: nowrap; }
.dashboard-filters { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; padding: 20px 0; border-block: 1px solid var(--line); }
.dashboard-filters>div { flex: 1; min-width: 140px; }
.dashboard-filters .search-field { flex: 1.5; }
.dashboard-filters label, .login-form label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 7px; }
.dashboard-filters input, .dashboard-filters select, .login-form input { width: 100%; min-height: 45px; padding: 10px; color: var(--ink); border: 1px solid #b7c7bf; background: #fff; border-radius: 5px; font: inherit; font-size: 14px; }
.dashboard-filters .button { min-height: 45px; padding: 10px 15px; cursor: pointer; }
.reset-link { font-size: 12px; padding-bottom: 12px; text-decoration: underline; }
.result-count { font-size: 12px; margin: 18px 0; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
th { background: #f4f6f2; padding: 13px; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
td { padding: 20px 13px; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 135px; }
td small { display: block; color: var(--muted); margin-top: 6px; font-size: 11px; }
.players-cell { min-width: 180px; max-width: 250px; }
.booking-status { display: inline-block; padding: 4px 10px; background: #e6f4eb; border-radius: 20px; font-size: 11px; white-space: nowrap; }
.booking-status.cancelled { background: #f8e9e1; color: #8a3821; }
.booking-details { border: none; min-width: 110px; }
.booking-details summary { padding: 0; font-size: 12px; text-decoration: underline; }
.booking-details summary::after { content: '+'; margin-left: 12px; }
.booking-details[open] summary::after { content: '−'; }
.booking-details>div { max-width: 220px; padding-top: 16px; }
.booking-details p { font-size: 12px; padding: 0; margin-bottom: 12px; overflow-wrap: anywhere; }
.booking-id { font-family: monospace; }
.empty-state { padding: 60px 20px; text-align: center; }
.empty-state h3 { font-size: 25px; margin-bottom: 15px; }
.empty-state p { font-size: 14px; max-width: 560px; margin: auto; }
.notice { padding: 22px; border: 1px solid #b7d9dc; border-radius: 7px; background: #e5f5f4; margin: 22px 0; font-size: 14px; }
.notice h2 { font-size: 25px; margin-bottom: 12px; }
.notice p { margin: 0; }
.warning { background: #fff2d9; border-color: #e5ca8d; }
.dashboard-footnote { font-size: 12px; margin: 22px 0; max-width: 1000px; }
.login-panel { max-width: 470px; margin: 65px auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 38px; }
.login-panel h1 { font-size: 42px; margin-bottom: 20px; }
.login-panel>p { font-size: 14px; }
.login-form input { margin-bottom: 22px; }
.login-form .button { width: 100%; cursor: pointer; }
.login-panel .small { font-size: 11px; margin: 22px 0 0; }
.validation-summary-errors { color: #992d20; font-size: 13px; }
.validation-summary-valid { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media(max-width: 800px) {
    .dashboard-title { flex-direction: column; align-items: flex-start; margin-bottom: 25px; }
    .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stats article { padding: 18px; }
    .booking-panel { padding: 18px; }
    .connection-bar { flex-direction: column; gap: 4px; }
    .staff-label { display: none; }
    .dashboard-header .brand { width: 115px; }
    .dashboard-header nav { gap: 15px; }
    .login-panel { padding: 25px; margin: 35px auto; }
    .login-panel h1 { font-size: 36px; }
}

.refresh-option { display: flex; gap: 9px; align-items: center; font-size: 12px; margin: 20px 0; }
.refresh-option input { accent-color: #008895; width: 17px; height: 17px; }
.login-panel h1 { overflow-wrap: anywhere; }
@media(max-width: 600px) {
    .dashboard-header { flex-wrap: wrap; }
    .dashboard-header nav { flex-wrap: wrap; gap: 12px; }
}

.booking-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.booking-filters > div { min-width: 0; }
.booking-filters .search-field { grid-column: span 2; }
.booking-filters .filter-actions { grid-column: span 2; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.booking-filters .filter-actions .reset-link { padding: 0; }
@media (max-width: 1000px) { .booking-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) {
    .booking-filters { grid-template-columns: minmax(0, 1fr); }
    .booking-filters .search-field, .booking-filters .filter-actions { grid-column: auto; }
}

.report-navigation { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 25px; }
.report-fields { display: grid; grid-template-columns: minmax(140px, 1fr) 3fr; gap: 12px 25px; margin-bottom: 35px; }
.report-fields dt { font-weight: bold; font-size: 13px; }
.report-fields dd { margin: 0; overflow-wrap: anywhere; font-size: 14px; }
.dashboard-header { flex-wrap: wrap; }
.dashboard-header nav { flex-wrap: wrap; }
@media(max-width: 600px) { .report-fields { grid-template-columns: 1fr; gap: 6px; } .report-fields dd { margin-bottom: 14px; } }

/* Player rewards */
.points-balance { margin: 1.5rem 0; padding: 2rem; border-radius: 18px; background: #152d25; color: #fff; }
.points-balance > span { display: block; letter-spacing: .12em; font-size: .75rem; }
.points-balance > strong { display: block; font-size: clamp(3rem, 12vw, 5rem); line-height: 1.2; color: #d9ed84; }
.points-balance p { color: #e5eadf; margin-bottom: 0; }
.points-game { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem 0; border-bottom: 1px solid #dce1da; }
.points-game h3, .points-game p { margin: 0 0 .5rem; }
.points-game > strong { font-size: 1.75rem; white-space: nowrap; }
.points-game small { display: block; font-size: .75rem; font-weight: normal; }

.reward-catalogue { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.reward-product { border: 1px solid #dce1da; border-radius: 16px; overflow: hidden; background: #fff; }
.reward-product > img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #eef1e9; }
.reward-product > div { padding: 1.25rem; }
.reward-product h2 { font-size: 1.35rem; margin: 0 0 .75rem; }
.reward-price { font-weight: bold; }
.reward-product .button:disabled { opacity: .5; cursor: not-allowed; }

.product-actions { display: flex; align-items: center; gap: 8px; }
.product-actions form { margin: 0; }
.product-actions .quiet-button { display: inline-flex; align-items: center; justify-content: center; min-width: 105px; min-height: 40px; box-sizing: border-box; font: inherit; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.product-actions .quiet-button:hover { background: #eef1e9; }

.login-form .terms-agreement { display:flex; align-items:flex-start; gap:12px; font-weight:400; line-height:1.6; }
.login-form .terms-agreement input[type=checkbox] { width:20px; min-width:20px; height:20px; margin-top:4px; accent-color:#008895; }
.terms-agreement a { text-decoration:underline; }
