:root {
  --menu-width: 300px;
}

body {
  overflow-x: hidden;
  font-feature-settings: "palt";
}

.num,
.num-font,
[data-num] {
  font-family: "Titillium Web", var(--tblr-font-sans-serif);
  font-variant-numeric: tabular-nums;
}

a,
button,
select,
input[type="checkbox"],
.clickable,
.clickable-row,
.sortable-th,
.nav-link,
.list-group-item-action,
.clear-btn {
  cursor: pointer;
}

.dashboard-content {
  display: none;
  position: relative;
}

.file-select-wrap {
  min-width: 360px;
}

.loading-cover {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(var(--tblr-body-bg-rgb), 0.7);
  backdrop-filter: blur(4px);
}

.loading-cover.show {
  display: flex;
}

.empty-state-card {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1010;
  background: rgba(var(--tblr-body-bg-rgb), 0.92);
  border-bottom: 1px solid var(--tblr-border-color);
  backdrop-filter: blur(8px);
}

.hamburger-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
}

.side-panel {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--menu-width);
  z-index: 1040;
  background: var(--tblr-bg-surface);
  border-right: 1px solid var(--tblr-border-color);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.18);
  transform: translateX(-105%);
  transition: transform 0.22s ease;
}

.side-panel.open {
  transform: translateX(0);
}

.side-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--tblr-border-color);
}

.side-overlay {
  position: fixed;
  inset: 0;
  z-index: 1035;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.side-overlay.open {
  pointer-events: auto;
  opacity: 1;
}

.page-section {
  display: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.page-section.active {
  display: block;
}

.page-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.page-section.leaving {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  pointer-events: none;
}

.card,
.table-fixed-wrap,
.event-row-card {
  transition: box-shadow 0.16s ease, transform 0.16s ease, background-color 0.16s ease;
}

.event-row-card:hover,
.clickable-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
}

.table-fixed-wrap {
  min-height: 18rem;
  height: var(--ticket-table-height, var(--ticket-table-max-height, calc(100vh - 360px)));
  max-height: var(--ticket-table-max-height, calc(100vh - 360px));
  overflow: hidden;
  border: 1px solid var(--tblr-border-color);
  border-radius: 0.5rem;
}

.table-fixed-wrap.tall {
  max-height: var(--ticket-table-max-height, calc(100vh - 260px));
}

.user-ticket-table-wrap {
  min-height: 7rem;
  height: var(--user-ticket-table-height, 7rem);
  max-height: 22.5rem;
}

.ticket-scroll-grow-space {
  height: clamp(12rem, 42vh, 34rem);
  pointer-events: none;
}

.page-section:not(.visible) .ticket-scroll-grow-space {
  display: none;
}

.table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  white-space: nowrap;
  background: var(--tblr-bg-surface);
}

.sortable-th::after {
  content: "↕";
  margin-left: 0.25rem;
  color: var(--tblr-secondary);
  font-size: 0.7rem;
}

.sortable-th.sorted-asc::after {
  content: "↑";
  color: var(--tblr-primary);
}

.sortable-th.sorted-desc::after {
  content: "↓";
  color: var(--tblr-primary);
}

.summary-event-table td,
.summary-event-table th {
  vertical-align: middle;
}

.trend-mode-select {
  min-width: 8rem;
}

.trend-summary-table {
  margin-bottom: 0;
}

.trend-table-wrap {
  max-height: 24rem;
  overflow: auto;
}

.trend-summary-table th,
.trend-summary-table td {
  white-space: nowrap;
}

.price-overview-table th:last-child,
.price-overview-table td:last-child {
  min-width: 22rem;
}

.price-overview-bars {
  display: grid;
  gap: 0.22rem;
}

.price-overview-row {
  display: grid;
  grid-template-columns: 3.6rem minmax(8rem, 1fr) 4.6rem;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
}

.price-overview-label {
  color: var(--tblr-secondary);
  white-space: nowrap;
}

