/* Tooloos Advanced Quotation Generator */
.tls-quote-app,
.tls-quote-app * { box-sizing: border-box; }

.tls-quote-app {
	--q-primary: #2563eb;
	--q-primary-dark: #1d4ed8;
	--q-primary-soft: #eff6ff;
	--q-dark: #101828;
	--q-text: #475467;
	--q-muted: #667085;
	--q-border: #e4e7ec;
	width: 100%;
	padding: 72px 22px 96px;
	background:
		radial-gradient(circle at 50% 0%, rgba(37,99,235,.08), transparent 28%),
		#f8fafc;
	color: var(--q-dark);
	font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
	-webkit-font-smoothing: auto;
	text-rendering: auto;
}

.tls-quote-shell { width: min(100%,1480px); margin: 0 auto; }

.tls-quote-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 36px;
}

.tls-quote-kicker {
	display: inline-block;
	margin-bottom: 10px;
	color: var(--q-primary);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.tls-quote-header h1 {
	margin: 0;
	color: var(--q-dark);
	font-size: clamp(34px,4.3vw,52px);
	font-weight: 700;
	letter-spacing: -.04em;
	line-height: 1.08;
}

.tls-quote-header p {
	max-width: 800px;
	margin: 14px 0 0;
	color: var(--q-text);
	font-size: 15px;
	line-height: 1.65;
}

.tls-quote-privacy {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 8px;
	padding: 10px 13px;
	border: 1px solid #d1fadf;
	border-radius: 999px;
	background: #ecfdf3;
	color: #027a48;
	font-size: 11px;
	font-weight: 600;
}

.tls-quote-privacy svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tls-quote-workspace {
	display: grid;
	grid-template-columns: minmax(0,1fr) minmax(520px,.9fr);
	gap: 24px;
	align-items: start;
}

.tls-quote-editor { display: grid; gap: 15px; }

.tls-quote-panel {
	padding: 23px;
	border: 1px solid var(--q-border);
	border-radius: 17px;
	background: #fff;
	box-shadow: 0 8px 26px rgba(16,24,40,.035);
}

.tls-quote-panel-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 20px;
}

