@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Cedarville+Cursive&display=swap");
@font-face {
  font-family: "Segoe UI Variable";
  src: url("/fonts/Segoe-UI-Variable-Static-Text.woff");
}
@font-face {
  font-family: "Segoe UI Display Bold";
  src: url("/fonts/Segoe-UI-Variable-Static-Display-Bold.woff");
}
@font-face {
  font-family: "Segoe UI Display Semi-Bold";
  src: url("/fonts/Segoe-UI-Variable-Static-Display-Semibold.woff");
}
@font-face {
  font-family: "Inter-Regular";
  src: url("/fonts/Inter-Regular.otf");
}
:root {
  --nav-width: 5em;
  --z-fixed: 9999;
  --header-height: 3em;
  --lnav-width: 3.3em;
  --expansion-size: 12em;
  --bg: #0a0a0a;
  --surface: #111111;
  --surface-2: #1a1a1a;
  --surface-3: #222;
  --border: #2a2a2a;
  --border-light: #333;
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --text-dim: #7d8590;
  --accent: #3b82f6;
  --accent-glow: #60a5fa;
  --cyan: #22d3ee;
  --green: #4ade80;
  --red: #f87171;
  --purple: #a78bfa;
  --orange: #fb923c;
  --yellow: #fbbf24;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --gold: #facc15;
}

.s-draft,
.s-purple {
  --_sc: var(--purple);
  --_sb: rgba(167, 139, 250, 0.12);
}

.s-pending,
.s-yellow {
  --_sc: var(--yellow);
  --_sb: rgba(251, 191, 36, 0.12);
}

.s-rejected,
.s-closed,
.s-barred,
.s-negative,
.s-red {
  --_sc: var(--red);
  --_sb: rgba(248, 113, 113, 0.12);
}

.s-inactive,
.s-disabled,
.s-muted {
  --_sc: var(--text-muted);
  --_sb: rgba(156, 163, 175, 0.1);
}

.s-active,
.s-good,
.s-going,
.s-green {
  --_sc: var(--green);
  --_sb: rgba(74, 222, 128, 0.12);
}

.s-complete,
.s-accent {
  --_sc: var(--accent);
  --_sb: rgba(59, 130, 246, 0.12);
}

.s-warning,
.s-orange {
  --_sc: var(--orange);
  --_sb: rgba(251, 146, 60, 0.12);
}

.s-alert,
.s-critical,
.s-rose {
  --_sc: var(--rose);
  --_sb: rgba(244, 63, 94, 0.12);
}

.status-dot {
  display: inline-flex;
  align-items: center;
  color: var(--_sc, var(--text-muted));
  font-weight: 600;
  font-size: 13px;
  font-family: "Inter", sans-serif;
  white-space: nowrap;
}
.status-dot::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  flex-shrink: 0;
  background-color: var(--_sc, var(--text-muted));
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  white-space: nowrap;
  color: var(--_sc, var(--text-muted));
  background: var(--_sb, transparent);
}

.status-circle {
  display: inline-block;
  border-radius: 50%;
  flex-shrink: 0;
  background-color: var(--_sb, rgba(156, 163, 175, 0.1));
  border: 1px solid var(--_sc, var(--text-muted));
  width: 10px;
  height: 10px;
}

.status-left {
  border-left: 4px solid var(--_sc, var(--text-muted)) !important;
}

.status-text, .status-text-6, .status-text-5, .status-text-4, .status-text-3, .status-text-2, .status-text-1 {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 13px;
  font-family: "Inter", sans-serif;
  white-space: nowrap;
}
.status-text::before, .status-text-6::before, .status-text-5::before, .status-text-4::before, .status-text-3::before, .status-text-2::before, .status-text-1::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  flex-shrink: 0;
}

.status-text-1 {
  color: var(--purple);
}
.status-text-1::before {
  background-color: var(--purple);
}

.status-text-2 {
  color: var(--yellow);
}
.status-text-2::before {
  background-color: var(--yellow);
}

.status-text-3 {
  color: var(--red);
}
.status-text-3::before {
  background-color: var(--red);
}

.status-text-4 {
  color: var(--text-muted);
}
.status-text-4::before {
  background-color: var(--text-muted);
}

.status-text-5 {
  color: var(--green);
}
.status-text-5::before {
  background-color: var(--green);
}

.status-text-6 {
  color: var(--accent);
}
.status-text-6::before {
  background-color: var(--accent);
}

.status-1 {
  border-left: 4px solid var(--purple) !important;
}

.status-2 {
  border-left: 4px solid var(--yellow) !important;
}

.status-3 {
  border-left: 4px solid var(--red) !important;
}

.status-4 {
  border-left: 4px solid var(--text-muted) !important;
}

.status-5 {
  border-left: 4px solid var(--green) !important;
}

.status-6 {
  border-left: 4px solid var(--accent) !important;
}

.open-table,
.full-table,
.closed-table,
.locked-table {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.3125rem !important;
  padding: 0.25rem 0.625rem !important;
  border-radius: 0.25rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  text-transform: uppercase;
  white-space: nowrap;
}
.open-table i.fa-circle,
.full-table i.fa-circle,
.closed-table i.fa-circle,
.locked-table i.fa-circle {
  font-size: 0.375rem;
}

.open-table {
  color: var(--green) !important;
  background: rgba(77, 173, 128, 0.12);
}

.full-table {
  color: var(--green) !important;
  background: rgba(77, 173, 128, 0.12);
}

.closed-table {
  color: var(--red) !important;
  background: rgba(248, 113, 113, 0.12);
}

.locked-table {
  color: var(--yellow) !important;
  background: rgba(254, 196, 68, 0.12);
}

.profile-status {
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  padding: 3px 10px;
  text-align: center;
  min-width: 80px;
  width: auto;
}
.profile-status.good {
  background: rgba(74, 222, 128, 0.12) !important;
  color: var(--green) !important;
}
.profile-status.negative {
  background: rgba(248, 113, 113, 0.12) !important;
  color: var(--red) !important;
}

.CircleGoing {
  display: inline-block;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  align-self: center;
  margin: 2px 5px;
  flex-shrink: 0;
  background-color: rgba(74, 222, 128, 0.3);
  border: 1px solid var(--green);
}

.CircleInterest {
  display: inline-block;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  align-self: center;
  margin: 2px 5px;
  flex-shrink: 0;
  background-color: rgba(251, 146, 60, 0.3);
  border: 1px solid var(--orange);
}

.CircleNotGoing {
  display: inline-block;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  align-self: center;
  margin: 2px 5px;
  flex-shrink: 0;
  background-color: rgba(248, 113, 113, 0.3);
  border: 1px solid var(--red);
}

.note-badge {
  background-color: rgba(248, 113, 113, 0.15) !important;
  border-radius: 99em;
  padding: 2px 10px;
  height: auto;
  display: flex;
  align-items: center;
}
.note-badge .note-count {
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}

.ms-note-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 99em;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-left: 0.5rem;
}
.ms-note-badge-barred {
  background-color: rgba(248, 113, 113, 0.15);
  color: var(--red);
}
.ms-note-badge-mtl {
  background-color: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.player-notes-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 99em;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.player-notes-btn svg {
  flex-shrink: 0;
}
.player-notes-btn:hover {
  background: var(--surface-3);
  border-color: var(--border-light);
  color: var(--text);
}
.player-notes-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.player-notes-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3125rem;
  border-radius: 99em;
  font-size: 0.6875rem;
  font-weight: 700;
  background: var(--surface-3);
  color: var(--text-dim);
}
.player-notes-count-alert {
  background: rgba(248, 113, 113, 0.15);
  color: var(--red);
}

.player-notes-barred-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 99em;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: rgba(248, 113, 113, 0.15);
  color: var(--red);
  border: 1px solid rgba(248, 113, 113, 0.3);
  animation: playerNotesPulse 1.8s ease-in-out infinite;
}

@keyframes playerNotesPulse {
  0%, 100% {
    background: rgba(248, 113, 113, 0.15);
    border-color: rgba(248, 113, 113, 0.3);
    box-shadow: none;
  }
  50% {
    background: rgba(248, 113, 113, 0.28);
    border-color: rgba(248, 113, 113, 0.5);
    box-shadow: 0 0 0.5rem 0.125rem rgba(248, 113, 113, 0.2);
  }
}
.barred {
  background-color: var(--red) !important;
}

.row {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(-1 * var(--bs-gutter-y));
  margin-right: calc(-0.5 * var(--bs-gutter-x));
  margin-left: calc(-0.5 * var(--bs-gutter-x));
}
.row > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  margin-top: var(--bs-gutter-y);
}

.col {
  flex: 1 0 0%;
}

.row-cols-auto > * {
  flex: 0 0 auto;
  width: auto;
}

.row-cols-1 > * {
  flex: 0 0 auto;
  width: 100%;
}

.row-cols-2 > * {
  flex: 0 0 auto;
  width: 50%;
}

.row-cols-3 > * {
  flex: 0 0 auto;
  width: 33.3333333333%;
}

.row-cols-4 > * {
  flex: 0 0 auto;
  width: 25%;
}

.row-cols-5 > * {
  flex: 0 0 auto;
  width: 20%;
}

.row-cols-6 > * {
  flex: 0 0 auto;
  width: 16.6666666667%;
}

.col-auto {
  flex: 0 0 auto;
  width: auto;
}

.col-1 {
  flex: 0 0 auto;
  width: 8.33333333%;
}

.col-2 {
  flex: 0 0 auto;
  width: 16.66666667%;
}

.col-3 {
  flex: 0 0 auto;
  width: 25%;
}

.col-4 {
  flex: 0 0 auto;
  width: 33.33333333%;
}

.col-5 {
  flex: 0 0 auto;
  width: 41.66666667%;
}

.col-6 {
  flex: 0 0 auto;
  width: 50%;
}

.col-7 {
  flex: 0 0 auto;
  width: 58.33333333%;
}

.col-8 {
  flex: 0 0 auto;
  width: 66.66666667%;
}

.col-9 {
  flex: 0 0 auto;
  width: 75%;
}

.col-10 {
  flex: 0 0 auto;
  width: 83.33333333%;
}

.col-11 {
  flex: 0 0 auto;
  width: 91.66666667%;
}

.col-12 {
  flex: 0 0 auto;
  width: 100%;
}

.offset-1 {
  margin-left: 8.33333333%;
}

.offset-2 {
  margin-left: 16.66666667%;
}

.offset-3 {
  margin-left: 25%;
}

.offset-4 {
  margin-left: 33.33333333%;
}

.offset-5 {
  margin-left: 41.66666667%;
}

.offset-6 {
  margin-left: 50%;
}

.offset-7 {
  margin-left: 58.33333333%;
}

.offset-8 {
  margin-left: 66.66666667%;
}

.offset-9 {
  margin-left: 75%;
}

.offset-10 {
  margin-left: 83.33333333%;
}

.offset-11 {
  margin-left: 91.66666667%;
}

.g-0,
.gx-0 {
  --bs-gutter-x: 0;
}

.g-0,
.gy-0 {
  --bs-gutter-y: 0;
}

.g-1,
.gx-1 {
  --bs-gutter-x: 0.25rem;
}

.g-1,
.gy-1 {
  --bs-gutter-y: 0.25rem;
}

.g-2,
.gx-2 {
  --bs-gutter-x: 0.5rem;
}

.g-2,
.gy-2 {
  --bs-gutter-y: 0.5rem;
}

.g-3,
.gx-3 {
  --bs-gutter-x: 1rem;
}

.g-3,
.gy-3 {
  --bs-gutter-y: 1rem;
}

.g-4,
.gx-4 {
  --bs-gutter-x: 1.5rem;
}

