Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

7.9 KB
Raw Blame
@use "../../../../styles/mixins.scss";

.headerSection {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 16px;

  @include mixins.respond-below(md) {
    flex-direction: column;
    align-items: stretch;
  }
}

.pageTitle {
  margin: 0;
  flex: 1;
}

.headerControls {
  display: flex;
  align-items: center;
  gap: 8px;

  @include mixins.respond-below(md) {
    margin-left: auto;
  }
}

.currencySelector {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--hi-text);
  background: var(--hi-color-white);
  border: 0.5px solid var(--hi-color-border);
  border-radius: 6px;
  transition: all 0.15s ease;
  cursor: pointer;
  line-height: 1.2;

  &:hover:not(:disabled) {
    background: var(--mantine-color-gray-0);
  }

  &:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
}

.currencyText {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', monospace;
  letter-spacing: 0.02em;
}

.currencyIcon {
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.currencySelector:hover .currencyIcon {
  transform: translateY(1px);
}

.currencyOption {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.currencyCode {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', monospace;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--mantine-color-gray-9);
  min-width: 45px;
  flex-shrink: 0;
}

.currencyLabel {
  font-size: 0.8125rem;
  color: var(--hi-color-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.selectedCurrency {
  background: var(--mantine-color-secondary-0);

  .currencyCode {
    color: var(--mantine-color-secondary-5);
  }
}

.currencyDropdown {
  padding: 4px;
  max-height: 320px;
  overflow: hidden;
}

.currencyScrollArea {
  max-height: 312px;
  overflow-y: auto;
  overflow-x: hidden;

  &::-webkit-scrollbar {
    width: 6px;
  }

  &::-webkit-scrollbar-track {
    background: transparent;
  }

  &::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;

    &:hover {
      background: rgba(0, 0, 0, 0.25);
    }
  }

  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

.heroChart {
  border: 0.5px solid var(--hi-color-border);
  border-radius: var(--hi-radius-card);
  background: var(--hi-color-white);
  padding: 16px;
  margin-bottom: 12px;
}

.heroChartHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.heroChartLabel {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hi-color-text-muted);
  font-weight: 600;
  margin: 0;
}

.heroChartValue {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--hi-text);
  line-height: 1.25;
  margin-top: 4px;
}

.heroChartDelta {
  font-size: 0.75rem;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  line-height: 1.2;
}

.heroChartDeltaUp {
  color: var(--hi-color-success);
}

.heroChartDeltaDown {
  color: var(--hi-color-danger);
}

.heroChartDeltaNone {
  color: var(--hi-color-text-muted);
}

.heroChartTabs {
  flex-shrink: 0;
}

.heroChartArea {
  width: 100%;
  margin-top: 4px;
}

.recentLists {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;

  @include mixins.respond-above(lg) {
    grid-template-columns: 1fr 1fr;
  }
}

.listCard {
  border: 0.5px solid var(--hi-color-border);
  border-radius: var(--hi-radius-card);
  background: var(--hi-color-white);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
}

.eventsListCard {
  padding-bottom: 16px;
}

.eventCardList {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eventsEmptyState {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 12px 16px;
  gap: 6px;
}

.eventsEmptyEmoji {
  font-size: 28px;
  line-height: 1;
}

.eventsEmptyTitle {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--hi-text);
  margin: 0;
  letter-spacing: -0.01em;
}

.eventsEmptyCopy {
  font-size: 0.8125rem;
  color: var(--hi-color-text-muted);
  margin: 0;
  max-width: 320px;
  line-height: 1.5;
}

.listCardHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.listCardTitle {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hi-text);
  margin: 0;
}

.listCardLink {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--hi-color-text-muted);
  text-decoration: none;

  &:hover {
    color: var(--hi-text);
  }
}

.ordersListCard {
  padding-bottom: 16px;
}

.orderCardList {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.orderCardLink {
  display: block;
  text-decoration: none;
  color: inherit;
}

.orderCard {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--hi-color-white);
  border: 0.5px solid var(--hi-color-border);
  border-radius: var(--hi-radius-card);
  min-height: 76px;
  container-type: inline-size;
  transition: background-color 0.12s ease;

  &:hover {
    background-color: var(--mantine-color-gray-0);

    .orderName {
      color: var(--mantine-color-primary-7);
    }

    .orderChevron {
      opacity: 1;
      transform: translateX(2px);
    }
  }

  @container (max-width: 460px) {
    gap: 10px;
    padding: 10px;
  }
}

.orderAvatar {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: var(--hi-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--mantine-color-white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;

  @container (max-width: 460px) {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 0.8125rem;
  }
}

.orderContent {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.orderPrimary {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.orderName {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--hi-text);
  transition: color 0.12s ease;
  letter-spacing: -0.005em;
  @include mixins.ellipsis;
}

.orderId {
  font-size: 0.75rem;
  color: var(--hi-color-text-muted);
  font-family: 'SF Mono', Monaco, 'Cascadia Mono', 'Roboto Mono', monospace;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.orderMeta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--hi-color-text-muted);
  line-height: 1.3;
}

.orderDot {
  color: var(--hi-color-border);
}

.orderMuted {
  color: var(--hi-color-text-muted);
  font-weight: 400;
  white-space: nowrap;
}

.orderStat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 64px;
  flex-shrink: 0;

  @container (max-width: 460px) {
    min-width: 0;
  }
}

.orderStatValue {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--hi-text);
  letter-spacing: -0.01em;
  white-space: nowrap;
  line-height: 1.2;
}

.orderStatLabel {
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hi-color-text-muted);
  margin-top: 2px;

  @container (max-width: 460px) {
    display: none;
  }
}

.orderChevron {
  color: var(--hi-color-text-muted);
  opacity: 0.6;
  transition: opacity 0.12s ease, transform 0.12s ease;
  flex-shrink: 0;

  @container (max-width: 460px) {
    display: none;
  }
}

.statusPill {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
}

.statusPill-success {
  color: var(--hi-color-success);
}

.statusPill-warning {
  color: var(--hi-color-warning);
}

.statusPill-danger {
  color: var(--hi-color-danger);
}

.statusPill-muted {
  color: var(--hi-color-text-muted);
}