/* Solar portal (frontend). Builds on admin.css. */
.solar-portal {
	font-size: 15px;
	line-height: 1.5;
	max-width: 1200px;
	margin: 0 auto;
}

.solar-portal * {
	box-sizing: border-box;
}

.solar-portal-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	align-items: center;
	border-bottom: 2px solid #f59e0b;
	margin-bottom: 16px;
	padding-bottom: 6px;
}

.solar-portal-nav a {
	padding: 6px 12px;
	border-radius: 4px;
	text-decoration: none;
}

.solar-portal-nav a.is-active {
	background: #f59e0b;
	color: #fff;
}

.solar-portal-user {
	margin-left: auto;
	font-size: 13px;
	color: #646970;
}

.solar-portal-notice {
	padding: 10px 14px;
	border-left: 4px solid #16a34a;
	background: #edfaef;
	margin-bottom: 12px;
}

.solar-portal-notice.is-error {
	border-color: #d63638;
	background: #fcf0f1;
}

.solar-portal-notice.is-warning {
	border-color: #dba617;
	background: #fcf9e8;
}

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

.solar-site-card {
	display: block;
	text-decoration: none;
	color: inherit;
}

.solar-site-card:hover {
	border-color: #f59e0b;
}

.solar-portal-form input[type="text"],
.solar-portal-form input[type="number"],
.solar-portal-form input[type="date"],
.solar-portal-form select,
.solar-portal-form textarea {
	width: 100%;
	max-width: 560px;
	padding: 8px;
	font-size: 16px;
}

.solar-portal-form label {
	display: inline-block;
	min-width: 220px;
	margin-right: 12px;
	font-weight: 600;
}

.solar-portal .button {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid #2271b1;
	border-radius: 4px;
	background: #f6f7f7;
	color: #2271b1;
	cursor: pointer;
	text-decoration: none;
}

.solar-portal .button-primary {
	background: #2271b1;
	color: #fff;
}

.solar-portal table.widefat {
	width: 100%;
	border-collapse: collapse;
}

.solar-portal table.widefat td,
.solar-portal table.widefat th {
	padding: 6px 8px;
	border-bottom: 1px solid #f0f0f1;
	text-align: left;
}

.solar-portal .solar-site-map {
	height: 420px;
}

.solar-portal-inline {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	margin-top: 8px;
}

.solar-login {
	max-width: 420px;
}

@media (max-width: 600px) {
	.solar-portal-user {
		margin-left: 0;
		width: 100%;
	}

	.solar-portal .solar-site-map {
		height: 320px;
	}
}

/* 1.7.0 export language */
.solar-lang { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

/* 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 own language */
.solar-user-lang { display: inline-block; margin: 0 6px 0 0; }
.solar-user-lang select { font-size: 13px; padding: 2px 6px; min-height: 28px; }
.solar-clock-lang { margin-top: 16px; text-align: right; }

/* 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.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; }
