/**
 * Smart Quotation Pro styles (aligned with Smart Invoice)
 */
.bz-sq { overflow-x: hidden; }
.bz-sq-features { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 12px 0 20px; font-size: 0.92rem; font-weight: 600; }
.bz-sq-home-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.bz-sq-home-actions .bz-btn {
	display: inline-flex !important; align-items: center !important; justify-content: center !important;
	min-height: 52px !important; padding: 12px 22px !important; line-height: 1.25 !important;
	border-radius: 12px !important; font-weight: 600 !important;
}

.bz-sq-stepper {
	display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0;
	margin: 8px 0 16px; padding: 14px 10px; background: var(--bz-card-bg);
	border: 1px solid var(--bz-border); border-radius: 16px; box-shadow: var(--bz-shadow);
}
.bz-sq-step {
	display: flex; flex-direction: column; align-items: center; gap: 4px;
	background: transparent; border: none; cursor: pointer; padding: 6px 8px;
	min-width: 56px; font-family: inherit; color: var(--bz-text-muted);
}
.bz-sq-step-num {
	width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center;
	justify-content: center; font-weight: 700; font-size: 0.85rem; background: #e9ecef; color: #495057;
}
.bz-sq-step.is-active .bz-sq-step-num {
	background: linear-gradient(135deg, var(--bz-primary), var(--bz-secondary)); color: #fff;
	box-shadow: 0 4px 12px rgba(13,110,253,.35);
}
.bz-sq-step.is-active { color: var(--bz-primary); font-weight: 600; }
.bz-sq-step.is-done .bz-sq-step-num { background: #198754; color: #fff; }
.bz-sq-step-lbl { font-size: 0.7rem; font-weight: 600; }
.bz-sq-step-line { flex: 1 1 12px; height: 3px; min-width: 8px; max-width: 36px; background: #dee2e6; border-radius: 2px; }

.bz-sq-status-bar {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
	margin-bottom: 16px; padding: 12px 14px; background: var(--bz-card-bg);
	border: 1px solid var(--bz-border); border-radius: 12px;
}
.bz-sq-status-bar .bz-input { max-width: 180px; min-height: 42px; }
.bz-sq-badge {
	display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 700;
	background: #cfe2ff; color: #084298;
}
.bz-sq-badge-muted { background: #e9ecef; color: #495057; }
.bz-sq-badge-warn { background: #fff3cd; color: #664d03; }
.bz-sq-badge-danger { background: #f8d7da; color: #842029; }
.bz-sq-badge-ok { background: #d1e7dd; color: #0f5132; }

.bz-sq-layout {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
	gap: 22px; align-items: start;
}
.bz-sq-form, .bz-sq-preview-col { min-width: 0; }
.bz-sq-h { margin: 0 0 14px; font-size: 1.08rem; font-weight: 700; padding-bottom: 10px; border-bottom: 1px solid rgba(0,0,0,.07); }
.bz-sq-hint { font-size: 0.85rem; color: var(--bz-text-muted); margin: 0 0 14px; }
.bz-sq-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 16px; }
.bz-sq-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px 16px; }
.bz-sq-span2 { grid-column: 1 / -1; }
.bz-sq .bz-form-group { margin-bottom: 0; }
.bz-sq .bz-input { min-height: 44px; }
.bz-sq-logo-preview img { max-height: 64px; margin-top: 8px; border-radius: 8px; }

.bz-sq-table-wrap {
	width: 100%; overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: 12px; background: #fff;
}
.bz-sq-table { width: 100%; min-width: 720px; border-collapse: collapse; table-layout: fixed; font-size: 0.85rem; }
.bz-sq-table th {
	background: #f1f5f9; padding: 10px 6px; text-align: left; font-weight: 700; font-size: 0.72rem; color: #334155;
	border-bottom: 1px solid #e2e8f0; white-space: nowrap;
}
.bz-sq-table td { padding: 6px 4px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.bz-sq-table .bz-input { min-height: 38px; padding: 6px 8px; font-size: 13px; width: 100%; }
.sq-amt { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

.bz-sq-totals {
	display: grid; gap: 8px; background: #f8fafc; border: 1px solid #e2e8f0;
	padding: 14px 16px; border-radius: 12px; margin-top: 12px;
}
.bz-sq-totals > div { display: flex; justify-content: space-between; gap: 12px; }
.bz-sq-grand { font-size: 1.08rem !important; font-weight: 700; color: var(--bz-primary); padding-top: 8px; border-top: 1px solid #e2e8f0; }

.bz-sq-offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.bz-sq-check {
	display: flex; align-items: center; gap: 8px; padding: 10px 12px;
	border: 1.5px solid #e2e8f0; border-radius: 10px; font-weight: 600; font-size: 0.9rem; cursor: pointer; background: #fff;
}
.bz-sq-check input { accent-color: var(--bz-primary); }

.bz-sq-nav {
	display: flex; justify-content: space-between; gap: 12px; margin-top: 18px;
	padding-top: 16px; border-top: 1px solid rgba(0,0,0,.06); flex-wrap: wrap;
}
.bz-sq-nav .bz-btn {
	display: inline-flex !important; align-items: center !important; justify-content: center !important;
	min-height: 48px !important; padding: 12px 20px !important; border-radius: 12px !important;
}

.bz-sq-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 8px; align-items: stretch; }
.bz-sq-actions .bz-sq-btn, .bz-sq-actions .bz-btn {
	display: inline-flex !important; align-items: center !important; justify-content: center !important;
	gap: 8px; min-height: 52px !important; padding: 12px 18px !important; line-height: 1.25 !important;
	font-size: 0.95rem !important; font-weight: 600 !important; border-radius: 12px !important;
	white-space: nowrap; box-sizing: border-box; overflow: visible !important;
}
.bz-sq-btn-ico { flex: 0 0 auto; font-size: 1.1rem; line-height: 1; }
.bz-sq-share-box { margin-top: 12px; }

.bz-sq-preview-sticky { position: sticky; top: 16px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; overflow: hidden; }
.bz-sq-preview-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.bz-sq-a4 { font-size: 0.7rem; font-weight: 700; padding: 4px 10px; border-radius: 6px; background: #e2e8f0; color: #475569; }
.bz-sq-sheet {
	background: #fff; color: #111; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px;
	font-size: 0.78rem; line-height: 1.45; overflow: auto; flex: 1; min-height: 220px; max-height: calc(100vh - 100px);
}
.bz-sq-sheet .sq-doc-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.bz-sq-sheet .sq-doc-title { font-size: 1.15rem; font-weight: 800; letter-spacing: 0.04em; }
.bz-sq-sheet .sq-doc-co { font-weight: 700; }
.bz-sq-sheet .sq-doc-muted { color: #555; font-size: 0.72rem; }
.bz-sq-sheet .sq-doc-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0; }
.bz-sq-sheet .sq-doc-table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.bz-sq-sheet .sq-doc-table th, .bz-sq-sheet .sq-doc-table td { border: 1px solid #ddd; padding: 6px; font-size: 0.72rem; }
.bz-sq-sheet .sq-doc-table th { background: #f5f7fb; }
.bz-sq-sheet .sq-doc-totals { text-align: right; }
.bz-sq-sheet .sq-doc-grand { font-size: 0.95rem; font-weight: 700; }
.bz-sq-sheet .sq-doc-sign { margin-top: 22px; border-top: 1px solid #999; width: 140px; padding-top: 6px; font-size: 0.7rem; }
.bz-sq-sheet.theme-blue .sq-doc-title { color: #0d6efd; }
.bz-sq-sheet.theme-green .sq-doc-title { color: #198754; }
.bz-sq-sheet.theme-dark { background: #0f172a; color: #e2e8f0; }
.bz-sq-sheet.theme-dark .sq-doc-table th { background: #1e293b; }
.bz-sq-sheet.theme-dark .sq-doc-table th, .bz-sq-sheet.theme-dark .sq-doc-table td { border-color: #334155; }

.bz-sq-list { display: grid; gap: 10px; margin: 12px 0 16px; }
.bz-sq-card {
	display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
	padding: 12px 14px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff;
}
.bz-sq-card-meta { font-size: 0.8rem; color: var(--bz-text-muted); }

@media (max-width: 1024px) {
	.bz-sq-layout { grid-template-columns: 1fr; }
	.bz-sq-preview-sticky { position: static; max-height: none; }
	.bz-sq-sheet { max-height: none; }
	.bz-sq-grid3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
	.bz-sq-grid2, .bz-sq-grid3 { grid-template-columns: 1fr; }
	.bz-sq-step-lbl { display: none; }
	.bz-sq-nav { flex-direction: column; }
	.bz-sq-nav .bz-btn, .bz-sq-actions .bz-btn { width: 100%; }
}
@media print {
	.bz-back-link, .bz-sq-stepper, .bz-sq-form, .bz-sq-home, .bz-sq-actions, .bz-sq-nav,
	.bz-sq-status-bar, .bz-reco-card, .bz-continue-learning, .bz-calc-note, .bz-sq-list-panel, .bz-sq-preview-bar {
		display: none !important;
	}
	.bz-sq-preview-col, .bz-sq-sheet { box-shadow: none !important; border: none !important; max-height: none !important; background: #fff !important; }
}
