/* Solar plugin – admin styles. */

.solar-wrap .solar-card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	padding: 4px 16px 12px;
	margin: 0 0 16px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, .03);
	min-width: 0;
}

.solar-wrap .solar-card h2 {
	font-size: 15px;
	margin: 12px 0;
}

.solar-wrap .solar-card .form-table th {
	width: 220px;
	padding: 12px 10px 12px 0;
}

.solar-wrap .solar-card .form-table td {
	padding: 8px 10px;
}

.solar-form-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
	gap: 0 16px;
	margin-top: 12px;
}

.solar-card-wide {
	grid-column: 1 / -1;
}

.solar-dashboard-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
	gap: 16px;
	align-items: start;
}

.solar-required {
	color: #d63638;
}

.solar-readonly {
	display: inline-block;
	padding: 4px 0;
}

.solar-restricted {
	color: #646970;
}

.solar-decimal {
	width: 10em;
}

.solar-inline {
	margin-left: 6px;
}

.solar-check {
	display: block;
	margin: 4px 0;
}

.solar-nowrap {
	white-space: nowrap;
}

.solar-errors {
	list-style: disc;
	margin-left: 20px;
}

.solar-delete-link {
	margin-left: 12px;
}

/* KPI tiles */
.solar-kpis {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 16px 0;
}

.solar-kpi {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	padding: 10px 16px;
	min-width: 120px;
	display: flex;
	flex-direction: column;
}

.solar-kpi-value {
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
}

.solar-kpi-label {
	color: #646970;
	font-size: 12px;
}

.solar-kpi.warn {
	border-color: #d63638;
	background: #fcf0f1;
}