.g-4,
.gy-4 {
  --bs-gutter-y: 1.5rem;
}

.g-5,
.gx-5 {
  --bs-gutter-x: 3rem;
}

.g-5,
.gy-5 {
  --bs-gutter-y: 3rem;
}

@media (min-width: 576px) {
  .col-sm {
    flex: 1 0 0%;
  }
  .row-cols-sm-auto > * {
    flex: 0 0 auto;
    width: auto;
  }
  .row-cols-sm-1 > * {
    flex: 0 0 auto;
    width: 100%;
  }
  .row-cols-sm-2 > * {
    flex: 0 0 auto;
    width: 50%;
  }
  .row-cols-sm-3 > * {
    flex: 0 0 auto;
    width: 33.3333333333%;
  }
  .row-cols-sm-4 > * {
    flex: 0 0 auto;
    width: 25%;
  }
  .row-cols-sm-5 > * {
    flex: 0 0 auto;
    width: 20%;
  }
  .row-cols-sm-6 > * {
    flex: 0 0 auto;
    width: 16.6666666667%;
  }
  .col-sm-auto {
    flex: 0 0 auto;
    width: auto;
  }
  .col-sm-1 {
    flex: 0 0 auto;
    width: 8.33333333%;
  }
  .col-sm-2 {
    flex: 0 0 auto;
    width: 16.66666667%;
  }
  .col-sm-3 {
    flex: 0 0 auto;
    width: 25%;
  }
  .col-sm-4 {
    flex: 0 0 auto;
    width: 33.33333333%;
  }
  .col-sm-5 {
    flex: 0 0 auto;
    width: 41.66666667%;
  }
  .col-sm-6 {
    flex: 0 0 auto;
    width: 50%;
  }
  .col-sm-7 {
    flex: 0 0 auto;
    width: 58.33333333%;
  }
  .col-sm-8 {
    flex: 0 0 auto;
    width: 66.66666667%;
  }
  .col-sm-9 {
    flex: 0 0 auto;
    width: 75%;
  }
  .col-sm-10 {
    flex: 0 0 auto;
    width: 83.33333333%;
  }
  .col-sm-11 {
    flex: 0 0 auto;
    width: 91.66666667%;
  }
  .col-sm-12 {
    flex: 0 0 auto;
    width: 100%;
  }
  .offset-sm-0 {
    margin-left: 0;
  }
  .offset-sm-1 {
    margin-left: 8.33333333%;
  }
  .offset-sm-2 {
    margin-left: 16.66666667%;
  }
  .offset-sm-3 {
    margin-left: 25%;
  }
  .offset-sm-4 {
    margin-left: 33.33333333%;
  }
  .offset-sm-5 {
    margin-left: 41.66666667%;
  }
  .offset-sm-6 {
    margin-left: 50%;
  }
  .offset-sm-7 {
    margin-left: 58.33333333%;
  }
  .offset-sm-8 {
    margin-left: 66.66666667%;
  }
  .offset-sm-9 {
    margin-left: 75%;
  }
  .offset-sm-10 {
    margin-left: 83.33333333%;
  }
  .offset-sm-11 {
    margin-left: 91.66666667%;
  }
  .g-sm-0,
  .gx-sm-0 {
    --bs-gutter-x: 0;
  }
  .g-sm-0,
  .gy-sm-0 {
    --bs-gutter-y: 0;
  }
  .g-sm-1,
  .gx-sm-1 {
    --bs-gutter-x: 0.25rem;
  }
  .g-sm-1,
  .gy-sm-1 {
    --bs-gutter-y: 0.25rem;
  }
  .g-sm-2,
  .gx-sm-2 {
    --bs-gutter-x: 0.5rem;
  }
  .g-sm-2,
  .gy-sm-2 {
    --bs-gutter-y: 0.5rem;
  }
  .g-sm-3,
  .gx-sm-3 {
    --bs-gutter-x: 1rem;
  }
  .g-sm-3,
  .gy-sm-3 {
    --bs-gutter-y: 1rem;
  }
  .g-sm-4,
  .gx-sm-4 {
    --bs-gutter-x: 1.5rem;
  }
  .g-sm-4,
  .gy-sm-4 {
    --bs-gutter-y: 1.5rem;
  }
  .g-sm-5,
  .gx-sm-5 {
    --bs-gutter-x: 3rem;
  }
  .g-sm-5,
  .gy-sm-5 {
    --bs-gutter-y: 3rem;
  }
}
@media (min-width: 768px) {
  .col-md {
    flex: 1 0 0%;
  }
  .row-cols-md-auto > * {
    flex: 0 0 auto;
    width: auto;
  }
  .row-cols-md-1 > * {
    flex: 0 0 auto;
    width: 100%;
  }
  .row-cols-md-2 > * {
    flex: 0 0 auto;
    width: 50%;
  }
  .row-cols-md-3 > * {
    flex: 0 0 auto;
    width: 33.3333333333%;
  }
  .row-cols-md-4 > * {
    flex: 0 0 auto;
    width: 25%;
  }
  .row-cols-md-5 > * {
    flex: 0 0 auto;
    width: 20%;
  }
  .row-cols-md-6 > * {
    flex: 0 0 auto;
    width: 16.6666666667%;
  }
  .col-md-auto {
    flex: 0 0 auto;
    width: auto;
  }
  .col-md-1 {
    flex: 0 0 auto;
    width: 8.33333333%;
  }
  .col-md-2 {
    flex: 0 0 auto;
    width: 16.66666667%;
  }
  .col-md-3 {
    flex: 0 0 auto;
    width: 25%;
  }
  .col-md-4 {
    flex: 0 0 auto;
    width: 33.33333333%;
  }
  .col-md-5 {
    flex: 0 0 auto;
    width: 41.66666667%;
  }
  .col-md-6 {
    flex: 0 0 auto;
    width: 50%;
  }
  .col-md-7 {
    flex: 0 0 auto;
    width: 58.33333333%;
  }
  .col-md-8 {
    flex: 0 0 auto;
    width: 66.66666667%;
  }
  .col-md-9 {
    flex: 0 0 auto;
    width: 75%;
  }
  .col-md-10 {
    flex: 0 0 auto;
    width: 83.33333333%;
  }
  .col-md-11 {
    flex: 0 0 auto;
    width: 91.66666667%;
  }
  .col-md-12 {
    flex: 0 0 auto;
    width: 100%;
  }
  .offset-md-0 {
    margin-left: 0;
  }
  .offset-md-1 {
    margin-left: 8.33333333%;
  }
  .offset-md-2 {
    margin-left: 16.66666667%;
  }
  .offset-md-3 {
    margin-left: 25%;
  }
  .offset-md-4 {
    margin-left: 33.33333333%;
  }
  .offset-md-5 {
    margin-left: 41.66666667%;
  }
  .offset-md-6 {
    margin-left: 50%;
  }
  .offset-md-7 {
    margin-left: 58.33333333%;
  }
  .offset-md-8 {
    margin-left: 66.66666667%;
  }
  .offset-md-9 {
    margin-left: 75%;
  }
  .offset-md-10 {
    margin-left: 83.33333333%;
  }
  .offset-md-11 {
    margin-left: 91.66666667%;
  }
  .g-md-0,
  .gx-md-0 {
    --bs-gutter-x: 0;
  }
  .g-md-0,
  .gy-md-0 {
    --bs-gutter-y: 0;
  }
  .g-md-1,
  .gx-md-1 {
    --bs-gutter-x: 0.25rem;
  }
  .g-md-1,
  .gy-md-1 {
    --bs-gutter-y: 0.25rem;
  }
  .g-md-2,
  .gx-md-2 {
    --bs-gutter-x: 0.5rem;
  }
  .g-md-2,
  .gy-md-2 {
    --bs-gutter-y: 0.5rem;
  }
  .g-md-3,
  .gx-md-3 {
    --bs-gutter-x: 1rem;
  }
  .g-md-3,
  .gy-md-3 {
    --bs-gutter-y: 1rem;
  }
  .g-md-4,
  .gx-md-4 {
    --bs-gutter-x: 1.5rem;
  }
  .g-md-4,
  .gy-md-4 {
    --bs-gutter-y: 1.5rem;
  }
  .g-md-5,
  .gx-md-5 {
    --bs-gutter-x: 3rem;
  }
  .g-md-5,
  .gy-md-5 {
    --bs-gutter-y: 3rem;
  }
}
@media (min-width: 992px) {
  .col-lg {
    flex: 1 0 0%;
  }
  .row-cols-lg-auto > * {
    flex: 0 0 auto;
    width: auto;
  }
  .row-cols-lg-1 > * {
    flex: 0 0 auto;
    width: 100%;
  }
  .row-cols-lg-2 > * {
    flex: 0 0 auto;
    width: 50%;
  }
  .row-cols-lg-3 > * {
    flex: 0 0 auto;
    width: 33.3333333333%;
  }
  .row-cols-lg-4 > * {
    flex: 0 0 auto;
    width: 25%;
  }
  .row-cols-lg-5 > * {
    flex: 0 0 auto;
    width: 20%;
  }
  .row-cols-lg-6 > * {
    flex: 0 0 auto;
    width: 16.6666666667%;
  }
  .col-lg-auto {
    flex: 0 0 auto;
    width: auto;
  }
  .col-lg-1 {
    flex: 0 0 auto;
    width: 8.33333333%;
  }
  .col-lg-2 {
    flex: 0 0 auto;
    width: 16.66666667%;
  }
  .col-lg-3 {
    flex: 0 0 auto;
    width: 25%;
  }
  .col-lg-4 {
    flex: 0 0 auto;
    width: 33.33333333%;
  }
  .col-lg-5 {
    flex: 0 0 auto;
    width: 41.66666667%;
  }
  .col-lg-6 {
    flex: 0 0 auto;
    width: 50%;
  }
  .col-lg-7 {
    flex: 0 0 auto;
    width: 58.33333333%;
  }
  .col-lg-8 {
    flex: 0 0 auto;
    width: 66.66666667%;
  }
  .col-lg-9 {
    flex: 0 0 auto;
    width: 75%;
  }
  .col-lg-10 {
    flex: 0 0 auto;
    width: 83.33333333%;
  }
  .col-lg-11 {
    flex: 0 0 auto;
    width: 91.66666667%;
  }
  .col-lg-12 {
    flex: 0 0 auto;
    width: 100%;
  }
  .offset-lg-0 {
    margin-left: 0;
  }
  .offset-lg-1 {
    margin-left: 8.33333333%;
  }
  .offset-lg-2 {
    margin-left: 16.66666667%;
  }
  .offset-lg-3 {
    margin-left: 25%;
  }
  .offset-lg-4 {
    margin-left: 33.33333333%;
  }
  .offset-lg-5 {
    margin-left: 41.66666667%;
  }
  .offset-lg-6 {
    margin-left: 50%;
  }
  .offset-lg-7 {
    margin-left: 58.33333333%;
  }
  .offset-lg-8 {
    margin-left: 66.66666667%;
  }
  .offset-lg-9 {
    margin-left: 75%;
  }
  .offset-lg-10 {
    margin-left: 83.33333333%;
  }
  .offset-lg-11 {
    margin-left: 91.66666667%;
  }
  .g-lg-0,
  .gx-lg-0 {
    --bs-gutter-x: 0;
  }
  .g-lg-0,
  .gy-lg-0 {
    --bs-gutter-y: 0;
  }
  .g-lg-1,
  .gx-lg-1 {
    --bs-gutter-x: 0.25rem;
  }
  .g-lg-1,
  .gy-lg-1 {
    --bs-gutter-y: 0.25rem;
  }
  .g-lg-2,
  .gx-lg-2 {
    --bs-gutter-x: 0.5rem;
  }
  .g-lg-2,
  .gy-lg-2 {
    --bs-gutter-y: 0.5rem;
  }
  .g-lg-3,
  .gx-lg-3 {
    --bs-gutter-x: 1rem;
  }
  .g-lg-3,
  .gy-lg-3 {
    --bs-gutter-y: 1rem;
  }
  .g-lg-4,
  .gx-lg-4 {
    --bs-gutter-x: 1.5rem;
  }
  .g-lg-4,
  .gy-lg-4 {
    --bs-gutter-y: 1.5rem;
  }
  .g-lg-5,
  .gx-lg-5 {
    --bs-gutter-x: 3rem;
  }
  .g-lg-5,
  .gy-lg-5 {
    --bs-gutter-y: 3rem;
  }
}
@media (min-width: 1200px) {
  .col-xl {
    flex: 1 0 0%;
  }
  .row-cols-xl-auto > * {
    flex: 0 0 auto;
    width: auto;
  }
  .row-cols-xl-1 > * {
    flex: 0 0 auto;
    width: 100%;
  }
  .row-cols-xl-2 > * {
    flex: 0 0 auto;
    width: 50%;
  }
  .row-cols-xl-3 > * {
    flex: 0 0 auto;
    width: 33.3333333333%;
  }
  .row-cols-xl-4 > * {
    flex: 0 0 auto;
    width: 25%;
  }
  .row-cols-xl-5 > * {
    flex: 0 0 auto;
    width: 20%;
  }
  .row-cols-xl-6 > * {
    flex: 0 0 auto;
    width: 16.6666666667%;
  }
  .col-xl-auto {
    flex: 0 0 auto;
    width: auto;
  }
  .col-xl-1 {
    flex: 0 0 auto;
    width: 8.33333333%;
  }
  .col-xl-2 {
    flex: 0 0 auto;
    width: 16.66666667%;
  }
  .col-xl-3 {
    flex: 0 0 auto;
    width: 25%;
  }
  .col-xl-4 {
    flex: 0 0 auto;
    width: 33.33333333%;
  }
  .col-xl-5 {
    flex: 0 0 auto;
    width: 41.66666667%;
  }
  .col-xl-6 {
    flex: 0 0 auto;
    width: 50%;
  }
  .col-xl-7 {
    flex: 0 0 auto;
    width: 58.33333333%;
  }
  .col-xl-8 {
    flex: 0 0 auto;
    width: 66.66666667%;
  }
  .col-xl-9 {
    flex: 0 0 auto;
    width: 75%;
  }
  .col-xl-10 {
    flex: 0 0 auto;
    width: 83.33333333%;
  }
  .col-xl-11 {
    flex: 0 0 auto;
    width: 91.66666667%;
  }
  .col-xl-12 {
    flex: 0 0 auto;
    width: 100%;
  }
  .offset-xl-0 {
    margin-left: 0;
  }
  .offset-xl-1 {
    margin-left: 8.33333333%;
  }
  .offset-xl-2 {
    margin-left: 16.66666667%;
  }
  .offset-xl-3 {
    margin-left: 25%;
  }
  .offset-xl-4 {
    margin-left: 33.33333333%;
  }
  .offset-xl-5 {
    margin-left: 41.66666667%;
  }
  .offset-xl-6 {
    margin-left: 50%;
  }
  .offset-xl-7 {
    margin-left: 58.33333333%;
  }
  .offset-xl-8 {
    margin-left: 66.66666667%;
  }
  .offset-xl-9 {
    margin-left: 75%;
  }
  .offset-xl-10 {
    margin-left: 83.33333333%;
  }
  .offset-xl-11 {
    margin-left: 91.66666667%;
  }
  .g-xl-0,
  .gx-xl-0 {
    --bs-gutter-x: 0;
  }
  .g-xl-0,
  .gy-xl-0 {
    --bs-gutter-y: 0;
  }
  .g-xl-1,
  .gx-xl-1 {
    --bs-gutter-x: 0.25rem;
  }
  .g-xl-1,
  .gy-xl-1 {
    --bs-gutter-y: 0.25rem;
  }
  .g-xl-2,
  .gx-xl-2 {
    --bs-gutter-x: 0.5rem;
  }
  .g-xl-2,
  .gy-xl-2 {
    --bs-gutter-y: 0.5rem;
  }
  .g-xl-3,
  .gx-xl-3 {
    --bs-gutter-x: 1rem;
  }
  .g-xl-3,
  .gy-xl-3 {
    --bs-gutter-y: 1rem;
  }
  .g-xl-4,
  .gx-xl-4 {
    --bs-gutter-x: 1.5rem;
  }
  .g-xl-4,
  .gy-xl-4 {
    --bs-gutter-y: 1.5rem;
  }
  .g-xl-5,
  .gx-xl-5 {
    --bs-gutter-x: 3rem;
  }
  .g-xl-5,
  .gy-xl-5 {
    --bs-gutter-y: 3rem;
  }
}
@media (min-width: 1400px) {
  .col-xxl {
    flex: 1 0 0%;
  }
  .row-cols-xxl-auto > * {
    flex: 0 0 auto;
    width: auto;
  }
  .row-cols-xxl-1 > * {
    flex: 0 0 auto;
    width: 100%;
  }
  .row-cols-xxl-2 > * {
    flex: 0 0 auto;
    width: 50%;
  }
  .row-cols-xxl-3 > * {
    flex: 0 0 auto;
    width: 33.3333333333%;
  }
  .row-cols-xxl-4 > * {
    flex: 0 0 auto;
    width: 25%;
  }
  .row-cols-xxl-5 > * {
    flex: 0 0 auto;
    width: 20%;
  }
  .row-cols-xxl-6 > * {
    flex: 0 0 auto;
    width: 16.6666666667%;
  }
  .col-xxl-auto {
    flex: 0 0 auto;
    width: auto;
  }
  .col-xxl-1 {
    flex: 0 0 auto;
    width: 8.33333333%;
  }
  .col-xxl-2 {
    flex: 0 0 auto;
    width: 16.66666667%;
  }
  .col-xxl-3 {
    flex: 0 0 auto;
    width: 25%;
  }
  .col-xxl-4 {
    flex: 0 0 auto;
    width: 33.33333333%;
  }
  .col-xxl-5 {
    flex: 0 0 auto;
    width: 41.66666667%;
  }
  .col-xxl-6 {
    flex: 0 0 auto;
    width: 50%;
  }
  .col-xxl-7 {
    flex: 0 0 auto;
    width: 58.33333333%;
  }
  .col-xxl-8 {
    flex: 0 0 auto;
    width: 66.66666667%;
  }
  .col-xxl-9 {
    flex: 0 0 auto;
    width: 75%;
  }
  .col-xxl-10 {
    flex: 0 0 auto;
    width: 83.33333333%;
  }
  .col-xxl-11 {
    flex: 0 0 auto;
    width: 91.66666667%;
  }
  .col-xxl-12 {
    flex: 0 0 auto;
    width: 100%;
  }
  .offset-xxl-0 {
    margin-left: 0;
  }
  .offset-xxl-1 {
    margin-left: 8.33333333%;
  }
  .offset-xxl-2 {
    margin-left: 16.66666667%;
  }
  .offset-xxl-3 {
    margin-left: 25%;
  }
  .offset-xxl-4 {
    margin-left: 33.33333333%;
  }
  .offset-xxl-5 {
    margin-left: 41.66666667%;
  }
  .offset-xxl-6 {
    margin-left: 50%;
  }
  .offset-xxl-7 {
    margin-left: 58.33333333%;
  }
  .offset-xxl-8 {
    margin-left: 66.66666667%;
  }
  .offset-xxl-9 {
    margin-left: 75%;
  }
  .offset-xxl-10 {
    margin-left: 83.33333333%;
  }
  .offset-xxl-11 {
    margin-left: 91.66666667%;
  }
  .g-xxl-0,
  .gx-xxl-0 {
    --bs-gutter-x: 0;
  }
  .g-xxl-0,
  .gy-xxl-0 {
    --bs-gutter-y: 0;
  }
  .g-xxl-1,
  .gx-xxl-1 {
    --bs-gutter-x: 0.25rem;
  }
  .g-xxl-1,
  .gy-xxl-1 {
    --bs-gutter-y: 0.25rem;
  }
  .g-xxl-2,
  .gx-xxl-2 {
    --bs-gutter-x: 0.5rem;
  }
  .g-xxl-2,
  .gy-xxl-2 {
    --bs-gutter-y: 0.5rem;
  }
  .g-xxl-3,
  .gx-xxl-3 {
    --bs-gutter-x: 1rem;
  }
  .g-xxl-3,
  .gy-xxl-3 {
    --bs-gutter-y: 1rem;
  }
  .g-xxl-4,
  .gx-xxl-4 {
    --bs-gutter-x: 1.5rem;
  }
  .g-xxl-4,
  .gy-xxl-4 {
    --bs-gutter-y: 1.5rem;
  }
  .g-xxl-5,
  .gx-xxl-5 {
    --bs-gutter-x: 3rem;
  }
  .g-xxl-5,
  .gy-xxl-5 {
    --bs-gutter-y: 3rem;
  }
}
body {
  font-family: "Inter", "Segoe UI Variable", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  position: relative;
  margin-top: var(--header-height);
  transition: 0.5s;
}
body.no-nav {
  margin-top: 0;
}

