/* Superadmin's Bet Control page styles (resources/js/views/EventMarkets.vue, <style scoped>), copied unchanged for the
   client portal's Bet Control. Keep in step with Superadmin. */
.global-control-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; margin-bottom:14px; }
.global-control-grid .panel { display:flex; flex-direction:column; margin:0; }
.global-control-grid .panel-heading { min-height:36px; padding:8px 12px; }
.global-control { border-left:3px solid #2a763e; }
.global-control.stopped { border-left-color:#ad2939; }
.global-control-body { display:grid; flex:1; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:14px; padding:14px 12px; }
.global-control-body > div { min-width:0; }
.global-control-body strong { display:block; margin-bottom:6px; color:#203d61; font-size:14px; line-height:1.4; }
.global-control-body p { color:#627187; font-size:11px; line-height:1.5; }
.global-control-body .control-audit { margin-top:8px; font-size:10px; }
.global-control-body .button { min-height:34px; }
.stop-button { background:#b52235; border-color:#a51d2e; color:#fff; }
.stop-button:hover:not(:disabled) { background:#971a2b; border-color:#971a2b; }
.modal-explanation { margin-bottom:16px; color:#52647b; font-size:12px; line-height:1.6; }
.modal-field { margin-bottom:14px; gap:6px; font-size:12px; }
.modal-field input, .modal-field textarea { min-height:34px; }
.form-actions .button { min-height:34px; min-width:84px; }

.market-filters { display:grid; grid-template-columns:minmax(220px,1fr) 150px 150px auto; align-items:end; gap:12px; padding:12px; margin-bottom:12px; background:#ffffe0; border:1px solid #e4d98a; border-bottom-color:#cca300; }
.market-filters label { min-width:0; }
.market-filters input, .market-filters select, .market-filters .button { min-height:34px; }
.market-filters .button { min-width:88px; }
.event-list { --event-columns:minmax(225px,1.5fr) minmax(0,4fr) 104px; }
.event-list > .panel-heading { min-height:38px; padding:8px 12px; }
.event-count { margin-left:5px; color:#627187; font-weight:400; }
.list-hint { color:#627187; font-size:11px; }
.event-list-rows { max-height:max(250px,calc(100dvh - 430px)); overflow:auto; overscroll-behavior:contain; }
.event-list-columns, .event-control-row { display:grid; grid-template-columns:var(--event-columns); gap:12px; align-items:center; padding:10px 12px; }
.event-list-columns { position:sticky; top:0; z-index:1; background:#edf2f8; border-bottom:1px solid #c5d2e2; color:#40536b; font-size:11px; font-weight:700; line-height:1.4; }
.event-list-columns > span:last-child { text-align:center; }
.event-control-headings, .event-control-buttons { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); align-items:stretch; gap:6px; min-width:0; }
.event-control-headings > span { display:flex; justify-content:center; align-items:center; text-align:center; min-width:0; }
.event-control-row { border-bottom:1px solid #dce1e6; background:#fff; }
.event-control-row:nth-child(odd) { background:#f8fafc; }
.event-control-row:hover { background:#f0f5fb; }
.event-control-row:last-child { border-bottom:0; }
.event-info { min-width:0; }
.event-info h3 { margin:0 0 5px; font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
.event-info p { display:flex; flex-wrap:wrap; align-items:center; gap:5px; margin:0 0 4px; font-size:10px; color:#627187; }
.event-info small { display:block; color:#748194; font-size:10px; line-height:1.5; }
.event-state { padding:2px 5px; border-radius:3px; background:#eef1f5; color:#627187; }
.event-state.live { background:#e6f3eb; color:#256a3c; }
.parent-stop { display:block; margin-top:5px; color:#ad2637; font-size:10px; }
.event-control { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; min-width:0; border-radius:4px; }
.event-control.master { background:#e9f1fc; }
.control-label { display:none; align-items:center; min-height:26px; text-align:center; font-size:11px; font-weight:700; line-height:1.3; color:#30455b; }
.control-switch { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; gap:6px; min-height:34px; padding:5px 4px; border:0; border-radius:4px; background:transparent; color:#ad2637; font-size:11px; cursor:pointer; white-space:nowrap; }
.event-control .control-switch { width:100%; min-height:50px; flex-direction:column; gap:4px; }
.control-switch.enabled { color:#2a653a; }
.control-switch:hover:not(:disabled) { background:#e0e8f3; }
.control-switch:disabled { opacity:.55; cursor:default; }
.control-switch:focus-visible { outline:2px solid #012b72; outline-offset:-2px; }
.switch-track { display:inline-flex; flex-shrink:0; align-items:center; width:32px; height:18px; padding:2px; border-radius:10px; background:#ad2939; }
.switch-track > span { width:14px; height:14px; border-radius:50%; background:#fff; transition:transform .15s; }
.control-switch.enabled .switch-track { background:#2a763e; }
.control-switch.enabled .switch-track > span { transform:translateX(14px); }
.view-markets { min-height:34px; padding:6px 9px; }
.page-footnote { margin:10px 0 0; color:#748194; font-size:10px; line-height:1.5; }
.notice .text-link { margin-left:8px; text-decoration:underline; }

.fancy-type-menu { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 12px; }
.fancy-type-menu button { display:inline-flex; align-items:center; gap:6px; min-height:32px; padding:6px 10px; border:1px solid #ccd6e1; border-radius:4px; background:#f4f7fa; color:#30455b; font:inherit; font-size:11px; cursor:pointer; }
.fancy-type-menu button.selected { background:#012b72; border-color:#012b72; color:#fff; }
.fancy-type-menu button:focus-visible { outline:2px solid #012b72; outline-offset:2px; }
.fancy-type-menu button:disabled { opacity:.55; cursor:default; }
.fancy-type-menu span { min-width:16px; padding:1px 4px; border-radius:3px; background:#0001; font-size:10px; }
.fancy-type-menu button.selected span { background:#fff2; }
.fancy-bulk-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; margin-bottom:12px; }
.fancy-bulk-actions > span { flex:1 1 220px; min-width:0; color:#627187; font-size:11px; line-height:1.5; overflow-wrap:anywhere; }
.market-modal { min-width:0; }
.market-toolbar { display:flex; flex-wrap:wrap; align-items:end; gap:12px; margin-bottom:12px; padding:10px; border:1px solid #d8e0e9; border-radius:3px; background:#f4f7fa; }
.market-toolbar label { min-width:0; }
.market-toolbar input, .market-toolbar select, .market-toolbar .button { min-height:34px; }
.market-toolbar select { min-width:190px; }
.market-search { flex:1; }
.market-list-summary, .market-list-row { display:grid; grid-template-columns:minmax(0,1fr) 158px 120px; align-items:center; gap:12px; padding:10px 12px; }
.market-list-summary { overflow-y:auto; scrollbar-gutter:stable; background:#e9eef4; color:#40536b; font-size:11px; font-weight:700; border:1px solid #d8e0e9; }
.market-list-summary > span:last-child { text-align:center; }
.market-list { max-height:min(52vh,560px); overflow-y:auto; overscroll-behavior:contain; border:1px solid #d8e0e9; border-top:0; scrollbar-gutter:stable; }
.market-list-row { border-bottom:1px solid #e0e5eb; }
.market-list-row:last-child { border-bottom:0; }
.market-list-row:nth-child(even) { background:#f8fafc; }
.market-name { min-width:0; }
.market-name strong { display:block; font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
.market-name small { display:block; margin-top:4px; font-size:10px; color:#748194; overflow-wrap:anywhere; }
.market-restriction { display:block; margin-top:4px; color:#627187; font-size:11px; line-height:1.4; }
.market-restriction.stopped { color:#ad2637; }
.market-source { color:#53667c; font-size:11px; line-height:1.5; overflow-wrap:anywhere; }
.market-source > span { display:inline-block; padding:2px 6px; border-radius:3px; background:#edf2f8; font-weight:700; }
.market-source small { display:block; margin-top:4px; font-size:10px; }
@media (min-width:1600px) { .event-control .control-switch { flex-direction:row; min-height:38px; } }
@media (max-width:1239px) {
  .global-control-grid { grid-template-columns:1fr; }
  .event-list-columns { display:none; }
  .event-control-row { grid-template-columns:minmax(0,1fr) 104px; gap:10px; }
  .event-control-buttons { grid-column:1 / -1; grid-row:2; }
  .event-control { padding:4px; background:#f4f7fa; }
  .control-label { display:flex; }
  .view-markets { grid-column:2; grid-row:1; }
}
@media (max-width:700px) {
  .global-control-body { grid-template-columns:minmax(0,1fr); gap:10px; }
  .global-control-body .button { justify-self:start; }
  .market-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .market-filters label:first-child { grid-column:1 / -1; }
  .event-control-buttons { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .market-toolbar > label { flex:1 1 100%; }
  .market-toolbar select { min-width:0; }
  .market-toolbar > button { margin-left:auto; }
  .market-list-summary, .market-list-row { grid-template-columns:minmax(0,1fr) 92px; gap:6px 10px; }
  .market-list-summary > span:nth-child(2) { display:none; }
  .market-source { grid-column:1; grid-row:2; }
  .market-source small { display:inline; margin-left:5px; }
  .market-switch { grid-column:2; grid-row:1 / 3; flex-direction:column; }
  .list-hint { max-width:130px; text-align:right; }
}

/* "All events": one switch per market type for every event at once; labels always shown, as there is no heading row. */
.global-switches { margin-bottom:14px; }
.global-switches > .panel-heading { min-height:38px; padding:8px 12px; }
.global-buttons { grid-template-columns:repeat(6,minmax(0,1fr)); padding:10px 12px; }
.global-buttons .control-label { display:flex; justify-content:center; }
@media (max-width:700px) { .global-buttons { grid-template-columns:repeat(3,minmax(0,1fr)); } }
