/* ==========================================================================
   Quotes (QUOTES_PLAN.md)
   --------------------------------------------------------------------------
   Quote-specific chrome layered on top of booking-detail's .bd-* vocabulary
   (tokens come from public/css/booking-detail.css — --bd-navy, --bd-line,
   --bd-mute, --bd-page-bg, --bd-radius-sm). Card/layout chrome on the quote
   pages reuses .bd-card / .bd-layout directly; only quote-specific bits
   (hold chips, kv rows, line rows, sign boxes, decision actions) live here.
   ========================================================================== */

/* ----- Id pill (header, next to the title) ----- */
.qt-id-pill {
	display: inline-flex;
	align-items: center;
	background: #ebf0f5;
	color: var(--bd-navy, #003264);
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	padding: 3px 10px;
	white-space: nowrap;
}

/* ----- Holding chips (list table + detail status card) ----- */
.qt-hold-chip,
.qt-nohold-chip {
	display: inline-flex;
	align-items: center;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	padding: 3px 10px;
	white-space: nowrap;
}
.qt-hold-chip {
	background: #ebf0f5;
	color: var(--bd-navy, #003264);
}
.qt-nohold-chip {
	background: #f3f4f6;
	color: #6b7280;
}

/* ----- Side rail stack ----- */
.qt-stack {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* ----- Card sub copy ----- */
.qt-card-sub {
	font-size: 13px;
	color: var(--bd-mute, #6d87a1);
	margin: -6px 0 12px;
}

/* ----- Key/value rows (money + status cards) ----- */
.qt-kv {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 13.5px;
	padding: 6px 0;
}
.qt-kv__label {
	color: var(--bd-mute, #6d87a1);
}
.qt-kv--total {
	font-weight: 700;
	font-size: 15px;
	border-top: 1px solid var(--bd-line, #eef0f4);
	margin-top: 4px;
	padding-top: 10px;
}
.qt-kv--control .qt-date-input {
	max-width: 170px;
	margin-bottom: 0;
}
/* Quote details (the business's own quote questions) — a typed answer can be
   long, so the value column wraps instead of squashing the label. */
.qt-kv--wrap {
	align-items: flex-start;
}
.qt-kv--wrap .qt-kv__value {
	text-align: right;
	overflow-wrap: break-word;
	min-width: 0;
}

/* ----- Line-item rows (What's included) ----- */
.qt-line {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border-top: 1px solid var(--bd-line, #eef0f4);
}
.qt-line:first-of-type {
	border-top: 0;
	padding-top: 0;
}
.qt-line__main {
	min-width: 0;
}
.qt-line__name {
	font-size: 14px;
	font-weight: 600;
	color: var(--bd-navy, #003264);
}
.qt-line__meta {
	font-size: 12.5px;
	color: var(--bd-mute, #6d87a1);
}
.qt-line__price {
	margin-left: auto;
	font-weight: 600;
	white-space: nowrap;
}

/* ----- Agreement signature boxes ----- */
.qt-sign-box {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--bd-page-bg, #f6f7f9);
	border-radius: var(--bd-radius-sm, 8px);
	padding: 12px 14px;
}
.qt-sign-box--stacked {
	margin-top: 10px;
}
.qt-sign-box__main {
	min-width: 0;
	flex: 1;
}
.qt-sign-box__name {
	font-size: 13.5px;
	font-weight: 600;
}
.qt-sign-box__meta {
	font-size: 12.5px;
	color: var(--bd-mute, #6d87a1);
}

/* ----- Empty states (sub-component level) ----- */
.qt-empty-inline {
	background: var(--bd-page-bg, #f6f7f9);
	border-radius: var(--bd-radius-sm, 8px);
	padding: 14px;
	text-align: center;
	font-size: 13.5px;
	color: var(--bd-mute, #6d87a1);
}

/* ----- Status card switch row ----- */
.qt-switch-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border-top: 1px solid var(--bd-line, #eef0f4);
	margin-top: 8px;
	padding-top: 12px;
}
.qt-switch-row__label {
	font-size: 13.5px;
	font-weight: 600;
}
.qt-hint {
	font-size: 12.5px;
	color: var(--bd-mute-2, #94a3b8);
}

/* ----- Decision card actions ----- */
.qt-decision-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
}
.qt-decision-actions .btn {
	width: auto;
}

/* Valid-until inline editor (detail header). Display lives here, not inline,
   so x-show can toggle it without an x-cloak (morph re-add bug class). */
.qt-vu-edit {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