.bg-dark {
  background-color: var(--surface) !important;
}

.text-white {
  color: var(--text) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.text-secondary {
  color: var(--text-dim) !important;
}

.text-success {
  color: var(--green) !important;
}

.text-success-custom {
  color: var(--green) !important;
}

.text-warning {
  color: var(--orange) !important;
}

.text-danger {
  color: var(--red) !important;
}

.text-danger-custom {
  color: var(--red) !important;
}

.text-accent {
  color: var(--accent) !important;
}

.btn {
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 8px 16px !important;
  transition: all 0.12s !important;
}

.btn-primary {
  background-color: var(--accent) !important;
  border-color: var(--accent) !important;
  color: white !important;
}
.btn-primary:hover {
  background-color: var(--accent-glow) !important;
  border-color: var(--accent-glow) !important;
}

.btn-secondary {
  background-color: var(--surface-3) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}
.btn-secondary:hover {
  background-color: var(--surface-2) !important;
  border-color: var(--border-light) !important;
}

.btn-danger {
  background-color: var(--accent) !important;
  border-color: var(--accent) !important;
  color: white !important;
}
.btn-danger:hover {
  background-color: var(--accent-glow) !important;
  border-color: var(--accent-glow) !important;
}

.form-control {
  background-color: var(--surface-2) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  font-family: "Inter", sans-serif;
  border-radius: 0.375rem;
}
.form-control:focus {
  background-color: var(--surface-2) !important;
  border-color: var(--accent) !important;
  color: var(--text) !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15) !important;
}
.form-control::placeholder {
  color: var(--text-dim) !important;
}
.form-control:disabled, .form-control[readonly] {
  background-color: var(--surface-2) !important;
  color: var(--text-dim) !important;
  opacity: 0.7;
}

.form-select {
  background-color: var(--surface-2) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  font-family: "Inter", sans-serif;
  border-radius: 0.375rem;
}
.form-select:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15) !important;
}
.form-select option {
  background: var(--surface-2);
  color: var(--text);
}
.form-select:disabled {
  background-color: var(--surface-2) !important;
  color: var(--text-dim) !important;
  opacity: 0.7;
}

.list-group-item {
  background-color: var(--surface) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}
.list-group-item:hover {
  background-color: var(--surface-2) !important;
}

