/* Transoplast Brochure Generator - admin styles */

.tpb-wrap .tpb-intro {
	max-width: 760px;
	font-size: 14px;
	color: #50575e;
}

.tpb-grid {
	display: flex;
	gap: 24px;
	margin-top: 20px;
	flex-wrap: wrap;
}

.tpb-col {
	flex: 1 1 420px;
	min-width: 360px;
}

.tpb-card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 22px;
	margin-bottom: 20px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.tpb-card h2 {
	margin-top: 0;
	font-size: 16px;
	color: #1a3a5c;
}

.tpb-label {
	display: block;
	font-weight: 600;
	margin: 14px 0 6px;
	color: #1d2327;
}

.tpb-label:first-child {
	margin-top: 0;
}

.tpb-text,
.tpb-textarea {
	width: 100%;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	padding: 9px 11px;
	font-size: 13px;
}

.tpb-textarea {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	line-height: 1.6;
	resize: vertical;
}

.tpb-actions {
	margin-top: 18px;
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.tpb-actions .button-hero {
	font-size: 14px !important;
	height: auto !important;
	padding: 10px 20px !important;
}

#tpb-fetch.button-primary,
#tpb-download.button-primary {
	background: #c9142d;
	border-color: #a3101f;
}

#tpb-fetch.button-primary:hover,
#tpb-download.button-primary:hover {
	background: #a3101f;
}

.tpb-status {
	margin-top: 16px;
	padding: 11px 14px;
	border-radius: 4px;
	font-size: 13px;
	border-left: 4px solid #1a3a5c;
	background: #f0f4f8;
}

.tpb-status.is-loading {
	border-left-color: #dba617;
	background: #fcf9e8;
}

.tpb-status.is-error {
	border-left-color: #d63638;
	background: #fcf0f1;
}

.tpb-status.is-success {
	border-left-color: #00a32a;
	background: #edfaef;
}

.tpb-errors {
	border-left: 4px solid #d63638;
}

.tpb-errors ul {
	margin: 8px 0 0 18px;
	font-size: 12px;
	color: #50575e;
}

.tpb-preview {
	max-height: 620px;
	overflow-y: auto;
}

.tpb-preview-empty {
	color: #8c8f94;
	font-style: italic;
}

.tpb-pv-item {
	display: flex;
	gap: 14px;
	padding: 14px;
	border: 1px solid #e3e8ee;
	border-radius: 6px;
	margin-bottom: 14px;
}

.tpb-pv-item img {
	width: 84px;
	height: 84px;
	object-fit: contain;
	border: 1px solid #e3e8ee;
	border-radius: 4px;
	background: #fff;
	flex-shrink: 0;
}

.tpb-pv-body {
	flex: 1;
	min-width: 0;
}

.tpb-pv-title {
	font-weight: 600;
	color: #1a3a5c;
	margin-bottom: 4px;
}

.tpb-pv-sku {
	display: inline-block;
	background: #c9142d;
	color: #fff;
	font-size: 10px;
	padding: 2px 7px;
	border-radius: 3px;
	margin-bottom: 6px;
}

.tpb-pv-price {
	color: #c9142d;
	font-weight: 700;
	margin-bottom: 4px;
}

.tpb-pv-specs {
	font-size: 11px;
	color: #50575e;
	margin-top: 6px;
}

.tpb-pv-specs span {
	display: inline-block;
	background: #f0f4f8;
	border-radius: 3px;
	padding: 2px 7px;
	margin: 2px 3px 2px 0;
}

.tpb-result {
	border-left: 4px solid #00a32a;
	background: #f6fbf7;
}

.tpb-result-action {
	margin-top: 6px;
}

/* Instellingen kleurkiezer */
.tpb-color {
	width: 110px !important;
}

.tpb-color-pick {
	vertical-align: middle;
	margin-left: 8px;
	height: 32px;
	width: 44px;
	padding: 2px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	cursor: pointer;
}

/* Taalkeuze in brochure-maker */
.tpb-lang-section {
	padding-bottom: 18px;
	margin-bottom: 20px;
	border-bottom: 1px solid #e3e8ee;
}
.tpb-lang-section select.tpb-text {
	width: 100%;
}
.tpb-lang-section .description {
	margin-top: 6px;
}

/* Verkoper-sectie in brochure-maker */
.tpb-seller-section {
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid #e3e8ee;
}
.tpb-seller-section select.tpb-text {
	width: 100%;
	margin-bottom: 8px;
}
.tpb-seller-fields-inline {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-top: 10px;
}
.tpb-seller-fields-inline .tpb-text {
	margin: 0;
}

/* Foto-knop voor de contactpersoon in de brochure-maker */
.tpb-seller-photo-row {
	margin-top: 10px;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.tpb-seller-photo-row .description {
	font-size: 12px;
	color: #50575e;
	font-style: italic;
}

/* Foto kiezen / verwijderen knoppen (brochure + medewerker) */
#tpb-seller-pick-photo.button,
#tpb-emp-pick-photo.button {
	border-radius: 999px;
	border-color: #12263a;
	color: #12263a;
	font-weight: 600;
	box-shadow: none;
}
#tpb-seller-pick-photo.button:hover,
#tpb-emp-pick-photo.button:hover {
	background: #12263a;
	border-color: #12263a;
	color: #fff;
}

