/*
 * Module: Vehicles — styles
 * Colors come only from the tokens in mcms-global.css. The plate chip
 * itself (.mcms-plate) is global; this file adds its large size.
 * The copy rows (.mcms-copylist) and the sheet frame (.mcms-qsheet)
 * are global too (mcms-global.css § 22–23); this file only lays out
 * the vehicle's own parts.
 *
 * SECTIONS
 *   1. Large plate + vehicle page header
 *   2. Sections and non-clickable rows (also used by the customer card)
 *   3. Rows that open the quick sheet (buttons that look like rows)
 *   4. Quick sheet + details card
 *
 * (The customer picker's styles live in mcms-global.css, section 15,
 *  because the picker itself is in mcms-core.js.)
 */

/* ==================================================================
   1. LARGE PLATE + VEHICLE HEADER
   ================================================================== */
.mcms-plate.mcms-plate--lg {
	height: 40px;
	border-width: 2px;
	border-radius: 6px;
	font-size: 22px;
}

.mcms-plate--lg::before {
	width: 20px;
	font-size: 9px;
	padding-bottom: 4px;
}

.mcms-plate--lg .mcms-plate__text {
	padding: 0 10px;
}

.mcms-vehicle-head {
	display: flex;
	align-items: center;
	gap: var(--mcms-gap);
	padding: 4px 0 8px;
}

.mcms-vehicle-head__text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.mcms-vehicle-head__model {
	font-size: var(--mcms-text-lg);
	font-weight: 700;
	overflow-wrap: break-word;
}

/* "Τελευταία: 85.400 χλμ (#140, …)" — opens that order. */
.mcms-wrap .mcms-vehicle-head__km {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--mcms-text-muted);
	font-size: var(--mcms-text-sm);
	font-weight: 600;
}

.mcms-vehicle-head__km svg {
	width: 18px;
	height: 18px;
	color: var(--mcms-brand-strong);
}

/* ==================================================================
   2. SECTIONS + NON-CLICKABLE ROWS
   ================================================================== */
.mcms-section {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 8px;
}

.mcms-section-head__sub {
	font-size: var(--mcms-text-sm);
	color: var(--mcms-text-muted);
	font-weight: 600;
}

.mcms-section__empty {
	padding: 14px var(--mcms-pad);
	color: var(--mcms-text-muted);
	background: var(--mcms-surface);
	border: 1px dashed var(--mcms-line-strong);
	border-radius: var(--mcms-radius-md);
	text-align: center;
}

/* A row that looks like the others but isn't a link (e.g. deleted car). */
.mcms-wrap .mcms-row.mcms-row--static,
.mcms-wrap .mcms-row.mcms-row--static:hover {
	background: var(--mcms-surface-muted);
	cursor: default;
}

/* ==================================================================
   3. ROWS THAT OPEN THE QUICK SHEET
   On order/offer pages the vehicle row is a <button> (it opens the
   sheet, no page change). Reset the browser's button look so it is
   identical to a link row.
   ================================================================== */
.mcms-wrap .mcms-row.mcms-row--btn {
	width: 100%;
	margin: 0;
	border: 0;
	border-top: 1px solid var(--mcms-line);
	border-radius: 0;
	background: var(--mcms-surface);
	font: inherit;
	text-align: left;
	white-space: normal;
	cursor: pointer;
}

.mcms-wrap .mcms-row.mcms-row--btn:first-child {
	border-top: 0;
}

.mcms-wrap .mcms-row.mcms-row--btn:hover {
	background: var(--mcms-surface-muted);
}

/* ==================================================================
   4. QUICK SHEET + DETAILS CARD
   ================================================================== */
.mcms-vsheet__head {
	display: flex;
	align-items: center;
	gap: var(--mcms-gap);
	flex-wrap: wrap;
}

.mcms-vsheet__headtext {
	flex: 1;
	min-width: 140px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.mcms-vsheet__model {
	font-size: var(--mcms-text-md);
	font-weight: 700;
	overflow-wrap: break-word;
}

/* On the vehicle page the copy rows sit inside a card: no second frame. */
.mcms-vdetails .mcms-copylist {
	border: 0;
	border-radius: var(--mcms-radius-md) var(--mcms-radius-md) 0 0;
}

.mcms-vdetails__warn {
	padding-bottom: 0;
}

.mcms-vdetails__copy {
	padding-top: 12px;
	border-top: 1px solid var(--mcms-line);
}