.card {
  background-color: var(--surface) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}

.card-header {
  background-color: var(--surface-2) !important;
  border-bottom-color: var(--border) !important;
}

.card-footer {
  background-color: var(--surface-2) !important;
  border-top-color: var(--border) !important;
}

.border-secondary {
  border-color: var(--border) !important;
}

.border-bottom {
  border-bottom-color: var(--border) !important;
}

.rounded,
.rounded-3 {
  border-radius: 10px !important;
}

.tab-bar {
  display: flex;
  gap: 0;
  padding: 0 24px;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.tab-btn,
.tab-button {
  padding: 12px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0 !important;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover,
.tab-button:hover {
  color: var(--text-muted);
}

.tab-btn.active,
.tab-button.active-tab,
.active-tab {
  color: var(--accent-glow) !important;
  background: none !important;
  border-bottom-color: var(--accent) !important;
  font-weight: 600;
}

.tab-btn svg,
.tab-button i {
  width: 15px;
  height: 15px;
}

a {
  color: var(--text-muted);
  text-decoration: none;
}

a.default {
  color: var(--green);
  text-decoration: underline;
}

a:hover {
  cursor: pointer;
  color: var(--green);
}

.modal {
  backdrop-filter: blur(8px);
}

.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.7);
}

.btn-primary {
  color: #fff;
  background-color: var(--accent);
  border-color: var(--accent);
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: var(--text);
  opacity: 50%;
}

.nav-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding-left: 1vw;
  padding-right: 1vw;
  font-size: 1.2rem;
  color: var(--text);
}

.nav-item a.nav-link.active {
  color: var(--text);
}

.nav-item a.nav-link {
  color: var(--text);
}

.active-menu {
  background-color: var(--surface-3);
  border: var(--surface-3) solid;
}

.card-header {
  min-width: 5rem;
}

.usernav {
  color: var(--text);
  font-size: 1.27rem;
}

.table-active {
  background: var(--surface-3) !important;
}
.table-active td:first-child {
  border-left: 5px solid var(--accent);
}

#main {
  margin-top: 3em;
}

.itcs-hr-divider {
  height: 0.1em !important;
  margin-bottom: 0.1em;
}

.itcs-main-dashboard {
  margin: 2em auto;
}

.facility-name {
  font-weight: bold;
  font-size: 1.2rem;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px; /* Vertically center the text there */
}

.border-top {
  border-top: 1px solid var(--border-light);
}

.border-bottom {
  border-bottom: 2px solid var(--border) !important;
}

.box-shadow {
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

.input-xs {
  width: 5rem;
}

.gray-border-bottom {
  border-bottom: 1px solid var(--border-light);
}

.gray-border-right {
  border-right: 1px solid var(--border-light);
}

.form-select-sm {
  width: 12em;
}

/* HTML table styles (CardOpz Design)
--------------------------*/
.table-darkgray {
  color: var(--text);
}
.table-darkgray thead {
  background-color: var(--surface-2);
  border-bottom: 1px solid var(--border) !important;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.table-darkgray thead tr th {
  color: var(--text-muted);
  padding: 0.625rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border: none !important;
}
.table-darkgray tbody tr {
  transition: background-color 0.15s ease-in-out;
}
.table-darkgray tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.02) !important;
}
.table-darkgray tbody tr.inactive {
  background-color: rgba(248, 113, 113, 0.12) !important;
}
.table-darkgray tbody tr.inactive td:first-child {
  border-left: 3px solid var(--red) !important;
}
.table-darkgray tbody tr.inactive td {
  border-color: rgba(248, 113, 113, 0.25) !important;
}
.table-darkgray tbody td {
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  border-width: 0 0 1px 0 !important;
  border-style: solid !important;
  border-color: var(--border) !important;
}

.table-dark {
  --bs-table-bg: var(--surface);
  --bs-table-striped-bg: var(--surface-2);
  --bs-table-hover-bg: var(--surface-3);
  color: var(--text);
  border-color: var(--border);
}

.table-active {
  background: var(--surface-3) !important;
}
.table-active td:first-child {
  border-left: 3px solid var(--accent);
}

.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.15s;
}
.card button:hover {
  background: var(--surface-3);
  color: var(--text);
}

.card:hover {
  border-color: var(--border-light);
}

.card-body h1 {
  color: var(--green);
  padding-left: 0.1em;
}

.card a {
  color: var(--text);
  text-decoration: none;
}

.module-icon {
  width: 2em;
}

.module-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.module-icon-box svg {
  width: 24px;
  height: 24px;
}

.module-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.open-module {
  border-radius: 1.3rem;
  margin: 0.5em 1em 1em 0em;
}

.module-description {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

a.learn-more {
  color: var(--text-muted);
  background: var(--surface-2);
  border: none;
  margin: 0.5em 0.5em 0.5em 0.5em;
  border-radius: 1.3rem;
}

.learn-more:hover, .open-module:hover, .shortcut-action:hover {
  background: var(--surface-3);
  color: var(--text);
}

div.card:hover {
  border-color: var(--border-light);
  color: var(--text) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
div.card:hover .learn-more {
  color: var(--text);
}

.list-group-item {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0 0 0 1em;
  margin: 0 0 4px 0;
  transition: all 0.12s;
}

.list-group-item:hover {
  border-color: var(--border-light);
  background-color: var(--surface-3) !important;
  color: var(--text) !important;
}

.itcs-list-group-item-nav {
  padding: 1em 1em 1em 1em;
}

.itcs-list-group-item-nav.active {
  border-left: 3px solid var(--accent) !important;
  border-radius: 4px !important;
  background-color: var(--surface-3) !important;
}

.shortcut-item {
  float: left;
}

.shortcut-action {
  float: right;
  font-size: 0.75rem;
  border-radius: 1.3rem;
  margin: 0.5em 1em 1em 0em;
}

.shortcut-title {
  padding-left: 1em;
}

.dark-background {
  background-color: var(--surface-2);
}

.gray-background {
  background-color: var(--surface-3);
}

.flex-container {
  display: flex;
  flex-wrap: wrap;
  padding-left: 1vw;
  padding-right: 1vw;
}

.nav-tabs-ref {
  border-bottom: 1px solid var(--border-light);
  justify-content: center;
}
.nav-tabs-ref.nav-dash {
  background: var(--surface-2);
  border-top: 0.2vh solid var(--border-light);
  border-bottom: 0.2vh solid var(--border-light);
  padding-top: 0.5rem;
  height: 6vh;
}
.nav-tabs-ref > li .nav-link-ref {
  color: var(--text) !important;
  font-size: 2vh;
}
.nav-tabs-ref > li .nav-link-ref.active {
  border-top: 0px;
  border-right: 0px;
  border-left: 0px;
  border-bottom: 0.4vh solid var(--accent) !important;
  color: var(--text) !important;
  background-color: transparent !important;
}
.nav-tabs-ref > li.nav-link:focus, .nav-tabs-ref .nav-link:hover {
  border: 0;
}

.dark-list a {
  color: var(--text-muted);
  background-color: var(--surface-3);
  border: 1px solid var(--border-light);
}

.dark-list a:hover, .dark-list a:active, .dark-list a:focus {
  background-color: var(--border-light);
  color: var(--text-muted);
}

#ShowSectionList {
  color: var(--text-muted);
}

.itcs-dealer-rotation-table {
  color: var(--text);
}

.itcs-dealer-rotation-card {
  padding-bottom: 1em;
}

.itcs-link {
  color: var(--text-muted);
}

.itcs-list-group-item {
  padding-top: 1em;
  padding-bottom: 1em;
  padding-right: 1em;
}

.itcs-row-item {
  height: 7em;
}
.itcs-row-item div.itcs-row-item-info {
  background-color: var(--surface-2);
  border-bottom: 0.2em solid var(--border);
}
.itcs-row-item div.itcs-row-item-info a {
  display: grid;
  grid-template-columns: 4fr 1fr;
}
.itcs-row-item div.itcs-row-item-info a .itcs-row-item-detail {
  display: flex;
  flex-direction: column;
  padding: 1em 0 0 0;
}
.itcs-row-item div.itcs-row-item-info .itcs-row-item-actions {
  padding-top: 2.7em;
}

div.btn-container {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}

label {
  color: var(--text-muted);
  font-weight: 500;
}

.sc-btn-panel-switch {
  display: inline-block;
  margin: 0px;
  position: relative;
}

.sc-btn-panel-switch > label.sc-btn-panel-switch-inner {
  margin: 0px;
  width: 145px;
  height: 30px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  display: block;
}

.sc-btn-panel-switch > label.sc-btn-panel-switch-inner:before {
  content: attr(data-on);
  position: absolute;
  font-size: 14px;
  font-weight: 500;
  top: 6px;
  right: 16px;
}

.sc-btn-panel-switch > label.sc-btn-panel-switch-inner:after {
  content: attr(data-off);
  width: 70px;
  height: 25px;
  background: var(--surface-3);
  border-radius: 4px;
  position: absolute;
  font-size: 14px;
  left: 2px;
  top: 2px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0px 0px 6px -2px rgba(0, 0, 0, 0.5);
  padding: 4px 0px;
}

.sc-btn-panel-switch > .alert {
  display: none;
  background: var(--orange);
  border: none;
  color: #fff;
}

.sc-btn-panel-switch input[type=checkbox] {
  cursor: pointer;
  width: 145px;
  height: 25px;
  opacity: 0;
  position: absolute;
  top: 3px;
  z-index: 1;
  margin: 0px;
  left: 0;
}

.sc-btn-panel-switch input[type=checkbox]:checked + label.sc-btn-panel-switch-inner:after {
  content: attr(data-on);
  left: 68px;
}

.sc-btn-panel-switch input[type=checkbox]:checked + label.sc-btn-panel-switch-inner:before {
  content: attr(data-off);
  right: auto;
  left: 8px;
}

.sc-btn-panel-switch input[type=checkbox]:checked ~ .alert {
  display: block;
}

/** MOVED FROM VARIABLES **/
.btn.disabled, .btn:disabled, fieldset:disabled .btn {
  pointer-events: none;
  opacity: 0.65;
  color: var(--text);
}

.btn-outline-primary {
  color: var(--text);
  border-color: var(--border-light);
  background-color: var(--surface-2);
}

.btn-outline-primary.disabled, .btn-outline-primary:disabled {
  color: var(--text-muted);
  background-color: transparent;
}

.btn-check:focus + .btn-outline-primary, .btn-outline-primary:focus {
  box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.3);
}

.btn-check:focus + .btn, .btn:focus {
  outline: 0;
  box-shadow: none !important;
}

.btn-check:active + .btn-outline-primary, .btn-check:checked + .btn-outline-primary, .btn-outline-primary.active, .btn-outline-primary.dropdown-toggle.show, .btn-outline-primary:active {
  color: var(--text);
  background-color: var(--surface-3);
  border-color: var(--border-light);
}

.btn-check:checked + .btn-outline-primary:hover {
  color: var(--text);
  background-color: var(--surface-2);
  border-color: var(--border-light);
}

.btn-outline-light {
  border-color: var(--border-light);
  border-radius: initial;
  background-color: var(--surface-3);
}

