@keyframes dashPhSweep {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.dash-ph {
  pointer-events: none;
  user-select: none;
}

.dash-ph-fill {
  background: linear-gradient(
    100deg,
    rgba(18, 18, 18, 0.06) 30%,
    rgba(18, 18, 18, 0.11) 50%,
    rgba(18, 18, 18, 0.06) 70%
  );
  background-size: 220% 100%;
  animation: dashPhSweep 1.1s ease-in-out infinite;
}

.dash-ph-tile,
.dash-ph-card,
.dash-ph-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem 0.85rem;
}

.dash-ph-tile {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--border, rgba(18, 18, 18, 0.08));
}

.dash-ph-tile:last-child,
.dash-ph-card:last-child,
.dash-ph-row:last-child {
  border-bottom: 0;
}

.dash-ph-card,
.dash-ph-row {
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--border, rgba(18, 18, 18, 0.08));
  border-radius: 1rem;
  background: var(--panel, #fff);
}

.dash-ph-row {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.45rem;
}

.dash-ph-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
}

.dash-ph-body {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.dash-ph-line {
  display: block;
  height: 0.82rem;
  border-radius: 999px;
  width: 72%;
}

.dash-ph-line--meta {
  height: 0.7rem;
  width: 42%;
}

.dash-ph-media-card {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.dash-ph-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
}

.applications-grid > .dash-ph-tile,
.admin-list > .dash-ph-tile,
.catalogue-item-list > .dash-ph-tile {
  width: 100%;
}

.sales-board > .dash-ph-media-card,
.shop-store-grid > .dash-ph-media-card,
.shop-menu-results > .dash-ph-media-card,
.pos-catalog-grid > .dash-ph-media-card {
  min-width: 0;
}

tbody .dash-ph td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--border, rgba(18, 18, 18, 0.08));
}

.applications-grid--launcher > .dash-ph-tile {
  border: 1px solid var(--border, rgba(18, 18, 18, 0.08));
  border-radius: 16px;
  background: var(--panel, #fff);
}

.dash-ph-ready,
span.dash-ph-ready[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .dash-ph-fill {
    animation: none;
  }
}
