/* Original palette from b36e502, before the dark-theme conversion.
   html:root keeps these light-only aliases ahead of app.css defaults. */
html:root {
  color-scheme: light;
  --control-bg: #ffffff;
  --control-text: #121212;
  --control-border: #ced4da;
  --control-focus: #0d6efd;
  --table-bg: #ffffff;
  --table-header: #eef3fb;
  --table-stripe: #f3f4f6;
  --theme-canvas: #f5f7fb;
  --theme-surface: #ffffff;
  --theme-raised: #f8fafc;
  --theme-muted: #6c757d;
  --theme-border: #dee2e6;
  --theme-link: #0d6efd;
  --theme-primary: #0d6efd;
  --theme-selected: rgba(13, 110, 253, 0.12);
  --app-green: #00b97d;
  --app-red: #ff2844;
  --app-table-header-color: #1f2937;
  --app-selected-bg: var(--theme-primary);
  --app-selected-surface: var(--theme-selected);
  --app-alert-danger-bg: #fcc8c5;
  --theme-positive: var(--app-green);
  --theme-negative: var(--app-red);
  --theme-on-negative: #ffffff;
  --theme-positive-bg: color-mix(in srgb, var(--theme-positive) 12%, var(--theme-surface));
  --theme-negative-bg: color-mix(in srgb, var(--theme-negative) 12%, var(--theme-surface));
  --theme-warning: #92400e;
  --theme-warning-bg: #fffbeb;
  --theme-overlay: rgba(0, 0, 0, 0.45);
  --theme-ticker: #121212;
  --theme-logo-filter: none;
}

html:root th {
  color: var(--app-table-header-color);
}

html:root th,
html:root td {
  border-bottom-color: whitesmoke;
}

html:root tbody tr:hover {
  background: rgba(59, 130, 246, 0.1);
}

html:root .app-button-primary:hover,
html:root .login-submit-button:hover {
  background: #0b5ed7;
  border-color: #0a58ca;
}

html:root .app-button-secondary,
html:root .navbar-clock {
  background: #6c757d;
  border-color: #6c757d;
  color: #ffffff;
}

html:root .app-button-secondary:hover {
  background: #5c636a;
  border-color: #565e64;
}

html:root .app-button-outline-secondary {
  background: transparent;
  border-color: #6c757d;
  color: #6c757d;
}

html:root .app-button-outline-secondary:hover {
  background: #6c757d;
  color: #ffffff;
}

html:root .app-button-success,
html:root td.side-buy,
html:root .dealer-ticket-side-options .dealer-side-buy {
  color: #ffffff;
}

html:root .app-button.app-button-success:is(:disabled, [aria-disabled="true"], .disabled) {
  background: var(--theme-positive);
  border-color: var(--theme-positive);
  opacity: 0.65;
}

html:root .app-button.app-button-danger:is(:disabled, [aria-disabled="true"], .disabled) {
  background: var(--theme-negative);
  border-color: var(--theme-negative);
  opacity: 0.65;
}

html:root .app-button-mustard {
  background: #d4a017;
  border-color: #d4a017;
  color: #1f1f1f;
}

html:root .app-button-mustard:hover {
  background: #c49314;
  border-color: #b88b13;
}

html:root .custom-link.active,
html:root .custom-link.active:hover {
  background: var(--app-selected-bg);
  border-color: var(--app-selected-bg);
  color: #ffffff;
  box-shadow: none;
}

html:root .app-alert-info {
  background: #cff4fc;
  border-color: #9eeaf9;
  color: #055160;
}