.btn-light {
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.btn-light:hover {
  color: var(--text);
}

.btn-outline-primary:hover {
  color: var(--text);
  background-color: var(--surface-3);
  border-color: var(--border-light);
}

.btn-outline-light:hover {
  background-color: var(--green);
}

.btn-standard {
  background-color: var(--surface-3);
  border-radius: 5px;
  color: var(--text);
}

.btn-standard-confirm {
  background-color: var(--accent);
  border-radius: 5px;
  color: #fff;
}

.btn-selected {
  background-color: var(--accent) !important;
}

.btn:hover {
  color: var(--text);
}

.btn-full {
  width: 100%;
}

#RegPlayerList .dt-buttons > .btn-secondary, #RegPlayerList .dt-buttons > .btn-group > .btn-secondary {
  color: var(--text-muted);
  background-color: var(--surface-3);
  border-color: var(--border-light);
  border-radius: 0.25vw !important;
  margin-left: 0.5vw;
  font-size: 1.75vh;
  padding-left: 1vw;
  padding-right: 1vw;
}
#RegPlayerList .page-item .page-link {
  color: var(--text-muted);
  background-color: var(--surface-2);
  border-color: var(--border);
  border-radius: 6px;
  font-size: 13px;
  padding: 6px 12px;
  transition: all 0.15s;
}
#RegPlayerList .page-item.active .page-link {
  color: #fff;
  background-color: var(--accent);
  border-color: var(--accent);
}
#RegPlayerList .page-link:focus {
  color: var(--text);
  background-color: var(--surface-2);
  outline: 0;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2) !important;
}
#RegPlayerList .page-item.disabled .page-link {
  color: var(--text-dim);
  pointer-events: none;
  background-color: var(--surface-2);
  border-color: var(--border);
  opacity: 0.5;
}
#RegPlayerList .page-link:hover {
  color: var(--text);
  background-color: var(--surface-3);
  border-color: var(--border-light);
}
#RegPlayerList .dataTables_info {
  padding-left: 1em;
  padding-top: 0.5em;
}
#RegPlayerList .dataTables_paginate {
  padding-right: 1em;
  padding-bottom: 0.5em;
}

.dt-buttons > .btn-secondary, .dt-buttons > .btn-group > .btn-secondary {
  color: var(--text-muted);
  background-color: var(--surface-2);
  border-color: var(--border-light);
  border-radius: 0.5vw !important;
  margin-right: 0.5vw;
  font-size: 1.75vh;
  padding-left: 1vw;
  padding-right: 1vw;
}

.dt-buttons .dropdown-item {
  background-color: var(--surface-2);
  border: none !important;
}

div.dt-button-collection {
  background-color: var(--surface-2) !important;
}

div.dt-button-collection .dt-button {
  position: relative;
  padding-left: 2rem;
  cursor: pointer;
  display: inline-block;
  color: var(--text-dim);
  line-height: 1.15rem;
  margin-top: 0.5rem;
}

div.dt-button-collection .dt-button.active {
  color: var(--text-muted);
}

div.dt-button-collection .dt-button::before {
  content: "";
  position: absolute;
  border-radius: 0.125rem;
  outline: 2px solid var(--green);
  left: 0;
  top: 0;
  width: 0.75rem;
  height: 0.75rem;
  background-color: var(--green);
}

div.dt-button-collection .dt-button.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--green);
  outline: 2px solid var(--green);
  border-radius: 0.1rem;
}

div.dt-button-collection .dt-button.active::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0.75rem;
  height: 0.75rem;
  background-image: url("/img/home/check-solid.svg");
  background-size: contain;
  background-repeat: no-repeat;
}

/*
div.dt-button-collection .dt-button.active::before {
    position: relative;
    //top: 50%;
    //bottom: 50%;
    margin: 5px 10px 5px 5px;
    //right: 1em;
    display: inline-block;
    content: "\2705";
    color: $colorBlack;
    //background-color: #9ED350;
    width: 1rem;
    height: 1rem;
}*/
/* === CardOpz Pagination (Bootstrap .page-item / .page-link) === */
.pagination {
  gap: 4px;
}

/* Strip visual styles from <li> wrapper so only <a> page-link gets styled */
.page-item {
  background: none !important;
  border: none !important;
  margin: 0 !important;
}

.paginate_button {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.page-item .page-link {
  color: var(--text-muted);
  background-color: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  padding: 6px 12px;
  transition: all 0.15s;
}

.page-item.active .page-link {
  color: #fff;
  background-color: var(--accent);
  border-color: var(--accent);
  z-index: 3;
}

.page-link:focus {
  color: var(--text);
  background-color: var(--surface-2);
  outline: 0;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2) !important;
  z-index: 3;
}

.page-item.disabled .page-link {
  color: var(--text-dim);
  pointer-events: none;
  background-color: var(--surface-2);
  border-color: var(--border);
  opacity: 0.5;
}

.page-link:hover {
  color: var(--text);
  background-color: var(--surface-3);
  border-color: var(--border-light);
  z-index: 2;
}

.form-check-input:checked {
  background-color: var(--green);
  border-color: var(--border-light);
}

.form-check-input:checked:before {
  color: #000;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--surface-2);
  background-clip: padding-box;
  border: 1px solid var(--border);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 6px;
  transition: all 0.2s;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
  outline: none;
}

.form-control::placeholder {
  color: var(--text-dim);
}

.form-control-sm {
  color: var(--text);
  background-color: var(--surface-2);
}

.form-select {
  display: block;
  width: 100%;
  padding: 0.625rem 2.25rem 0.625rem 0.75rem;
  -moz-padding-start: calc(0.75rem - 3px);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--surface-2);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23e5e7eb' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.2s;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
  outline: none;
}

.form-select-sm {
  color: var(--text);
  background-color: var(--surface-2);
}

button {
  color: white;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.12s;
}

button.itcs-confirm-button,
.btn-primary {
  background-color: var(--accent);
  border: 1px solid var(--accent);
  color: white;
  border-radius: 6px;
}

button.itcs-confirm-button:hover,
.btn-primary:hover {
  background-color: var(--accent-glow);
}

button.itcs-assign-button {
  background-color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: white;
}

button.itcs-cancel-button,
.btn-secondary {
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
}

button.itcs-cancel-button:hover,
.btn-secondary:hover {
  background: var(--border-light);
}

button.itcs-header-button {
  padding: 10px 24px;
  background-color: var(--surface-3);
  border: 1px solid var(--border-light);
  color: var(--text);
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

button.itcs-cancel-button:active {
  background: var(--surface-3) !important;
  color: var(--text);
}

button.itcs-confirm-button:hover {
  background-color: var(--accent-glow);
}

button.itcs-cancel-button:hover {
  background-color: var(--surface-3);
}

.cardopz-header-dropdown {
  background-color: var(--surface-3);
  border-radius: 4px;
  border: 1px solid var(--border-light);
}

.itcs-clear-button {
  background: var(--surface-2);
  color: var(--text-muted);
  border: none;
  text-align: center;
  border-radius: 0.5vh;
  border: 0.2em solid var(--border-light);
}

.itcs-button-cancel {
  background: var(--surface-2);
  color: var(--text-muted);
  border: none;
  text-align: center;
  border-radius: 0.5vh;
  border: 0.2em solid var(--red);
}

.itcs-button-save {
  background: var(--surface-2);
  color: var(--text-muted);
  border: none;
  text-align: center;
  border-radius: 0.5vh;
  border: 0.2em solid var(--green);
}

.itcs-button-default {
  background: var(--surface-2);
  color: var(--text-muted);
  border: none;
  text-align: center;
  border-radius: 0.5vh;
  border: 0.2em solid var(--border-light);
}

.itcs-save-button {
  background: var(--surface-2);
  color: var(--text-muted);
  border: none;
  text-align: center;
  border-radius: 0.5vh;
  border: 0.2em solid var(--text);
}

.itcs-clear-button:hover, .itcs-save-button:hover, .itcs-button-cancel:hover, .itcs-button-default:hover, .itcs-button-save:hover {
  color: var(--text);
  background-color: var(--surface-3);
}

.itcs-fa-large {
  font-size: 1.5em;
}

/* Legacy snackbar — hidden, replaced by toast notifications */
#snackbar {
  display: none;
}

/* ============================================================ */
/* Toast Notification System                                     */
/* Replaces legacy snackbar. Container injected by site.js.      */
/* ============================================================ */
/* Repositioned to bottom-right — no longer covers nav buttons/primary controls */
#toast-container {
  position: fixed;
  bottom: 1.25rem; /* was: top: calc(header-height + 1rem) */
  right: 1rem;
  display: flex;
  flex-direction: column-reverse; /* newest toast stays nearest the corner */
  gap: 0.5rem;
  z-index: 10200;
  width: clamp(16rem, 22vw, 21rem); /* was: 34rem — scales with viewport */
  pointer-events: none;
}

.toast-notification {
  display: flex;
  align-items: center; /* was: flex-start — centered looks right without title row */
  gap: 0.625rem;
  padding: 0.75rem 1rem; /* was: 1rem 1.25rem — tighter without title */
  border-radius: 0.5rem;
  background: rgba(18, 18, 22, 0.93); /* was: rgba(20,20,20,0.75) — more opaque for readability */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 0.25rem solid var(--border-light);
  box-shadow: 0 0.375rem 1.25rem rgba(0, 0, 0, 0.45);
  animation: toastSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  /* ---- Exit animation ---- */
}
.toast-notification.toast-exit {
  animation: toastSlideOut 0.3s ease forwards;
}
.toast-notification {
  /* ---- Icon ---- */
}
.toast-notification .toast-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}
.toast-notification .toast-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}
.toast-notification {
  /* ---- Text content ---- */
}
.toast-notification .toast-content {
  flex: 1;
  min-width: 0;
}
.toast-notification {
  /* .toast-title removed — icon + accent color communicate type; message is the primary text */
}
.toast-notification .toast-message {
  font-size: 0.9375rem;
  color: var(--text); /* was: --text-muted — promoted to primary since title removed */
  line-height: 1.45;
}
.toast-notification {
  /* ---- Dismiss button (visible on hover) ---- */
}
.toast-notification .toast-close {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1.125rem;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.35; /* was: 0 — always subtly visible so users know it's dismissable */
  transition: opacity 0.15s;
}
.toast-notification .toast-close:hover {
  color: var(--text);
}
.toast-notification:hover .toast-close {
  opacity: 1;
}
.toast-notification {
  /* ---- Progress bar (auto-dismiss countdown) ---- */
}
.toast-notification .toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 0.125rem; /* was: 0.1875rem (3px) — subtler at 2px */
  border-radius: 0 0 0.5rem 0;
  animation: toastProgress 4s linear forwards;
}
.toast-notification.paused .toast-progress {
  animation-play-state: paused;
}
.toast-notification {
  /* ---- Type: Success (mapped from legacy "info") ---- */
}
.toast-notification.info {
  border-left-color: var(--green);
}
.toast-notification.info .toast-icon {
  color: var(--green);
}
.toast-notification.info .toast-progress {
  background: var(--green);
}
.toast-notification {
  /* ---- Type: Warning (now amber, no longer blue) ---- */
}
.toast-notification.warning {
  border-left-color: var(--yellow);
}
.toast-notification.warning .toast-icon {
  color: var(--yellow);
}
.toast-notification.warning .toast-progress {
  background: var(--yellow);
}
.toast-notification {
  /* ---- Type: Error ---- */
}
.toast-notification.error {
  border-left-color: var(--red);
}
.toast-notification.error .toast-icon {
  color: var(--red);
}
.toast-notification.error .toast-progress {
  background: var(--red);
}
.toast-notification {
  /* ---- Permanent toasts (loading states) — no progress ---- */
}
.toast-notification.toast-permanent .toast-progress {
  display: none;
}

