/* V336: keep analytics grids compact when activity is a separate permitted panel. */
body[data-overview-theme] .ot285 .ot-grid.pi322-no-activity {
  grid-template-areas: "status payments" "recent recent" !important;
}
body[data-overview-theme] .ot285:is([data-design="crimson-pulse"], [data-design="carbon-glass"], [data-design="swiss-motion"]) .ot-grid.pi322-no-activity {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
/* Older designs positioned these beside a removed activity slot. Reset the axes
   before applying the occupied areas; this never changes the records displayed. */
body[data-overview-theme] .ot285 .ot-grid.pi322-no-activity > .ot-panel {
  grid-column: auto !important;
  grid-row: auto !important;
  min-width: 0;
}
body[data-overview-theme] .ot285 .ot-grid.pi322-no-activity > .ot-status { grid-area: status !important; }
body[data-overview-theme] .ot285 .ot-grid.pi322-no-activity > .ot-payments { grid-area: payments !important; }
body[data-overview-theme] .ot285 .ot-grid.pi322-no-activity > .ot-recent { grid-area: recent !important; }
/* A permitted Live Users widget wraps the ticket panel into a full-width row. */
body[data-overview-theme] .ot285 .ot-grid.pi322-no-activity.lu-has-map {
  grid-template-areas: "live live" "payments payments" "recent recent" !important;
}
body[data-overview-theme] .ot285 .ot-grid.pi322-no-activity.lu-has-map > .lu-overview-row {
  grid-area: live !important;
}
/* Crimson's mountain photograph is dark behind the desktop brand motto. */
.ot285[data-design="crimson-pulse"] .ot-hero-motto {
  color: #fff;
  text-shadow: 0 1px 4px #0b1329;
}
.ot285 .ot-theme-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 136px;
  padding: 20px;
  color: var(--ot-muted, var(--muted));
  font-size: 13px;
}
.ot285 .ot-theme-loading-dot {
  flex: 0 0 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ot-accent, var(--primary));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ot-accent, var(--primary)) 14%, transparent);
}
@media (max-width: 900px) {
  body[data-overview-theme] .ot285 .ot-grid.pi322-no-activity {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "status" "payments" "recent" !important;
  }
  body[data-overview-theme] .ot285 .ot-grid.pi322-no-activity.lu-has-map {
    grid-template-areas: "live" "payments" "recent" !important;
  }
}
@media (max-width: 600px) {
  /* Keep the real table and headers for assistive technology. Rows become
     compact cards so descriptions, currency, status and dates need no swipe. */
  body[data-overview-theme] .ot285 .ot-grid.pi322-no-activity .ot-recent .ot-table-scroll {
    overflow: visible;
  }
  body[data-overview-theme] .ot285 .ot-grid.pi322-no-activity .ot-recent-table {
    display: block;
    width: 100%;
    min-width: 0 !important;
    padding: 0;
  }
  body[data-overview-theme] .ot285 .ot-grid.pi322-no-activity .ot-recent-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  body[data-overview-theme] .ot285 .ot-grid.pi322-no-activity .ot-recent-table tbody {
    display: block;
    width: 100%;
  }
  body[data-overview-theme] .ot285 .ot-grid.pi322-no-activity .ot-recent-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 9px 12px;
    padding: 14px 15px;
    min-height: 0;
    border-bottom: 1px solid var(--ot-border);
  }
  body[data-overview-theme] .ot285 .ot-grid.pi322-no-activity .ot-recent-table tr:last-child {
    border-bottom: 0;
  }
  body[data-overview-theme] .ot285 .ot-grid.pi322-no-activity .ot-recent-table tr::before,
  body[data-overview-theme] .ot285 .ot-grid.pi322-no-activity .ot-recent-table tr::after {
    display: none;
  }
  body[data-overview-theme] .ot285 .ot-grid.pi322-no-activity .ot-recent-table td {
    display: block;
    padding: 0;
    border: 0;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  body[data-overview-theme] .ot285 .ot-grid.pi322-no-activity .ot-recent-table td:nth-child(1) {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  body[data-overview-theme] .ot285 .ot-grid.pi322-no-activity .ot-recent-table td:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  body[data-overview-theme] .ot285 .ot-grid.pi322-no-activity .ot-recent-table td:nth-child(3) {
    grid-column: 1;
    grid-row: 3;
  }
  body[data-overview-theme] .ot285 .ot-grid.pi322-no-activity .ot-recent-table td:nth-child(4) {
    grid-column: 2;
    grid-row: 3;
  }
  body[data-overview-theme] .ot285 .ot-grid.pi322-no-activity .ot-recent-table td:nth-child(n+3)::before {
    content: attr(data-label);
    display: block;
    color: var(--ot-muted);
    font-size: 9px;
    margin-bottom: 5px;
  }
  body[data-overview-theme] .ot285 .ot-grid.pi322-no-activity .ot-recent-table td strong {
    min-width: 0;
    font-size: 12px;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
