.inv-preview-loading-row,
.inv-preview-state-row {
  display: none;
}

.inv-preview-loading-row[hidden],
.inv-preview-state-row[hidden] {
  display: none !important;
}

html.nv-cloudflare-preview-auth .dash-header__center,
html.nv-cloudflare-preview-auth .inv-week-timeline,
html.nv-cloudflare-preview-auth .inv-toolbar,
html.nv-cloudflare-preview-auth .inv-toolbar__status,
html.nv-cloudflare-preview-auth .inv-reconciliation,
html.nv-cloudflare-preview-auth .inv-reconciliation__status,
html.nv-cloudflare-preview-auth .inv-bulk-actions,
html.nv-cloudflare-preview-auth [data-inv-doc-panel="quotes"],
html.nv-cloudflare-preview-auth dialog,
html.nv-cloudflare-preview-auth .inv-payment-source,
html.nv-cloudflare-preview-auth .inv-pagination__pages,
html.nv-cloudflare-preview-auth .inv-pagination__rows {
  display: none !important;
}

html.nv-cloudflare-preview-auth body:not([data-nucleus-invoices-state]) .inv-summary,
html.nv-cloudflare-preview-auth body[data-nucleus-invoices-state="loading"] .inv-summary {
  visibility: hidden;
}

html.nv-cloudflare-preview-auth [data-inv-doc-panel="invoices"] tbody > tr:not(.inv-preview-row):not(.inv-preview-loading-row):not(.inv-preview-state-row) {
  display: none !important;
}

html.nv-cloudflare-preview-auth .inv-preview-loading-row:not([hidden]),
html.nv-cloudflare-preview-auth .inv-preview-state-row:not([hidden]) {
  display: table-row;
}

html.nv-cloudflare-preview-auth [data-inv-doc-panel="invoices"] thead th:first-child,
html.nv-cloudflare-preview-auth [data-inv-doc-panel="invoices"] tbody td:first-child,
html.nv-cloudflare-preview-auth [data-inv-doc-panel="invoices"] thead th:last-child,
html.nv-cloudflare-preview-auth [data-inv-doc-panel="invoices"] tbody td:last-child {
  display: none;
}

html.nv-cloudflare-preview-auth .inv-table {
  min-width: 680px;
}

html.nv-cloudflare-preview-auth .inv-preview-row {
  cursor: default;
}

html.nv-cloudflare-preview-auth .inv-pagination {
  justify-content: flex-start;
}

.inv-preview-skeleton {
  display: grid;
}

.inv-preview-skeleton span {
  display: block;
  height: 72px;
  border-bottom: 1px solid var(--dash-border);
  background: linear-gradient(90deg, transparent 0%, var(--dash-surface-hover) 50%, transparent 100%);
  background-size: 220% 100%;
  animation: inv-preview-loading 1.35s ease-in-out infinite;
}

.inv-preview-skeleton span:last-child {
  border-bottom: 0;
}

.inv-preview-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 56px 24px;
  text-align: center;
}

.inv-preview-state__title,
.inv-preview-state__copy {
  margin: 0;
}

.inv-preview-state__title {
  color: var(--dash-text);
  font-weight: 600;
}

.inv-preview-state__copy {
  max-width: 520px;
  color: var(--dash-text-subtle);
}

@keyframes inv-preview-loading {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .inv-preview-skeleton span { animation: none; }
}