.price-overview-track {
  display: flex;
  height: 0.52rem;
  overflow: hidden;
  background: var(--tblr-gray-100);
  border-radius: 999px;
}

[data-bs-theme="dark"] .price-overview-track {
  background: rgba(255, 255, 255, 0.08);
}

.price-overview-segment {
  display: block;
  min-width: 0;
}

.price-overview-active,
.price-legend-active {
  background: #2fb344;
}

.price-overview-dealt,
.price-legend-dealt {
  background: #f59f00;
}

.price-overview-count {
  color: var(--tblr-secondary);
  text-align: right;
  white-space: nowrap;
}

.price-legend-chip {
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  margin-right: 0.25rem;
  border-radius: 0.2rem;
  vertical-align: -0.1rem;
}

.metric-card {
  min-height: 96px;
}

.event-group-title {
  padding-left: 0.75rem;
  border-left: 4px solid var(--tblr-primary);
}

.group-row td {
  font-weight: 700;
  color: var(--tblr-primary);
  background: var(--tblr-gray-50) !important;
}

tr.row-muted td {
  color: var(--tblr-secondary);
  background: var(--tblr-gray-100) !important;
}

.status-badge {
  min-width: 4.4rem;
  justify-content: center;
}

.status-active-badge {
  color: #fff !important;
  background: #2fb344 !important;
}

.status-dealing-badge {
  color: #1f1600 !important;
  background: #f59f00 !important;
}

.status-closed-badge {
  color: #fff !important;
  background: #206bc4 !important;
}

.status-canceled-badge,
.status-deleted-badge,
.status-expired-badge,
.status-unknown-badge {
  color: #1f2937 !important;
  background: #adb5bd !important;
}

.event-select {
  min-height: 0;
  height: auto !important;
  max-height: 18rem;
  overflow: auto;
  font-size: 0.82rem;
}