.button-link-delete#tpb-seller-clear-photo,
.button-link-delete#tpb-emp-clear-photo {
	border: 1px solid #eaa8ad;
	background: #fff;
	color: #c9142d;
	border-radius: 999px;
	padding: 4px 14px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.6;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.button-link-delete#tpb-seller-clear-photo:hover,
.button-link-delete#tpb-emp-clear-photo:hover {
	background: #c9142d;
	border-color: #c9142d;
	color: #fff;
}
.button-link-delete#tpb-seller-clear-photo:focus,
.button-link-delete#tpb-emp-clear-photo:focus {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(201, 20, 45, 0.4);
	outline: none;
}

/* Credit-regel onderaan admin-pagina's */
.tpb-credit {
	margin-top: 30px;
	padding-top: 14px;
	border-top: 1px solid #e3e8ee;
	color: #8c8f94;
	font-size: 12px;
	text-align: right;
	font-style: italic;
}

.tpb-hidden {
	display: none;
}

.tpb-desc-flush {
	margin-top: 0;
}

.tpb-settings-form {
	max-width: 680px;
}

.tpb-employee-select {
	margin-bottom: 12px;
}

.tpb-emp-photo-preview img {
	max-width: 90px;
	height: auto;
	display: block;
	margin-bottom: 8px;
	border: 1px solid #dcdcde;
	border-radius: 4px;
}

.tpb-search {}

.tpb-search-row {
	display: flex;
	gap: 8px;
	margin-bottom: 12px;
}

.tpb-search-row .tpb-text {
	flex: 1 1 auto;
}

.tpb-search-results {
	display: none;
	max-height: 320px;
	overflow-y: auto;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	margin-bottom: 14px;
}

.tpb-search-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	border-bottom: 1px solid #f0f0f1;
	cursor: pointer;
}

.tpb-search-item:last-child {
	border-bottom: 0;
}

.tpb-search-item:hover {
	background: #f6f7f7;
}

.tpb-search-item img {
	width: 40px;
	height: 40px;
	object-fit: contain;
	border: 1px solid #e3e8ee;
	border-radius: 4px;
	background: #fff;
}

.tpb-search-info {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.tpb-search-name {
	font-weight: 600;
	color: #1d2327;
}

.tpb-search-sku {
	font-size: 12px;
	color: #646970;
}

.tpb-search-empty {
	padding: 12px;
	color: #646970;
	margin: 0;
}

.tpb-selected {
	display: none;
	margin-bottom: 14px;
}

.tpb-selected-title {
	font-weight: 600;
	margin-bottom: 6px;
	color: #1d2327;
}

.tpb-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #eef3f8;
	border: 1px solid #d4e0ec;
	border-radius: 14px;
	padding: 3px 6px 3px 12px;
	margin: 0 6px 6px 0;
	font-size: 13px;
	color: #1a3a5c;
}

.tpb-chip-remove {
	border: 0;
	background: #1a3a5c;
	color: #fff;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	line-height: 16px;
	text-align: center;
	cursor: pointer;
	padding: 0;
	font-size: 14px;
}

.tpb-chip-remove:hover {
	background: #c9142d;
}

/* ---- Corporate huisstijl (transoplast.com) ---- */
.tpb-wrap h1 {
	color: #12263a;
	font-weight: 700;
}

.tpb-wrap .tpb-card {
	border-radius: 10px;
	border-color: #e3e8ee;
}

.tpb-card h2 {
	color: #12263a;
	font-weight: 700;
	padding-bottom: 8px;
	margin-bottom: 16px;
	border-bottom: 3px solid #c9142d;
	display: inline-block;
}

.tpb-label {
	color: #12263a;
}

.tpb-text:focus,
.tpb-textarea:focus {
	border-color: #12263a;
	box-shadow: 0 0 0 1px #12263a;
	outline: none;
}

.tpb-actions .button-hero {
	border-radius: 6px !important;
	font-weight: 600 !important;
	box-shadow: none !important;
}

#tpb-generate.button-hero:not(:disabled) {
	background: #12263a !important;
	border-color: #0d1c2c !important;
	color: #fff !important;
}
#tpb-generate.button-hero:not(:disabled):hover {
	background: #0d1c2c !important;
}

.tpb-pv-title,
.tpb-pv-item .tpb-pv-title {
	color: #12263a;
}

.tpb-chip {
	background: #eef2f7;
	border-color: #d4dde8;
	color: #12263a;
}

.tpb-chip-remove {
	background: #12263a;
}

.wrap.tpb-wrap .page-title-action {
	border-radius: 999px;
	background: #c9142d;
	border-color: #a3101f;
	color: #fff;
	font-weight: 600;
	padding: 4px 16px;
}
.wrap.tpb-wrap .page-title-action:hover {
	background: #a3101f;
	border-color: #a3101f;
	color: #fff;
}
