.tickets-page {
  display: block;
  width: 100%;
  max-width: 720px;
}

.tickets-list {
  position: relative;
}

.tickets-list__generating {
  position: absolute;
  z-index: 10;
  inset: 0;
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 8px;
  color: #26322a;
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(2px);
}

.tickets-list__generating-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border-color);
  border-top-color: var(--tenant-primary, #009933);
  border-radius: 50%;
  animation: tickets-spinner 0.75s linear infinite;
}

.tickets-list__header {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.tickets-list__header--inactive {
  justify-content: flex-start;
}

.tickets-list__header--inactive h2 {
  margin: 0;
  color: #a0a0a0;
  font-size: 14px;
  font-weight: 700;
}

.tickets-list__inactive {
  margin-top: 44px;
}

.tickets-list__select-all {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  color: #a0a0a0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.tickets-list__select-all input {
  width: 21px;
  height: 21px;
  margin: 0;
  accent-color: var(--tenant-primary, #009933);
}

.tickets-list__bulk-actions {
  display: flex;
  gap: 18px;
}

.tickets-list__bulk-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #a0a0a0;
  font-size: 11px;
}

.tickets-list app-ticket {
  border-bottom: 1px solid var(--border-color);
}

.tickets-list__empty {
  padding: 32px 0;
  color: #666666;
  text-align: center;
}

.tickets-list__skeleton-header {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.tickets-list__skeleton-selection,
.tickets-list__skeleton-bulk-actions,
.tickets-list__skeleton-actions {
  display: flex;
  align-items: center;
}

.tickets-list__skeleton-selection {
  gap: 16px;
}

.tickets-list__skeleton-bulk-actions,
.tickets-list__skeleton-actions {
  gap: 8px;
}

.tickets-list__skeleton {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 78px auto;
  min-height: 76px;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.tickets-list__skeleton-check,
.tickets-list__skeleton-line,
.tickets-list__skeleton-icon,
.tickets-list__skeleton-button {
  display: block;
  border-radius: 4px;
  background: linear-gradient(90deg, #eeeeee 20%, #f7f7f7 50%, #eeeeee 80%);
  background-size: 200% 100%;
  animation: tickets-loading 1.4s ease-in-out infinite;
}

.tickets-list__skeleton-check {
  width: 21px;
  height: 21px;
  border-radius: 2px;
}

.tickets-list__skeleton-details {
  display: grid;
  gap: 8px;
}

.tickets-list__skeleton-line--section {
  width: 120px;
  height: 14px;
}

.tickets-list__skeleton-line--title {
  width: min(240px, 75%);
  height: 13px;
}

.tickets-list__skeleton-line--id {
  width: 86px;
  height: 11px;
}

.tickets-list__skeleton-line--date {
  width: 64px;
  height: 11px;
  justify-self: center;
}

.tickets-list__skeleton-button {
  width: 115px;
  height: 36px;
}

.tickets-list__skeleton-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

@keyframes tickets-loading {
  to {
    background-position: -200% 0;
  }
}

@keyframes tickets-spinner {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 767.98px) {
  .tickets-list__skeleton {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
  }

  .tickets-list__skeleton-line--date {
    grid-column: 2;
    justify-self: start;
  }

  .tickets-list__skeleton-actions {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .tickets-list__skeleton-actions .tickets-list__skeleton-icon {
    display: none;
  }
}