/* Animations — slide-up/down matches bottom-right container position */
@keyframes toastSlideIn {
  0% {
    opacity: 0;
    transform: translateY(0.75rem);
  } /* was: translateX(100%) */
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes toastSlideOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(0.5rem);
  } /* was: translateX(100%) */
}
@keyframes toastProgress {
  0% {
    width: 100%;
  }
  100% {
    width: 0%;
  }
}
/* Responsive: full-width on small screens */
@media (max-width: 30rem) {
  #toast-container {
    width: calc(100% - 2rem);
    right: 1rem;
  }
}
/* ── Silent ambient toasts ─────────────────────────────────────────────────
   SignalR-originated activity from other users — bottom-left, non-intrusive.
   Triggered by: showSnackbar(text, type, 'signalr') in site.js
   ───────────────────────────────────────────────────────────────────────── */
#toast-silent-container {
  position: fixed;
  bottom: 1.25rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  z-index: 10200;
  pointer-events: none;
}

.toast-silent {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(24, 24, 28, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.75rem;
  color: var(--text-dim);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  animation: toastSlideIn 0.2s ease forwards;
  pointer-events: none;
  max-width: 20rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toast-silent svg {
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
  opacity: 0.5;
}
.toast-silent.toast-exit {
  animation: toastSlideOut 0.25s ease forwards;
}

.sc_page-details {
  display: grid;
  grid-template-columns: 1% auto 1%;
}
.sc_page-details .sc_page-content {
  grid-column: 2/3;
  overflow: auto;
}
.sc_page-details .sc_page-content .sc_section-header h5 {
  display: inline;
}
.sc_page-details .sc_page-content .sc_form-row {
  background-color: var(--surface);
  /*border-bottom: 1px solid $moduleCardBorderColor;
  border-right: 1px solid $moduleCardBorderColor;
  border-left: 1px solid $moduleCardBorderColor;*/
}

.bg-success {
  background-color: var(--green) !important;
}

.bg-unchecked {
  background-color: var(--text-dim) !important;
}

.bg-qualified {
  background-color: rgba(74, 222, 128, 0.3) !important;
}

.bg-danger {
  background-color: var(--red) !important;
}

.form-control[readonly] {
  border: 1px solid var(--border-light) !important;
  background-color: var(--surface-3) !important;
  color: var(--text-dim) !important;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  padding-left: 0.75em;
  font-size: 1em !important;
  border-radius: 0.5em !important;
}

select:disabled {
  border: 1px solid var(--border-light) !important;
  background-color: var(--surface-3) !important;
  color: var(--text-dim) !important;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  padding-left: 0.75em;
  font-size: 1em !important;
  border-radius: 0.5em !important;
}

.form-control:focus {
  color: var(--text) !important;
  background-color: var(--surface-2) !important;
}

#PlayerQuickViewModal .form-group, #ExistingPatronInfo .form-group, #NewPatronInfo .form-group {
  padding-right: 1em;
}
#PlayerQuickViewModal .form-control-select, #ExistingPatronInfo .form-control-select, #NewPatronInfo .form-control-select {
  background-color: var(--surface-2);
  color: var(--text);
  padding-bottom: 0.3em;
  padding-top: 0.5em;
}
#PlayerQuickViewModal input[readonly], #PlayerQuickViewModal select[readonly], #PlayerQuickViewModal select:disabled, #PlayerQuickViewModal #PatronInfo > .status, #ExistingPatronInfo input[readonly], #ExistingPatronInfo select[readonly], #ExistingPatronInfo select:disabled, #ExistingPatronInfo #PatronInfo > .status, #NewPatronInfo input[readonly], #NewPatronInfo select[readonly], #NewPatronInfo select:disabled, #NewPatronInfo #PatronInfo > .status {
  border: 1px solid var(--border-light) !important;
  border-top: none !important;
  border-right: none !important;
  border-left: none !important;
  border-radius: unset !important;
}
#PlayerQuickViewModal select[disabled], #ExistingPatronInfo select[disabled], #NewPatronInfo select[disabled] {
  -webkit-appearance: none;
  -moz-appearance: none;
  text-indent: 0.01px;
  text-overflow: "";
}
#PlayerQuickViewModal .status p, #ExistingPatronInfo .status p, #NewPatronInfo .status p {
  padding-left: 0.5em;
}
#PlayerQuickViewModal .good, #ExistingPatronInfo .good, #NewPatronInfo .good {
  background-color: rgba(74, 222, 128, 0.15);
}
#PlayerQuickViewModal .negative, #ExistingPatronInfo .negative, #NewPatronInfo .negative {
  background-color: var(--red);
}

#StatTrackingButton3, #StatTrackingButton4 {
  border-color: var(--orange);
}

#StatTrackingButton5, #StatTrackingButton6 {
  border-color: var(--accent);
}

#PlayerStatValue {
  width: 4em;
  height: 35px;
  margin-left: 1em;
  margin-right: 1em;
  margin-top: 5px;
}

#PlayerAmountRevert {
  margin-top: 0.35em;
  padding-right: 0.5em;
}

#PlayerStatActions {
  margin-top: 1em;
}

#PlayerStatRunningTotal {
  font-size: x-small;
}

#PlayerStatValueLabel {
  color: var(--text);
  font-size: 2.5rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.cancel-outline {
  border-color: var(--red);
  min-width: 9.625rem;
}

.default-outline {
  border-color: var(--border-light);
  min-width: 9.625rem;
}

.green-outline {
  border-color: var(--green);
  min-width: 9.625rem;
}

.amountButton {
  width: 5.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 0.3125rem;
  border: 3px solid var(--border-light);
  background: var(--surface-2);
  font-size: 1.25rem !important;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.amountButton:hover {
  background-color: var(--green);
}

.itcs-button-sm {
  font-size: small;
}

.itcs-stat-button {
  width: 8.414rem;
  height: 3.1rem;
  margin-bottom: 1em;
}

.tournament-table {
  background-color: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  width: 205px;
  height: 77px;
  padding: 15px 25px;
  align-content: center;
  font-size: 1.5em;
}

.tournament-player-action-button {
  border: 1px solid var(--text);
  border-radius: 12px;
  padding: 1.5em;
  width: 150px;
  height: 75px;
}

.tournament-player-action-button-disabled {
  border: 1px solid var(--surface);
  color: var(--surface);
  border-radius: 12px;
  padding: 1.5em;
  width: 150px;
  height: 75px;
}

.tournament-player-action-button:hover {
  background-color: var(--surface-3);
  cursor: pointer;
}

.tournament-header {
  font-weight: 600;
}

.signature {
  font-family: "Cedarville Cursive";
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: var(--surface);
  background-clip: padding-box;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
  outline: 0;
}

.modal-header {
  background-color: var(--surface-2);
  border-bottom: 1px solid var(--border);
  border-radius: 10px 10px 0 0;
}

.modal-body {
  background-color: var(--surface);
  color: var(--text);
}

.modal-footer {
  background-color: var(--surface-2);
  border-top: 1px solid var(--border);
  border-radius: 0 0 10px 10px;
}

.filter {
  cursor: pointer;
}

.btn-close {
  box-sizing: content-box;
  width: 1em !important;
  height: 1em;
  padding: 0.25em 0.25em;
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23e5e7eb'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
  border: 0;
  border-radius: 6px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.btn-close:hover {
  opacity: 1;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.patron-info-header {
  background: var(--green);
  height: 1.5rem;
  border-radius: 0.625rem;
  color: #fff;
}

#FrontDL, #BackDL {
  display: none;
}

.profile-pic {
  color: transparent;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: all 0.3s ease;
}
.profile-pic input {
  display: none;
}
.profile-pic img {
  position: absolute;
  object-fit: cover;
  width: 150px;
  height: 150px;
  border-radius: 100px;
  z-index: 0;
}
.profile-pic img.fixed {
  position: relative;
  object-fit: cover;
  width: 150px;
  height: 150px;
  border-radius: 100px;
  z-index: 0;
}
.profile-pic img.barred-border {
  position: absolute;
  object-fit: cover;
  width: 150px;
  height: 150px;
  border-radius: 100px;
  z-index: 0;
  border: 4px solid var(--red);
}
.profile-pic .-label {
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 150px;
  width: 150px;
}
.profile-pic:hover .-label {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  color: var(--text);
  transition: background-color 0.2s ease-in-out;
  border-radius: 100px;
  margin-bottom: 0;
}
.profile-pic span {
  display: inline-flex;
  padding: 0.2em;
  height: 2em;
}

.iti {
  width: 100%;
}

.iti--separate-dial-code .iti__selected-flag {
  background-color: var(--surface);
}

.iti--allow-dropdown .iti__flag-container:hover .iti__selected-flag {
  background-color: var(--surface);
}

.iti--allow-dropdown .iti__flag-container, .iti--separate-dial-code .iti__flag-container {
  left: 0.75rem !important;
  height: 1.7rem;
  top: 0.1rem;
}

.iti__country-list {
  background-color: var(--surface-2) !important;
}

.iti__country.iti__highlight {
  background-color: var(--surface-3) !important;
}

.promo-card {
  font-size: 1rem;
  border: 1px solid var(--border-light);
  border-radius: 5px;
  max-width: 15rem;
  height: 10.5rem;
  overflow: hidden;
}
.promo-card .badge {
  font-size: 1rem;
  border-radius: 15px;
}

.promo-redeem-detail {
  width: calc(50% - 10px); /* 50% for two columns with 10px margin in between */
  margin: 0 0;
}

.player-mtl-details {
  position: absolute;
  bottom: 1rem;
  width: 45%;
}

.player-stat-toggle {
  cursor: pointer;
}

.promo-redeem-dates {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.promo-redeem-card {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  display: none;
  height: 15rem;
  margin-bottom: 1rem;
  position: relative;
}

.promo-redeem-header {
  padding-top: 1rem;
}

.redeem-dates-back {
  position: absolute;
  top: 0;
  left: 0;
  padding-left: 1rem;
  padding-top: 1.25rem;
}

.revealing-span {
  cursor: pointer; /* Show pointer cursor on hover */
}

.revealing-span.revealed {
  opacity: 1; /* Transparent when revealed */
  transition: opacity 1s ease; /* Smooth transition effect */
}

#NewPatronInfo input[readonly].form-control-override, #NewPatronInfo select[disabled].form-control-override {
  background-color: rgba(255, 72, 72, 0.4) !important;
  border: none !important;
  border-radius: 5px !important;
  padding-left: 0.5rem;
}

.stat-table {
  width: 100%;
}

.stat-column-label {
  background: var(--surface-3);
}

.stat-total-area {
  width: 11.0625rem;
  height: 8.25rem;
  border-radius: 0.3125rem;
  border: 1px solid var(--border-light);
  background: var(--surface-3);
}

.selectdiv {
  position: relative;
  float: left;
  min-width: 200px;
}

.selectdiv:after {
  content: "▼";
  font: normal normal normal 17px/1 FontAwesome;
  color: var(--text-muted);
  right: 11px;
  top: 0px;
  padding: 17px 0px 0px 8px;
  position: absolute;
  pointer-events: none;
}

select::-ms-expand {
  display: none;
}

.selectdiv select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 40px;
  float: right;
  margin: 5px 0px;
  padding: 0px 10px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-muted);
  background-image: none;
  -ms-word-break: normal;
  word-break: normal;
}

.form-control::-webkit-calendar-picker-indicator {
  filter: invert(1);
}

.unverified-messagebar {
  height: 3rem;
  background: var(--accent);
  margin-bottom: 1rem;
}

.action-link {
  cursor: pointer;
}

.form-select:disabled {
  background-color: var(--surface-2);
}

.form-control:disabled, .form-control[readonly] {
  background-color: var(--surface-2);
}

.form-check-input {
  width: 1.5em;
  height: 1.5em;
  color: var(--text-muted);
  background-color: var(--surface-2);
  border-color: var(--border-light);
}

.fw-semibold {
  font-weight: 700;
}

.kpi-change {
  font-size: 0.875rem;
  font-weight: 500;
}

