/* Страница просмотра заказа */
.cx-order-view-page {
  display: flex;
  flex-direction: column;
  gap: var(--mantine-spacing-sm, 0.75rem);
  height: calc(100dvh - var(--app-shell-header-height, 52px) - 2rem);
  min-height: 320px;
  overflow: auto;
  box-sizing: border-box;
}

.cx-order-view-page-top {
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--mantine-color-body, #fff);
  padding-bottom: 0.25rem;
}

.cx-order-view-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.cx-order-view-table th,
.cx-order-view-table td {
  padding: 6px 10px;
  border-bottom: 1px solid #dee2e6;
  text-align: left;
  vertical-align: top;
}

.cx-order-view-table th {
  background: #e7f5ff;
  font-weight: 600;
  white-space: nowrap;
}

.cx-order-view-table td:nth-child(n + 2),
.cx-order-view-table th:nth-child(n + 2) {
  text-align: right;
}

.cx-order-view-table td:first-child,
.cx-order-view-table th:first-child {
  text-align: left;
}

.cx-order-view-table--dishes td:nth-child(2),
.cx-order-view-table--dishes th:nth-child(2) {
  text-align: left;
}

.cx-order-view-table tfoot td {
  background: #e7f5ff;
  font-weight: 700;
  border-top: 2px solid #ced4da;
  border-bottom: none;
}

.cx-order-view-table tfoot td.cx-order-view-footer:first-child {
  text-align: left;
}
