/*
 * The single-order detail screen in wp-admin (US-004).
 *
 * Loaded only on edit.php?post_type=franchesco_order&page=franchesco-order-detail,
 * after assets/css/admin-orders.css, which already styles the status badge and
 * the status control this screen reuses. Every rule below is scoped to
 * .franchesco-order-detail so nothing can leak into another admin screen.
 */

.franchesco-order-detail__back {
	margin: 12px 0 16px;
}

.franchesco-order-detail__back a {
	font-weight: 600;
	text-decoration: none;
}

.franchesco-order-detail__back a:hover,
.franchesco-order-detail__back a:focus-visible {
	text-decoration: underline;
}

.franchesco-order-detail__grid {
	align-items: start;
	display: grid;
	gap: 20px;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.franchesco-order-detail__panel {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
	padding: 4px 16px 16px;
}

.franchesco-order-detail__panel--wide {
	margin-top: 20px;
}

.franchesco-order-detail__panel h2 {
	font-size: 15px;
	margin: 12px 0 8px;
}

.franchesco-order-detail__panel .description {
	margin: 0 0 12px;
}

.franchesco-order-detail__facts th[scope="row"] {
	color: #50575e;
	font-weight: 600;
	text-align: left;
	width: 34%;
}

.franchesco-order-detail__facts td,
.franchesco-order-detail__facts th,
.franchesco-order-detail__items td,
.franchesco-order-detail__items th,
.franchesco-order-detail__history td,
.franchesco-order-detail__history th {
	padding: 8px 10px;
	vertical-align: top;
}

.franchesco-order-detail__total {
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	white-space: nowrap;
}

.franchesco-order-detail__items tfoot th,
.franchesco-order-detail__items tfoot td {
	border-top: 2px solid #c3c4c7;
	text-align: right;
}

.franchesco-order-detail__mismatch {
	margin: 10px 0 0;
	border-left: 4px solid #dba617;
	padding: 6px 12px;
	background: #fcf9e8;
	color: #3c434a;
}

.franchesco-order-detail__badge {
	margin: 0 0 12px;
}

.franchesco-order-detail .franchesco-order-status {
	font-size: 14px;
	padding: 4px 14px;
}

.franchesco-order-detail .franchesco-order-status-control {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

@media screen and (max-width: 960px) {
	.franchesco-order-detail__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}