.tls-quote-panel-heading > div > span {
	display: block;
	margin-bottom: 4px;
	color: var(--q-primary);
	font-size: 9.5px;
	font-weight: 600;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.tls-quote-panel-heading h2 {
	margin: 0;
	color: var(--q-dark);
	font-size: 19px;
	font-weight: 600;
	letter-spacing: -.015em;
	line-height: 1.35;
}

.tls-quote-form-grid { display: grid; gap: 15px; }
.tls-quote-form-grid-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.tls-quote-form-grid-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.tls-quote-field-full { grid-column: 1 / -1; }

.tls-quote-field { display: grid; gap: 7px; min-width: 0; }
.tls-quote-field > span { color: #344054; font-size: 11px; font-weight: 600; }

.tls-quote-field input,
.tls-quote-field select,
.tls-quote-field textarea {
	width: 100%;
	min-width: 0;
	border: 1px solid #d0d5dd !important;
	border-radius: 9px !important;
	outline: 0 !important;
	background: #fff !important;
	color: #101828 !important;
	font-family: inherit;
	font-size: 13px !important;
	font-weight: 400 !important;
	box-shadow: none !important;
}

.tls-quote-field input,
.tls-quote-field select { height: 44px; padding: 0 12px !important; }

.tls-quote-field textarea {
	min-height: 82px;
	padding: 11px 12px !important;
	line-height: 1.5;
	resize: vertical;
}

.tls-quote-field input:focus,
.tls-quote-field select:focus,
.tls-quote-field textarea:focus {
	border-color: #84adff !important;
	box-shadow: 0 0 0 3px rgba(37,99,235,.1) !important;
}

.tls-quote-tax-options,
.tls-quote-adjustments {
	display: grid;
	grid-template-columns: repeat(3,minmax(0,1fr));
	gap: 15px;
	margin-top: 15px;
}

.tls-quote-tax-options { grid-template-columns: repeat(2,minmax(0,1fr)); }

.tls-quote-smart-note {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 15px;
	padding: 12px 13px;
	border: 1px solid #dbeafe;
	border-radius: 10px;
	background: #f5f9ff;
}

.tls-quote-smart-note svg {
	flex: 0 0 auto;
	width: 17px;
	height: 17px;
	fill: none;
	stroke: var(--q-primary);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tls-quote-smart-note p { margin: 0; color: #475467; font-size: 11px; line-height: 1.55; }

.tls-quote-logo-upload {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 39px;
	padding: 0 12px;
	border: 1px solid #d0d5dd;
	border-radius: 9px;
	background: #fff;
	color: #344054;
	font-size: 11px;
	font-weight: 600;
	cursor: pointer;
}

.tls-quote-logo-upload input { display: none; }

.tls-quote-logo-upload svg,
.tls-quote-secondary-button svg,
.tls-quote-primary-button svg,
.tls-quote-convert-button svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tls-quote-logo-preview-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: -4px 0 17px;
	padding: 11px;
	border: 1px solid #e4e7ec;
	border-radius: 10px;
	background: #f8fafc;
}

.tls-quote-logo-preview-row img {
	width: 56px;
	height: 56px;
	padding: 4px;
	border: 1px solid #eaecf0;
	border-radius: 9px;
	background: #fff;
	object-fit: contain;
}

.tls-quote-logo-preview-row button {
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: #b42318 !important;
	font-family: inherit;
	font-size: 11px;
	font-weight: 600;
	cursor: pointer;
}

.tls-quote-secondary-button,
.tls-quote-primary-button,
.tls-quote-convert-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 41px;
	padding: 0 14px !important;
	border-radius: 9px !important;
	font-family: inherit;
	font-size: 11.5px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
}

.tls-quote-secondary-button {
	border: 1px solid #d0d5dd !important;
	background: #fff !important;
	color: #344054 !important;
}

.tls-quote-secondary-button:hover,
.tls-quote-secondary-button:focus {
	border-color: #84adff !important;
	background: #eff6ff !important;
	color: #1d4ed8 !important;
}

.tls-quote-danger-button { color: #b42318 !important; }

.tls-quote-primary-button {
	border: 1px solid var(--q-primary) !important;
	background: var(--q-primary) !important;
	color: #fff !important;
}

.tls-quote-primary-button:hover,
.tls-quote-primary-button:focus {
	border-color: var(--q-primary-dark) !important;
	background: var(--q-primary-dark) !important;
	color: #fff !important;
}

.tls-quote-convert-button {
	border: 1px solid #7f56d9 !important;
	background: #7f56d9 !important;
	color: #fff !important;
}

.tls-quote-convert-button:hover,
.tls-quote-convert-button:focus {
	border-color: #6941c6 !important;
	background: #6941c6 !important;
	color: #fff !important;
}

.tls-quote-items-editor { display: grid; gap: 10px; }

.tls-quote-item-row {
	display: grid;
	grid-template-columns: minmax(0,2fr) 82px 120px 110px 38px;
	gap: 9px;
	align-items: end;
	padding: 12px;
	border: 1px solid #e4e7ec;
	border-radius: 11px;
	background: #f8fafc;
}

.tls-quote-item-row .tls-quote-field { gap: 5px; }
.tls-quote-item-row .tls-quote-field > span { font-size: 9.5px; }

.tls-quote-item-total {
	display: flex;
	align-items: center;
	height: 44px;
	padding: 0 10px;
	border: 1px solid #e4e7ec;
	border-radius: 9px;
	background: #fff;
	color: #344054;
	font-size: 11px;
	font-weight: 600;
}

.tls-quote-remove-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0 !important;
	border: 1px solid #fecdca !important;
	border-radius: 9px !important;
	background: #fff5f4 !important;
	color: #b42318 !important;
	cursor: pointer;
}

.tls-quote-remove-item svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tls-quote-editor-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 9px;
	padding: 18px;
	border: 1px solid var(--q-border);
	border-radius: 15px;
	background: #fff;
}

.tls-quote-preview-panel { position: sticky; top: 92px; min-width: 0; }

.tls-quote-preview-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin-bottom: 10px;
	padding: 12px 14px;
	border: 1px solid var(--q-border);
	border-radius: 12px;
	background: #fff;
}

