.qrlg {
	max-width: 1200px;
	margin: 0 auto;
	color: #1f2933;
}

.qrlg * {
	box-sizing: border-box;
}

.qrlg-form,
.qrlg-results,
.qrlg-print-content {
	background: #fff;
	border: 1px solid #d7dde4;
	border-radius: 10px;
	padding: 1rem 1.1rem;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.qrlg-form {
	display: grid;
	gap: 0.5rem;
}

.qrlg-results,
.qrlg-notice,
.qrlg-print-content {
	margin-top: 0.9rem;
}

.qrlg-form__intro h2,
.qrlg-results__header h3,
.qrlg-print-content h1 {
	margin: 0 0 0.25rem;
	line-height: 1.2;
}

.qrlg-form__intro h2,
.qrlg-form__intro p {
	color: #000;
}

.qrlg-form__intro,
.qrlg-field,
.qrlg-options,
.qrlg-actions,
.qrlg-results__header {
	margin: 0;
}

.qrlg-form__intro p,
.qrlg-help,
.qrlg-notice ul {
	margin: 0;
}

.qrlg-form__intro p {
	line-height: 1.25;
}

.qrlg-form__intro .qrlg-usage-count {
	margin-top: 0.25rem;
	color: #52606d;
	font-size: 0.9rem;
}

.qrlg-field + .qrlg-field,
.qrlg-field + .qrlg-options,
.qrlg-options + .qrlg-actions {
	margin-top: 0.35rem;
}

.qrlg-label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.25rem;
}

.qrlg-textarea {
	display: block;
	width: 100%;
	margin: 0 auto;
	min-height: 240px;
	padding: 0.75rem 0.9rem;
	font: inherit;
	border: 1px solid #b8c4d2;
	border-radius: 8px;
	background: #f6f7f9;
	resize: vertical;
}

.qrlg-textarea--mapping {
	min-height: 140px;
}

.qrlg-status {
	padding: 0.7rem 0.9rem;
	border: 1px solid #d7dde4;
	border-radius: 8px;
	background: #f6f7f9;
}

.qrlg-status p + p {
	margin-top: 0.25rem;
}

.qrlg-inline-link {
	color: #0f62fe;
	font-weight: 600;
	text-decoration: none;
}

.qrlg-inline-link:hover,
.qrlg-inline-link:focus {
	text-decoration: underline;
}

.qrlg-help {
	display: flex;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	font-size: 0.9rem;
	color: #52606d;
	margin-top: 0.3rem;
	flex-wrap: wrap;
}

.qrlg-options {
	display: grid;
	gap: 0.65rem;
}

.qrlg-options--primary {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: start;
}

.qrlg-options--code {
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	align-items: end;
}

.qrlg-select,
.qrlg-number,
.qrlg-text-input {
	width: 100%;
	min-height: 38px;
	padding: 0.4rem 0.55rem;
	border: 1px solid #b8c4d2;
	border-radius: 7px;
	background: #fff;
	color: #1f2933;
	font: inherit;
}

.qrlg-field-help {
	margin: 0.2rem 0 0;
	color: #52606d;
	font-size: 0.82rem;
	line-height: 1.25;
}

.qrlg-mapping-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	flex-wrap: wrap;
	margin: 0.2rem 0;
}

.qrlg-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	line-height: 1.3;
}

.qrlg-checkbox input {
	margin-top: 0.25rem;
}

.qrlg-range-value {
	margin-top: 0.15rem;
	font-size: 0.92rem;
	color: #52606d;
}

.qrlg-actions,
.qrlg-results__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 0.75rem;
	flex-wrap: wrap;
}

.qrlg-actions__group {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	flex-wrap: wrap;
}

.qrlg-results__header {
	margin-bottom: 0.8rem;
}

.qrlg .qrlg-results__header h3 {
	color: #111827 !important;
}

.qrlg-export-form {
	display: inline-flex;
}

.qrlg-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 0.85rem;
	border: 1px solid #bcccdc;
	border-radius: 8px;
	background: #f8fafc;
	color: #102a43;
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.qrlg-button--primary {
	background: #0f62fe;
	border-color: #0f62fe;
	color: #fff;
}

.qrlg-notice {
	border-radius: 8px;
	padding: 0.75rem 1rem;
}

.qrlg-notice--error {
	background: #fff5f5;
	border: 1px solid #f8c4c4;
	color: #912018;
}

.qrlg-notice ul {
	padding-left: 1rem;
}

.qrlg-table-wrap {
	overflow-x: auto;
}

.qrlg-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.qrlg-table th,
.qrlg-table td {
	border: 1px solid #d7dde4;
	padding: 0.45rem 0.6rem;
	vertical-align: top;
	font-size: 0.95rem;
	overflow-wrap: anywhere;
}

.qrlg-table th {
	background: #eef2f6;
	text-align: left;
	font-weight: 700;
}

.qrlg-cell--compact {
	white-space: nowrap;
}

.qrlg-cell--code {
	width: 1%;
	white-space: nowrap;
	text-align: center;
	vertical-align: middle;
	padding: 0.6rem 0.75rem;
}

.qrlg-cell--code img {
	display: inline-block;
	max-width: 100%;
}

.qrlg-col--article {
	width: 7.5rem;
}

.qrlg-cell--article {
	white-space: nowrap;
	overflow-wrap: normal !important;
}

.qrlg-cell--name,
.qrlg-cell--optional {
	white-space: normal;
	word-break: break-word;
}

.qrlg-print-page {
	background: #f5f7fa;
	margin: 0;
	padding: 0.75rem;
}

.qrlg-print-toolbar {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 0.75rem;
}

@media (max-width: 782px) {
	.qrlg-form,
	.qrlg-results,
	.qrlg-print-content {
		padding: 0.85rem;
	}

	.qrlg-options--primary,
	.qrlg-options--code {
		grid-template-columns: 1fr;
	}

	.qrlg-table th,
	.qrlg-table td {
		font-size: 0.88rem;
	}
}

@media print {
	body,
	.qrlg-print-page {
		background: #fff;
		padding: 0;
		margin: 0;
	}

	.qrlg-print-toolbar {
		display: none;
	}

	.qrlg-print-content,
	.qrlg-results,
	.qrlg-form {
		box-shadow: none;
		border: 0;
		border-radius: 0;
		padding: 0;
		margin: 0;
	}

	.qrlg-table th {
		background: #eef2f6 !important;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	.qrlg-table tr {
		break-inside: avoid;
		page-break-inside: avoid;
	}

	.qrlg-table--print {
		table-layout: auto;
	}

	.qrlg-table--print .qrlg-cell--code {
		padding: 2mm 3mm;
	}

	.qrlg-status {
		border: 1px solid #d7dde4;
	}
}