.selected-bg {
  background-color: var(--surface-2);
}

/* ============ mobile view ============ */
@media (max-width: 767px) {
  .navbar.fixed-top .navbar-collapse, .navbar.sticky-top .navbar-collapse {
    overflow-y: auto;
    max-height: 50vh;
    margin-top: 10px;
  }
  .user-nav .itcs-dropdown {
    transform: revert !important;
  }
  .itcs-dropdown {
    position: absolute !important;
    transform: translateX(calc(var(--lnav-width) + var(--expansion-size))) !important;
  }
  .license {
    font-size: 0.7em;
  }
}
@media (min-width: 1400px) {
  html {
    font-size: 64px;
  }
  .nav-item {
    font-size: 1.75rem;
  }
  .fixed-top-submenu {
    margin-top: 2.5em;
  }
  .waitlistfix {
    margin-top: 5em;
  }
  .dashboard-banner {
    height: 10em;
  }
}
@media (max-width: 1400px) {
  .hidden-tablet {
    display: none;
  }
}
@media (max-width: 1200px) {
  .fixed-top-submenu {
    margin-top: 1.2em;
  }
  #SectionListDiv.collapse {
    display: block;
  }
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}
@media print {
  .no-print, .no-print * {
    display: none !important;
  }
}
/* Status Strip — compact info bar (visually subordinate to tab bar) */
.status-strip {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  padding: 0.375rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
}

.status-item .stat-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
}

.status-item .stat-value {
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  color: var(--text);
}

.status-item .stat-label {
  color: var(--text-dim);
  font-size: 0.6875rem;
  line-height: 1.2;
  font-weight: 500;
}

/* Filter Row */
.filter-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: clamp(0.75rem, 1.5vw, 1.25rem);
}

.filter-btn {
  padding: 0.5rem 2rem 0.5rem 0.875rem;
  min-height: 2.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  color: var(--text);
  font-size: clamp(0.75rem, 1vw, 0.8125rem);
  font-weight: 500;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  transition: all 0.12s;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.625rem center;
  background-size: 0.75rem;
}
.filter-btn:hover {
  border-color: var(--border-light);
  background-color: var(--surface-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23e5e7eb' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.625rem center;
  background-size: 0.75rem;
}
.filter-btn:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}
.filter-btn option {
  background: var(--surface);
  color: var(--text);
  padding: 0.5rem 0.875rem;
}

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 992px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  padding: clamp(0.875rem, 1.5vw, 1.25rem);
  transition: border-color 0.15s;
}
.kpi-card:hover {
  border-color: var(--border-light);
}

.kpi-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.kpi-label {
  font-size: clamp(0.75rem, 1vw, 0.8125rem);
  color: var(--text);
  margin-bottom: 0;
  font-weight: 600;
  font-family: "Inter", sans-serif;
}

.kpi-info {
  color: var(--text-dim);
  opacity: 0.4;
  cursor: help;
  transition: opacity 0.15s;
  position: relative;
}
.kpi-info:hover {
  opacity: 0.8;
}
.kpi-info::after {
  content: attr(title);
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.375rem;
  background: var(--surface-3);
  color: var(--text);
  font-size: clamp(0.6875rem, 0.9vw, 0.75rem);
  font-weight: 400;
  font-family: "Inter", sans-serif;
  padding: 0.375rem 0.625rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border);
  white-space: nowrap;
  max-width: 15rem;
  white-space: normal;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-0.25rem);
  transition: opacity 0.15s, transform 0.15s;
}
.kpi-info:hover::after {
  opacity: 1;
  transform: translateY(0);
}
.kpi-info[title] {
  -webkit-text-decoration: none;
  text-decoration: none;
}

.kpi-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.kpi-value {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1.2;
  font-family: "Inter", sans-serif;
}

.kpi-sparkline {
  flex-shrink: 0;
  width: clamp(3.5rem, 6vw, 5rem);
  height: 1.75rem;
}

.sparkline-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.kpi-change {
  font-size: clamp(0.75rem, 1vw, 0.8125rem);
  font-weight: 600;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: "Inter", sans-serif;
}

.kpi-trend-arrow {
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
}

.kpi-change.down {
  color: var(--red);
}

.kpi-change.up {
  color: var(--green);
}

.kpi-change.neutral {
  color: var(--text-dim);
}

.kpi-desc,
.kpi-description {
  font-size: clamp(0.75rem, 1vw, 0.8125rem);
  color: var(--text-dim);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  font-family: "Inter", sans-serif;
}

/* Chart Section */
.chart-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.chart-title {
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  font-weight: 600;
  color: var(--text);
  font-family: "Inter", sans-serif;
}

.period-subtitle {
  font-size: clamp(0.625rem, 0.8vw, 0.6875rem);
  color: var(--text-muted);
  font-weight: 400;
  font-family: "Inter", sans-serif;
  margin: 0;
}
.period-subtitle.kpi-period {
  margin-bottom: 0.125rem;
}

.chart-canvas {
  width: 100%;
  height: clamp(16rem, 22vw, 22rem);
  position: relative;
}

/* Database Health + KPIs — compact 2-column layout below chart */
.health-hero {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(0.5rem, 1.5vw, 1rem);
  margin-top: clamp(0.75rem, 1.5vw, 1.25rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
@media (max-width: 992px) {
  .health-hero {
    grid-template-columns: 1fr;
  }
}

.health-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  padding: clamp(0.5rem, 1.5vw, 0.875rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.health-card-header {
  width: 100%;
  margin-bottom: 0.25rem;
}

.health-card-title {
  font-size: clamp(0.8125rem, 1vw, 0.9375rem);
  font-weight: 600;
  color: var(--text);
  font-family: "Inter", sans-serif;
}

.health-donut-wrapper {
  position: relative;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.health-donut-chart {
  width: 100%;
  height: 100%;
  min-height: 8rem;
}

.health-score-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.health-score-number {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  font-family: "Inter", sans-serif;
  line-height: 1;
  letter-spacing: -1px;
}

.health-score-label {
  font-size: clamp(0.625rem, 0.9vw, 0.75rem);
  font-weight: 500;
  font-family: "Inter", sans-serif;
  margin-top: 0.125rem;
}

.health-total-row {
  width: 100%;
  text-align: center;
  padding-top: 0.375rem;
  border-top: 1px solid var(--border);
  margin-top: 0.125rem;
}

.health-total-text {
  font-size: clamp(0.625rem, 0.9vw, 0.75rem);
  color: var(--text-dim);
  font-family: "Inter", sans-serif;
}

.health-kpi-col {
  display: flex;
  flex-direction: column;
  gap: clamp(0.375rem, 1vw, 0.5rem);
}
.health-kpi-col .kpi-card {
  flex: 1;
}

/* Tab Sections - Match Engagement exactly */
#analyticsSection,
#engagementSection,
#systemSection {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

#systemSection .card {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  transition: border-color 0.15s, box-shadow 0.15s;
}
#systemSection .card *:not(.module-icon-box) {
  background: transparent !important;
  background-color: transparent !important;
}
#systemSection .card:hover {
  border-color: var(--border-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
#systemSection .card-body {
  padding: 0 !important;
}
#systemSection .module-icon-box {
  border-radius: 10px;
}

/* Displays Tab */
.display-section-title {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
  letter-spacing: -0.3px;
  font-family: "Inter", sans-serif;
}

.display-section-subtitle {
  font-size: clamp(0.75rem, 1vw, 0.8125rem);
  color: var(--text-dim);
  margin-bottom: clamp(0.75rem, 1.5vw, 1.25rem);
  font-family: "Inter", sans-serif;
}

.display-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  transition: border-color 0.12s;
}
.display-row:hover {
  border-color: var(--border-light);
}
.display-row .dr-icon {
  width: 1.375rem;
  height: 1.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.display-row .dr-icon svg {
  width: 1.125rem;
  height: 1.125rem;
}
.display-row .dr-name {
  flex: 0 0 auto;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  font-family: "Inter", sans-serif;
  white-space: nowrap;
}

.display-row-hero {
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-color: rgba(250, 204, 21, 0.25);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(250, 204, 21, 0.04) 100%);
  margin-bottom: 1rem;
}
.display-row-hero .display-hero-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.display-row-hero .display-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.display-row-hero .dr-name {
  font-size: 1rem;
  font-weight: 600;
}
.display-row-hero:hover {
  border-color: rgba(250, 204, 21, 0.4);
}

.display-row-with-msg {
  flex-wrap: wrap;
}
@media (min-width: 992px) {
  .display-row-with-msg {
    flex-wrap: nowrap;
  }
}

/* Display Message Bar — matches Tournament Clock pattern */
.display-message-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.display-message-icon {
  color: var(--text-muted);
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
}

.display-message-input {
  flex: 1;
  min-width: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  color: var(--text);
  font-size: 0.875rem;
  font-family: "Inter", sans-serif;
  padding: 0.5rem 0.75rem;
  outline: none;
  transition: border-color 0.15s;
}
.display-message-input::placeholder {
  color: var(--text-dim);
}
.display-message-input:focus {
  border-color: var(--accent);
}

.display-message-send {
  background: transparent !important;
  color: var(--accent) !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 0.375rem !important;
  border: 1px solid var(--accent) !important;
  white-space: nowrap;
  font-family: "Inter", sans-serif;
}
.display-message-send:hover {
  background: rgba(59, 130, 246, 0.1) !important;
}

.display-message-reset {
  background: transparent !important;
  color: var(--text-muted) !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  padding: 0.5rem 0.75rem !important;
  border-radius: 0.375rem !important;
  border: 1px solid var(--border) !important;
  white-space: nowrap;
  font-family: "Inter", sans-serif;
}
.display-message-reset:hover {
  color: var(--text) !important;
  border-color: var(--text-muted) !important;
}

.display-open-btn {
  background: var(--accent) !important;
  color: #fff !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 0.375rem !important;
  border: none !important;
  white-space: nowrap;
  font-family: "Inter", sans-serif;
  flex-shrink: 0;
  transition: filter 0.15s;
}
.display-open-btn:hover {
  filter: brightness(1.15);
  color: #fff !important;
}

/* Responsive KPI Grid */
@media (max-width: 1199px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .status-strip {
    gap: 16px;
    flex-wrap: wrap;
  }
}
.w-2em {
  width: 2em !important;
}

.w-40em {
  width: 40em !important;
}

.w-98 {
  width: 98% !important;
}

.h-52px {
  height: 52px !important;
}

.h-400px {
  height: 400px !important;
}

.text-accent {
  color: var(--accent) !important;
}

.text-success-custom {
  color: var(--green) !important;
}

.text-danger-custom {
  color: var(--red) !important;
}