.tls-quote-preview-toolbar span,
.tls-quote-preview-toolbar strong { display: block; }

.tls-quote-preview-toolbar span {
	color: var(--q-muted);
	font-size: 9.5px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.tls-quote-preview-toolbar strong {
	margin-top: 2px;
	color: var(--q-dark);
	font-size: 12px;
	font-weight: 600;
}

.tls-quote-preview-toolbar button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 39px;
	height: 39px;
	padding: 0 !important;
	border: 1px solid #d0d5dd !important;
	border-radius: 9px !important;
	background: #fff !important;
	color: #344054 !important;
	cursor: pointer;
}

.tls-quote-preview-toolbar button svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tls-quote-paper {
	--paper-primary: #2563eb;
	position: relative;
	min-height: 840px;
	overflow: hidden;
	border: 1px solid #dfe3ea;
	border-radius: 4px;
	background: #fff;
	color: #182230;
	box-shadow: 0 22px 55px rgba(16,24,40,.13);
	font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
}

.tls-quote-paper-accent { height: 8px; background: var(--paper-primary); }

.tls-quote-paper-header,
.tls-quote-paper-meta,
.tls-quote-paper-parties,
.tls-quote-paper-scope,
.tls-quote-paper-items,
.tls-quote-paper-summary,
.tls-quote-paper-footer-content,
.tls-quote-acceptance {
	margin-right: 34px;
	margin-left: 34px;
}

.tls-quote-paper-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	padding: 31px 0 24px;
	border-bottom: 1px solid #e4e7ec;
}

.tls-quote-paper-brand { display: flex; align-items: center; gap: 13px; min-width: 0; }

.tls-quote-paper-logo-wrap {
	flex: 0 0 auto;
	width: 54px;
	height: 54px;
	padding: 5px;
	border: 1px solid #e4e7ec;
	border-radius: 10px;
	background: #fff;
}

.tls-quote-paper-logo-wrap img { width: 100%; height: 100%; object-fit: contain; }

.tls-quote-paper-brand h2 {
	margin: 0;
	color: #101828;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	word-break: break-word;
}

.tls-quote-paper-brand p {
	margin: 4px 0 0;
	color: #667085;
	font-size: 9.5px;
	line-height: 1.5;
}

.tls-quote-paper-title { flex: 0 0 auto; text-align: right; }

.tls-quote-paper-title h3 {
	margin: 0;
	color: var(--paper-primary);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -.025em;
	text-transform: uppercase;
}

