.cklu-standalone-page {
	background: transparent;
	padding: 28px 0 46px;
}

.cklu-public {
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
	margin: 0 auto;
	max-width: 1440px;
	padding: 0 18px;
	width: 100%;
	color: #1d2327;
}

.cklu-public *,
.cklu-public *::before,
.cklu-public *::after {
	box-sizing: border-box;
}

.cklu-public a {
	color: #2271b1;
}

.cklu-public-header {
	align-items: flex-start;
	display: flex;
	justify-content: flex-end;
	margin-bottom: 12px;
}

.cklu-public-header--compact {
	margin-bottom: 10px;
}

.cklu-public-user {
	align-items: flex-end;
	display: flex;
	flex-direction: column;
	font-size: 13px;
	gap: 4px;
	white-space: nowrap;
}

.cklu-public-card {
	background: #fff;
	border: 1px solid #d7dce1;
	border-radius: 14px;
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.05);
	margin: 16px 0;
	padding: 18px 20px;
}

.cklu-public-card h2,
.cklu-public-card h3,
.cklu-public-card h4 {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
	font-style: normal !important;
	font-weight: 700 !important;
	letter-spacing: 0 !important;
	margin-top: 0;
	text-transform: none !important;
}

.cklu-public-card h3 {
	font-size: 28px;
	margin-bottom: 8px;
}

.cklu-public-card h4 {
	font-size: 21px;
	margin-bottom: 10px;
}

.cklu-public-filters {
	align-items: end;
	display: grid;
	gap: 14px;
	grid-template-columns: minmax(140px, 0.8fr) repeat(2, minmax(145px, 0.9fr)) minmax(150px, 1fr) minmax(220px, 1.3fr) auto;
}

.cklu-public-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 5px;
}

.cklu-public-field input,
.cklu-public-field select {
	background: #fff;
	border: 1px solid #8c8f94;
	border-radius: 6px;
	font: inherit;
	height: 40px;
	max-width: none;
	padding: 6px 9px;
	width: 100%;
}

.cklu-public-button {
	background: #2271b1;
	border: 1px solid #2271b1;
	border-radius: 6px;
	color: #fff !important;
	cursor: pointer;
	display: inline-block;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	padding: 10px 16px;
	text-decoration: none !important;
}

.cklu-public-button:hover,
.cklu-public-button:focus {
	background: #135e96;
	border-color: #135e96;
}

.cklu-public-summary {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(4, minmax(220px, 1fr));
	margin: 16px 0;
}

.cklu-public-stat {
	background: #f7f8fa;
	border: 1px solid #e7eaee;
	border-radius: 12px;
	min-height: 112px;
	padding: 16px;
}

.cklu-public-stat span {
	display: block;
	font-size: 12px;
	margin-bottom: 8px;
	opacity: 0.75;
}

.cklu-public-stat strong {
	display: block;
	font-size: 20px;
	line-height: 1.35;
}

.cklu-stat-sub {
	font-size: 14px;
	line-height: 1.45;
	margin-top: 4px;
}

.cklu-public-small-value {
	font-size: 13px !important;
	font-weight: 600;
	word-break: break-all;
}

.cklu-public-table {
	border-collapse: collapse;
	font-size: 13px;
	width: 100%;
}

.cklu-table-fixed {
	table-layout: fixed;
}

.cklu-public-table th,
.cklu-public-table td {
	border: 1px solid #d8dde3;
	padding: 10px 12px;
	text-align: left;
	vertical-align: top;
}

.cklu-public-table th {
	background: #f2f4f7;
	font-size: 13px;
	font-weight: 700;
}

.cklu-public-table th small {
	font-size: 11px;
	font-weight: 500;
	opacity: 0.8;
}

.cklu-public-table tbody tr:nth-child(even) {
	background: #fbfcfd;
}

.cklu-public-section-title {
	align-items: center;
	display: flex;
	gap: 18px;
	justify-content: space-between;
}

.cklu-public-section-title h3 {
	margin-bottom: 6px;
}

