/* Shared presentation rules extracted from page templates. */
.cms-occasion-dialog{width:min(92vw,560px);padding:0;border:1px solid var(--skin-border,#344c5f);border-radius:12px;background:var(--skin-surface,#0d1e2c);color:var(--skin-text,#fff);}
.cms-responsive-image{display:block;width:100%;height:auto}
.cms-occasion-content{padding:24px}
.cms-message-artwork{display:block;width:100%;height:auto;max-height:320px;object-fit:cover;border-radius:12px;margin:16px 0}
.cms-device-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end;gap:12px}.cms-device-filters .cms-form-row{min-width:0}@media(max-width:600px){.cms-device-filters{grid-template-columns:minmax(0,1fr)}.cms-device-filters button{width:100%}}
.cms-device-stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:18px;margin:20px 0}
.cms-stat-link{color:inherit;text-decoration:none}
.cms-stat-caption{display:block;color:#9aafc1}
.cms-device-stat-value{display:block;font-size:24px;margin-top:6px;color:#eaf7ff}
.cms-detail-block{display:block}
.cms-stock-allocation{width:100%;margin:16px 0}
.cms-stock-allocation-row{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:12px 0;border-bottom:1px solid rgb(255 255 255 / 8%)}
.cms-stock-label{margin:0;font-size:14px}
.cms-stock-amount{margin:0;text-align:right;white-space:nowrap}
.cms-log-status{display:inline-block;padding:5px 9px;border-radius:5px;font-weight:600}.cms-log-success{color:#83e5b2;background:#153b31}.cms-log-warning{color:#ffe298;background:#433522}.cms-log-danger{color:#ffadb4;background:#482530}.cms-log-info{color:#a9ddff;background:#20394c}
.cms-dark-date{color-scheme:dark}
.cms-account-history{margin-top:20px;border-top:1px solid rgb(255 255 255 / 10%);padding-top:16px}
.cms-activity-stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:16px;margin:16px 0}
.cms-activity-stat-value{display:block;font-size:22px;white-space:nowrap}
.cms-nowrap{white-space:nowrap}
.cms-visit-stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:16px;margin:16px 0}
.cms-visit-day-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(85px,1fr));gap:8px;width:100%}
.cms-export-panel{margin:20px 0}
.cms-export-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px}
.cms-flush{margin:0}
.cms-spaced-checkbox{margin:16px 0}
.cms-detail-block-spaced{display:block;margin-top:6px}
.cms-detail-spaced{margin-top:6px}
.cms-breakable-reference{display:block;overflow-wrap:anywhere}
.cms-player-contact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px 24px}
.cms-history-summary{cursor:pointer;color:var(--skin-accent,#ff7900);font-size:15px;}
.cms-history-caption{color:var(--skin-muted,#a8b8c9);margin-left:8px}
.cms-history-content{padding-top:16px}
.cms-install-stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:16px;margin:20px 0}
.cms-install-stat-value{display:block;font-size:28px;line-height:1.3;margin-top:6px;font-variant-numeric:tabular-nums}
.cms-install-stat-unknown{display:block;font-size:28px}
.cms-account-action{min-width:136px}
.cms-ledger-credit,.cms-ledger-debit{display:inline-block;padding:4px 8px;border-radius:4px}.cms-ledger-credit{color:#8ce9b6;background:#153b31}.cms-ledger-debit{color:#ffddb0;background:#433522}
.cms-broadcast-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px;margin-top:18px}
.cms-section-spaced{margin-top:24px}
.cms-occasion-editor-row{padding:16px 0;border-bottom:1px solid rgb(255 255 255 / 10%)}
.cms-heading-spaced{margin-top:20px}

.lw-registration-form input[type=date]::-webkit-calendar-picker-indicator{filter:brightness(0) invert(1);opacity:1}
.cms-visit-day{padding:10px;border:1px solid #34465b;background:#0a1726;color:#aebdd0;border-radius:5px}
.cms-visit-day.is-recorded{border-color:#28966d;background:#123e32;color:#a7f3d0}
.cms-chart-height-0{height:0%}
.cms-chart-height-1{height:1%}
.cms-chart-height-2{height:2%}
.cms-chart-height-3{height:3%}
.cms-chart-height-4{height:4%}
.cms-chart-height-5{height:5%}
.cms-chart-height-6{height:6%}
.cms-chart-height-7{height:7%}
.cms-chart-height-8{height:8%}
.cms-chart-height-9{height:9%}
.cms-chart-height-10{height:10%}
.cms-chart-height-11{height:11%}
.cms-chart-height-12{height:12%}
.cms-chart-height-13{height:13%}
.cms-chart-height-14{height:14%}
.cms-chart-height-15{height:15%}
.cms-chart-height-16{height:16%}
.cms-chart-height-17{height:17%}
.cms-chart-height-18{height:18%}
.cms-chart-height-19{height:19%}
.cms-chart-height-20{height:20%}
.cms-chart-height-21{height:21%}
.cms-chart-height-22{height:22%}
.cms-chart-height-23{height:23%}
.cms-chart-height-24{height:24%}
.cms-chart-height-25{height:25%}
.cms-chart-height-26{height:26%}
.cms-chart-height-27{height:27%}
.cms-chart-height-28{height:28%}
.cms-chart-height-29{height:29%}
.cms-chart-height-30{height:30%}
.cms-chart-height-31{height:31%}
.cms-chart-height-32{height:32%}
.cms-chart-height-33{height:33%}
.cms-chart-height-34{height:34%}
.cms-chart-height-35{height:35%}
.cms-chart-height-36{height:36%}
.cms-chart-height-37{height:37%}
.cms-chart-height-38{height:38%}
.cms-chart-height-39{height:39%}
.cms-chart-height-40{height:40%}
.cms-chart-height-41{height:41%}
.cms-chart-height-42{height:42%}
.cms-chart-height-43{height:43%}
.cms-chart-height-44{height:44%}
.cms-chart-height-45{height:45%}
.cms-chart-height-46{height:46%}
.cms-chart-height-47{height:47%}
.cms-chart-height-48{height:48%}
.cms-chart-height-49{height:49%}
.cms-chart-height-50{height:50%}
.cms-chart-height-51{height:51%}
.cms-chart-height-52{height:52%}
.cms-chart-height-53{height:53%}
.cms-chart-height-54{height:54%}
.cms-chart-height-55{height:55%}
.cms-chart-height-56{height:56%}
.cms-chart-height-57{height:57%}
.cms-chart-height-58{height:58%}
.cms-chart-height-59{height:59%}
.cms-chart-height-60{height:60%}
.cms-chart-height-61{height:61%}
.cms-chart-height-62{height:62%}
.cms-chart-height-63{height:63%}
.cms-chart-height-64{height:64%}
.cms-chart-height-65{height:65%}
.cms-chart-height-66{height:66%}
.cms-chart-height-67{height:67%}
.cms-chart-height-68{height:68%}
.cms-chart-height-69{height:69%}
.cms-chart-height-70{height:70%}
.cms-chart-height-71{height:71%}
.cms-chart-height-72{height:72%}
.cms-chart-height-73{height:73%}
.cms-chart-height-74{height:74%}
.cms-chart-height-75{height:75%}
.cms-chart-height-76{height:76%}
.cms-chart-height-77{height:77%}
.cms-chart-height-78{height:78%}
.cms-chart-height-79{height:79%}
.cms-chart-height-80{height:80%}
.cms-chart-height-81{height:81%}
.cms-chart-height-82{height:82%}
.cms-chart-height-83{height:83%}
.cms-chart-height-84{height:84%}
.cms-chart-height-85{height:85%}
.cms-chart-height-86{height:86%}
.cms-chart-height-87{height:87%}
.cms-chart-height-88{height:88%}
.cms-chart-height-89{height:89%}
.cms-chart-height-90{height:90%}
.cms-chart-height-91{height:91%}
.cms-chart-height-92{height:92%}
.cms-chart-height-93{height:93%}
.cms-chart-height-94{height:94%}
.cms-chart-height-95{height:95%}
.cms-chart-height-96{height:96%}
.cms-chart-height-97{height:97%}
.cms-chart-height-98{height:98%}
.cms-chart-height-99{height:99%}
.cms-chart-height-100{height:100%}
.cms-chart-columns-1{--chart-columns:1}
.cms-chart-columns-2{--chart-columns:2}
.cms-chart-columns-3{--chart-columns:3}
.cms-chart-columns-4{--chart-columns:4}
.cms-chart-columns-5{--chart-columns:5}
.cms-chart-columns-6{--chart-columns:6}
.cms-chart-columns-7{--chart-columns:7}
.cms-chart-columns-8{--chart-columns:8}
.cms-chart-columns-9{--chart-columns:9}
.cms-chart-columns-10{--chart-columns:10}
.cms-chart-columns-11{--chart-columns:11}
.cms-chart-columns-12{--chart-columns:12}
.cms-chart-columns-13{--chart-columns:13}
.cms-chart-columns-14{--chart-columns:14}
.cms-chart-columns-15{--chart-columns:15}
.cms-chart-columns-16{--chart-columns:16}
.cms-chart-columns-17{--chart-columns:17}
.cms-chart-columns-18{--chart-columns:18}
.cms-chart-columns-19{--chart-columns:19}
.cms-chart-columns-20{--chart-columns:20}
.cms-chart-columns-21{--chart-columns:21}
.cms-chart-columns-22{--chart-columns:22}
.cms-chart-columns-23{--chart-columns:23}
.cms-chart-columns-24{--chart-columns:24}
.cms-chart-columns-25{--chart-columns:25}
.cms-chart-columns-26{--chart-columns:26}
.cms-chart-columns-27{--chart-columns:27}
.cms-chart-columns-28{--chart-columns:28}
.cms-chart-columns-29{--chart-columns:29}
.cms-chart-columns-30{--chart-columns:30}
.cms-chart-columns-31{--chart-columns:31}

/* Keep the four operations figures together on normal phone widths. */
@media(min-width:360px) and (max-width:760px){
 .cms-admin-authenticated .lw-command-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
 .cms-admin-authenticated .lw-command-kpi{grid-template-columns:28px minmax(0,1fr);padding:12px;gap:8px;min-width:0;}
 .cms-admin-authenticated .lw-command-kpi-icon{width:28px;height:28px;font-size:16px;}
 .cms-admin-authenticated .lw-command-kpi .lw-admin-kicker{font-size:10px;line-height:1.35;white-space:normal;overflow:visible;min-height:27px;}
 .cms-admin-authenticated .lw-command-kpi-value{grid-column:1/-1;font-size:21px;white-space:nowrap;font-variant-numeric:tabular-nums;}
 .cms-admin-authenticated .lw-command-kpi>small{grid-column:1/-1;font-size:11px;line-height:1.4;}
 .cms-admin-authenticated .lw-command-kpi-arrow{display:none;}
}

/* Keep admin sections within their grid track, including wide player tables. */
.cms-admin-authenticated main.cms-stack > * { min-width: 0; }
.cms-admin-authenticated .cms-table-wrap { max-width: 100%; }
.cms-admin-authenticated .cms-export-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 999px) {
 .cms-admin-authenticated .cms-export-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 761px) {
 .cms-admin-authenticated .lw-players-page .cms-table { min-width: 1060px; }
 .cms-admin-authenticated .lw-players-page .cms-table :is(td,th):is(:nth-child(1),:nth-child(4),:nth-child(5),:nth-child(6)) { white-space: nowrap; }
}

.cms-admin-authenticated .lw-player-install-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin: 20px 0; }
.cms-admin-authenticated .cms-card:has(> .lw-player-money-grid) .cms-card-header { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.cms-admin-authenticated .cms-card:has(> .lw-player-money-grid) .cms-card-header > div:first-child { flex: 1 1 180px; min-width: 0; }
.cms-admin-authenticated .cms-card:has(> .lw-player-money-grid) .cms-card-header > .cms-button-row { flex: 0 1 auto; flex-wrap: wrap; }
.cms-admin-authenticated .lw-player-money-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.cms-admin-authenticated .lw-player-money-grid strong { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Admin controls use the selected skin's readable surface and text colours. */
body.cms-admin-authenticated .cms-button-secondary { color: var(--skin-text, #fff) !important; background: var(--skin-raised, #203247) !important; border-color: var(--skin-border, #40546d) !important; }
body.cms-admin-authenticated :is(.cms-input, .cms-select, textarea) { color: var(--skin-text, #fff); background-color: var(--skin-surface, #0d1d2e); border-color: var(--skin-border, #40546d); }
body.cms-admin-authenticated :is(.cms-input, textarea)::placeholder { color: var(--skin-muted, #aec5d8); opacity: 1; }
body.cms-admin-authenticated[data-site-skin="summer"] :is(h1, h2, h3, .cms-eyebrow, .lw-admin-kicker) { color: var(--skin-text, #243b48) !important; }

@media (min-width: 761px) {
 body.cms-admin-authenticated .cms-table-wrap .cms-table { min-width: 780px; }
 body.cms-admin-authenticated .cms-table th { white-space: nowrap; }
 body.cms-admin-authenticated .cms-table td:is([data-label="ID"], [data-label="Amount"], [data-label="Balance"], [data-label="Status"], [data-label="Submitted"]) { white-space: nowrap; }
}
body.cms-admin-authenticated .cms-status-badge { white-space: nowrap; }
body.cms-admin-authenticated .lw-queue-summary > a > b { grid-row: 1; }
body.cms-admin-authenticated .lw-queue-summary > a > small { grid-column: 1 / -1; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (min-width: 761px) {
 body.cms-admin-authenticated .cms-table-wrap .cms-table td:first-child { min-width: 120px; overflow-wrap: normal; word-break: normal; }
}

/* Full visual audit: readable metrics and compact mobile player records. */
body.cms-admin-authenticated .lw-command-kpi .lw-admin-kicker {white-space:normal;overflow:visible;text-overflow:clip;line-height:1.35;min-height:32px;padding-right:10px;}
body.cms-admin-authenticated .lw-command-kpi-value {white-space:nowrap;font-variant-numeric:tabular-nums;}
body.cms-admin-authenticated .cms-dashboard-module-group :is(a,span) {text-overflow:clip;white-space:normal;}
@media(max-width:760px) {
 body.cms-admin-authenticated .lw-players-page .cms-install-stat-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
 body.cms-admin-authenticated .lw-players-page .cms-install-stat-grid .cms-table-detail {font-size:11px;line-height:1.35;}
 body.cms-admin-authenticated .lw-players-page .cms-install-stat-value {font-size:22px;}
 body.cms-admin-authenticated .lw-players-page .cms-table-mobile-cards tr:has(td[data-label]) {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;padding:12px;margin-bottom:12px;}
 body.cms-admin-authenticated .lw-players-page .cms-table-mobile-cards td[data-label] {display:block;width:auto!important;min-width:0!important;margin:0;padding:0!important;font-size:13px;line-height:1.4;border:0;overflow-wrap:anywhere;}
 body.cms-admin-authenticated .lw-players-page .cms-table-mobile-cards td[data-label]::before {display:block;margin:0 0 3px;font-size:10px;color:var(--skin-muted);font-weight:500;}
 body.cms-admin-authenticated .lw-players-page .cms-table-mobile-cards td:is([data-label="Email"],[data-label="Phone"]) {grid-column:1 / -1;}
 body.cms-admin-authenticated .lw-players-page .cms-table-mobile-cards .cms-status-badge {display:inline-flex;width:auto;}
 body.cms-admin-authenticated .lw-players-page .cms-table-mobile-cards td[data-label="Action"]::before {display:none;}
 body.cms-admin-authenticated .lw-players-page .cms-table-mobile-cards td[data-label="Action"] .cms-button {box-sizing:border-box;width:100%;height:44px;min-height:44px;padding:0 8px;font-size:12px;}
}

body.cms-admin-authenticated .cms-button {box-sizing:border-box;min-height:36px;padding:0 12px;font-family:inherit;font-size:13px;line-height:1.3;display:inline-flex;align-items:center;justify-content:center;gap:8px;}
@media(min-width:1000px) {body.cms-admin-authenticated .cms-admin-panel>aside .cms-nav a {min-height:36px;box-sizing:border-box;padding:8px 10px;font-size:12px;line-height:1.3;}}
@media(max-width:999px) {body.cms-admin-authenticated .cms-button {min-height:44px;}}

@media(max-width:760px) {
 body.cms-admin-authenticated .lw-players-page .lw-player-install-totals {grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
 body.cms-admin-authenticated .lw-players-page .lw-player-mobile-meta {display:none;}
 body.cms-admin-authenticated .lw-players-page td[data-label="Balance"] {white-space:nowrap;font-variant-numeric:tabular-nums;}
}

/* Tablet administration uses the full content area and a navigation drawer. */
@media(min-width:761px) and (max-width:999px) {
 body.cms-admin-authenticated .cms-admin-panel {display:block;min-height:100vh;}
 body.cms-admin-authenticated .cms-admin-panel>aside.cms-card {position:sticky;z-index:60;top:var(--demo-bar-height,0px);width:100%;height:auto;overflow:visible;border-width:0 0 1px;padding:10px 14px;}
 body.cms-admin-authenticated .cms-admin-panel>aside .cms-card-header {margin:0;}
 body.cms-admin-authenticated .cms-admin-panel>aside .cms-brand-logo {height:48px;max-width:180px;}
 body.cms-admin-authenticated .cms-admin-panel>main {width:100%;box-sizing:border-box;min-height:calc(100vh - 69px);padding:18px 20px 36px;}
 body.cms-admin-authenticated .cms-admin-menu-toggle {display:inline-flex;width:44px;min-width:44px;padding:0;margin-left:auto;justify-content:center;}
 body.cms-admin-authenticated .cms-admin-menu-toggle span {position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);}
 body.cms-admin-authenticated .cms-admin-navigation {position:fixed;z-index:70;top:0;left:0;display:block;box-sizing:border-box;width:min(86vw,330px);height:100dvh;overflow-y:auto;background:var(--skin-surface,#0d1b2d);padding:22px 18px;box-shadow:18px 0 60px rgb(0 0 0 / 45%);transform:translateX(-105%);transition:transform .22s ease;}
 body.cms-admin-authenticated .cms-admin-navigation.is-open {transform:translateX(0);}
 body.cms-admin-authenticated .cms-nav-backdrop {position:fixed;z-index:55;inset:0;border:0;background:rgb(0 0 0 / 65%);}
 body.cms-admin-authenticated.cms-menu-open .cms-nav-backdrop {display:block;}
 body.cms-admin-authenticated.cms-menu-open {overflow:hidden;}
}
@media(min-width:761px) {
 body.cms-admin-authenticated .lw-players-page .cms-table-wrap {overflow-x:auto;max-width:100%;}
 body.cms-admin-authenticated .lw-players-page .cms-table-wrap .cms-table {min-width:1060px;table-layout:auto;}
 body.cms-admin-authenticated .lw-players-page .cms-table-wrap .cms-table td {white-space:nowrap;overflow-wrap:normal;word-break:normal;}
}

/* Reporting labels and values use the active theme instead of fixed dark-skin colours. */
body.cms-admin-authenticated :is(.cms-stat-caption,.lw-finance-summary small,.lw-finance-note,.lw-dashboard-promo small) {color:var(--skin-muted,#a9bdce);}
body.cms-admin-authenticated :is(.cms-device-stat-value,.lw-finance-summary strong,.lw-dashboard-promo) {color:var(--skin-text,#f5f8fb);}
body.cms-admin-authenticated .lw-finance-tabs {background:var(--skin-surface,#0b1826);border:1px solid var(--skin-border,#40546d);}
body.cms-admin-authenticated .lw-finance-tabs a {color:var(--skin-muted,#b7c9d8);}
body.cms-admin-authenticated .lw-finance-tabs a[aria-current="page"] {background:var(--skin-raised,#20394b);color:var(--skin-text,#fff);box-shadow:inset 0 -2px var(--skin-warm,#ff9d23);}
body.cms-admin-authenticated .lw-chart-tooltip {background:var(--skin-surface,#20394b);border-color:var(--skin-border,#547386);color:var(--skin-text,#fff);}
body.cms-admin-authenticated .cms-history-summary {color:var(--skin-warm,#ff7900);}

body.cms-admin-authenticated .lw-dashboard-promo strong {color:var(--skin-text,#f2f6fa);}


/* Demo-disabled actions remain readable without looking available. */
body.cms-page .cms-button:disabled {opacity:1;color:var(--skin-muted,#a9bdce);background:var(--skin-raised,#203247);border:1px solid var(--skin-border,#40546d);box-shadow:none;cursor:not-allowed;}

/* Compact payment queue summaries keep the first record within reach on phones. */
@media(min-width:360px) and (max-width:760px) {
 body.cms-admin-authenticated .lw-queue-summary {grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
 body.cms-admin-authenticated .lw-queue-summary > a {grid-template-columns:1fr;gap:4px;padding:10px;min-width:0;}
 body.cms-admin-authenticated .lw-queue-summary > a > span {font-size:10px;line-height:1.3;}
 body.cms-admin-authenticated .lw-queue-summary > a > b {grid-column:1;grid-row:2;font-size:22px;line-height:1.2;}
 body.cms-admin-authenticated .lw-queue-summary > a > small {font-size:11px;line-height:1.3;}
}
/* Desktop has a persistent sidebar; its drawer toggle belongs only below 1000px. */
@media(min-width:1000px) {
 body.cms-admin-authenticated .cms-admin-menu-toggle {display:none!important;}
}
@media(max-width:760px) {
 body.cms-admin-authenticated .cms-admin-menu-toggle {width:44px;min-width:44px;height:44px;padding:0;justify-content:center;}
 body.cms-admin-authenticated .cms-admin-menu-toggle span {position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);}
}