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 ⭐️

6.0 KB
Raw Blame
@use "../../../../styles/mixins";

.wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--hi-color-gray);
  min-height: 0;
  overflow: hidden;
}

.searchField {
  margin: 14px 16px 10px;
  background: #fff;
  border: 1.5px solid var(--hi-color-gray-2);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color 160ms ease, box-shadow 160ms ease;

  &:focus-within {
    border-color: var(--mantine-color-primary-8);
    box-shadow: 0 0 0 3px var(--mantine-color-primary-1);
  }

  input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    color: var(--hi-text);

    &::placeholder {
      color: var(--hi-color-gray-dark);
    }
  }

  svg {
    color: var(--hi-color-gray-dark);
    flex-shrink: 0;
  }
}

.clearBtn {
  border: none;
  background: transparent;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--hi-color-gray-dark);
  flex-shrink: 0;
  transition: color 140ms ease;

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

  &:focus-visible {
    outline: 2px solid var(--hi-primary);
    outline-offset: 1px;
  }
}

.statRow {
  margin: 0 16px 10px;
  display: flex;
  gap: 8px;
}

.statCell {
  flex: 1;
  background: #fff;
  border: 1px solid var(--hi-color-gray-2);
  border-radius: 12px;
  padding: 10px 12px;
}

.statValue {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--hi-text);
  line-height: 1.1;
}

.statOf {
  font-size: 13px;
  font-weight: 600;
  color: var(--hi-color-gray-dark);
  margin-left: 2px;
}

.statLabel {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hi-color-gray-dark);
  margin-top: 2px;
}

.chipRow {
  padding: 0 16px 12px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;

  &::-webkit-scrollbar {
    display: none;
  }
}

.chip {
  flex-shrink: 0;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--hi-color-gray-2);
  background: #fff;
  color: var(--hi-text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 160ms ease;

  &:active {
    transform: scale(0.96);
  }
}

.chipActive {
  background: var(--hi-gradient);
  border-color: transparent;
  color: #fff;

  .chipCount {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
  }
}

.chipCount {
  background: var(--hi-color-gray);
  color: var(--hi-color-gray-dark);
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}

.list {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px calc(120px + env(safe-area-inset-bottom));
  @include mixins.scrollbar();
}

.loader {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 0;
}

.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--hi-color-gray-dark);

  p {
    margin: 0 0 4px;
    font-size: 14px;
  }
}

.emptySub {
  font-size: 12px !important;
  opacity: 0.8;
}

.row {
  background: #fff;
  border: 1px solid var(--hi-color-gray-2);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 120ms ease, border-color 140ms ease;
  text-align: left;
  width: 100%;
  font-family: inherit;
  cursor: pointer;

  &:active {
    transform: scale(0.99);
  }

  &:hover {
    border-color: var(--hi-color-gray-dark);
  }

  &:focus-visible {
    outline: 2px solid var(--hi-primary);
    outline-offset: 2px;
  }
}

.rowDone {
  background: color-mix(in srgb, var(--hi-color-money-green) 8%, #fff);
  border-color: color-mix(in srgb, var(--hi-color-money-green) 28%, transparent);
}

.rowCancelled {
  opacity: 0.6;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--mantine-color-primary-1, #dcd2f0);
  color: var(--mantine-color-primary-9, #33205a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.avatarDone {
  background: var(--hi-color-money-green);
  color: #fff;
}

.rowMain {
  flex: 1;
  min-width: 0;
}

.rowName {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--hi-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rowMeta {
  font-size: 12px;
  color: var(--hi-color-gray-dark);
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
}

.rowCode {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 600;
  color: var(--hi-primary);
  letter-spacing: 0.04em;
}

.rowProduct {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.rowOccurrence {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--hi-primary-light, rgba(99, 91, 255, 0.08));
  color: var(--hi-primary);
  font-size: 11px;
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;

  > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }
}

.dot {
  opacity: 0.5;
}

.rowTags {
  margin-top: 4px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tagWarn {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, #f59f00 16%, transparent);
  color: #a87600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tagDanger {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, #e03131 16%, transparent);
  color: #c92a2a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.rowAction {
  flex-shrink: 0;
}