.rbt-root {
	max-width: none;
	width: 100%;
	margin: 0 auto;
	font-family: inherit;
	line-height: 1.5;
}

.rbt-loading { padding: 1em 0; color: #666; }

.rbt-top-bar {
	display: flex;
	justify-content: flex-end;
	gap: 0.5em;
	margin-bottom: 1em;
}

.rbt-btn {
	display: inline-block;
	padding: 0.5em 1em;
	background: #0056ff;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.95em;
	text-decoration: none;
}
.rbt-btn.rbt-btn-secondary { background: #666; }
.rbt-btn:hover { opacity: 0.9; }
.rbt-btn:disabled { background: #aaa; cursor: not-allowed; }

.rbt-view-toggle { display: flex; gap: 0.5em; margin-bottom: 1em; }
.rbt-view-toggle button.active { background: #003fbf; }

.rbt-backup-note {
	text-align: center;
	color: #000;
	font-size: 0.85em;
	font-weight: bold;
	margin: 0 0 0.5em 0;
}

.rbt-legend {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1.5em;
	flex-wrap: wrap;
	margin: 0 0 1em 0;
	font-size: 0.85em;
	font-weight: bold;
}
.rbt-legend-item { display: inline-flex; align-items: center; gap: 0.35em; white-space: nowrap; }
.rbt-legend-swatch { display: inline-block; width: 16px; height: 4px; border-radius: 2px; }
.rbt-legend-ok { color: #2e7d32; }
.rbt-legend-ok .rbt-legend-swatch { background: #2e7d32; }
.rbt-legend-soon { color: #b8860b; }
.rbt-legend-soon .rbt-legend-swatch { background: #b8860b; }
.rbt-legend-due { color: #c53030; }
.rbt-legend-due .rbt-legend-swatch { background: #c53030; }

.rbt-brand-block {
	border: 1px solid #ddd;
	border-radius: 6px;
	margin-bottom: 1em;
	padding: 1em;
}

.rbt-brand-header {
	display: flex;
	align-items: center;
	gap: 0.75em;
	cursor: pointer;
}

.rbt-green-icon {
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	object-fit: contain;
}

.rbt-sn-list { list-style: none; margin: 0.75em 0 0 0; padding: 0; }
.rbt-sn-list li {
	padding: 0.5em 0.75em;
	border-bottom: 1px solid #eee;
	cursor: pointer;
}
.rbt-sn-list li:hover { background: #f5f5f5; }

.rbt-detail-panel, .rbt-list-item {
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 1em;
	margin-top: 1em;
}

.rbt-gb-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 2em;
}

.rbt-group {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.rbt-group-label {
	font-weight: bold;
	font-size: 0.85em;
	white-space: nowrap;
	margin-bottom: 0.5em;
}

.rbt-group-icons {
	display: flex;
	gap: 1em;
}

.rbt-slot-sublabel {
	font-weight: bold;
	font-size: 0.75em;
	color: #555;
	white-space: nowrap;
	margin-bottom: 0.2em;
}

.rbt-unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.rbt-unit-text {
	margin-top: 0.35em;
	font-size: 0.85em;
	font-weight: bold;
	white-space: nowrap;
	color: #000;
}
.rbt-unit-text.expired { color: #c53030; font-weight: bold; }
.rbt-unit-text.expiring-soon { color: #b8860b; font-weight: bold; }
.rbt-unit-text.status { font-style: italic; }
.rbt-unit-text.status.recommended { color: #2e7d32; font-style: normal; }

.rbt-icon-link {
	display: inline-block;
	line-height: 0;
	cursor: zoom-in;
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	font: inherit;
}
.rbt-icon-link:hover .rbt-box-icon,
.rbt-icon-link:hover .rbt-green-icon {
	outline: 2px solid #0056ff;
	outline-offset: 2px;
}

.rbt-box-icon {
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	object-fit: contain;
}

/* ---- Lightbox (enlarged icon view — mirrors the thumbnail's text above/below) ---- */

.rbt-lightbox {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}
.rbt-lightbox-backdrop {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0, 0, 0, 0.65);
}
.rbt-lightbox-content {
	position: relative;
	background: #fff;
	border-radius: 8px;
	padding: 2em 2.5em;
	max-width: 90vw;
	max-height: 90vh;
	overflow: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}
.rbt-lightbox-close {
	position: absolute;
	top: 0.5em;
	right: 0.75em;
	background: none;
	border: none;
	font-size: 1.75em;
	line-height: 1;
	cursor: pointer;
	color: #666;
}
.rbt-lightbox-close:hover { color: #000; }
.rbt-lightbox-sublabel {
	font-weight: bold;
	font-size: 1em;
	color: #555;
	margin-bottom: 0.5em;
}
.rbt-lightbox-img {
	max-width: min(70vw, 500px);
	max-height: 60vh;
	object-fit: contain;
}
.rbt-lightbox-lines { margin-top: 0.75em; }
.rbt-lightbox-line {
	font-size: 1.1em;
	font-weight: bold;
	color: #000;
	margin-top: 0.3em;
}
.rbt-lightbox-line.expired { color: #c53030; }
.rbt-lightbox-line.expiring-soon { color: #b8860b; }
.rbt-lightbox-line.status { font-style: italic; }
.rbt-lightbox-line.recommended { color: #2e7d32; font-style: normal; }


.rbt-wizard {
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 1.25em;
}

.rbt-wizard label { display: block; margin: 0.75em 0 0.25em 0; font-weight: 600; }
.rbt-wizard input[type="text"],
.rbt-wizard input[type="email"],
.rbt-wizard input[type="date"],
.rbt-wizard select {
	width: 100%;
	max-width: 400px;
	padding: 0.4em;
	box-sizing: border-box;
}

.rbt-wizard-actions { margin-top: 1.5em; display: flex; gap: 0.5em; }

.rbt-checkbox-row { display: flex; align-items: center; gap: 0.5em; margin: 0.4em 0; }
.rbt-checkbox-row label { display: inline; font-weight: normal; margin: 0; }

.rbt-gb-card {
	border: 1px dashed #bbb;
	border-radius: 6px;
	padding: 1em;
	margin-top: 1em;
}

.rbt-error { color: #c53030; margin-top: 0.5em; }
.rbt-note { color: #666; font-size: 0.9em; }

.rbt-unit-text.flag-red { color: #c53030; font-weight: bold; }
.rbt-flag { vertical-align: -2px; margin-right: 2px; }
.rbt-lightbox-line.flag-red { color: #c53030; }