.badge-status {
  border-radius: 0.9375rem;
  padding: 0.25rem 0.75rem;
  background-color: var(--surface-3);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.card-footer-dash {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background-color: var(--surface-2);
  border-top: 1px solid var(--border);
}

.engage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.display-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.btn-danger {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.12s;
}

.btn-danger:hover {
  background-color: var(--accent-glow);
  border-color: var(--accent-glow);
}

.engagement-card {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.kpi-desc {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 8px;
}

.outreach-compose {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
}
.outreach-compose-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: clamp(0.625rem, 1.2vw, 0.875rem) clamp(0.75rem, 1.5vw, 1.25rem);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: clamp(0.8125rem, 1vw, 0.875rem);
  font-weight: 600;
  color: var(--text);
  font-family: "Inter", sans-serif;
}
.outreach-compose-header svg {
  opacity: 0.6;
}
.outreach-compose-body {
  padding: clamp(0.75rem, 1.5vw, 1.25rem);
}
.outreach-compose-body .form-label {
  color: var(--text-muted);
  font-size: clamp(0.6875rem, 0.9vw, 0.75rem);
  font-weight: 500;
  margin-bottom: 0.25rem;
  font-family: "Inter", sans-serif;
}
.outreach-compose-body .form-control,
.outreach-compose-body .form-select {
  font-size: clamp(0.8125rem, 1vw, 0.875rem);
}
.outreach-compose-body textarea.form-control {
  resize: vertical;
  min-height: 5rem;
}

.outreach-channel-selector {
  display: flex;
  gap: 0.5rem;
}

.outreach-channel-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: clamp(0.8125rem, 1vw, 0.875rem);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  font-family: "Inter", sans-serif;
}
.outreach-channel-option svg {
  width: 1rem;
  height: 1rem;
}
.outreach-channel-option:hover:not(.outreach-channel-disabled) {
  border-color: var(--border-light);
  color: var(--text);
}
.outreach-channel-option.outreach-channel-active {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.08);
  color: var(--accent-glow);
}
.outreach-channel-option.outreach-channel-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.outreach-channel-option.outreach-channel-disabled .outreach-channel-soon {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  font-weight: 600;
}

.outreach-divider {
  height: 1px;
  background: var(--border);
  margin: clamp(0.75rem, 1.5vw, 1.25rem) 0;
}

.outreach-section-label {
  font-size: clamp(0.75rem, 1vw, 0.8125rem);
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
  font-family: "Inter", sans-serif;
}

.outreach-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(1rem, 2vw, 1.5rem);
  padding-top: clamp(0.75rem, 1.5vw, 1rem);
  border-top: 1px solid var(--border);
}

.outreach-inbox-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--text-muted);
  font-size: clamp(0.75rem, 1vw, 0.8125rem);
  font-weight: 500;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  transition: color 0.15s;
}
.outreach-inbox-link:hover {
  color: var(--accent);
}

.msg-player-list::-webkit-scrollbar, .messaging-preview-scroll::-webkit-scrollbar, .messaging-list-scroll::-webkit-scrollbar {
  width: 6px;
}
.msg-player-list::-webkit-scrollbar-track, .messaging-preview-scroll::-webkit-scrollbar-track, .messaging-list-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.msg-player-list::-webkit-scrollbar-thumb, .messaging-preview-scroll::-webkit-scrollbar-thumb, .messaging-list-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
.msg-player-list::-webkit-scrollbar-thumb:hover, .messaging-preview-scroll::-webkit-scrollbar-thumb:hover, .messaging-list-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--border-light);
}

.messaging-page {
  padding: 0 !important;
}

.messaging-layout {
  height: calc(100vh - var(--header-height));
  overflow: hidden;
}

.messaging-sidebar {
  background-color: var(--surface);
  border-right: 1px solid var(--border) !important;
  padding: 20px 16px !important;
}
.messaging-sidebar .btn-primary {
  padding: 10px 16px !important;
  font-size: 14px !important;
}
.messaging-sidebar .nav-link {
  color: var(--text) !important;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 6px;
  transition: all 0.12s;
  margin-bottom: 4px;
}
.messaging-sidebar .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--text) !important;
}
.messaging-sidebar .nav-link.msg-nav-active {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--accent-glow) !important;
  border-left: 3px solid var(--accent);
  padding-left: 11px;
}
.messaging-sidebar .nav-link.msg-nav-active .msg-badge {
  background-color: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--accent-glow);
}
.messaging-sidebar .nav-link i {
  font-size: 15px;
  width: 20px;
  text-align: center;
}

.msg-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background-color: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  line-height: 1;
}

.messaging-list-col {
  border-right: 1px solid var(--border) !important;
  padding: 0 !important;
  overflow: hidden;
  min-height: 0;
}

.messaging-list-scroll {
  overflow-y: auto;
  height: 100%;
}

.msg-list-item {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background-color 0.12s;
}
.msg-list-item:hover {
  background-color: rgba(255, 255, 255, 0.04);
}
.msg-list-item.selected-bg {
  background-color: var(--surface-2);
  border-left: 3px solid var(--accent);
  padding-left: 13px;
}

.msg-sender {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.msg-date {
  color: var(--text-dim);
  font-size: 11px;
}

.msg-subject {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.messaging-preview-col {
  padding: 0 !important;
  overflow: hidden;
  min-height: 0;
}

.messaging-preview-scroll {
  overflow-y: auto;
  height: 100%;
  padding: 24px;
}

.msg-preview-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.msg-preview-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.msg-preview-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.msg-preview-sep {
  color: var(--text-dim);
}

.msg-type-badge {
  font-size: 11px !important;
  font-weight: 600;
  color: var(--accent) !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(59, 130, 246, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.msg-preview-body {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}

.messaging-page .card {
  border-radius: 10px !important;
}
.messaging-page .card .card-header {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  border-radius: 10px 10px 0 0 !important;
  padding: 12px 16px;
}
.messaging-page .card .card-header i {
  color: var(--accent);
  font-size: 14px;
}
.messaging-page .card .card-header span {
  font-size: 14px;
}
.messaging-page .card .card-body {
  padding: 20px;
}
.messaging-page .card .card-body .form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.messaging-page .card .card-body .form-label-sm {
  font-size: 11px;
}
.messaging-page .card .card-body textarea.form-control {
  resize: vertical;
  min-height: 5rem;
}
.messaging-page .card .card-body hr {
  border-color: var(--border);
  opacity: 1;
}
.messaging-page .card .card-body h6 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.msg-channel-selector {
  display: flex;
  gap: 12px;
}

.msg-channel-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: default;
  transition: all 0.12s;
}
.msg-channel-option i {
  font-size: 16px;
}

.msg-channel-active {
  background-color: rgba(59, 130, 246, 0.12);
  border: 1px solid var(--accent);
  color: var(--accent-glow);
}

.msg-channel-disabled {
  background-color: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text-dim);
  opacity: 0.6;
  cursor: not-allowed;
}

.msg-channel-soon {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 4px;
}

.msg-summary-stat {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.msg-player-list {
  overflow-y: auto;
  max-height: 400px;
}

.msg-player-item {
  background-color: var(--surface-2) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
  cursor: pointer;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px !important;
  font-size: 13px;
  transition: background-color 0.12s;
}
.msg-player-item:hover {
  background-color: rgba(255, 255, 255, 0.06) !important;
}
.msg-player-item .check-icon {
  font-size: 14px;
}

.btn-close-white {
  filter: invert(1) grayscale(100%) brightness(200%);
}

#PatronNotes .modal-dialog {
  max-width: 36rem !important;
  width: 94vw !important;
  margin: 1.75rem auto;
}
#PatronNotes .modal-content {
  background-color: var(--surface);
  border: 1px solid var(--border);
}
#PatronNotes .modal-header {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 1.25rem;
}
#PatronNotes .modal-header .modal-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
#PatronNotes .modal-header .modal-title svg {
  color: var(--text-muted);
  flex-shrink: 0;
}
#PatronNotes .modal-header .btn-close {
  opacity: 0.85;
  filter: brightness(1.5);
}
#PatronNotes .modal-header .btn-close:hover {
  opacity: 1;
}
#PatronNotes .modal-body {
  color: var(--text);
  max-height: 75vh;
  overflow-y: auto;
}
#PatronNotes .modal-body::-webkit-scrollbar {
  width: 6px;
}
#PatronNotes .modal-body::-webkit-scrollbar-track {
  background: var(--surface);
  border-radius: 4px;
}
#PatronNotes .modal-body::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 4px;
}
#PatronNotes .modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--border-light);
}
#PatronNotes .modal-body {
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) var(--surface);
}
#PatronNotes .notes-compose {
  padding: 1rem 1.25rem;
}
#PatronNotes .notes-compose textarea {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  color: var(--text);
  font-size: 0.875rem;
  padding: 0.75rem;
  resize: vertical;
  transition: border-color 0.15s;
}
#PatronNotes .notes-compose textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
  outline: none;
}
#PatronNotes .notes-compose textarea::placeholder {
  color: var(--text-dim);
}
#PatronNotes .notes-compose-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  gap: 0.5rem;
}
#PatronNotes .notes-barred-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
  cursor: pointer;
  padding: 0.375rem 0.75rem;
  border-radius: 99em;
  border: 1px solid var(--border);
  background: transparent;
  transition: all 0.15s;
}
#PatronNotes .notes-barred-toggle input[type=checkbox] {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--red);
  cursor: pointer;
}
#PatronNotes .notes-barred-toggle svg {
  display: none;
}
#PatronNotes .notes-barred-toggle:hover {
  color: var(--text);
  border-color: var(--border-light);
  background: rgba(255, 255, 255, 0.03);
}
#PatronNotes .notes-barred-toggle:has(input:checked) {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.06);
  color: var(--red);
}
#PatronNotes #addNote {
  padding: 0.5rem 1.5rem !important;
  font-size: 0.875rem !important;
  white-space: nowrap;
}
#PatronNotes .notes-log-divider {
  border-top: 1px solid var(--border);
  margin: 0 1.25rem;
}
#PatronNotes .notes-log-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
#PatronNotes .notes-log-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3125rem;
  border-radius: 99em;
  font-size: 0.6875rem;
  font-weight: 700;
  background: var(--surface-3);
  color: var(--text-dim);
}
#PatronNotes .modal-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
}

.ms-notes-scroll {
  max-height: 40vh;
  overflow-y: auto;
}
.ms-notes-scroll .note-entry {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  border-left: 3px solid transparent;
  transition: background 0.15s;
}
.ms-notes-scroll .note-entry:last-child {
  border-bottom: none;
}
.ms-notes-scroll .note-entry-barred {
  border-left-color: var(--red);
  background: rgba(248, 113, 113, 0.04);
}
.ms-notes-scroll .note-entry-body {
  flex: 1;
  min-width: 0;
}
.ms-notes-scroll .note-entry-text {
  color: var(--text);
  font-size: 0.8125rem;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.ms-notes-scroll .note-entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  margin-top: 0.375rem;
  color: var(--text-dim);
  font-size: 0.75rem;
}
.ms-notes-scroll .note-entry-age {
  margin-left: auto;
}
.ms-notes-scroll .note-delete {
  flex-shrink: 0;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.15s;
  padding: 0.25rem;
  margin-top: 0.125rem;
}
.ms-notes-scroll .note-delete:hover {
  color: var(--red);
}
@media (max-width: 576px) {
  .ms-notes-scroll .note-entry {
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
  }
  .ms-notes-scroll .note-entry-age {
    margin-left: 0;
  }
}

#NoteDeleteConfirmation .modal-content {
  background-color: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}
#NoteDeleteConfirmation .modal-header {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
#NoteDeleteConfirmation .modal-header .modal-title {
  background: none;
  border: none;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}
#NoteDeleteConfirmation .modal-body p {
  color: var(--text);
  font-size: 0.875rem;
}
#NoteDeleteConfirmation .modal-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  gap: 0.5rem;
}
#NoteDeleteConfirmation .modal-footer .btn.cancel {
  background-color: var(--surface-3) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 6px;
  padding: 0.5rem 1.25rem;
  min-height: 2.5rem;
}
#NoteDeleteConfirmation .modal-footer .btn.cancel:hover {
  background-color: var(--border-light) !important;
}
#NoteDeleteConfirmation .modal-footer .btn.confirm {
  background-color: var(--red) !important;
  border: 1px solid var(--red) !important;
  color: white !important;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 6px;
  padding: 0.5rem 1.25rem;
  min-height: 2.5rem;
}
#NoteDeleteConfirmation .modal-footer .btn.confirm:hover {
  filter: brightness(1.1);
}