.event-select[multiple] {
  height: auto !important;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.wide-select-help {
  font-size: 0.75rem;
  color: var(--tblr-secondary);
}

.filter-input-wrap {
  position: relative;
}

.filter-input-wrap .form-control {
  padding-right: 2rem;
}

.clear-btn {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  display: none;
  padding: 0;
  color: var(--tblr-secondary);
  background: transparent;
  border: 0;
  transform: translateY(-50%);
}

.filter-input-wrap.has-value .clear-btn {
  display: inline-flex;
}

.status-filter-control {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem !important;
}

.status-filter-actions,
.status-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.status-filter-action {
  --tblr-btn-padding-x: 0.4rem;
  --tblr-btn-padding-y: 0.1rem;
  font-size: 0.68rem;
  line-height: 1.2;
}

.status-filter-item {
  align-items: center;
  border: 1px solid var(--tblr-border-color);
  border-radius: 0.35rem;
  cursor: pointer;
  gap: 0.25rem;
  min-height: 1.45rem;
  padding: 0.12rem 0.34rem;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.status-filter-chip {
  background: transparent;
  border: 1px solid var(--tblr-border-color);
  color: var(--tblr-secondary);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.1;
  padding: 0.24rem 0.44rem;
  position: relative;
  user-select: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.status-filter-chip.active {
  background: var(--tblr-primary);
  border-color: var(--tblr-primary);
  color: #fff;
}

.status-filter-chip .status-filter {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.status-filter-chip-label {
  white-space: nowrap;
}

.status-filter-press-ring {
  animation: statusFilterPressRing 0.42s ease-out;
}

@keyframes statusFilterPressRing {
  from {
    box-shadow: 0 0 0 0 rgba(32, 107, 196, 0.35);
  }
  to {
    box-shadow: 0 0 0 8px rgba(32, 107, 196, 0);
  }
}

.users-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.user-list-pane {
  position: sticky;
  top: 82px;
  max-height: calc(100vh - 105px);
  overflow: auto;
}

.user-item {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.user-item .avatar-sm {
  --tblr-avatar-size: 1.7rem;
}

.user-item-inner {
  min-height: 2rem;
}

.user-item .fw-bold {
  line-height: 1.1;
}

.user-item .small {
  font-size: 0.72rem;
  line-height: 1.1;
}

.user-ticket-pane {
  min-width: 0;
}

.avatar-img {
  object-fit: cover;
}

.rounded-circle {
  border-radius: 50% !important;
  border-top-left-radius: 50% !important;
  border-top-right-radius: 50% !important;
  border-bottom-right-radius: 50% !important;
  border-bottom-left-radius: 50% !important;
}

.modal-pre {
  white-space: pre-wrap;
  word-break: break-word;
}

.comment-card {
  padding-left: 0.75rem;
  border-left: 3px solid var(--tblr-primary);
}

.comment-ticket-group {
  padding-left: 0.75rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--tblr-border-color);
}

.comment-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.update-history-item {
  padding-left: 0.75rem;
  margin-bottom: 0.75rem;
  border-left: 3px solid var(--tblr-border-color);
}


.badge-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.attribute-badge-name-none {
  color: #236043 !important;
  background-color: #dff3e8 !important;
}

.attribute-badge-name-male {
  color: #285f91 !important;
  background-color: #deedf9 !important;
}

.attribute-badge-name-female {
  color: #8a3f4b !important;
  background-color: #f7e1e6 !important;
}

.attribute-badge-name-unknown,
.attribute-badge-source-others {
  color: #53606d !important;
  background-color: #edf0f3 !important;
}

.attribute-badge-source-playguide {
  color: #276b7a !important;
  background-color: #dff4f7 !important;
}

.attribute-badge-source-fanclub {
  color: #884653 !important;
  background-color: #f7e3e8 !important;
}

.attribute-badge-source-organizer {
  color: #2f6650 !important;
  background-color: #e1f2e9 !important;
}

.detail-value-box {
  min-height: 2.1rem;
  padding: 0.55rem 0.65rem;
  background: var(--tblr-bg-surface-tertiary, var(--tblr-gray-50));
  border: 1px solid var(--tblr-border-color);
  border-radius: 0.375rem;
}

.ticket-modal-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.ticket-detail-modal {
  display: grid;
  gap: 1rem;
}

.ticket-detail-metrics > [class*="col-"],
.ticket-detail-metric {
  display: flex;
  flex-direction: column;
}

.ticket-detail-metric .detail-value-box {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
}

.ticket-detail-stack {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.detail-value-box .modal-pre {
  margin: 0;
}

.active-deals-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.active-deal-item {
  line-height: 1.25;
}

/* Ticket list: compact but readable. */
.ticket-table {
  height: 100%;
  table-layout: auto;
  font-size: 0.78rem;
}

.ticket-table.tabulator {
  font-family: var(--tblr-font-sans-serif);
  color: var(--tblr-body-color);
  background: var(--tblr-bg-surface);
  border: 0;
}

.ticket-table .tabulator-header {
  color: var(--tblr-body-color);
  background: var(--tblr-bg-surface);
  border-bottom-color: var(--tblr-border-color);
}

.ticket-table .tabulator-header .tabulator-col {
  color: var(--tblr-body-color);
  background: var(--tblr-bg-surface);
  border-right-color: var(--tblr-border-color);
}

.ticket-table .tabulator-header .tabulator-col .tabulator-col-content {
  padding: 0.25rem 0.3rem;
}

.ticket-table .tabulator-row {
  min-height: 2.85rem;
  color: var(--tblr-body-color);
  background: var(--tblr-bg-surface);
  border-bottom-color: var(--tblr-border-color);
  cursor: pointer;
}

.ticket-table .tabulator-row:hover {
  background: var(--tblr-table-hover-bg, var(--tblr-gray-50));
}

.ticket-table .tabulator-row.row-muted {
  color: var(--tblr-secondary);
  background: var(--tblr-gray-100) !important;
}

.ticket-table .tabulator-row .tabulator-cell {
  display: inline-flex;
  align-items: center;
  min-height: 2.85rem;
  padding: 0.25rem 0.3rem;
  border-right-color: var(--tblr-border-color);
  line-height: 1.15;
  vertical-align: middle;
}

.ticket-table .tabulator-group {
  padding: 0.45rem 0.5rem;
  font-weight: 700;
  color: var(--tblr-primary);
  background: var(--tblr-gray-50) !important;
  border-color: var(--tblr-border-color);
  cursor: pointer;
}

.ticket-table .tabulator-group .ticket-group-label {
  color: inherit;
}

.ticket-table .tabulator-tableholder {
  overflow-x: auto;
}

.ticket-table .tabulator-sort-label::after {
  content: "↕";
  margin-left: 0.25rem;
  color: var(--tblr-secondary);
  font-size: 0.7rem;
}

.ticket-table .tabulator-sort-label.sorted-asc::after {
  content: "↑";
  color: var(--tblr-primary);
}

.ticket-table .tabulator-sort-label.sorted-desc::after {
  content: "↓";
  color: var(--tblr-primary);
}

.ticket-table th,
.ticket-table td {
  padding: 0.25rem 0.35rem;
  line-height: 1.15;
  vertical-align: middle;
}

.ticket-table th {
  font-size: 0.74rem;
}

.ticket-table .id-cell,
.ticket-table .date-cell,
.ticket-table .price-cell,
.ticket-table .number-cell,
.ticket-table .seller-id {
  font-family: "Titillium Web", var(--tblr-font-sans-serif);
  font-variant-numeric: tabular-nums;
}

.ticket-table .id-cell {
  font-weight: 700;
  white-space: nowrap;
}

.ticket-table .date-cell {
  min-width: 4.55rem;
  white-space: nowrap;
}

.ticket-table .date-cell .time-line {
  color: var(--tblr-secondary);
  font-size: 0.72rem;
}

.ticket-table .price-cell {
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
  width: 100%;
}

.ticket-table .count-cell {
  text-align: center;
  width: 100%;
}

.ticket-table .number-cell {
  text-align: right;
  width: 100%;
}

.ticket-table .pref-cell {
  max-width: 3rem;
  white-space: nowrap;
}

.ticket-table .trade-condition-cell {
  text-align: center;
}

.ticket-table .trade-condition-stack {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  align-items: flex-start;
  max-height: 2.35rem;
  overflow: hidden;
}

.ticket-table .trade-condition-stack .badge {
  white-space: nowrap;
}

.ticket-table .meta-badge-cell {
  width: 10rem;
  min-width: 10rem;
}

.ticket-table .badge {
  padding: 0.16rem 0.32rem;
  font-size: 0.68rem;
}

.ticket-table .badge-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  min-width: 9.3rem;
  max-height: 2.25rem;
  overflow: hidden;
}

.ticket-table .seller-cell {
  min-width: 6.8rem;
  max-width: 8.2rem;
  line-height: 1.15;
}

.ticket-table .seller-id {
  font-weight: 600;
}

.ticket-table .seller-name {
  overflow: hidden;
  color: var(--tblr-secondary);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-table .seat-desc-cell {
  min-width: 11rem;
  max-width: 18rem;
}

.two-line-ellipsis {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.2;
  white-space: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 992px) {
  .users-layout {
    grid-template-columns: 1fr;
  }

  .user-list-pane {
    position: static;
    max-height: 300px;
  }

  .table-fixed-wrap {
    max-height: none;
  }

  .file-select-wrap {
    min-width: 100%;
  }
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

[data-bs-theme="dark"] body {
  color: #dce1e7;
  background: #111827;
}

[data-bs-theme="dark"] .topbar {
  background: rgba(17, 24, 39, 0.94);
  border-bottom-color: #2f3b4a;
}

[data-bs-theme="dark"] .side-panel,
[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .modal-content,
[data-bs-theme="dark"] .table thead th {
  background-color: #182433;
  color: #dce1e7;
}

[data-bs-theme="dark"] .side-panel {
  border-right-color: #2f3b4a;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.45);
}

[data-bs-theme="dark"] .side-panel-header,
[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .table-fixed-wrap,
[data-bs-theme="dark"] .detail-value-box,
[data-bs-theme="dark"] .comment-ticket-group,
[data-bs-theme="dark"] .update-history-item {
  border-color: #2f3b4a;
}

[data-bs-theme="dark"] .table {
  --tblr-table-color: #dce1e7;
  --tblr-table-bg: #182433;
  --tblr-table-border-color: #2f3b4a;
  --tblr-table-striped-bg: #1d2b3a;
  --tblr-table-hover-bg: #213143;
  color: #dce1e7;
}

[data-bs-theme="dark"] .ticket-table.tabulator {
  color: #dce1e7;
  background: #182433;
}

[data-bs-theme="dark"] .ticket-table .tabulator-header,
[data-bs-theme="dark"] .ticket-table .tabulator-header .tabulator-col {
  color: #dce1e7;
  background: #182433;
  border-color: #2f3b4a;
}

[data-bs-theme="dark"] .ticket-table .tabulator-row {
  color: #dce1e7;
  background: #182433;
  border-bottom-color: #2f3b4a;
}

[data-bs-theme="dark"] .ticket-table .tabulator-row:hover {
  color: #ffffff;
  background: #213143;
}

[data-bs-theme="dark"] .ticket-table .tabulator-row.row-muted {
  color: #b6c2cf;
  background: #222b36 !important;
}

[data-bs-theme="dark"] .ticket-table .tabulator-row .tabulator-cell {
  border-right-color: #2f3b4a;
}

[data-bs-theme="dark"] .ticket-table .tabulator-group {
  color: #9ec5fe;
  background: #16263a !important;
  border-color: #2f3b4a;
}

[data-bs-theme="dark"] .table-hover > tbody > tr:hover > * {
  color: #ffffff;
  background-color: #213143 !important;
}

[data-bs-theme="dark"] .group-row td {
  color: #9ec5fe;
  background: #16263a !important;
}

[data-bs-theme="dark"] tr.row-muted td {
  color: #b6c2cf;
  background: #222b36 !important;
}

[data-bs-theme="dark"] .event-row-card:hover,
[data-bs-theme="dark"] .clickable-row:hover {
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.32);
}

[data-bs-theme="dark"] .detail-value-box {
  background: #111827;
  color: #dce1e7;
}

[data-bs-theme="dark"] .text-secondary,
[data-bs-theme="dark"] .ticket-table .date-cell .time-line,
[data-bs-theme="dark"] .ticket-table .seller-name,
[data-bs-theme="dark"] .wide-select-help {
  color: #a9b7c6 !important;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
  color: #dce1e7;
  background-color: #111827;
  border-color: #3a4656;
}

[data-bs-theme="dark"] .form-control::placeholder {
  color: #7f8fa3;
}

[data-bs-theme="dark"] .clear-btn {
  color: #a9b7c6;
}

[data-bs-theme="dark"] .list-group-item {
  color: #dce1e7;
  background-color: #182433;
  border-color: #2f3b4a;
}

[data-bs-theme="dark"] .list-group-item-action:hover,
[data-bs-theme="dark"] .list-group-item-action:focus {
  color: #ffffff;
  background-color: #213143;
}

[data-bs-theme="dark"] .list-group-item.active {
  color: #ffffff;
  background-color: #206bc4;
  border-color: #206bc4;
}

[data-bs-theme="dark"] .status-active-badge {
  color: #ffffff !important;
  background: #2fb344 !important;
}

[data-bs-theme="dark"] .status-dealing-badge {
  color: #211400 !important;
  background: #f7b731 !important;
}

[data-bs-theme="dark"] .status-closed-badge {
  color: #ffffff !important;
  background: #3b82f6 !important;
}

[data-bs-theme="dark"] .status-canceled-badge,
[data-bs-theme="dark"] .status-deleted-badge,
[data-bs-theme="dark"] .status-expired-badge,
[data-bs-theme="dark"] .status-unknown-badge {
  color: #f8fafc !important;
  background: #596579 !important;
}

[data-bs-theme="dark"] .bg-blue-lt {
  color: #cfe1ff !important;
  background-color: rgba(32, 107, 196, 0.28) !important;
}

[data-bs-theme="dark"] .bg-green-lt {
  color: #c8f7d3 !important;
  background-color: rgba(47, 179, 68, 0.25) !important;
}

[data-bs-theme="dark"] .bg-orange-lt,
[data-bs-theme="dark"] .bg-yellow-lt {
  color: #ffe8b3 !important;
  background-color: rgba(245, 159, 0, 0.28) !important;
}

[data-bs-theme="dark"] .bg-purple-lt {
  color: #e9d5ff !important;
  background-color: rgba(128, 90, 213, 0.28) !important;
}

[data-bs-theme="dark"] .bg-secondary-lt {
  color: #d1d9e6 !important;
  background-color: rgba(148, 163, 184, 0.24) !important;
}

[data-bs-theme="dark"] .attribute-badge-name-none {
  color: #bfe8cf !important;
  background-color: rgba(76, 147, 103, 0.3) !important;
}

[data-bs-theme="dark"] .attribute-badge-name-male {
  color: #c8ddf3 !important;
  background-color: rgba(73, 126, 174, 0.3) !important;
}

[data-bs-theme="dark"] .attribute-badge-name-female {
  color: #f4c4cc !important;
  background-color: rgba(171, 87, 103, 0.3) !important;
}

[data-bs-theme="dark"] .attribute-badge-name-unknown,
[data-bs-theme="dark"] .attribute-badge-source-others {
  color: #d1d8e0 !important;
  background-color: rgba(132, 145, 160, 0.28) !important;
}

[data-bs-theme="dark"] .attribute-badge-source-playguide {
  color: #bfeaf0 !important;
  background-color: rgba(66, 151, 164, 0.3) !important;
}

[data-bs-theme="dark"] .attribute-badge-source-fanclub {
  color: #f3c7cf !important;
  background-color: rgba(168, 89, 104, 0.3) !important;
}

[data-bs-theme="dark"] .attribute-badge-source-organizer {
  color: #c5e7d5 !important;
  background-color: rgba(79, 145, 106, 0.3) !important;
}

[data-bs-theme="dark"] .modal-pre {
  color: #dce1e7;
}

[data-bs-theme="dark"] .loading-cover {
  background: rgba(17, 24, 39, 0.72);
}

/* Grouped ticket rows: Bootstrap Collapse based accordion behavior. */
.accordion-group-row td {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.ticket-group-toggle {
  width: 100%;
  color: var(--tblr-body-color);
  text-decoration: none;
  font-weight: 600;
}

.ticket-group-toggle:hover {
  text-decoration: none;
}

.ticket-group-chevron {
  display: inline-block;
  width: 1.25rem;
  color: var(--tblr-secondary);
  transition: transform 0.16s ease;
}

.ticket-group-toggle.collapsed .ticket-group-chevron {
  transform: rotate(-90deg);
}

.ticket-group-label {
  vertical-align: middle;
}

[data-bs-theme="dark"] .ticket-group-toggle {
  color: var(--tblr-body-color);
}

/* Fast group toggle: no Bootstrap collapse animation for large ticket groups. */
.ticket-group-toggle {
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  text-align: left;
}

.ticket-group-chevron {
  flex: 0 0 auto;
  transition: none;
}