.cklu-public-pagination {
	align-items: center;
	display: flex;
	gap: 18px;
	justify-content: center;
	margin-top: 18px;
}

.cklu-public-pagination a {
	border: 1px solid #2271b1;
	border-radius: 4px;
	padding: 7px 12px;
	text-decoration: none;
}

.cklu-public-login {
	max-width: 700px;
}

/* LINAC usage public table tweaks */
.cklu-public-replacements-table th:first-child,
.cklu-public-replacements-table td:first-child {
	width: 180px;
	white-space: nowrap;
}

.cklu-public-replacements-table th:nth-child(2),
.cklu-public-replacements-table td:nth-child(2) {
	white-space: normal;
}

/* Magnetron analysis */
.cklu-mag-page {
	margin-top: 10px;
}

.cklu-help-card summary,
.cklu-collapsible summary,
.cklu-mag-system-card summary {
	cursor: pointer;
	font-weight: 700;
	list-style: none;
}

.cklu-help-card summary::-webkit-details-marker,
.cklu-collapsible summary::-webkit-details-marker,
.cklu-mag-system-card summary::-webkit-details-marker {
	display: none;
}

.cklu-help-card summary::before,
.cklu-collapsible summary::before,
.cklu-mag-system-card summary::before {
	color: #2271b1;
	content: '▸';
	display: inline-block;
	font-size: 16px;
	margin-right: 8px;
	transform: translateY(-1px);
}

.cklu-help-card[open] summary::before,
.cklu-collapsible[open] summary::before,
.cklu-mag-system-card[open] summary::before {
	content: '▾';
}

.cklu-help-card__content {
	margin-top: 14px;
}

.cklu-help-card__content ul {
	margin: 0 0 10px 20px;
}

.cklu-help-card__content li {
	margin: 0 0 6px;
	line-height: 1.5;
}

.cklu-mag-summary-4 {
	grid-template-columns: repeat(4, minmax(240px, 1fr));
}

.cklu-summary-meta {
	color: #667085;
	font-size: 13px;
	font-weight: 500;
	margin-left: 10px;
}

.cklu-toggle-row {
	align-items: center;
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin: 14px 0 12px;
	flex-wrap: wrap;
}

.cklu-toggle-row label {
	font-size: 14px;
	font-weight: 600;
}

.cklu-toggle-row input[type="checkbox"] {
	margin-right: 8px;
}

.cklu-toggle-buttons {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.cklu-toggle-buttons button {
	background: #fff;
	border: 1px solid #c9d0d8;
	border-radius: 999px;
	color: #1d2327;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	padding: 8px 14px;
}

.cklu-toggle-buttons button.is-active {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
}

.cklu-rate-compact-table th:nth-child(1),
.cklu-rate-compact-table td:nth-child(1) { width: 25%; }
.cklu-rate-compact-table th:nth-child(2),
.cklu-rate-compact-table td:nth-child(2) { width: 8%; text-align: center; }
.cklu-rate-compact-table th:nth-child(3),
.cklu-rate-compact-table td:nth-child(3),
.cklu-rate-compact-table th:nth-child(4),
.cklu-rate-compact-table td:nth-child(4),
.cklu-rate-compact-table th:nth-child(5),
.cklu-rate-compact-table td:nth-child(5) { width: 22%; }

.cklu-rate-compact-table td {
	vertical-align: middle;
}

.cklu-bar-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	font-size: 12px;
	margin-bottom: 10px;
}

.cklu-bar-legend span {
	align-items: center;
	display: inline-flex;
	gap: 6px;
}

.cklu-bar-legend i {
	border-radius: 3px;
	display: inline-block;
	height: 12px;
	width: 18px;
}

.cklu-mag-bars {
	display: grid;
	gap: 14px;
}

.cklu-mag-bar-row {
	align-items: center;
	display: grid;
	gap: 14px;
	grid-template-columns: minmax(170px, 220px) minmax(240px, 1fr) minmax(170px, 220px);
}

