/**
 * Online order view — readable layout + supplemental summary card.
 */
app-online-order-view .view-order-container,
app-order-online .view-order-container,
app-online-order .view-order-container {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

app-online-order-view .view-order-container > .row,
app-order-online .view-order-container > .row,
app-online-order .view-order-container > .row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
	width: 100%;
}

app-online-order-view .view-order-container > .row > [class*="col"],
app-order-online .view-order-container > .row > [class*="col"],
app-online-order .view-order-container > .row > [class*="col"] {
	flex: 1 1 280px;
	min-width: 0;
	max-width: 100%;
	padding: 0;
}

app-online-order-view mat-card,
app-order-online mat-card,
app-online-order mat-card {
	width: 100%;
	box-sizing: border-box;
}

app-online-order-view .op-sf-pos-order-items,
app-order-online .op-sf-pos-order-items,
app-online-order .op-sf-pos-order-items {
	display: none !important;
}

.op-sf-online-detail {
	margin: 12px 0 0;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid #dbe3ef;
	border-radius: 10px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.op-sf-online-detail__meta {
	display: grid;
	gap: 8px;
	margin-bottom: 12px;
}

.op-sf-online-detail__totals {
	border-top: 1px solid #e2e8f0;
	padding-top: 10px;
}

.op-sf-meta-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 13px;
	align-items: flex-start;
}

.op-sf-meta-row--stack {
	flex-direction: column;
	align-items: flex-start;
}

.op-sf-meta-row span {
	color: #64748b;
	flex: 0 0 auto;
}

.op-sf-meta-row strong {
	color: #0f172a;
	text-align: right;
	word-break: break-word;
}

.op-sf-meta-row--stack strong {
	text-align: left;
}

.op-sf-status {
	text-transform: capitalize;
}

.op-sf-map-link {
	color: #2563eb;
	font-weight: 600;
	text-decoration: none;
}

.op-sf-totals-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.op-sf-totals-table th,
.op-sf-totals-table td {
	padding: 7px 4px;
	border-bottom: 1px solid #eef2f7;
}

.op-sf-totals-table th {
	color: #64748b;
	font-weight: 600;
	text-align: left;
}

.op-sf-totals-table td {
	text-align: right;
	white-space: nowrap;
	color: #0f172a;
}

.op-sf-totals-table__grand th,
.op-sf-totals-table__grand td {
	border-bottom: 0;
	padding-top: 10px;
	font-size: 15px;
}

app-online-order-view .order-items-table,
app-order-online .order-items-table,
app-online-order .order-items-table {
	width: 100%;
	border-collapse: collapse;
}

app-online-order-view .order-items-table th,
app-order-online .order-items-table th,
app-online-order .order-items-table th,
app-online-order-view .order-items-table td,
app-order-online .order-items-table td,
app-online-order .order-items-table td {
	padding: 8px 6px;
	vertical-align: top;
	border-bottom: 1px solid #e2e8f0;
}

app-online-order-view .order-items-table th:last-child,
app-order-online .order-items-table th:last-child,
app-online-order .order-items-table th:last-child,
app-online-order-view .order-items-table td:last-child,
app-order-online .order-items-table td:last-child,
app-online-order .order-items-table td:last-child {
	text-align: right;
	white-space: nowrap;
}

body.op-sf-online-order-route app-orders .mat-tab-body-content {
	-webkit-overflow-scrolling: touch;
}
