.dashboard-transaction-list {
  min-width: 0;
}

.dashboard-recent-transactions .panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
}

.dashboard-recent-transactions .panel-head > div {
  min-width: 0;
}

.dashboard-recent-transactions .panel-head h2 {
  font-size: 13px;
}

.dashboard-recent-transactions .panel-head .muted {
  display: block;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.dashboard-recent-transactions .panel-head .btn {
  justify-self: end;
  padding: 8px 10px;
  white-space: nowrap;
}

.dashboard-transaction {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: start;
  gap: 10px;
  min-width: 0;
  padding: 13px var(--dashboard-panel-inset, 32px);
  border-top: 1px dashed var(--line);
}

.dashboard-transaction-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.dashboard-transaction-invoice {
  color: var(--text);
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.dashboard-transaction-customer,
.dashboard-transaction-time {
  display: block;
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.dashboard-transaction-total {
  justify-self: end;
  padding-top: 1px;
  color: var(--primary);
  font-size: 11px;
  line-height: 1.4;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 780px) {
  .dashboard-transaction {
    gap: 8px;
    padding: 12px var(--dashboard-panel-inset, 32px);
  }
}

.dashboard-latest-grid {
  align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 540px), 1fr));
}

.dashboard-recent-panel {
  min-width: 0;
  height: 100%;
  container: dashboard-panel / inline-size;
  --dashboard-panel-inset: 32px;
}

.dashboard-recent-panel .panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 12px;
  padding: 14px var(--dashboard-panel-inset);
}

.dashboard-recent-panel .panel-head > div {
  min-width: 0;
}

.dashboard-recent-panel .panel-head h2 {
  margin: 0;
  line-height: 1.35;
}

.dashboard-recent-panel .panel-head .muted {
  display: block;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.dashboard-recent-panel .panel-head .btn {
  justify-self: end;
  min-width: max-content;
  flex-shrink: 0;
  white-space: nowrap;
}

.dashboard-service-list {
  min-width: 0;
}

.dashboard-service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: start;
  gap: 12px;
  min-width: 0;
  padding: 13px var(--dashboard-panel-inset);
  border-bottom: 1px dashed var(--line);
  font-size: 11px;
}

.dashboard-service-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.dashboard-service-number,
.dashboard-service-details {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.dashboard-service-number {
  color: var(--text);
}

.dashboard-service-details {
  color: var(--muted);
  font-size: 10px;
}

.dashboard-service-status.pill {
  justify-self: end;
  max-width: 132px;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}

@media (max-width: 1100px) {
  .dashboard-latest-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .dashboard-recent-panel .panel-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .dashboard-recent-panel .panel-head .btn {
    justify-self: start;
  }

  .dashboard-service {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }

  .dashboard-service-status.pill {
    justify-self: start;
  }

  .dashboard-transaction {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .dashboard-transaction-total {
    justify-self: start;
  }
}

@container dashboard-panel (max-width: 500px) {
  .dashboard-recent-panel .panel-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 8px;
  }

  .dashboard-recent-panel .panel-head .btn {
    justify-self: start;
  }

  .dashboard-transaction {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 14px var(--dashboard-panel-inset, 32px);
  }

  .dashboard-transaction-total {
    justify-self: end;
    padding-top: 0;
  }

  .dashboard-service {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 14px var(--dashboard-panel-inset, 32px);
  }

  .dashboard-service-status.pill {
    justify-self: start;
  }
}

.dashboard-page-title .page-actions {
  margin-left: auto;
  justify-content: flex-end;
}

.topbar .breadcrumb > span:first-child {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 780px) {
  .dashboard-page-title .page-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .dashboard-page-title .page-actions > .btn {
    flex: 0 0 auto;
  }
}