.cklu-mag-bar-label,
.cklu-mag-bar-value {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.cklu-mag-bar-label span,
.cklu-mag-bar-value span {
	color: #667085;
	font-size: 12px;
}

.cklu-mag-bar-track {
	align-items: center;
	background: #edf0f4;
	border-radius: 999px;
	display: flex;
	height: 18px;
	overflow: hidden;
	position: relative;
}

.cklu-mag-bar-stack,
.cklu-mag-progress-stack {
	display: flex;
	height: 100%;
	overflow: hidden;
}

.cklu-mag-segment {
	display: block;
	height: 100%;
	min-width: 2px;
}

.cklu-seg-1000-warm { background: #89bff1; }
.cklu-seg-1000-customer { background: #2271b1; }
.cklu-seg-800-warm { background: #93d7a3; }
.cklu-seg-800-customer { background: #2f9d4c; }
.cklu-seg-unknown-warm { background: #c5cad1; }
.cklu-seg-unknown-customer { background: #9198a1; }

.cklu-mag-rate-badge {
	background: #eef2f6;
	border-radius: 999px;
	display: inline-block !important;
	font-size: 11px !important;
	font-weight: 700;
	max-width: max-content;
	padding: 2px 8px;
	color: #44505f !important;
}

.cklu-section-note {
	color: #667085;
	font-size: 14px;
	margin: 0 0 14px;
}

.cklu-mag-system-card {
	background: #fff;
	border: 1px solid #d7dce1;
	border-radius: 14px;
	margin: 14px 0;
	overflow: hidden;
}

.cklu-mag-system-card > summary {
	padding: 18px 20px 18px 42px;
	position: relative;
}

.cklu-mag-system-card > summary::before {
	left: 18px;
	position: absolute;
	top: 18px;
}

.cklu-mag-system-summary {
	display: grid;
	grid-template-columns: minmax(120px, 1fr) repeat(5, minmax(120px, 1fr));
	gap: 16px;
	align-items: start;
}

.cklu-mag-system-summary span {
	color: #667085;
	display: block;
	font-size: 12px;
	margin-bottom: 4px;
}

.cklu-mag-system-summary strong {
	display: block;
	font-size: 16px;
	line-height: 1.35;
}

.cklu-mag-system-title {
	font-size: 34px;
	font-weight: 800;
	line-height: 1;
}

.cklu-mag-system-body {
	border-top: 1px solid #d7dce1;
	padding: 18px 20px 20px;
}

.cklu-mag-warning-box {
	background: #fff7e6;
	border-left: 4px solid #e0a300;
	border-radius: 8px;
	margin-bottom: 18px;
	padding: 12px 14px;
}

.cklu-mag-warning-box p {
	margin: 0 0 6px;
}

.cklu-mag-warning-box p:last-child {
	margin-bottom: 0;
}

.cklu-mag-current-card {
	background: #f7f8fa;
	border: 1px solid #e7eaee;
	border-radius: 12px;
	margin-bottom: 22px;
	padding: 16px;
}

.cklu-mag-current-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(150px, 1fr));
	gap: 14px;
}

.cklu-mag-current-grid span {
	color: #667085;
	display: block;
	font-size: 12px;
	margin-bottom: 4px;
}

.cklu-mag-current-grid strong {
	display: block;
	font-size: 18px;
}

.cklu-mag-progress-meta {
	color: #667085;
	font-size: 13px;
	margin: 14px 0 8px;
}

.cklu-mag-progress-track {
	background: #edf0f4;
	border-radius: 999px;
	height: 20px;
	overflow: hidden;
	position: relative;
}

.cklu-mag-progress-marker {
	background: rgba(29, 35, 39, 0.28);
	height: 100%;
	position: absolute;
	top: 0;
	width: 2px;
	z-index: 2;
}

.cklu-mag-current-card small {
	display: block;
	font-size: 12px;
	margin-top: 10px;
	color: #44505f;
}

.cklu-mag-subsection + .cklu-mag-subsection {
	margin-top: 24px;
}

.cklu-mag-timeline {
	display: grid;
	gap: 10px;
}

.cklu-mag-timeline-line {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	line-height: 1.45;
}

.cklu-mag-timeline-dot {
	border-radius: 50%;
	display: inline-block;
	height: 10px;
	width: 10px;
	margin-top: 5px;
	background: #2271b1;
	flex: 0 0 10px;
}

.cklu-mag-event-replacement .cklu-mag-timeline-dot { background: #d63638; }
.cklu-mag-event-dose_rate .cklu-mag-timeline-dot { background: #e0a300; }
.cklu-mag-event-last_data .cklu-mag-timeline-dot { background: #2271b1; }

.cklu-mag-timeline-date {
	color: #667085;
	font-size: 13px;
}

.cklu-mag-timeline-comment {
	color: #667085;
	font-size: 13px;
}

.cklu-periods-table th:nth-child(1), .cklu-periods-table td:nth-child(1) { width: 22%; }
.cklu-periods-table th:nth-child(2), .cklu-periods-table td:nth-child(2) { width: 10%; }
.cklu-periods-table th:nth-child(3), .cklu-periods-table td:nth-child(3) { width: 12%; }
.cklu-periods-table th:nth-child(4), .cklu-periods-table td:nth-child(4) { width: 10%; }
.cklu-periods-table th:nth-child(5), .cklu-periods-table td:nth-child(5) { width: 14%; }
.cklu-periods-table th:nth-child(6), .cklu-periods-table td:nth-child(6) { width: 14%; }
.cklu-periods-table th:nth-child(7), .cklu-periods-table td:nth-child(7) { width: 18%; }

.cklu-cell-note {
	color: #667085;
	font-size: 12px;
	line-height: 1.4;
	margin-top: 3px;
}

.cklu-mag-status {
	border-radius: 999px;
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 9px;
	white-space: nowrap;
}

.cklu-mag-status-completed {
	background: #edfaef;
	color: #116329;
}

.cklu-mag-status-current {
	background: #eef6ff;
	color: #135e96;
}

@media (max-width: 1200px) {
	.cklu-public-summary,
	.cklu-mag-summary-4 {
		grid-template-columns: repeat(2, minmax(220px, 1fr));
	}

	.cklu-mag-system-summary {
		grid-template-columns: repeat(3, minmax(160px, 1fr));
	}

	.cklu-mag-current-grid {
		grid-template-columns: repeat(2, minmax(160px, 1fr));
	}

	.cklu-mag-bar-row {
		grid-template-columns: minmax(160px, 220px) minmax(180px, 1fr) minmax(160px, 220px);
	}
}

@media (max-width: 860px) {
	.cklu-public-filters {
		grid-template-columns: 1fr 1fr;
	}

	.cklu-public-summary,
	.cklu-mag-summary-4,
	.cklu-mag-current-grid,
	.cklu-mag-system-summary {
		grid-template-columns: 1fr;
	}

	.cklu-mag-bar-row {
		grid-template-columns: 1fr;
	}

	.cklu-toggle-row {
		align-items: flex-start;
		flex-direction: column;
	}

	.cklu-rate-compact-table,
	.cklu-periods-table {
		font-size: 12px;
	}
}

@media (max-width: 680px) {
	.cklu-standalone-page {
		padding-top: 14px;
	}

	.cklu-public {
		padding: 0 12px;
	}

	.cklu-public-card {
		padding: 14px;
	}

	.cklu-public-filters,
	.cklu-public-summary,
	.cklu-mag-summary-4 {
		grid-template-columns: 1fr;
	}
}

.cklu-mag-system-title small {
	color: #667085;
	display: block;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	margin-top: 5px;
}

/* Magnetron chart grouping and current-unit emphasis (v0.5.1). */
.cklu-mag-bars {
	gap: 4px;
}

.cklu-mag-bar-row {
	border: 1px solid transparent;
	border-radius: 10px;
	padding: 10px 12px;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.cklu-mag-bar-row-band-a {
	background: #f5f8fc;
}

.cklu-mag-bar-row-band-b {
	background: #f4faf6;
}

.cklu-mag-bar-row-system-start:not(:first-child) {
	margin-top: 12px;
}

.cklu-mag-bar-row-current {
	background: #fff8dc;
	border-color: #e5b83c;
	box-shadow: inset 4px 0 0 #e5b83c, 0 1px 3px rgba(29, 35, 39, 0.08);
}

.cklu-mag-current-badge {
	background: #dba617;
	border-radius: 999px;
	color: #1d2327 !important;
	display: inline-block !important;
	font-size: 10px !important;
	font-weight: 800;
	line-height: 1.3;
	margin-left: 5px;
	opacity: 1 !important;
	padding: 2px 7px;
	text-transform: uppercase;
	vertical-align: 1px;
}

/* ERRORS public pages */
.cklu-errors-page .cklu-public-card h3 { font-size:24px; }
.cklu-errors-day-filters,
.cklu-errors-analysis-filters {
	display:grid;
	grid-template-columns:repeat(6,minmax(130px,1fr)) auto;
	gap:12px;
	align-items:end;
}
.cklu-errors-search { grid-column:span 2; }
.cklu-errors-checks { display:flex;flex-direction:column;gap:7px;font-size:13px;padding-bottom:8px; }
.cklu-errors-specific-selects { grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(220px,1fr));gap:12px;border-top:1px solid #e7eaee;padding-top:12px; }
.cklu-errors-day-nav { display:grid;grid-template-columns:1fr auto 1fr;align-items:center;margin-top:16px;gap:12px; }
.cklu-errors-day-nav > :last-child { text-align:right; }
.cklu-errors-summary { grid-template-columns:repeat(4,minmax(200px,1fr)); }
.cklu-errors-day-table-card { overflow-x:auto; }
.cklu-errors-day-table { min-width:1320px; }
.cklu-errors-day-table th:nth-child(1){width:135px}.cklu-errors-day-table th:nth-child(2){width:150px}.cklu-errors-day-table th:nth-child(3){width:75px}.cklu-errors-day-table th:nth-child(4){width:120px}.cklu-errors-day-table th:nth-child(5){width:105px}.cklu-errors-day-table th:nth-child(6){width:125px}.cklu-errors-day-table th:nth-child(7){width:150px}
.cklu-errors-day-table code { white-space:nowrap;font-size:12px; }
.cklu-repeat-badge { background:#eef6ff;color:#135e96;border-radius:999px;padding:2px 7px;font-size:11px;font-weight:700;display:inline-block;margin-top:4px; }
.cklu-error-comment { background:#fff8e5;border-left:3px solid #dba617;margin-top:6px;padding:6px 8px;font-size:12px; }
.cklu-error-visibility-important td:first-child { border-left:4px solid #d63638; }
.cklu-error-visibility-hidden { opacity:.72; }
.cklu-errors-chart-wrap { width:100%;overflow:hidden; }
.cklu-errors-chart-wrap canvas { display:block;max-width:100%; }
.cklu-errors-two-columns { display:grid;grid-template-columns:1.25fr .75fr;gap:16px;align-items:start; }
.cklu-errors-top-table td:last-child { text-align:right; }
@media(max-width:1150px){
	.cklu-errors-day-filters,.cklu-errors-analysis-filters{grid-template-columns:repeat(3,minmax(150px,1fr))}
	.cklu-errors-two-columns{grid-template-columns:1fr}
	.cklu-errors-summary{grid-template-columns:repeat(2,minmax(180px,1fr))}
}
@media(max-width:700px){
	.cklu-errors-day-filters,.cklu-errors-analysis-filters,.cklu-errors-specific-selects{grid-template-columns:1fr}
	.cklu-errors-search{grid-column:auto}
	.cklu-errors-summary{grid-template-columns:1fr}
}