/* Status badges and progress */
.solar-badge {
	display: inline-block;
	padding: 1px 8px;
	border-radius: 10px;
	font-size: 12px;
	line-height: 1.6;
	color: #1d2327;
	background: color-mix(in srgb, var(--solar-badge, #999) 22%, #fff);
	border: 1px solid var(--solar-badge, #999);
	white-space: nowrap;
}

.solar-progress {
	display: flex;
	height: 10px;
	border-radius: 5px;
	overflow: hidden;
	background: #f0f0f1;
	min-width: 140px;
	margin: 4px 0 2px;
}

.solar-progress span {
	display: block;
	height: 100%;
}

.solar-progress-cell {
	min-width: 180px;
}

/* Dates and document states */
.solar-wt-filters { display: flex; flex-wrap: wrap; gap: 16px; }
.solar-progress-map.is-drawing { touch-action: none; }
.solar-state-legend { background: rgba(255, 255, 255, 0.92); padding: 6px 8px; border-radius: 4px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); font-size: 12px; line-height: 1.6; max-height: 40%; overflow: auto; color: #1d2327; }
.solar-state-legend .solar-legend-dot { margin-right: 4px; }
.solar-wt-filter { display: flex; flex-direction: column; gap: 4px; min-width: 200px; }
.solar-wt-filter select { min-width: 200px; }
.solar-expired {
	color: #b32d2e;
	font-weight: 600;
}

.solar-expiring {
	color: #996800;
	font-weight: 600;
}

.solar-valid {
	color: inherit;
}

.solar-doc {
	display: inline-block;
	font-size: 12px;
	margin-right: 6px;
	white-space: nowrap;
}

.solar-doc.solar-valid {
	color: #007017;
}

.solar-holiday-tag,
.solar-absence {
	display: inline-block;
	font-size: 11px;
	padding: 0 6px;
	border-radius: 8px;
	background: #fcf0f1;
	color: #8a2424;
}

.solar-absence {
	background: #f0f6fc;
	color: #0a4b78;
}

.solar-highlight td {
	background: #edfaef !important;
}

.solar-ok {
	color: #007017;
	font-weight: 600;
}

/* Alerts */
.solar-alerts .solar-alert-card h3 {
	font-size: 14px;
	margin: 12px 0 8px;
}

.solar-alert-danger {
	border-left: 4px solid #d63638 !important;
}

.solar-alert-card {
	border-left: 4px solid #dba617 !important;
}

.solar-count {
	display: inline-block;
	min-width: 18px;
	padding: 0 6px;
	border-radius: 9px;
	background: #f0f0f1;
	font-size: 12px;
	text-align: center;
	font-weight: 400;
}

.solar-section-title {
	margin-top: 0;
}

/* Photos */
.solar-photo {
	max-width: 260px;
	max-height: 200px;
	border-radius: 4px;
	border: 1px solid #dcdcde;
	margin-bottom: 4px;
}

.solar-thumb {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 3px;
}

/* Progress photos in the reports */
.solar-photo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 12px;
}

.solar-photo-grid figure {
	margin: 0;
}

.solar-photo-grid img {
	display: block;
	width: 100%;
	height: 140px;
	object-fit: cover;
	border-radius: 4px;
	border: 1px solid #dcdcde;
}

.solar-photo-grid figcaption {
	margin-top: 4px;
	font-size: 12px;
	line-height: 1.4;
	color: #50575e;
	overflow-wrap: anywhere;
}

/* Maps */
.solar-map-canvas {
	height: 460px;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	margin: 8px 0;
}

.solar-map-canvas.is-drawing,
.solar-map-canvas.is-positioning,
.solar-map-canvas.is-drawing .leaflet-interactive {
	cursor: crosshair;
}

.solar-map-canvas.leaflet-dragging {
	cursor: grabbing;
}

.solar-site-map {
	height: 560px;
	border-radius: 4px;
	margin-bottom: 12px;
}

.solar-map-toolbar .button.is-active {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
}

.solar-vertex {
	background: #fff;
	border: 2px solid #ea580c;
	border-radius: 50%;
	box-sizing: border-box;
}

.solar-legend-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	margin-right: 4px;
	vertical-align: middle;
}

.solar-geojson-details summary {
	cursor: pointer;
	color: #2271b1;
}

/* Working times */
.solar-week-filter {
	margin: 12px 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.solar-table-scroll {
	overflow-x: auto;
}

.solar-week td,
.solar-week th {
	white-space: nowrap;
}

.solar-day-weekend {
	background: #f6f7f7 !important;
}

.solar-day-holiday {
	background: #fcf0f1 !important;
}

.solar-log {
	max-height: 480px;
	overflow-y: auto;
}

.solar-log-error td {
	color: #b32d2e;
}

.solar-log-warning td {
	color: #996800;
}

.solar-log-skipped td {
	color: #646970;
}

.solar-tabs {
	margin-bottom: 12px;
}

/* Holiday calendar */
.solar-calendar-layout {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
	gap: 16px;
	align-items: start;
}

.solar-calendar {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 12px;
}

.solar-month {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	padding: 8px;
}

.solar-month h3 {
	margin: 0 0 6px;
	font-size: 13px;
}

.solar-month table {
	width: 100%;
	border-collapse: collapse;
	text-align: center;
	font-size: 12px;
}

.solar-month th {
	color: #646970;
	font-weight: 400;
}

.solar-month td {
	padding: 3px 0;
	border-radius: 3px;
}

.solar-month td.is-weekend {
	color: #8c8f94;
}

.solar-month td.is-holiday,
.solar-legend.is-mandatory {
	background: #d63638;
	color: #fff;
	font-weight: 600;
}

.solar-month td.is-public,
.solar-legend.is-public {
	background: #f0b849;
	color: #1d2327;
}

.solar-month td.is-regional,
.solar-month td.is-company,
.solar-legend.is-regional {
	background: #72aee6;
	color: #fff;
}

.solar-month td.is-observance,
.solar-legend.is-observance {
	background: #f0f0f1;
	color: #1d2327;
	font-weight: 400;
}

.solar-month td.is-today {
	outline: 2px solid #2271b1;
}

.solar-legend {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 2px;
	vertical-align: middle;
	margin-left: 8px;
}

.solar-cal-code {
	display: inline-block;
	min-width: 22px;
	padding: 0 4px;
	border-radius: 3px;
	background: #f0f0f1;
	border: 1px solid #dcdcde;
	font-size: 11px;
	font-weight: 600;
	text-align: center;
	line-height: 1.5;
}

.solar-calendar-choice {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin: 0 0 8px;
}

.solar-calendar-choice legend {
	font-weight: 600;
	margin-bottom: 4px;
}

.solar-month td.is-multi,
.solar-legend.is-multi-legend {
	box-shadow: inset 0 0 0 2px #1d2327;
}

.solar-hol-cancelled td {
	text-decoration: line-through;
	color: #8c8f94;
}

.solar-el {
	color: #646970;
}

.solar-holiday-list {
	margin: 0;
}

.solar-status li {
	margin-bottom: 8px;
}

@media (max-width: 960px) {
	.solar-form-grid,
	.solar-dashboard-grid,
	.solar-calendar-layout {
		grid-template-columns: 1fr;
	}

	.solar-wrap .solar-card .form-table th {
		width: auto;
	}
}

/* Progress & reports (1.2.0) */
.solar-progress-map,
.solar-report-map {
	height: 520px;
}

.solar-sel-filter {
	display: inline-block;
	margin-left: 8px;
}

.solar-code-filter {
	width: 140px;
}

.solar-progress-form p {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	align-items: center;
}

.solar-export-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	align-items: center;
	margin: 0 0 12px;
}

.solar-report-title small {
	font-weight: 400;
	color: #646970;
}

.solar-chart {
	width: 100%;
	height: auto;
	max-height: 260px;
}

.solar-chart-legend span {
	display: inline-block;
	width: 12px;
	height: 10px;
	margin: 0 4px 0 12px;
	vertical-align: middle;
}

.solar-chart-legend span.line {
	height: 2px;
	background: #16a34a;
}

.solar-playback {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 0 0 8px;
}

.solar-slider {
	flex: 1 1 260px;
}

.solar-play.is-active {
	background: #2271b1;
	color: #fff;
}

.solar-report-legend {
	margin: 4px 0 8px;
}

.solar-done-by {
	margin-top: 12px;
}

/* 1.3.0: to-dos, issues, quality, materials */
.solar-todo-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.solar-todo-list li {
	padding: 6px 0;
	border-bottom: 1px solid #f0f0f1;
}

.solar-inline-form {
	display: inline;
}

.solar-check-btn {
	width: 24px;
	height: 24px;
	border: 1px solid #8c8f94;
	border-radius: 50%;
	background: #fff;
	color: #16a34a;
	cursor: pointer;
	font-weight: 700;
	line-height: 1;
}

.solar-check-btn:hover {
	background: #edfaef;
}

.solar-todo-add {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
}

.solar-todo-add input[type="text"] {
	flex: 1 1 200px;
}

.solar-prio {
	display: inline-block;
	font-size: 11px;
	padding: 0 6px;
	border-radius: 8px;
	background: #f0f0f1;
}

.solar-prio-high {
	background: #fcf9e8;
	color: #996800;
}

.solar-prio-critical {
	background: #d63638;
	color: #fff;
}

.solar-prio-low {
	color: #646970;
}

.solar-comments {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
}

.solar-comments li {
	border-left: 3px solid #dcdcde;
	padding: 4px 10px;
	margin-bottom: 8px;
}

.solar-q-passed {
	color: #007017;
	font-weight: 600;
}

.solar-q-failed {
	color: #b32d2e;
	font-weight: 600;
}

.solar-q-conditional,
.solar-q-pending {
	color: #996800;
}

.solar-booking {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.solar-today-date {
	font-size: 14px;
	color: #646970;
}

/* 1.6.0: time clock */
.solar-clock-mark {
	display: inline-block;
	font-size: 11px;
	padding: 0 6px;
	border-radius: 8px;
	margin-left: 4px;
	white-space: nowrap;
}

.solar-clock-mark.is-auto {
	background: #fcf9e8;
	color: #8a6100;
}

.solar-clock-mark.is-admin {
	background: #e7f0fb;
	color: #0a4b78;
}

.solar-clock-mark.is-kiosk {
	background: #f0f0f1;
	color: #50575e;
}

.solar-clock-mark.is-outside,
.solar-clock-mark.is-reason {
	background: #fcf0f1;
	color: #8a2424;
	white-space: normal;
}

.solar-clock-mark.is-open {
	background: #edfaef;
	color: #007017;
}

.solar-surcharge {
	color: #8a6100;
}

.solar-clock-card {
	text-align: center;
	max-width: 520px;
}

.solar-clock-card.is-in {
	border-color: #16a34a;
}

.solar-clock-card.is-break {
	border-color: #d97706;
}

.solar-clock-status {
	font-size: 18px;
	font-weight: 600;
}

.solar-clock-running {
	font-size: 40px;
	font-weight: 700;
	margin: 4px 0 12px;
}

.solar-clock-sum {
	color: #646970;
}

.solar-clock-buttons {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
}

.solar-clock-form {
	display: inline-block;
	margin: 0;
}

.solar-clock-btn {
	min-width: 180px;
	padding: 16px 24px;
	font-size: 20px;
	font-weight: 700;
	border: 0;
	border-radius: 10px;
	color: #fff;
	cursor: pointer;
	background: #475569;
}

.solar-clock-btn.is-in {
	background: #16a34a;
}

.solar-clock-btn.is-out {
	background: #dc2626;
}

.solar-clock-btn.is-break {
	background: #d97706;
}

.solar-clock-btn.is-small {
	min-width: 0;
	padding: 8px 14px;
	font-size: 15px;
	border-radius: 6px;
}

.solar-clock-btn:disabled {
	opacity: .6;
}

.solar-team-clock td {
	vertical-align: middle;
}

.solar-team-clock .solar-clock-buttons {
	justify-content: flex-end;
}

.solar-pi-reimport {
	margin: 12px 0;
	padding: 10px 12px;
	border-left: 4px solid #72aee6;
	background: #f6f7f7;
}

.solar-pi-reimport.has-progress {
	border-left-color: #d63638;
}

.solar-pi-reimport .solar-warn {
	color: #b32d2e;
	font-weight: 600;
}

.solar-pi-overwrite-opts {
	margin: -6px 0 8px 24px;
	padding-left: 10px;
	border-left: 2px solid #c3c4c7;
}

.solar-pi-options .description {
	margin-left: 24px;
}

.solar-presence {
	border-left: 4px solid #dba617;
}

.solar-presence-table td {
	vertical-align: middle;
}

.solar-presence-form {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	justify-content: flex-end;
}

.solar-presence-form input[type="text"] {
	min-width: 10em;
	flex: 1 1 10em;
}

.solar-clock-reason {
	border-color: #d63638;
	max-width: 520px;
}

/* 1.7.0 export language */
.solar-lang { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-weight: normal; }
.solar-lang select { min-height: 30px; }
.wrap .solar-lang { margin-left: 4px; vertical-align: middle; }

/* 1.8.0 worker user accounts */
.solar-account-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.solar-account-cols h3 { margin-top: 0; }
.solar-account-form { display: inline; }
.solar-account-actions .solar-account-form { margin-right: 6px; }
.solar-wide-select { max-width: 100%; min-width: 260px; }
.solar-warning { color: #996800; font-weight: 600; }

/* 1.10.0 clock positions */
.solar-clock-map { height: 360px; margin-top: 8px; border: 1px solid #dcdcde; border-radius: 4px; }
.solar-clock-mark.is-nogps { background: #fcf0f1; color: #8a2424; }
.column-location .dashicons { font-size: 16px; width: 16px; height: 16px; vertical-align: text-bottom; }

/* 1.11.0 leave and overtime */
.solar-leave-table th.solar-group { text-align: center; background: #f0f0f1; }
.solar-leave-table td, .solar-leave-table th { white-space: nowrap; }
.solar-leave-status { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; background: #f0f0f1; }
.solar-leave-status.is-requested { background: #fcf9e8; color: #8a6d00; }
.solar-leave-status.is-approved { background: #edfaef; color: #00691c; }
.solar-leave-status.is-rejected, .solar-leave-status.is-cancelled { background: #fcf0f1; color: #8a2424; }
.solar-filter-bar { margin: 16px 0 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.solar-decision input[type=text] { width: 160px; }

/* 1.11.0 overtime ledger, impact */
.solar-ledger td, .solar-ledger th { white-space: nowrap; }
.solar-ledger-carry td { font-style: italic; background: #f6f7f7; }
.solar-ot-matrix td { text-align: right; font-size: 12px; }
.solar-ot-matrix td:first-child { text-align: left; }
.solar-ot-bal { color: #50575e; }
.solar-impact-row td { background: #fbfbfc; padding-top: 0; }
.solar-staff { display: inline-block; margin: 2px 4px 2px 0; padding: 0 6px; border-radius: 3px; background: #edfaef; font-size: 12px; }
.solar-staff.is-away { background: #fcf0f1; text-decoration: line-through; }

/* 1.11.0 workforce, planning */
.solar-workforce td { text-align: center; font-size: 12px; white-space: nowrap; }
.solar-workforce td:first-child { text-align: left; }
.solar-workforce td.is-short { background: #fcf0f1; color: #8a2424; font-weight: 600; }
.solar-workforce td.is-ok { background: #edfaef; }
.solar-ok { color: #00a32a; font-weight: 600; }

/* 1.12.0 paid public holidays */
.solar-paid-holiday { background: #edfaef; color: #00691c; }
.solar-holiday-pay details summary { cursor: pointer; }
.solar-holiday-pay .solar-decision input[type=text] { width: 140px; margin-top: 4px; }

/* 1.13.0 holiday pay exceptions */
.solar-hp-exceptions { font-size: 12px; }
.solar-hp-exceptions .button-link { color: #b32d2e; text-decoration: none; font-size: 14px; padding: 0 4px; }
.solar-hp-add { margin-left: 8px; }
.solar-hp-add select { max-width: 220px; }

/* Contents of the report (1.15.0) */
.solar-report-sections {
	flex-basis: 100%;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	margin: 6px 0 0;
	padding: 6px 0 0;
	border: 0;
	border-top: 1px solid #dcdcde;
}

.solar-report-sections legend {
	float: left;
	width: 100%;
	padding: 0;
	font-weight: 600;
}

.solar-report-sections label {
	white-space: nowrap;
}

/* 1.16.0 sick leave and work accidents */
.solar-sick-pay { background: #fcf9e8; color: #8a6100; }
.solar-row-current td { background: #fcf9e8 !important; }
.solar-kpi.good { border-color: #00a32a; background: #edfaef; }

/* 1.17.0 current position button */
.solar-geo-here .dashicons { font-size: 16px; width: 16px; height: 16px; vertical-align: text-bottom; }
.solar-geo-msg { margin-left: 6px; font-size: 12px; color: #00691c; }
.solar-geo-msg.is-error { color: #b32d2e; }

/* 1.18.0 backup and restore */
.solar-backup-actions { white-space: nowrap; }
.solar-backup-actions details { display: inline-block; vertical-align: top; }
.solar-backup-actions details[open] { display: block; white-space: normal; margin: 6px 0; padding: 8px 10px; background: #fff; border: 1px solid #dcdcde; border-radius: 4px; max-width: 420px; }
.solar-backup-actions summary { list-style: none; cursor: pointer; }
.solar-backup-actions summary::-webkit-details-marker { display: none; }

/* 1.19.0 remote backups and password protection */
.solar-lock { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 3px; background: #f0f6fc; color: #135e96; font-size: 12px; }
.solar-lock .dashicons { font-size: 14px; width: 14px; height: 14px; vertical-align: text-bottom; }
.solar-ok { color: #00691c; }
.solar-fetch-form { margin: 12px 0 4px; }
.solar-target-form .form-table th { width: 220px; }

/* 1.22.0 park import */
.solar-park-import .solar-pi-sub td:first-child { padding-left: 24px; color: #50575e; }
.solar-park-import .solar-pi-name { width: 180px; }
.solar-park-import select.solar-pi-target { max-width: 280px; }
.solar-indent { margin-left: 24px; }

/* 1.23.0 park import: layers made visible */
.solar-pi-map-wrap { display: flex; gap: 12px; flex-wrap: wrap; }
.solar-pi-map { flex: 1 1 520px; height: 460px; border: 1px solid #dcdcde; border-radius: 4px; }
.solar-pi-legend { flex: 0 1 240px; max-height: 460px; overflow: auto; font-size: 12px; }
.solar-pi-legend label { display: flex; align-items: center; gap: 6px; padding: 2px 0; cursor: pointer; }
.solar-pi-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: middle; flex: none; border: 1px solid rgba(0, 0, 0, .15); }
.solar-pi-layer { min-width: 240px; }
.solar-pi-pics { display: flex; gap: 6px; margin: 6px 0 2px; cursor: zoom-in; }
.solar-pi-pics svg { display: block; border-radius: 3px; }
.solar-pi-size { display: block; color: #50575e; }
.solar-park-import tr.solar-pi-row:hover > td { background: #f0f6fc; }
.solar-park-import tr.solar-pi-row.is-flash > td { background: #fcf9e8; transition: background .3s; }

/* 1.23.0 element states, teams, corporate design */
.solar-state-flow { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.solar-color-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: middle; border: 1px solid rgba(0, 0, 0, .15); }
.solar-logo-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.solar-logo-preview { max-height: 60px; max-width: 220px; border: 1px solid #dcdcde; padding: 4px; background: #fff; }
.solar-color-code { font-size: 12px; }
.solar-brand-preview { padding: 12px; border: 1px dashed #c3c4c7; border-radius: 6px; background: #fff; }
.solar-brand-preview .solar-portal-nav { display: flex; gap: 4px; border-bottom: 2px solid var(--solar-brand); padding-bottom: 6px; margin-bottom: 12px; }
.solar-brand-preview .solar-portal-nav a { padding: 6px 12px; border-radius: 4px; text-decoration: none; }
.solar-brand-preview .solar-portal-nav a.is-active { background: var(--solar-brand); color: var(--solar-brand-contrast); }
.solar-pdf-preview { border: 1px solid #dcdcde; background: #fff; padding: 10px 14px; font-size: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.solar-pdf-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 2px solid var(--solar-brand, #f59e0b); padding-bottom: 6px; }
.solar-pdf-brand { text-align: right; }
.solar-pdf-brand img { display: block; max-height: 32px; max-width: 120px; margin-left: auto; }
.solar-pdf-table { margin: 10px 0; }
.solar-pdf-table span { display: block; height: 10px; margin: 3px 0; background: #f0f0f1; }
.solar-pdf-table span:first-child { background: var(--solar-brand-soft, #f0f0f1); }
.solar-pdf-foot { display: flex; justify-content: space-between; color: #8c8f94; }
.solar-team-actions { margin: 8px 0; }

/* 1.24.0 park import: show only one layer */
.solar-pi-solo-label { display: inline-block; margin-left: 8px; font-size: 12px; font-weight: normal; color: #50575e; white-space: nowrap; cursor: pointer; }
.solar-pi-solo-label input { margin: 0 2px 0 0; }
.solar-pi-solo-info { margin: 8px 0 0; }

/* 1.25.0 park import: names read and decisions learned */
.solar-pi-recognised { display: block; margin-top: 2px; color: #135e96; }
.solar-pi-source { display: block; color: #50575e; font-style: italic; }

/* 1.27.0 cost tracking */
.solar-cost-filter fieldset { margin-top: 8px; }
.solar-cost-dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.solar-cost-table td.num, .solar-cost-table th.num, .solar-wrap td.num, .solar-wrap th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.solar-cost-table tr.solar-cost-overhead td { background: #f6f7f7; }
.solar-cost-table tfoot th { font-weight: 600; }
.solar-kpi.is-total .solar-kpi-value { color: var(--solar-brand, #1d2327); }
.solar-kpi.is-muted { opacity: .6; }
.solar-cost-pct { max-width: 520px; }

/* 1.33.0 license */
.solar-license-ok { border-left: 4px solid #00a32a; }
.solar-alert-warning { border-left: 4px solid #dba617; }
.solar-license-locked { max-width: 640px; }

/* 1.28.0 cookie notice: maps without consent */
.solar-map-consent { max-width: 240px; padding: 8px 10px; background: rgba(255, 255, 255, .95); border: 1px solid #dcdcde; border-radius: 4px; font-size: 12px; line-height: 1.4; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.solar-map-consent p { margin: 0 0 6px; }
.solar-fe-cookies { margin-top: 16px; font-size: 12px; }

/* 1.38.0: element type / section pick bar of the daily progress map, section labels */
.solar-pick-bar { background: #f0f6fc; border: 1px solid #c3d4e6; border-radius: 4px; padding: 6px 8px; }
.solar-pick-bar label { margin-right: 6px; }
.solar-section-label { background: transparent; border: 0; box-shadow: none; padding: 0; }
.solar-section-label span { display: inline-block; color: #fff; font-weight: 600; padding: 1px 6px; border-radius: 3px; text-shadow: 0 0 2px rgba(0, 0, 0, .7); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.solar-section-label::before { display: none; }
ul.solar-sections { margin: 0 0 8px; }
ul.solar-sections li { margin: 0 0 2px; }

/* 1.38.0: scanner (camera overlay), point maps, scan page */
.solar-scan-overlay { display: none; position: fixed; inset: 0; z-index: 100000; background: rgba(15, 23, 42, .82); align-items: center; justify-content: center; padding: 12px; }
.solar-scan-overlay.is-open { display: flex; }
.solar-scan-box { background: #fff; color: #1d2327; border-radius: 8px; padding: 14px 16px; width: 100%; max-width: 480px; max-height: 100%; overflow: auto; box-shadow: 0 10px 40px rgba(0, 0, 0, .4); }
.solar-scan-box h3 { margin: 0 0 8px; }
.solar-scan-video { position: relative; background: #000; border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; }
.solar-scan-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.solar-scan-frame { position: absolute; inset: 18% 14%; border: 3px solid rgba(255, 255, 255, .9); border-radius: 10px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .25); pointer-events: none; }
.solar-scan-hint.is-error, .solar-scan-msg.is-error { color: #b32d2e; }
.solar-scan-msg.is-ok { color: #008a20; }
.solar-scan-manual input { width: 12em; }
.solar-scan-btn .dashicons { vertical-align: text-bottom; }
.solar-scan-start .solar-scan-btn { font-size: 1.15em; padding: 8px 18px; height: auto; }
.solar-point-map { height: 260px; border: 1px solid #dcdcde; border-radius: 4px; margin: 8px 0; }
.solar-coord { width: 9.5em; }
.solar-geo-auto { color: #50575e; }

/* 1.38.0: table editor */
.solar-te-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin: 8px 0; }
.solar-te-grid fieldset { border: 1px solid #dcdcde; border-radius: 4px; padding: 6px 10px 10px; }
.solar-te-grid legend { font-weight: 600; padding: 0 4px; }
.solar-te-measure { display: block; margin: 2px 0; }
.solar-te-tpl { display: inline-block; background: #f0f0f1; border-radius: 12px; padding: 2px 10px; margin: 0 4px 4px 0; }
.solar-te-tpl.is-active { background: var(--solar-brand, #2271b1); }
.solar-te-tpl.is-active a { color: #fff; }
.solar-pivot td.num, .solar-pivot th.num { text-align: right; white-space: nowrap; }
.solar-pivot tr.solar-total-row td { font-weight: 700; border-top: 2px solid #c3c4c7; }

.solar-section-preview { height: 420px; border: 1px solid #dcdcde; border-radius: 4px; margin: 8px 0 12px; }
.solar-section-names td { vertical-align: middle; }

.solar-pi-only-label { display: inline-block; margin-left: 8px; font-weight: 400; }

/* Import diagnostics */
.solar-diag-error { color: #b32d2e; font-weight: 600; }
.solar-diag-warn { color: #996800; font-weight: 600; }
.solar-diag-ok { color: #007017; }
.solar-diag-info th { width: 240px; padding: 6px 10px 6px 0; }
.solar-diag-info td { padding: 6px 10px; }
.solar-diag-problem { border-left: 3px solid #dcdcde; padding: 6px 10px; margin: 6px 0; background: #f6f7f7; }
.solar-diag-problem summary { cursor: pointer; }
.solar-diag-examples { margin: 4px 0 0 20px; list-style: disc; font-family: Consolas, Monaco, monospace; font-size: 12px; }
.solar-diag-current td, .solar-diag-current th { background: #f0f6fc; }

/* Element statistics */
.solar-stats .num { text-align: right; white-space: nowrap; }
.solar-stats thead th { white-space: nowrap; }
.solar-stats-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.solar-stats-total th, .solar-stats-total td { font-weight: 600; border-top: 2px solid #c3c4c7; }
.solar-stats-barcell { white-space: nowrap; }
.solar-stats-bar { display: inline-flex; width: 120px; height: 10px; border-radius: 5px; overflow: hidden; background: #f0f0f1; vertical-align: middle; }
.solar-stats-bar span { display: block; height: 100%; }
.solar-park-import tr.is-excluded { opacity: .38; }
.solar-pi-done { color: #008a20; font-weight: 600; margin-left: 6px; }

.solar-pi-modes .button { margin: 0 2px 2px 0; }

.solar-inline-form { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; margin: 0; }
.solar-inline-form select { max-width: 260px; }

.solar-pick-count { font-weight: 600; color: #1d2327; margin-right: 6px; }

.solar-section-color-pick { display: inline-flex; align-items: center; gap: 4px; margin: 2px 10px 4px 0; }
.solar-section-color-pick input[type=color], .solar-section-color { width: 34px; height: 26px; padding: 0 2px; border: 1px solid #c3c4c7; border-radius: 3px; background: #fff; vertical-align: middle; }

.solar-range { width: 140px; vertical-align: middle; }
.solar-range-out { display: inline-block; min-width: 2.2em; text-align: right; font-variant-numeric: tabular-nums; }