.tls-quote-paper-title p { margin: 5px 0 0; color: #667085; font-size: 10px; }
.tls-quote-paper-title strong { color: #344054; }

.tls-quote-paper-meta {
	display: grid;
	grid-template-columns: repeat(3,minmax(0,1fr));
	gap: 10px;
	padding: 17px 0;
}

.tls-quote-paper-meta > div { padding: 10px; border-radius: 7px; background: #f8fafc; }

.tls-quote-paper-meta span,
.tls-quote-paper-parties > div > span,
.tls-quote-paper-scope > span,
.tls-quote-paper-notes span,
.tls-quote-paper-footer-content span,
.tls-quote-acceptance span {
	display: block;
	margin-bottom: 4px;
	color: #98a2b3;
	font-size: 7.5px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.tls-quote-paper-meta strong { color: #344054; font-size: 9.5px; font-weight: 600; }

.tls-quote-paper-parties {
	display: grid;
	grid-template-columns: repeat(2,minmax(0,1fr));
	gap: 20px;
	padding: 2px 0 18px;
}

.tls-quote-paper-parties strong { display: block; color: #101828; font-size: 11px; font-weight: 700; }

.tls-quote-paper-parties p,
.tls-quote-paper-scope p,
.tls-quote-paper-notes p,
.tls-quote-paper-footer-content p {
	margin: 5px 0 0;
	color: #667085;
	font-size: 8.5px;
	line-height: 1.55;
	white-space: pre-line;
	word-break: break-word;
}

.tls-quote-paper-scope {
	margin-bottom: 19px;
	padding: 12px;
	border-left: 3px solid var(--paper-primary);
	background: #f8fafc;
}

.tls-quote-paper-items {
	overflow: hidden;
	border: 1px solid #e4e7ec;
	border-radius: 8px;
}

.tls-quote-paper-items-head,
.tls-quote-paper-item-row {
	display: grid;
	grid-template-columns: minmax(0,1fr) 46px 78px 88px;
	gap: 10px;
	align-items: center;
}

.tls-quote-paper-items-head {
	padding: 9px 11px;
	background: var(--paper-primary);
	color: #fff;
	font-size: 7.5px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.tls-quote-paper-items-head span:not(:first-child),
.tls-quote-paper-item-row span:not(:first-child) { text-align: right; }

.tls-quote-paper-item-row {
	padding: 10px 11px;
	border-bottom: 1px solid #eaecf0;
	color: #475467;
	font-size: 8.5px;
}

.tls-quote-paper-item-row:last-child { border-bottom: 0; }

.tls-quote-paper-item-row strong {
	display: block;
	color: #344054;
	font-size: 9px;
	font-weight: 600;
}

.tls-quote-paper-item-row small {
	display: block;
	margin-top: 2px;
	color: #98a2b3;
	font-size: 7px;
	line-height: 1.4;
}

.tls-quote-paper-summary {
	display: grid;
	grid-template-columns: minmax(0,1fr) 230px;
	gap: 24px;
	align-items: start;
	padding: 22px 0;
}

.tls-quote-paper-totals { display: grid; gap: 8px; }

.tls-quote-paper-totals > div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	color: #667085;
	font-size: 8.5px;
}

.tls-quote-paper-totals strong { color: #344054; font-size: 9px; font-weight: 600; }

.tls-quote-paper-grand-total {
	margin-top: 3px;
	padding: 10px 11px;
	border-radius: 7px;
	background: var(--paper-primary);
	color: #fff !important;
}

.tls-quote-paper-grand-total span,
.tls-quote-paper-grand-total strong {
	color: #fff !important;
	font-size: 10px !important;
	font-weight: 700 !important;
}

.tls-quote-paper-footer-content {
	display: grid;
	grid-template-columns: repeat(2,minmax(0,1fr));
	gap: 20px;
	padding: 0 0 24px;
}

.tls-quote-acceptance {
	display: grid;
	grid-template-columns: repeat(3,minmax(0,1fr));
	gap: 18px;
	padding: 16px 0 24px;
	border-top: 1px solid #e4e7ec;
}

.tls-quote-acceptance strong {
	display: block;
	min-height: 26px;
	padding-top: 8px;
	color: #344054;
	font-size: 8.5px;
	font-weight: 600;
}

.tls-quote-paper-footer {
	padding: 12px 34px;
	background: #f8fafc;
	color: #98a2b3;
	font-size: 7.5px;
	text-align: center;
}

.tls-quote-paper-footer p { margin: 0; }

.template-classic { --paper-primary: #1e293b; font-family: Georgia,"Times New Roman",serif; }
.template-classic .tls-quote-paper-accent { height: 3px; }
.template-classic .tls-quote-paper-title h3 { letter-spacing: .02em; }

.template-minimal { --paper-primary: #111827; }
.template-minimal .tls-quote-paper-accent { display: none; }
.template-minimal .tls-quote-paper-header { padding-top: 39px; }
.template-minimal .tls-quote-paper-meta > div,
.template-minimal .tls-quote-paper-grand-total { border-radius: 0; }
.template-minimal .tls-quote-paper-items { border-radius: 0; }

.tls-quote-toast {
	position: fixed;
	z-index: 99999;
	right: 22px;
	bottom: 22px;
	display: none;
	max-width: 360px;
	padding: 12px 15px;
	border: 1px solid #dbeafe;
	border-radius: 10px;
	background: #fff;
	color: #344054;
	font-size: 12px;
	font-weight: 600;
	box-shadow: 0 18px 45px rgba(16,24,40,.16);
}

.tls-quote-toast.is-visible { display: block; }

@media (max-width:1180px) {
	.tls-quote-workspace { grid-template-columns: 1fr; }
	.tls-quote-preview-panel { position: static; }
	.tls-quote-paper { max-width: 760px; margin: 0 auto; }
}

@media (max-width:780px) {
	.tls-quote-app { padding: 56px 15px 72px; }
	.tls-quote-header { display: block; }
	.tls-quote-header h1 { font-size: 37px; }
	.tls-quote-header p { font-size: 14px; }
	.tls-quote-privacy { margin-top: 17px; }
	.tls-quote-panel { padding: 17px; }
	.tls-quote-panel-heading { align-items: flex-start; }

	.tls-quote-form-grid-3,
	.tls-quote-form-grid-2,
	.tls-quote-tax-options,
	.tls-quote-adjustments { grid-template-columns: 1fr; }

	.tls-quote-item-row { grid-template-columns: minmax(0,1fr) 76px; }
	.tls-quote-item-row .tls-quote-item-description { grid-column: 1 / -1; }
	.tls-quote-item-row .tls-quote-item-rate { grid-column: 1; }
	.tls-quote-item-row .tls-quote-item-total { grid-column: 2; }
	.tls-quote-item-row .tls-quote-remove-item { grid-column: 2; justify-self: end; }

	.tls-quote-editor-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
	.tls-quote-editor-actions .tls-quote-convert-button,
	.tls-quote-editor-actions .tls-quote-primary-button { grid-column: 1 / -1; }

	.tls-quote-paper { min-height: 0; }

	.tls-quote-paper-header,
	.tls-quote-paper-meta,
	.tls-quote-paper-parties,
	.tls-quote-paper-scope,
	.tls-quote-paper-items,
	.tls-quote-paper-summary,
	.tls-quote-paper-footer-content,
	.tls-quote-acceptance {
		margin-right: 18px;
		margin-left: 18px;
	}

	.tls-quote-paper-header { display: block; }
	.tls-quote-paper-title { margin-top: 20px; text-align: left; }
	.tls-quote-paper-meta,
	.tls-quote-paper-parties,
	.tls-quote-paper-summary,
	.tls-quote-paper-footer-content,
	.tls-quote-acceptance { grid-template-columns: 1fr; }

	.tls-quote-paper-items { overflow-x: auto; }
	.tls-quote-paper-items-head,
	.tls-quote-paper-item-row { min-width: 480px; }

	.tls-quote-paper-summary { gap: 16px; }
	.tls-quote-paper-footer { padding-right: 18px; padding-left: 18px; }

	.tls-quote-toast {
		right: 14px;
		bottom: 14px;
		left: 14px;
		max-width: none;
	}
}

@media print {
	body * { visibility: hidden !important; }
	.tls-quote-paper,
	.tls-quote-paper * { visibility: visible !important; }

	.tls-quote-paper {
		position: absolute !important;
		top: 0 !important;
		left: 0 !important;
		width: 210mm !important;
		min-height: 297mm !important;
		margin: 0 !important;
		border: 0 !important;
		border-radius: 0 !important;
		box-shadow: none !important;
	}

	@page { size: A4; margin: 0; }
}
